Communicate with your Linux box using your Palm Pilot as a terminal

By Nicholas Petreley, LinuxWorld.com |  Development, Linux 6 comments

I have admitted several times in this column that I can be absentminded and careless. At least I meant to. Regardless, this tendency got me into an annoying situation recently. I made several changes to my system at once. I swapped my network card, rebuilt the kernel to try out different USB drivers, and made a few other changes. But I forgot to make changes to the file /etc/modules, which would tell the system to load the appropriate modules for my USB driver, keyboard, mouse, and new network card.

When I rebooted the system, I couldn't operate the machine. Linux ignored my USB keyboard and mouse and I couldn't contact the computer over the network using ssh (secure shell) because it didn't load support for the new network card. (See Resources for a link.)

There are several very simple ways of dealing with this situation. For example, I could hunt down a keyboard with a PS/2 connector and plug it in, or I could reboot the system with a previous kernel version. Being lazy by nature, I didn't want to look for a keyboard. Being impatient by nature, I didn't want to wait for the system to reboot. I especially dislike reboots. My system seems to take forever to initialize the IDE drives and controllers, the Intel Ethernet Express Pro management BIOS, and the Adaptec SCSI BIOS at boot time.

Fortunately, I anticipated such an event and left myself one more option. I set up Linux so that I could access it using my Palm Pilot as a VT100 terminal connected to the serial port. I logged in via the Palm Pilot, loaded the USB driver and modules for my keyboard, and was back in business in a wink.

There are other ways a Palm Pilot terminal can help you work or get you out of a jam. I imagine it could really come in handy as a debugging tool, especially if you're building a full-screen graphical application. You can redirect various types of error or debugging messages to your Palm terminal while you develop your application. Your Palm instantly takes on the role of a second monitor.

Here's how to set up your Linux system to work that way: First, make sure your Linux kernel supports the serial ports on your machine, and also supports the console on the serial port. Your kernel may already support these options, but if not, you can build a new kernel yourself. If you use make menuconfig as your kernel configuration tool, select the Character Devices section and mark these two options in the screen that comes up:


<*> Standard/generic (8250/16550 and compatible UARTs) serial support
  [*]  Support for console on serial port

You also need the program getty or one like it installed on your system (alternatives include agetty). Next, edit your /etc/inittab file to include a line like the following:


T0:23:respawn:/sbin/getty -h -L ttyS0 9600 vt100

In the above example, getty is looking for the Palm Pilot on the first serial port, which PC users tend to think of as COM1. In Linux that's currently called ttyS0. If you want to use COM2, change that to ttyS1. This line also assumes that you'll be talking to the Palm at 9600 bps. The defaults for the connection are 8 bits, 1 stop bit, and no parity, which is something you need to remember when setting up your Palm Pilot terminal program.

Once you have decided how to configure this line in /etc/inittab, run the following command to tell your system to reread the /etc/inittab file. (Remember, this isn't Windows -- you don't need to reboot to make your system recognize changes to just about anything except the kernel itself, and there are even exceptions to that rule.)

6 comments

    crespo
    crespo 45 weeks ago
    I could hunt down a keyboard with a PS/2 connector and plug it in, or I could reboot the system with a previous kernel version. Being lazy by nature, I didn't want to look for a keyboard. Being impatient by nature, I didn't want to wait for the system to reboot operating manuals design
    Anonymous 1 year ago
    It happens sometime situation becomes hasty, but as mentioned dealing is easy to hoping for best, there always be advantage and disadvantage but looking forward for new combination.Web Design Los Angeles Graphic Design Portfolio
    Anonymous 2 years ago
    Off course Linux great OS(open source) thx for best source links of linux. Real estate Florida Real estate Tampa bay
    Anonymous 2 years ago
    You know ,I have some wow gold,and my friend also has some World of Warcraft Gold,do you kouw they have the same meaning,Both of them can be calledwarcraft gold,I just want to buy wow gold,because there are many cheap wow gold

      Add a comment

      Post a comment using one of these accounts
      Or join now
      At least 6 characters

      Note: Comment will appear soon after you have activated your account.
      Obscene/spam comments will be removed and accounts suspended.
      The information you submit is subject to our Privacy Policy and Terms of Service.

      ITworld LIVE

      DevelopmentWhite Papers & Webcasts

      White Paper

      HP NonStop SQL Fundamentals whitepaper

      This whitepaper offers a detailed look into the fundamentals of HP NonStop SQL solutions. See how this system delivers unprecedented levels of application availability with fail-safe data integrity and meets the needs of enterprises with large-scale business critical applications.

      White Paper

      Nebraska Medical Center case study

      See how the Nebraska Medical Center implemented a SQL solution to make information more readily available to streamline operations, improve patient care and facilitate medical research with an enterprise solution running on HP NonStop servers.

      White Paper

      Concepts of NonStop SQL/MX

      For DBAs and developers who are familiar with Oracle solutions and want to learn about NonStop SQL/MX, this whitepaper provides an overview of the similarities and differences between the two products-with a specific focus on implementation.

      White Paper

      6 Things Your CIO Needs to Know About Requirements

      If your organization is not predictably successful on technology projects, there is likely an issue in requirements. CIOs must take action and own requirements maturity improvement. There are 6 main things a CIO must know about requirements.

      Webcast On Demand

      User Experience Monitoring

      In this webinar, you will learn hints & tips for improving end-user response times from Forrester Research analyst, Jean-Pierre Garbani.

      Sponsor: Nimsoft

      See more White Papers | Webcasts

      Ask a question

      Ask a Question