Refresher on NFS exporting

July 5th, 2008

on the server, in /etc/exports:

/home/somedirectory 192.168.1.0/24(no_root_squash,rw,nohide)

then after editing /etc/exports, refresh the NFS server with:

# /sbin/exportfs -a

Optimize Ubuntu 8.04 for Speed

July 4th, 2008

Explanation on Softpedia

  • Boot tweaks
  • Speed up GRUB
  • Stop unneeded startup programs
  • Hard drive writeback
  • Tune “swappiness”

Workaround: Admin privileges in Kubuntu 8.04

June 19th, 2008

Problem: No Administrator button for Login Manager and other settings in Kubuntu 8.04.  Known bug, oddly assigned Low priority.

Workaround: From command line:

/usr/lib/kde4/lib/kde4/libexec/kdesu /usr/lib/kde4/bin/systemsettings

Thunderbird 2 on Centos 5.1

June 4th, 2008

Found on tboxmy blogspot:

Everyone is using Thunderbird on MS Windows, Ubuntu Linux and Fedora Core Linux. So, why shouldnt Centos 5.1 be able to install?

  1. Download Thunderbird 2 from Mozilla (http://www.mozilla.com/en-US/thunderbird/) or other mirros like (http://mirror.oscc.org.my/mozilla/thunderbird/). I downloaded thunderbird-2.0.0.14.tar.gz to the directory /tmp.
  2. Extract the files
  3. Open a terminal and login as root to the directory /opt
    su -
    cd /opt
  4. Copy the extracted forlders to /opt
    cp -rf /tmp/thunderbird /opt
  5. Install the older library of libstdc++.so.5 (5.1 comes with version libstdc++.so.6)
    yum install compat-libstdc++-33.i386
  6. Test the Thunderbird as a normal user
    /opt/thunderbird/thunderbird
  7. Copy the icons to the user wide pixmap
    cp thunderbird/icons/mozicon*.xpm /usr/share/pixmaps/
  8. When Thunderbird starts, it complains about the mode for /var/spool/mail, as it cannot write to this folder. As root do the following
    chmod 01777 /var/spool/mail

Add the application launcher in the panel/menu using the mozicon icon. Only things left is to install other plugins.

Fix for 16-bit apps under wine on Ubuntu 8.04

May 31st, 2008

In ubuntu hardy heron, wine runs into a new security setting that disables 16-bit applications. When you try to install them, you get an error:

preloader: Warning: failed to reserve range 00000000-60000000
winevdm: unable to exec '--app-name': 16-bit support missing

On ubuntuforums is a solution which actually works:

sudo sysctl -w vm.mmap_min_addr=0

How to Sandbox WordPress

May 12th, 2008

“How to (easily) Sandbox WordPress and Kick back with Plugins, Themes And Hacks”

Describes how to create a subdomain, install Wordpress, copy your content, and prevent search engines from finding your sandbox.

Cure for sluggishness on Hardy

May 7th, 2008

When starting a new program on, for example KUbuntu 8.04, there is a delay of several seconds. This can be caused by SCIM — which is a multi-language keyboard input protocol — not loading.  Check your system logs.  If this is the problem, try as root:

apt-get remove scim-qtimm scim-bridge-client-qt4 scim-bridge-client-qt scim-bridge-client-gtk scim-bridge-agent skim scim-modules-socket libskim0 libscim8c2a

References: Ubuntu bug #2033334, bug #206302

Installing NVidia drivers on Ubuntu 8.04

May 6th, 2008
sudo apt-get install nvidia-glx-new linux-restricted-modules-$(uname -r) --reinstall

Two commands enable DVD playback in Ubuntu

May 3rd, 2008

sudo apt-get install totem-xine libxine1-ffmpeg libdvdread3
sudo /usr/share/doc/libdvdread3/install-css.sh

No sound with pidgin, etc. on kubuntu

April 10th, 2008

Problem: error message

play soxio: Failed reading `test.wav': unknown file type `auto'

Solution:

$ sudo apt-get install libsox-fmt-base libsox-fmt-ao

Installs everything you need just for the wave (.wav) format, or use

$ sudo apt-get install libsox-fmt-all

to install all available formats for sox and the play command.