myisamchk
The myisamchk
utility comes with a standard MySQL server installation,
and can check, repair and optimize MyISAM tables faster than the CHECK
TABLE
, REPAIR TABLE
and OPTIMIZE TABLE
SQL commands.
See also
Bind Samba server to specific IP
By default, a Samba server will listen for connections on all the interfaces of the host. This can be verified by:
# netstat -tulpn | egrep "samba|smbd|nmbd|winbind"
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 30352/smbd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 30352/smbd
tcp 0 0 :::139 :::* LISTEN 30352/smbd
tcp 0 0 :::445 :::* LISTEN 30352/smbd
To bind the server to a specific IP or interface, add the following
lines to the [global]
section of Samba's configuration:
bind interfaces only = yes
interfaces = lo eth0
That will make the server listen to connections only to lo
and eth0
.
The value of the interfaces
parameter, can also be an IP, like:
interfaces = 10.1.2.3
For further information, see the man
page for smb.conf
.
See also
- The Samba port usage
article in the Samba Wiki explains a bit more on why it might be
necessary to have the server listening on the
lo
interface.
PepperMint OS
PepperMint OS is a Linux distribution, based on Ubuntu and running the LXDE desktop by default.
See also
Installation of syslog-ng on CentOS 6
- Enable EPEL
- yum install -y syslog-ng
- Configure /etc/syslog-ng/syslog-ng.conf
chkconfig syslog-ng on
chkconfig rsyslog off
service rsyslog stop
service syslog-ng start
/etc/shells
The /etc/shells
file is a list of valid shells on the system. Example from an Ubuntu 12.10 Desktop system:
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/screen
Example from a CentOS 6 minimal server:
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash