一、精简版win7(4核8G内存)
镜像:PRO7SP1_X64_ZH-CN_SM.iso 据说是俄罗斯大神的优化的
1、新建一个名为yw的用户,设置“登录时需要密码”
2、用“纯净版小马永久激活工具_KMS8_v3.1_最终官方珍藏版资源分享”激活系统
3、挂载8.2共享出来的10T硬盘,安装必要的软件
打开“计算机”,选“映射网络驱动器”,输入地址\\192.168.8.2\10t,选上“登录时重新连接”
4、开启远程桌面
A、在搜索框输入services.msc 命令,回车打开“服务”窗口,把Remote Desktop相关的三条的“启动类型”全部设置成“自动启动”
B、开始-运行-gpedit.msc-计算机配置----->管理模板----->网络----->网络连接----->Windows防火墙----->标准配置文件----->Windows防火墙允许入站远程桌面例外更改为启用即可。
C、依次点击:计算机——右键——属性——远程设置——远程,选中“允许允许任意版本远程桌面的计算机连接”,然后点击“选择用户”,如下:
如果显示你需要的用户已经有访问权,点击“确定”即可。
否则,点击“添加”,在文本框中输入用户名,然后点击“检查名称”,如果用户名输错则会提示“找不到名称”,正确则无提示,然后依次点击确定——确定——确定。
D、依次点击网络——属性——windows防火墙——允许程序通过Windows防火墙通信,打开如下窗口:
先点击“更改设置”,使下面内容变为可编辑状态,找到“远程桌面”,勾选中前面的选择框,和对应的专用、公用选择框,然后确定。
运行CMD,输入ipconfig命令找到本机ipv4地址
在另一台电脑上运行mstsc程序即可远程连接
二、Linux Mint(2核4G内存)
下载地址:
1、安装过程中设置一个名为yw的用户,设置“登录时需要密码”
2、sudo passwd root #设置root密码并启用root账号
3、输入su进入root用户状态
4、安装并启用SSH
apt install ssh&&apt install openssh-server&&apt install pluma #安装SSH工具及pluma文本编辑器
sudo systemctl start ssh.service #启动SSH服务
nano /etc/ssh/sshd_config #编辑sshd_config文件
把“#PermitRootLogin prohibit-password”改成“PermitRootLogin yes”
把“#PasswordAuthentication yes”改成“PasswordAuthentication yes”
service sshd restart #重启SSH服务
5、安装Xrdp远程桌面
apt install xrdp tigervnc-standalone-server #安装 XRDP 和 TigerVNC 服务器
systemctl start xrdp #启动XRDP服务
systemctl enable xrdp #把XRDP加入开机启动
sudo systemctl status xrdp #查看支行状态,出现绿色表示正常
dpkg-reconfigure xserver-xorg-legacy #选“任何用户”
vncconfig -nowin& #开启跨操作系统复制粘贴
reboot #重启系统生效
6、安装FinalShell SSH工具
一键安装脚本
rm -f finalshell_install_linux.sh
wget www.hostbuf.com/downloads/finalshell_install_linux.sh
chmod +x finalshell_install_linux.sh
./finalshell_install_linux.sh
7、挂载nfs共享硬盘(东芝的10T硬盘)
apt install nfs-kernel-server nfs-common #安装nfs相关软件
sudo mkdir /var/10T-dz #本地新建一个/var/10T-dz文件夹,文件夹名字随便取
sudo mount -t nfs 192.168.8.2:/ywd /var/10T-dz #把8.2上面的nfs共享文件夹ywd挂载到本机/var/10T-dz文件夹
编辑/etc/fstab文件,在文件最下面加上下面两局话,把nfs挂载添加到开机启动
# <file system> <dir> <type> <options> <dump> <pass> 192.168.8.2:/ywd /var/10T-dz nfs defaults 0 0
安装搜狗输入法linux版:https://shurufa.sogou.com/linux
安装fsearch搜索工具:https://software.opensuse.org//download.html?project=home%3Acboxdoerfer&package=fsearch#manualDebian
安装fsearch时可能缺少libicu依赖,到这里http://ftp.de.debian.org/debian/pool/main/i/icu/下载对应的文件安装
如果要让虚拟机输出声音,中能用非root账号登录
三、debian(1核1G内存,无桌面服务器系统,名字:debian-0)
安装这个也可以直接DD:
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 12345678 -port 22 -a --mirror 'http://mirrors.tuna.tsinghua.edu.cn/debian/'
端口22,密码12345678
1、软件安装镜像选择“网络”镜像(清华源)
2、选择web server+SSH server+标准系统工具
3、换源(换清华源)
cp /etc/apt/sources.list /etc/apt/sources.list_bak #备份原有源文件
方法一:纯命令方式(整体复制、整体粘贴,不要变成一行)
cat > /etc/apt/sources.list << EOF
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
EOF
4、安装必要软件
apt install -y sudo -y wget -y curl -y fuse -y mtr -y socat -y vim -y zip -y unzip #批量安装常用软件命令,注意-y一定写在软件名之前
5、开通root用户SSH登录权限
方法一:vi /etc/ssh/sshd_config #编辑sshd_config文件
在文件最下面加上下面两句
PermitRootLogin yes
PasswordAuthentication yes
按i进入编辑,把上面两句复制粘贴进去,按esc结束编辑,输入“:wp”保存并退出,systemctl reboot重启系统
6、让reboot命令生效
whereis reboot #找到并记住reboot的文件路径
找到/etc/profile 这个配置文件后,进入文件改写
nano /etc/profile
在文件最下方加入下面这句话
export PATH=$PATH:/usr/sbin
export PATH=$PATH:xxx(xxx是你的reboot文件的目录路径)
比如上面图片中我的reboot文件路径是/usr/sbin
source /etc/profile #重新加载使修改生效
换做shutdown也类似
whereis shutdown(找到shutdown的文件路径)
7、全部安装完毕之后关机,删除安装ISO文件(SATA CDROM)
8、克隆系统,后面有什么东西要基于debian服务器版本就把debian-0克隆一份。
四、casaos(2核4G内存,来自debian-0的克隆)
debian-0克隆过来后,在关机状态下把CPU核心改成2,内存改成4G。
wget -qO- https://get.casaos.io | bash
内存可以适当调大一点
五、安装openwrt软路由固件
新建虚拟系统的时候,选择“导入现有磁盘映像”,再选择openwrt软路由固件的img文件即可