- 主题:setup headless vncserver for ubuntu20.04 is surprisingly ha
Tried two days, tons of HOWTO pages read with google.
still not working.
It's not like the good old days everything is just to apt-get install.
They eventually start to make the sh*t.
--
FROM 73.162.73.*
on Xorg or Wayland session?
【 在 allegro 的大作中提到: 】
: Tried two days, tons of HOWTO pages read with google.
: still not working.
: It's not like the good old days everything is just to apt-get install.
: ...................
--
FROM 192.102.204.*
不能够吧
这是我在debian下用的bash脚本,你可以试试
不过我这个默认是起在localhost得先ssh端口转发才能连
function setup_vncserver {
apt install -y xterm xfonts-base xfonts-scalable tightvncserver icewm sakura fonts-hack fonts-firacode fonts-wqy-microhei
runuser -l myusername -c 'mkdir .vnc'
runuser -l myusername -c 'touch .vnc/xstartup'
cat > /home/myusername/.vnc/xstartup <<END
#!/bin/bash
xrdb \$HOME/.Xresources
exec /etc/X11/Xsession
END
chmod +x /home/myusername/.vnc/xstartup
runuser -l myusername -c 'vncpasswd'
cat > /etc/systemd/system/vncserver@.service <<END
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=myusername
Group=myusername
WorkingDirectory=/home/myusername
PIDFile=/home/myusername/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver :%i -depth 24 -geometry 1280x800 -localhost -interface lo -nolisten tcp
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
END
systemctl daemon-reload
systemctl enable vncserver@9.service
systemctl start vncserver@9.service
}
【 在 allegro 的大作中提到: 】
: Tried two days, tons of HOWTO pages read with google.
: still not working.
: It's not like the good old days everything is just to apt-get install.
: ...................
--
FROM 221.220.133.*
what's the hard point?
有没有一个 x server 能够运行 GUI 程序并把画面传输到远程服务器?
【 在 allegro 的大作中提到: 】
: Tried two days, tons of HOWTO pages read with google.
: still not working.
: It's not like the good old days everything is just to apt-get install.
: ...................
--
FROM 47.243.39.*
个人没太理解这个需求。 VNC提供的是远程桌面功能
headless 是连命令行都没有的吧?
如果想SSH 进去,不是应该起sshd 吗?
【 在 allegro 的大作中提到: 】
: Tried two days, tons of HOWTO pages read with google.
: still not working.
: It's not like the good old days everything is just to apt-get install.
: ...................
--
FROM 13.56.31.*
Apache guacamole is good
【 在 allegro 的大作中提到: 】
: Tried two days, tons of HOWTO pages read with google.
: still not working.
: It's not like the good old days everything is just to apt-get install.
: ...................
--
FROM 1.203.120.*
退Ubuntu入Debian
【 在 allegro 的大作中提到: 】
: Tried two days, tons of HOWTO pages read with google.
: still not working.
: It's not like the good old days everything is just to apt-get install.
: ...................
--
FROM 180.111.27.*
搞定了,我把所有过程记下来了。
大概包括:
1. create virtual machine instance with Oracle Cloud.
2. setup subnet.
3. install VNC service.
https://github.com/etorth/mir2x/wiki/Host-your-monoserver-on-Oracle-Cloud
--
FROM 73.162.73.*
with XFCE desktop?
not Gnome ?
【 在 allegro 的大作中提到: 】
: 搞定了,我把所有过程记下来了。
: 大概包括:
: 1. create virtual machine instance with Oracle Cloud.
: ...................
--
FROM 192.102.204.*
Oracle Cloud上的虚拟机只有1GBytes内存,我之前在上面编译都过不了,gcc直接内存爆炸。
所以我用了轻一些的XFCE,你可以尝试一下Gnome。
【 在 HITM 的大作中提到: 】
: with XFCE desktop?
: not Gnome ?
:
--
FROM 158.140.1.*