Command Line Package Management [Debian Based]

you can use ‘apt-get’ tool to manage packages via the CLI instead of using the GUI. ‘apt-get’ can be used to install and uninstall packages as we needed. For your convenience Im going to introduce another CLI tool , ‘dpkg’. Most of you may already have useded it.

Installing a program:

apt-get install

apt-get install

system will check the repositories and install it into the pc from a desired place. By default it will connect your PC to a FTP server and download the required package and its dependencies, then install. This method is highly effective for a good installation.

If you want to install a package which is already saved in your pc,

dpkg -i

dpkg -i

At times you have to download the package source code/binaries and compile it then install. To do that go in to that folder and follow the following steps,

#./configure
#make
#make install

Uninstalling a program:

same tools again!

dpkg --list

dpkg --list

using the above code you can get a list of installed programs.You can use ‘apt-get’ as shown bellow to remove programs,

apt-get remove

apt-get remove

when after performing an ‘apt-get install’, by experience you ll understand that its installing  also other packages as dependencies. We can also remove a program with all its dependencies.

apt-get --purge

apt-get --purge

these are the basics of Linux file management via CLI. Feel free to experiment the commands and rediscover the CLI.
……………..enjoy…………….

Airtel HSDPA [Sri Lanka]

Hi folks! Couldn’t write for about a month I think. But now I m back again with my Brand new HSDPA kit. Well HSDPA means speedy internet isn’t it? But I would have to say that life would be little more difficult and hard when you have Airtel HSDPA!

Airtel+e220

Airtel+e220

I’m using Airtel’s middle package. 600Rs per month, 3 GB free download and 1Mb/s speed. Ya its worth. But the problem is there coverage. It sucks. Not totally. But mostly! I also brought a Huawei e220 modem from Dialog GSM. It’s in good shape after unlocking. Now they both working well. But as I mentioned early I m not satisfied about Airtel HSDPA coverage and their system. Usually when some one tries to connect to a network (as other service providers do) it detects the user and gives the required setting. Like its ‘APN’ and stuff. But Airtel isn’t capable of that. I didn’t get any HSDPA settings when I tried to connect them for the 1st time. So I had to have some calls to a friend (chanux) of mine requesting to google the setting. Luckily I didn’t call their customer care, because after some time I found that its something like fallen from the sky (more..) . There APN was AirTelLive and I gave the access number as *99#. It worked! But first I got only GPRS signals. That’s because when the signal strength is low the modem software detects it and only allows the device to receive the most available signal type. If you are an Airtel data user this would be your ‘Frequently Faced Problem’.  To avoid this you can set the modem only to receive WCDMA/HSDPA signal frequencies. If you are also using an e220, go to Tools -> options -> Network and set the Network Type as WCDMA only. The handy thing is these setting are also being saved in the device. So Linux users like us don’t have to suffer thinking to find solutions to run the modem software in Linux.

So after doing some work now I’m receiving HSDPA signals. Now it only varies between WCDMA and HSDPA (no more GPRS). The signal strength is about 40% but it’s far better than having GPRS. Under 40% of signal strength I got hardly satisfied about my service provider. Also I didn’t find a way to detect my data usage over the month. It doesn’t matter if the Data package is unlimited. But there should be a way to detect it for limited users like us.  And have to say another thing! If you ever thinking to get support from Airtel’s website, then forget about it. Its totally Crap!

………………………Later……………………..

Hack the System [Windows XP]

Well, this is a simple method to hack into other logins. But can be useful at times.

Requirements:

è    Windows XP

è    Multiple User Logins

è    Curiosity 😉  

è    50 seconds from your computing life 😉

 

Procedure:

è    Simply log in to your account.

è    Open up the command prompt.

è    Then type “net user”. You will get a list of all users.

net user

net user

è    Now type,

net user  user name to be hacked*

è    Then it’ll ask you to enter a password. Remember, the things you type will not be viewed. Press enter, and then retype the password to confirm.

Now the existing password of other user is replaced by the password you entered.

 

*** If your account is a ‘limited’ one this method won’t work.

Get what you wanted and run for your life……… 😉         Happy Hacking.

My Linux is in My Pen Drive [PuppyLinux4.1].

Yes, by all it means now it is also inside my pen drive. But what’s so special?

Answer: mm… its only 94MB of capacity, it allows persistent data and it has all the features of a normal distro . So what else I need? 😉

PyppyLinux4.1
PyppyLinux4.1

Haha ..  Let me explain. I heard about a very small Linux distro by a friend of mine. So I looked forward to find out more. It was ‘Puppy Linux4.1.2’. You can also download it from www.puppylinux.com. First I thought ‘oh its only 94 mega bytes… What the hell it should be some kind of useless crap’. But at the end it really pissed me about my under estimation! As I mentioned now its in my pen drive. its clean, stable and very user-friendly.  I spend only about 8 minutes to install, maybe less. It only gets seconds to boot into the RAM. Then you are good to go. This distro is specially designed for hot plugs.  You can plug it to any machine which has minimum of 48MB of RAM and 8MB of Shared Video. But you want be loosing your default settings and other saved data. That’s what I meant by ‘persistent data’. Puppy asks you to save all your settings into the drive you are currently using. Mostly it’ll be a small file with some allocated mega bytes in your pen. Not like other Linux distros, you need not have to make special partitions or file systems in your pen drive or other device. If its default file system is FAT, You can install Linux on FAT. That’s because the installed location only contains compressed files and at the bootstrap it uncompress them to the RAM.

Puppy 4.1.2 has two graphical servers. ‘X.org’ and ‘Xvesa’ (I use Xvesa). Its default desktop mostly looks like KDE. It gives ‘abiword 2.6.3’ as a word processor. I felt it like Open Office while I’m using it. It has ‘SeaMonky1.1.11’ for browsing (something like Firefox). It has a handy Personal Organizer call ‘OSMO’. Like the other organizers it allows you to maintain your contacts, tasks and calendar. Like that ‘Calc’ for spread sheets, ‘InkscapeLIte’ and ‘mtpait3.21’ a simple GTK paining program for art work, ‘Geany 0.12’ the fast & light weight IDE, The puppy PDF converter (this is the first time I got a PDF converter as a default of the OS) and it also provide CD ripping tools like ‘Ripoff CD song ripper’  and also a number of CD/DVD burning software.

A special thing I saw about Puppy Linux is it covers all the main requirements of a normal user.  Finally have to say something about its ‘Gxin 0.5.9 media player’. It runs almost all types of media formats (I personally experienced good results by running following media formats: – .avi,.mp4,.mp3,.3gp,.DAT,.mpg,.divx,.wmv,) .

You really have to try out ‘Puppy Linux’ in your machine. And feel free to comment your thoughts.

Editing the GRUB ~ HowTo

This is about customizing the grub menu which appears at the bootup. The things in this menu contains in a file called ‘menu.lst’ and its located in ‘/boot/grub’ dir. Its not difficult to edit this but bit risky if you don’t do it correctly. So for your safe its better to backup this ‘menu.lst’ file first. Then fire up your terminal/konsole, get root privileges and type,

nano

nano

 

Now you see ‘menu.lst’ through the terminal/konsole in edit mode. It looks very complex at the very first moment. But if you take a further look, you ll notice that most of the things are just comments. This HowTo explains only 4 useful edits.

 

  1. Changing The Default Timeout

Fined out the following phrase, then all you have to do is to assign the time for your choice in seconds. At the moment its default value is 10 seconds

 

Changing The Default Timeout

Changing The Default Timeout

 2.Changing The Titles

This means you can change the titles which appear at the startup. To do this scroll down the menu until you fined “##End Default Options##”,

Changing The Titles

Changing The Titles

Here you can find all the titles/names of Linux and non-Linux operating systems. You can just edit them! Mm.. Well.. I have edit “windows XP as windows sucksp”. Sorry windows folks..  My bad!

Sorry

Sorry

 

    3. Removing Items

There are things that are not useful for some users. Things like ‘recovery mode, memtest and windows divider (if you have windows)’. Erase the titles and their belongings with no fear. But its better if you can leave them by only commenting.

Removing Items

Removing Items

 

4. Setting up the default OS

This option is at the very top of the file,

 Setting up the default OS

Setting up the default OS

In menu.lst, each ‘title/entry’ has a number starting from 0. So count down the titles from 0 utile you fined the OS which you want to set as the default. Then give the relevant value. Please note that if you have changed any titles into comments, leave them without counting.

            If you are done with editing, finally press Ctrl+x to exit. Then it ll ask to save any changes you made. Reboot the system to check. Then if something goes wrong remember to replace the menu.lst with the file you backup early. You can use a live CD for that. Feel free to experiment further. Happy computing!

Ubuntu, Kubuntu or Linux Mint5 Elyssa?

ubuntu8.10

ubuntu8.10

Well first I should thank to Canonical guys for sending me their latest versions of Ubuntu and Kubuntu. I mean ubuntu8.10  and kubuntu8.10. They are doing hell a lot of work to give their best OS to Linux community. I appreciate you guys a lot.

Lets start with ‘ubuntu8.10’. Yes it was nice. It took about 24 minutes for the installation (with 1.8GHz of processing power). They have improved some of its art work and it’s in good shape. I think now its working more stable more than it ever did. And maybe some of you want see any difference but believe me it has improved, GNOME is used to be like that. GNOME developers never breaks it simplicity.

KDE4.1

KDE4.1

Then I installed ‘kubuntu8.10’ into My PC. It took about 17minutes. I was tempting to try this out from a long time because I m kind a KDE guy. It was KDE4.1. yaa…. By all means it has changed a lot! I mean a ‘lot’! It’s with all kind of fancy widgets and smashing stuff, finished with an awesome art work. Seems to be KDE developers have worked hard past few days. But actually it didn’t fit for me. Because I felt it puts too much weight on my 512MB RAM card (it requires 256MB of minimum RAM, so I got twice), I felt that its simplicity has taken away. I felt some day its going to be like ‘vista’ (which freaks me out and don’t like). But I’m not telling KDE4.1 is bad or confusing the user. It has lots of good new things. This is something I felt personally, so may be you’ll like it so much. But I personally like KDE3.5 more than KDE4.1

Linux-Mint5
Linux-Mint5

Linux mint5…well before ‘5’ ill tell you about ‘4’. I also wrote a post about linux mint4 Daryna recommending to use it. With no doubts I still say its a cool/awesome distro. But! Sometimes its a disaster! Because it gets crash a lot and have problems on stability. For this purpose Linux mint developing team has gave a great answer. Its Linux Mint5. I’m using Mint5 Elyssa from the day its been out and I still didn’t experience any errors (I don’t know, maybe its ‘Crash Handler’ is not working! Just joking). It comes with KDE3.5.9 and comes with all the useful packages and codex (which I mentioned early in my old post about Daryna). Fun to work with, I recommend this for every one to use.

Creating .iso Files

Its kind a cool to create .iso images in Linux because it don’t require any special software to do it. All you have to do is to handle some commands in CLI. So put your CD/DVD into the ROM and open up the terminal/konsole. I ll  show 3 methods to do this,

method 0.

              This is my favorite! Follow the code 😉

‘dd’ means disk dump. Actually this has to be ‘convert and copy’, but ‘cc’ is already using in gnu    compiler collection so they are using ‘dd’. ‘if‘ and ‘of‘ stands for input file and output file.This method makes the .iso file at your ‘/home’ directory by its default. I think this is the easiest way to finish the job.

Method 0
Method 0

 

 method 1.

               If your going to use this method first you should have to unmount your optical drive

 

Method

Method

 

method 2.

              mkisofs -o /path_to_.iso_file /path_to_optical_drive

So this is it. There can be many other ways to create .iso files. Thats because GNU/Linux means ‘choice of options’. Enjoy…..! 

 

 

%d bloggers like this: