Archive

Posts Tagged ‘Xorg’

Raspberry Ping

December 10th, 2012 subogero Comments off

My long awaited Raspberry Pi has arrived about 2 weeks ago. I’ve ordered some accessories along with it, like an SD card, a HDMI cable and a power supply. What was missing though, was any kind of input device. I flashed the Raspbian image to the SD, hooked it to the TV and go.

It booted! And then waited hopelessly for me to log in.

Fortunately my flat has built-in Ethernet everywhere, so I connected the Pi, and tried to ssh into it from an Ubuntu laptop. Success! I typed “startx” and an orphaned LXDE session popped up on the TV. Rather useless without a mouse.

But then I remembered the so called X-server, which has to be the largest program that does nothing for you according to Ken Thompson. Except that it does. Unix GUI programs don’t talk to the screen/keyboard/mouse directly, but through an X-server that handles these. And my Ubuntu had one already running. And the GUI-X communication can run over a network as well. So…

foo@bar$ ssh -X pi@raspberry  # ssh into the RPi allowing X communication
pi@raspberry$ lxsession       # start an LXDE desktop session on the RPi

and what popped up was the proof for the superiority of this weird, unfriendly, minimalistic thing called Unix:

Ubuntu & Raspberry on same screen

Ubuntu & Raspberry on same screen

Ladies and gentlemen: 2 full desktop environments running on 1 screen! And that was it for the first weekend with the Pi.

For the second weekend, I bought some more accessories: Logitech K400 wireless keyboard with built-in touchpad, 1 TB USB hard-disk and a powered USB-hub. Time to build my low-power home server. Built into the hidden recesses of my desk.

Home server

Home server

Then I turned my USB printer into a network-printer installing CUPS on the Raspberry. The last adventure so far was setting up an FTP-server on said fruit. Vsftpd. VS probably means very secure, which usually stands for totally unusable. And yes, it was a bloody nightmare to set up. At the end it turned out you have to comment out nearly all lines in the bloody /etc/pam.d/vsftpd file. Oh well.

Linux desktops on a desktop

Linux desktops on a desktop

Categories: Uncategorized Tags: , , ,