Posts Tagged “Study”

001. 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

Comments No Comments »

Section 0 – Everything
Section 1 – User Commands
Section 2 – System Calls
Section 3 – Standard Library Calls
Section 4 – Special Files
Section 5 – File Formats and Conversions
Section 6 – Games for Linux
Section 7 – Macro Packages and Conventions
Section 8 – System Management Commands
Section 9 – Kernel Routines

Comments No Comments »

ssh -f -N -D port remoteIP -lroot

Comments No Comments »