~ Mayank Johri’s Tips ~

February 2, 2009

Bug: PCLinuxOS 2007: LiveCD fails to boot on System’s with SATA Harddrive

Filed under: Linux — mayankjohri @ 7:48 pm

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

December 10, 2008

TIPS: Linux : Compress a directory

Filed under: Linux, Tips — mayankjohri @ 3:22 pm
Tags: ,

The following command can be used to compress entire directory in a file :

tar cjf <FileName>.tar.bz2 <DirectoryPath>

October 20, 2008

Switching back to Linux when Gnome-RDP in full screen

Filed under: Linux, Tips — mayankjohri @ 8:02 pm
Tags: ,

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.

October 7, 2008

checking ext3 filesystem using fsck

Filed under: Linux, Tips — mayankjohri @ 3:13 pm
Tags: ,

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.

September 18, 2008

Tips: Linux: Mount NTFS Share

Filed under: Linux, Tips — mayankjohri @ 2:02 pm
Tags: ,

 

mount -t cifs //<IPAddressOfRemoteMachine>/<Share> -o username=myntaccount,password=mypassword /mnt/ntfs

September 8, 2008

TIPS: dbus: UUID file ‘/var/lib/dbus/machine-id’ contains invalid hex data

Filed under: Linux, Tips — mayankjohri @ 3:00 pm
Tags: ,

Whenever you get the above error then it can be resolved by executing the following command

dbus-uuidgen > /var/lib/dbus/machine-id

June 4, 2008

PitHole: RPM : “warning, user XXX does not exist – using root”

Filed under: Linux, Packaging — mayankjohri @ 2:53 pm
Tags:
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)

February 18, 2008

A Brief Introduction of Package Management using APT

Filed under: Linux, Packaging — mayankjohri @ 5:23 pm

September 16, 2007

Another Downloader… batch downloader ….

Filed under: Linux, Python — mayankjohri @ 3:44 pm

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

August 29, 2007

rm2ogg convertor

Filed under: Linux — mayankjohri @ 3:26 am

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.

Filed under: Linux — mayankjohri @ 12:27 am

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.

August 25, 2007

mp32ogg convertor

Filed under: Linux, Python — mayankjohri @ 9:08 pm

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

Setting Evolution for Gmail Account

Filed under: Linux — mayankjohri @ 5:26 pm

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”

August 21, 2007

Slackware: Enabling package update through online mirrors

Filed under: Linux, Packaging — mayankjohri @ 1:25 pm

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.

August 16, 2007

Remedy for Bug #89741: with Compiz, the title bar on maximized windows are drawn completely white.

Filed under: Linux — mayankjohri @ 9:02 am

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

August 8, 2007

Slackware’s pacman through HTTP Proxy

Filed under: Packaging — mayankjohri @ 2:16 pm

edit the /etc/pacman.conf on your slackware/frugalware machine and add or update the following.

ProxyServer = your.proxy.server	ie	proxy.domain.com
ProxyPort = your_proxy_port	ie	8080 

July 24, 2007

mp3 to ogg

Filed under: Linux — mayankjohri @ 9:09 am

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…

May 15, 2007

Setting Null as root password

Filed under: Linux — mayankjohri @ 2:55 pm

sudo passwd -l root

This command will set Null as the root password. {To be used in ubuntu}

April 9, 2007

Adding Public keys for apt-get

Filed under: Linux, Packaging — mayankjohri @ 1:49 pm

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

Blog at WordPress.com.