Category Archives: Linux

getfacl and setfacl – Unix Access Control (acl) Tool

Today’s topic is all about Access List… For Unix and Unix-like system, the usual command to set the file permission is the ‘chmod’ command. However there are instances that we need more flexibility in giving access and control for files and folders. Get it? Access and Control? In this situation, there is a file utility … Continue reading

Top equivalent for AIX – Topas, Only Better

Top equivalent for AIX – Topas, Only Better… That’s what I searched when I got a ticket from one of the AIX boxes here complaining about CPU being 99% used up. Of course, you can use vmstat with interval, but for those sysadmin folks who are use to using Top, its still more comfortable using … Continue reading

Searching For Fee Car Classifieds Script

Cars are no longer a luxury nowadays (except if you want to own a Ferrari or something). Cars are now a necessity in today’s standard of living. And let’s face it, with the price of brand new cars and the forever raising price of gasoline, not every one can buy a new set of wheels. … Continue reading

Setting up an FTP server on Debian

First things first, check to see what available ftp server are there for Debian atp-cache search ftp-server This will suppose to to list all available ftp server . As you can see there are a few available server you can choose. Popular one is proftp. To install the service do: apt-get install proftp This will … Continue reading

vi Search and Replace… The Basics, Dummy’s Reference

Yep, this is a dummy’s reference… I keep on forgetting the syntax so I might as well put it here for my own reference… vi is the one, if not the most popular text editor available for a System Administrator on a UNIX and UNIX-like machines. It has two modes, command and editor mode. Here … Continue reading

Trouble Installing Ubuntu on a NEO Laptop

I bought my very first laptop last week which comes pre-installed with Windows Vista Home Basic. My original plan was to erase the whole thing and put Ubuntu on it. Tried it couple of days ago but didn’t work out. After the boot up from the CD (requested a copy of Ubuntu 7.10) it displayed … Continue reading

mysql: Multiple Table Query, Output into File

Got a request from the boss today to extract all users plus their contact numbers from the Paging server Server is a Red Hat Enterprise Linux AS release 4, running LAMP. The data needed are located in several tables, so we need to query all relevant tables in the databse: mysql> SELECT users.username, users.emailaddress, user_services.current_service … Continue reading

AsteriskNOW – Asterisk Out Of The Box

I recently found a nice read about a Linux Project or Distro that includes Asterisk. It contains all the Asterisk stuff one will ever need. The project is called AsteriskNOW. You can donwload the package at asteriskNOW.com. You can choose to download and ISO image or a VMWare image on the donwload page. The is … Continue reading

UNIX Quick Tip: Changing The Time Stamp Of A File

This tip is a give away. Everyone knows this, but for those who doesn’t or forgot…  here’s refresher… Here’s a typical output of a file listing using `ls -l` on a directory: [root@unix-box icons]# ls -l | more total 636 -rw-r–r–    1 elizar root          246 Aug 26  2005 a.gif -rw-r–r–    1 elizar root          242 Aug … Continue reading

Less is More

In a Linux system (and in Solaris 5.8, 5.9, 10, Solaris in general apparently), there are two (identical? opposite?) commands that are very easy enough to remember. How is that? Well, first the command names speak for itself or do exactly what it is called. What are those commands? Well, they are: more and and … Continue reading