Apple //c as a Terminal, Part 2

Today, I managed to make it work, with a little help from several web resources.  The first was:

http://www.cyberciti.biz/faq/find-out-linux-serial-ports-with-setserial/

 I tried:
$ dmesg | grep tty

 I got:

[  0.000000] console [tty0] enabled
 [  0.688953] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

 I tried:

setserial -g /dev/ttyS[0123]

 I got:

The program ‘setserial’ is currently not installed  You can install it by typing:
sudo apt-get install setserial

 I tried:

sudo apt-get install setserial
 [sudo] password for XXXX: (changed to XXXX for privacy)

I do not know if the above helped, but I did try it so I have listed it.  I didn’t have any luck at this point.  So I tried something else.  There is a link to an old article on under resources called Apple as a terminal.  Looking through, it they are connecting to a different version of Linux.  So I googled “ubuntu inittab serial console” and got a link to this:

https://help.ubuntu.com/community/SerialConsoleHowto

Now I am running Ubuntu 13.04 Raring Ringtail which is newer than Karmic so I created ttyS0.conf using GEDIT and saving it to my documents folder.  I didn’t have permission to save it directly in the correct directory.

# ttyS0 – getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.start on stopped rc or RUNLEVEL=[2345]
stop on runlevel [!2345]respawn
exec /sbin/getty -L 9600 ttyS0 vt100

 I made two changes above from what was listed.  I changed the baud rate from 115000 to 9600 and the terminal from vt102 to vt100.  Once the file was saved in my documents folder I opened a Linux terminal window and:

cd /Documents
sudo cp ttyS0.conf /etc/init/ttyS0.conf
[sudo] password for XXXX: (changed to XXXX for privacy)
sudo start ttyS0
[sudo] password for XXXX: (changed to XXXX for privacy)

At this point I installed minicom on the Linux machine.  I soon found out this was not needed.  Over on the Apple //c I loaded up ZLink and tried to connect with minicom with no luck.  I exited minicom.  In ZLink in used Open Apple-T twice to enter terminal Emulation and set it to vt100.  I then used Open Apple-W to change the data word format.  I changed it to 9600 8N1 and entered.  Once back at the main screen.  I hit enter and up comes:

Ubuntu 13.04 SmallDen ttyS0

SmallDen Login:

So, Long story short.  I can now use my Apple //c as a terminal to my Linux Laptop.  I don’t have a particular use for that right now, but who knows what may come up.

SECURITY NOTES:

My laptop does not have a serial port unless it is in the docking station. but not being a Linux tech person I will suggest that this could open a security hole for somebody who is setup differently.  I do know there would be some that would say my use of sudo is not advisable.  If you know of any other holes I may have created or anything I should have done differently, I am always interested in learning.

 

 

 

Posted in Apple //c, Connection, Linux Tagged with: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*