Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
User Journal

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 /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

This discussion has been archived. No new comments can be posted.

FreeBSD 5.4 Notes

Comments Filter:

He has not acquired a fortune; the fortune has acquired him. -- Bion

Working...