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.

Solve freebsd-update s3_cbc.c No such file or directory

If during a freebsd-update you get:

The following files will be added as part of updating to 9.1-RELEASE-p4:
/usr/src/crypto/openssl/ssl/s3_cbc.c
Installing updates...install: ///usr/src/crypto/openssl/ssl/s3_cbc.c: No such file or directory
done.

Just make the missing directory and run the command again:


[root@pr0nserv ~]# mkdir -p /usr/src/crypto/openssl/ssl
[root@pr0nserv ~]# freebsd-update fetch install
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 9.1-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be added as part of updating to 9.1-RELEASE-p4:
/usr/src/crypto/openssl/ssl/s3_cbc.c
Installing updates... done.
[root@pr0nserv ~]#