-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add rough draft of working rs3 container for chromeOS, but the GUI is…
… way too slow/unresponsive for use
- Loading branch information
Showing
4 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# https://medium.com/@SaravSun/running-gui-applications-inside-docker-containers-83d65c0db110 | ||
FROM ubuntu:14.04 | ||
RUN apt-get update && \ | ||
apt-get -qqy install apt-transport-https libsdl2-2.0-0 libwebkitgtk-1.0-0 libpng-dev wget libcurl3 gnupg dbus | ||
# wget https://launchpadlibrarian.net/161405671/libglew1.10_1.10.0-3_amd64.deb && \ | ||
# dpkg -i libglew1.10_1.10.0-3_amd64.deb && \ | ||
# apt-get -f install && \ | ||
# wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add - && \ | ||
# mkdir -p /etc/apt/sources.list.d && \ | ||
# echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list` && \ | ||
# apt-get update && \ | ||
# apt-get -f install -y --allow-unauthenticated runescape-launcher | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,53 @@ | ||
# rs3-chromeos | ||
# rs3-chromeos | ||
|
||
## Setup | ||
|
||
### 1. Setup Linux terminal on ChromeOS | ||
|
||
See the official instructions here: | ||
<https://support.google.com/chromebook/answer/9145439?hl=en> | ||
|
||
### 2. Install Docker in your Linux terminal for ChromeOS | ||
|
||
See these instructions tailored for ChromeOS here: | ||
<https://hackernoon.com/pixelbook-revisited-running-docker-containers-aa7c742a7dec> | ||
|
||
If this doesn't work, you can always try the official Docker install | ||
steps for Linux (Debian) here: | ||
<https://docs.docker.com/install/linux/docker-ce/debian/> | ||
|
||
### 3. Build the `rs3` Docker Container | ||
|
||
``` | ||
docker build -t rs3 . | ||
``` | ||
|
||
### 4. Run the `rs3` Docker Container | ||
|
||
Command: | ||
``` | ||
docker run -it --net=host --env="DISPLAY" \ | ||
-v "$HOME/.Xauthority:/root/.Xauthority:rw" \ | ||
-v /dev:/dev \ | ||
-v `pwd`:/workspace \ | ||
rs3 | ||
``` | ||
|
||
Explanations: | ||
``` | ||
-v "$HOME/.Xauthority:/root/.Xauthority:rw" # Share X11 config to get the GUI in the container | ||
-v /dev:/dev # Share devices for keyboard input to work in GUI | ||
-v `pwd`:/workspace # Share local files containing commands | ||
rs3 # Name of the container | ||
``` | ||
|
||
### 5. Install rs3 client inside the container | ||
Install rs3-client | ||
``` | ||
cat commands.txt | sudo bash | ||
``` | ||
|
||
Run rs3-client | ||
``` | ||
runescape-launcher | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apt-get install apt-transport-https libsdl2-2.0-0 libwebkitgtk-1.0-0 libpng-dev wget libcurl3 gnupg | ||
wget https://launchpadlibrarian.net/161405671/libglew1.10_1.10.0-3_amd64.deb | ||
dpkg -i libglew1.10_1.10.0-3_amd64.deb | ||
wget -O - https:https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add - | ||
mkdir -p /etc/apt/sources.list.d | ||
echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list | ||
apt-get update | ||
apt-get -f install -y --allow-unauthenticated runescape-launcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docker build -t rs3 . | ||
docker run -it --net=host --env="DISPLAY" -v "$HOME/.Xauthority:/root/.Xauthority:rw" -v /dev:/dev -v `pwd`:/workspace rs3 |