This blog has moved! Redirecting...
You should be automatically redirected. If not, visit http://scrolls.mafgani.net/ and update your bookmarks.

Tuesday, February 27, 2007

Linux NFSv4 Howto

NFS is commonly used to share files on Linux. NFSv4 is the latest protocol and circumvents firewall related complications experienced with NFSv3 by requiring only ONE fixed tcp port open on the server side. It is surprisingly easy to set up:

Server side:

  1. Edit /etc/exports and add directories to be exported (fsid=0 is a mandatory option for nfs4) and authorized clients (check the exports manpage)

  2. Open up tcp port 2049 on the firewall

  3. # /etc/init.d/nfs restart

  4. # chkconfig --level 345 nfs on



Client side:

  1. # mount -t nfs4 -o rw,intr,hard server:/ /mount/point



It is not necessary to specify the exact path on the "server:/" with NFSv4.

Useful sites:

Learning NFSv4 with Fedora Core 2
RHEL4 NFS manual
Linux NFS-HOWTO

Linux - Disable Shutdown For Normal Users

Very useful for servers/shared machines:

Disable Shutdown For Normal Users

Addendum:

Setting file mode for /etc/acpi/events/power.conf to "0000" is not sufficient to disable the power button. It's better to:

  1. Uninstall gnome-power-manager

  2. Leave file permissions for power.conf unchanged and simply set the action= line to an empty string


It is also advisable to set the local login screen style to plain in gdmsetup.

Linux authentication using LDAP

There's a lot of information out there but none really provide a step-by-step guide that would be useful to a novice:



This one however, sheds some light on the bigger picture:

LDAP Authentication In Linux

Once the initial configuration of the server is complete, LDAP Browser/Editor serves as a very useful client/admin tool.

Friday, February 02, 2007

Replacing broken laptop displays

Notebook LCD replacement need not be a costly affair:

How To Replace A Broken Laptop or Notebook Display

ScreenTek is apparently a leading manufacturer.