Archive for October, 2007

NX free edition installation on Ubuntu 7.10

October 28, 2007

First, we need to have ssh server installed and running. Just type the following:

apt-get install openssh-server

Now, we need to download deb packages from here. Then install them:

sudo dpkg -i nxclient_3.0.0-84_i386.deb
sudo dpkg -i nxnode_3.0.0-88_i386.deb
sudo dpkg -i nxserver_3.0.0-74_i386.deb

After the installation we need to add a user to nxserver. I am using my regular username which I login to the system.

sudo /usr/NX/bin/nxserver --useradd $username

That’s it. You should be able login to your system by using NX client. Ensure that you have an SSL connection enabled when setting up the connection.

If you want to run SSH and freenx at a different port then you need to change the port numbers at the following files:

sudo nano /etc/ssh/sshd_config
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2

Change the port number and restart the ssh server:
sudo /etc/init.d/ssh restart

Edit the nxserver config file at the two locations where you see SSHDPort:

sudo nano /usr/NX/etc/server.cfg
# Specify the TCP port where the NX server SSHD daemon is running.
#
SSHDPort = "22"


# Specify the TCP port where the SSHD daemon is running on the NX SSH
# authentication server.
#
SSHDAuthPort = "22"

Edit the node config file:

sudo nano /usr/NX/etc/node.cfg
# Specify the TCP port where the NX node SSHD daemon is running.
#
SSHDPort = "22"

Restart the nxserver:
sudo /usr/NX/bin/nxserver --restart

Terrible Experience of Ubuntu 7.10 Installation

October 20, 2007

Almost a disastrous install on Toshiba M40 laptop !

I was not expecting this from Ubuntu. First problem was at partitioning. I have a windows partition located at /dev/sda1. I changed the mount point of this partition to /windows but I suggest to leave it as /media/sda1. Otherwise it stucks at creating ext3 file system for /. Then you need to run Gparted and unmount the windows partition so installer can continue. I spent many hours to find this. This might be a bug because it did not happen in Kubuntu 7.10.

Installation was OK but when I logged in I saw about 400 packages waiting to be upgraded. This surprised me because I wasn’t expecting this much upgrade for a new released distro. Update was slow because of heavy trafiic through servers but went flawless. I think waiting a week after a new release is a good idea.

The second part of the problem was screen resolution. Gutsy installs nvidia-glx-new (100.14.19) as default. If you have a 6xxx or 7xxxx series card, I suggest to use nvidia-glx driver(1.0.9639). With the new driver it can never activate it and falls back to 640×480 resolution. This is my nvidia card:

lspci -nn|grep 300
01:00.0 VGA compatible controller [0300]: nVidia Corporation NV43 [GeForce Go 6600] [10de:0148] (rev a2)

I first did the full upgrade without enabling restricted drivers. Then restarted the computer and installed nvidia-glx driver from synaptic. Then changed the “nv” driver section of my xorg.conf file to “nvidia” and CTRL+Alt+Backspace. You can do the following trick if borders of the windows are gone when you activate compiz-fusion from System –> Preferences –> Appearance:

sudo nvidia-xconfig --add-argb-glx-visuals -d 24

I added medibuntu repos for the non-free stuff like acrobat reader. The instructions are here. Basically add the repo and the gpg key:

sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

For Java and Acrobat Reader type the following:

sudo apt-get install sun-java6-jre sun-java6-fonts sun-java6-plugin acroread acroread-escript acroread-plugins mozilla-acroread

Now, everything works. It took me almost a day to accomplish all this. I installed Ubuntu two times and Kubuntu once to get it rightcubeswift. Good luck.