Monday Dec 04, 2006

Changing the web browser invoked by Thunderbird

When you click on a web link in Thunderbird, it invokes the default web browser for the operating system. It is possible to change this behaviour by changing the default browser. Another way (at least on Linux, tried with TB1.5 under Suse and Debian) is to insert a line

user_pref("", "/usr/bin/firefox");

in Thunderbird's prefs.js (of course put in the correct path to your firefox).

Sunday Aug 21, 2005

Installation of the JDK on Debian Linux

Here is the quick guide how to do it. Of course you are able to run JDK installer and by the normal way extract the content and copy JDK somewhere but ! What to do if you want to have the JDK as system default and you do not want to create symbolic links manually ? For those people is this guide ;)

You have to do this:
1. Download the JDK which you want from
2. You need these packages: java-package, fakeroot (install them -> apt-get install java-package fakeroot
3. Now we make a debian package from the JDK installation package by running this -> fakeroot make-jpkg jdk-1_5_0_04-linux-i586.bin (of cource you are able to do this with any jdk package)
4. Now we install the created debian package -> dpkg -i sun-j2re1.5_1.5.0+update04_i386.deb (you have to be a root to do this)
5. Now you have your choosen jdk installed as a system default. Relogin now.
6. Check the functionality -> java -version
Actually this procedure is able to apply also on the JRE ;))

Sunday Aug 14, 2005

Executing scripts on a remote machine

These are a few quick tips how to make it real. First what you need: two computers ;), both to have bash and ssh installed and 'authorized_keys' file with public rsa key from the caller machine (only if you want to have communication without password typing)

Now let's do it :

1. Make a simple bash script which we want to execute on a remote machine. You are able to use this one:
echo "Greetings from "$(uname -n)
exit 0
2. Execute this script on a remote machine by running this:
cat | ssh user@remote /bin/bash
You should see this output:
Greetings from remote
It's unbelievably simple isn't it ? You send content of the script file through the pipe to a remote machine on which you connect via ssh and where you run the bash in which you execute the script that come from your computer .;) Due to these nice features i do really love unix :)

Tuesday Aug 09, 2005

Installing of the nVidia drivers on JDS (SuSe Linux version)

On the first sight it seems as the clear thing but sometimes it can be the iffy problem. Actually i describe here the ordinary method how to do that.

JDS (SuSe Linux version)

First of all you have to download the drivers. The best way is to download the drivers from nVidia. So now you have to stop the X server. There is a few possible ways (you can kill all x applications and then also gdm ;) but it is little bit dumpy-looking) but the best one is move into the runlevel 3. You can do that this way:
- press CTRL+ALT+F1 (you has moved into the text mode but X server still running -> you can switch back by pressing ALT+F7/8)
- now login as root (use command "su" ;))
- move into the runlevel 3 -> run command "init 3 (the X server will be switched off)
- run the nVidia installer -> run the downloaded file -> "sh [downloaded-file]"
- pass through the installer (maybe you will need the kernel pre-compiled headers -> for this use google ;))
- now the nvidia kernel module is installed
- edit your XFree/XOrg config file -> for XFree edit the /etc/X11/XF86Config and for XOrg edit the /etc/X11/xorg.conf (which X server you are using you can find out by running this command "X -version") and in this file you have to change the line where the video driver is specified. Mostly the video device section seems like this:
Section "Device"
  BoardName    "name of your card"
  BusID        "1:0:0"
  Driver       "nv"
  Identifier   "Device[0]"
  Screen       0
  Option       "Rotate" "off"
  VendorName   "NVidia"
So you have to change the line Driver "nv" for Driver "nvidia".
- now restart the computer by running command "reboot" or if you don't want to restart load the module into kernel by running command "modprobe nvidia" and than back into the runlevel 5 by running command "init 5".
- now you have the nVidia drivers running and you can avail the advantages of OpenGl or Direct3D. For settings use the nvidia-settings utility (you can get it from here). Enjoy it ! ;)

Debian Linux

So there is a lot of ways to do that. I have found very good document about this problematic and i have stored it in my bookmark. Actually here it is: For settings use the nvidia-settings utility (you can get it by running command "apt-get install nvidia-settings"). Enjoy it also ;)



« June 2016

No bookmarks in folder