Har-Kuun / OneClickDesktop

A one-click script that installs a remote desktop environment on a Linux server with browser/RDP/VNC access.
701 stars 233 forks source link

安装完成后访问不到 #10

Closed oldzhg closed 4 years ago

oldzhg commented 4 years ago

第一次安装域名输错了,就开始重新装,第二次装完后打开是nginx的首页,用ip加8080端口访问是tomcat的首页,添加/guacamole路径的话就是404

Please input your 8-character VNC password:(B
Please note that VNC password is NOT needed for browser access.

mkdir: cannot create directory ‘/etc/guacamole/’: File exists
Guacamole successfully configured!(B

Starting to install desktop, browser, and VNC server...
Please note that if you are asked to configure LightDM during this step, simply press Enter.(B

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.
Desktop, browser, and VNC server successfully installed.(B
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"

VNC and desktop successfully configured!(B

Setting up Nginx reverse proxy...(B
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.
Nginx successfully installed!(B

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]
Please point your domain name to this server IP BEFORE continuing!(B
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
majianyu2007 commented 4 years ago

重装系统再次重新安装