clamd -c /etc/clamd.d/scan.conf
Monthly Archives: August 2018
ERROR: Please define server type (local and/or TCP) clamav
Uncomment TCPSocket
browsh
A fully interactive, realtime, and modern text-based browser rendered to TTYs and browsers
phpmyadmin allow user drop database
vi config.default.php
$cfg[‘AllowUserDropDatabase’] = false;
linux check original / extracted size
zcat file.tar.gz | wc –bytes
186997248
byte converter:
echo 186997248 | awk ‘{ i = $1 / 1024 / 1024 ; print i “MB” }’
dd clone to remote server
dd if=/dev/device | gzip -c --fast | ssh root@server 'dd of=/remote/server/device.img.gz'
roundcube Server Error / internal Server Error
cat /var/log/httpd/error_log | grep roundcube
[:error] [pid 129801:tid 140253446776576] (12)Cannot allocate memory: [client xx.xxx.xx.xx:46254] couldn’t create child process: /usr/local/suphp/sbin/suphp for /var/www/html/roundcube/index.php, referer: http://blabla.server.com/roundcube/?_task=mail&_mbox=INBOX
vi /usr/local/lib/php.ini
memory_limit = 512M
service httpd restart
linux rename file by inode
ls -i
find . -inum 111111 -exec mv {} some_name \;
ssh set huge timeout
vi /etc/ssh/ssh_config
ServerAliveInterval 60
linux one line ftp server
pip install pyftpdlib
fdisk find block size
blockdev --getbsz /dev/sda1
4096
touch argument list too long
getconf ARG_MAX
fuse unmount
fusermount -u mountpoint
access KVM image data from raw image
dd if=/dev/vg_kvm/vsv999-03ly-o5sq7ktzgnbva56l of=/backup/data.hdd bs=512 conv=noerror,sync
qemu-img info /backup/data.hdd
image: /backup/data.hdd
file format: raw
virtual size: 50G (53687091200 bytes)
disk size: 50G
guestmount -a /backup/data.hdd -i --ro /mnt
ls -la /mnt
openvz migrate live
vzmigrate -t -v --live -s -c --remove-area no --ssh-mux 192.168.0.101 1000