Category: Linux / SysAdmin


zcat: ./cancel.1.gz: No such file or directory

October 30th, 2006 — 10:04 am

Bugzilla Bug 136973: cancel-cups man page missing from errata package

Error:
/etc/cron.weekly/makewhatis.cron:

zcat: ./cancel.1.gz: No such file or directory

Fix:

cd /usr/share/man/man1
ln -s ln lp-cups.1.gz cancel-cups.1.gz

Comments Off | Linux / SysAdmin

Adding Swap Space on the Fly in Linux

October 11th, 2006 — 01:22 pm

Adding Swap Space on the Fly in Linux
Topic: GNU/Linux Posted:2000-05-29 12:12:41

by Urbana Der Ga’had
Link

Comments Off | Linux / SysAdmin

Setup VNC Remote Desktop

July 25th, 2006 — 02:36 pm

Introduction

Every day when I finish work, I switch off my desktop computer. When I switch it on again the following morning, I can carry on where I left off. I switch on the computer, and all of my application windows are exactly where I left them. The web browser is still showing me the webpage I was half-way through reading. How? I use Virtual Network Computing: VNC.

My desktop session actually runs on another machine in another building. The desktop computer I sit in front of runs a VNC viewer and shows me my desktop—but the applications in that desktop are running inside a VNC server session.

Part 1
Part 2

Comments Off | Linux / SysAdmin

ls color definition for dark background

June 28th, 2006 — 09:59 pm

Mac OSX

export LSCOLORS=hxfxcxdxbxegedabagacad

It will change directory listing to light gray, more readable than blue on dark background (e.g. black)

Comments Off | Linux / SysAdmin, Personal

VIm Command Reminders

June 21st, 2006 — 01:17 pm

:e#X - switch buffers
:y - yank/copy text
:p - paste
:set key= - set encryption key to blank, thus turn off file encryption

Tips:
Copy & Paste
http://www.vim.org/tips/tip.php?tip_id=312

Comments Off | Linux / SysAdmin

Ten Tools Every Admin Should Have

January 3rd, 2006 — 10:01 am

Are you a system administrator, or work with computers? If so, this article is a must read. Outlining everything an administrator needs to keep things glitch-free.

read more | digg story

Comment » | Linux / SysAdmin

Using U of C Web Disk with Linux

October 20th, 2005 — 09:20 pm

To use University of Calgary web disk (based on WebDAV), one option is use a command line client such as cadaver.

Download cadaver

To install: x = version number
tar xvzf cadaver.x.tar.gz
cd cadaver.x
./configure --with-ssl
make && make install

Once it’s installed, access web disk via
cadaver https://webdisk.ucalgary.ca/~username_here

enter “?” to list available commands at cadaver prompt. It works just like a command line ftp client (get/put/mget/mput).

Comment » | Linux / SysAdmin

Upgraded MySQL 3.23.58 to 4.1 on Fedora Core 2

September 26th, 2005 — 08:51 pm

I attempted to upgrade MySQL server from old version 3.23.58 to 4.1 current. Amazingly everything is workingafter the upgrade and the whole site feels more responsive. I installed it directly off the MySQL website since I cannot find fc2 rpm for yum to upgrade.

Steps I took to get this done:

  • 1. Backup EVERYTHING!
  • 2. Download MySQL source directly from MySQL
  • 3. Untar mysql tar ball
  • tar xvzf mysql-4.1-xxx.tar.gz
  • 4. Copy/Move entire mysql-4.1-xxx directory to /usr/local
  • 5. Setup directory permission
  • chown -R root .
    chown -R mysql data/
    chgrp -R mysql .
  • 6. Created symbolic link for MySql directory
  • ln -s mysql-4.1-xxx/ mysql
  • 7. Copy my-medium.cnf from /usr/local/mysql/support-files and merged with my existing my.cnf
  • 8. In the new my.cnf, changed [safe_mysqld] section name to [mysqld_safe]. I also made sure datadir is pointing to my existing database location
  • 9. Corrected all path under /etc/init.d/mysqld startup script
  • 10. start mysqld_safe - /usr/local/mysql/bin/mysqld_safe
  • 11. fix privilege table by running mysql_fix_privilege_tables scripts from the /usr/local/mysql/bin
  • 12. Checked websites, phpmyadmin and mysql users. It seems all information were retained

If any experience admin read this and found error or things I shouldn’t do. Please let me know. :)

Comment » | Linux / SysAdmin

     Next Entries »