[33m[1mPlease input your 8-character VNC password:(B[0m
Please note that VNC password is NOT needed for browser access.
mkdir: cannot create directory ‘/etc/guacamole/’: File exists
[32m[1mGuacamole successfully configured!(B[0m
Starting to install desktop, browser, and VNC server...
[33m[1mPlease note that if you are asked to configure LightDM during this step, simply press Enter.(B[0m
Press Enter to continue.
Reading package lists...
Building dependency tree...
Reading state information...
tigervnc-standalone-server is already the newest version (1.7.0+dfsg-8ubuntu2).
xfce4 is already the newest version (4.12.4).
xfce4-goodies is already the newest version (4.12.4).
firefox is already the newest version (79.0+build1-0ubuntu0.18.04.1).
The following package was automatically installed and is no longer required:
linux-modules-4.15.0-29-generic
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
[32m[1mDesktop, browser, and VNC server successfully installed.(B[0m
Starting to configure VNC server...
mkdir: cannot create directory ‘/root/.vnc’: File exists
spawn /usr/bin/vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
New 'localhost.localdomain:2 (root)' desktop at :2 on machine localhost.localdomain
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:2.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :2 to connect to the VNC server.
Killing Xtigervnc process ID 24324... success!
Warning: The unit file, source configuration file or drop-ins of vncserver@1.service changed on disk. Run 'systemctl daemon-reload' to reload units.
/usr/bin/vncconfig: unable to open display ":1"
[32m[1mVNC and desktop successfully configured!(B[0m
[33m[1mSetting up Nginx reverse proxy...(B[0m
Reading package lists...
Building dependency tree...
Reading state information...
python3-certbot-nginx is already the newest version (0.23.0-1).
nginx is already the newest version (1.14.0-0ubuntu1.7).
certbot is already the newest version (0.27.0-1~ubuntu18.04.1).
The following package was automatically installed and is no longer required:
linux-modules-4.15.0-29-generic
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
[32m[1mNginx successfully installed!(B[0m
Please tell me your domain name (e.g., desktop.qing.su):
nginx.service is not active, cannot reload.
Would you like to install a free Let's Encrypt certificate for domain name desktop.oldzhg.com? [Y/N]
[33m[1mPlease point your domain name to this server IP BEFORE continuing!(B[0m
Type Y if you are sure that your domain is now pointing to this server IP.
Please input an e-mail address:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/desktop.oldzhg.com.conf)
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/default
nginx: [warn] conflicting server name "desktop.oldzhg.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "desktop.oldzhg.com" on [::]:80, ignored
Enhancement Strict-Transport-Security was already set.
Redirecting all traffic on port 80 to ssl in /etc/nginx/conf.d/guacamole.conf
nginx: [warn] conflicting server name "desktop.oldzhg.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "desktop.oldzhg.com" on [::]:80, ignored
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://desktop.oldzhg.com
第一次安装域名输错了,就开始重新装,第二次装完后打开是nginx的首页,用ip加8080端口访问是tomcat的首页,添加/guacamole路径的话就是404