5 Things You Have To Know About dpkg Package Manager

What is dpkg ?

it’s a package manager for Debian system, and working on other distributions built from Debian system. Used for installing and Removing packages on you system. as same as using synaptic package manager on Ubuntu, but the difference that dpkg using for individual package without installing extra dependencies for this package.

so let’s open Terminal and see what we have here

1. Listing all installed packages on your system

dpkg -l

2. show installed packages for a specific Applications

for example will check installed packages for FatRat download manager, open terminal and type

dpkg -l | grep fatrat

Here is the output

mb@mb-lu:~$ dpkg -l | grep fatrat

ii  fatrat                                    1.1.1-5                                         multi-protocol download manager, feature ric

ii  fatrat-data                               1.1.1-5                                         data files for fatrat

you can replace fatrat with any other application name.

3. show installed files for specific package.

will use fatrat in this example too. go to terminal and type

 dpkg -L fatrat

it will show a list for installed file for fatrat.

4. If you want to know which package installed any file located on your system

For example i need to know which package installed this file ” chatIncoming.wav ” which located in this directories /usr/share/skype/sounds/

dpkg -S /usr/share/skype/sounds/ChatIncoming.wav

This will be the output

mb@mb-lu:~$ dpkg -S /usr/share/skype/sounds/ChatIncoming.wav

skype: /usr/share/skype/sounds/ChatIncoming.wav

show skype package name that installed this file before the colon.
5. Installing and uninstalling Deb packages we already showed you how to do it in this post

That’s it for Now.

[Tips And Tricks]: Gnome Screenshot Tool

Most popular tool to take screenshots on gnome desktop But there a lot of tips and tricks for taking screenshots for your desktop, windows, and your active running applications you might not familiar with it.

Usually when you open gnome screenshot tool you will find many options there to capture the whole window, a specific area to grab, or capture current window, and garbing window with delay time. also including two more options for include the pointer, and the border effect for adding shadows or not.

Here there more 9 more things to do even with GUI ” graphical user interface ” for gnome desktop or using Terminal

For terminal

gnome-screenshot --window

this to capture the active window

gnome-screenshot --delay=variable with seconds

This to capture with delay time as you wish

gnome-screenshot --include-border

This to keep the border for the active window

gnome-screenshot --remove-border

This to remove the border for the active window

gnome-screenshot --border-effect=shadow

To add shadow around the active window

gnome-screenshot --border-effect=border

To add border effect around active window

gnome-screenshot --interactive

To open capture window before capturing it

also you can use the print screen button on the keyboard to capture the whole window

To capture active window using the keyboard use the Alt+print screen button

check gnome screenshot documentation for more information.

That’s it for now.

[How To]: Create ISO file from CD-DVD using Terminal

A quick How To For today create ISO file from CD or DVD using command line.

Usually I use this command to get an ISO image from Disk for operating system, for example I have Kubuntu 10.04 LTS on a Disk, and i want to use that image on my virtual machine, instead of keeping the CD inside my CD ROM all the time.

Also you can use it as a backup way to keep your files safe on ISO file. I am sure you will figure out many ways to use this command  for  :)

The process

Insert the disk

then open terminal,,, type

 dd if=/dev/dvd of=~/Kubuntu.iso

I am not sure what dd stand for ” destroy data “, ” delete ” according to wiki  :)

if : input file

of : output file for the image will be copied to

dvd : it’s a variable according to what’s the device name located on ” dev ” directory

to get more information about dd unix command follow this link

That’s it for now, If you have any questions please inform me.

dd

if=f/dev/cdrom of=~/cdrom_image.iso

How To: Install FluxBox Window Manager on Ubuntu 10.04 LTS

FluxBox window manager is the real simple of X window system you will have ever see, Lightweight window manger, can be modified with a lot of styles and themes, and really easy to use. FluxBox was based on BlackBox 0.61.1

Installations Guide :

1. simply open terminal and type

 sudo apt-get install fluxbox

it will take a while till the installation process done.

and other way to install the FluxBox

2. Visit Download FluxBox site

and download the last stable version there. or if you are interesting in test development release

Download it then simply compile the package

access the directory for the download file then open terminal and type this commands

./configure

make

sudo make install

and here is some screenshots For FluxBox 1.1 after installing it on my Ubuntu 10.04 LTS with different styles

That’s it for now :)

Easier Navigation for Nautilus Gnome 2.30

It’s quite easier to use keyboard instead of the mouse sometimes, some changes comes up with the new release of Gnome GDM 2.30 for Nautilus. we already reviewed how to move “close, minimize, and maximize” button to right hand side of the title bar in this post. This tested on Ubuntu 10.04 LTS, also it’s working on other platforms as long as the gnome GDM 2.30 installed.

So here you can find many shortcuts will help you to easily navigate and use your file browser.

F3 : Extra pane    ” This options is new with Gnome 2.30 ”

Ctrl+S : Select Pattern [enter pattern]

Alt+ENTER : File/Folder Properties

Shift+Ctrl+N : Create New Folder

Ctrl+1 : Toggle View As Icons

Ctrl+2 : Toggle View As List

Shift+Right Arrow : Open Directory (List View)

Shift+Left Arrow : Close Directory (List View)

F2 : Rename File

Ctrl+A : Select All

Ctrl+T : Delete (to Trash)

Ctrl+W : Close Window

Ctrl+Shift+W : Close All Nautilus Windows

Ctrl+R : Reload Nautilus Window

Alt+Up Arrow : Open Parent

Alt+Left Arrow : Back

Alt+Right Arrow : Forward

Alt+Home : Home Folder

Ctrl+L : Location Bar

F9 : Toggle Sidepane

Ctrl+H : Show Hidden Files

Ctrl++ : Zoom In

Ctrl+- : Zoom Out

Ctrl+0 : Normal Size

[How To]: extend time for deleting temporary files in tmp directory on Ubuntu 10.04 LTS

Temporary files located on /tmp directory will be deleted by default with every time you restart or shutdown from ubuntu 10.04 LTS. It becomes handy some times if you want to keep your tmp files for some applications already installed in your machine in case you want to use it later.

Open this your filesystem directory /etc/default/rcS Open this file

In line 10 you will find ” TMPTIME=0 ” by default the value is zero that value delete temporary files with every time you restart the machine.

If you want to keep your files for ever make the value ” TMPTIME=0 ” with negative number. ” not recommended it will  ”

If you want to keep temporary file for two days, change the value to be ” TMPTIME=2 ”

so that’s for now :)

[How To] : move minimize, maximize, close button to right hand side of title bar?

With the new release of ubuntu 10.04 beta 1, beta 2 ” minimize, maximize, close” button moved to left hand side of the title bar.

check this this video will easily show you how to do it using configuration editor  ” gconf-editor ”

play in HD for better quality, Thumb up if you like it.

How to show system menu icons for ubuntu 10.04 LTS Beta 1

Hello guys,

I think when ubuntu 9.10 released system menu icons was hidden with default release, as same as with ubuntu 10.04 beta 1
it’s old trick for who don’t know it so there are two ways to get these icons back.

1st

open terminal and type
gconftool-2 --type Boolean --set /desktop/gnome/interface/menus_have_icons True
2nd

open configuration editor from system tools
if you can’t find it open terminal and type
 gconf-editor

then go to Desktop –> Gnome –> Interface

you will find “menus have icons” make this value true
that’s it
:)

De/compression Files

Compression and Decompression operation really easy to do with GUI application but some times you want to pack or unpack files. this operation I believe it much more easier sometimes with terminal than using GUI application. and I will show how easy to do it now.

Using file called : “Nov” with different compression extensions

Extensions

1. “.bz2″

bunzip2 nov.bz2

2. “.zip”

unzip nov.zip

3. “.lha”

lha e nov.lha

4. “.tar.gz” or “.tgz”

tar -zxvf nov.tar.gz

tar -zxvf nov.tgz

5. “.gz” or “.z”

gunzip nov.gz

gunzip nov.z

6. “tar.z”

uncompress nov.tar.z        use this command if you used “compress’ command to compress this file

7. “.tar”

tar xvf nov.tar

8. “.zip”

compress to files into one file called nov.zip

zip nov.zip nov1 nov2

nov1 and nov2 are files will be compressed into nov.zip

That’s it for now. :)

How to Run bin Files

Hello guys,

Quick “How To ….?”

How to run bin files

Go to Terminal

######################################################################

Your@Username:~$ sudo chmod +x “file name.bin”
password :
Your@Username:~$ ./“filename.bin” to execute the file
######################################################################
That’s it for now.