building your own terminal server.knightwise.com/podcasts/dc006.pdf · going to be gnome) * tip :...

20
Building your own Terminal server. In this Tutorial we will show you how to build your own Linux Terminal Server, using a copy of Ubuntu 9.04 ( you can also use 10.04), the NEATX server and the Nomachine Free NX client. You can listen to a detailed podcast on this topic as on HOW and WHY to use a setup like this and how you can make it work for you. This setup is perfect for small businesses running Linux, An educational scenario using a Computer-Classroom or even for your home : Playing around with Linux on different systems or getting a new lease on life for those old clunkers you have lying around. You can find the podcast episode entitled : KC0037 : Using Linux as a Terminal Server can be downloaded over at http://www.knightwise.com/knightcast-podcast/751-the-knightcast-kc0037--ubuntu-linux-as-a-terminal-s erver In the podcast episode we will go into detail about how a terminal server system works , what your hardware requirements would be and, of course how to use it in fun and creative ways. Enjoy. Start with a "Regular Ubuntu workstation" Building your own Terminal server. - 1

Upload: others

Post on 09-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Building your own Terminal server.

In this Tutorial we will show you how to build your own Linux Terminal Server, using a copy of Ubuntu9.04 ( you can also use 10.04), the NEATX server and the Nomachine Free NX client. You can listento a detailed podcast on this topic as on HOW and WHY to use a setup like this and how you can makeit work for you. This setup is perfect for small businesses running Linux, An educational scenario usinga Computer-Classroom or even for your home : Playing around with Linux on different systems orgetting a new lease on life for those old clunkers you have lying around. You can find the podcastepisode entitled : KC0037 : Using Linux as a Terminal Server can be downloaded over at http://www.knightwise.com/knightcast-podcast/751-the-knightcast-kc0037--ubuntu-linux-as-a-terminal-serverIn the podcast episode we will go into detail about how a terminal server system works , what yourhardware requirements would be and, of course how to use it in fun and creative ways. Enjoy.

Start with a "Regular Ubuntu workstation"

Building your own Terminal server. - 1

Page 2: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Your Ubuntu Terminal server is nothing more then a Ubuntu Desktop with terminal server capabilities.This has the amazing upside that ANYTHING you install on the Ubuntu desktop System, is accesablefrom anywhere and by any user you setup on this system.So lets start off by installing a Ubuntu workstation ( 10.04) and preform ALL the upgrades and Updates.For installing 'the perfect' system, I'll refer to you to our "UBUNTU AS IT SHOULD BE' tutorial whichyou can download at : http://www.knightwise.com/knightcast-podcast/669

Start from a fully installed workstation.

Make sure you have all the software installed that you want to use.Use the commands sudo apt-get update and sudo apt-get upgrade to make sure your system is up todate.

Building your own Terminal server. - 2

Page 3: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Install the NX Server.

Open a command line window and paste in the following line to add the NEATX repository to yoursystem. This way you can install the NEATX Server later.

sudo apt-get install python-software-properties && sudo add-apt-repository ppa:freenx-team

Next copy in the following command to update your repositories.

sudo apt-get update

Building your own Terminal server. - 3

Page 4: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Install the NX Server.

To install the NX Server copy the following line into your command line window.

sudo apt-get install neatx-server

Hit Y at the question mark.

Building your own Terminal server. - 4

Page 5: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Configure your Static IP.

If you have not done so at setup, configure your Ubuntu system to use a STATIC IP. That way all thehosts in your network can find your "server machine".Check for a free IP On your network ( Make sure its NOT an IP that is also handed out via the DHCPServer of your Router).

(1) To do this RIGHTCLICK on the network Icon in the top RIGHT hand side of the screen.

Building your own Terminal server. - 5

Page 6: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

(2) Next click on EDIT CONNECTIONS.

Configure a Static IP.

Select the connection that is hooked up to the network where your user(s) will be connecting on. ( This can be (1) wired or (2) wireless , mostly its the same connection your server is allready using).(3) Click EDIT.

Building your own Terminal server. - 6

Page 7: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Configure a Static IP.

(1) Choose the Second tab of the dialog box ( IPV Settings ) (2) Pull down the selection menu untill it says MANUAL.(3) Click ADD.

Building your own Terminal server. - 7

Page 8: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Configure a Static IP.

Enter the correct IP Adresses.(1) Address : The UNIQUE and FREE IP address that you want your server to have in your network.(2) Netmask : The Subnet number of your network. If you don't know this by heard, check the IPconfiguration of any one of your computers on the network. It will have received the correct Netmaskfrom the DHCP server on your router.(3) Gateway : The Ip address of your Router.(4) DNS Servers : Here you can enter the DNS Server IP of your provider or choose your own like theOPENDNS servers or , in this case , the GOOGLE DNS Server.When you are done : Click apply.To be safe that your network services have rebooted you might want to reboot your system.To check if everything has been configured correctly you can try connecting to the internet and see if

Building your own Terminal server. - 8

Page 9: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

you can still surf webpages.

Configure some users.

If you have just one account on the system, and you are the only one using it (even remotely) you canskip this step.However if you want OTHER people to have access to the server , and use their own settings andpreferences, you need to "'create" those users on the server first.

Building your own Terminal server. - 9

Page 10: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

To do this go to (1)SYSTEM - (2)ADMINISTRATION - (3)USERS AND GROUPS.

Add Users to your Terminal Server.

(1) Click on the UNLOCK icon and enter your password.(2) Click on ADD.(3) Enter the users Username and set his password.(4) Click OK.

Building your own Terminal server. - 10

Page 11: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Download the NoMachine Client.

On any machine you want to connect FROM download the Nomachine Client. This is a terminal serverclient available for Linux, Windows and the mac.(1) Go to http://www.nomachine.com/download.php(2) Download the NX Client for the operating system of your choice.(3) Install the application on the operating system of your choice.

Building your own Terminal server. - 11

Page 12: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Configure the no-machine client to connect to your terminal server.

Once installed The NX Client consists of 3 applications.(1) The NX Client (in this case for the mac) : This is the actual client that connects to your server.(2) The NX Connection wizard : This is the application (3) The NX Session administrator : This application helps you to terminate or resume any open"Terminal server Sessions" you have running.

Configure the No-Machine client to connect to your terminal server

Open the NX Connection Wizard.(1) Click NEXT.

Building your own Terminal server. - 12

Page 13: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Configure your No-Machine Client.

Enter the (1) Name, (2) the IP address and the (3) Portnumber of your server.(1) Enter a Unique name for this connection so its easy to remember. Once you have configuredSEVERAL connections it might help keeping track of which is which.(2) If you are on your servers LAN (local area network) you can enter your servers LAN ip. If you'vesetup a server behind a firewall and used a Dynamic DNS setup, you can enter the serversHOSTNAME ( fe : myterminalserver.dyndns.org ) here.(3) Enter the portnumber for the connection here. If you are doing this over a LAN, just use the defaultport 22. If your server is remotely behind a firewall and you have forwarded a DIFFERENT port to yourservers port 22 , enter that port number here.(4) Select the connection method to your server. The lower the bandwith of your connection, the lowerthe visual quality of your session. ( But the higher the compression ). So choose whatever way youwant to connect.(5) Click NEXT.

Building your own Terminal server. - 13

Page 14: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Configure your No-Machine Client.

(1) At the next screen : Click on Configure.

Building your own Terminal server. - 14

Page 15: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Configure your No-Machine Client.

(1) Make sure the pulldown menu is set to LINUX.(2) Set this to the Desktop Enviroment you installed (in Case of our 'standard' Ubuntu system this isgoing to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnomeand have Terminal clients run OTHER desktop enviroments while your Terminal server runs Gnome.(3) Make sure this setting is set to the right connection speed.(4) Choose the display setting via the Pulldown Menu. You can even choose FULLSCREEN.

Building your own Terminal server. - 15

Page 16: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Configure your No-Machine Client.

Click on the SERVICES Tag and select (1) Enable Multimedia support(2) Click Save(3) Click OK.

Building your own Terminal server. - 16

Page 17: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Connect to your Terminal Server.

(1) Enter your password(2) Click LOGIN to connect.* you might get a question to "authenticate" the server you are connecting to. Click OK.

Building your own Terminal server. - 17

Page 18: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Connect to your Terminal Server.

(1) The terminal server (our original Ubuntu Install) Logged in as User A.(2) The terminal client session ( Using the NXFree Client), Logged in as User B.

Building your own Terminal server. - 18

Page 19: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Visit www.knightwise.com for More.

On the edge of real and cyberspace ther is one place you can go. www.knightwise.com: The everydayadventures of a modern day technofile, filled with tips, tricks, manuals and how-to's on how to tunetechnology into your everyday life and let tech work for you. All this and more using Windows, Linux,and Mac computers, Web2.0 sites, services and more to upgrade from geek to cyber-citizen. RealTechnology for real people.

Visit our website : http://www.knightwise.com for more tips and tricks on how to tune technology intoyour way of life.

Building your own Terminal server. - 19

Page 20: Building your own Terminal server.knightwise.com/podcasts/dc006.pdf · going to be Gnome) * Tip : you can install KDE or whatever desktop you prefer ALONGSIDE gnome and have Terminal

Follow us on twitter via http://www.twitter.com/knightwise or send us feedback [email protected]

Subscribe to the media-feed and get all the Knightwise.com Docucasts, our Podcast AND thescreencast directly in your podcatcher. http://feeds.feedburner.com/feedburner/knightcast

If this manual was usefull for you ? Tweet about it , or tell your friends

Building your own Terminal server. - 20