If winxp is installed on second drive and linux is installed on first drive then add/update the following entries in the /boot/grup/menu.lst file
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
chainloader +1
My 2cent tips & tricks on computer technology & Application Virtualization ...
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Friday, August 7, 2009
Tuesday, February 3, 2009
Bug: PCLinuxOS 2007: LiveCD fails to boot on System's with SATA Harddrive
Error:
LiveCD fails to boot with the following error:
Resolution
LiveCD fails to boot with the following error:
Searching for the loop image [DONE]
ERROR: Unable to mount the livecd
Dropping you to a limited shell ................
Resolution
Add the following word on grub menu
all-generic-ide
Wednesday, December 10, 2008
TIPS: Linux : Compress a directory
The following command can be used to compress entire directory in a file :
tar cjf <FileName>.tar.bz2 <DirectoryPath>
Tuesday, October 21, 2008
Switching back to Linux when Gnome-RDP in full screen
Ctrl+Alt+Enter will return you from full-screen mode.
You can use the same set of keystrokes to enter into the full-screen mode.
You can use the same set of keystrokes to enter into the full-screen mode.
Tuesday, October 7, 2008
checking ext3 filesystem using fsck
use the following command for checking ext3 filesystem using fsck
fsck -c <drive>
<drive>: path of drive which you like to get scanned,
NOTE: IT Is aways advice to unmount the partition which needs to be scanned.
fsck -c <drive>
<drive>: path of drive which you like to get scanned,
NOTE: IT Is aways advice to unmount the partition which needs to be scanned.
Thursday, September 18, 2008
Tips: Linux: Mount NTFS Share
mount -t cifs //<IPAddressOfRemoteMachine>/<Share> -o username=myntaccount,password=mypassword /mnt/ntfs
Monday, September 8, 2008
TIPS: dbus: UUID file '/var/lib/dbus/machine-id' contains invalid hex data
Whenever you get the above error then it can be resolved by executing the following command
dbus-uuidgen > /var/lib/dbus/machine-id
Wednesday, June 4, 2008
PitHole: RPM : "warning, user XXX does not exist - using root"
If while installing rpm package following error occurs
warning: user XXX does not exist - using root
Issue : I'm trying to build/install an rpm and it keeps giving me these warnings while installing the binary. Though I heard this could be safely ignored as its bcos there is no user XXX on my box, was wondering if there is a way to supress this in the rpm spec file itself. I know I could also manually build it as root. But curious if we could supress this from the spec.
Resolution:
Add the following in the spec file and recompile the spec file
%defattr(-,root,root)
Monday, February 18, 2008
Sunday, September 16, 2007
Another Downloader... batch downloader ....
The script can be used to batch download the files from the internet. say for example the website contain files from 1.zip to 100.zip at
http://www.something.com/zipfiles/ folder. then the download command will be
AnotherDownloader.py http://www.something.com/zipfiles/*.zip 1 100 /home/test/download
the above command will download the files to /home/test/download folder.
http://www.something.com/zipfiles/ folder. then the download command will be
AnotherDownloader.py http://www.something.com/zipfiles/*.zip 1 100 /home/test/download
the above command will download the files to /home/test/download folder.
AnotherDownloader.pdf
Wednesday, August 29, 2007
rm2ogg convertor
Use the following command to convert rm files to ogg files.
$ mplayer "aks1.rm" -ao pcm:file=temp.wav | oggenc -q 10 -o "aks1.ogg" temp.wav
$ rm temp.wav
$ mplayer "aks1.rm" -ao pcm:file=temp.wav | oggenc -q 10 -o "aks1.ogg" temp.wav
$ rm temp.wav
Display Video in VLC when using compiz is enabled.
For some reason, when compiz is running VLC does not show any video. I found the work around to the issue by following the below instructions
- Start VLC and click on Settings -> Preferences.
- Expand Video -> Output modules.
- Select Output modules, and check the checkbox at the bottom right that says Advanced options.
- Select the option to select a different output device. Pick X11 video output, click on Save.
Sunday, August 26, 2007
mp32ogg convertor
I am adding a script which will convert the mp3 from a folder to ogg. mpg123 and oggenc are prerequisite for this scirpt. It can be download from http://mayankjohri.files.wordpress.com/2007/08/mp32ogg.pdf
The PreReq's are mpg123, vorbis-tools, python-id3
The PreReq's are mpg123, vorbis-tools, python-id3
Saturday, August 25, 2007
Setting Evolution for Gmail Account
Steps to follow
- Enable the POP & SMTP service on gmail accont.
- Start Evolution
- Add New Account by clicking "Edit" -> "Preference"
- In "Accout Details", press "Add" Button
- Select "Forward"
- Enter your Account Name and Email ID and select "Forward"
- Select "POP" server for "Receiving Email"
- Under "Configuration" section enter "POP.gmail.com" and your email username
- Under "Security" select "SSL encryption"
- Under "Authentication Type" select Password
- Select "Forward"
- Select "Forward" for "Receiving Options
- In "Sending Email" select
- Server Type : SMTP
- Under "Server Configureation" add "SMTP.GMAIL.COM" for Server
- Under "Security" select "SSL Encryption" as "Use Secure Connection"
- Enter Username under Authentication section.
- Select "Forward"
Tuesday, August 21, 2007
Slackware: Enabling package update through online mirrors
Unfortunately Slackware 12.0 does not unable update of OS by default, slackpkg needs to be installed from the install CD/DVD which is located in "extra\slackpkg" folder.
installpkg slackpkg*.tgz
uncomment only one mirror on /etc/slackpkg/mirrors file which represent your version.
slackpkg update; slackpkg upgrade-all
the above command will upgrade your machine.
installpkg slackpkg*.tgz
uncomment only one mirror on /etc/slackpkg/mirrors file which represent your version.
slackpkg update; slackpkg upgrade-all
the above command will upgrade your machine.
Thursday, August 16, 2007
Remedy for Bug #89741: with Compiz, the title bar on maximized windows are drawn completely white.
When Compiz is running then the title bar on maximized windows are drawn completely white for my Laptop R32.
The solution of the issue is to create /etc/drirc file with the following contents:
<option name="allow_large_textures" value="2" />
The solution of the issue is to create /etc/drirc file with the following contents:
<option name="allow_large_textures" value="2" />
Tuesday, July 24, 2007
mp3 to ogg
1. apt-get install mpg321 vorbis-tools (If you don't have them on your machine)
Note: If you get error, check that you have contrib and non-free depositories in your sources list
2.Code: mpg321 input.mp3 -w raw && oggenc raw -o output.ogg
Note: raw is just a file name, it could be anything you want...
Note: If you get error, check that you have contrib and non-free depositories in your sources list
2.Code: mpg321 input.mp3 -w raw && oggenc raw -o output.ogg
Note: raw is just a file name, it could be anything you want...
Tuesday, May 15, 2007
Setting Null as root password
sudo passwd -l root
This command will set Null as the root password. {To be used in ubuntu}
This command will set Null as the root password. {To be used in ubuntu}
Monday, April 9, 2007
Adding Public keys for apt-get
When one adds a new repositry in sources.list file then there is a high possibility that we face the following error when `apt-get update` command is executed
------------------------- Error -----------------
To resolve this issue i have created a script which when provided the KeyID will download the key and add it to your key ring.
------------------------------------------------------------------
------------------------- Error -----------------
W: GPG error: http://edevelop.org unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7E5D69A103CA4243
W: GPG error: http://ftp.debian-unofficial.org sarge Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D5642BC86823D007
W: There are no public key available for the following key IDs:
B5D0C804ADB11277
W: You may want to run apt-get update to correct these problems -------------------------------------------------To resolve this issue i have created a script which when provided the KeyID will download the key and add it to your key ring.
---------------------------------- Script ------------------------
gpg --keyserver subkeys.pgp.net --recv-keys $1gpg --armor --export $1 | apt-key add -------------------------------------------------------------------
Subscribe to:
Posts (Atom)