Monday, 14 November 2011

How to mount USB drive using Linux Command Line

Use the following command to list drive in Linux. Please ensure you have root access
# fdisk -l 

Refer to the info and look for "sdb1" (This is normally the name for your usb)

#mkdir /mnt/sdb1

Edit /etc/fstab
Add the following line in fstab
/dev/sdb1       /mnt/sdb1           vfat    defaults        0       0 

Type the following command in Linux terminal
#mount -a

Monday, 7 November 2011

Changing File Permission in Clear Case

To change the file permission on elements in ClearCase:

$ cleartool protect -chmod 775 filename.txt

To change a recursive directory in ClearCase

$ cleartool protect -chmod 775 -r /vob/myproject

To change element owner:

$ cleartool protect -chown newuser filename.txt

Search for the "protect" command for cleartool for more info

Tuesday, 13 September 2011

Writing simple app in linux to access IO port

Check out and google "IO permission map in Linux"

More info to come

Sunday, 4 September 2011

How is *.patch file created

If you guys were looking for how patch file was created or perhaps curious how are patch file created. It's by running the "diff" tool. Here's an interesting site:

Monday, 27 June 2011

Info on how to flash ROM on Samsung Galaxy S

Here's the nice info on how to flash custom ROM on Samsung Galaxy S.


Darky's Extreme Edition v10.1 JVH Fast. Sleek. Beautiful.

[GUIDE] Final v10.1 - Official DarkyROM - Gingerbread (JVH) - Noob-Friendly

Thursday, 23 June 2011

How to boot Open SuSe 11 to Serial Console

To enable default disable GUI booting and serial redirection to Serial Console.
You will need to edit the /etc/inittab file:

1) Change id:5:initdefault:      à    id:3:initdefault:    
 2) Change #S0:12345:respawn:/sbin/agetty –L 9600 ttyS0 vt102   à  S0:12345:respawn:/sbin/agetty –L 115200 ttyS0 vt102

If you are still having GUI as the default boot. Press Ctrl + Alt + F2 will switch to console and Press Ctrl + Alt + F7 will switch back to GUI.  

Wednesday, 22 June 2011

Links for good Linux information

Linux ArchWiki is a nice place to get information on linux

https://wiki.archlinux.org 

Tuesday, 21 June 2011

How to check Fedora Core 14 Linux Partition

A few ways you can check how's your partition was link

1) Edit the file in /etc/fstab

2) Type fdisk -l  , where l is a small letter of L

Suse 11 Root Login

If you are having some problem rooting your Suse 11 GUI login
Open GUI terminal (bash prompt) and type the following command to become root
$ su

Make a backup of your login account
cp /etc/pam.d/login /root

Open the account using vi editor
vi /etc/pam.d/login

Find the follwing line :

Auth [user_unknown=ignore success=ok ignore=ingore auth_err=die default=bat] pam_securetty.so

and change it to
#Auth [user_unknown=ignore success=ok ignore=ingore auth_err=die default=bat] pam_securetty.so

Save and close the file.
Logout from SuSe and login again using the "root" account.

Monday, 20 June 2011

Fedora Core 14 Native EFI installation

Here's the steps you can take to perform a Fedora Core 14 installation in EFI environment

1) Copy the vmlinuz and initrd.img from Fedora Core 14 installation disc to a pendrive
3) Compile elilo from http://sourceforge.net/projects/elilo/ and place it to the path where vmlinuz and initrd.img were copied
4) Create and add the following text to elilo.conf.

default=install
prompt


image=vmlinuz
    label=install
    description="Install"
    initrd=initrd.img

5) Place the Fedora Core 14 installation disc in your DVD ROM and Execute elilo.efi in EFI shell
6) Your installation should start by now.
7) Optional: Add the following line to the elilo.config if you need to redirect to serial console
    append="console=tty0 console=ttyS0,115200n8"


Alternative for elilo.conf to find FC14 installation disc
prompt
timeout=50
default=Linux


image=vmlinuz
  label=Linux
  initrd=initrd.img
  append="console = ttyS0, 115200n8"

Linux command for Sleep State

If you are running without a GUI.
Here's the following command to bring your Linux into sleep state

Sleep
# echo mem > /sys/power/state

Hibernate
# echo disk > /sys/power/state

How to check Kernel version

Use terminal and type in "uname -r" to get the Kernel version