Archive for the ‘Ubuntu’ Category

Trying Ubuntu 11.04 with Virtualbox on 10.10

May 2, 2011

I downloaded Ubuntu 11.04 “Natty Narwhal” but I haven’t decided yet to use as my regular OS. I have some doubts about using “unity”. So the easiest way to try is installing it using Virtualbox.

My current operating system is Ubuntu 10.10 and I had Virtualbox 3.2.8 installed. I did install 11.04 but unity did not work on it even 3D acceleration was activated. I installed Virtualbox 4.0.6 by downloading from here and running default Ubuntu software package installer. Newer Virtualbox recognized my previously installed Ubuntu 11.04. I checked the box for 3D acceleration.

As I started the virtual 11.04 I did get the non-unity desktop, which I was expecting. I exited from the full screen view and I was able to see virtualbox menu. I selected “Install Guest Editions” from Device menu. Immediately I saw the CD image on the desktop.

The tricky part for me began after this point. Entering into this Virtualbox additions CD folder and running “autorun.sh” by double clicking on it did not make the unity running for me. Instead, I needed to type sudo ./VBoxLinuxAdditions.run in the terminal from the additions folder.

I restarted the virtual system and unity worked this time. Basically what I did is; installed Virtualbox 4.0.6, enabled 3d acceleration and installed Virtualbox additions correctly. I hope this works for you too.

Quickly color your prompt in Ubuntu 9.10

January 31, 2010

I found this while trying to color my bash prompt by using my old post. It was simpler than I thought. Just open your .bashrc file. Type this in a terminal:

nano .bashrc

Scroll down a little bit and you should see a line with #force_color_prompt=yes

.bashrc

Remove the # comment sign and Ctrl-X to exit and y to save the file as .bashrc. To get the new .bashrc in the terminal simply type

source .bashrc

That’s it. You got the color prompt!

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.