DEV Community

Jain Wun
Jain Wun

Posted on

3 2

在Heroku一鍵架Ubuntu並用noVNC連進去

更多會員限定文章可以到patreon觀看


可以用現成的Dockerfile會更快 (包含一鍵佈署)

https://github.com/xstriver/heroku-vnc

如果想要修改Ubuntu內含的套件可以直接去Dockerfile內加

File Structue

  • app.json & Dockerfile是給heroku用的
  • 其他conf和sh檔是為了讓heroku啟動後直接用xfce4 + 桌面有chrome捷徑
  • docker-compose.yaml是在本機時可以使用

Xfce4

如果喜歡xfce4 style, Dockerfile最後幾行的設定要保留

RUN echo xfce4-session >~/.xsession
RUN echo "exec /etc/X11/Xsession /usr/bin/xfce4-session"
Enter fullscreen mode Exit fullscreen mode

GNOME

理論上把xfce4相關的給去掉後就會是預設的Ubuntu介面了

但要去掉的有點太多,之後::會開新的repo::

noVNC

預設是沒有密碼的 (目前這版的noVNC大概是兩年前了)

由於新版把websockify獨立出去,所以啟動方式有改

image.png

沒有密碼的可以直接按下connect

image.png

由於免費版的會重開機,所以每次重啟都會回到初始化

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay