admin 发布的文章

安装重装系统的前提组件:
Debian/Ubuntu:

apt-get install -y xz-utils openssl gawk file wget screen && screen -S os

RedHat/CentOS:

yum install -y xz openssl gawk file glibc-common wget screen && screen -S os

如果出现异常,请刷新Mirrors缓存或更换镜像源。

RedHat/CentOS:

yum makecache && yum update -y

Debian/Ubuntu:

apt update -y && apt dist-upgrade -y

DD 命令:

wget --no-check-certificate -O NewReinstall.sh https://git.io/newbetags && chmod a+x NewReinstall.sh && bash NewReinstall.sh

如为CN主机(部分主机商已不能使用),可能出现报错或不能下载脚本的问题,可执行以下命令开始安装.

wget --no-check-certificate -O NewReinstall.sh https://cdn.jsdelivr.net/gh/fcurrk/reinstall@master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

输入Y确认DD后主机自动获取IP,N则自行设置IP 输入N后会自动检测出主机现用IP,如果正确可以按Y确认使用,如不正确则按N自行按正确的输入。

41合1系统密码:
1、CentOS 7.7 (已关闭防火墙及SELinux,默认密码Pwd@CentOS)
2、CentOS 7 (默认密码cxthhhhh.com)
3、CentOS 7 (支持ARM64、UEFI,默认密码cxthhhhh.com)
4、CentOS 8 (默认密码cxthhhhh.com)
5、Rocky 8 (默认密码cxthhhhh.com)
6、Rocky 8 (支持UEFI,默认密码cxthhhhh.com)
7、Rocky 8 (支持ARM64、UEFI,默认密码cxthhhhh.com)
8、CentOS 9 (默认密码cxthhhhh.com)
9、CentOS 6 (官方源原版,默认密码Minijer.com)
10、Debian 11 (官方源原版,默认密码Minijer.com)
11、Debian 10 (官方源原版,默认密码Minijer.com)
12、Debian 9 (官方源原版,默认密码Minijer.com)
13、Debian 8 (官方源原版,默认密码Minijer.com)
14、Ubuntu 20.04 (官方源原版,默认密码Minijer.com)
15、Ubuntu 18.04 (官方源原版,默认密码Minijer.com)
16、Ubuntu 16.04 (官方源原版,默认密码Minijer.com)
17、Windows Server 2022 (默认密码cxthhhhh.com)
18、Windows Server 2022 (支持UEFI,默认密码cxthhhhh.com)
19、Windows Server 2019 (默认密码cxthhhhh.com)
20、Windows Server 2016 (默认密码cxthhhhh.com)
21、Windows Server 2012 (默认密码cxthhhhh.com)
22、Windows Server 2008 (默认密码cxthhhhh.com)
23、Windows Server 2003 (默认密码cxthhhhh.com)
24、Windows 10 LTSC (默认密码Teddysun.com)
25、Windows 10 LTSC (支持UEFI,默认密码Teddysun.com)
26、Windows 7 x86 Lite (默认密码nat.ee)
27、Windows 7 x86 Lite (阿里云专用,默认密码nat.ee)
28、Windows 7 x64 Lite (默认密码nat.ee)
29、Windows 7 x64 Lite (支持UEFI,默认密码nat.ee)
30、Windows 10 LTSC Lite (默认密码nat.ee)
31、Windows 10 LTSC Lite (阿里云专用,默认密码nat.ee)
32、Windows 10 LTSC Lite (支持UEFI,默认密码nat.ee)
33、Windows Server 2003 Lite (C盘默认10G,默认密码WinSrv2003x86-Chinese)
34、Windows Server 2008 Lite (默认密码nat.ee)
35、Windows Server 2008 Lite (支持UEFI,默认密码nat.ee)
36、Windows Server 2012 Lite (默认密码nat.ee)
37、Windows Server 2012 Lite (支持UEFI,默认密码nat.ee)
38、Windows Server 2016 Lite (默认密码nat.ee)
39、Windows Server 2016 Lite (支持UEFI,默认密码nat.ee)
40、Windows Server 2022 Lite (默认密码nat.ee)
41、Windows Server 2022 Lite (支持UEFI,默认密码nat.ee)
99、自定义镜像

  1. 更新软件仓库

    sudo apt update
    sudo apt upgrade

  2. 安装支持包 : Xorg, Xrdp, Xserver, Xfce4 and Mate Packages

    sudo apt-get install xorg
    sudo apt-get install xserver-xorg-core
    sudo apt-get install xorgxrdp

  3. 安装XFCE4桌面环境

    sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils

  4. 安装XRDP

    sudo apt install xrdp
    sudo systemctl status xrdp
    sudo systemctl restart xrdp

  5. 环境设置
    5.1 XFCE桌面配置
sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n xfce-session \n' /etc/xrdp/startwm.sh

5.2 在配置文件中,加入XFCE会话

echo xfce4-session > ~/.xsession

6 重启服务

sudo systemctl restart xrdp

运行sudo vncserver :1时提示is taken because of /tmp/.X1-lock 导致无法启动vnc1

根据提示知道大概知道是以前的临时文件还存在,因此删除掉就OK

执行 rm -f /tmp/.X1-lock

此时再次启动又会收到如下错误:
Warning: IDEACOM:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server IDEACOM:1
再次根据错误提示执行:

rm -f /tmp/.X11-unix/X1

再次尝试启动,发现成功了:

首先安装gnome终端

sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

sudo apt update

sudo apt -y install vnc4server

sudo apt install xfce4 xfce4-goodies -y

sudo apt install firefox

vncpasswd

到/root/.vnc/目录下,打开文件xstartup在最下面添加以下代码

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

最后启动vnc

sudo vncserver -geometry 1920x1080

别忘记在防火墙中开启5901端口
关闭vnc:vncserver -kill :1