Almost Free Computers or Using Thin Clients With Debian Linux.

by Computothought in Circuits > Linux

73697 Views, 43 Favorites, 0 Comments

Almost Free Computers or Using Thin Clients With Debian Linux.

thinclientschange.png
Almost-free-computers-or-Using-Thin-Clients-with-D (1).jpg
ltspserver.jpg
So you want to set up a small network for a business or just for home. Think about thin clients. Using thin clients has always been an important thing with me.Though they are mini subsets of full computers they save money in electricity and require less support. Most thin clients work by depending on a computer server to dish them content. Usually this is done using software known as terminal server clients.   Normally most people use LTSP (linux terminal server project) to set up thin clients with linux. That does take a bit of setup. I will show an easier way.  This set up will be for Debian linux. If you have another version of linux besides Debian, the setup will need to be done differently. Debian linux is probably one of the most universal linux distros around. If you want to get Debian linux go to www.debian.org. My original experiment was with a Pentium 4 computer though lesser or even more powerful machines as servers might work.A virtual machine should work like a charm.  Whats Next?


Note: You can also install xrdp so that mswindows machines (or other rdp clients) can connect to the server.  Wrote this instructable before Ipads and Android tablets were common. You can get rdp clients for Android and the Ipad so you do not have to work with that old equipment. A more preferable solution.


What's Needed? (part 1)

Screenshot - 05172012 - 09:01:56 PM.png
You will need a full desktop computer (a laptop could be used) to act as the server already running Debian Linux. If you have a spare computer that you do not mind losing what is on the hard drive, you could install linux on it and go from there.  You need a computer network to connect the thin clients and the server (usually a network switch and cabling). You need some thin clients that support the rdp protocol. Not all thin clients do. I have some thin clients that expect to load the software to run them selves from the server when you turn them on.  So if you plan to purchase thin clients you need to know these things. You will want some that have the needed software already built in. Purchasing used thin clients from the net can be a real minefield of problems.  I know I bought some units of one kind and ended up with 4 good ones out of the six I bought. Sellers tend to sell them with parts missing. But I bought them so cheap I can not complain. The Compaq Evo series is what we use most. We also use some Neoware units. Both companies were bought by HP.. The Wyse unit pictured is based on the Compaq EVO series.

Note: if you have an Android or Ipad tablets with an rdp application, skip over to step3.

What's Needed? (part 2)

Screenshot - 05172012 - 09:02:41 PM.png
You will obviously need some (vga) monitors, keyboards and mice. You have to be careful here because some thin clients will only use usb mice and usb keyboards. Then there are some that only take ps2 keyboards and mice. Just a word of a caution. you will need a switch to support all the connections  and corresponding cable. You should be able to get the cables pre-made in various lengths. We make our own cables. Standard network cables should be cat5 with rj-45 ends and not telephone cable. Your computer dealer can easily help you here. Actually a hub is pictured and not a switch, but for the small network it should be fine.  Also the keyboard on the left has a usb connector and the one on the right has a ps2 type connector just so you know the difference.

Use a Handheld Too

PICT0214.JPG
PICT0217.JPG
PICT0216.JPG
PICT0219.JPG
Most of your newer internet tablets and touch pads now come with or you can get an rdp client. I also have xrdp on other systems. Even the Raspberry pi supports xrdp.

Note: all touchpad use was done with a Google Nexus 7.

Setting Up the Server.

Screenshot-Users Settings.png
Screenshot-Synaptic Package Manager .png

You need to have a root password or sudo password. When you set up the system, those details were entered then. You will probably want to set up users (aka logins) and passwords for all the people that might want to use your network (via system>administration>users and groups). I did a screenshot from ubuntu, but they should be similar. Then you need to add the software. Using the package manager (via system>administration>synaptic package manager) should be easy. You need to search for xrdp. Click on the box to set it for installation and then agree to any other software it wants to load. Then viola your done.

Command line install on debian based distros.

$ sudo apt-get install xrdp

Thin Client Setup.

Screenshot-Terminal Server Client.png
At this point connect all the cables up. You will need thin clients that get their ip (internet protocol address from the network which is usually the default. See the thin client manual if not.  Your router usually provides these addresses automatically. You need to have a router to protect your network anyway, so get one if you do not have one.  Next you will need to get the ipaddress of the server. This will let the thin clients know where to connect to.  Using the terminal (via Applications>Accesories>Terminal)

$ su -
Password:
root@theserver:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00 
          inet addr:192.168.1.110  Bcast:192.168.1.255  Mask:255.255.255.0 <<<<<<<<<<<<<<<<<<<<<<<<
          inet6 addr: fe80::218:e7ff:fe18:3939/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:326951 errors:0 dropped:0 overruns:0 frame:0
          TX packets:211798 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:417920634 (417.9 MB)  TX bytes:25377722 (25.3 MB)
          Interrupt:21 Base address:0x6000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:319 (319.0 B)  TX bytes:319 (319.0 B)

root@theserver:~# exit
$_

In this case the ip address is inet addr:192.168.1.110. From here when you set up the rdp client on your thin client. (Consult the thin client manual for details.) You can use this address as the host. Then fire up your thin clients and go to the terminal server client software and enter in the data. and connect. You have to do this step with each thin client.


Logging In

Screenshot-'192.168.1.110 - Terminal Server Client'.png
Time to log in with the usernames and passwords you set up earlier. You did write them down did you not.

You Are There.

Screenshot-'192.168.1.110 - Terminal Server Client'-1.png
Screenshot - 08302014 - 03:59:32 PM.png

You are there probably using a Microsoft based thin client to logon a linux system. Awesome. Sound will probably not work since the software is still being improved. You should be able to use most office type apps and the internet. You are now in Linux XWindows. You can't beat free! Good luck.

Note if you are running Microsoft MSWindows or Apple OSX with an rdp client they should easily connect also depending on the server's amount of ram memory.

Please let me know if you have any questions or comments.

After Thought.....

core-fx-pc-case_5.jpg