Display X applications from virtual terminals

2012-05-03 1 min read Fedora Gnome
GNOME Session plugin (Photo credit: David Siegel) Here is a script that can help you set the proper envirionment to start a gnome-shell from one of the terminals. #!/bin/bash - #=============================================================================== # # FILE: xenv.sh # # USAGE: ./xenv.sh # # DESCRIPTION: http://live.gnome.org/GnomeShell/Debugging # # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), amit.agarwal@roamware.com # CREATED: 09/14/2011 04:45:31 PM IST # Last modified: Wed Sep 14, 2011 04:45PM # REVISION: --- #=============================================================================== gnome_session=$(pgrep -u $USER gnome-session) eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep DISPLAY) eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep XAUTHORITY) eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep DBUS_SESSION_BUS_ADDRESS) So, once you have done that you have the correct environment to use the X display and thus you can start the gnome-shell as well or do any other fancy thing that you want ๐Ÿ™‚ Continue reading

colors in bash scripts

2012-04-30 3 min read bash Fedora Learning
Colours (Photo credit: CherrySoda!) I have been trying to understand the color codes for bash for a pretty long time, but somehow never got time to understand this clearly. So this time around when I was writing a script to analyze some logs. I thought I will give it a go and finally understood some part of this. So, first we will start with this script. This is taken from here. Continue reading

systemadm โ€“ simpler way to manage the service files for systemd

2012-04-17 1 min read Fedora
Once the systemd unit and service files have come into being, understanding of the system services have changed a little bit and it might require some time to understand the cli tools for managing these services and units. That being the case, systemadm comes to rescue. This is a simple tool which : Graphical front-end for systemd. For installation : sudo yum install systemd-gtk And hereโ€™s a screenshot:: [][1]systemadm Related articles Talk:Systemd (wiki. Continue reading

Check out all the colors on you X window system.

2012-02-24 1 min read Fedora
If you ever wondered what combination of some colors would look like but did not really feel like setting them in your xterm just to check them out. Or if you wanted to know about all the colors on you X window system then you can install this utility called xcolorsel. [][1]xcolorsel You will need to setup the rpm-shere repo for this. Using this tool is very intuitive, just select the color and then press set as foreground/background to check how the color combination would look. Continue reading

glances โ€“ Get a glimpse of the whole system

2012-02-21 1 min read Fedora
You would have used top at some point of time. Did you not wish that instead of just the processes it list all the vital statistics of the system as a whole. How good it would be to see the Memory, Net, Processes and Disk usage on the same screen. Well then you should take a look at glances. Here is how it looks: [][1]glances For using this tool, here is what you need to do : Continue reading

Tora installation on Fedora 16 with rpm

2012-02-09 1 min read Database Fedora
[][1]Image via Wikipedia Last article I talked about tora installation from the sources, but if that is too much for you then you can use this one liner: rpm -ivh "http://amit-agarwal.co.in/mystuff/tora-2.1.3-1.fc16.i686.rpm" But if you like the hard way out, then you can always try this. Related articles Unrar in Fedora… (gryphon143.wordpress.com) Fedora Utils just got easier (funsurf.wordpress.com) rpmorphan – deborphan for the rpm based distros. (amit-agarwal.co.in)

tora on Fedora 16 for mysql and Oracle.

2012-02-06 1 min read Database Fedora
Sometime back I had posted a article on Tora on Fedora. But that was a while back and things have progressed and we already have Fedora 16 (aka Verne). So, awhile back I installed Tora on my Fedora 16 and here are the steps to do so: First get the Tora sources from sourceforge.net . Download the source tar file and extract the same. Install the delel for some of the packages that you will need: Continue reading
Older posts Newer posts