Linux System Administration

Installation prerequisites

Debian LogoIt is said that the installation of Debian Linux is know as one of the hardest among all Linux Distributions. In this article we will see that this is just a myth, in fact it is very easy, even for beginners. All you need is basic understanding of disk partitioning techniques and a downloaded/burned netinstall image which suits the hardware architecture you intend to install onto Debian Linux, and a internet connection. Of course there are other requirements, such as a working PC with a CD-ROM drive and free/unpartitioned space on your hard disk. :'''NOTE:''' Do not download all Debian GNU/Linux 4.0 installation disks! You only need the first CD or go to netinstall CD.

 

 

 

Beginning of the installation

Make sure you set your BIOS to boot from the CD-ROM. Once you boot Debian, it will welcome you with an Introductory Screen similar to the one below.

Debian Etch Introductory Screen

At this stage you can navigate with the function keys F1-F10:

Read more...

In many occasions I have tried to search for key words and get a results form a country which is not the one I’m searching from.

For example if I try to Google search from Australia and entering a a URL of google.com I’m automatically redirected to the google.com.au since my IP address reveals that my location is Australia. The trick is to pass a &gl= variable from the URL.

for example to get a United States results I will enter url:
http://www.google.com.au/webhp?hl=en&btnG=Google+Search&gl=us
United Kingdom:
http://www.google.com.au/webhp?hl=en&btnG=Google+Search&gl=uk

Sometimes it is easier to do:
http://www.google.co.uk/ however this does not work with google.com

Here is a simple program to display image attributes like width, height, size and etc. This program assumes that you have OpenCV library alredy installed on you system.

#include <iostream>
#include <iomanip>
#include "cv.h"
#include "highgui.h"

using namespace std;

int main( int argc, char** argv )

{

// Create an IplImage object *image 
IplImage *image = cvLoadImage( argv[1]);

// Display Image Attributes by accessing a IplImage object's data members

cout << left << setfill(' ') <<  setw(15) << "Image filename:" << argv[1] << endl;

cout << setw(15) << "Width:" <<  image->width << endl;
cout << setw(15) << "Height:" <<  image->height << endl;

cout << setw(15) << "Pixel Depth:" <<  image->depth << endl;
cout << setw(15) << "Channels:" <<  image->nChannels << endl;

cout << setw(15) << "Width Step:" <<  image->widthStep << endl;
cout << setw(15) << "Image Size:" <<  image->imageSize << endl;

return 0;
}

Compile with:

g++ `pkg-config opencv --cflags --libs` imageattr.cpp -o imageattr

OUTPUT SAMPLE:

./imageattr re_dsc00056.jpg
Image filename:re_dsc00056.jpg
Width: 1148
Height: 644
Pixel Depth: 8
Channels: 3
Width Step: 3444
Image Size: 2217936



Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top