Webmin error

To resolve this error in the LDAP Users and Groups session:
Can't locate Net/LDAP.pm in @INC (you may need to install the Net::LDAP module) (@INC contains: /usr/local/lib/webmin /usr/local/lib/perl5/site_perl/mach/5.26 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.26/mach /usr/local/lib/perl5/5.26 /usr/local/lib/webmin/ . ..) at (eval 147) line 1.
BEGIN failed--compilation aborted at (eval 147) line 1.

Install ldap perl module:

pkg install p5-perl-ldap

Rainloop reset admin password

Edit the file
data/_data_/_default_/configs/application.ini
inside the rainloop directory.

Set the password to “12345”
; Login and password for web admin panel
admin_login = "admin005"
admin_password = "12345"

Reach your rainloop web page adding
?admin
at the end of the url

When you’re in, change the password to the desired one.

Install Symon / Symux + Syweb on FreeBSD 10.3

NB: this is an old article of mine, revised.

Symon is a useful tool that collect data like cpu/bandwidth/whatever usage and display it with nice graphs, like this for example:

symon_example
First of all, install symon! Since it haven’t configuration options you can use pkg install symon or go to /usr/ports/sysutils/symon and run make install clean.
After a succesful installation, you have to copy your default symon.conf and symux.conf to etc/ directory.
If you have installed symon with the default prefix (/usr/local) you have simply to do
cp /usr/local/share/examples/symon/sym* /usr/local/etc/
Now edit the configuration files, symon.conf and symux.conf.

Leggi tutto “Install Symon / Symux + Syweb on FreeBSD 10.3”

mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES

What to do when:

mysqldump: Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema' when using LOCK TABLES

Add “–single-transaction” to your mysqldump string:

$MYSQLDUMP --single-transaction -u $MUSER -h $MHOST -p"$MPASS" $db | $GZIP -9 > $FILE

$MYSQLDUMP is the path of mysqldump executable.