SysAdmin Blog, TechTips and Reviews

An (ex) System Administrator's Blog

Archives Posts

Package Installation on Solaris UNIX

August 31st, 2007 by elizar

We’re trying to install OpenLDAP ver 2.3.38 on a Sun-Blade-100 (UltraSPARC-IIe) but the stupid workstation’s OS installation is so bare that it doesn’t even have packages for CC or GCC (I’m sure there’s a lot more).

So, before we could do the OpenLDAP compilation, we need to install first GCC and other prerequisite apps.

Here’s what I need to install on the box:

Need to install the following:

Donwload all packages on Sunfreeware and install.

change to the directory where the packages are located

# pkgadd -d <package name>

answer promp question (usually change of permission)

If all has been installed, we can proceed and compile OpenLDAP. Of course if that don’t work out, we could always installed it’s packaged version on Sunfreeware! :)

Archives Posts

OpenLDAP Installation on Sun Blade 100

August 29th, 2007 by elizar

This is an OpenLDAP installation on the following system:

System Configuration: Sun Microsystems sun4u
Memory size:
1024 Megabytes

Sun-Blade-100 (UltraSPARC-IIe)


Depending on the requirements, there may be a need to install some third party softwares:

  • OpenSSl
  • Kerberos
  • SASL
  • Berkeley DB
  • TCP Wrappers
  • and others

Need to make sure the following variables is set:

Variable Description
CC Specify alternative C Compiler
CFLAGS Specify additional compiler flags
CPPFLAGS Specify C Preprocessor flags
LDFLAGS Specify linker flags
LIBS Specify additional libraries

(additional: Need to install gcc, ar (binutils) libiconv libintl-3.4.0-sol8-sparc-l as well as Berkeley DB on server)

With the initial installation I will set it up using

# ./configure

# make depend

# make

# make test


# su root -c ‘make install’

That’s it, hopefully all will go well.. If it doesn’t, we’ll post the error (and hopefully solution).


Archives Posts

VirtualBox Installation

August 25th, 2007 by elizar

innotek VirtualBox is a general-purpose full virtualizer for x86 hardware. VirtualBox allows an unmodified operating system with all of its installed software to run in a special environment, on top of your existing operating system. Just like VMware Workstation allows one physical machine to run two or more operating systems simultaneously

You’ll then be presented the User License Agreement. Selecting the custom installation will give you the next window. It shows which Virtual Box component to be installed and the location where it will be installed. After selecting your choice, click Next.

Read the rest of this entry »

Filed under Linux, Open Source having No Comments »

Archives Posts

Ubuntu To Replace Vista?

August 22nd, 2007 by elizar

The prevailing wisdom about Linux on the desktop runs something like this: “I’ll believe Linux is ready for the desktop as soon as you can give me a Linux distribution that even my grandmother can run.”

For some time, the folks at Ubuntu have been trying their best to make Granny — and most everyone else — happy. They’ve attempted to build a Linux distribution that’s easy to install, use, configure, and maintain — one that’s at least as easy as Windows, and whenever possible, even easier. As a result, Ubuntu is one of the Linux distributions that has been most directly touted as an alternative to Windows.

Read All… 

Filed under Linux having 1 Comment »

Archives Posts

Route, Routing, Routing Table

August 18th, 2007 by elizar

Here’s some information about routing from a Unix (Solaris) box. Got this request from one of the Network people to add a static route on a server.

The command

# netstat -rn

show the routing table on a *nix machine .

The ‘route’ command manually manipulates the network routing table on a Unix box.

The add and delete sub-commands have the following syntax:

route [ -fnvq ] cmd destination gateway [metric/netmask]

So to display server1’s routing table,

 [root@server1]# netstat -rn
Routing Table: IPv4
Destination           Gateway           Flags  Ref   Use   Interface
——————– ——————– —– —– —— ———          U        11340517  ce0              U        1      0  ce0
default                    UG       1 687333                   UH       1  27928  lo0

Another example:

If we wanted to reach network passing through we could add the network by using the ‘route’ command:

 [root@server1]# route add 1

Checking routing table:

 [root@server1]# netstat -rn
Routing Table: IPv4
Destination           Gateway           Flags  Ref   Use   Interface
——————– ——————– —– —– —— ———          U        11340517  ce0              U        1      0  ceo           UGH  1
default                    UG       1 687333                   UH       1  27928  lo0

The only problem with this is that if the server is rebooted, the manually added static route will be gone. If order to retain that route, it has to be added in one of the startup script.

You could create a  script in one of the RC directory, name it something relevant like, say S90StaticRoutes or something and add the ‘route add’ line we did above.

Filed under Linux, Unix having No Comments »

Archives Posts

Soft and Hard Links… Explained

August 8th, 2007 by chelsy

A friend and I were kind of reviewing some HPUX/Solaris commands and ideas. She asked “What were the difference between hard and soft links?”. Unable to get the answer at once, I of course consulted my Solaris Administration guide. I also got curious cause I really don’t mind what their difference is, all I care about is that they were linked and that’s it. So here goes the difference between Mr Hard and Ms. Soft Link….

First, what are links? A link is a pointer to another file or directory. Links provide a mechanism for multiple file names to reference the same data on disk.

Soft (Symbolic) Links is a shortcut (like a desktop shortcut on Windows). The syntax for creating a symbolic link is as follows:

ln -s source-file link-name

Now when you list the contents of the directory you see two files:

3588 -rw-r--r--   1 chelsy staff       30 Jun 17 17:51 file1
3594 lrwxrwxrwx   1 chelsy staff       5  Jun 17 18:09 link1 -> file1

Hard link is more difficult to determine, because they are not so obvious when viewed with the ls -li command. The syntax is :

ln file1 link1 (No –s?)

What you could notice is that the inode in each file is the same when you list them. Notice the first column, all of which have 1898 value, meaning the files in the list have the same inode number, therefore, is the same file.

1898  4 -rwxr--r--   5 root   sys    3506 Jan 10  2005 /etc/init.d/init.wbem
1898  4 -rwxr--r--   5 root   sys    3506 Jan 10  2005 /etc/rc0.d/K36wbem
1898  4 -rwxr--r--   5 root   sys    3506 Jan 10  2005 /etc/rc1.d/K36wbem
1898  4 -rwxr--r--   5 root   sys    3506 Jan 10  2005 /etc/rc2.d/S90wbem

1898 4 -rwxr–r– 5 root sys 3506 Jan 10 2005 /etc/rcS.d/K36wbem

So what is the difference then? Except for the syntax with no –s in the option, try deleting the source file in the soft link.

In Soft Link, if you remove file1, the source file, link1 will still exist, but it points to a file that does not exist. So when you open link1,

cat link1

The cat command can’t print out the contents of the file, so you get this message:

cat: Cannot open link1

In Hard Link, if you remove file, the source file, link1 will still exist and you will still be able to open it. The data will not be deleted until you destroy the last file that shares this inode number. Nice huh???

Pros and Cons???

A hard link cannot span file systems; it can only point to another file located within its file system. The reason is that hard links all share an inode number. Each file system has its own set of inode numbers; therefore, a file with inode number 1234 in the /export/home file system may not even exist in the /usr file system.

An advantage of a symbolic link over a hard link is that you can create a symbolic link to a file that does not yet exist. You cannot create a hard link unless the source file already exists.

Makes sense?

Filed under Solaris, Unix having 1 Comment »

Archives Posts

Google Uses Linux

August 8th, 2007 by elizar

“You’ll often hear members of our open source team say, ‘Every time you use Google, you’re using Linux.’ It’s absolutely true.” – That’s according to the people from Google.

Linux has been part of Google ever since the big search engine started doing their thing. “Linux has given us the power and flexibility we need to serve millions of users around the world.”

This is further verified when they stated that (every) Google engineer’s workstation runs some variant of Linux. Even the search result when you do a query on the search engine, those are brought to you by Linux.

I say, if Google uses Linux, let’s all do it! 😀

Oh, by the way… Yahoo’s outgoing mail is powered by qmail, so I guess there is a big possibility that Yahoo too, is using Linux (or Unix, whichever).

Filed under Google, Internet, Linux having 1 Comment »

Archives Posts

from DUSK…

August 7th, 2007 by elizar

We UNIX SysAds have many many tools that can help us administer our servers. What’s great about UNIX is that you don’t have to learn the complicated commands to do what’s need to be done.

There is a saying in the UNIX world that a complex command is just a few commands used altogether. We usually apply pipes on these stuff.

Let’s take DUSK for example… or it can really be DUCKS depending on what version of DU you use.

DUSK is what I use very often every time I want to know the disk usage of the current file systems and the sub directories under that.

The command,

du -sk * | sort -n | more

does exactly that. And here’s the output when executed my home directory.

bash-2.05# du -sk * | sort -rn | more
4409 nrpe
4263 tmp
3399 xilinx
1048 dl4.files
465 unixstuff
244 scripts
30 hosts
7 doy
6 list.tqs.032206
2 help
1 netapp
1 hp84k.NIS

As you can see, it listed all the size of the files and the directories. This is a useful command specially if you’re looking for the disk space hog on you filesystem.

But why use such long command when you can use ‘dusk’ ? I don’t know about you but ‘du -sk * | sort -rn | more’ is a mouthful than ‘dusk’ right?

Here’s what you do: Simply create and alias for that command and assigned it to ‘dusk’ and you’re done.


# alias dusk=’du -sk * | sort -rn | more’


% set dusk= du -sk * | sort -rn | more

Try it. It will save you tones of typing errors! 😉

Filed under Linux, Tips, Unix having No Comments »

Archives Posts

Healthier Computer

August 7th, 2007 by elizar

The computer is probably the single most important piece of equipment in your company or business. That’s why keeping it in tip-top shape is a requirement. When it’s not working properly, your entire business slows down. It affects employee productivity. If you’re not taking good care of you PC and not doing a regular maintenance, though it may be functioning now, you could find yourself in trouble someday

SysAdmins at one time or the other has been / are involved in PC maintenance. It is one of their most important task in a company. Here are things to consider that will help you take better care of your computer:

Read the rest of this entry »

Filed under For All having No Comments »

Archives Posts

(Open Source) Applications On The Go!

August 5th, 2007 by elizar

Here’ s one cool application for the Open-Source followers! Introducing the portable app. Now, you can enjoy the applications you love from a computer running you know what. Suite™ is a collection of portable apps including a web browser, email client, office suite, calendar/scheduler, instant messaging client, antivirus, sudoku game, backup utility and integrated menu, all preconfigured to work portably. Just drop it on your portable device and you’re ready to go.

Enough said… This is cool stuff!

Using a portable storage device, such as an IPod (5th Gen) or an USB thumdrive, you can bring along with you all your favorite programs by using PortableApps. You can use the Web, read email, transfer files, chat with friends, ssh into machines, edit images and sounds, watch movies and listen to music, write office documents, zip up the results, and store passwords securely!

From now on, no matter which computer you use, you can always bring your favorite applications with you.

There are lots more application on the website!

Filed under Linux, Open Source having 1 Comment »

« Previous Entries

I was here...