Journal TeachingMachines's 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
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
set device PPPoE:[xx]0
delete lines for dial up modems.
vi
ppp_enable="YES"
ppp_mode="ddial"
run "sysinstall" and install cvsup:
cp
vi
CHANGME to cvsup[1-16].freebsd.org...
cvsup -g -L 2
Install portupgrade and portaudit:
cd
make install clean
cd
make install clean
run portaudit -F -a
Configuring Host Names:
# vi
hostname=gateway.FreeeBSDsscherer2.org
# vi
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
[Ctrl+Alt+Backspace to exit]
vi
cd
make install clean
cd
make install clean
cd
make install clean
vi
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
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
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
~/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
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
This will change the shell default in
OpenSSL
pkg_add -r openssl
Copy
and edit it to fit your needs.
Sound
vi
snd_ich_load="YES"
Nvidia Graphics
Need to install kernel source (sysinstall)
download FreeBSD driver
# make install
AGP (graphics device)
vi
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
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:
Change the CHANGEME value to 'cvsup[1-16]'
Copy the file to
run:
cvsup
Run from the command line:
cvsup -g -L 2
BASH Prompt
export PS1="\u@\h: \w$ "
Bash Shell
pkg_add -r bash2
chsh -s
Add the following line to
LSCOLORS="ExGxFxdxCxDxDxhbadExEx"; export LSCOLORS
CLICOLOR="YES"; export CLICOLOR
PS1='\h:\w\$ '; export PS1
FreeBSD 5.4 Notes More Login
FreeBSD 5.4 Notes
Slashdot Top Deals