Create Bootable USB from Linux

Install Livecd-tools and spin-kickstarts using Yum
yum install livecd-tools spin-kickstarts

Make the partition bootable
/sbin/parted /dev/sdb
(parted) toggle N boot
(parted) quit

Run the command from shell
/usr/bin/livecd-iso-to-disk /path/to/live.iso /dev/sdb1

Google Repo for Linux

Add following to /etc/yum.repos.d/google.repo file:
32-bit

[google]
name=Google – i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Install VNC and Fluxbox

Reference : http://wiki.centos.org/HowTos/VNC-Server

Install VNC
—————
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install vnc-server.i386

Create your VNC users.
useradd test
passwd test

Set User’s VNC password
Run vncpasswd

Edit Server Configuration
VNCSERVERS=”2:test”
VNCSERVERARGS[2]=”-geometry 800×600″

Restart VNC Server
/etc/init.d/vncserver stop
/etc/init.d/vncserver start

Create xstartup scripts
Login user “test” and edit xstartup script.
vi .vnc/xstartup

xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” -e ./menu &
amule &
fluxbox &

Install Fluxbox
————–
yum install fluxbox.i386
yum install xorg-x11-xinit.i386

Timezone Setup – NTP

Create a symlink to file localtime:

# ln -sf /usr/share/zoneinfo/EST /etc/localtime

#date

[bash]# chkconfig –level 2345 ntpd on
[bash]# /etc/init.d/ntpd restart

[bash]# chkconfig –list ntpd

To see if the service started successfully, you should check the system log file.

[bash]# grep ntpd /var/log/messages

[bash]# ntpq -pn

For correct synchronization, the delay and offset values should be non-zero and the jitter value should be under 100.

FreeBSD Hardware Info

Hardware type/platform, processor architecture
uname -mrs
—————————————————————–
RAM Information

cd /usr/ports/sysutils/freecolor
make install clean

To see memory details, enter:

#freecolor -t -m -o

OR

# fetch http://www.cyberciti.biz/files/scripts/freebsd-memory.pl.txt
# mv freebsd-memory.pl.txt /usr/local/bin/free
# chmod +x /usr/local/bin/free

Enter the command

# free

OR

sysctl -a | grep -i memory

—————————————————————–

CPU information

dmesg | grep CPU

—————————————————————–

Sysctl command to see rest of all information:

sysctl -a | less

CIDR Values

CLASS A


255.0.0.0 – /8
255.128.0.0 – /9
255.192.0.0 – /10
255.224.0.0 – /11
255.240.0.0 – /12
255.248.0.0 – /13
255.252.0.0 – /14
255.254.0.0 – /15

CLASS B


255.255.0.0 – /16
255.255.128.0 – /17
255.255.192.0 – /18
255.255.224.0 – /19
255.255.240.0 – /20
255.255.248.0 – /21
255.255.252.0 – /22
255.255.254.0 – /23
CLASS C


255.255.255.0 – /24
255.255.255.128 – /25
255.255.255.192 – /26
255.255.255.224 – /27
255.255.255.240 – /28
255.255.255.248 – /29
255.255.255.252 – /30