#timedatectl set-timezone Asia/Shanghai 關閉SELinux vi /etc/sysconfig/selinux #SELINUX=enforcing SELINUX=disabled setenforce 0 getenforce #yum install - ...
#timedatectl set-timezone Asia/Shanghai 關閉SELinux vi /etc/sysconfig/selinux #SELINUX=enforcing SELINUX=disabled setenforce 0 getenforce #yum install -y epel-release perl gcc gcc-c++ autoconf automake libtool m4 #yum -y install bzip2-devel harfbuzz-devel freetype-devel ncurses-devel libtermcap-devel bison-devel libpng-devel libjpeg-devel gd-devel curl-devel enchant-devel gmp-devel libc-client-devel openldap-devel libmcrypt-devel readline-devel libedit-devel recode-devel libtidy-devel expat-devel openssl-devel zlib-devel libxml2-devel libmcrypt-devel libtidy-devel libxslt-devel centos7 vi /etc/yum/pluginconf.d/langpacks.conf enable=1改為enable=0 yum groupinstall "X Window System" yum groupinstall "GNOME Desktop" systemctl set-default graphical.target #systemctl set-default multi-user.target vi /etc/ssh/sshd_config PermitRootLogin no AllowUsers user UseDNS no vi /etc/hosts.deny sshd:all:deny vi /etc/hosts.allow sshd:127.0.0.1:allow
How to install mpeg-4 aac decoder for CentOS 7 Linux MPEG-4-AAC decoder and H.264 decoder # yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm # yum -y install libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld libde265 x265 # yum -y install gstreamer1-libav # yum -y install gstreamer1-vaapi
#yum install ffmpeg
centos7 安裝simhei.ttf字體 cp複製字體目錄到/usr/share/fonts/win/simhei.ttf cd /usr/share/fonts/win/ mkfontscale mkfontdir fc-cache (更新字體緩存)
VPN setup
yum -y install epel-release ppp iptables-services yum -y install pptpd systemctl start pptpd.service systemctl enable pptpd.service systemctl start iptables systemctl enable iptables vi /etc/pptpd.conf cat /etc/ppp/options.pptpd vi /etc/ppp/chap-secrets vi /etc/sysctl.conf net.ipv4.ip_forward = 1 sysctl -p /sbin/iptables -F /sbin/iptables -X /sbin/iptables -Z iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE /sbin/service iptables save /sbin/iptables -L
yum install -y perl gcc gcc-c++ autoconf automake libtool m4 make git
git clone https://github.com/rofl0r/proxychains-ng.git
cd proxychains-ng/
./configure
make && make install
cp src/proxychains.conf /etc/
vi /etc/proxychains.conf
apache配置https生成證書
cd /usr/local/apache2.2.21/conf openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt