Linux

Oracle Java in Linux - The easy way

Submitted by gunnar on

Since Oracle Java can no longer be available in the various Linux distributions, for licensing reasons, a number of more or less complicated guides have been written about how to install Oracle Java manually. This is another such guide, but less ambitious and hopefully easier to understand and use. It only describes how to install the JRE (the Java Runtime Environment), integrate it with Firefox and create a shortcut to the Java Control Panel.

Putting NetBeans log directory on a temporary file system

Submitted by gunnar on

Whenever you do something, anything, in NetBeans, it will write to the uigestures file in the NetBeans log directory, .netbeans/8.2/var/log for NetBeans 8.2. I finally got tired of hearing my disk being written to every time I pressed a key so I decided to put the log directory on a temporary file system in memory. I imagine this will also be good for the future health of an SSD drive.

I'm using OpenSUSE Leap so there may be variations on other distros.

Copying NetBeans GUI components in KDE and Plasma 5

Submitted by gunnar on

For some time now, it has not been possible to copy GUI components in the NetBeans GUI editor. Apparently, the KDE clipboard doesn't play well with NetBeans GUI copying. Until Plasma 5 arrived, the clipboard tray icon was provided by klipper and you could get GUI copying to work by just selecting Quit from the tray icon popup menu. Klipper was even nice enough to ask if you want it to start again automatically at next login. Of course, you didn't need to log out and log in again, you just called up krunner with Alt+F2 and typed klipper.

Using Smb4K on openSUSE 12.3 without password prompt

Submitted by gunnar on

Smb4K is my favorite tool for browsing and mounting SMB shares. Up until openSUSE 12.2 it mounted shares without prompting for the root password, through sudo rules. With openSUSE 12.2, this did not work out of the box anymore. The following post by Alexander Reinholdt helped me with the local policy override settings needed:

Root's password required every (u-) mount

Adding dictionary for Thunderbird in OpenSUSE 12.2

Submitted by gunnar on

After installing Thunderbird I found that although I had installed myspell-swedish from the package repositiory I didn't get Swedish as an option in Thunderbird. I checked the file list for the thunderbird package and it showed a directory called /usr/lib64/thunderbird/dictionaries. This directory contained symbolic links to /usr/share/myspell/en_US.aff and /usr/share/myspell/en_US.dic but not to the files for Swedish. Perhaps it would if I had installed the dictionary before thunderbird, don't know.

Nice looking fonts in GTK applications on openSUSE 11.4

Submitted by gunnar on

When I installed Open SuSE 11.4 yesterday I thought that the fonts used in GTK applications like Firefox and Thunderbird were really ugly. In my KDE settings I have specified that I want it to use my KDE fonts in GTK applications but this setting seems to have no effect. To fix this I installed gnome-control-center from the repository and changed the fonts to 8 point Liberation Sans and Liberation Mono. Now the GTK applications look just as good as the KDE ones.

Why do my Linux Samba share show underscores in file names when viewed on a Samba client?

Submitted by gunnar on
Question

When a Samba client, Windows or Linux doesn't matter, connect to any of my shared directories all national characters in file and directory names are shown as underscores. Why?

Answer

Probably the directory character encoding used on your server doesn't match the setting unix charset in the [global] section of /etc/samba/smb.conf. If you don't use UTF-8 you need to specify the character encoding with this setting.

Running the BitNami LAMP stack with the system MySQL

Submitted by admin on

The excellent BitNami LAMP stack contains its own MySQL, which is started automatically and used by PHP. If you for some reason want to use the MySQL that is installed in your host system you can do the following changes to your stack configuration:

Step 1 - Prevent the stack control script from starting MySQL

Edit the file ctlscript.sh in your LAMP stack root directory. and change the line

MYSQL_SCRIPT=$INSTALLDIR/mysql/scripts/ctl.sh

to