resetting nvram pram on mac

May 20th, 2009 by shiraj

Try starting while holding the Command-Option-Shift-Delete keys all at the same time and see if it will let you startup/install.

Do you have any external drives you could install Tiger on first?

If the above doesn’t work, try this:

1. Start Mac and hold Option-Command-O-F keys
2. When the grey screen gets loaded type reset-nvram then press Return key
3. At next prompt type reset-all and the Mac will restart

See if that will allow install.

NTFS with read/write support using the ntfs-3g (easy & safe method)

September 21st, 2008 by shiraj

<!– @page { margin: 2cm } P { margin-bottom: 0.21cm } –>

To fond Version of OS: Check this one out:

$ lsb_release -a

NTFS with read/write support using the ntfs-3g (easy & safe method

Set up your sources :
To get the latest ntfs-3g, you will need first to add a repository to your source.list. Open a terminal and type:

Code:

    gksu gedit /etc/apt/sources.list

At the end of the file, just add one of the following mirror:
Warning : This repo don’t contain amd64 packages.

For DAPPER :
Feisty users don’t have to deal with additionnal repository, all is already in ubuntu repo.

deb http://flomertens.free.fr/ubuntu/ dapper main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ dapper main main-all
deb http://flomertens.keo.in/ubuntu/ dapper main main-all

2. Installation :

Packages of my repository are authenticated with a gpg key. To use it, you should execute the following command :

Code:

wget http://flomertens.keo.in/ubuntu/givre_key.asc -O- | sudo apt-key add -

or

Code:

wget  http://flomertens.free.fr/ubuntu/givre_key.asc -O- | sudo apt-key add -

First, upgrade your system :

Code:

sudo apt-get update
sudo apt-get upgrade

3. Automatic Configuration :

If you go for the automatic configuration, install ntfs-config. It will automaticly install ntfs-3g :

Code:

sudo apt-get install ntfs-config

Now, it’s rather easy. Just launch ntfs-config via the menu (in system tools) or via the terminal :

Code:

gksu ntfs-config

Linux – make root user

September 20th, 2008 by shiraj

To switch to root in my terminal session:

Type: sudo -i

# sudo bash
# passwd root

and you can login as root

Linux Network commands

July 5th, 2008 by shiraj

My friend wanted to know how to change or convert DHCP network configuration to static configuration. After initial installation, he wanted to change network settings. Further, his system is w/o GUI system aka X Windows. Here is quick way to accomplish the same:

Your main network configuration file is /etc/network/interfaces

Desired new sample settings:
=> Host IP address 192.168.1.100
=> Netmask: 255.255.255.0
=> Network ID: 192.168.1.0
=> Broadcast IP: 192.168.1.255
=> Gateway/Router IP: 192.168.1.254
=> DNS Server: 192.168.1.254

Open network configuration file
$ sudo vi /etc/network/interfacesOR$ sudo nano /etc/network/interfaces

Find and remove dhcp entry:
iface eth0 inet dhcp

Append new network settings:

iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254

Save and close the file. Restart the network:
$ sudo /etc/init.d/networking restart

Task: Define new DNS servers

Open /etc/resolv.conf file
$ sudo vi /etc/resolv.conf

You need to remove old DNS server assigned by DHCP server:
search myisp.com
nameserver 192.168.1.254
nameserver 202.54.1.20
nameserver 202.54.1.30

Save and close the file.

Task: Test DNS server

$ host cyberciti.biz

Network command line cheat sheet

You can also use commands to change settings. Please note that these settings are temporary and not the permanent. Use above method to make network changes permanent or GUI tool as described below.

Task: Display network interface information

$ ifconfig

Task: Take down network interface eth0 / take a network interface down

$ sudo ifconfig eth0 downOR $ sudo ifdown eth0

Task: Bring a network interface eth0 up

$ sudo ifconfig eth0 upOR$ sudo ifup eth0

Task: Change IP address and netmask from command line

Activate network interface eth0 with a new IP (192.168.1.50) / netmask:
$ sudo ifconfig eth0 192.168.1.50 netmask 255.255.255.0 up

Task: Display the routing table

$ /sbin/route OR$ /sbin/route -n
Output:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 ra0
172.16.114.0    *               255.255.255.0   U     0      0        0 eth0
172.16.236.0    *               255.255.255.0   U     0      0        0 eth1
default         192.168.1.254   0.0.0.0         UG    0      0        0 ra0

Task: Add a new gateway

$ sudo route add default gw 172.16.236.0

Task: Display current active Internet connections (servers and established connection)

$ netstat -nat

Task: Display open ports

$ sudo netstat -tulpOR$ sudo netstat -tulpn

Task: Display network interfaces stats (RX/TX etc)

$ netstat -i

Task: Display output for active/established connections only

$ netstat -e
$ netstat -te
$ netstat -tue

Where,

  • -t : TCP connections
  • -u : UDP connections
  • -e : Established

Task: Test network connectivity

Send ICMP ECHO_REQUEST to network hosts, routers, servers etc with ping command. This verifies connectivity exists between local host and remote network system:
$ ping router
$ ping 192.168.1.254
$ ping cyberciti.biz

See simple Linux system monitoring with ping command and scripts for more information.

Task: Use GUI (Graphical Configuration) network Tool

If you are new, use GUI configuration tool, type the following command at terminal:
$ network-admin &

Above command is Ubuntu’s GUI for configuring network connections tool.

Final tip – Learn how find out more information about commands

A man page is your best friend when you wanted to learn more about particular command or syntax. For example, read detailed information about ifconfig and netstat command:
$ man ifconfig
$ man netstat

Just get a short help with all command options by appending –help option to each command:
$ netstat --help

Find out what command is used for particular task by searching the short descriptions and manual page names for the keyword:
$ man -k 'delete directory'
$ apropos -s 1 remove

Display short descriptions of a command:
$ whatis rm
$ whatis netstat

Linux Newbie Administrtor Guide

May 2nd, 2008 by shiraj

http://linux-newbie.sunsite.dk/

LINUX NEWBIE ADMINISTRATOR GUIDE

Linux / ESX – Commands

April 20th, 2008 by shiraj

Change to Graphical User Mode from Text
Login as root and type startx, if that doesnt work try Xconfigurator and follow the prompts.


Navigation:

Move back: cd /
cd volumes/
virtual filesystem: cd /vmfs
copy file = cp
copy file to directory shiraj: cp filename /home/shiraj

df -h = listfile, show size of disk, and available

du -hs = show disk size

du = directory list expanded


move/rename:

mv to rename filename test to test.bak: mv test test.bak

File Attribute and permission:
List: ls, ls /home, ls -alF
list folder with: ls -alF drwxr-xr-x 4 root wheel 136 29 Sep 2006 xgrid/

drwxr -xr -x : d is for directory, rwx = user permission, r -x= group permission, r -x=all

Changeing Permission:
change file write permission for all: chmod a+w filename
change group: chgrp
change owner: chown w=write, g=group, u=user, x=all

DISKS
fdisk -l – this will display list of drives.

USING VI FILE EDITING
edit or view file test.cfg: vi test.cfg
insert to start editing: i
to out of edit mode: esc
close (semicolon): :
close quit yes: :q!
write save quite and yes: :wq!
to check large log file name test: tail
test last 30 line of filename test: tail -30 test