g++ -o isdnserver *.cpp
isdnserver-3.1.0.tar.gz
/home/user/
(the user directory is usually your home directory and is named according to your login name)/home/user/ directory
, if not type, in the console:cd /home/user/
(don't forget to press enter after the commands)isdnserver-3.1.0.tar.gz
withe the command:tar xzvf isdnserver-3.1.0.tar.gz
ls
/home/user/
should appear, all directories will end with
a slash '/'
. Look for a new created directory named isdnserver-3.1.0/
.
After you've found it, change into it with:cd isdnserver-3.1.0/
(the absolute path is now /home/user/isdnserver-3.1.0/)
ls
.ls
(it will list the files and directories)isdnserver/
and cd into it.cd isdnserver/
(the absolute path is now /home/user/isdnserver-3.1.0/isdnserver/)
g++ -o isdnserver *.cpp
(/home/user/isdnserver-3.1.0/isdnserver/)
.su
su
command, if you don't know it, contact your administrator.cp ./isdnserver /usr/local/bin/
(this copies the isdnserver binary to the /usr/local/bin/ directory)cp ./isdnserverdaemon /etc/rc.d/init.d/
(the isdnserver start/stop script is copied to /etc/rc.d/init.d/, this is usually the standard directory,
but check if this matches your distribution's standards)cp ./isdnserver.config /etc/
(copy the configuration file to /etc/)cd /etc/rc.d/
(We change to the "top level" initalization directory)/etc/rc.d/
ls
(You are now in /etc/rc.d/ so there's no need to add a path)init.d/ rc* rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rc.local* rc.modules* rc.sysinit*
cd rc0.d
ls
K00linuxconf@ K10xfs@ K20partmon@ K45named@ K60saslauthd@ K87slpd@ K95harddrake@
K05keytable@ K15httpd@ K20rwhod@ K50xinetd@ K69sound@ K88syslog@ K99switchprofile@
K09dm@ K15numlock@ K30postfix@ K60atd@ K70alsa@ K89internet@ S00single@
K09smb@ K15postgresql@ K35dhcpd@ K60crond@ K74apmd@ K90network@
K10devfsd@ K20kheader@ K44rawdevices@ K60cups@ K80random@ K92iptables@
isdenserverdaemon
, that you previously copied to /etc/rc.d/init.d
should start after K90network@. The name for our link should be K91isdnserverdaemon
then, if we look at
the example I provided. As your configuration will vary from mine, your starting number could be different than 91.
Just make sure that you start it after network
. Now let's proceed with the linking.ln -s /etc/rc.d/inet.d/isdnserverdaemon K91isdnserverdaemon
ls
K91isdnserverdaemon
. Change to the "upper" directory and then
to the next rc#.d, that would be rc1.d. Do the linking, until you reach rc5.d.cd..
(changes to the "upper" directory, in this case /etc/rc.d/
)cd rc1.d
ln -s /etc/rc.d/inet.d/isdnserverdaemon K##isdnserverdaemon
(exchange ## with a number that is greater than the network's script of the init directory you're in)S10network
, then change the name of your link as well, in this case S11isdnserverdaemon
.previous page | Top | next page |