最近少用CentOS6了,存档记录
bt宝塔 ss ssr vpnserver softether bbr ssh vnc xfce

# 重装纯净系统 CentOS 6.8 64位
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh; 
bash InstallNET.sh -c 6.8 -v 64 -a
passwd;

-

# bt 宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh; 
cd /www/server/panel && python tools.pyc panel YourPWD; cd ~;

-

# ssr https://teddysun.com/486.html 已经改用gost了
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh; 
chmod +x shadowsocks-all.sh; ./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

-

# vpnserver softether终于更新了,安装顺利。安装完后用win版服务管理器更方便。
yum -y install gcc zlib-devel openssl-devel readline-devel ncurses-devel; 
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.28-9669-beta/softether-vpnserver-v4.28-9669-beta-2018.09.11-linux-x64-64bit.tar.gz; 
tar -zxvf softether-vpnserver-v4.28-9669-beta-2018.09.11-linux-x64-64bit.tar.gz; 
cd vpnserver; ./.install.sh; ./vpnserver start

-

# bbr https://teddysun.com/489.html
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
uname -r; 
sysctl net.ipv4.tcp_available_congestion_control; 
sysctl net.ipv4.tcp_congestion_control; 
sysctl net.core.default_qdisc; 
lsmod | grep bbr

-

# SSH端口到8022,减少暴力破解攻击
echo 'Port 8022' >> /etc/ssh/sshd_config; 
/etc/init.d/sshd restart;

-

# vnc xfce http://www.laozuo.org/2912.html 注意防火墙,可用宝塔bt开放端口5901
yum -y install nano; 
nano /etc/sysconfig/network; 
yum -y update; 
yum -y install tigervnc tigervnc-server; 
wget https://download.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm; 
rpm -ivh epel-release-6-8.noarch.rpm; 
yum search xfce; 
yum groupinfo xfce; 
yum -y groupinstall xfce; 
yum -y install firefox; 
cd ~; 
wget https://swds.tk/py/sh/vnc-vg.txt -O vg.sh; 
chmod +x vg.sh; 
vncserver; 
wget https://swds.tk/py/sh/vnc-xstartup.txt -O .vnc/xstartup; chmod +x ~/.vnc/xstartup; 
echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers; 
echo 'VNCSERVERARGS[1]="-geometry 1024x720"' >> /etc/sysconfig/vncservers; 
service vncserver restart; 
chkconfig vncserver on; 

-

vi /etc/sysconfig/network-scripts/ifcfg-eth0; service network restart
> DEVICE=eth0 
> BOOTPROTO=static 
> ONBOOT=yes 
> IPADDR=64.137.215.180
> NETMASK=255.255.255.0 
> GATEWAY=64.137.215.1 
> IPADDR2=64.137.193.132
> NETMASK2=255.255.255.0 
> GATEWAY2=64.137.215.1 
> DNS1=8.8.8.8 
> DNS2=8.8.4.4

标签: none

添加新评论