Skip to main content

Posts

Showing posts from 2011

CentOS in Single user mode / root password reset [Default Installation]

Setting 'root' Password for Centos. Today my friend was having an issue where he was not able to set 'root' password. As the default installation had a default account without "sudo" privilege. To set the "root" password for Cent OS  Follow below steps. 1. In the grub boot menu prompt - enter "e" (for edit) to edit boot parameters. 2. Select menu this will bring up 3 or more based on the installation type. root, kernel, initrd   root (hd0,0)  kernel /vmlinuz-2.6.8-1.523 ro root=/dev/VolGroup00/LogVol00 rhgb quiet  initrd /initrd-2.6.8-1.523.img 3. Select " kernel /vmlinuz-2.6.8-1.523 ro root=/dev/VolGroup00/LogVol00 rhgb quiet " and press "e" for edit kernel /vmlinuz-2.6.8-1.523 ro root=/dev/VolGroup00/LogVol00 rhgb quiet single 4. Now add "single" at the end of the line (<space> single) as you see like the above line and press <enter> 5. Now at the boot menu enter "b" f

Change Boot Configuration on Ubuntu 10.10

My daily work revolves around Windows, Putty. My laptop which runs Ubuntu 10.10 and Windows 7 as dual boot. I wanted to change the default boot conf to Windows 7 instead of Ubuntu (which I just use when I am messing around something ). Anyways, I logged into Ubuntu 10.10 and went to my know place to change boot configuration /boot/grub/menu.lst But to my surprise it is not there. Little looking around got me want I wanted. Below is steps you need to follow to change your default boot configuration. Go to Terminal - Type “ sudo vim /etc/default/grub ” . Change “ GRUB_DEFAULT=0 ″ to “ GRUB_DEFAULT=4 ″  Remember sequence start from 0 , if your OS is on 5th on the list, in boot menu then you enter 4 in the "grub" file. Save the file. Type " sudo update-grub ” in the terminal. Reboot and have fun with Windows 7 as the default OS to be booted. Output for my system. ahmed@ahmed-on-Edge:/etc/default$ sudo vim grub [sudo] password for ahmed: ahmed@ahmed-on

Rooting Android Phone "Samsung Galaxy Ace"

I got my Android for a couple of months now and was stock for so long that I had to do something. So first thing I planned to do was to root it .. :)  Its very simple Attached are 2 files "root.zip" and "unroot.zip" To root your phone - Do the following. Copy root.zip to your SD Card (/sdcard) Rename the file as update.zip So your file should be in /sdcard/update.zip (you can view this from any file manager you can install from the android market) restart phone and hold the HOME button you will enter into recovery mode. (as seen the image attached) select apply sdcard:update.zip This will root your phone you are all set for nice RnD. To un root  your phone Follow the same procedure above, just replace unroot.zip to update.zip Enjoy ! unroot.zip Download this file root.zip Download this file Posted via email from What I See

Black and White life in Linux to color

Enter the below command to get the color on all the directories / executable files / other files (on Linux) [zahmed@build ~]$ ls 3.0.0_cores  code_review  rnd  snmp  test_binary [zahmed@build ~]$ alias l.='ls -d .* --color=tty' [zahmed@build ~]$ alias ll='ls -l --color=tty' [zahmed@build ~]$ alias ls='ls --color=tty' [zahmed@build ~]$ ls 3.0.0_cores  code_review  rnd  snmp  test_binary Posted via email from What I See

Running Crontab

My Previous post talks about sending automated emails using mutt. How do we automate this process say every hour Then we setup crontab to get this up and running. Below are few of the options which crontab gives. crontab -e Edit your crontab file, or create one if it doesn’t already exist. crontab -l Display your crontab file. crontab -r Remove your crontab file. crontab -v Display the last time you edited your crontab file. Steps Enter: $ crontab -e If you have not configured EDITOR it will ask for it set which ever you are comfortable with. Enter your time to execute command information, below is how you give it. ---------------------------------------------- ---------------------------------------------- # Every Minute # m h dom mon dow command * * * * * /home/ahmed/executeMyMuttScript.sh ---------------------------------------------- # Every Hour at zero minute # m h dom mon dow command 0 0-23

Configure "mutt" to send mail over SMTP using Google Apps

dot.muttrc Download this file My Colleague was working on having auto scripts to send mail through "mutt" with backup attachment. But he was not able get it up, so though of looking into this. Wondering what "mutt" is go here then :) Here is what I did to get it working. If you need to configure anything for mutt first look for .muttrc in your home directory ~/.muttrc If its not there you can create one. I have attached my .muttrc file you can use to configure your mutt . (change the email and password) Just download the dot.muttrc and save it as .muttrc in your home directory (/home/ahmed). Also create directory in the  path below mkdir -p ~/.mutt/cache/headers mkdir -p ~/.mutt/cache/bodies mkdir -p ~/.mutt/certificates Before you can start using the script to send your mails - you need to send the first mail from the "mutt client" so that it takes the certificate from the server. use $ mutt This will bring up the mu

Service Manual For VAIO

useful link for VAIO repair. http://www.laptoprepair101.com/laptop/2008/01/07/service-manuals-for-sony-vaio-laptops-notebooks/ Regards. Posted via email from What I See

3CX with AsteriskNOW

Got a really nice app for my Android Phone. http://www.3cx.com/blog/3cxphone/android/configuring This app works like a charm with my AsteriskNow setup. How to set up asteriskNow for your Cisco Ip Phone is here Posted via email from What I See

SVN Roll back

Today we had committed the wrong version into the trunk by mistake. Little googling got me the answer. Here is the scenario which might save your @$$ . My Best friend today was svn merge. svn merge is also used to roll back a change that has already been committed.  Suppose you're working away happily on a working copy of /calc/trunk, and you discover that the change made has been checked-in to trunk by accident as 939 but you want the roll back to original. Use the below command $ svn merge -r 926:939 http://svn.example.com/repos/calc/trunk Here merge will get 926 version into your checkout code then all you need to do is Check-In the latest version into Trunk. Posted via email from What I See

Simba ...

Simba .. Posted via email from What I See

Mac OS X on VMWare 3.1

Mac on VMWare -- HOWTO here !!! Posted via email from What I See