Posts Tagged “config”

/etc/ppp/ppp.conf
//**************************//
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0

njadsl:
set device PPPoE:fxp0 # replace fxp0 with your Ethernet device
set authname b00265276@adsl # replace with your adsl account
set authkey 86667024 # replace with your password
set dial
set login
add default HISADDR
//**************************//

use ifconfig to check the Ethernet device
dial command:
# ppp -ddial njadsl

succeeded, but got a warning, ignore it:P

# ifconfig
……
tun0: ……
inet 221.226.190.204 –> 218.2.135.62 netmask 0xffffffff
Opened by PID 930

use netstat -r to check the route info
#route delete default
#route add default 218.2.135.62
succeeded

/etc/rc.conf
//**************//
ppp_enable=”YES”
ppp_mode=”ddial”
ppp_nat=”YES”
ppp_profile=”njadsl”
//**************//

defaul browser mozilla
no chinese input now
but mpd is the recommended way, I’ll try later
and wanna try nat support:P

Comments 3 Comments »

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 »