Skip to content

Commit

Permalink
add rough draft of working rs3 container for chromeOS, but the GUI is…
Browse files Browse the repository at this point in the history
… way too slow/unresponsive for use
  • Loading branch information
rmccorm4 committed Mar 3, 2019
1 parent bc1eb2c commit aebedb5
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Dockerfile
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 http: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"]
54 changes: 53 additions & 1 deletion README.md
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
```
8 changes: 8 additions & 0 deletions commands.txt
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 http: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://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
2 changes: 2 additions & 0 deletions start.sh
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

0 comments on commit aebedb5

Please sign in to comment.