Posts Tagged ‘Ubuntu’
Install .deb Packages Manually (Linux Debian/Ubuntu)
When you download packages for Linux Debian or Ubuntu they usually come in the .deb format and are installed automatically by your local package manager. If you download them from the internet instead of the repositorial way however you are given the .deb file and have to deal with it yourself. To install it, open a terminal, direct it to the folder where it has been downloaded to with cd and use the dpkg command:
cd /home/ctest/Downloads/
dpkg -i random_name.deb
How to get detailed information about the harddisk installed on a Linux server
Detailed information about the hard disk type, disk vendor etc. of the disk used on a Linux system can be aquired with the linux tool hdparm. If hdparm is not installed on your server, it can be installed with this command (on Debian and Ubuntu systems):
apt-get install hdparm
For other Linux distributions, use the software installer and search for the package name ‘hdparm’.
To get the detailed disk info, run this command
hdparm -I /dev/sda
The device /dev/sda is the first SATA disk on the server, the second disk is /dev/sdb. Replace /dev/sda in the command with the name of the device that you want to query.
Get the disk health status with SMART monitor tools on Debian and Ubuntu Linux
Every modern disk has a internal monitoring function called SMART that keeps track on errors in that disk. There is a software package called smartmontools on Linux which can be used to query the SMART status of the disk to monitor if the disk might fail in near future.
Installation
apt-get install smartmontools
Usage
First we need to know the internal device name of the harddisks. For the first SATA disk, this is normally /dev/sda, the second is /dev/sdb etc. If you are unsure about the device names of your computer, then you can get them with:
fdisk -l
The command lists the partitions e.g. /dev/sda1. To get the device name, use the partition name without the number, e.g. the device of partition/dev/sda1 is /dev/sda.
To get a summary of the healt status of the disk, run:
smartctl –health /dev/sda
replace /dev/sda with the device name of the harddisk that you want to query.
The output will look similar to this:
~# smartctl --health /dev/sda smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED
To get the full detailed output of all parameters, use this command:
smartctl –all /dev/sda
Install GNOME Desktop On Ubuntu 11.10
If you would like your Ubuntu 11.10 better with the old GNOME desktop (no launcher but a good old system panel and so on), you can just install the gnome package and choose it as your default desktop environment. Therefore open a terminal and enter:
sudo apt-get install gnome
During the installation there will be some prompts that you will have to answer. Click OK on the first one after you are done reading:
Next, you will have to decide which desktop environment you want to configure as your default:
After installation, the GNOME as well as the Unity desktops will be available on the cogwheel-button in the login-screen:
Encrypt Folders (Ubuntu Linux)
To encrypt folders on Linux Ubuntu there is a simple program called Cryptkeeper which, while active, lets you mount and dismount password protected folders.
While unmounted, the encrypted folders are invisible to the user. While mounted, you need to enter the password to access its contents. To create a new encrypted folder just click on the key icon on the system panel and select New encrypted folder.
Make sure to unmount the encrypted folders before you quit Cryptkeeper since the files become accessible if they are mounted and Cryptkeeper is inactive. The files remain invisible if they are unmounted and Cryptkeeper is quit.
Copy and Paste Multiple Entries (Ubuntu Linux)
To be able to copy and paste multiple entries with Control + C and Control + V there is an applet for the GNOME desktop panel called Glipper which is a clipboard manager and is available in the default Ubuntu repositories. If it does not show up in your list of applets after installation, restart your system and it should be available. Its menu is accessible over the panel icon and the key combination which is configured in the Preferences menu (Ctrl+Alt+C by default). The top entry is the one that will be pasted on Ctrl+V. To change it, just select another one.
In Preferences, you can also configure on what actions selections should be copied into the clipboard, if they should be remembered on system restart and how many entries should be remembered.
Quicklink Current Files on the Desktop Panel (Ubuntu Linux)
There is a desktop panel applet for Ubuntu Linux and its derivatives that is able to store files and folders within a dropdown window accessible from a tiny icon on the panel bar called Topshelf. It is available in the default Ubuntu repositories.
It receives content by just dragging and dropping it into its window which opens upon clicking the topshelf icon. This way you do not have to browse long ways through the file system to find the files you are working on regularly but have easy access on them by quicklinking.
Change Default Application to Open Files (Linux Mint)
The default application is the one you open a file with on doubleclick. In some cases installed programs automatically turn themselves into the default application for files you were happy with, which you might want to change. To do that, rightclick a file of the chosen format and choose Open With… -> Other Application or Open With Other Application:
On the window that opens, choose an application or command and check the Remember this application for “…” files checkbox to apply your selection for all files of the same format:
Hit Open afterwards.
How to convert RPM software packages to Debian (.deb)
Maybe you had this problem already: you use Debian or Ubuntu Linux and a software package that you like to install is only available in RPM format. The solution is a handy tool called alien, which converts .rpm files to .deb. Installing alien:
apt-get install alien
Converting a rpm package to debian format:
alien –to-deb /tmp/mysoftwarefile.rpm
Conversions from .deb to rpm are also possible:
alien –to-rpm /tmp/mysoftwarefile.deb










