Tuesday, February 1, 2011
Real time monitoring of log files: Read from a file and print to the terminal stdout in Linux
1. If you need to write std out of a program log to a file
> program_command > logfile.log
2. and at the same time want to monitor it
> program_command | tee -f logfile.log
3. If you need to read from a log file created by a running process onto your harddisk in real time and stdout to terminal
> tail -f logfile.log
If you need to extract specific lines from the logfile
> tee -f logfile.log | grep 'your_specific_word'
4. Monitoring multiple job outputs in same window
Use multitail
http://www.vanheusden.com/multitail/features.html
OTHER LINKS
A progress bar on your terminal
http://search.cpan.org/~fluffy/Term-ProgressBar-2.09/lib/Term/ProgressBar.pm
Installing R package and R-Commander GUI in OpenSUSE 11.3 Linux desktop for statistical computing and graphics
"R is a language and environment for statistical computing and graphics."
http://www.r-project.org/about.html
1. Add the openSUSE 11.3 repo to Yast
http://download.opensuse.org/repositories/devel:/languages:/R:/patched/openSUSE_11.3/
For other versions:
http://cran.r-project.org/bin/linux/suse/README.html
2. Search for 'R-patched' and 'R-develop' in Yast and install
Now you can type 'R' in terminal to run the program
3. Install R commander (GUI)
http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html
a) Run R as root
b) Type "install.packages("Rcmdr", dependencies=TRUE)" without quotes
c) Choose a mirror
d) Installation and compilation would take several minutes based on your system config
Check for warnings in compilation. If you did not select 'R-develop', there would be lot of dependency errors.
3. To run R-commander GUI:
a) Type R in terminal
b) Issue this command: "library(Rcmdr)" without quotes. The GUI should pop-up now.
OTHER LINKS:
Another GUI
http://www.sciviews.org/SciViews-R/index.html
R and Python
http://rpy.sourceforge.net/rpy2_download.html
http://www.omegahat.org/RSPython/
Thursday, January 27, 2011
How to change or modify the openSuse 11.3 KDE4 "My Computer" sysinfo window background color to match your desktop theme color
Sometimes you change your Desktop background image and change the theme to your favorite eye candy style. But "My Computer" stays the same old green color.
The images for the KDE4 sysinfo "My Computer" are stored at
-rw-r--r-- 1 root root 2.5K 2008-06-19 11:01 sysinfo.png
-rw-r--r-- 1 root root 4.0K 2008-06-19 11:01 network.png
-rw-r--r-- 1 root root 4.1K 2008-06-19 11:01 mem.png
-rw-r--r-- 1 root root 3.1K 2008-06-19 11:01 launch.png
-rw-r--r-- 1 root root 5.8K 2008-06-19 11:01 inner-bcg.png
-rw-r--r-- 1 root root 2.9K 2008-06-19 11:01 hdds.png
-rw-r--r-- 1 root root 773 2008-06-19 11:01 hdd.png
-rw-r--r-- 1 root root 1.1K 2008-06-19 11:01 dirs.png
-rw-r--r-- 1 root root 2.7K 2008-06-19 11:01 cpu.png
-rw-r--r-- 1 root root 3.7K 2008-11-11 08:11 display.png
-rw-r--r-- 1 root root 591K 2010-07-05 19:05 background.png
This html page has more details to explore
The images for the KDE4 sysinfo "My Computer" are stored at
/usr/share/kde4/apps/sysinfo/about/images
-rw-r--r-- 1 root root 4.0K 2008-06-19 11:01 network.png
-rw-r--r-- 1 root root 4.1K 2008-06-19 11:01 mem.png
-rw-r--r-- 1 root root 3.1K 2008-06-19 11:01 launch.png
-rw-r--r-- 1 root root 5.8K 2008-06-19 11:01 inner-bcg.png
-rw-r--r-- 1 root root 2.9K 2008-06-19 11:01 hdds.png
-rw-r--r-- 1 root root 773 2008-06-19 11:01 hdd.png
-rw-r--r-- 1 root root 1.1K 2008-06-19 11:01 dirs.png
-rw-r--r-- 1 root root 2.7K 2008-06-19 11:01 cpu.png
-rw-r--r-- 1 root root 3.7K 2008-11-11 08:11 display.png
-rw-r--r-- 1 root root 591K 2010-07-05 19:05 background.png
1. Make a backup copy of the images, 'background.png' and 'inner-bcg.png'
2. Open them with Gimp > Colorize > Change to your favorite color
3. Replace the original
4. Now open My Computer from Desktop and you should see the new colors.
Right click on "My Computer" and 'open with' > kwrite... You must see a lot of information now on the XML page
/usr/share/kde4/apps/sysinfo/about/my-computer.html
Subscribe to:
Posts (Atom)