Saturday, 30 June 2007

Remote Desktop

Its fairly straightforward to get a remote desktop from Windows XP or whatever using vncviewer. You just need to configure preferences using System-Preferences-Remote Desktop.

However what I wanted was to have multiple remote sessions like RDP for Windows. This is more security (you dont have to leave the console logged in) and means that no one can 'shoulder surf' either.

The instructions on ubuntu community are OK, but you do have to install vnc4viewer and xinetd first which you can do from a command prompt like this:

sudo apt-get install vnc4viewer xinetd

if you dont do the above first then the config commands in the link below will fail...

https://help.ubuntu.com/community/VNC

sadly I cant remotely connect - at least I can, but I only get a black screen...

works locally with vncviewer

Wednesday, 27 June 2007

Partitions again

Ok, having got a new partition how do i get it to mount. What I didnt realise was that Gnome Partition manager just does the partitioning and formatting - not any drive assignments (to use a Windows-ism).

Therefore had to work out how to edit the /etc/fstab file to mount this drive on startup.

I wanted the mounted partition to have the label 'data' so first ran e2label.

sudo e2label /dev/sda3 data

Using 'sudo gedit /etc/fstab' I deleted the uuid section for the ntfs drive which was still hanging around in the /etc/fstab file as this seemed to be screwing things up and then added the following line to the end:

label=data /mnt/data auto users,noauto 0 0

Restarted and we are in business!

First off I have a problem becoz the partition seems to be read only. Decided to install Gnome Partition Manager using the Synaptic Package Manager in case the permissions had got confused by using the LiveCD. This didnt make any difference - after deleting and recreating the partition it was still read only.

Looking at the permissions on the mount point, it seems that root, user and groups all have read only permission to the drive. So it looks like you have to grant permissions to the partition after creating it. After a bit of googling turns out that the chmod tool is the way to go.

sudo chmod 777 /mnt/data in a terminal window and we can now write to the disk

turns out you should change the ownership too so:

sudo chown root:users /mnt/data

now just have to get file sharing working and I can copy everything over from my windows laptop and get going in Linux proper.

Monday, 25 June 2007

More partitions

OK, so having got the critical data off, the next step is to remove the NTFS partition and create a new partition that I can actually write to (yes I know there are drivers for writing to NTFS from Linux, but I'm a cautious fellow with my data).



I was sure I had seen Gnome Partition Manager somewhere, but cant find it now. Finally worked out it was on the LiveCD and it might be easier/better to run it from there so reinserted that and launched the partition manager.

I want to have a nice big data partition that I can use for backups from other machines and long term data storage. I already have three primary partitions on the disk (Dell FAT, root and swap) so a single partition formatted with ext3 seems the right way to go for the data partition.

Deleted the NTFS partition and told it to create a replacement ext3 partition. I tried this about five times and generally it seemed to try to delete the NTFS partition and fall over trying to create the ext3 one. The best thing seems to be to do one thing at a time, so tell it to delete the NTFS partition, apply that. Then tell it to create the ext3 partition and apply that. Now we have a nice new ext3 formatted partition, apparently. Reboot back into real ubuntu.

Initial install - Partitions and DVD burning

My 74GB disk is already partitioned for the XP installation I had before. It has a small Dell FAT partition which is for recovery and diags, plus a 8GB NTFS Boot partition, plus a 61GB NTFS data partition. Destroyed the 8GB partition and created a 7GB root partition formatted with ext3 and a swap partition of about 1.5GB using the install icon off the ubuntu desktop.

It took several attempts to get the above working - i think the reason was it kept mounting one of the drives, but eventually we are off and installing to the newly formatted disk. Time to hold breath and see if the reboot actually comes back with a working MBR and partitions that can be read.

OK worked first time. Now the only problem is that I have a 60-odd GB disk with data on. I need some of the data as it is backups of pictures that there are no other copies of.....

So mounted the disk, stuck a blank DVD-R in the DVD writer and a nice Windows pops up asking me if I want to write to the new DVD. Drag off about 3.5GB of data and hit burn, and hey presto it worked - cant believe this it all worked first time....

Next disk, same process, drag-drop-burn, this is great. Sadly after this the story wasnt so good... left the disk tray empty and cleared down the CD/DVD creator contents and then copied some more files into it. It didnt like that and the interface restarted to prove it. Decided to restart the box which then let me drag files to the CD/DVD creator again, but cant get it to write the dvd, click write and it pops up a blank dialog box and then nothing.

Couldnt sort this problem immediately so installed file sharing and copied off the remaining files from the NTFS drive via an SMB share to a windows machine and burnt them off to another DVD.

Starting with Ubuntu

As a long time Windows user, I finally decided it was time to dip my toe into Linux and see what all the fuss was about.

Actually the motive was that my Windows XP machine with VMWare player hosting a Win2k3 server was playing up and my Sony Vaio laptop was grinding to a halt having not had its XP installation rebuilt or 18 months or so.

Ubuntu seemed to be the current flavor of choice and there is a newish version (7.0.4) kicking around so 700-odd MB download and a iso image burn later, I have ubuntu fesity fawn (!) starting up on my Dell Poweredge Tower Server.

All starts up no problem and in a few minutes I am looking at Ubuntu Desktop running off the install CD which appears to be a LiveCD which you can run the install from.

I have a feeling that this is where the fun starts, so the purpose of this blog is to record my experiences with Ubuntu and hopefully share something that someone might find useful, whilst keeping a record of my findings for future reference.