Archive

Archive for January, 2008

Installing NoMachines’ NX on Ubuntu 7.10 Gutsy

January 18th, 2008
Comments Off

FYI - This does not work on Dapper

On completion you’ll have a working NX Server on a non-standard ssh port. As well as a windows client to connect with.

Assumptions:

  • You are running Ubuntu 7.10
  • Running Gnome
  • You do not yet have ssh server installed.


Open a Terminal

Press Alt+F2, type: gnome-terminal

You might as well leave this terminal open until the tutorial is complete, you’ll be using it several times. Also, finish each terminal command with the “Enter” key


Install the SSH-Ser
vice
Type the following into the terminal window:

sudo apt-get install openssh-server


Change the SSH Port

Next, for security reasons we need to change the default SSH port from 22, to some other value. I’ll use 22111 for this example

Press Alt+F2, type gksudo gedit /etc/ssh/sshd_config

On about Line 5, you’ll see “Port 22” change 22 to 22111 or whatever port you’ve decided to use.

Save and Close GEdit


Restarting the SSH Service

Enable the changes to SSH by restarting the service. This can be done by rebooting or typing the following in a command prompt.

Type the following into a terminal window:
sudo /etc/init.d/ssh restart
You should see the following:
Restarting OpenBSD Secure Shell server sshd [ OK ]

Download Required Components
Navigate to the following site:
http://www.nomachine.com/download-package.php?Prod_Id=5

Download the following by clicking the orange buttons

  • Client
  • Node
  • Server

Install Required Components
Install each of the 3 components by double clicking on each in the following order

  • Client
  • Node
  • Server


Configure Server Settings

Next we need to configure NX to allow existing users to remotely connect. We will be modifying a file called server.cfg in the folder /usr/NX/etc

1) Press Alt+F2 and type: gksudo gedit /usr/NX/etc/server.cfg

2) Find the following lines, If the line has a (#) pound sign in front of it, remove it. Make sure to change the value to “1″

EnableSessionShadowing = “1″
EnableInteractiveSessionShadowing = “1″
EnableInteractiveDesktopSharing = “1″
EnableFullDesktopSharing = “1″
EnableUserDB = “1″
EnablePasswordDB = “1″

SSHDPort = “22111″
SSHDAuthPort = “22111″

3) Now editing the same file, we need to change the default port from 22, to the same non-standard port IE (22111)

4) Save and Close gEdit

Allow an Existing User Access
Type the following into the terminal window:

sudo ./usr/NX/bin/nxserver –useradd chris –administrator
sudo ./usr/NX/bin/nxserver –userenable chris

sudo ./usr/NX/bin/nxserver –restart

Next, you’ll need to configure your router to pass port 22111 to this computer

Type the following into the terminal window to find your IP Address:
ifconfig eth0

Find where it says “inet addr: 192.168.x.x”

Now use your Router’s web interface to pass port 22111 into the above listed IP address. Save and Close


Configure your Client

From a windows machine, navigate to the following location:
http://www.nomachine.com/download-client-windows.php

Download NX Client for Windows, Install and run the setup wizard. Make sure you change the port! If you are connecting to the linux machine from inside your network, use it’s internal (192.168.x.x) address. From outside the network use the address found at the top of the page here:
http://www.whatsmyip.org/

admin Linux Tutorials

Bash - Cron Archive Script

January 17th, 2008
Comments Off

Below is my cron script for running rsync backups

Read more…

admin Linux Tutorials