Category Archives: Linux

Linux

/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries

Due to the challenge for efficiency I decide to install vmware server on ubuntu server hardy heron 8.04

The installation process itself is smooth except this part :

/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries

vmware need a few shared libraries as requirement for register serial number. If I ignored it I’ll see repeating message that tell me that I’m unable to register vmware serial number.

Here’s little installation process:

root@dns:/home/edpteam# tar xvzf VMware-server-1.0.6-91891.tar.gz

root@dns:/home/edpteam# cd vmware-server-distrib/

root@dns:/home/edpteam/vmware-server-distrib# ls
bin  doc  etc  FILES  installer  lib  man  sbin  vmware-install.pl  vmware-vix
root@dns:/home/edpteam/vmware-server-distrib# ./vmware-install.pl

1st error I encountered :

/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:

Trying install libx11-dev :

root@dns:/home/edpteam/vmware-server-distrib# apt-get install libx11-dev

Setting up x11proto-core-dev (7.0.11-1) …
Setting up libxau-dev (1:1.0.3-2) …
Setting up libpthread-stubs0 (0.1-2) …
Setting up libpthread-stubs0-dev (0.1-2) …
Setting up libxdmcp-dev (1:1.0.2-2) …
Setting up libxcb1-dev (1.1-1ubuntu1) …
Setting up libxcb-xlib0-dev (1.1-1ubuntu1) …
Setting up x11proto-input-dev (1.4.2-1) …
Setting up x11proto-kb-dev (1.0.3-2ubuntu1) …
Setting up xtrans-dev (1.0.4-1) …
Setting up libx11-dev (2:1.1.3-1ubuntu2) …
Processing triggers for libc6 …
ldconfig deferred processing now taking place
root@dns:/home/edpteam/vmware-server-distrib#

another error occur :

/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries: libXtst.so.6: cannot open shared object file: No such file or directory
Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:

Try install libxtst6 :

root@dns:/home/edpteam/vmware-server-distrib# apt-get install libxtst6
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
debhelper intltool-debian po-debconf gettext html2text
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
libxext6
The following NEW packages will be installed:
libxext6 libxtst6
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 43.4kB of archives.
After this operation, 188kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com hardy/main libxext6 2:1.0.3-2build1 [30.9kB]
45% [1 libxext6 19956/30.9kB 64%]

Using compiler “/usr/bin/gcc”. Use environment variable CC to override.

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:  9ARWH-YW5FU-28NAL-4T0JT

Starting VMware services:
Virtual machine monitor                                             done
Virtual ethernet                                                    done
Bridged networking on /dev/vmnet0                                   done
Host-only networking on /dev/vmnet1 (background)                    done
Bridged networking on /dev/vmnet2                                   done
Host-only networking on /dev/vmnet8 (background)                    done
NAT service on /dev/vmnet8                                          done

The configuration of VMware Server 1.0.6 build-91891 for Linux for this running
kernel completed successfully.

After a few trial error I think this command should applied first before installation process :

apt-get install libxt6 zlib1g libxtst6 libxrender1 libx11-dev

Time for checking vmware converter icon smile /usr/lib/vmware/bin/vmware vmx: error while loading shared libraries

Linux

Install Djbdns on Ubuntu Server

I’m big fan of djbdns for its simplicity. After one of our server must change to vmware server and ubuntu chosen as main OS I still want to use djbdns for handling domain resolution.

Searching on internet guide for installing djbdns on ubuntu give me to this link. I try to follow it and it works icon smile Install Djbdns on Ubuntu Server

The different only for dnscache ip. I prefer to use lan ip for dnscache.

Here’s the adaptation of the guide :

Preparation :

apt-get install build-essential
add debian etch repository in /etc/apt/sources.list:

deb http://ftp2.de.debian.org/debian/ etch main contrib non-free

apt-get update

Install packages :

Install ucspi-tcp-src:
apt-get install ucspi-tcp-src
build-ucspi-tcp
read more »

Linux

Mounting Hard Disk on Ubuntu

One of our server need to reconfigure. Install ubuntu server on it and will convert other hardisk for special purpose on vmware appliance.

In fact the server have 4 HD, 1 for system and 3 HD dedicated for virtual appliance.

This steps taken to format and mounting :

1. See current mount point and space .

root@ubuntuserver:/home/edpteam# df -H
Filesystem             Size   Used  Avail Use% Mounted on
/dev/sdd1               67G   622M    63G   1% /
varrun                 1.1G    46k   1.1G   1% /var/run
varlock                1.1G      0   1.1G   0% /var/lock
udev                   1.1G    95k   1.1G   1% /dev
devshm                 1.1G      0   1.1G   0% /dev/shm

2. See all attached HD and its file system.

root@ubuntuserver:/home/edpteam# fdisk -l

Disk /dev/sda: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00000000

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       17849   143372061   a5  FreeBSD

Disk /dev/sdb: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f8000b1

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       17849   143372061   a5  FreeBSD

Disk /dev/sdc: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00000000

Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       17849   143372061   a5  FreeBSD

Disk /dev/sdd: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×90909090

Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        8158    65529103+  83  Linux
/dev/sdd2           17120       17849     5863725    5  Extended
/dev/sdd3            8512       17119    69143760   83  Linux
/dev/sdd5           17120       17849     5863693+  82  Linux swap / Solaris

Partition table entries are not in disk order
root@ubuntuserver:/home/edpteam#

3. New HD layout scenario.

System in sda
Proxy in sdb -> /proxy
SandboxProgramming in sdc -> /probox
SandboxNetworking  in sdd -> /netbox

4. Format each HD :

root@ubuntuserver:/home/edpteam# mkfs -t ext3 /dev/sda
mke2fs 1.40.8 (13-Mar-2008)
/dev/sda is entire device, not just one partition!
Proceed anyway? (y,n) y

Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
8962048 inodes, 35843686 blocks
1792184 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
1094 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@ubuntuserver:/home/edpteam#

Repeat this step for other HD .

4. Make mounting point for those HD.

Mounting point

root@ubuntuserver:/home/edpteam# mkdir /proxy
root@ubuntuserver:/home/edpteam# mkdir /probox
root@ubuntuserver:/home/edpteam# mkdir /netbox

Mounting to system.

root@ubuntuserver:/home/edpteam# mount -t ext3 /dev/sda /proxy
root@ubuntuserver:/home/edpteam# mount -t ext3 /dev/sdb /probox
root@ubuntuserver:/home/edpteam# mount -t ext3 /dev/sdc /netbox

Check if the HDs already mounted. (using command mount or df)

root@ubuntuserver:/home/edpteam# df -H
Filesystem             Size   Used  Avail Use% Mounted on
/dev/sdd1               67G   622M    63G   1% /
varrun                 1.1G    46k   1.1G   1% /var/run
varlock                1.1G      0   1.1G   0% /var/lock
udev                   1.1G    95k   1.1G   1% /dev
devshm                 1.1G      0   1.1G   0% /dev/shm
/dev/sda               146G   197M   139G   1% /proxy
/dev/sdb               146G   197M   139G   1% /probox
/dev/sdc               146G   197M   139G   1% /netbox

5. Make permanent routing, just edit /etc/fstab

root@ubuntuserver:/home/edpteam# nano /etc/fstab

Save the file.

6. Done, next step is install Vmware server icon smile Mounting Hard Disk on Ubuntu

Linux Unix

Unknown setting: mail_privileged_group

Downgrade dovecot to 1.0.10 give me error :

mail# /usr/local/etc/rc.d/dovecot start
Starting dovecot.
Error: Error in configuration file /usr/local/etc/dovecot.conf line 262: Unknown setting: mail_privileged_group
Fatal: Invalid configuration in /usr/local/etc/dovecot.conf

Find line 262, talk about mail_priveleged_group

solution :

change
mail_privileged_group = mail

into

mail_extra_groups = mail

and start dovecot service.

Work icon smile Unknown setting: mail privileged group

Linux

Download Manager for Linux

My wife ask me what application she can use for download file from internet. She just install Ubuntu. I used to use wget but I think it’s not the right time for her to touch command line icon smile Download Manager for Linux

After searching on internet I pick one D4X.

Here’s my steps for installing download manager (D4x) in Ubuntu Dekstop 8.04 :

1. Login ke sistem

2. Click System -> Administration -> Synaptic Package Manager

dm Download Manager for Linux

read more »

Linux Step By Step

Dual Booting, Windows XP and Linux Ubuntu Desktop

I still need my windows.

That my friend statement when he decide to give linux a try in his laptop after he feel comfortable with linux live CD.

Yes, in this post I’ll show how dual booting looks like and step by step effort to make computer with single windows xp into dual booting with linux OS.

1. Burn linux cd, in this case I use Ubuntu desktop 8.04

2. Reboot computer and make sure CD-ROM boot in first priority.

3. Make partition first for new operating system. (optional)

4. Installation started, some screenshots :

dual Dual Booting, Windows XP and Linux Ubuntu Desktop

Choose Language, this step is important if you want to see another screen with your mother language pick the right one.

read more »

Linux Unix

Could not determine the server’s fully qualified domain name

Thats message appear when I try to start apache using apachectl.

#apachectl start
[Thu Jun  5 16:31:33 2008] [alert] httpd: Could not determine the
server’s fully qualified domain name
, using 127.0.0.1 for ServerName
/usr/local/sbin/apachectl start: httpd could not be started

to solve this problem I need to know hostname and edit /etc/hosts to put that information (fully qualified name).

1. Find hostname

proxysudirman# uname -a

2. Edit /etc/hosts entry

proxysudirman# ee /etc/hosts

::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain

127.0.0.1               proxy proxysudirman.rasyid.net

172.88.1.2              proxy2 proxysudirman2.rasyid.net

3. Start apache service

proxysudirman# apachectl start
/usr/local/sbin/apachectl start: httpd started

Done icon smile Could not determine the servers fully qualified domain name

Linux

LinuxSuse, count me in …

With recent version of linux suse 11 I got surprised to see big enhancement after my friend show me two books about OpenSuse.

1. openSUSE Linux Unleashed

Review from amazon :

[amazonify]067232945X:right[/amazonify]openSUSE Linux Unleashed presents comprehensive coverage of the community version of SUSE Linux, one of the most popular and most complete Linux distributions in the world. 

This book provides detailed information on installing, using, and administering openSUSE. You’ll learn how to unleash the vast array of software products included in openSUSE so that you can use it as a desktop computer, as a professional workstation, or as a powerful server.

 

openSUSE Linux Unleashed includes a broad range of coverage: from using software you need everyday–such as email clients, web browsers, and productivity software including the OpenOffice.org productivity suite–to configuring and administering a wide range of network and server products, such as the Apache web server, and MySQL database.

 

Additionally, this book provides details on openSUSE’s acclaimed YaST administration tools, web programming, networking, and choosing from a wide selection of graphical interfaces and desktop environments, including both KDE and GNOME.

 

  • Plan your openSUSE installation based on your computing needs
  • Configure and use the X Window System–the Linux graphical interface–and the two primary desktop environments for Linux–KDE and GNOME
  • Run OpenOffice.org and other productivity tools
  • Create your own websites and weblogs
  • Manage the kernel and its modules
  • Set up networks
  • Run the Apache web server
  • Use the LAMP web programming suite: Linux, Apache, MySQL, and the scripting languages Perl, Python, and PHP
  • Play music, video, and games
  • Preserve an existing Windows installation for dual-boot launching

 

DVD-ROM includes:

  • The complete openSUSE 10.3  binary distribution–the equivalent of five CDs–packed with thousands of applications and utilities
  • The latest Apache web server
  • Samba for Windows-based file and printer sharing
  • The OpenOffice.org office productivity suite
  • Games for the desktop
  • Hundreds of additional programs, utilities, and development tools

2. SUSE Linux Toolbox: 1000+ Commands for openSUSE and SUSE Linux Enterprise

Review from amazon :

[amazonify]0470082925:left[/amazonify]This handy, compact guide teaches you to use SUSE Linux as the experts do: from the command line. Try out over 1000 commands to find and get software, monitor system health and security, and access network resources. Apply skills you learn from this book to use and administer desktops and servers running openSUSE and SUSE Linux Enterprise or any other Linux distribution.

Expand your Linux expertise in these and other areas:

  • Using the shell

  • Finding online software

  • Working with files

  • Playing with music and images

  • Administering file systems

  • Backing up data

  • Checking and managing running processes

  • Accessing network resources

  • Handling remote system administration

  • Locking down security

    Those books are rocks!

Linux PHP Unix

Reset Cacti Password, step by step

My other staff  ask me password for username admin. Yes, its administrator level in cacti.

After hardy trying to remember I gave up, I decide to reset it to other value but how?

I try to find out using database approach :

Here’s my steps :

1. Checking for cacti location and see db setting.

monitor# pwd

/usr/local/share/cacti/include

see setting dbnya.

monitor# cat db-settings.php

<?php
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "cacti";

$database_port = "3306";
?>

2. Enter database with information taken from db-settings.php information.

monitor# mysql -ucacti -p

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8343
Server version: 5.0.45 FreeBSD port: mysql-server-5.0.45_1

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql>

mysql> use cacti;

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

mysql> select * from auth_user;

ERROR 1146 (42S02): Table ‘cacti.auth_user’ doesn’t exist

Ups, my bad icon smile Reset Cacti Password, step by step

mysql> select * from user_auth;

+—-+———-+————-———————+——-+—————+————–——–+———–+———–+————–+—————-+————+—————+————–+———–—+————————+
| id | username | password                         | realm | full_name     | must_change_password | show_tree | show_list | show_preview | graph_settings | login_opts | policy_graphs | policy_trees | policy_hosts | policy_graph_templates |
+—-+———-+————-———————+——-+—————+————–——–+———–+———–+————–+—————-+————+—————+————–+———–—+————————+
|  1 | admin    | 7a40008b8368b684bec2286db1b073e2 |     0 | Administrator |                      | on        | on        | on           | on             |          1 |             1 |            1 |            1 |                      1 |
|  3 | monitor  | 719daab8833968dc805a345c58545ea6 |     0 | monitoring    |                      | on        | on        | on           | on             |          3 |             1 |            1 |            1 |                      1 |
|  7 | crash    | ac43724f16e9241d990427ab7c8f4228 |     0 | Nsun T        |                      | on        | on        | on           | on             |          3 |             1 |            1 |            1 |                      1 |
+—-+———-+————-———————+——-+—————+————–——–+———–+———–+————–+—————-+————+—————+————–+———–—+————————+
3 rows in set (0.00 sec)

mysql>exit

3. Generate new password with md5 utility.

monitor# md5 -s mypassword

MD5 ("mypassword") = 34819d7beeabb9260a5c854bc85b3e44

4. Update database value with new created password string.

monitor# mysql -ucacti -p

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8344
Server version: 5.0.45 FreeBSD port: mysql-server-5.0.45_1

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql>

mysql> update auth_user set password=’34819d7beeabb9260a5c854bc85b3e44′ where username=’admin’

done icon smile Reset Cacti Password, step by step

distro news Linux

Clonezilla Live 1.0.9-19 is out, partition plus cloning in one

From release information :

This release is a bug fixed one with some minor updates. 
- Bug fixed: memtest, freedos and etherboot were not listed in syslinux boot 
- Bug fixed: cciss RAID device restoration was broken. 
- Bug fixed: When "ocs-iso -s" or "ocs-live-dev -c -s" was run in Clonezilla live, etherboot and freedos image were not copied. Thanks to Spiros Georgaras. 
menu in clonezilla live zip file. 
- Now syslinux related files are in /syslinux/. 
- sdparm was added in Clonezilla live. 
- Newer syslinux.exe is used now. Makeboot.exe is replaced by makeboot.sh so that USB flash drive will boot successfully with kernel under /casper/. 
- Package zip and unzip were added. 
- partclone 0.0.6 is used now so clone.fat is available. 
- More descriptions were added in the boot menu. 
- An option for VGA mode 640×480 was added so that it’s easier for some PC, e.g. Asus Eee PC, to backup and restore in Chinese environment.

Download Link iso : click here

Related links :

Linux Unix

Dnscache access little secret

My friend just install dns server using djbdns, he use two component in djbdns:

  • tinydns
  • dnscache

After follow all setup in tutorial, he try to test the dnscache :

mail# dig yahoo.com

; <<>> DiG 9.3.4-P1 <<>> yahoo.com
;; global options:  printcmd
;; connection timed out; no servers could be reached
mail#
read more »