Harsh J

Memoirs of a QWERTY Keyboard

Archive for the ‘Gutsy Gibbon’ tag

Tinge theme for gEdit

12 comments

Announcing a nice-looking dark theme, Tinge color scheme for gEdit (Text Editor for GNOME):

Tinge (v1.0)

Tinge Logo - Curvy ain't it?


Preview (In Python):

Tinge preview - In Python!

Download Instructions:


Installation Instructions:

  1. Its very simple! Simply run your gEdit and go to Edit – Preferences – Font and Colors tab.
  2. Under the Color Scheme list, click the Add… button and select this downloaded Tinge.xml file from wherever you saved/moved it to.
  3. You’re done! Enjoy the colors as you develop! ;)

Named it Tinge just for fun and cause it really just a tinge more than the Darkmate. Also inspired by Monokai’s theme here.

Written by Harsh

January 27th, 2008 at 2:25 am

Shorten the apt-get install!

one comment

sudo apt-get install [name]

Thats probably one of the most used commands on your Ubuntu box. Hate writing such long lines for while installing a package as quick as possible? This guide should help you reducing the length of that command to just, well, 1 character!

Like this example:

user@domain:~$ i john
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
john
(. . .)

Notice the one-letter i in the above? I created i to stand for apt-get install.

Unix/Linux have something fantastic in them called alias. The command alias is used to create shorter and quicker keywords to another command which could be very long with all its parameters. So lets move on to making a simple alias for apt-get.

Basically our command is:

alias i="sudo apt-get install"

But just giving that would not last anymore once your terminal is closed. To make it permanent we have to do the following in the Terminal:

echo alias i=\"sudo apt-get install\" > ~/.bash_aliases

Now give this command:

gedit ~/.bashrc

A text editor should open with some content in it. Now scroll a bit until you find the following lines: (Should be around 50~ lines from beginning)

#if [ -f ~/.bash_aliases ]; then
#. ~/.bash_aliases
#fi

Now remove those 3 #’s (hash comment symbols) from each of the lines so that they look like this:

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

Save and close the editor. Restart your Terminal and voila, you can now do the i method as shown earlier! :D

Example:

user@domain:~$ i gnome-bluetooth
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnome-bluetooth is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Written by Harsh

December 16th, 2007 at 7:00 pm

Fixing the garbled video issue in Ubuntu for NVIDIA cards

7 comments

Some of you (actually a very few I guess), might be experiencing a weird and random issue of having all your videos play garbled or corrupted with lots of pink and green lines. The corruption / garbling also leads to a total freeze at times, for me at least. As an example this is how your video would look like when played in ANY player:

Garbled video in Ubuntu Gutsy Gibbon

Yeah any, VLC, MPlayer, you name it. Once it starts appearing it appears in everything you play!

I don’t know of a proper bug page for this at Launchpad but I do know the fix. Apparently its something bad in the nvidia-glx-new driver package that makes this happen. So the fix is to roll back to the normal nvidia-glx driver. You can either run the following or just click on the link to do so:

sudo apt-get install nvidia-glx

That should probably fix it (as it has for me). In case someone stumbles here with a better workaround than to lose performance with the removal of the nvidia-glx-new driver, do post it here.

P.s. This is exclusive only to Ubuntu Gutsy Gibbon 7.10 I think. Cause I haven’t seen any such issues on Feisty on either of the drivers.

P.s. again. I use a GeForce 7600GT by the way. And this thing was sure a pain in the ___.

Written by Harsh

December 14th, 2007 at 11:15 pm