This tutorial explains the steps to install Syslinux and GRUB to the MBR of a drive to make it bootable.
Syslinux
Steps:
1. Extract the contents of syslinux to a folder
2. Open command prompt and navigate to the syslinux folder
3. Run "syslinux -sfma X:" [where "X" is the drive letter as seen in Disk Manager]
-s = Safe, slow, stupid; uses simpler code that boots better
-f = Force installing
-m = Mbr; install a bootable MBR sector to the beginning of the drive
-a = Active; marks the partition used active (=bootable)
Download: Link
Faq: Link
grub4dos
Download stable version (grub4dos, grubinst, wingrub): Link
Download latest version (grub4dos): Link1 Link2
Download latest version (grubinst): Link
Faq: Link
Commandline
grubinst (FreeBSD, Windows NT family OSs (Windows NT/2000/XP/2003/Vista) and Linux)
Steps:
1. Extract the contents of grubinst to a folder
2. Open command prompt and navigate to the grubinst folder
3. Run "grubinst (hdX)" [where "X" is the disk number as seen in Disk Manager]
bootlace.com (DOS, Pre Windows NT family OSs (Windows 95/98/Me) and Linux)
Steps:
1. Extract the contents of grub4dos to a folder
2. Navigate to the grub4dos folder
3. Run "bootlace.com 0x8Y" [where "0x8Y" is the BIOS drive number(hex 0xHH or decimal DDD), and where "Y" is the disk number as seen in Disk Manager]. It is 0 for the first floppy, 1 for the second floppy; 0x80 for the
first hard drive, 0x81 for the second hard drive, etc.
GUI
grubinst GUI (Windows NT family OSs (Windows NT/2000/XP/2003/Vista))
Steps:
1. Run grubinstGUI.exe
2. Select the drive you want to install grub
3. Leave everything as default
3. Click OK
Install gfx enabled grub4dos to the MBR of a drive
Steps:
1. Download grub-gfx from Here or Here
2. Install grub4dos either using grubinst, grubinst GUI or bootlace.com
3. Delete grldr that was present by default in the drive
4. Copy & paste grldr from the downloaded grub-gfx to the root of the drive
5. Copy & paste menu.lst to the root of the drive
6. Boot
You could also try grub2
Download: Link
Faq: Link
Thursday, June 12, 2008
Graphical boot menu with various boot loaders
| Boot Loader | Config File | Graphics | Image/Graphics File | Syntax in Config File |
|---|---|---|---|---|
| Isolinux | isolinux.cfg | display | message.msg/boot.msg or splash.lss | display <path to message.msg> or display=<path to message.msg> |
| Syslinux | syslinux.cfg | default | vesamenu.c32 | display <path to vesamenu.c32> or display=<path to vesamenu.c32> |
| menu background | splash.c32 or *.png or *.jpg | menu background <path to *.png> or menu background=<path to *.png> | ||
| GRUB | menu.lst | splashimage | *.xpm.gz | gfxmenu <path to *.xpm.gz> or gfxmenu=<path to *.xpm.gz> |
| gfxmenu | message (cpio) | gfxmenu <path to message> or gfxmenu=<path to message> | ||
| gfxboot | bootlogo (cpio) | gfxboot <path to bootlogo> or gfxboot=<path to bootlogo> | ||
| LILO | lilo.conf | bitmap | *.bmp | bitmap <path to *.bmp> or bitmap=<path to *.bmp> |
| message | message (pcx) | message <path to message> or message=<path to message> |
Image Constraints
| Boot Loader | Image Size | No of Colors | File Size |
|---|---|---|---|
| LILO | 640 x 480 pixels | 255 | ?? | GRUB | 640 x 480 pixels | 255 | ?? | Syslinux | 640 x 480 pixels | 255 | ?? | Isolinux | 640 x 480 pixels | 255 | ?? |
Saturday, June 7, 2008
My Linux Notes
Frequently used commands
Embedded Realmedia doesn't work with Firefox. The pop-up player opens and keeps loading for ever, but never starts to play.
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
http://www.slax.org/forum.php?action=view&parentID=8629
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 removepkgProgram to convert tgz to lzm
tgz2lzmInstalling 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-firefoxPath to fonts
/usr/local/share/fontsGrub Install
sudo grub device (hd3) /dev/sda root (hd3,0) setup (hd3) quit syncRealplayer 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)
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
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
Subscribe to:
Posts (Atom)