Thursday, December 17, 2009

Nvidia cooked a new better diver for linux


Nvidia Corporation just after a short development period, announced on December 16 a brand-new and improved version of its video driver for Linux, FreeBSD and Solaris systems. This new Nvidia 190.53 graphics driver comes only with improvements and fixes, especially to Video Decode and Presentation API for Unix(VDPAU).

Lets see what Nvidia added to the recipe:
  • The installation location and the names of the internal VDPAU libraries were changed to conform with the Debian packaging guidelines;
  • Fixed an OpenGL and VDPAU bug in applications that were executed after a previous one;
  • In order to increment VDPAU_VERSION, vdpau.h was modified;
  • Added VDPAU_INTERFACE_VERSION;
  • Fixed an issue with the blit-based VDPAU presentation queue;
  • Fixed Apple 24" Cinema display resolution limitations issues;
  • On GeForce 8 graphics cards, the UseEvents option was disabled, because of short hangs;
  • Multiple streams can be decoded at once by VDPAU.
Installing the Nvidia video drivers on your Linux box
Download these drivers from:

  1. http://www.nvidia.in/Download/index.aspx?lang=en-in
  2. http://www.nvidia.co.in/Download/Find.aspx?lang=en-in
  3. Or go to www.nvidia.com and select a country either yours or nearby you and select tab Download->Download Drivers and select your own machine configuration
Log out of your current session and hit the CTRL+ALT+F1 key combination in order to enter a text-mode session. Log in as root (System Administrator),


sudo su -
Go to the folder where you've downloaded the Nvidia driver installer for your architecture (see below for links), and type the following corresponding command:
For 32-bit users:


sh NVIDIA-Linux-x86-190.53-pkg1.run
For 64-bit users:

sh NVIDIA-Linux-x86_64-190.53-pkg2.run.
Then, follow the on-screen instructions to install the Nvidia video driver. Please note that the Linux kernel headers and a GCC compiler will be required to complete the installation!

Wednesday, December 9, 2009

Touch the Pad -- The Linux way



Using a notebook, a lappy or a netbook, and wondered "How can I use my Touch-pad with more ease?"
Gsynaptics is the answer.
Briefly,

Gsynaptics 0.9.10 is utilities software developed by Hiroyuki Ikezoe.
GSynaptics project is a setting tool for Synaptics touchpad driver.

Requirements:

  •  GConf

    What's New in This Release:

  •  New Russian translation (Dmitry Barskiy)
    Gsynaptics 0.9.10 supports different languages (including english). It works with Linux.

    Downloading Gsynaptics 0.9.10 will take several seconds if you use fast ADSL connection.









  • If you wonder how can you activate Circular scrolling in Linux then you must go for gsynaptics, it works like a charm. also there are number of easy tweaks you can do with it. 
    Thus I guess I will give this application 8/10 rating for making my life easier on my laptop.
    You can download gsynaptics from here.
    Or simply write this to your terminal...
    $sudo apt-get install gsynaptics

    Monday, November 16, 2009

    Reinstalling Grub in Karmic Koala (9.10) which has grub-2

    Since Grub-2 is way too different then legacy Grub so is the way of reinstalling it.
    It is a general problem after installing new windows or any other OS over pre-installed Ubuntu that grub is taken over by windows master boot record and which results in unavailability of any method by which we can boot installed Ubuntu.
    But as we've done with earlier versions of Ubuntu(or any Linux with Live CD) we can fix Grub with a live CD.Just follow the steps to reinstall Grub and update it with newly installed Windows(or any other OS:

    1. Boot Ubuntu 9.10 Live CD or any live CD with GRUB-2 preinstalled.
    2. Mount the Linux partition in which you have installed Linux. We suppose that it is mounted in /media folder with name(label) Ubuntu, So this gives path to Linux folder to "/media/Ubuntu".
    3. Go to terminal, Now run this command in Terminal:
      • sudo grub-install --root-directory="/media/Ubuntu" /dev/sda
    4. /dev/sda is the hard disk device on which you want to install grub.
    5. This command gives following output on successful execution:
      • Installation finished. No error reported.
      • This is the contents of the device map //boot/grub/device.map.
      • Check if this is correct or not. If any of the lines is incorrect,
      • fix it and re-run the script `grub-install'.

      • (hd0) /dev/sda
      • (hd1) /dev/sdb
    6. Now restart your Computer and you will see Grub is reinstalled but with this installed grub you will not be able to start newly installed Windows.
    7. For the above problem start Ubuntu(not the Live CD) using freshly installed Grub.
    8. Again go to terminal and write the following command:
      • sudo update-grub
    9. Tada..!!! you can restart your computer but before that check out successful output of this command:
      • Generating grub.cfg ...
      • Found linux image: /boot/vmlinuz-2.6.31-14-generic
      • Found initrd image: /boot/initrd.img-2.6.31-14-generic
      • Found memtest86+ image: /boot/memtest86+.bin
      • Found Windows 7 (loader) on /dev/sda2
      • done
    10. Enjoy Dual Boot with full efficiency and lesser fuzz.

    Friday, October 16, 2009

    Messing up with Google chrome frame and wine, ending up with the f word i.e FUN

    Today while I was browsing through the net, I don't know what came to my mind but that was awesomely fun sounding I wanted to test the latest Google Chrome frame for Wine then I Googled if some one has already done a research on it, then I found this page http://code.google.com/p/chromium/issues/detail?id=23168 saying that frame is not working for them in wine so i tried it with my super wine. Amazingly after installing IE6 with winetricks I opened the installer page . And hence I was able to install Chrome frame for wine IE6 the screen shots are below, showing what super wine can do.The frame is working but the fact is I hate IE especially inside Wine( you know it spoils the broth). But it was a nice experience to install chrome frame inside wine... yay!!


    Secur32 issue in wine while running Google talk

    I was trying to run google talk using wine since past two years but got not much success.
    If you refer my previous post here you will be able to run gtalk with wine with the text and every thing.
    you can see, Settings|Help is visible and click-able. Add and View is also working perfect.
    But as soon as I get connected the connection automatically closes just after few seconds.
    when I tried to run the same command using gnome-terminal It surprised me with the errors. It was schannel and secur32 the two dlls which were playing the bad game with wine.
    Well if you don't know what is secur32 and schannel lemme tell you, both are dll( dynamic link library).

    Secur32.dll mainly contains the Secure Service Provider Interface, SSPI. SSPI allows developers to use different providers of secure socket-like services. In SSPI, a Secure Service Provider (SSP) is loaded by the system and queried for the capabilities it supports. You (the client developer) can choose which provider you want by name. Normal SSPs (I don't know a better name for them) are loaded by secur32.dll in the context of the calling process.

    As said by wine wiki Secur32 is not fully functional yet under wine this is what wines ToDO for secur32 say's




    • Wine's implementation of schannel loads GnuTLS, and is barely functional.
    • TheS CHANNEL_CRED passed to AcquireCredentialsHandle is ignored
    • The target name passed to InitializeSecurityContext is ignored, and should be compared against the certificate it receives
    • Server connections aren't supported
    • Most attributes in QueryContextAttributes aren't supported
    • In short, it shouldn't be used for anything security-sensitive yet. Still, for people who "just want their applications to work," it does support SSL3 and TLS connections.

    One confusing thing is that winhttp and wininet don't use schannel, and instead use OpenSSL directly to implement SSL and TLS. This can lead to confusing differences in certificate verification between applications. Ideally, schannel would use crypt32 for certificate chain verification, and winhttp and wininet would use schannel.


    and the error is also showing the problem:
    this is what my console says to me on running google talk with wine.
    puneet@puneet-laptop:~$ env WINEPREFIX="/home/puneet/.wine" wine "C:\Program Files\Google\Google Talk\googletalk.exe"

    fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
    err:ntlm:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path.

    err:ntlm:SECUR32_initNTLMSP Usually, you can find it in the winbind package of your distribution.

    fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
    fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) - stub!

    fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)

    fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)

    fixme:msimtf:DllGetClassObject ({50d5107a-d278-4871-8989-f4ceaaf59cfc} {00000001-0000-0000-c000-000000000046} 0x32c4b4)

    err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111

    err:ole:CoGetClassObject no class object {50d5107a-d278-4871-8989-f4ceaaf59cfc} could be created for context 0x401

    fixme:keyboard:RegisterHotKey (0x2004e,0,0x00000008,27): stub

    fixme:winhttp:WinHttpGetIEProxyConfigForCurrentUser returning no proxy used

    err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not registered

    err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} could be created for context 0x1

    err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not

    registered

    err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} could be created for context 0x1

    fixme:secur32:schan_InitializeSecurityContextW Using hardcoded "NORMAL" priority

    fixme:secur32:schan_InitializeSecurityContextW Using hardcoded "NORMAL" priority

    fixme:secur32:schan_InitializeSecurityContextW Using hardcoded "NORMAL" priority

    GNUTLS ERROR: A record packet with illegal version was received.

    err:secur32:schan_DecryptMessage Returning SEC_E_INTERNAL_ERROR

    fixme:winhttp:WinHttpGetIEProxyConfigForCurrentUser returning no proxy used

    fixme:secur32:schan_InitializeSecurityContextW Using hardcoded "NORMAL" priority

    when I tried to override it with windows dll Google talk was unable to connect.
    Secur32 is used by many other applications also.
    Also I believe that many people out there desperately want Google talk to run under Linux.I really don't know why Google has not implemented gtalk using openssl. then porting it to wine would have been much easier. Well I really wish that now wine Community look forward to it and try to resolve the problem as soon as possible.I am also waiting for Google talk for Linux. but I don't think that is coming any time soon.Any ways now pidgin have audio and video calling support for xmpp(jabber) the only fascinating thing left is the look and feel of Google talk.
    Beware Google talk for Windows.

    Monday, September 28, 2009

    Make your wine a super Wine ... Run apps you always wanted to


    Go to http://www.winehq.org there you will get the latest wine i will not tell how to add the wine's repository in your repository list. My aim is to tell you about configuring your wine to look sexy plus workable plus advanced to install programs like M$ 2007 office.
    Step 1: have a wine installed in your computer of course latest.
    Step 2: click here and copy all the text to a file winetricks obviously in your hard disk.
    step 3: now make this shell file executable either by chmod or using gnome way by checking file properties.

    step 4: run this winetricks from console(any terminal), this will launch a GUI.
    step 5: click on
    • corefonts
    • comctl32
    • fontfix
    • fontsmooth-rgb
    • gecko
    • msxml 3
    • msxml 4
    • msxml 6
    • richedit 20
    • richedit 30
    • tahoma
    • vcrun6
    • wininet
    now press ok and sit back and relax while every thing is installing...
    meanwhile you can do a parallel process of searching uxtheme.dll and downloading it and copy it to
    ~/.wine/drive_c/windows/system32/
    I guess now you are ready with your super wine..
    now install any thing you want to
    take a look at M$-word ,power point, excel running using wineusing smooth fonts



    almost every thing is working using this even one note and outlook too...
    next step may be beautification of wine and that can too be in very simple ways.
    you can either go through this guide . or you can siply use colours and fonts configurations, see this screen shot



    if by any chance some apps don't work using these configuration you can create another bottle of wine
    • create a folder eg. "~/.ipmsg"
    • open  terminal write this command "env WINEPREFIX="~/.ipmsg" winecgf"
    • your new bottel is ready to drink.
    • now just run any application like this "env WINEPREFIX="~/.ipmsg" wine application.exe"
    • its over dude ..... this tutorial is over, stop reading and start doing.... :)



    Tuesday, September 22, 2009

    "The server's security certificate is revoked!" error in Google chrome or any other browser :: What's the solution

    Today when I installed Ubuntu and "Google chrome 4.0.211.2" for Linux the ongoing parallel project to port Google chrome to Linux and MAC.
    when I tried to login to www.gmail.com found this error ....

    So I went to www.Google.com to Find the answer to my problem as I always do for any of my problem...
    any ways I found no solution in starting then after few minutes I got frustrated and closed my chrome and was almost ready to shift to firefox which was running well.
    ummm.... but before going I wished to try once more as I had every thing and still not working, I started searching for certificate errors and their causes and then I got an article stating that if time of the system mismatches certificate error can occur... then I just saw my time was 1 day lesser that whats today it was "22-sep-2009" on my clock while today was "23-sep-2009" .... huh.. as soon I fixed systems time and restarted Google chrome, every thing became normal..

    Wednesday, July 29, 2009

    New Windows 7 theme for Icewm


    So finally today I got time to make first version of windows 7 theme for Icewm..
    here is its first screen shot....

    download this cool theme from here .

    and waiting for your comments

    Thursday, July 9, 2009

    chrome as an OS by Google .. how will it look like and what google is upto?


    Today I read many articles on the new Chrome OS as if blogger were just waiting the moment to come, Internet is literally flooded with posts about this big hot news that Google is launching its OS!!!! .... huh! to tell you the truth this is not that much exciting as much I'd thought when i heard the rumors that Google is playing with Ubuntu to design its own OS. But now if google lately has announced this big news lets see what google is trying to do by launching another OS when 95% market is captured by Microsoft and mac is having strong base and Linux have more than 360 flavours.
    Actually when I first heard the news on my TV the first thing came to my mind is why so suddenly Google decided just after 9 months of chrome(browser) and making an OS that too named Chrome Os (uh! ugly! I hate this name for an Os though I love it for a name of browser ... so unprofessional name CHROME OS) hmm! what may be the reason for such a hurry, then I remembered that when I read this article on wikipedia



    These stats show that from 2008 quarter 3 google chrome had 0.26 % of market share and in just 3 quarters it rose up to 1.81 % (when chrome is still awaited for Linux and mac) so this can be enough reason for any company to take another risk.

    I read in one post having heading "New Chrome May Not Shine For Google" and all the post was totally demoralizing for google as well as google lovers but in my opinion the new Idea is of making a different OS than that we use now, It is Internet age and google aims at all those who live and feed themselves on Internet, But surely Google will try to make something for the off liners too and surely google will take help from Linux world(open source world) which already had helped immensely in chrome browsers development.and there are new developments in Linux world which will draw some windows user from windows to Chrome OS ([:(]) :
    1.LUK (Linux Unified Kernel) which is a computer operating system kernel intended to be binary-compatible with application software and device drivers made for Microsoft Windows and Linux. This kernel imports all the key features of the Windows operating system kernel into the Linux kernel to support both Linux and Windows applications and device drivers.
    2. NDISwrapper which can enable drivers easily to be installed which were natively made for windows
    and many more such ongoing projects will help google to concentrate their energy in the right direction rather than reinventing the wheel and as we all know google do everything differently, when there were search engines like Yahoo google created a new revolution, when there were so many email services available including giant hotmail and yahoo mail GMail rocked, when IE's and fire fox were on the top of browser market google created a gap for them and now this gap is expanding rapidly , exponentially.
    may be chrome OS will be another Linux flavour with chrome running at the top but google has to work a lot to make it a true desktop OS, but lets hope that chrome OS changes it name for good ...
    Android was a good name, I don't know why google always have some internal problems with them .. when they had android they started a new project chrome OS with such an ugly name this is not good strategy they could have used Android for netbooks, well this is not the first time they have done like this, they already have done it with gtalk which is available in 4 different versions. Labs and client versions are having different functionalities are not unified in one big good client.
    but whatever it is I love google
    Puneet Singh


    Friday, June 19, 2009

    Romadeva - English to Hindi transliterator

    "main Romadeva hun" (eng: i am romadeva) is "मैं रोमादेवा हूँ" when transliterated to indic scripts, it is easy and fast to access english keyboard and write hindi without the knowledge of indic keyboard.
    Google's online transliteration is cool but when it comes to offline transliterator like in offices there is no internet so this software is a good option.
    currently I am developing it alone for only hindi but in future many features and languages can be supported with the help of people as it is opensource. you can download executable as well as source from http://romadeva.googlecode.com/files/Romadeva-0-0-24.tar.gz
    there are two parts in this program.
    1) backend (os independent) is in c.
    2) frontend (for only linux) is in gambas.
    so the c file can be modified for any language
    the problem is with frontend as frontend is os independent i would like if any one could help me to port the gui to windows and mac. As c file can easily be compiled with cygwin.
    I would appriciate any help in further development of this project.

    Tuesday, June 16, 2009

    Google Chrome for Linux (pre alpha)

    Yes !! you heard it right ... though Google yet not released a stable or even alpha version of chrome but it is usable , sadly it lacks many cool features right now.
    But looking at this we can say that chrome will now soon be released for Linux and MAC.
    Chrome is using gtk and some of its options are incomplete ...
    still if you want to download chrome you can download it from
    http://build.chromium.org/buildbot/snapshots/
    this is official chromium( the open source project behind Google chrome) repository.
    you can download official Google-chrome from
    here but remember this is just a developers release so don't expect too much from it.

    This is there official message
    "This is an in-progress build of Google Chrome on Linux. The following significant chunks of functionality are known to be missing: Plugins, including Flash (so no YouTube, Hulu, etc.) Printing Complex text Complex tab dragging Gears support Other parts of the browser are notably incomplete, poorly tuned and broken. User beware!"
    here is a screen shot from my desktop of Google chrome on Linux...

    We all are desperately waiting for a stable chrome release.
    My personal experience with chrome for Linux is quiet good it renders html quiet well.ummm its just a small unstable kid right now just waiting it to become teen :P.

    Sunday, May 24, 2009

    Ubuntu sunlight

    My new creation or First experiment with gnome...I hope some critical comments from your side for its further development (I am trying to develop whole new theme for ubuntu)

    Friday, May 15, 2009

    Mac Os - X "Magic Lamp" effect in linux using compiz


    Enabling "Genie Effect" using

    Compiz disabled the ability for "Magic Lamp" minimization effect to mimic the infamously "Genie Effect from Mac OSX" by limiting the "Magic Lamp Max Waves" from 0 to 3, may be because of the patent issues.

    But there is a way to make the lamp effect mimic like OS-X

    What you need: Compiz 0.5.5~git20070921+3v1ubuntu0 installed into your system, unsatisfied soul , gedit, ghex2

    note that : You have to be root to modify the following files:

    1. Use Hex editor to open "/usr/lib/compiz/libanimation.so"

    2. Find "magic_lamp_max_waves", look for following "3", change "3" to "0"

    3. Save, Close (f2 to save,ctrl+x to close)

    4. Use Text Editor to open "/usr/share/compiz/animation.xml"

    5. Find "magic_lamp_max_waves", look for following "3", change "3" to "0"

    6. Save, Close

    7. Restart GDM if the 3D desktop is currently running.

    8. Set Minimization effect to "Magic Lamp", change Max Waves to "0"
    using gconf-editor.

    Enjoy!

    Sunday, April 26, 2009

    [Programming] executing reading system process in c

    I was searching for reading the output of process in c running a process right from c program
    system() command you already know I guess is a command used for executing a system command.
    system("ls -l");
    but here I will tell you a program which will read from a process and will inser its value in string and then you will be able to process it .......



    #include
    #include
    #include
    long int file_length(FILE *f)
    {
    long int pos;
    long int end;

    pos = ftell (f);
    fseek (f, 0, SEEK_END);

    end = ftell (f);
    fseek (f, pos, SEEK_SET);

    return end;
    }

    char *readfilestr(FILE *f)
    {
    char *r;
    r=malloc(file_length(f)+1);
    fread(r,file_length(f),1,f);
    rewind(f);
    r[strlen(r)-1]=0;
    return r;
    }
    int main() {
    FILE *in;
    extern FILE *popen();
    char *buff;

    /* popen creates a pipe so we can read the output
    of the program we are invoking */
    if (!(in = popen("ls", "r"))) {
    exit(1);
    }

    /* read the output of netstat, one line at a time */
    buff=readfilestr(in);
    printf("Output: %s", buff);


    /* close the pipe */
    pclose(in);
    }


    may be this will help all the developers for linux.

    Wednesday, April 22, 2009

    Turbo c in linux

    turbo c in linux
    well i do not recommend you to use Turbo c in linux but if you really want it and can not live with out it ... you will need dosbox.
    now you have to make two files ..
    1) tc.sh

    #!/bin/bash
    dosbox "./tc.bat"
    #these are contents of tc.sh file

    2) tc.bat

    cd TC
    cd BIN
    tc.exe

    ------------------------
    now put these two files in a new folder where a folder of TC is also you have to put in.
    if you know a little bit of bat and sh you can modify these two to get your desired result you can even play doom using dosbox.
    enjoy ....

    Tuesday, April 21, 2009

    gtalk in Linux

    yes !!! you probably came here to see that is their any way by which I can use gtalk in linux, you probably want to use gtalk in linux because of its VOIP or may be because of its sleekness and ease of use.
    Well i guess google has no will to release any of the major softwares for Linux until its is needed.
    Like picassa had no replacement for linux of that level which is equivalent to picassa any ways chrome, gadgets and gtalk all are in development for linux for so much of time but google I guess has no will to release it soon.
    While talking of google I tried gtalk using wine bt I got faliure every time I tried then i searched a lot on several blogs and net.
    Finally I came up with many alternatives which may be of some help to you.
    1) Using gtalk (flash) : I know it is not the one you want but it serves the purposeof sleekness and it has many more other features.You can install prism and finally can installl or add link of gtalk(flash) in prism and thus can use it as application.
    2) Pidgin : I love this thing .... Pidgin is as easy to use and higly configurable, cool and supporting multi account chat client which also supports jabber which is used by connection of gtalk.
    problems with pidgin are
    a) it is bloated (not sleek)
    b) no voip support (libgingle is out by google so I hope soon a new plugin for voip from pidgin)
    3) empathy : empathy is gnome based and voip support is their.
    4) jabbin can also be of great help
    but the conclusion of the whole this discussion leades me to very preliminary support and development over libgingle and i think we should now leave any hope for gtalk for linux because google is not going too passionatly for it.
    chrome for linux is still awaited thus either we hav to choose alternatives or make wine more stronger.
    I guess code weavers can do any thing they want if they are really serious about it ... chromium is an example.
    last but not the least that i love pidgin it do the job for me.
    click here to learn to configure pidgin.

    Sunday, April 12, 2009

    Use Linux within Windows


    YES!!! this in not a joke ...
    now you can install Linux inside windows While using windows.... not with virtualization, but using cygwin and its ubuntu version is out..
    see screen shots of this new Linux :)
    yes and now you will no need to have different partition for linux and dual boot the computer.
    Just install ubuntu like an application and enjoy every thing you can do with linux within windows.
    download it from here.

    Wednesday, March 25, 2009

    making your PC a quick boot machine using debian and ubuntu

    Booting Debian in 14 seconds:


    Many readers will have heard about Arjan van de Ven and Auke Kok's work to boot an ASUS Eee 901 in 5 seconds. Inspired by this work, and because I have the same laptop, I decided to try to reproduce their results. So far I have not come very close to their 5 seconds, but I have made some significant improvements compared to the default boot time for Debian on that machine; this article describes what I've done.

    Although some of what follows is specific to the Eee 901, most of it isn't and could be applied to other laptops and PCs in general.

    This article assumes that you're already familiar with things like building kernels, applying patches and so on. The target audience is the "advanced end user", and also the Debian developers responsible for the packages concerned who I hope will be motivated to incorporate some of this work.

    It's worth noting that many of the things that are described here are already making their way into the upstream sources, so the lazy reader might decide simply to wait for all this fast-booting goodness to arrive in its own good time.

    read further here ..... http://www.debian-administration.org/articles/620