HyperUSA Support Site
Monday, January 05, 2009 06:48 PM Home -> Linux ->Dial Up -> Method #1

Dialer Setup For Linux
Method #2
  • Step #1: Help Linux find your modem
    The first step is to tell Linux exactly where your modem is connected to your computer. Change your current working directory to /dev. Create a soft link to the serial port your modem is attached to by typing ln -s ttySx modem. Replace x using the the following guidelines:

    ttyS0 = com1
    ttyS1 = com2
    ttyS2 = com3
    ttyS3 = com4


    Notice the pattern set forth by the following example. These guidelines should assist you in selecting the proper settings. For example: my modem is on com2, so I would type ln -s ttyS1 modem. You can confirm that Linux has made a link to your modem by typing ls -al modem. If you see something like -

    lrwxrwxrwx 1 root 5 Mar 14 14:33 modem -> ttyS1

    You've completed step #1. If there is already a link to modem, but it's not correctly linked to the right serial port, just type rm modem to get rid of it and start over. When you are successful, go to the next step.

    Step #2: Change the speed for the serial port your modem is attached to by typing:

    stty 115200 < ttySx. Again replacing x as above.

    Step #3: Edit and place files

    Edit the following files and place them in the proper directories with the correct permissions. Do this only if you know how to use a unix editor such as vi, joe, pico, or emacs. The following is an example of how to change permissions for a file:

    chmod 0644 resolv.conf (enter)

    1. /etc/resolv.conf - Place this file in your /etc directory with the permission set to 0644.

    2. /etc/ppp/pap-secrets - Edit the file substituing your actual username@hex.net/password for username and password. Place the file in /etc/ppp and set the permissions to 0600.

    3. hex.net - Place hex.net in an executable directory such as /usr/bin, set the permissions to 0755.
    a. Replace username@hex.net with your actual username.
    b. Replace the phone number with your local access number to hex.net.
    c. Leave DEVICE = /dev/modem unless you have ppp version 2.3.10 or greater. In this case you would use DEVICE = modem.

    4. hex.net-down - place hex.net-down in an executable directory such as /usr/bin and set the permissions to 0755.

    5. You will type hex.net at the system prompt to dial into Hex.Net.

    6. To disconnect you must type hex.net-down at the system prompt.

    7. If you would like, you can always create an icon on your Xwindows desktop that points to /usr/bin/hex.net and /usr/bin/hex.net-down. This will allow access from your desktop.