steptail.com

How many light bulbs does it take to change a penguin?

User Tools

Site Tools


guides:virtual_modem:section_4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
guides:virtual_modem:section_4 [2019-02-18 03:05]
omolini [Making Virtual Modem run at startup]
guides:virtual_modem:section_4 [2019-08-22 18:22]
omolini [Name of the serial port]
Line 1: Line 1:
 ====== Section 4 - Setting up Virtual Modem ====== ====== Section 4 - Setting up Virtual Modem ======
 ==== Required packages ==== ==== Required packages ====
-  * For the connection script to work properly, your Raspbian installation needs a few prerequisite packages. The most important of these is the PPP daemon "​pppd"​ and IP Tables to route packages.+For the connection script to work properly, your Raspbian installation needs a few prerequisite packages. The most important of these is the PPP daemon ​**"​pppd"​** and **IP Tables** to route packages.
   * Run the following commands to install pppd and iptables:   * Run the following commands to install pppd and iptables:
 <code bash> <code bash>
Line 26: Line 26:
  
 ==== Name of the serial port ==== ==== Name of the serial port ====
-The VModem script has been preconfigured to use **ttyUSB0** ​ as the default serial port name. Usually ​Raspbian will call its first serial port adapter **ttyUSB0** when using USB to Serial converters, and you will not need to modify this script. However, if the name is something **different**,​ such as **ttyAMA0**,​ you may need to update the script to point to the correct serial port name. The following section described how to double-check your serial port name:+The VModem script has been preconfigured to use **ttyUSB0** ​ as the default serial port name. Typically ​Raspbian will call its first serial port adapter **ttyUSB0** when using USB to Serial converters, and you won'​t ​need to modify this script. However, if the name is something **different**,​ such as **ttyAMA0**,​ you may need to update the script to point to the correct serial port name. The following section described how to double-check your serial port name:
  
 To confirm your serial port name, do the following: To confirm your serial port name, do the following:
Line 65: Line 65:
  
 ===== Getting online ===== ===== Getting online =====
-Check out specific guides on how to interface different computers and devices with VModem:+Now you can proceed to check out the system ​specific guides on how to interface different ​vintage ​computers and devices with VModem:
  
   * [[Guides:​Connecting Windows 3.1 to the Internet]] ​   * [[Guides:​Connecting Windows 3.1 to the Internet]] ​
-  * [[Guides:​Connecting Windows ​95/98 to the Internet]] COMING SOON+  * [[Guides:​Connecting Windows ​9x to the Internet]] 
 +  * [[Guides:​Connecting a Macintosh Classic ​to the Internet]] COMING SOON
   * [[Guides:​Connecting a Digital VT100 compatible terminal to the Internet]] COMING SOON   * [[Guides:​Connecting a Digital VT100 compatible terminal to the Internet]] COMING SOON
  
Line 75: Line 76:
 ===== Making Virtual Modem run at startup ===== ===== Making Virtual Modem run at startup =====
 After you **have verified** that the VModem works properly on the console (see previous section), and you are able to connect to the Internet, you can make VModem run automatically as a background process after the Raspberry Pi is powered on. After you **have verified** that the VModem works properly on the console (see previous section), and you are able to connect to the Internet, you can make VModem run automatically as a background process after the Raspberry Pi is powered on.
-  * Run the following command: 
  
 +There are two ways you can do this:
 +
 +**1)** You can either run the following command which will automatically add VModem to your /​etc/​rc.local:​
 <code bash> <code bash>
 sudo sh -c '​printf "`head -n -1 /​etc/​rc.local`\n\ncd /​boot/​vmodem\n./​vmodem.sh &​\n\nexit 0\n" >/​etc/​rc.local'​ sudo sh -c '​printf "`head -n -1 /​etc/​rc.local`\n\ncd /​boot/​vmodem\n./​vmodem.sh &​\n\nexit 0\n" >/​etc/​rc.local'​
 </​code>​ </​code>​
-  ​To restart the Raspberry and test the changes, issue the following ​command:+ 
 +**2)** Or you can edit your rc.local manually. Make sure your /​etc/​rc.local has the following ​at the bottom:
 <code bash> <code bash>
-sudo shutdown -r now+# Start serial port and simulate a modem 
 +cd /​boot/​vmodem/​ 
 +/​boot/​vmodem/​vmodem.sh & 
 +exit 0
 </​code>​ </​code>​
-  ​* After the Raspberry Pi boots, VModem should automatically start up with the system and start expecting connections on serial.+ 
 + 
 + 
 +  ​Restart Raspberry and test the changes. ​After rebooting, VModem should automatically start up with system ​processes ​and start expecting connections on serial.
  
 ==== Skip to other sections ==== ==== Skip to other sections ====
guides/virtual_modem/section_4.txt · Last modified: 2023-11-24 23:16 by omolini