Setting Static IP Address Manualy in Ubuntu 9.10 (karmic) Using Terminal Command

For people who like online and would like to use the network once, often heard even to change the IP address manually using terminal commands in ubuntu, this post probably has a lot if you are searching on google, I hope this article was useful for you to read it.





To change the IP address manually, go to the terminal and type:
For example replace the IP address 192.168.1.2 and use the gateway 192.168.1.1

$ sudo su
$ gedit /etc/network/interface

Will appear a text editor and in it there is a configuration command:

auto lo
iface lo inet loopback

change configuration above with:

auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0

Save file configuration, then restart network services by type :

$ /etc/init.d/networking restart

Happy testing...!!
Read More...!!

Empty The Trash With Terminal Commands In Ubuntu

When we delete a file in ubuntu with right click and select move to trash, then the file will be moved to temporary shelters called trash.here we shall consider deleting/emptying the trash by using the terminal, want to know how? follow these steps:




Go to Terminal and type :


$ sudo su
$ rm -dr /home/user_name/.local/share/Trash/files/

Note :

"user_name" is for example a user on my ubuntu machine

Happy Testing...!!
Read More...!!

Create Apache2 Directory For Each User in Ubuntu.

When we install apache2, directory configuration files *. html, *. php must be in place in the directory /var/www




Well, for one, and another thing, we want to create a file *. html and *. php we freely without having to move from our local directory to directory /var/www earlier. For this purpose we need to enable UserDir in Apache2 features. To enable this feature can do the following steps:

Go to Terminal, Login as root by type :

$ sudo su
$ a2enmod userdir

then restart apche service by type :


$ /etc/init.d/apache restart

Rename existing public directory at home directory to public_html and create file *.html or *.php and put it in public_html directory. Go to your browser ex : firefox navigate to address bar : http://localhost/~user

Happy Testing...!!
Read More...!!

Install Windows Games on Ubuntu Karmic (9.10) Using PlayonLinux


To play Windows games on ubuntu Karmic (9.10) you can use Playonlinux application, this application allows fans to play Windows games on ubuntu. To install this application, follow these steps:



Go to Terminal and Login as root by type :

$ sudo su
$ wget http://deb.playonlinux.com/playonlinux_karmic.list -O /etc/apt/sources.list.d/playonlinux.list

Update your sources repository and then install playonlinux by type :

$ apt-get update
$ apt-get install playonlinux

Finish, you can install windows games on Ubuntu and good luck....!!
Read More...!!

Install KDE 4.2.4 in Ubuntu Karmic (9.10)

KDE is a desktop environment in linux, by default ubuntu use the GNOME desktop environment, to install KDE 4.2.4 on ubuntu Karmic (9.10) follow these steps:

Add Repository sources by type :


$ sudo su
$ gedit /etc/apt/sources.list




add following this line :


deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu karmic main

add GPG key :

$ gpg --keyserver keyserver.ubuntu.com --recv 2836CB0A8AC93F7A
$ gpg --export --armor 2836CB0A8AC93F7A | sudo apt-key add -

Update repository and install KDE 4.2.4 by type :

$ apt-get update
$ apt-get install kde

after finish reboot your machine by type :


  • $ reboot

Happy Testing.....!!

Read More...!!

Command For Erase CD/DVD RW on Ubuntu


This post just tips and trick to erase CD/DVD RW using terminal :
firt step you must unmount your cdrom by type

$ umount /dev/cdrom




to erase it type this command

$ cdrecord dev=/dev/cdrom blank=fast

Good Luck.....!!!!
Read More...!!

Remote Multimedia Player Using a Mobile Phone in Ubuntu Karmic (9.10)

To control music on ubuntu by using mobile phones can use the application remoco, remoco is an application to control multimedia applications on ubuntu by using bluetooth or wifi network, but only certain multimedia applications that can be controlled using the application. one of them is superior to music application on linux that is Amarok, to install remoco follow these steps:




Go to This
Go to Terminal and login as root by type :

$ sudo su

Add GPG key first :

$ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51A6F565

Add Repository by type :

$ gedit /ect/apt/sources.list

Add this line :

deb http://ppa.launchpad.net/remuco-team/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/remuco-team/ppa/ubuntu karmic main

Install Remoco for control Amarok application by type :

$ apt-get install remoco-amarok

Create strartup commad for remoco application, go to System > Preferences > Startup Applications and click add :

Name : Remuco
Command : remuco-amarok

Then install remuco on your mobile phone, download latest remuco and explore your music by controled on your mobile phone.
Read More...!!

Change Themes Gnome Display Manager (GDM) in Ubuntu Karmic (9.10)

On ubuntu karamic (9.10) themes Genome Display Manager (GDM) can not be replaced, because the ubuntu Karmic (9.10) default GDM version 2.28 and themes in this version can not be replaced, to replace the ubuntu GDM themes Karmic (9.10) you can change the version GDM 2.28 to 2.20 version that is used by default in ubuntu jautny (9.04). to install it, follow these steps:




Go to Terminal and login as root :

$ sudo su
$ /etc/init.d/gdm stop

The above command is to stop the process running GDM, then install the version of GDM 2.20

$ apt-get install gdm-2.20

when installing gdm version 2.20, 2.28 gdm versions will be deleted and will have problem, to fix it, follow these steps:

$ cd /etc/gdm
$ sudo sed ’s|X11R6/||’ gdm.conf >/tmp/gdm.conf
$
sudo mv /tmp/gdm.conf

Finish, reboot your machine by type :

$ reboot

Enjoy...!!
Read More...!!

Sound Problems on HP Compaq CQ40-401 in Ubuntu Jaunty (9.04)


In the laptop types HP Compac CQ40-401 is generally a problem they have compatible hardware, but the sound is a bit problematic, and to fix the problem follow the steps below:

Go to Application > Accesories > Terminal
login as root by type







$ sudo su
$ gedit /etc/modprobe.d/alsa-base.conf


add this line in text editor :


alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=dell-m4-1
options snd-hda-intel enable_msi=1


Go to System > Preference > Sound
select all for Alsa Sound settings

Go to terminal and type :

$ gedit /etc/group

change this line : 

audio:x:29:pulse

to

audio:x:29:[username],pulse

ex :

audio:x:29:minez,pulse

Save and Reboot your machine by type :

$ reboot

Good Luck...!!
Read More...!!