Showing posts with label gnome. Show all posts
Showing posts with label gnome. Show all posts

Sunday, March 28, 2010

The search for the right dock for Ubuntu on a netbook

The beta version of Ubuntu Lucid Lynx became available last week.  I usually upgrade at least one of my machines to the beta versions, so I went ahead and did so for my netbook. 

The first thing I noticed was that the upgrade removed the Netbook Remix enhancements, and I was looking at a plain vanilla Gnome desktop.  This isn't a terrible problem but it does take up extra space and I started wondering if I could do better.

I remembered hearing about several docks available for Ubuntu and decided to give them a try.  I decided that I really wanted to see the following features:
  1. One icon to launch an application or if it were already running, bring the instance of it to the top.  With Gnome, you have your launchers at the top and your running programs at the bottom. So if you want to go to a website, you first have to check the bottom of the screen to see if Firefox is already running (which is especially hard with the new Lucid theme, since the tab for the selected window has white typing on a light-gray backround, which makes it almost impossible to read).  The thing that first made me interested in exploring the possibility of a dock was the idea that when I am ready to browse the web, I have one icon that will launch Firefox if it isn't open already or bring it to the top if it is already open.  
  2. The one icon needs to have some visual indicator of whether the application is running.
  3. If I am to switch to a dock, it needs to replace all current panels and menus.  That means I want some kind of menu with full access to all of the programs and settings currently in my Applications, Places, and Settings menus.  I also need to be able to control my WiFi, see how much battery is remaining, adjust the volume, and shut down from the dock.
  4. It has to be fast and not too flashy.  I've seen some of these docks where the items grow as you hover over them, and I think I would really hate that.  When I am trying to click on an icon I do not want it growing or moving around as my mouse approaches it.  I also want the icons to be in the same position on the screen all the time, which means that I don't want the dock expanding and contracting as I launch applications (I found out later that a few docks supported "panel mode" which fits this requirement nicely).
 The Search

With these criteria in mind, I set off to find the best dock.  I found this blog posting and basically started going down the list.  Docky had a nice-looking panel mode but it wasn't easy enough to use (I couldn't figure out how to add a launcher).  Cairo-dock was nice and I almost stuck with it, but it didn't have the nice panel mode I wanted.  It was only available in the centered, expanding and collapsing mode, and the only theme that provided indication as to whether the application was already running under each launcher also had the icons growing in size when my mouse rolled over it.  So Cairo-dock was close but no cigar.  



I installed WBar but by the time I figured out how to launch it, I was already in the process of installing the dock I stuck with, Avant Window Navigator.


Avant Window Navigator (AWN)

To make a long story short, AWN met all of my specifications to the tee.  It is quite user-friendly and easy to configure, and the repos contain a lot of great plugins (more on that later).  AWN has all of the common options I saw when testing other docks, but also allowed me to configure it just the way I wanted it.  

I used Synaptic Package Manager to install the following packages:
  1. avant-window-navigator (with dependancies)
  2. awn-applets-c-extras
  3. awn-applets-python-extras
  4. python-awn-extras
When the setup was complete I ran avant-window-navigator from the command line and my dock popped up at the bottom of the screen.  I set the following settings on the Preferences tab:
  1. Size of Icons: 24 pixels
  2. Orientation: Bottom
  3. Style: None
  4. Behavior:  Panel Mode
  5. Icon effects:  None
  6. Checked the "Expand the Panel" checkbox
  7. Slid the "Position on the screen" bar all the way over to the left
  8. Checked "Start AWN automatically"
 Then I flipped over to the Applets tab and was blown away by the number of applets!  I found almost everything I could want there, including the battery meter, the volume control, a menu (I recommend the "Yet Another Menu applet" over the "AWN Main Menu" or the "Cairo Main menu"), the date/time, etc.  There were a few things I wasn't looking for but was happy to see:  media player controls (I added the play/pause, previous and next controls to my dock and now can control Rhythmbox with one click), an RSS feed reader, a system monitor, a hardware sensor, a weather indicator, etc.  It's perfect for me today, and has a lot of potential to make my life easier in the future.
It wasn't long before I was totally hooked and ready to abandon the default Gnome panels for good.  I right-clicked and deleted the bottom panel without a problem, but when I went to delete the top panel, I noticed that the Delete option was grayed out.  I guess they do that in order to stop newbies from accidentally deleting the panel, but I had made an informed decision to get rid of it! 

Long story short, here is how to turn off the top panel in ubuntu:  hit Alt+F2 and type "gconf-editor".  That will pop up a window that looks kinda like the Windows Registry Editor.  On the left-hand side, expand Desktop, then Gnome, then highlight Session.  On the right-hand side double-click "reuired_components_list".  That will pop open a new window.  Highlight "panel" and click Remove.  That's it!  Now the next time you log in you won't have any panels.

Here is what I ended up with.  Hope this helps!

Sunday, February 7, 2010

XRDP, the best remote access software under Linux

My desktop PC is in my basement office, which is a nice place but somewhat inconvenient.  I really wanted a way to access it remotely from my laptop but had trouble finding a remote-access application that was fast enough.

Both my laptop and desktop are wireless, so there are 2 wireless "hops" between my machines and when logged into my desktop from my laptop each command (i.e. a click or keystroke) has 4 wireless hops to go through before my screen displays the result.  So speed is key. 

Remote access servers that didn't work out

I tried pretty much every remote access server I could find.  I was already familiar with VNC, and that was a perfectly viable option but my desktop has dual monitors, so there was a pretty big difference in screen resolutions and one of VNC's real weaknesses IMHO is that the client is forced to use the screen resolution of the server.  I didn't want to be scrolling around a lot so I axed that idea. 

Next I tried SSH with X forwarding enabled (using the -Y option).  That was nice and simple since all of the software and keys were already in place, but it was too slow, even with the -C option (which enables compression, effectively speeding up the rate of transfer).  FreeNX is a similar solution, and although it was somewhat faster some of the time, it didn't provide a consistently high level of performance so I had to reject both solutions.


Gnome also offers the option of logging into another machine via XDMCP.  When booting my laptop, I would stop at the login screen, hit Options, then "Remote Login via XDMCP".  In addition to stopping me from running any applications or doing anything else on my laptop while logged into my desktop remotely, this proved to be too slow also, so I canned the idea.


I was about to give up when I discovered xrdp.


XRDP

XRDP is a service that I installed on my desktop to enable it to accept RDP connections from my laptop.  Ubuntu already comes with an RDP client, tsclient, installed by default, and I've used Windows XP's Remote Desktop a lot at work so I know how well it works.  XRDP is in the Ubuntu repositories so I installed it on my desktop and now I can log into it from my laptop using the same program I use to log into my computer at work, and the speed more than adequate.  It is really great to be able to program, run virtual machines, and do many other resource-intensive operations from my laptop.

XRDP has a few quirks that I decided I could live with, but it is worth mentioning them here:
  1. It depends upon the package "tightvncserver" being installed on the server (the machine you are logging into), although it isn't configured as a dependency in the package (this was the case as of the last time I set up XRDP, which was a while ago so hopefully they have fixed this).  Install tightvncserver before you attempt to install XRDP.
  2. You may install the XRDP package and have it work just fine until you reboot the server.  This is because XRDP sometimes has difficulty figuring out whether it is running or not, so when the server is rebooting and it tries to start XRDP, XRDP thinks it is already running even though it isn't and refuses to start.  You can fix that by running this:
         sudo sesman --kill
         sudo xrdp --kill
         sudo rm /var/run/xrdp/xrdp.pid
         sudo sesman
         sudo xrdp
  3. There is no way to log into the console session.  So if I was working at my desktop and had to get up for something, I can't resume what I was doing on my laptop.  Windows XP provides the "/console" command-line switch which allows you to take over the session that is currently displayed on the machine's screen, but there is no way to do that with XRDP.  There might be a way to do it within Gnome; I'm not sure at the moment.
  4. If you do anything in the remote session that makes a sound, the sound will be played on the server's speakers, not your client's speakers.  So the first thing I hear when logging into my desktop is the sound of the Ubuntu login music being played on my desktop speakers, down the stairs and two rooms away.  This is a very minor annoyance to me but it is worth mentioning.
So now I have exactly what I set out to get: an easy-to-use remote access method that is fast and reliable.  It is really great to be able to open tsclient (you will find it on the Internet menu, it is called "Terminal Server Client") and see my desktop.  I highly recommend it!