Skip to content

Linux Shell Access

Oliver Schmidt edited this page Mar 28, 2021 · 2 revisions

The Apple II can't support the strong encryption used by SSH. Therefore you have to install Telnet for unencrypted shell access with

sudo apt install telnetd

Limit Telnet access to connections from the Apple II with

sudo nano /etc/hosts.deny

Add the line below, then save and exit.

in.telnetd: ALL EXCEPT 10.20.30.40

Limit VT100 terminal output to 7-bit ASCII characters with

nano .profile

Add the lines below, then save and exit.

if [ "$TERM" = "vt100" ]; then
    export LANG=C
fi

Create an autologin script for user pi with

sudo nano /usr/local/bin/autologin

Add the lines below, then save and exit.

#!/bin/sh
/bin/login -f pi

Make the script executable with

sudo chmod +x /usr/local/bin/autologin

Activate the autologin with

sudo nano /etc/inetd.conf

Find the line below

telnet          stream  tcp     nowait  telnetd /usr/sbin/tcpd  /usr/sbin/in.telnetd

and change it into the line below, then save and exit.

telnet          stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/in.telnetd    -L /usr/local/bin/autologin

Reboot with

sudo reboot

Download ip65-apple2.zipfrom IP65 Releases and extract ip65.dsk. Make the disk image accessible to the Apple II. Run TELNET65, enter 10.10.10.10 as hostname and use the default port. Use Open Apple+Q to quit the current connection. Find more information in the IP65 Wiki.

RPi shell access use cases fall into two categories:

  • Local tasks on the RPi like

    • Regular clean shutdown via sudo halt

    • Almost everything explained on this page

    • Run the Midnight Commander:

      First install it with sudo apt install mc. Run it with mc. Use ESC+1 to ESC+0 for F1 to F10.

  • Access to remote resources like

    • Shell access to other Linux computers requiring strong encryption with ssh <hostname>

    • Surf the web with w3m:

      First install it with sudo apt install w3m. Run it with w3m <url>. Read the w3m MANUAL.

    • Download files from the web with wget <url>

    • Read and write emails with Mutt or Alpine

    • Read and write Usenet articles with tin or slrn

Clone this wiki locally