To find files created 1, 2, or 3 minutes ago use -3
find . -cmin -3
Syntax:
find . -cmin +3
To find files created 1, 2, or 3 minutes ago use -3
find . -cmin -3
Syntax:
find . -cmin +3
lokkit –enabled
echo ‘n’ > /sys/devices/system/cpu/cpu1/online
re enable:
echo ‘y’ > /sys/devices/system/cpu/cpu1/online
nproc
lscpu which is same as less /proc/cpuinfo
vi /etc/ld.so.conf.d/mylibs.conf
/my_custom_path/to_libs
ldconfig
to check if new path added:
ldconfig -v | grep /my_custom_path/to_libs
vi /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
wget http://www.webmin.com/jcameron-key.asc
rpm –import jcameron-key.asc
yum install SSLeay perl-Net-SSLeay OpenSSL perl-Crypt-SSLeay
yum install webmin
vi /etc/webmin/miniserv.conf
ssl=1
service webmin start
If you didn’t enable SSL, you can get:
SSL Error On First Access of Webmin on New Install – (Error code: ssl_error_rx_record_too_long)
Timings measure the time the memory chip delays doing something internally. Here is an example. Consider the most famous parameter, which is called CAS Latency (or CL or “access time”) that tells us how many clock cycles the memory module will delay in returning data requested by the CPU. A memory module with a CL 9 will delay nine clock cycles to deliver a requested data, whereas a memory module with a CL 7 will delay seven clock cycles to deliver it. While both modules may run at the same clock rate, the second one will be faster, as it will deliver data sooner than the first one. This issue is known as “latency.”
lshw -C memory
lshw -C memory | grep clock
dhclient -r
dhclient
or
ifrenew
/etc/init.d/apparmor stop /etc/init.d/apparmor teardown update-rc.d -f apparmor remove apt-get remove apparmor apparmor-utils
It works on Ubuntu 12.04/12.10
Memory overcommit can be disabled by vm.memory_overcommit=2
0 is the default mode, where kernel heuristically determines the allocation by calculating the free memory compared to the allocation request being made. And setting it to 1 enables the wizardry mode, where kernel always advertises that it has enough free memory for any allocation. Setting to 2, means that processes can only allocate upto (RAM+swap) and will start getting allocation failure or OOM messages when it goes beyond that amount.
Is it safe to do so, no. I haven’t seen any proper use case where disabling memory overcommit actually helped, unless you are 100% certain of the workload and hardware capacity. In case you are interested, install kernel-docs
package and go to /Documentation/sysctl/vm.txt
to read more.
If you set overcommit=2 then you don’t have to worry about overcommit_ratio.
echo 0/1/2 > /proc/sys/vm/overcommit_memory
This will not survive a reboot. For persistence, put this in /etc/sysctl.conf file
vm.overcommit_memory=X
and run sysctl -p
. No need to reboot
dpkg --get-selections | grep ssh
dpkg -L php5-gd
List all installed packages:
dpkg -l
update-alternatives –config editor
disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
allow_url_fopen=Off allow_url_include=Off
wget http://almashosting.com/dl/imap.sh
sh imap.sh
And now wait for complete;
Then run following command:
cd /usr/local/directadmin/custombuild
Then run:
mkdir -p custom/ap2
Then this:
cp -p configure/ap2/configure.php5 custom/ap2
And then run following and the last command:
./build php n
Bash script output:
#!/bin/sh
# Script for PHP-IMAP installation. 0.1b
# Written by Martynas Bendorius (smtalk)
CWD=`pwd`
OS=`uname`
#Is it a 64-bit OS?
B64=0
B64COUNT=`uname -m | grep -c 64`
if [ “$B64COUNT” -eq 1 ]; then
B64=1
LD_LIBRARY_PATH=/lib64:/usr/lib64:/usr/local/lib64:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
fi
if [ ! -e /usr/include/krb5.h ] && [ -e /etc/redhat-release ]; then
echo “Installing krb5-devel”
yum -y install krb5-devel
fi
VERSION=2006k
URL=”ftp://ftp.cac.washington.edu/imap/old/imap-${VERSION}.tar.Z”
FILENAME=imap-${VERSION}
TARBALL=${FILENAME}.tar.Z
echo “Downloading ${TARBALL}…”
wget -O ${TARBALL} ${URL}
tar xzf ${TARBALL}
cd ${FILENAME}
echo “Installing ${FILENAME}…”
if [ ${OS} = “FreeBSD” ]; then
if [ ${B64} -eq 0 ]; then
make bsf
else
make bsf EXTRACFLAGS=-fPIC
fi
else
perl -pi -e ‘s#SSLDIR=/usr/local/ssl#SSLDIR=/etc/pki/tls#’ src/osdep/unix/Makefile
perl -pi -e ‘s#SSLINCLUDE=\$\(SSLDIR\)/include#SSLINCLUDE=/usr/include/openssl#’ src/osdep/unix/Makefile
perl -pi -e ‘s#SSLLIB=\$\(SSLDIR\)/lib#SSLLIB=/usr/lib/openssl#’ src/osdep/unix/Makefile
if [ ${B64} -eq 0 ]; then
make slx
else
make slx EXTRACFLAGS=-fPIC
fi
fi
echo “Copying files to /usr/local/php-imap”
mkdir -p /usr/local/php-imap/include
mkdir -p /usr/local/php-imap/lib
chmod -R 077 /usr/local/php-imap
cp -f c-client/*.h /usr/local/php-imap/include/
cp -f c-client/*.c /usr/local/php-imap/lib/
cp -f c-client/c-client.a /usr/local/php-imap/lib/libc-client.a
cd ..
rm -rf ${FILENAME}
exit 0;