May 25, 2017

How to Install Daemontools on FreeBSD

FreeBSD Logo

Daemontools is mainly used for controlling processes, and maintaining logfiles. Daemontools can start services and restart services if they die. All it needs is a directory with a run script that runs the service. Additionally you can save error messages to one or more logs.
This includes timestamps at each line and for each log and it can include or exclude lines matching specified patterns. Also it can automatically rotate logs to limit the amount of disk space used. For more information, please visit Daemontools.

[Read more...]

How to Get an Alert When Your Disk Is Full on Unix, Linux and BSD Systems

Administration Logo

Do you want to get an alert once your disk is full on Unix, Linux or BSD Systems? In this tutorial we will show you to set up a simple cron script which sends you an email once a specific disk limit is reached.
We use the df command which reports the file system disk space usage including the amount of disk space available.

[Read more...]

How to Measure the I/O Read and Disk Performance on FreeBSD

FreeBSD Logo

You want to measure the disk seeks and transfer performance under FreeBSD? With the command diskinfo you can generate simple benchmarks of your disks. This tool will show you basic information about the disk device and runs a simple performance test. Now you can measure the I/O read overhead of any disk or RAID storage.

[Read more...]

How to Recover the MySQL root Password

MySQL Logo

Forgot your MySQL root password? No problem, you just need to start MySQL with a flag to tell it to ignore any username and password restrictions which might be in place. Once that is done you can successfully recover the MySQL root password by setting a new password.

[Read more...]

How to Join Two CSV Files on Unix, Linux and BSD Systems

Administration Logo

Suppose you have two CSV files and want to join them to one CSV file. For this you need a tool to extract selected fields and combine them to a new file. The tool should also arrange the fields in a specific order. The command-line tool join can do exactly that. In this tutorial we will show you how to join two CSV files.

[Read more...]

How to Install Zabbix on FreeBSD

Zabbix Logo

Zabbix is a very useful tool for availability and performance monitoring. Alerting you by E-Mail, Jabber or SMS once a service is not reachable is one of the key features of Zabbix.

Here is a short list of some features available in Zabbix:

  • auto-discovery of servers and network devices
  • low-level discovery
  • distributed monitoring with centralized web administration
  • support for both polling and trapping mechanisms
  • agent-less monitoring
  • secure user authentication
  • flexible user permissions
  • web-based interface
  • flexible e-mail notification of predefined events
  • high-level (business) view of monitored resources
  • audit log

In this tutorial we show you how to get a Zabbix server, the Zabbix agents and the Zabbix frontend running on FreeBSD.

[Read more...]

How to Add a Second IP Address to an Existing Network Adapter on CentOS

CentOS Logo

In this tutorial we will show you the steps to add a second IP address on an already configured NIC. This is useful for various cases. For example we use this to split the requests to a production and development website. Proxy caching is an other scenario where you can use a second IP address.

[Read more...]

How to Find the Owner of an IP Address on Unix, Linux and BSD Systems

Administration Logo

Every IP address is registered to an ISP or organisation. On Unix, Linux and BSD systems you can check the WHOIS database entry with the whois command in your command-line interface. The WHOIS record holds the name, email address, phone and many more of the IP address owner.

[Read more...]

How to Prevent Users From Seeing Processes That run Under Another UID on FreeBSD

FreeBSD Logo

An important step to harden you FreeBSD system is to to disallow users to see processes that are being run under another UID. For this we need to set some kernel states to avoid others from fetching these information with commands like ps, top, sockstat and many more. This changes also applies to jailed systems.

[Read more...]

How to Install shred to Permanently Delete Files on FreeBSD

FreeBSD Logo

With the Unix command shred you can securely delete files and devices by overwriting the specified files repeatedly. Recovering them after shred has deleted the files and devices is extremely difficult and needs specialised hardware. The GNU Core Utilities holds the gshred command and can be installed from the FreeBSD ports tree.

[Read more...]