首页 技术 正文
技术 2022年11月10日
0 收藏 720 点赞 2,927 浏览 1004 个字

1、设定时区

rm -f /etc/localtime
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2、配置apt-get源

sed -i 's/us.archive/cn.archive/g' /etc/apt/sources.list
sed -i 's/security.ubuntu/cn.archive.ubuntu/g' /etc/apt/sources.list

3、修改主机名

vim /etc/hostname

4、安装软件包

apt-get install lrzsz ntpdate

5、开启root登录

Ubuntu 14.04

sed -i 's/without-password/yes/g' /etc/ssh/sshd_config

Ubuntu 16.04

sed -i 's/prohibit-password/yes/g' /etc/ssh/sshd_config

重启服务

service ssh restart

6、踢出终端tty用户

pkill -kill -t tty

7、删除普通用户

8、时间同步

echo "$((RANDOM%60)) $((RANDOM%24)) * * * /usr/sbin/ntpdate time1.aliyun.com" >> /etc/crontab

9、安装监控系统

apt-get install zabbix-agent

10、配置pip国内源

mkdir .pip
cat >> .pip/pip.conf <<EOF
[global]
trusted-host = pypi.douban.com
index-url = http://pypi.douban.com/simple
EOF

附:配置IP

修改文件/etc/network/interfaces

auto eth0
iface eth0 inet static
address 10.0.0.100
netmask 255.0.0.0
gateway 10.0.0.1
dns-nameservers 114.114.114.114
ssserver -p 443 -k wzlinux -m aes-256-cfb --log-file /tmp/ss.log --worker 2 -d start
python server.py -p 443 -k password -m aes-256-cfb -O auth_sha1_v4 -o http_simple
#说明:-p 端口 -k 密码 -m 加密方式 -O 协议插件 -o 混淆插件
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,996
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,510
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,353
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,137
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,770
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,848