One click install for Linux systems.

2009-12-08 1 min read Linux

There has been this concept for quite sometime that there should be one click install for the applications in Linux. This applies to the themes and widgets of wordpress too 🙂 and quite some applications are taking it seriously (like wordpress for example).

But how about the application to do one-click install, there are couple of issues with that but still there exists at least one way. A nice blog <a href="http://www.linux.com/feature/49328">here.

Continue reading

Pipeing linux commands and their output

2009-12-08 1 min read Linux

As a system administrator, I always worry about certain things, like who's doing what, what processes are running, what the network traffic looks like, etc.  One day I decided to create a simple alias that would combine all the commands I wanted into one big chunk of information.  Then I realized that it wouldn't all fit into one screen.
Fortunately I knew how to group all of the commands together, so the "more" command could handle them as one set of input.

Continue reading

Change phpMyadmin theme.

2009-12-08 1 min read Linux

Changing the phpMyAdmin theme is as easy as downloading a theme from <a href="http://www.phpmyadmin.net/home_page/themes.php" target="_blank">here. Then look at your /etc/httpd/conf.d/phpMyAdmin.conf file and check the line similar to

Alias /phpMyAdmin /phpMyAdmin

The second path is the path to your phpMyAdmin installation. Go to that directory and then go to themes directory and unzip the file. Reload your phpMyAdmin page in browser and select the newly installed theme 🙂

View the newest xkcd comic.

2009-12-07 1 min read Bash Linux

This function displays the latest comic from xkcd.com. One of the best things about xkcd is the title text when you hover over the comic, so this function also displays that after you close the comic.

$ xkcd(){ local f=$(curl -s <a href="http://xkcd.com/">http://xkcd.com/);display $(echo "$f"|grep -Po '(?<=")http://imgs.xkcd.com/comics/[^"]+(png|jpg)');echo "$f"|awk '/<img src="http://imgs.xkcd.com/comics/.?" title=./{gsub(/^.title=.|".?$/,"");print}';}

To get a random xkcd comic, I also use the following:

xkcdrandom(){ local f=$(wget -q <a href="http://dynamic.xkcd.com/comic/random/">http://dynamic.xkcd.com/comic/random/ -O -);display $(echo "$f"|grep -Po '(?<=")http://imgs.xkcd.com/comics/[^"]+(png|jpg)');echo "$f"|awk '/<img src="http://imgs.xkcd.com/comics/.?" title=./{gsub(/^.title=.|".?$/,"");print}';}

Continue reading

Insert a comment on command line for reminder

2009-12-05 1 min read Bash Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
Insert a comment on command line for reminder

$ ls -alh #mycomment

Comments can be used directly on the command line so I can save in the history a brief description of what command does.

* View this command to comment, vote or add to favourites * View all commands by vgagliardi

commandlinefu.com

by David Winterbottom (codeinthehole.com)

URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/_5hXsFUuAwc/insert-a-comment-on-command-line-for-reminder">http://feedproxy.google.com/~r/Command-line-fu/~3/_5hXsFUuAwc/insert-a-comment-on-command-line-for-reminder

gnome-shell and gnome-do on F11 Screenshots

2009-12-02 1 min read Fedora GNOME

Here are some screenshots of gnome-shell :

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_0011.jpe"><img class="size-full wp-image-1246" title="Gnome Shell" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_0011.jpe" alt="Gnome Shell" width="840" height="525" />

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Screenshot.png"><img class="size-full wp-image-1247" title="Gnome Shell" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Screenshot.png" alt="Gnome Shell" width="840" height="525" />

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Screenshot-1.png"><img class="size-full wp-image-1248" title="Gnome Shell" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Screenshot-1.png" alt="Gnome Shell" width="840" height="525" />

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Screenshot-2.png"><img class="size-full wp-image-1249" title="Gnome Shell" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Screenshot-2.png" alt="Gnome Shell" width="840" height="525" />

Older posts Newer posts