Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
User Journal

Journal Journal: Debian 3.0 Notes

Linux Install

Information needed beforehand:
You'll need your monitor's vertical and horizontal hz. Look it up on the Internet.
Video card information. Hint: use Nvidia card; ATI has way problematic driver support for Linux.
Download latest NVidia drivers from http://nvidia.com/content/drivers/drivers.asp. Burn to disk.
Don't let Debian automatically handle your CDROM links. It doesn't work yet.

Hardware:
Configure one hard drive as the master and one as the slave with the jumper settings. (MA and SA settings) Set the Linux drive as the master disk so that it modifies the boot record on the Linux disk and not the Windows disk.

Shortcuts:
Use your mouse to select, copy, and paste to the terminal window.
Use your tab key on the command line to complete the names of files and directories.
'update-menus' is a good command to set links to programs in the graphical menu.

Begin by typing "linux26" at the prompt to get the 2.6 kernel. This is a must, because it gives you the 2.6 kernel.
Partition the HD. Best to let Debian automatically handle this if you have two hard drives.
Do the normal install process.
For video, start with Vesa drivers.

If you're using a second hard drive with Windows, or you have a dual boot partitioned disk, you'll need to configure Windows to work with the grub boot loader:

su
vi /boot/grub/menu.lst

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Home Edition
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
savedefault
makeactive
chainloader +1 :w :q

Configure your DSL connection with pppoeconf:
su
pppoeconf

Update system with dselect
deb ftp://ftp.us.debian.org/debian testing main contrib non-free
Quit dselect when the files are updated (don't continue with dselect; quit afer the file lists are downloaded). I haven't figured out how to change the upgrade source with Synaptic.

Log into Gnome with your normal account.
Open Synaptic (Applications::System Tools::Synaptic Package Manager)
Install libgnome2-perl
Install all libgnomevfs libraries

Now do a system wide update:
1. Mark All Upgrades
2. Smart Upgrade
2. Apply Marked Changes

Here we go. This should take a while :)

Now we install NVidia drivers:

Use Synaptic to search for and install the following packages and their dependencies:
kernel-package
kernel-headers
kernel-source

Configure the source:
su
cd /usr/src
bunzip2 kernel-source-2.6.8.tar.bz2
tar -xvf kernel-source-2.6.8.tar
cd kernel-source-2.6.8
cp /boot/config-2.6.8-1-386 .config
make-kpkg --append-to-version "-386" --revision 2.6.8-2 --config old configure

Setup NVidia drivers:
1. copy Nvidia driver file to your Desktop. chmod a+rwx
2. su
3. vi /etc/X11/default-display-manager
4. comment out line /usr/bin/gdm by adding #
        1. press "i" key to go to insert mode
        2. place cursor at front of line, and type the # key
        3. press your "Esc" key to get out of edit mode
        4. type ":w" to write the file
        5. type ":q" to exit vi
5. reboot with "shutdown -r now" command

NVidia drivers: ./NV... --kernel-source-path=/usr/src/kernel-source-2.6.8

Answer yes to everything, and the drivers should be built for you.

Now, configure your xserver with the following command:
dpkg-reconfigure xserver-xfree86

Answer yes to everything (just hit return) until you get to your monitor information (just double check these values). When you get to the driver section, scroll up from the vesa driver to find the "nvidia" driver, and select it. When the modules are listed, dselect glcore and dri modules. Leave the rest as is and continue with the defaults.

When you're done, open up /etc/X11/menu.lst and uncomment the /usr/bin/gdm line. Save (:w) and quit (:q). Now reboot. You might want to test your Windows installation at this point.

Sound/Audio
Generally, you want to move away from OSS to Alsa. The alsaconf utility seems to work good, so you may want to install and use it. Also, you want to reset gstreamer to use alsa instead of oss:
Install alsa-base alsa-oss
run gstreamer-properties (set to "custom" for audio settings, then reset)

File Browser::Edit::Preferences::Behaviour::
-> Single click to activate items
-> Always open in browser windows
-> Include a Delete command that bypases Wastebasket

Installed Packages:
Blender
ffmpeg
VLC
gsfonts-x11
flash
terminatorx
audacity
unzip
cupsys
apache
        configuration located at /etc/apache/httpd.conf
        startup /etc/init.d/apache

MySQL 4.1
PHP
phpmyadmin
webmin
xemacs
tcl8.4/tk8.4 (install dev files also) /usr/lib/tcl8.4 /usr/lib/tk8.4
tcllib
TkXext
-Modify "configure" file to include /usr/include/tcl8.4 and /usr/includ/tk8.4.
-install libxmuu-dev
-install xlibs-dev

Download Codecs:
MPlayer
ftp://ftp5.mplayerhq.hu/mplayer/releases/codecs/essential-20050115.tar.bz2 /usr/lib/win32

VLC-mozilla
Tuxracer
foomatic-gui
lprng - for printing (currently broken; looking for lpadmin but can't find it)
Kino
Rosegarden (launch with rosegarden4)
sane
xsane
neverball
Quanta
        Kompare
        Cervisia
GIMP
        Help Browser
        Animation Package
        help-common
        help-en
mysql-navigator
mysql-server
gnucash
        libgnomeprint
        libbonobo
gnucash-hbci
dosbox (for games; see abandonia.com for games)
incrwidgets 4
itcl3
itk3
itcl3-docs
itk3-docs
libtk-img
tcltls

php4-gd (suggested by Zen-Cart)
php4-curl (suggested by Zen-Cart)
bittorrent
bittorrent-gui
cecilia
RealPlayer
Komodo
Yafray
nasm
softimage|xsi
        textutils
        fileutils
        xinetd

When configuring many packages with Tcl, probably will need to add the following options to the command line:
--with-tcl=/usr/lib/tcl8.4 --enable-threads
(it's looking for TclConfig.sh file)

tclxml ./configure --with-tcl=/usr/lib/tcl8.4 --with-tk=/usr/lib/tk8.4 --enable-threads
        make
        make install
glimmer (tcl ide)

Volume Control Panel
        Record through microphone
        Use red outlet in PC board
        Allow "Microphone Boost"
        Maximum "Capture" volume; set as recording device
        Maximum "Microphone" volume

CVS
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/myproject checkout modulename

PPP Configuration
After running pppoeconf, change /etc/network/interfaces to look like the following (notice the addition of the last line):

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto dsl-provider
iface dsl-provider inet ppp
          provider dsl-provider
          pre-up ifconfig eth0 up

User Journal

Journal Journal: FreeBSD 5.4 Notes

FreeBSD

http://tips.enderunix.org/view.php?id=70&lang=en

FDisk
Accept the defaults for disks sizes, but the 256MB for /tmp is too small to install OpenOffice. Delete it with the "d" key, and delete the "/usr" partition as well. Move to the top of the screen and create two partitions. The first is 2000M for /tmp, and accept the defaults for /usr (should be the rest of the available space on the disk).

Installation
Additional installs:
1. kernel source
2. ports
3. cvsup

sysinstall
Configure::Distributions::ports
Configure::Distributions::src::kernel
Configure::Packages::net::cvsup
Configure::Packages::security::portaudit
Configure::Packages::sysutils::portupgrade

Configure Ethernet
use ifconfig to determine ethernet device
vi /etc/ppp/ppp.conf
set device PPPoE:[xx]0
delete lines for dial up modems.

vi /etc/rc.conf
ppp_enable="YES"
ppp_mode="ddial" /usr/sbin/ppp -quiet -auto papchap

run "sysinstall" and install cvsup:
cp /usr/share/examples/cvsup/ports-supfile /root/
vi /root/ports-supfile
CHANGME to cvsup[1-16].freebsd.org...
cvsup -g -L 2 /root/ports-supfile

Install portupgrade and portaudit:
cd /usr/ports/sysutils/portupgrade
make install clean
cd /usr/ports/security/portaudit
make install clean
run portaudit -F -a

Configuring Host Names:
# vi /etc/rc.conf
hostname=gateway.FreeeBSDsscherer2.org
# vi /etc/hosts
127.0.0.1 localhost gateway.FreeeBSDsscherer2.org

When upgrading ports, use the following:
portupgrade -P -r [package name]

-P tells it to use packages when available; -r tells it to upgrade recursively (managing dependencies)

Install Xorg
pkg_add -r xorg

Xorg -configure
Xorg -config /root/xorg.conf.new
[Ctrl+Alt+Backspace to exit]

vi /root/xorg.conf.new :w /root/xorg.conf :q

cd /usr/ports/x11-fonts/URW/
make install clean

cd /usr/ports/x11-fonts/bistream-vera/
make install clean

cd /usr/ports/x11-fonts/freefont/
make install clean

vi /root/xorg.conf

Section "Files"
                FontPath "/usr/X11R6/lib/X11/fonts/URW/"
                FontPath "/usr/X11R6/lib/X11/fonts/bistream-vera/"
                FontPath "/usr/X11R6/lib/X11/fonts/freefont/"
EndSection

Section "Screen"
        DefaultDepth 24
                SubSection "Display"
                                Viewport 0 0
                                Depth 24
                                Modes "1280x1024"
                EndSubSection
EndSection

For mouse scrolling, add the last two options:
Section "InputDevice"
                Identifier "Mouse0"
                Driver "mouse"
                Option "Protocol" "auto"
                Option "Device" "/dev/sysmouse"
                Option "ZAxisMapping" "4 5"
                Option "Buttons" "5"
EndSection

Install Gnome
pkg_add -r gnome2
This will automatically start Gnome on startup:
mv /usr/X11R6/etc/rc.d/gdm.sh.example /usr/X11R6/etc/rc.d/gdm.sh
To enable gnome on startup, use the following:
gdm_enable="YES"

When installing the Nvidia drivers, reverse the above process and restart. Gunzip and tar the driver, then:
make install

vi /etc/X11/xorg.conf
Section "Device"
        Driver "nvidia"
EndSection

OpenOffice
If your OpenOffice was installed successfully, the next step is to run setup program (on my FBSD5.3 it is /usr/local/OpenOffice.org1.1.2/setup), which will ask you few questions, and will install local files to your home directory. To launch OpenOffice, you have to type something like

  ~/OpenOffice.org1.1.2/soffice

It is good to create a shorter link to this file.

As of July 2004 I have found one other minor problem. There is a script in /usr/local/OpenOffice-x.x/programs called freebsd-local.sh. OpenOffice apparently needs this script to start, so it has to be copied over into your home/OpenOffice-x.x/programs directory.

Also, in the programs directory is a list of the various programs, including swriter, etc., for a custom launcher.

Tcl/Tk
libimg is needed for Trebuchet.
tcltls

Bash Shell
pkg_add -r bash2
chsh -s /usr/local/bin/bash2
This will change the shell default in /etc/shells. Log out and in again to let the change take place.

OpenSSL
pkg_add -r openssl
Copy /usr/local/openssl/openssl.cnf.sample to /usr/local/openssl/openssl.cnf
and edit it to fit your needs.

Sound
vi /boot/defaults/loader.conf
snd_ich_load="YES"

Nvidia Graphics
Need to install kernel source (sysinstall)
download FreeBSD driver
# make install

AGP (graphics device)
vi /boot/device.hints
hint.agp.0.disabled="1"

CDROM
For writing CDROMs, need:
> camcontrol devlist
The devices in parentheses at the end need to be writeable. Additionally, device xpt0 needs to be writeable.

Upgrading Gnome
First, run the gnome_upgrade.sh script.
If there are problems, run the log file through gnomelogalyzer.sh

DHCP with Router /etc/rc.conf
ifconfig_[xxx]0="DHCP"

VESA Driver
In the kernel, compile with:
option VESA
set an environment variable to SDL_VIDEODRIVER=vgl

Hostname
Some programs won't work correctly without an established hostname. Use the following command:
# hostname -s [localhost]
CVSUP
Copy the example file from: /usr/share/examples/cvsup/ports-supfile
Change the CHANGEME value to 'cvsup[1-16]'
Copy the file to /root
run:
cvsup /root/port-supfile
Run from the command line:
cvsup -g -L 2 /root/ports-supfile

BASH Prompt
export PS1="\u@\h: \w$ "

Bash Shell
pkg_add -r bash2
chsh -s /usr/local/bin/bash2
Add the following line to .profile:
LSCOLORS="ExGxFxdxCxDxDxhbadExEx"; export LSCOLORS
CLICOLOR="YES"; export CLICOLOR
PS1='\h:\w\$ '; export PS1

Slashdot Top Deals

Work expands to fill the time available. -- Cyril Northcote Parkinson, "The Economist", 1955

Working...