Archive for the ‘System Admin’ Category

Refresher on NFS exporting

Saturday, 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

Subversion on Plesk-controlled subdomain

Wednesday, March 26th, 2008
After much procastination and personal interuptions (you can tell, I haven’t been blogging that often lately) , I’ve managed to install Subversion running as a subdomain with Plesk 8.0 and CentOS 4.3…

rest of the story on Alex Le’s blog

Unix Toolbox

Wednesday, March 26th, 2008

Highly recommended.

Sections:

  • System
  • Processes
  • File System
  • Network
  • SSH SCP
  • VPN with SSH
  • RSYNC
  • SUDO
  • Encrypt Files; Encrypt Partitions
  • SSL Certificates
  • CVS; SVN
  • Useful Commands
  • Install Software
  • Convert Media
  • Printing
  • Databases
  • Disk Quota
  • Shells
  • Scripting
  • Programming
  • Online Help

Firefox uses wrong app for mailto: links

Tuesday, March 25th, 2008

On an XP system: When Firefox fails to regard Thunderbird the “Default Mail Application” (even though you set that elsewhere) the problem may be solved by:

  •  Opening the Control Panel
  • Opening the Folder Options
  • On the File Types tab, find the  (None) URL:MailTo entry
  • Click the Advanced button
  • In the Actions window, you should see the entry: open
  • Click the Edit… button
  • Set the Application Used to Perform Action to the correct path of your Thunderbird as:

“C:\Program Files\Mozilla Thunderbird\thunderbird.exe” -compose “%1″

Virtual Machine Hosting

Wednesday, March 19th, 2008

Worth a look –

  • nomachine.com From their website:

    NoMachine NX is a Desktop Virtualization and Remote Access solution based on a comprehensive set of enterprise class open source technologies. Thanks to the outstanding compression, session resilience and resource management developed on top of the X-Window system, and the integration with the powerful audio, printing and resource sharing capabilities of the Unix world, NoMachine NX makes it possible to run any graphical application on any operating system across any network connection as if you were sitting in front of your computer.

    NX Free Edition

    A complete solution for remote access to your Unix workstation. It allows 2 concurrent users to connect no matter what their location is, and share the desktop. NX Free Edition is incredibly easy to install and run, leverages the competence and quality of the company that makes NX and, most importantly, is free forever.

  • 2X TerminalServer

    Using a compressed version of the X protocol, 2X TerminalServer for Linux provides users with a secure, personal Linux desktop accessible from anywhere in the world, over any connection…

    2X TerminalServer for Linux is an Open Source project, licensed under the GPL and is free of charge. Only user to user support is available via the 2X forums.

Peachtree Hangs at Startup

Thursday, January 24th, 2008

If you’ve tried to open a Peachtree company file on a computer that serves company-files but isn’t actually running the Pervasive engine, Peachtree can irrecoverably hang at startup.

Using the Registry editor, find and modify:

HKEY_CURRENT_USER\Software\Peachtree\Peachtree Complete Accounting\14\Options
lastcompanyopenlong

and set it to the “real” company file — or to a legal filename that doesn’t exist.  Then Peachtree will start and you can re-point it to the correct location.

User admin notes

Sunday, December 16th, 2007

Default parameters for new users — like minimum “user” UID, the location of the skeleton directory, and such, varies between the major GNU/Linux distros –

Distribution Config File Ex. Parameters; Syntax
RedHat RHEL 5 /etc/libuser.conf
SUSE 9 /etc/login.defs
Note: no ’skel’ definition
SYSTEM_UID_MIN 100
SYSTEM_UID_MAX 499
UID_MIN 1000
GID_MIN 1000
Debian / Ubuntu /etc/adduser.conf FIRST_SYSTEM_UID=100
LAST_SYSTEM_UID=999
FIRST_UID=1000
USERS_GID=100
SKEL=/etc/skel

Reset a Mailman List Password

Thursday, November 8th, 2007

Had to dig a little for this one.  If you have created a mailman email list and need to reset the password:

/usr/lib/mailman/bin/change_pw -l mail-list-name -p new-password

Handy password recovery script

Tuesday, June 5th, 2007

This little program runs as a temporary server, possibly on your local machine or wherever you can run it, and shows you in plaintext what it receives thru FTP or POP3… in order to recover passwords saved in a program.

(more…)

Upload mirroring with lftp

Friday, June 1st, 2007

By default, many FTP servers don’t list ‘.’ and ‘..’ (current and parent directories) which confuses lftp when uploading a mirorr copy. What happens is that lftp sends a “list” command and, if it’s in an empty directory, lftp gets nothing back.

Solution: use

set ftp:list-options -a

This forces the remote ftp server to include ‘.’ and ‘..’ to keep lftp happy.