Monday, 12 September 2011

Enabling Desktop Effects


Installing and Enabling Compiz Fusion

Compiz Fusion is an application for your Linux desktop to enable certain desktop effects such as Wobbly Windows and animations while switching desktops.

Compiz Fusion is only available for certain video cards using certain video drivers (programs that allow the OS, Fedora in this case, to talk to your video card) To see if your computer is able to use Compiz Fusion, we need to open the Terminal.
To open the Terminal, navigate to Applications, then the System Tools submenu, then click on Terminal.
The terminal allows text-based access to your computer. This is quite often used for administrative tasks.

To run the Compiz-Check application, we first must download it directly from the website, which we will do with a program called wget.

Once you have opened the Terminal, you should be presented with a line like so...
[aj@ajf11 ~]$

This is the command prompt. We can type our commands here to perform tasks on our computer that may not be available in the graphical portion of the operating system.

The first thing that we want to type into our command prompt to install Compiz-Check is the following:

wget http://blogage.de/files/9124/download -O compiz-check

This will tell the "wget" program to download the compiz-check file from http://blogage.de

Next, we have to make the file executable. By default, programs like this are not executable for security reasons. To make the file executable, type the following:

chmod +x compiz-check

This tells the "chmod" program to add the executable flag to the file "compiz-check"

And finally, we will run compiz-check. You can do so by doing the following.

./compiz-check

If the program says you can run compiz, then we will continue to the following steps. If not, you will have to resolve the problem. There is a lot of information available on this topic on Google.

If the test succeeds, we will install the compiz applications.
In the Terminal, type the following

su

This will ask you for the root password and change to the root user. The root user has access to everything on the system. It's usage should be as restricted as possible.

Then, run the following command.

yum install ccsm emerald-themes compizconfig-backend-gconf fusion-icon-gtk emerald compiz-fusion compiz-fusion-gnome libcompizconfig compiz-gnome compiz-bcop compiz compizconfig-python compiz-fusion-extras compiz-fusion-extras-gnome

This tells the "yum" program (the Fedora installer) to install the packages listed in the command. Once the install succeeds, we can activate desktop effects. The terminal can be closed at this point.
Now, to activate Desktop Effects, navigate to the System Menu, then then Preferences sub-menu, the click on Desktop Effects. You can check either of the options presented to you (I suggest both, out of coolness factor) and then click Desktop Effects. And there you are, compiz is activated and installed.

That should get you well and on your way to the world of customization and being truly free to do whatever you wish with your operating system! For further reading, please check the Amazon links below. To support me and writers like me, please buy through the Amazon links on our pages.

Virtual consoles


During install, a lot of interesting stuff can be found in different places: in consoles and in files. To switch to console 2 for example, do Ctrl-Alt-F2 from the X install.
  • alt-F1: the stdout of the install. Not very interesting stuff
  • alt-F2: simple shell. Quite a lot of commands are available but as they are written in perl (for space), they do not handle the very same options as normally. After install, you can do chroot /mnt to see your system just like after rebooting. rpm -qa works for example.
  • alt-F3: a lot of interesting things. Be careful, some ERROR messages are not interesting.
  • alt-F4: kernel's place, i.e. the output of dmesg.
  • alt-F7: the graphical install lives there

Move Window Control Buttons to the Right


If your Ubuntu system sets the Minimize, Maximize and Close buttons to the left in a window and you prefer to change them to the right, then follow these simple steps:
  1. Move buttons to rightPress Alt+F2 to bring up "Run Application" window.
  2. Type gconf-editor into the box, click "Run" to bring up Configuration Editor.
  3. Browse to apps > metacity > general, look for "button_layout" on the right panel.
  4. Change the value in the "button_layout" from close,minimize,maximize: to menu:minimize,maximize,close and press the Enter key.

Change Font Type and Color of Panel Clock


The font type and color of the panel clock follow the windows text in a theme by default. In particular, if the font color is black and shown on a dark background through a transparent panel, you can't read the clock clearly, but you can tweak it by changing the font color. And you can define the font type for your panel clock as well.
The code in Step 1 below sets the font color to white and applies DS-Digital font (See  below), bold and size 16.
  1. Panel ClockOpen up the text editor Gedit and paste the following code:
    style "my-panel-clock"
    {
    fg[NORMAL] = "#FFFFFF"
    font_name = "DS-Digital Bold 16"
    }
    widget "*.clock-applet-button.*" style "my-panel-clock"
  2. Save the file as .gtkrc-2.0 (including the dot in front of the filename) inside your home directory /home/your_user_name.
  3. Log out and log back in (OR enter killall gnome-panel into the Terminal) to see the change.
   The DS-Digital font can be downloaded here. After downloading, unzip the file and install the font into the system for use. See Install Extra Fonts.
   The filename leading by a dot represents it's a hidden file and visible by toggling the key Ctrl-H in the Nautilus file browser.

Enable Superbar


In Windows 7, frequently used programs can be pinned to the taskbar (hence called Superbar). Likewise, DockBarX, a Gnome panel plugin, can be added to Ubuntu to achieve almost the same effect to pin and unpin or launch the applications from the panel.
  1. DockBarX AppletGo to Ubuntu Software Center > Edit > Software Source.
  2. Select "Other Software" and click "Add"
  3. At APT line, enter ppa:dockbar-main/ppa, click "Add Source" and "Close"
  4. At the left panel of Ubuntu Software Center, select "PPA for Dockbar Main Group", which is added after the above steps
  5. At the right panel, select DockbarX and click "Install"
  6. Wait for the cache to be updated, then right click the panel and click “Add to Panel”.
  7. Select the DockBarX Applet and click "Add".
   A thumbnail preview of a running program is also available to DockBarX. To enable this feature, right-click the DockBarX item on the panel, select Properties, choose Window List and tick "Show Previews". Other preferences such as appearance, window item and group button can also be configured by users.

Set Fully Transparent Panel


When you set the panel to be transparent in the default Ambiance theme in Ubuntu, you will find that some panel items' backgrounds are not transparent, but you can make them transparent and consistent with others, following these steps:
  1. Ubuntu DesktopGo to Applications (or Main Menu) > Accessories > Terminal.
  2. Enter cp -R /usr/share/themes/Ambiance ~/.themes/
  3. Enter gedit ~/.themes/Ambiance/gtk-2.0/apps/gnome-panel.rc (for Ubuntu 11.04 or 10.10) OR gedit ~/.themes/Ambiance/gtk-2.0/gtkrc (for Ubuntu 10.04), to open the file with gedit.
  4. Search for this line bg_pixmap[NORMAL] = "img/panel.png" (for Ubuntu 11.04 or 10.10) OR bg_pixmap[NORMAL] = "panel_bg.png" (for Ubuntu 10.04)
  5. Ubuntu DesktopComment out the line by placing a # at the beginning of the line, like this:#   bg_pixmap[NORMAL] = ...
  6. Save the file.
  7. Go to System > Preferences > Appearance, switch to the other theme and then back to the Ambiance theme.
   If you'd to change to the New Wave theme, then enter cp -R /usr/share/themes/"New Wave" ~/.themes/ in step 2, enter gedit ~/.themes/"New Wave"/gtk-2.0/gtkrc in step 3, search for and comment out this linebg_pixmap[NORMAL] = "Images/Panel/PanelBarLong.png" in steps 4 and 5 respectively.

Customize the Panel of Ubuntu after Installation


Ubuntu includes a top panel and a bottom panel by default. If you prefer to keep only one panel at the bottom just like the Windows Taskbar, then these are the steps to follow:
  1. Ubuntu DesktopDelete the bottom panel: right-click over it and click "Delete This Panel".
  2. Move the top panel to bottom: right-click over it, select "Properties" and change Orientation from "Top" to "Bottom".
  3. Add running program buttons: right-click the panel, select "Add to Panel", scroll down and select "Window List", click "Add".
  4. Replace the Menu Bar ("Applications-Places-System") with the "Main Menu" to save space in the panel:
    1. Right-click the "Menu Bar" and select "Remove From Panel".
    2. Right-click the panel, select "Add to Panel" and choose "Main Menu", click "Add".
    3. Right-click the items (Firefox, etc) and untick "Lock to Panel".
    4. Right-click the added "Main Menu", select "Move" to relocate it to the far left.
These are basic changes. The panels are much more flexible than the Windows Taskbar in that many items in the panels can be easily added, removed or configured.
   The Main Menu shows the "Lock Screen", "Log Out" and "Shut Down" items if you remove the "Indicator Applet Session" item (which shows your username and the shutdown button to the right of the panel). These three items are hidden from the Main Menu when the Indicator Applet Session item is on the panel.
   If you need to restore the panels to the original state, enter the following commands into the Terminal and re-start the system:
  1. sudo gconftool-2 --shutdown
  2. sudo rm -rf .gconf/apps/panel
  3. sudo pkill gnome-panel
   At any point if your customized desktop settings caused a problem and you wish to reset all back to their defaults, then enter this command sudo rm -rf .gnome .gnome2 .gconf .gconfd .metacity in the Terminal, log out and log back in to the system.