libpng12.so.0: no version information available
just copy the /usr/lib/libpng12.so.0 to /usr/lib/vmware/lib/libpng12.so.0/
Wednesday, November 21, 2007
Monday, November 12, 2007
Webmin and smbldap-tools,user and password
Edit the file:
/usr/share/webmin/ldap-useradmin/save_user.cgi
and add under line (262):
elsif ($in{'passmode'} == 3) {
# Normal password entered - check restrictions
local $err = &useradmin::check_password_restrictions(
$in{'pass'}, $user);
&error($err) if ($err);
$pass = $pfx.&encrypt_password($in{'pass'});
$plainpass = $in{'pass'};
these lines:
open BUF, "-|" or
exec "/usr/sbin/slappasswd",
"-h","{SSHA}",
"-s","$pass";
$pass =;
/usr/share/webmin/ldap-useradmin/save_user.cgi
and add under line (262):
elsif ($in{'passmode'} == 3) {
# Normal password entered - check restrictions
local $err = &useradmin::check_password_restrictions(
$in{'pass'}, $user);
&error($err) if ($err);
$pass = $pfx.&encrypt_password($in{'pass'});
$plainpass = $in{'pass'};
these lines:
open BUF, "-|" or
exec "/usr/sbin/slappasswd",
"-h","{SSHA}",
"-s","$pass";
$pass =
Wednesday, October 24, 2007
Install SWAT on Ubuntu
sudo apt-get install swat
apt-get install xinetd
then, sudo vi /etc/inetd.conf
and uncomment the line:
## swat stream tcp nowait.400 root /usr/sbin/tcpd \ /usr/sbin/swat
Then make an entry for Swat under xinetd with sudo vi /etc/xinetd.d/swat
And it should look like this: :901/
apt-get install xinetd
then, sudo vi /etc/inetd.conf
and uncomment the line:
#
Then make an entry for Swat under xinetd with sudo vi /etc/xinetd.d/swat
And it should look like this:
# description: SAMBA SWATYou might be able to access http://
service swat
{
disable = no
socket_type = stream
protocol = tcp
#should use a more limited user here
user = root
wait = no
server = /usr/sbin/swat
}
Then:
sudo dpkg-reconfigure xinetd
to restart with the new configuration.
Now the netstat -lt should echo something similar to this:Active Internet connections (only servers)Which indicates the swat service is running and listening to the correct 901 tcp port.
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:5666 *:* LISTEN
tcp 0 0 localhost:1026 *:* LISTEN
tcp 0 0 localhost:1027 *:* LISTEN
tcp 0 0 *:swat *:* LISTEN
tcp 0 0 localhost:mysql *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:10000 *:* LISTEN
tcp 0 0 *:1040 *:* LISTEN
tcp 0 0 *:munin *:* LISTEN
tcp 0 0 localhost:ipp *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp6 0 0 *:2080 *:* LISTEN
tcp6 0 0 *:www *:* LISTEN
tcp6 0 0 *:ssh *:* LISTEN
Monday, October 15, 2007
RIBS (Rsync Incremental Backup Script)
RIBS is an incremental backup system written in PHP which utilizes some common *nix programs (specifically rsync, ssh and cp). Incremental backups mean frequent backups can be done (i.e. hourly) with only around 2x the space of the full backup. Using rsync means that RIBS can act as both a backup script on a local machine, or as a script to backup several network hosts. It is designed to be highly configurable and highly informative to the system administrator. There is a high amount of error checking, and logging/email capabilities.
* cd ribs-x.x
* ./ribs.php example hourly
example is a part in Configuration part of ribs-x.x file. You can change this part and make your config.
* Download the latest version of RIBS here:
http://jcay.com/php/scripts-and-programs/server-management/ribs-rsync-incremental-backup-script.html
* tar -xzvf ribs-x.x.tar.gzhttp://jcay.com/php/scripts-and-programs/server-management/ribs-rsync-incremental-backup-script.html
* cd ribs-x.x
* ./ribs.php example hourly
example is a part in Configuration part of ribs-x.x file. You can change this part and make your config.
bad interpreter: No such file or directory
I get the following message when I try to run a simple test script. The same script runs on another machine very similar to my own.
./myfile: /bin/bash^M: bad interpreter: No such file or directory
The file does has execute rights.
In Windows, the end of a line is CRLF (Carriage-Return, Line-Feed). In Unix-like systems, it is just LF. So when you try to run that script, every line has an extra CR on the end.
The way to fix this is to use some sort of utility to fix that. You might use the utility dos2unix if you have it installed. You can install it by typing:
apt-get install tofrodos
./myfile: /bin/bash^M: bad interpreter: No such file or directory
The file does has execute rights.
In Windows, the end of a line is CRLF (Carriage-Return, Line-Feed). In Unix-like systems, it is just LF. So when you try to run that script, every line has an extra CR on the end.
The way to fix this is to use some sort of utility to fix that. You might use the utility dos2unix if you have it installed. You can install it by typing:
apt-get install tofrodos
Monday, October 8, 2007
Logging as “root” in Ubuntu
if one really wants to enable the GUI “root” login (not recommended, think again!), following command can be used:
gksu gdmsetup
A GUI opens. In the security tab, there is an option which can be used to allow local system administrator login. The option needs to be checked in order to allow the “root” login. I highly recommend you not to do so and if you are keen to do so, do not let it to remain that way and bring the system to its default state AS SOON AS POSSIBLE.
Friday, September 28, 2007
Build Icon for PNP in Nagios page
Run /pnp-latest/contrib/makeserviceextinfo.pl with nagios user,
this makes:
/usr/local/nagios/etc/pnp-extinfo.cfg
copy the above file into /usr/local/nagios/etc/objects/serviceextinfo.cfg
this makes:
/usr/local/nagios/etc/pnp-extinfo.cfg
copy the above file into /usr/local/nagios/etc/objects/serviceextinfo.cfg
Nagios 3-D Status Map
When I click the "3-D Status Map" link my browser tries to download and save the statuswrl.cgi file ?
A)This will happen if you do not have a VRML client/plugin installed for your web browser. Installing a VRML plugin should resolve this issue.
Download from here:
http://freewrl.sourceforge.net/download.html
and install it!!
A)This will happen if you do not have a VRML client/plugin installed for your web browser. Installing a VRML plugin should resolve this issue.
Download from here:
http://freewrl.sourceforge.net/download.html
and install it!!
Wednesday, September 26, 2007
Nagios Client for Windows
Download NSClient from:
http://nsclient.ready2run.nl/download.htm
then:
Copy pNSClient.exe, pdh.dll, psapi.dll and counters.defs in any directory on the machine you want to monitor. ie. (c:\nsclient).
Open a dos prompt in the installation directory
Run the following command : >pNSClient.exe /install
Type 'net start nsclient' on the command line or start the service 'Nagios Agent' in the services applet of the control panel.
The installation will create an entry for the service in the registry and create a new key to store parameters. The created key is the following:
HKEY_LOCAL_MACHINE\SOFTWARE\NSClient
Be careful of FIREWALL!!
http://nsclient.ready2run.nl/download.htm
then:
Copy pNSClient.exe, pdh.dll, psapi.dll and counters.defs in any directory on the machine you want to monitor. ie. (c:\nsclient).
Open a dos prompt in the installation directory
Run the following command : >pNSClient.exe /install
Type 'net start nsclient' on the command line or start the service 'Nagios Agent' in the services applet of the control panel.
The installation will create an entry for the service in the registry and create a new key to store parameters. The created key is the following:
HKEY_LOCAL_MACHINE\SOFTWARE\NSClient
Be careful of FIREWALL!!
Tuesday, September 25, 2007
An example for HYDRA!!
./hydra -C user.txt jost.connectaserver.de http-post-form "/test_check.php:login=^PASS^:access denied"
Comments:
./hydra -C (username and password file)
jost.connectaserver.de (Server name)
http-post-form (Service Type)
"1-/test_check.php:2-login=^PASS^:3-access denied"
1-the page on the server to GET or POST to
2-the POST/GET variables (taken from either the browser, or a proxy such as PAROS) with the varying usernames
and passwords in the "^USER^" and "^PASS^" placeholders
3-the string that it checks for an *invalid* login - any exception to this is counted as a success.
Comments:
./hydra -C (username and password file)
jost.connectaserver.de (Server name)
http-post-form (Service Type)
"1-/test_check.php:2-login=^PASS^:3-access denied"
1-the page on the server to GET or POST to
2-the POST/GET variables (taken from either the browser, or a proxy such as PAROS) with the varying usernames
and passwords in the "^USER^" and "^PASS^" placeholders
3-the string that it checks for an *invalid* login - any exception to this is counted as a success.
Installing SNMP
/usr/bin/ld: cannot find -lperl
Try adding a link with name libperl.so wich points to libperl.so.5.6.1in /usr/lib/
Subscribe to:
Posts (Atom)