XDMCP Login from Mac to Lubuntu 11.10

My old desktops run Lubuntu (Ubuntu but lightweight!) 11.10, which just became part of the official Ubuntu release.  Life is a lot zippier in Lubuntu compared to Ubuntu when you’re on Pentium III and Celeron machines.

I wanted to be able to login to these computers remotely with a GUI, sort of like Microsoft’s Remote Desktop but Linux style.  I didn’t want VNC because I wanted to be able to create a new login session instead of using the main console. Luckily XDMCP does exactly that and most of it is built into Ubuntu.

The Setup

Following one question previously posted on AskUbuntu, I proceeded to add the following snippet to /etc/lightdm/lightdm.conf:

[XDMCPServer]
enabled=true

Logging In

Then following the procedures posted by David Winter, I opened Terminal on my Mac, and typed in: /usr/X11R6/bin/X -query 192.168.0.1 (replace 192.168.0.1 with the IP address of your Lubuntu computer).  After a few moments the Ubuntu login screen showed up.  Perfect!

Terminal Shortcut

I made myself an alias so that I wouldn’t have to remember the complicated command line.  In ~/.bash_profile, I added:

alias xdmcp="/usr/X11R6/bin/X -query"

So now I can start a XDMCP session by typing in

xdmcp 192.168.0.1

htop – an improved “top”

While fooling around with Linux machines, one usually at some point in time has to see what programs are running on the machine and even kill processes which have locked up. Most Linux installations come with ‘top’ as a process viewer, but it’s not too user friendly. htop is a great replacement for the default top utility. htop is an interactive process viewer for Linux machines that runs in the command line. It’s equivalent to the Task Manager found on Windows computers.

htop

There are downfalls to top, like not being able to scroll down the process list, and easy shortcuts for sorting and managing processes. I don’t know why I haven’t found this earlier! Would have saved me a lot of time trying to figure out how to use top and why I couldn’t see all the processes.

This tutorial at Go2Linux outlines the installation method.

For the past few months I’ve been playing around with a VPS purchased from Linode (more about Linode may be blogged about at a later date). While setting things up I’ve come across many tutorials about various things, and I’ve decided to create a Linux category here just so that I can keep track of good tutorials and share them with you 🙂