Ubuntu

Starting Synergy during Bootup

2

To those who don’t know, Synergy is a way to share a keyboard, mouse, and monitor that is attached to one master computer (server), and many other slave computers (clients). It’s similar to a KVM, but uses standard TCP/IP protocols to control the machines.

On a Ubuntu machine, you will run the following:

sudo apt-get install synergy

and this will install Synergy onto the machine. At this point, this isn’t assuming that your Ubuntu machine is the server or client. In my configuration, the Ubuntu machine is a client, and my Windows machine is the server.

http://synergy2.sourceforge.net/

Now comes the fun part, how do you configure synergy to startup during the boot process so that when you get to the username/password login screen, you can immediately use your server’s KVM to log yourself in. This is important, as I use to have to hook up a USB keyboard to the Ubuntu machine to type in the username and password. This is surprisingly simple to do as it requires two modifications to files.

The first is:

sudo gedit /etc/gdm/Init/Default

#Synergy – place this line somewhere before the “sysmodmap=/etc/X11/Xmodmap” line

/usr/bin/synergyc serverComputerHostname

The last is:

sudo gedit /etc/gdm/PreSession/Default

#Synergy – place this line somewhere before the “XSETROOT=`gdmwhich xsetroot`” line

/usr/bin/synergyc serverComputerHostname

Once you add the following lines into both files, you can log out of your session (or restart) and when you get to the login screen you will be able to use your server’s KVM.

There is one additional step that you may have to take, if you are reimaging the Ubuntu box and the server name changes, you will need to make sure to update the server name in the Synergy server’s configuration to ensure that it knows what machine is connecting and what orientation it has to your server (i.e. to the left of, to the right of, etc).

Mounting Linux Partitions in Ubuntu

0

Mounting Linux Partitions in Ubuntu

If you plug in an external hard drive with a Linux filesystem, it will automount and show up on your desktop, just like any external media. But what if you have an internal hard drive or partition with a Linux filesystem? Well, that’s what this tutorial is about.

Warning: The tutorial on this page is for an internal drive that will serve as an extra data partition. If you would like to mount a separate drive or partition as /home instead, you want a different tutorial.

First you have to determine what the partition is called and what filesystem it is. One quick way to do it if you know what filesystem you formatted the drive as (Ext3, for example) is to just type the terminal command

sudo fdisk -l

Here’s how it could come out:

Disk /dev/hda: 20.0 GB, 20020396544 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 83 Linux
/dev/hda2 1276 2434 9309667+ 5 Extended
/dev/hda5 1276 2388 8940141 83 Linux
/dev/hda6 2389 2434 369463+ 82 Linux swap / Solaris

As you can see, I’m able to locate that /dev/hda5 is my Linux partition, but in System, I don’t find out if it’s Ext3 or Reiserfs or what it is. If I happen to know it’s Ext3, cool.

But let’s say I didn’t know. Well, one way to find out for sure is to install GParted and find out:

sudo aptitude update
sudo aptitude install gparted gksu
gksudo gparted

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Go to Top