Linux Scroll

Just another WordPress.com site

Monthly Archives: April 2011

Ubuntu install Virtualbox

Add one of the following lines according to your distribution:

$ sudo vi /etc/apt/sources.list

deb http://download.virtualbox.org/virtualbox/debian natty contrib

deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lenny contrib non-free

Import Oracle public key:

$ wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | 

sudo apt-key add -

Install VirtualBox:

$ sudo apt-get update

$ sudo apt-get -y install virtualbox-4.0 dkms

VirtualBox Extension Pack: Enable USB
Downlaod

Advertisements

Linux checksum

The program md5sum is designed to verify data integrity using the MD5 (Message-Digest algorithm 5) 128-bit cryptographic hash. MD5 hashes used properly can confirm both file integrity and authenticity.

It is better to do checksum if you download iso or software from untrusted source.
It is to avoid hacker added backdoor into program.
You should have your md5 hash (77969944918b0748adaa841a72db3a0):

$ cd Download
$ md5sum software.bin
$ 77969944918b0748adaa841a72db3a0 software.bin

Compare your hash result. Both must be same.

Internet Protocol Suite

Application Layer

BGP · DHCP · DNS · FTP · HTTP · IMAP · IRC · LDAP · MGCP · NNTP · NTP · POP · RIP · 

RPC · RTP · SIP · SMTP · SNMP · SOCKS · SSH · Telnet · TLS/SSL · XMPP ·

Transport Layer

TCP · UDP · DCCP · SCTP · RSVP · ECN ·

Internet Layer

IP (IPv4, IPv6) · ICMP · ICMPv6 · IGMP · IPsec ·

Link Layer

ARP/InARP · NDP · OSPF · Tunnels (L2TP) · PPP · Media Access Control (Ethernet, DSL, 

ISDN, FDDI) ·

TCP = Transmission Control Protocol
IP = Internet Protocol

IRC

Internet Relay Chat (IRC) is a form of real-time Internet text messaging (chat) or synchronous conferencing.It is mainly designed for group communication in discussion forums, called channels, but also allows one-to-one communication via private message[3] as well as chat and data transfer, including file sharing.

SUN Microsystems

SUN stand for Stanford University Network.

Intel’s first processor

The Intel 4004 was a 4-bit central processing unit (CPU) released by Intel Corporation in 1971.

Howto view linux partition

List linux partitions:

$ fdisk -l

List mount partitions:

$ mount

Howto search partition UUID

If you want to mount partiton in fstab, you need to search UUID for mount partiton:

$ ls -l /dev/disk/by-uuid

Manage wordpress with git

Git was initially designed and developed by Linus Torvalds for Linux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.

Install git:

$ sudo apt-get -y install git gitk gitosis

Initial:

$ cd wordpress/

$ git-init # initiate git repository
$ git-add . # apply to all files
$ git-status # check status
$ git-commit -m'wordpress initial 2.6.0 upstream' # commit
$ gitk --all

Create branch:

$ git-branch soy  # create new branch soy

$ git-checkout soy # switch to soy branch
$ gitk --all

Start modify:

$ git-checkout soy # switch to soy branch

$ cp -ar soy/wordpress .. # copy full modified copy to soy branch
$ vi wp-content/themes/default/style.css # make changes
$ git-status # check status of repository
$ git-add . # add all new files and changed files
$ git-commit -m'my modIFY' # check in my changes on SOY branch

Upgrade wordpress:

$ git-checkout master  # switch to the master branch

$ tar xzvf wordpress-2.6.2.tar.gz
$ cd wordpress
$ git-status # check status
$ git-add . # add all new files
$ git-commit -m'wordpress 2.6.2 upstream' # commit
$ gitk --all

Rebasing:

$ git-checkout soy # switch to soy branch

$ git-rebase master # stack soy changes on top of master branch
$ gitk --all

$ git-log master..soy  # log

$ git-rebase --continue # continue rebase

Nmap – port scanner

Network exploration tool and security / port scanner.

$ sudo apt-get -y install nmap

Scan host:

$ nmap -v 192.168.1.1