Krannywidlinux

Install compiz fusion on hardy heron

Posted by: krannywidlinux on: May 19, 2008

I assume  All the guys  reading the post have already installed Ubuntu 8.04 which is a great release that lived up to the attention it received…So this is a small tutorial to install compiz fusion on ur new distro

For that you have to enable your graphic card first , so you can use 3D effects…
Go to System > Administration > Hardware Drivers.The Hardware Drivers tool should shows your graphic card, check the box.A window pops up and just hit enable. Now it should start downloading and installing the driver for the video card. A restart is required.It installs the nvidia-glx-new driver(for latest cards) as in case of mine… and ur all ready for enabling desktop effects..
Now Open the Synaptic Package Manager. Go to System > Administration > Synaptic Package Manager,Hit the search box and type

–>compizconfig-settings-manager
–>emerald
Mark them for installation and in a couple of minutes it will be installed..

Now it’s Time for customizing it to your own needs
Head to Preferences–>Advanced Desktop Effect Settings and customize the settings here..the top 5 things worth enabling are discussed here..

1.Paint fire on screen
ull find it in the effects category…enable it and ull find some fire building up on the screen with a combinational keypress
to use ,press shift+superkey+leftmouse
to clear fire,press shift+superkey+C

2.Desktop Cube
Though its pretty old,It looks Gud …
to rotate cube Manually press CTRL+ALT+DRAG LEFT MOUSE
flat desktop press CTRL+ALT+DOWN ARROW

3.Flip switcher or ring Switcher
Flips your windows in a ring like direction
to use ,press superkey+tab

4.Unfold Cube/Film Effect
to use ,press CTRL+ALT+DOWN

5.Zoom In/Out
Super + Mousewheel

Some effects will disable others. For example, the Desktop Wall will disable the Desktop Cube, Snapping Windows will disable Wobbly Windows and many more. Please let me know if I missed something, so I can add more effects to the list

Alternate Sify Clients For Linux

Posted by: krannywidlinux on: May 14, 2008

So Finally Here’s the Complete Tutorial for your alternative sify client for linux which has been tested on both debian and rpm based systems…
Method-1:

Get the Respective deb and rpm package from Below links
–>RPM
–>DEB
And u Better know how to deal with them….Just click and it will take care of evrything….It is tested on Fedora and ubuntu

Method-2:
Sify has made a Web-Browser Based Dialer which is quite reliable…
All u need to do is ask the Sify guys to enable web-based login for you..And After that they will give u a URL something like
http://202.XXX.XXX.XXX:8090/login_rest.php
View the pic here..

METHOD 3:use Supersify or Easysify with Wine …It works fine

Method 4:(Worked on Ubuntu)
Note the Settings of tcip/ip protocol in ur windows Xp
ip address xx.xx.xx.xx
subnet mask 255.0.0.0
default gateway xx.xx.xx.xx
Primary DNS xxx.xxx.xxx.xx
DNS2 xxx.xxx.xxx.xx

And When u boot into UBUNTU goto System–>Administration–>Network
And enter the above details here….
ull get a message like “Changing interface configuration”
And ur done with…

PS : if u have any problems lemme know

    Compiling Kernel (For newbies)

    Posted by: krannywidlinux on: February 23, 2008

    Actually u can find many tutorials regarding this,But i dint find a appropriate one suiting me when i compiled the kernel for the first tym a year back…So thought of to give a detailed procedure

    –>Compiling and setting up a kernel for the first time can be a daunting task even for users who are comfortable in everyday Linux use so I hope this guide will make the process a little easier and help get your new kernel up and running as fast as possible. I assume a level of competency with basic Linux commands and the environment.
    –>Getting the kernel source
    The kernel source can be downloaded from kernel.org. Once you have the source move it into /usr/src.

    –>Configuring your new kernel

    First you need to determine what type of hardware you have. This can be done using the command ‘lspci’
    You’ll particularly need to know the IDE Chipset, Audio Controller, and the Ethernet Controller. You won’t normally need to know your VGA Controller type when compiling the kernel. There are several methods of configuring the kernel with version 2.6

    * make config
    * make oldconfig make menuconfig
    * make xconfig make gconfig

    We will be using make menuconfig. Its relatively simple to use and doesn’t have many requirements. All you need are the ncurses dev files. In my opinion the QT and GTK installers just add unnecessary fluff. On debian a simple apt-get install libncurses5-dev should take care of that.

    —>Options
    Now its really just a matter of going through the options an various menus and picking what suits your hardware and set up. If your unsure on anything you can highlight the option your unsure of and press ?. You can chose to compile things directly into the kernel (fill the box beside them with a * by pressing the space bar) or compile them as a module and insert them into the kernel as needed (by filling the box with an M). Certain things that are required to boot the kernel are best to be built in (such as IDE drivers etc) but for other non-critical stuff then its just as good, if not better, to build them as modules. At a later stage if you need to upgrade a driver thats compiled as a module you can just plug it out and insert the new one into the kernel but if its compiled in then a recompile of the kernel will be required.

    –>Building the new kernel

    1. sudo make bzImage
    2. sudo make modules
    3. sudo make modules_install
    The modules will be copied into /lib/modules/KERNELVERSION

    –>Installing the new kernel

    Now its just a matter of copying the newly compiled kernel and System.map into /boot.
    For me it looked like this

    kranny@Desktop:/usr/src/kernel-source-2.6.23$ pwd
    /usr/src/kernel-source-2.6.23
    kranny@Desktop:/usr/src/kernel-source-2.6.23$ sudo mv arch/i386/boot/bzImage /boot/bzImage-2.6.23
    kranny@Desktop:/usr/src/kernel-source-2.6.23$ sudo mv System.map /boot/System.map-2.6.23

    –>Getting ready to boot

    Now that the kernel is in place we just have to edit our boot loaders config file and add the new kernel.

    If you are using the grub boot loader (and you probably are) this file is normally in /boot/grub and is called menu.lst. As I’m using Debian I can only guarantee it is there for my particular install. If you’re using a different OS then check out its documentation for the correct location. Look at the other entries and copy their structure to add your new kernel to the list. You must be root. Ignore the initrd option as we haven’t created one and they aren’t normally necessary.

    Hope this tutorial be of some help to u

    Which Gentoo cd to download

    Posted by: krannywidlinux on: February 9, 2008

    i think many of the people out there trying to give a shot at gentoo are struck at wheter which distribution to download…So before wasting your precious bandwidth hope u read this post.

    there are mainly 5 ways to try installing gentoo of which i tried 3,which i will be discussing here.
    Pros:
    Livecd installer(700 MB) comes with a graphical installer..for those who wants to connect net through dialup it will be a gud option…
    Minimal-cd (57 MB) is the best option i would recommend coz if you really like installing everything from scratch this suits for your needs…you can also use the genkernel making your kernel less buggy…
    Host-distro/livecd:(No D/l) This option is for those people who cant wait for long hours seeing the “make” lines scrolling over CLI.

    Cons:
    Livecd graphical installer doesn’t start unless we do some tweaking.often the installer hangs up..
    minimal cd :CLI is a bit boring and you cant carry on with other work
    Host Distro/Livecd:though u can enjoy the GUI,u miss genkernel option of installing the kernel(efficient implementation)

    Gentoo livecd installer problems(ati drivers)

    Posted by: krannywidlinux on: February 7, 2008

    I tried to install Gentoo from the livecd-installer-2007.0 into ma friend’s lappy since i wasn’t in a mood of installing from the stage3 tarball/min livecd….i dont know that it was a buggy release before downloading.The thing is that the gtk installer doesn’t load up and gives errors like
    Failed to load module “glx” (module does not exist, 0)
    Failed to load module “ati” (module does not exist, 0)

    I wasted an hour struggling to start the X-server….issued commands startx,gdm,installer, with no success….then thought of to tweak with Xorg file…I used the VESA driver as drivers wern’t included in the CD.(this seems like gentoo want its users to tweak)heres how i did that:
    cd /etc/X11
    vi xorg.conf

    add the following lines
    Driver “ati”
    Driver “mesa”

    then save the file and start the GUI by issuing startx..(Default Desktop is Gnome)
    But this way,u couldn’t use all the GLX capabilities
    Anyways if u are a beginner i would suggest you to go with a Stage3 install.for more info see the handbook available at gentoo homepage

    Pidgin From Source

    Posted by: krannywidlinux on: February 5, 2008

    Well to start with Pidgin is a multi-protocol IM client that allows you to use all of your IM accounts at once.A small apt-get would install pidgin to your linux,but backports have their own after effects which ive faced yesterday(like libnotify error)…so decided to install it from source…here is a small howto install pidgin from source

    1.download the source from its homepage

    http://www.pidgin.im/download/source/

    2.Extract the tar.gz and compile….

    Dependencies u must install are:

    1.You must have the GLib 2.0 development headers installed to build
    sudo apt-get install libglib2.0-dev or just search for libglib in synaptic

    2.You must have the GTK+ 2.0 development headers installed
    sudo apt-get install libgtk2.0-dev2.

    3.You will also need to install SSL libraries to get msn working:
    sudo aptitude install libnss-dev
    4.other dependencies
    apt-get install libxml2-dev
    apt-get install gettext
    apt-get install libnss-dev libnspr-dev
    apt-get install libgtkspell-dev

    This worked fine for me..if any issues just comment!!!!!

    Tweak with Bash

    Posted by: krannywidlinux on: January 13, 2008

    This Post is very special to the bash lovers,which also includes me .I’m trying to put very special commands i use normally,at a place.So here I go:
    1.Past commands:
    Press ctrl+r when the terminal is opened and you can get the past commands entered recently,matched with your letter.
    This method is far better than pressing up key like a mad donkey.
    Ex: press ctrl+r at bash prompt ull get sumthing like (reverse-i-search)`’: ,
    now if u want  ln -s /home/kranny/firefox/firefox ./firefox to be run,just type ln,and it will find u the command if it is typed recently….

    2.My most fav:
    Pressing Esc brings up the last object you referred to.If you had just typed cat /etc/apt/sources.list , then typing gedit then pressing esc . would auto complete to gedit /etc/apt/sources.list.i jus luv this…

    3.Spelling Mistakes are annoying me:
    Many times i type clera for clear and the msg “command not foun” annoys me….Just add the foll lines to ur .bashrc:
    shopt -s cdspell
    and spelling mistakes are ignored

    4.werz my history?
    When u type some commands ina terminal and Btw open a new terminal, the new one won’t remember any of the commands typed in the first one and moreover closing the first terminal, and then the second will overwrite any of the commands typed in the first terminal.Again this annoys!!!!The reason for this is that the bash history is only saved when you close the terminal, not after each command.Just add these lines to bashrc
    shopt -s histappend
    PROMPT_COMMAND=’history -a’
    This makes bash append history instead of overwriting it, and makes it so that each time the prompt is shown it writes out all the history.

    5.curly brackets {}:

    I use this most of the times.If u want to make a copy of any files in the same/diff dir whose path is quite lengthy

    Ex:cp /var/cache/apt/archives/aa.conf   /var/cache/apt/archives/aa.conf_backup

    can be replaced with cp /var/cache/apt/archives/aa.conf{,_backup}

    PS 1:if u have any comment me,if they are worth using,ill update the post

    Tags:

    Which java compiler do u use?

    Posted by: krannywidlinux on: January 8, 2008

    The other daywhen i  was compiling some code in java,I had a doubt regarding the java packages installed on my ubuntu desktop i have both the Sun java and the GNU libgcj versions installed on my system. The problem here is, how to easily tell which java compiler to use, the sun version or other?On googling ive found the “alternatives system”.I thk itz really a great feature of Debian.

    Now let us get into the topic.Check whether which version ur using…

    # java -version
    java version “1.6.0″
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

    Now letus inspect the java binary

    # which java
    /usr/bin/java
    # ls -l /usr/bin/java
    lrwxrwxrwx 1 root root 22 2007-11-25 16:57 /usr/bin/java -> /etc/alternatives/java
    so we can see that java command is being executed from the /usr/bin path,and it links to /etc/alternatives/java,where all the alternatives are configured.

    now,

    # ls -l /etc/alternatives/java
    lrwxrwxrwx 1 root root 36 2008-01-08 15:51 /etc/alternatives/java -> /usr/lib/jvm/java-6-sun/jre/bin/java
    so we find another link,referring to /usr/lib/jvm/java-6-sun/jre/bin/java and it is linked to real executable.This way the alternatives system works..its very confusing to have all these links pointing to other links and so on.The alternatives system  will link the executable in the default path to the relevant file in /etc/alternatives and this will link to the executable.So it becomes really easy to just update the link in alternatives directory and ink it to the executable we want to use. A nice tool for managing these links is “update-alternatives”.

    # /usr/sbin/update-alternatives –display java
    java – status is auto.
    link currently points to /usr/lib/jvm/java-6-sun/jre/bin/java
    /usr/bin/gij-wrapper-4.1 – priority 41
    slave java.1.gz: /usr/share/man/man1/gij-wrapper-4.1.1.gz
    /usr/lib/jvm/java-6-sun/jre/bin/java – priority 63
    slave java.1.gz: /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
    Current `best’ version is /usr/lib/jvm/java-6-sun/jre/bin/java.

    I think u can understand evrything easily now..acc to the priority the best version is decided,as in this case is Sun java….and as the  java – status is auto..the best version is your default compiler…now if u want to change it to other for any personal reasons

    #sudo /usr/sbin/update-alternatives –config java
    There are 2 alternatives which provide `java’ Selection    Alternative
    ———————————————–
    1    /usr/bin/gij-wrapper-4.1
    *+        2    /usr/lib/jvm/java-6-sun/jre/bin/java
    Press enter to keep the default[*], or type selection number:
    choose the version u like to use….i choose GNU version.now let us see where the link points to:

    # /usr/sbin/update-alternatives –display java
    java – status is manual.
    link now points to /usr/bin/gij-wrapper-4.1

    So uve Sucessfully changed it to GNU version as in my case.Verify it by java -version

    PS 1:plz note that there are two hyphens b4 config and display

    Configure yahoomail with thunderbird (Part 2)

    Posted by: krannywidlinux on: January 7, 2008

    This Post is completely dedicated to those who havent succeded in configuring webmail for the same
    which is described here..So we use Ypops(as an alternative) as it acts as a Yahoo server,and gets messages from Yahoo.
    Installation:
    use the PGP public key: kranny.gpg. Save this to a file (say kranny.gpg). And then use the following command to add the key:

    root@kranny-desktop:$ sudo apt-key add kranny.gpg

    Add the following line to the bottom of your /etc/apt/sources.list file:
    deb http://tskariah.000webhost.com/ubuntu ubuntu main

    now its time for a update
    root@kranny-desktop:$ sudo apt-get update
    root@kranny-desktop:$ sudo apt-get install ypops

    Now configure Ypops with ur yahoo account details.type in the command
    root@kranny-desktop:$ sudo dpkg-reconfigure -fgnome ypops

    now enter basic information like Max no of emails,yahoo domain,connection timeout etc
    and dont check connect to net via http proxy server and enable proxy authentication…
    Important:put the bind address as 127.0.0.1 and POP3 port no as 5110…Enable SMTP and its port must be 5025 and the rest inf u can give…now its time to reflect the ports inf in thunderbird
    open thunderbird edit–>account settings–>server settings…enter the port numbers…

    Now start Ypops with $ sudo /etc/init.d/ypops start

    Voila u can access ur yahoomail from thunderbird now……

    PS 1:i’m writing blogs very frequently…3rd blog of the day….
    PS 2:i thk Part 2 will be much useful than part 1…

    Configure yahoomail with thunderbird

    Posted by: krannywidlinux on: January 7, 2008

    How reliable it wud be to have access to email from your yahoo/gmail account locally in your Thunderbird client.Actually me thinking this upgraded my thunderbird from 1.5 to 2.0 coz webmail 1.3.1 works on thunderbird 2.0….Btw webmail is an thunderbird extension used to integrate web site based email accounts like yahoo and gmail..Actually Y!mail disabled its POP3 access to free accounts, only premium accounts can download messages from Yahoo. Webmail fixes this by acting like a Yahoo server, and getting the messages from Yahoo….U can get Webmail 1.3.1 here …save this on ur desktop and go to thunderbird–>tools–>addons–>install and browse for the xpi file saved on desktop and restart thunderbird…
    set the SMTP and POP3 ports above 1024 coz many of the linux distros doesnt allow anything below 1024…ive set 5110 for POP3 and 5025 for SMTP.(Set this here edit–>account settings)
    Now create ur account.when u open thunderbird it insists u to create an account.select pop for incoming server and type localhost in incoming server dialogbox..preferably check the globalbox option…next enter ur username and account name and finish…so ur done with….if it prompts for password,evrything went off fine or else webmail has some problems….

    PS 1:dont worry if webmail dint worked for you….my next post will guide u thru using Ypops instead of webmail….

    PS 2:took me 45  mins to configure webmail & ypops…

    Blog Stats

    • 12,499 hits