 |
Dependency package: cifs-utils
Mounting an SMB/CIFS share on Linux indirectly calls the mount.cifs utility, that is included within the cifs-utils package.
mount.cifs accepts various options passed a... |
|
 |
Problem: By default Centos 7 assigns a clumsy device name to the Ethernet interface
Resolution: Assign a different device name to the interface
Update: June 2018
CentOS 7.5 build 1804. A further fi... |
|
 |
Download Centos 7 netinstall iso
Install Centos selecting minimal packages
Add useful packages
> yum -y install nano net-utils
Add epel repo
> yum install epel-release
Update Centos
|
|
 |
Default console font too small
The default console font used by CentOS may be uncomfortably small when viewed on a modern HD screen.
To increase the font size of sytemd based Linux distributions use t... |
|
 |
Install Webmin on Centos 7
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
yum -y install nano
wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc... |
|
 |
Problem: complete install of webmin suggested perl modules
Install perl-modules and package dependencies command: yum install gcc -y  ... |
|
 |
The Garmin Connecct IQ Simulator shipped with Version 3.1 of the Connect IQ SDK may fail to launch on a vanilla install of CentOS 7. The simulator has been compiled with linked dependence to sha... |
|
 |
To list files with numeric file permissions use the following command
stat -c "%a %n"
|
|
 |
find <path_to_search> -name "filespec" -exec rm -rf {} \; e.g remove all files and folders names temp from home folder find ~/ -name "temp" -exec rm -rf {} \; remove only files prefixed ._ fi... |
|
 |
Basic steps for installing FastCGI support on Apache2 under Centos 5 yum install httpd-devel wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz tar xzf mod_fastcgi-current.tar.gz cd mod_fast... |
|
 |
Change ownership of a file chown user:group filespec Change ownership of directory and contents chown -R user:group filespec Change ownership of a symlink chown -h user:group symlink |
|
 |
rsync is a command line file synchronisation application, which is available for
Natively for almost all Linux distributions
As a statically linked binary for ESXi server
Most versions of Windows by w... |
|
 |
The default Linux video mode is 640x480, 8 bit, which produces a text console of 80 x 25 characters The text console dimensions may be increased by setting the video mode used by the kernel during boo... |
|
 |
Problem: VMWare virtual interfaces can not be captured directly using WiresharkSolution: The vmnet-sniff command is capable or writing libpcap files which can be read by Wireshark. To capture in realt... |
|
 |
A Ram disk is can be useful for many purposes.
In particular when creating a root fs during the building of a boot image.
To create a 4MB Ext2 Ram disk
1. Check that /dev/ram0 exists, or cre... |
|
 |
When using parted to create disk partions you may recieve the following warning message
Warning: The resulting partition is not properly aligned for best performance
Th parameters required to align ... |
|
 |
Bind9 / named logging skeleton template.
Various channel definitions which can be C&Pd to named.conf at the global level. On redhat the log files should be created before starting bind wit... |
|
 |
General
FirewallD is the zone based netfilter configuration tool shipped with CentOS / RHEL 7. Various standard service definitions are distributed with FirewallD, in the lib/firewalld/services... |
|
 |
Postfix error on Debian 8 Jessie
Jun 16 13:45:44 mail01 postfix/postscreen[6086]: close database /var/lib/postfix/postscreen_cache.db: No such file or directory (possible Berkeley DB bug)
&n... |
|
 |
Problem: report the number of errors produced by individual clients
This may be useful for tracking down attacks.
cat error_log | awk '{print $11}' | awk -F: '{print $1}' | sort | uniq -c
&n... |
|
 |
Avahi mdns is similar to Apple Bonjour and allows hosts to be referenced using the hostname on the the local network (LAN), without adding a DNS record.
#Install the avahi mdns, start the service and ... |
|