This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 
                    guides:virtual_modem:script [2022-12-21 23:03] omolini  | 
                
                    guides:virtual_modem:script [2022-12-28 03:32] (current) omolini  | 
            ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| # o PuTTY | # o PuTTY | ||
| # | # | ||
| - | # PPP connectivity will initialize correctly under the following configurations: | + | # PPP dial-up connectivity tested to initialize under the following configurations: | 
| # | # | ||
| - | # o Microsoft Windows 3.1 | + | # o Windows 3.1 | 
| - | # - Trumpet Winsock | + | # - Trumpet Winsock 3.0 revision D | 
| # | # | ||
| - | # o Microsoft Windows 95 OSR 2.5 + DUN 1.4 | + | # o Windows 95 OSR 2.5 + DUN 1.4 | 
| - | # - Generic | + | # - Generic Modem | 
| # - Standard 28800 bps Modem | # - Standard 28800 bps Modem | ||
| # | # | ||
| - | # o Microsoft Windows 98 | + | # o Windows 98 | 
| - | # - Generic | + | # - Generic Modem | 
| # - Standard 9 600 bps modem | # - Standard 9 600 bps modem | ||
| # - Standard 33 600 bps modem | # - Standard 33 600 bps modem | ||
| Line 50: | Line 50: | ||
| # - Standard 56 000 bps X2 modem | # - Standard 56 000 bps X2 modem | ||
| # - Standard 56 000 bps K56Flex modem | # - Standard 56 000 bps K56Flex modem | ||
| + | # | ||
| + | # o Windows 2000 | ||
| + | # - Generic Modem | ||
| + | # - Standard 19200 bps Modem | ||
| + | # | ||
| + | # Help us test and add more supported systems!  | ||
| + | # Contact us on Discord, links at the bottom of the Virtual Modem page. | ||
| # | # | ||
| # Script version | # Script version | ||
| - | vmodver=1.7.0 | + | vmodver=1.7.1 | 
| # CONFIGURATION | # CONFIGURATION | ||
| Line 168: | Line 175: | ||
| sendtty "\n" | sendtty "\n" | ||
| sendtty "Virtual Modem bootstrap for PPP link v$vmodver\n" | sendtty "Virtual Modem bootstrap for PPP link v$vmodver\n" | ||
| - | sendtty "Connection speed set to $baud baud\n" | + | sendtty "Connection speed set to $baud baud.\n" | 
| + | sendtty "My current IP address is $(hostname -I).\n" | ||
| sendtty "\n" | sendtty "\n" | ||
| sendtty "TYPE \"HELP\" FOR COMMAND REFERENCE.\n" | sendtty "TYPE \"HELP\" FOR COMMAND REFERENCE.\n" | ||
| Line 457: | Line 465: | ||
| sendtty "General commands:\n" | sendtty "General commands:\n" | ||
| sendtty "HELP.......Display this help\n" | sendtty "HELP.......Display this help\n" | ||
| - | sendtty "LOGIN......Fork a new linux login on serial\n" | + | sendtty "LOGIN......Drop to shell\n" | 
| sendtty "SETUP......Change settings\n" | sendtty "SETUP......Change settings\n" | ||
| sendtty "EXIT.......End this script\n" | sendtty "EXIT.......End this script\n" | ||
| Line 505: | Line 513: | ||
| sendtty "Enter password: " | sendtty "Enter password: " | ||
| readtty password | readtty password | ||
| - | #sudo wpa_cli -i wlan0 remove_network 0 | + | sudo wpa_cli -i wlan0 remove_network 0 | 
| - | #sudo wpa_cli -i wlan0 add_network | + | sudo wpa_cli -i wlan0 add_network | 
| - | #sudo wpa_cli -i wlan0 set_network 0 ssid "\"$ssid\"" | + | sudo wpa_cli -i wlan0 set_network 0 ssid "\"$ssid\"" | 
| - | #sudo wpa_cli -i wlan0 set_network 0 psk "\"$password\"" | + | sudo wpa_cli -i wlan0 set_network 0 psk "\"$password\"" | 
| - | #sudo wpa_cli -i wlan0 select_network 0 | + | sudo wpa_cli -i wlan0 select_network 0 | 
| - | #sudo wpa_cli -i wlan0 enable_network 0 | + | sudo wpa_cli -i wlan0 enable_network 0 | 
| # Modify password for current Wi-Fi network | # Modify password for current Wi-Fi network | ||
| elif [[ "$selection" == "2" ]]; then | elif [[ "$selection" == "2" ]]; then | ||
| sendtty "Enter new password: " | sendtty "Enter new password: " | ||
| readtty password | readtty password | ||
| - | #sudo wpa_cli -i wlan0 set_network 0 psk "\"$password\"" | + | sudo wpa_cli -i wlan0 set_network 0 psk "\"$password\"" | 
| # Disconnect from current Wi-Fi network | # Disconnect from current Wi-Fi network | ||
| elif [[ "$selection" == "3" ]]; then | elif [[ "$selection" == "3" ]]; then | ||
| sendtty "Disconnecting from current Wi-Fi network\n" | sendtty "Disconnecting from current Wi-Fi network\n" | ||
| - | #sudo wpa_cli -i wlan0 disable_network 0 | + | sudo wpa_cli -i wlan0 disable_network 0 | 
| # Display current Wi-Fi connection status | # Display current Wi-Fi connection status | ||
| elif [[ "$selection" == "4" ]]; then | elif [[ "$selection" == "4" ]]; then | ||