Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Friday, May 3, 2013

How to install deb package ?

Install deb package


.deb packages is the extension of Debian software package format and the most often used name for such binary packages. Package file is helpful when you don't have internet connection. You can install  .deb package by using dpkg (Debian package management system), dpkg is used to install, remove, and provide information about .deb packages. To install follow this step below :

1. Download your .deb package.

2. Open your Terminal/Konsole, go to folder where you put your .deb package by using cd.

3. Type sudo dpkg -i package_name, then press enter.



4. Enter your root password.

5. dpkg will check dependency for that package, if there is an error while checking dependency, you must install the dependency that required by the package.


6. If the depends meet the requirement, Package will install automatically.


7. Install Completed, Check your new application.

Thursday, May 2, 2013

Install Software with apt on Ubuntu/Debian

It's been so long i didn't post, now i am back. 

How to Install a Software on Ubuntu/Debian ?


You can simply install software on Ubuntu/Debian by using apt. apt (Advanced Package Tool) is a package manager for Debian Distribution. APT was originally designed as a front-end for dpkg to work with Debian's .deb packages. How to Use it ? Here is the steps :

1. Open your Terminal/Konsole

2. Type "apt-get install [nameofthesoftware]"

in this case i want to install f-spot a photo manager software
If you get an error "Permission Denied", Just add sudo before apt-get. 
and enter your root password, then press enter.

3. "Do you want to continue ?" Press Y[yes] to continue, then press enter.


4.  Installing Process will appear.


5. Install Completed.


6. Check your new software, and test it.




Sunday, March 3, 2013

Mount ISO on Linux

Mount an .iso on Linux


To Mount an ISO file, You can mount ISO file via the loop devices under Linux. But how ? You need to use this mount command below :

1) First login as root, by type :

$ su

2) Create folder for mount point

# mkdir -p /mnt/mountiso

3) Use mount command to mount iso file.

# mount -o loop filename.iso /mnt/mountiso

4) Change directory to your mount point.

# cd /mnt/mountiso
# ls -l

Thursday, February 28, 2013

Linux Command

Linux Command

Here is Linux commands. The most common Linux commands are shown below :
Linux is Case-Sensitive !, it means uppercase and lowercase are different !

$ id : print real and effective UIDs and GIDs.

$ date : print current date and time.
$ cal : print current month calendar.
$ cal 9 2002 : print calendar for September 2002
$ cal -y : print current one year calendar

$ hostname : show linux hostname
$ uname : show the name of current system.
$ uname -r : print the kernel release.
$ uname -a : print all basic information of current system.

$ w : show who logged on and what they are doing now.
$ who : show who currently logged in.
$ whoami : print current login session username.

$ man : open manual.
$ man <command> : open manual. 
$ man -k <keyword> : search manual of related keyword.

$ cd <directory> : change directory.
$ cd /etc : change directory to /etc

$ chfn <usename> : change finger information.
$ finger <username> : print finger information.

$ clear : clear terminal window.

$ aproposcommand to search the man page files in Unix and Unix-like operating systems.
$ whatis : command to search the man page with complete words

$ ls : display current folder content.
$ ls -a : display current folder content including hidden folder.

$ mv : move file.
$ rm : remove file.
$ rmdir : remove empty directory.

*i will update this post

Sunday, February 24, 2013

Install NVIDIA Driver Backtrack 5

Install NVIDIA Driver Backtrack 5


Before install, make sure you've been downloaded NVIDIA Driver. If not download here nvidia.com.
So, let's begin, Internet Connection Needed

First you must install kernel sources, to know your kernel version type this in terminal:

uname -r

I have

2.6.38

Then, use apt-get install :


apt-get install linux-source-2.6.38


or

apt-get install linux-source-'uname-r'

next, go to /usr/src/ with :

cd /usr/src

see what inside :

ll or ls

You must have :

linux-source-2.6.38.tar.bz2

we need to unpack that file :

tar -xvf linux-source-2.6.38.tar.bz2

look again what inside,  you must have :


drwxr-xr-x 25 root root weight date linux-source-2.6.38/
-rw-r--r--  1 root root weight date linux-source-2.6.38.tar.bz2

Next you need to configure :

cd linux-source-2.6.38
make config


or for GUI :

make menuconfig

Now, let's Compile the source (This will take much time, so be patient) :

type this on your source-directory

make

once, done type

make install

Now you can install nvidia driver, but before you install you'll need to close your Xserver session by pressing :

CTRL+ALT+F1

after you entered first console, you need to press  :

CTRL+C

and Xserver will close.

Now for the main part, Installing NVIDIA Driver  (You need to enter your kernel source directory):


sh NVIDIA-Linux-x86-260.19.44.run --kernel-source-path /usr/src/linux-source-2.6.38

Now you've you NVIDIA driver installed.

If you get problem just ask me.