0526.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Run a Full Linux Desktop in a Browser with the Webtop Docker Container</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="How To,Tutorial,i12bretro,Docker,Container,Containerization,Desktop Environment,Linux,Ubuntu,XFCE,Webtop">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Run a Full Linux Desktop in a Browser with the Webtop Docker Container">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Run a Full Linux Desktop in a Browser with the Webtop Docker Container</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <h2>What is Webtop?</h2>
  25. <p><em>Alpine and Ubuntu based containers containing full desktop environments in officially supported flavors accessible via any modern web browser.</em> - <a href="https://hub.docker.com/r/linuxserver/webtop" target="_blank">https://hub.docker.com/r/linuxserver/webtop</a></p>
  26. <h2>Installing Docker</h2>
  27. <ol>
  28. <li>Log into the Linux host and run the following commands in a terminal window
  29. <div class="codeBlock"># update software respositories<br />
  30. sudo apt update<br />
  31. # install available software updates<br />
  32. sudo apt upgrade -y<br />
  33. # install prerequisites<br />
  34. sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y<br />
  35. # add docker gpg key<br />
  36. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -<br />
  37. # add docker apt repository<br />
  38. sudo apt-add-repository &quot;deb [arch=amd64] https://download.docker.com/linux/debian buster stable&quot;<br />
  39. # update software repositories again<br />
  40. sudo apt update<br />
  41. # install docker<br />
  42. sudo apt install docker-ce docker-ce-cli containerd.io -y<br />
  43. # add the current user to the docker group<br />
  44. sudo usermod -aG docker $USER<br />
  45. # reauthenticate for the new group membership to take effect<br />
  46. su - $USER</div>
  47. </li>
  48. </ol>
  49. <h2>Running Webtop</h2>
  50. <ol>
  51. <li>Continue with the following commands in terminal
  52. <div class="codeBlock"># make a working directory<br />
  53. sudo mkdir ~/docker/webtop/config -p<br />
  54. # create/edit .env file<br />
  55. sudo nano ~/docker/webtop/.env</div>
  56. </li>
  57. <li>Paste the following into the .env file and change the value to something secure
  58. <p>PASSWORD=SomethingSecure</p>
  59. </li>
  60. <li>Press CTRL+O, Enter, CTRL+X to write the changes to .env</li>
  61. <li>Continue with the following commands in terminal
  62. <div class="codeBlock"># set owner of docker directory<br />
  63. sudo chown &quot;$USER&quot;:&quot;$USER&quot; /home/&quot;$USER&quot;/docker -R<br />
  64. # set permissions on docker directory<br />
  65. sudo chmod g+rwx &quot;$HOME/docker&quot; -R<br />
  66. # run the webtop container<br />
  67. docker run -d --name webtop --env-file /home/$USER/docker/webtop/.env -p 3000:3000 -e TZ=America/New_York -e PUID=1000 -e PGID=1000 -v /home/$USER/docker/webtop/config:/config --restart=unless-stopped linuxserver/webtop:ubuntu-xfce</div>
  68. </li>
  69. <li>Open a web browser and navigate to http://DNSorIP:3000</li>
  70. <li>Welcome to a full Linux desktop environment accessible from a web browser</li>
  71. </ol>
  72. </div>
  73. </div>
  74. </body>
  75. </html>