Thursday, June 12, 2008

Graphical boot menu with various boot loaders

Boot LoaderConfig FileGraphicsImage/Graphics FileSyntax in Config File
Isolinuxisolinux.cfgdisplaymessage.msg/boot.msg
or
splash.lss
display <path to message.msg>
or
display=<path to message.msg>
Syslinuxsyslinux.cfg defaultvesamenu.c32display <path to vesamenu.c32>
or
display=<path to vesamenu.c32>
menu backgroundsplash.c32
or
*.png
or
*.jpg
menu background <path to *.png>
or
menu background=<path to *.png>
GRUBmenu.lst splashimage*.xpm.gzgfxmenu <path to *.xpm.gz>
or
gfxmenu=<path to *.xpm.gz>
gfxmenumessage (cpio)gfxmenu <path to message>
or
gfxmenu=<path to message>
gfxbootbootlogo (cpio)gfxboot <path to bootlogo>
or
gfxboot=<path to bootlogo>
LILOlilo.conf bitmap*.bmpbitmap <path to *.bmp>
or
bitmap=<path to *.bmp>
messagemessage (pcx)message <path to message>
or
message=<path to message>

Image Constraints

Boot LoaderImage SizeNo of ColorsFile Size
LILO640 x 480 pixels255??
GRUB640 x 480 pixels255??
Syslinux640 x 480 pixels255??
Isolinux640 x 480 pixels255??

Saturday, June 7, 2008

My Linux Notes

Frequently used commands
cat /proc/asound/modules
cat /proc/asound/cards
aplay -l
chmod a+rwx
rpm -qpil {filename}.rpm
mount 
umount
autoexec=xconf;kdm
./configure && make
make install
modprobe {modulename}
Untar commands
tar -yxf {filename}.tar.bz2
tar -xvf {filename}.tar
tar -xvzf {filename}.tar.gz
tar -lxvf
tar -jxvf
Program to remove application in Slackware based distros
pkgtool
removepkg
Program to convert tgz to lzm
tgz2lzm
Installing and uninstalling a program
sudo apt-get install {programname}
sudo apt-get remove {programname}
sudo apt-get --purge remove {programname}
sudo apt-get autoremove {programname}
Path to firefox
/usr/lib/mozilla
/usr/lib/firefox
/usr/lib/mozilla-firefox
Path to fonts
/usr/local/share/fonts
Grub Install
sudo grub
device (hd3) /dev/sda
root (hd3,0)
setup (hd3)
quit
sync
Realplayer Issue
Embedded Realmedia doesn't work with Firefox. The pop-up player opens and keeps loading for ever, but never starts to play.
Path to Realplayer
/usr/local/Realplayer
Open realplayer executable from 
/usr/local/bin/realplay
in text editor and edit the following line
"REALPLAYBIN="/usr/bin/aoss $HELIX_LIBS/realplay.bin"
LD_PRELOAD="$LDPRELOAD:/usr/lib/libaoss.so"
export LD_PRELOAD
Then run the command
sh postinst.sh

Choppy audio I am experiencing choppy audio/video or no audio at all. How do i fix this? RealPlayer currently uses OSS to output sound to the speakers from the sound card. ALSA is an alternative that does the same job for applications in a slighty better way. AOSS is a script for OSS emulation through ALSA. You will need to install the RPM for alsa-oss through Yast or from your media if available. Once you've done that, launch RealPlayer using the following syntax

/usr/bin/aoss RealPlayer.

To make this change permanent, open /usr/bin/realplay in your favorite text editor (an example i use is vi)
vi /usr/bin/realplay

Locate the section in the file that has the following line of text:
REALPLAYBIN=$HELIX_LIBS/realplay.bin and replace it with REALPLAYBIN="/usr/bin/aoss $HELIX_LIBS/realplay.bin" Q. How do i uninstall RealPlayer? Uninstalling an RPM RealPlayer installation: To uninstall, run the following command as root: rpm -e RealPlayer Uninstalling a BIN RealPlayer installation: To uninstall, download and run the following script: https://player.helixcommunity.org/2005/downloads/uninst.sh
The uninstaller script is currently unsupported. Use it at your own risk. No Audio Issue
Type
alsamixer
Scroll using the right arrow key to "External Amplifier". Mute or Unmute using the "M" button in keyboard.

/usr/bin/aoss
audio/x-pm-windows-acm
audio/x-wav
sudo convert -resize 640×480 -colors 14 7samurai1.jpg splashimage.xpm
sudo gzip splashimage.xpm

convert -resize 640×480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm

convert -resize 640x480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm


http://www.slax.org/forum.php?action=view&parentID=8629

Tuesday, April 15, 2008

I wonder what do they do now?

These once a flick "stars" are nowhere to be found now. I wonder where are they now, what do they do now, how do they make their livelihood?

Actors:
Armaan Kohli
Atul Agnihotri (Sir fame)
Avinash Wadhwan (Mera Ka Mohan fame)
Ayub Khan (Mashooq fame)
Boy Mukherjee (Son of Joy Mukherjee)
Deepak Tijori (Ashiqui fame)
Faisal Khan (Mela fame)
Harish (Prem Quaidi fame)
Jas Arora (Dushman fame)
Jugal Hansraj (Papa Kehte Hain fame)
Kamal Sadanah (Bekhudi fame)
Karan Kapoor (Bombay Dyeing fame)
Kishan Kumar (Bewafa Sanam fame)
Kumar Gaurav (Love Story fame)
Kunal Goswami
Mukul Dev (Darar fame)
Prithwi (Dil Ka Kya Kasoor fame)
Puru Rajkumar (Bal Bhramachari fame)
Rahul Roy (Ashiqui fame)
Rajeev Goswami (Son of Manoj Goswami)
Rohit Roy ( Ronit Roy (Jaan Tere Naam fame)
Sanjay Kapoor (Raja fame)
Tariq (Yaadon Ki Baraat fame)
Vicky Arora (Yaalgaar fame)
Vivek Mushran (Saudagar fame)

Actresses:
Anjala Zaveri
Anu Agarwal (Ashiqui fame)
Anu Goel
Ashwini Bhave
Mayuri (Papa Kehte Hain fame)
Neha (Kareeb fame)
Pooja Batra (Qayamat Se Qayamat Tak fame)
Priya Gill (Tere Mere Sapne fame)
Ritu Shiv Puri
Sanjana Kapoor (Hero Hiralaal fame)
Zeba Bakhtiyaar (Henna fame)

Monday, April 14, 2008

Tax Fundas for Non Resident Indian Citizens in US

Tax Calendar Year = 1st January - 31st December
Tax Filing Deadline = 15th April
Penalty for not filing by deadline (a) Late filing penalty (b) Failure to pay dues (if you owe money to IRS)
Non resident alien status = F1 for 5 years
Resident alien = H1B for the whole tax calendar year, F1 for more than 5 years
Dual alien status = F1/OPT plus H1B for more than 181 days in the same tax calendar year

1) Exempted from FICA (Social Security & Medicare) Taxes for a period of 5 years
2) F1 is a non resident till a period of 5 years
3) Non resident need to fill in Forms 1040NR or 1040NR-EZ
4) India US tax treaty Article 21(2) entitles them a standard deduction of $3400 and personal deduction of $5300
5) Taxable income = Gross income - 3400 - 5300
6) Tax on your taxable income = See table 8 IRS Pub 519
7) Incorrect filing (form or amount) affects the process in Green Card processing
8) If there is mistake in filing you could file for a correction back to a maximum of 3 years of filing by using form 1040X
9) If a student is on F1 for more than 5 years or on H1B in the calendar year for taxation (1st January - 31st December) he/she is considered a resident alien and needs to file form 1040 or 1040A or 1040A-EZ
10) If a student is on F1/OPT and on H1B for more than 181 days in the calendar year of taxation, he/she is considered dual status and needs to file 1040NR as well as 1040
11) If you have incurred moving expenses not borne by employer, it is fully deductible

Friday, March 21, 2008

Access Linux Partitions from Windows

ProgramTypeFile System Types File AccessPriceComment
Ext2FsdDriverExt2, Ext3Read, WriteFreeBest
Ext2 Installable File System for WindowsDriverExt2, Ext3Read, WriteFreeBad
Ext2 IFSDriverExt2, Ext3Read OnlyFreeBad
Explore2fsProgramExt2, Ext3Read OnlyFreeGood
Virtual VolumesProgramExt2, Ext3, ReiserFS, LVMView OnlyFreeBad
Ext2FS AnywhereDriverExt2, Ext3Read, WriteCommercialBetter