# vi /etc/sysconfig/named OPTIONS="-4" systemctl restart named-chroot
Data recovery : TestDisk
http://www.cgsecurity.org/ [root@centos7 ~]# dumpe2fs /dev/mapper/vg_centos6-lv_root | grep superblock dumpe2fs 1.42.9 (28-Dec-2013) Primary superblock at 0, Group descriptors at 1-4 Backup superblock at 32768, Group descriptors at 32769-32772 Backup superblock at 98304, Group descriptors at 98305-98308 Backup superblock at 163840, Group descriptors at 163841-163844 Backup superblock at 229376, Group descriptors at […]
centos7 : epel-release, libnss-mysql hint
# yum install epel-release # yum install libnss-mysql vi /etc/libnss-mysql-root.cfg ------------------------------------ username nss-root password passwd ------------------------------------ vi /etc/libnss-mysql.cfg ------------------------------------ username nss-user password passwd ------------------------------------ vi /etc/nsswitch.conf ------------------------------------ # passwd: db files # shadow: db files # group: db files passwd: files sss […]
CentOS 7 : mod_bw
yum install http://repo.unmanarc.com/CentOS/7/RPMS/x86_64/mod_bw-0.92-2.el7.centos.x86_64.rpm rpm -ql mod_bw sed -i 's@extramodules/mod_bw.so@modules/mod_bw.so@g' /etc/httpd/conf.d/mod_bw.conf systemctl restart httpd originated http://bitbull.ch/notes/post/bandwith-limitation-with-apache-on-centos-7/
How to remove sound from mov on Mac OS : ffmpeg
$ brew install ffmpeg --with-faac $ /usr/local/Cellar/ffmpeg/2.6.2/bin/ffmpeg -i input.mov -vcodec copy -an output.mov
centos7 : make mod_caucho.so
# cd /usr/local/src/resin-pro-4.0.44.src/ # ./configure # cd modules/c/src/ # make for dir in common resin_os resin resinssl; do (cd $dir; make); done make[1]: Entering directory `/usr/local/src/resin-pro-4.0.44.src/modules/c/src/common' gcc -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -pthread -fPIC -fno-omit-frame-pointer -O2 -DHAS_SOCK_TIMEOUT -DHAS_SENDFILE -DHAS_SPLICE -DPOLL -DHAS_JVMTI -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -lrt -pthread -DSHM stream.c .... […]
centos7 : Bandwith Limitation mod_bw
yum install http://repo.unmanarc.com/CentOS/7/RPMS/x86_64/mod_bw-0.92-2.el7.centos.x86_64.rpm rpm -ql mod_bw systemctl restart httpd
centos 7 : set hostname Hint
hostnamectl set-hostname myhostName hostname
centos 7 : xrdp install Hint
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm # rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm # vi /etc/yum.repos.d/xrdp.repo [xrdp] name=xrdp baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/ enabled=1 gpgcheck=0 # yum -y install xrdp tigervnc-server # systemctl start xrdp.service # netstat -antup | grep xrdp # systemctl enable xrdp.service