Debian Admin - Your way to Debian World

November 5, 2006

Securely Administring Remote Machines Using Freenx in Ubuntu

by @ 1:02 am. Filed under Other Linux

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

FreeNX is a system that allows you to access your desktop from another machine over the internet. You can use this to login graphically to your desktop from a remote location. One example of its use would be to have a FreeNX server set up on your home computer, and graphically logging in to the home computer from your work computer, using a FreeNX client.

Installing the FreeNX server in Ubuntu

You need to add the following source list to your /etc/apt/sources.list file

sudo gedit /etc/apt/sources.list

If you are using Ubuntu Dapper you need to add the following lines

deb http://free.linux.hp.com/~brett/seveas/freenx dapper-seveas freenx
deb-src http://free.linux.hp.com/~brett/seveas/freenx dapper-seveas freenx

Once you add above sources you need to save and exit this file now you need to

You need to authenticate these packages using the following command

wget http://free.linux.hp.com/~brett/seveas/freenx/1135D466.gpg -O- | sudo apt-key add -

Once you add above sources you need to save and exit this file now you need toYou need to authenticate these packages using the following command

wget http://seveas.theplayboymansion.net/seveas/1135D466.gpg -O- | sudo apt-key add -

Now you need to update the source list using the following command

sudo apt-get update

Install Freenx server

sudo apt-get install freenx

this will complate all the required packages for freenx.

One more important note is you have to install ssh package in your ubuntu machine because by default freenx server will use port 22 for communicating over ssh.

Install ssh in ubuntu

sudo apt-get install ssh

On some machines or networks, port 22 may be blocked or not allowed. For example, some providers block port 22. To make the SSH server listen on port 877, you can do the following

Edit the file /etc/ssh/sshd_config

sudo gedit /etc/ssh/sshd_config

Find

Port 22

and change it to

Port 877

You then need to restart SSHD. Try

sudo /etc/init.d/ssh restart

Edit the file /etc/nxserver/node.conf

sudo gedit /etc/nxserver/node.conf

Find

# The port number where local ’sshd’ is listening.

#SSHD_PORT=22

and change it to

# The port number where local ’sshd’ is listening.

SSHD_PORT=877

That is, change the port number to the one that sshd is listening to, and uncomment the line.

Now this will complete the freenx server installation now you need to download freenx client from here

In this example i am using freenx client for windows and i have installed in my windows xp machine

Once you finish the installation you should be having freenx shortcut in your desktop now you need to double click on that and you should see the following screen and click next here

Here you need to enter the session name,server name or ipaddress and port number and click next

Now you need to choose your session and screen resolution and click next

Configuration completed screen and click finish

Now you need to enter the username and password you want to connect as and click login

Connection established screen

Finally connected to the remote machine and you can see this in the following screen

Tags: , , , , ,
 

You may also be interested in...

5 Responses to “Securely Administring Remote Machines Using Freenx in Ubuntu”

  1. Anant Mishra Says:

    Hi,

    Couldn’t find the packages for edgy at:
    deb http://seveas.theplayboymansion.net/seveas edgy-seveas all

    Could you please let me know the url where I can find the package?

    Regards,
    Anant

  2. louis323 Says:

    I had the same problem but adding a forward slash “/” at the end of “http://seveas.theplayboymansion.net/seveas” fixed that problem. But now I’m getting dependency errors.
    The following packages have unmet dependencies:
    freenx: Depends: expect
    nxagent: Depends: libxcomp1 but it is not installable
    Depends: libxcompext1 but it is not installable
    Depends: nxlibs but it is not installable
    Guess I’ll track those down now.

  3. KenguruHard Says:

    Same problems :
    From http://free.linux.hp.com — “page not found 404″
    from http://mirror.ubuntulinux.nl — “Depends : nxagent (>= 1.1.92+1.5.0) but is not installable

  4. MikeE Says:

    And I even can´t find the freenx package on the server

  5. Edoras Says:

    hello i setup as you wrote bu it coulndt wok
    i can connect via Ssh bu i couldn connect NX Client
    Nx client says Authentication failed user xxx
    did i miss sometihng? or
    should i make extra configuration sometihng for?
    regards..

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.