This is a one step command to extract and untar a tar.gz file.

tar zxvf filename.tar.gz

z = Gunzip(uncompress) it before extracting, used on file ending in .tar.gz or .tgz
x = Extract the contents of the TAR file
v = Verbose – display contents as it is tarring or extracting
f = Filename to follow

Note: If the file does not have “.gz” extension that means its already uncompressed and one has to just extract it using “tar xvf” command.

This is a two step command to extract and untar the file.

gunzip filename.tar.gz

tar xvf filename.tar

 

This is perhaps the best tutorial on how to set up Active Directory integration in CentOS.

http://www.linuxmail.info/active-directory-integration-samba-centos-5/

Update:
A related link on setting up Kerberos
http://www.howtoforge.com/samba_ads_security_mode

 

So you inherit a box running linux and you have no idea which flavor of linux it is. How do you find out?

If all you need the kernel version you can try
uname -a

This outputs something like this

Linux localhost.localdomain 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/Linux

If you need the actual distro name you can try
cat /etc/*release

In Ubuntu it shows up as

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION=”Ubuntu 9.04″

Or even
cat /etc/issue

which spits out the following on Ubuntu

Ubuntu 9.04 \n \l

You can combine all three to get the following
uname -a && cat /etc/*release && cat /etc/issue

Update:
Another one to add to the list
cat /proc/version

 

SNMP is not installed by default on Open Solaris but really easy to set up. You don’t need to compile it from source as some would suggest.

All you’ll need is to install the SUNWsmmgr package.
pkg install SUNWsmmgr
All of the config files, including snmpd.conf are in /etc/sma/snmp.

The service to enable snmp is called sma.
svcadm enable svc:/application/management/sma:default

To install utilities like snmpwalk and snmpget, you can install the SUNWsmcmd package.

 

In order to install Virtual Box Additions on your newly install Ubuntu virtual machine, you will need to fulfill the following dependencies.

Install dkms and the GNU C Compiler using the following command:

sudo apt-get install dkms gcc

Install the build and header files for Ubuntu using the following command:

sudo apt-get install linux-headers-$(uname -r)

$(uname -r) in the above command just passes your kernel version to apt-get

© 2012 !NSFW Suffusion theme by Sayontan Sinha