Archive | Linux RSS for this section

tcpdump – Detailed Network Traffic Analysis

The tcpdump is simple command that dump traffic on a network. However, you need good understanding of TCP/IP protocol to utilize this tool. For.e.g to display traffic info about DNS, enter: tcpdump -i eth1 ‘udp port 53′ To display all IPv4 HTTP packets to and from port 80, i.e. print only packets that contain data, [...]

Continue Reading

Show running processes in Linux

ps command Type the following ps command to display all running process: # ps aux | less Where, * -A: select all processes * a: select all processes on a terminal, including those of other users * x: select processes without controlling ttys Task: see every process on the system # ps -A # ps [...]

Continue Reading

Installing VMWare Tools in SLES CLI

In the VMWare Infrastructure Client select VM -> Install/Upgrade VMware Tools In the CLI type the following mkdir /media/cdrom mount /dev/cdrom /media/cdrom rpm -Uhv /media/cdrom/VMwareTools-3.5.0-{version}.i386.rpm SuSEconfig vmware-config-tools.pl ( If you’re getting gcc error’s check this post ) /etc/init.d/network stop rmmod pcnet32 rmmod vmxnet depmod -ae modprobe vmxnet /etc/init.d/network start Done Bookmark on Delicious Digg this [...]

Continue Reading

Install VMWare Tools under SLES 11 SP1

After installing SLES 11 SP1 under VMWare I wanted to install the VMWare Tools. After the install you’ll have to run vmware-config-tools.pl Running that gave me the following error. None of the prebuilt vmmemctl modules for VMware Tools is suitable for your running kernel. Do you want this program to try to build the vmmemctl [...]

Continue Reading

List disk space usage on Ubuntu

Simply open a new Terminal window and type in this command df -Th Bookmark on Delicious Digg this post Recommend on Facebook Share on Linkedin share via Reddit Share with Stumblers Share on technorati Tweet about it Subscribe to the comments on this post Bookmark in Browser Tell a friend

Continue Reading

Delete Files Older Than x Days on Linux

The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them. Command Syntax find /path/to/files* -mtime [...]

Continue Reading

How to Free Up a Lot of Disk Space on Ubuntu Linux by Deleting Cached Package Files

If you’re anything like me, you probably have Ubuntu running on your older computers, and they often have smaller hard drives so you’re looking to save every bit of drive space you can. Here’s an easy trick to free up a surprising amount of drive space. Every time Ubuntu updates or you install some software, [...]

Continue Reading

Install Firefox 4 Beta in Ubuntu 10.04

Installing Firefox 4 Beta using Synaptec Package Manager Open Synaptec Package Manager Click Setting > Repositories Select tab “Other Software” Click on the “+ Add” button and type the following in the APT line : ppa:ubuntu-mozilla-daily/ppa Click on “+ Add Source” and close Software Sources Hit the Reload button in SPM Search for “firefox 4″ [...]

Continue Reading

Setup SSH Server

Installing SSH server on your machine is quite straight forward. This will enable you to access your data from any SSH client. Simply install the required packages as follows: sudo apt-get install openssl ssh You can now access your computer from another machine using an SSH client. From another linux machine, you could access it [...]

Continue Reading

Screen resolution in RDesktop

You can remote desktop a Windows machine from Linux using the rdesktop command-line application; an example: rdesktop [machine] You can replace [machine] by the host name on the network or the IP address. Now, if you want to open the screen at a specific resolution, for example 1280×1024 resolution, add the -g flag: rdesktop -g 1280×1024 [...]

Continue Reading