Followers

Powered by Blogger.
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Saturday, August 8, 2009

Howto setup Second IP address or Virtual IP address to your Networkcard in ubuntu

If you are a Network Administrator some time you need to assign more than ONE ip address (second ipaddress) to your network card of Ubuntu machine. For this you need to edit the /etc/network/interfaces file by adding the following lines . See the example below and make change according to your ip address settings

#vi /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.0.5
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

auto eth0:1
iface eth0:1 inet static
address 192.168.0.50
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

after entering the values save this file and you need to restart networking services in ubuntu using the following command to take effect of our new ipaddress.

After entering all the details you need to restart networking services using the following command

#/etc/init.d/networking restart

Friday, August 7, 2009

Install Educational Suite for Children aged 2 to 10 : GCompris in Ubuntu / Debian Linux


GCompris is a excellent educational software suite for children aged 2 to 10. Most of the activities are game orientated educational. GCompris offers more than 100 activities in differentclassifications like classified into mathematics, puzzles, computer discovery, amusement activities,strategy games, experimental activities and reading activities. Gcompris is available in more than 40 Languages.

Children can learn Basic Mouse movement, Colour Identification, Basic Asthmatic, Picture drawing and lot more.

More than 20 activities in Mathematics like calculations, geometry , numeration and Money Usage etc.

Install gcmpris in Ubuntu / Debian
Install from Synaptic or

$ sudo apt-get install gcompris

More Screen Shots
Wednesday, July 29, 2009

Smile : Video Slide Show Creator For Ubuntu / Debian Linux

Smile is a simple tool for creating Video Slide show in Linux.

First you have to install smile-data using gdebi package manager
Download Smile-data From here
(9.6 MB)

After that Install Smile
Download Smile from here
(1.1 MB)
Tuesday, July 28, 2009

gshutdown : Graphical Shutdown Utility

gshutdown is a Graphical Shutdown Utility, you can set the shutdown /restart time graphically. Beginners can easily schedule shutdown time using this utility.

$ sudo apt-get install gshutdown ( or use synaptic package manager)

Howto Change Wallpapper Automaticaly in ubuntu Linux : Drapes

Desktop Drapes will change your wallpaper randomly. It will select wallpaper from a list, or you can point it to a directory.

$ sudo apt-get install drapes
Monday, July 27, 2009

Virtual Makeup Software for Ubuntu / Debian Linux : jkiwi


jkiwi is a very unique software ever seen in linux. It won the national open source contest in Portugal. It can be used for hairstyling, concealer paint, eye shadows, blush, contact lenses for eye colors, change lip colors. Yes you can share it with your friend after loading it in your laptop.

Kiwi works best with images in .jpg or .png format and you should use a vertical image in one of the resolutions (480x640, 600x800, 768x1024). Larger images is not recomended due to memory size and overall application speed.

How to install jkiwi in ubuntu / debian
Download the .deb file from here (32 MB in size)
now
$ sudo dpkg -i jkiwi_0.9.5_ubuntu.deb
official site
It requires jre 5 or greater to run.

Ohh My God !! Debian / Ubuntu Package for S-e-x/ p-o-r-n Download : Gnaughty

FOSS Community knows what stuff people looking for!!!
I Cannot Believe, But it is true, because I have Tested this package in my ubuntu box and removed it . It is looking for an entry in Gnome. It is a sourceforge project !!! Click to enlarge the picture (my screen shot) for understanding How much serious it is!!
See the project description
Fast and Easy P-o-r-n Downloader

Gnaughty is a program to automatically download a-d-u-l-t s-e-x content, i.e. p-o-r-n movies and pictures, from a known Internet porn directory.

Providing a friendly interface, users who feel like having some p-o-r-n can have it served fastly and directly to their desktop.

Beware Network Administrators

IT WILL EAT YOUR BANDWIDTH !!!!!!

http://gnaughty.sourceforge.net/


Sunday, July 26, 2009

HowTo find Duplicate files in Ubuntu Linux : Fslint

Finding Duplicate files in linux is a difficult job. FSlint is a very good utility for find and clean duplicate file in linux. FSlint can use for one click removal of duplicate files, empty folders, temporary files, check the packages installed, incorrect connections etc..

For Installing FSlint in Ubuntu
$ sudo apt-get install fslint ( it is version 2.26)

Install latest version
wget http://www.pixelbeat.org/fslint/fslint_2.40-1_all.deb
sudo dpkg -i fslint_2.40-1_all.deb

For Fedora and Readhat
wget http://www.pixelbeat.org/fslint/fslint-2.40-2.noarch.rpm
sudo rpm -Uvh fslint-2.40-2.noarch.rpm
Friday, July 24, 2009

Howto Find Maximum memory capacity of Your Computer


Before Upgrading your Computers Memory capacity, You have to check maximum memory capacity of your system supports.
see this also

How to check your maximum memory capacity

it is simple
$ sudo dmidecode | grep Maximum

output

Maximum Size: 32 KB
Maximum Size: 4096 KB
Maximum Size: 0 KB
Maximum Capacity: 8 GB
Sunday, July 19, 2009

Howto Restore Ubuntu After Windows Installation Using LiveCD

Windows will overwrite the grub boot loader , So You cannot access Linux partition after Windows Installation.
Tools Required : Ubuntu LiveCD

First you have to boot your system with a ununtu LIVECD

Then Open a terminal ( Applications --> Accessories --> Terminal)


($sudo -i Will give # Prompt then you can avoid sudo in every command)


Now you can start
$ sudo grub this will give you a new prompt

Type the command
> find /boot/grub/stage1 This will give you a output like (hd0,2) in this case it will vary depends on your system

> root(hd0,2) ( use your hd number and there is no space between root and (hd0,2)

now type
> setup (hd0,2)

then
> quit
Now you can restart your system
Friday, July 17, 2009

Web based (Http) Network Traffic / Bandwidth Monitoring Tool: Darkstat

DarkStat is a simple Packet Sniffing Network Traffic/Bandwidth monitoring Tool for Ubuntu and other Linux distributions. DarkStat gives simple web based output with nice graphs and statistics , it will automatically refreshed. Darkstat uses a very low footprint and the memory, CPU usage.

How to install darkstat in Ubuntu / debian
$ sudo apt-get install darkstat ( or use Synaptic package manager)

For Running darkstat
$ sudo darkstat -i eth0
or for wireless
$ sudo darkstat -i wlan0
Now darkstat will start and run in background (You will not get any output now!!!!!)

Open your Browser
type http://127.0.0.1:667 in address bar

Howto Disconnect a Network Sevice without Stopping Entire Network in Ubuntu / Debian : Cutter

Cutter is tool used for disconnecting an TCP/IP connection. Some time Network administrators want to stop some specific services like ssh, chat. Cutter is a very useful utility for network administrators for blocking high bandwidth consuming services, peer-to-peer Service etc. It is a firewall administrators tool, so use in firewall / router machines.

$ sudo apt-get install cutter (or use synaptic package Manager)

cutter ipaddress1 [ port1 [ ipaddress2 [ port2 ] ] ]

You can use netstat for finding the connection.

Stop all ssh connection between 192.168.0.1 and server
$ sudo cutter 192.168.0.1 22

Stop all ssh connection between 192.168.0.1 and 192.168.0.2
$ sudo cutter 192.168.0.1 192.168.0.2 22

Stop all connections between 192.168.0.1 and server
$ sudo cutter 192.168.0.1

official Site

Thursday, July 16, 2009

Howto Check your webserver for vulnerabilities : Nikto a website scanner



Nikto is an Open Source (GPL) web server scanner which scans your webserver against more than 3500 dangerous files/CGIs, outdated version checking, It has a very good plugin support
Official site
To install in ubuntu / debian
$ sudo apt-get install nikto

Full installation of nikto will offer lot of options
$ nikto will give the list of options

For simple test

$ sudo nikto -h www.yoursite.com

output will we like this
abc@abc-desktop:~$ sudo nikto -h www.xxxx.com
- Nikto v2.03/2.04
---------------------------------------------------------------------------
+ Target IP: 210.222.232.234 (fake value)
+ Target Hostname: www.xxxx.com
+ Target Port: 80
+ Start Time: 2009-07-17 22:06:29
---------------------------------------------------------------------------
+ Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
- Allowed HTTP Methods: GET, HEAD, POST, OPTIONS, TRACE
+ OSVDB-877: HTTP method ('Allow' Header): 'TRACE' is typically only used for debugging and should be disabled. This message does not mean it is vulnerable to XST.
+ OSVDB-0: ETag header found on server, inode: 3965147, size: 2857, mtime: 0x433a88acc26c0
+ PHP/5.2.6-1+lenny3 appears to be outdated (current is at least 5.2.6RC4)
+ mod_perl/2.0.4 appears to be outdated (current is at least 5.8)

Saturday, July 11, 2009

mz (Mausezahn) : Network Traffic Generation Tool ( as wll as Network Jamming Tool) for Ubuntu / Debian Linux

mz (Mausezahn) is a versatile packet creation and network traffic generation tool. Using this tool You can Jam a Network.

This utility is used for Stress Testing of Networks and Firewall Testing. also for Finding weaknesses in network software or appliances.

Canonical does not provide updates for mz. Some updates may be provided by the Ubuntu community.
Don't Try to make headache to your Network Administartor

$ sudo apt-get install mz

this will send a specified packet to a destination port
$ sudo mz eth0 -t udp "sp=1, dp=80, p=aa:ff:00:11:22:33"
sp: source port dp: destination port p: packet

Flooding a network ,

Inject infinite frames as fast as possible:


$ mz eth0 -c 0 "aa bb cc dd ...."

Inject 100,000 frames with a 50 msec interval:

$ mz eth0 -c 100000 -d 50msec "aa bb cc dd ...."

I have purposefully made some simple mistakes in commands

slay : Kill all the Processes of a Selected User

slay is a command line utility used for killing all the processes used by a particular User. Some users will leave with out logingout, some kid users will use heavy games and stay it in background. slay will kill all the processes for such conditions. The main problem is , slay will not give any warning if you have unsaved documents!!! So take care and use it effectively, good tool for system administrators.

use synaptic or apt for installing slay in ubuntu / debian

$ sudo apt-get install slay

Usage

$ sudo slay varkala will kill all the processes of user varkala.

How to Lock / Unlock User in ubuntu / Debian Linux

For Locking User from command Line

$ sudo usermod -L varkala This will Lock user account named varkala

For Locking User from command Line

$ sudo usermod -U varkala This will UnLock user account named varkala

How to Monitor Memory and Swap Usage in Ubuntu Linux

List Memory Usage in Kilobyte
$ free
total used free shared buffers cached
Mem: 2042788 839976 1202812 0 35992 399284
-/+ buffers/cache: 404700 1638088
Swap: 4462644 0 4462644

$ free -m for display usage in Megabyte
$ free -b for display in usage in Blocks

$ free -s 5 Ddisplay memory usage every 5 seconds continuously
Friday, July 10, 2009

How to Install Web Based System Administration Tool : Webmin in Ubuntu9.04 / Debian

Webmin is a web based magical Graphical front end for System administration in Unix and Linux. You can manage User accounts, Printers, servers like squid, apache, dhcp, DNS and a Lot More .
For Installing Webmin in Ubuntu / Debian do the following Steps.

First You have to install the following dependencies

$ sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

Now you can download deb Package and install it
deb package is available here

After down loading deb file you can install it using

$ sudo dpkg --install webmin_1.480_all.deb

After Installation webmin can be run using a Firefox

Open firefox and type the following in address bar
https://127.0.0.1:10000 (Not http:// it is https://)

Now it will ask for some Security certificate issues, You can blindly give anything if you are not in a critical system.

Now webmin ask for username and password you can use your Linux username and password.

Official Website of webmin
Tuesday, June 23, 2009

How to Rip DVD in Ubuntu Linux : Thoggen


Thoggen is DVD ripping utility for Linux based on GTK+

It has a very nice Graphical front end
  • Supports title preview, picture cropping, and picture resizing.

  • Language Selection for audio track (no subtitle support yet though)

  • Encodes into Ogg/Theora video

  • Can encode from local directory with video DVD files

  • Based on the GStreamer multimedia framework, which makes it fairly easy to add additional encoding formats/codecs in future.

Thoggen supports opening DVD and DVD ISO images or reading a DVD directory which contains the VIDEO_TS folder. In the case of encrypted DVDs you may need libdvdcss2. Install this using help from here

To install thoggen in ubuntu

$ sudo apt-get install thoggen


Monday, May 4, 2009

Beautiful Desktop Wallpapers for Ubuntu 9.04

Great Collection of Beautiful Desktop Wallpapers for Ubuntu. You can download more than 50 wallpapers from here

About Me