Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Friday, August 7, 2009

MultiBoot WinXP and Linux using Grub.

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

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:
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.

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.

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)

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.

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

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

  1. Start VLC and click on Settings -> Preferences.

  2. Expand Video -> Output modules.

  3. Select Output modules, and check the  checkbox at the bottom right that says Advanced options.

  4. 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

Saturday, August 25, 2007

Setting Evolution for Gmail Account

Steps to follow

  1. Enable the POP & SMTP service on gmail accont.

  2. Start Evolution

  3. Add New Account by clicking "Edit" -> "Preference"

  4. In "Accout Details", press "Add" Button

  5. Select "Forward"

  6. Enter your Account Name and Email ID and select "Forward"

  7. Select "POP" server for "Receiving Email"

  8. Under "Configuration" section enter "POP.gmail.com" and your email username

  9. Under "Security" select "SSL encryption"

  10. Under "Authentication Type" select Password

  11. Select "Forward"

  12. Select "Forward" for "Receiving Options

  13. In "Sending Email" select

    1. Server Type : SMTP

    2. Under "Server Configureation" add "SMTP.GMAIL.COM" for Server

    3. Under "Security" select "SSL Encryption" as "Use Secure Connection"

    4. Enter Username under Authentication section.



  14. 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.

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" />

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...

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}

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 -----------------

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 $1
gpg --armor --export $1 | apt-key add -
------------------------------------------------------------------