Leisurehours's Blog

Ubuntu & Linux Recipes

Category: Linux

Minimize windows session running from Citrix ICA Client (=Citrix Receiver)

by manojgumber

Many of us use Citrix ICA Client on ubuntu to access our office workstations. When you start Citrix ICA Client, it always runs in full screen. And unfortunately the same windows shortcut do longer works with Ubuntu Citrix client.

However this is another keyboard shortcut that you can use to minimize the Citrix Session –

Use the following keyboard shortcuts in order –

  • Ctrl + F2
  • Alt + F9

This should minimize the Citrix Session.

Setting proxy settings for Amarok under GNOME

by manojgumber

If you are using amarok under Gnome in a proxy environment, I am sure you will be troubled finding proxy settings for amarok in the Configuration of Amarok . Here is a way to specify proxy setting for amarok in Gnome.

  • Clear any proxy setting if specified in Amarok Configuration page
  • Edit file  ~/.kde/share/config/kioslaverc and append the following lines-
    [Proxy Settings][$i]
  • Save this file and restart Amarok. Now Amarok will recognize your proxy settings.

Testdisk – A Great Recovery Tool

by manojgumber

You must be wondering why I am appreciating this tool this much. Well …this tool is worth it. I saved me from a hell of trouble. Actually due to some unknown reasons , my partition table got corrupted . My one partition was lost and rest were fine. The partition which was lost ( it had some important documents) , different tools showed it as free space.

At ubuntu forums, a fellow suggested to use this tool and it worked awesome. It detected my old partition table and I could recover my lost partition.
Read the rest of this entry »

Automatically Download Subtitles Using Smplayer in Linux

by manojgumber

Have you found it annoying to searching subtitles for your favourite movie / tv-series ? Then this is for you.

Smplayer on linux platform has this awesome feature. While you are watching your movie or tv series,

In Menu Bar ->  Subtitles -> Find Subtitles on OpenSubtitles.org

Read the rest of this entry »

Oxford Advanced Learner – Best Dictionary for linux till now

by manojgumber

[tweetmeme service=”bit.ly” source=”LeisureHoursWP” ]
I had been looking for a good fully feature dictionary software on linux for a long time. For some time I had been running Cambridge and McMillan Dictionaries using wine. There was no native linux dictionary having full fledged features as these dictionaries.

However now I am amazed by Oxford Advanced Learner Dictionary 8th edition which is available for both windows and linux. And I have installed its linux version on my ubuntu karmic and it is working really awesome. I am very impressed like your long felt need is fulfilled.
Read the rest of this entry »

Fixing Flash Issues in Ubuntu Karmic 9.10

by manojgumber

[tweetmeme service=”bit.ly” source=”LeisureHoursWP” ]

Flash does not work fine by default in Ubuntu Karmic and creates a lot of problems. This can be fixed by installing official flash from Adobe.com

  • First of all , uninstall any existing flash packages. Otherwise they  will clash with this package. You might have gnash / swfdec / adobe plugins installed earlier. So remove them before trying this.

    $ sudo apt-get remove flashplugin-installer flashplugin-nonfree mozilla-plugin-gnash swfdec-mozilla

  • Go to http://get.adobe.com/flashplayer/ . It has a menu which asks version to download . Select ‘ tar.gz  for Linux ‘ package  and download.
  • Extract the files of this tar package

    $ tar -xvf install_flash_player_10_linux.tar.gz

  • It contains a file libflashplayer.so.
    Copy this file to /usr/lib/mozilla/plugins (Note – firefox should be closed while doing this )

    $ sudo cp libflashplayer.so /usr/lib/mozilla/plugins/

  • Start firefox and type ‘ about:plugins ‘ in address bar to check if the flash plugin is installed properly.

    It will show an entry for

Shockwave Flash

File name: libflashplayer.so
Shockwave Flash 10.0 r45
Thats all. Flash is working fine on karmic now.

Partition Table Entries Are Not In Disk Order.Problem??

by manojgumber

[tweetmeme service=”bit.ly” source=”LeisureHoursWP” ]

The above problem happens when you manually add / create / delete partition and partitions get /dev/sdx numbers which are different from their physical ordering on disk. Still this is not a problem at all. Even if you want that partition numbers should be in their order in hard disk , this can be done.

Here fdisk utility comes to rescue.
Read the rest of this entry »

Encrypt & Secure Your Files Using vi Editor

by manojgumber

[tweetmeme service=”bit.ly” source=”LeisureHoursWP” ]

Do you know that you can encrypt your source code files and other text files using vi editor? Isn’t vi editor wonderful.

It is very simple. While creating new file which you intend to encrypt

leisurehours@wordpress-laptop : ~ $ vi -x file1.txt

To encrypt an existing file , open it with vi using -x option

leisurehours@wordpress-laptop : ~ $ vi -x file1.txt

vi editor will now ask for password twice. Whenever you will open the file again with vi editor, it will ask for password to decrypt the file. When opened using other editors , file will show only garbage text.

Get Rid of Annoying “x is an executable text file ” Message Box each time you open a file

by manojgumber

[tweetmeme service=”bit.ly” source=”LeisureHoursWP” ]
Whenever in gnome you open any text file , you get an annoying message box each time asking “Do you want to run x.txt or Display its content? ”. “ x.txt is an executable text file” .

To get rid of this annoying message box —

In the nautilus, Edit -> Preferences -> Behaviour

Check the radio button next to “ view executable text files when they are opened” .
Read the rest of this entry »

Adding New Users the Easy Way on Ubuntu

by manojgumber

Ubuntu provides an alternative command ‘adduser’ for adding new
users instead of traditional commands like ‘useradd’. This is a very
convenient command and you do not have to remember any parameters as
this is a very interactive command .

They are friendlier front ends to the low level

tools like useradd, groupadd and usermod programs,
by default choos‐

ing Debian policy conformant UID and GID
values, creating a home

directory with skeletal configuration, running a
custom script, and

other features.

Read the rest of this entry »