Linux Setup Instructions

These instructions are provided 'as is' and are for information purposes only. We hope they will help you setup your Linux box to dial in and create a PPP connection with Valuelinx.net. This document is not fully supported by the Valuelinx.net technical support staff. If you have any questions, you may give us a call or send us an email, and we will assist in any way that we can. Also keep in mind this method of connection is by far not the only way to connect. With most Distribution's there are programs or interfaces that are much easier to work with that will configure alot of the PPP connection that you need automatically.


There are 4 files that are necessary to connect to Valuelinx.net.

They are:

/etc/ppp/options,

/etc/ppp/pap-secrets,

/etc/ppp/chatscript,

and

/etc/resolv.conf.

As well as the files listed above, we suggest creating two more files to simplify connecting and disconnecting. They are 'connect' and 'disconnect', and we would suggest putting them in your home directory so that they are easy to get to.


/etc/ppp/options

Your /etc/ppp/options file sets your maximum send and receive units, locks the modem so that no other process may use it while online, sets a default route to the PPP connection once you're online, and sets your username. Make sure to replace ' username' with your login name before you try to log on.

Your /etc/ppp/options file should read as follows:

# Global PPP Options File

mtu 1500
mru 1500
lock
crtscts
modem
defaultroute
user username
# end of PPP Options File


/etc/ppp/chatscript

Your /etc/ppp/chatscript file sets the modem abort signals (No Carrier and Busy), sets your init string (AT&F), the phone number (ATDT5550000 where 5550000 is an example number), and what it should expect on a successful connection (Connect). You should change the init string and phone number to the ones that are correct for your modem and location. If you're not sure what they are, give our technical support a call or send us an email and we can provide you with them.

Your /etc/ppp/chatscript file should read as follows:

#Begin chatscript

ABORT 'NO CARRIER'
ABORT 'BUSY'
"" "AT&F"
"OK" ATDT5550000
"CONNECT"
#end chatscript



NOTE: 5550000 is an example number. Click here for our dailup numbers



/etc/ppp/pap-secrets

Your /etc/ppp/pap-secrets file simply sets your password. Make sure that you replace 'password' with your password before you try to connect.

Your /etc/ppp/pap-secrets file should read as follows:

# Secrets for authentication using PAP

# client server secret IP addresses
* * password
# End of Secrets File


/etc/resolv.conf

Your /etc/resolv.conf sets your DNS.

Your /etc/resolv.conf file should read as follows:

nameserver 66.163.211.2
nameserver 66.163.211.3
search valuelinx.net


Connect
Your connect file starts pppd and tells it to connect using the chatscript file. It also sets the com port your modem is on (/dev/cua1) and the speed at which your modem communicates with your computer (115200). You should set these to match the modem you are using. (Most modems communicate at 115200) To set the com port, use /dev/cua0 for COM1, /dev/cua1 for COM2, /dev/cua2 for COM3, etc.

Your connect file should read as follows (all one line):




/usr/sbin/pppd /dev/cua1 115200 connect 'usr/sbin/chat -f /etc/ppp/chatscript'

Disconnect
Your disconnect file simply kills the pppd process.
Your >disconnect> file should read as follows (all one line):

kill `cat /var/run/ppp0.pid`



Last Notes


The last thing you will need to do is set the connect and disconnect files so that they can be executed. At a prompt, type 'chmod o+x connect' and then 'chmod o+x disconnect'. This will set the two files executable by only the owner. You might want to use 'a+x' instead of 'o+x' so that anyone can execute them, but we would suggest using extreme caution in doing so. Another suggestion might be to move the connect and disconnect files into a directory such as '/usr/local/bin', or somewhere in your path so that they can be easily executed.