Configuration of FreeBSD
Posted by Tintin in IT, tags: config, FreeBSD, IT, Study, Tech Tip001. start gnome with startx:
echo “/usr/X11R6/bin/gnome-session” > ~/.xinitrc
/*
Comments:
% echo “#!/bin/sh” > ~/.xsession
% echo “/usr/X11R6/bin/gnome-session” >> ~/.xsession
% chmod +x ~/.xsession
*/
002. mount fat32,cdrom,ntfs partitions with chinese language:
/etc/fstab
-L=zh_CN.GBK,-D=CP936
003. mount extended fat32 partitions:”The secondary DOS partitions are found after ALL the primary partitions. For example, if you have an “E” partition as the second DOS partition on the second SCSI drive, you need to create the special files for “slice 5” in /dev, then mount /dev/da1s5″
the sequence begins at 5, read more on freebsd faq.
004. ask for password when enter the single user mode:
/etc/ttys
console none unknown off secure
secure->insecure
005. start with x windows automatically
/etc/ttys
ttyv8 “/usr/X11R6/bin/xdm -nodaemon” xterm off secure
off->on
in user’s home directory, do the follow operations:
% echo “#!/bin/sh” > ~/.xsession
% echo “/usr/X11R6/bin/gnome-session” >> ~/.xsession
% chmod +x ~/.xsession
Entries (RSS)