Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 766f88a

Browse files
committed
Version 0.3.0
+ Funcionality: Allow users to configure the screen resolution + Funcionality: Allow users to create multi-sessions * X Screen: Xpra + Xephyr + X Window Manager: Fluxbox
1 parent d7542e7 commit 766f88a

File tree

5 files changed

+44
-18
lines changed

5 files changed

+44
-18
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.3.0 (2013-07-18)
4+
+ Funcionality: Allow users to configure the screen resolution
5+
+ Funcionality: Allow users to create multi-sessions
6+
* X Screen: Xpra + Xephyr
7+
+ X Window Manager: Fluxbox
8+
39
## 0.2.0 (2013-07-10)
410
+ Funcionality: Allow user's disconnection and reconnection without disrupting the session and its application's status
511
+ Funcionality: Applications are rootless (It appears on your desktop as normal windows managed by your window manager)

Dockerfile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
# container such as Firefox, LibreOffice, xterm, etc.
88
# with disconnection and reconnection capabilities
99
#
10-
# The applications are rootless, therefore the client machine
11-
# manages the windows displayed.
12-
#
13-
# ROX-Filer creates a very minimalist way to manage
14-
# files and icons on the desktop.
10+
# Xephyr allows to display the programs running inside of the
11+
# container such as Firefox, LibreOffice, xterm, etc.
12+
#
13+
# Fluxbox and ROX-Filer creates a very minimalist way to
14+
# manages the windows and files.
1515
#
1616
# Author: Roberto Gandolfo Hashioka
17-
# Date: 07/10/2013
17+
# Date: 07/18/2013
1818

1919

2020
FROM ubuntu:12.10
@@ -26,7 +26,13 @@ RUN apt-get update
2626
ENV DEBIAN_FRONTEND noninteractive
2727

2828
# Installing the environment required: xserver, xdm, flux box, roc-filer and ssh
29-
RUN apt-get install -y xpra rox-filer ssh pwgen
29+
RUN apt-get install -y xpra rox-filer ssh pwgen xserver-xephyr xdm fluxbox
30+
31+
# Configuring xdm to allow connections from any IP address and ssh to allow X11 Forwarding.
32+
RUN sed -i 's/DisplayManager.requestPort/!DisplayManager.requestPort/g' /etc/X11/xdm/xdm-config
33+
RUN sed -i '/#any host/c\*' /etc/X11/xdm/Xaccess
34+
RUN ln -s /usr/bin/Xorg /usr/bin/X
35+
RUN echo X11Forwarding yes >> /etc/ssh/ssh_config
3036

3137
# Upstart and DBus have issues inside docker. We work around in order to install firefox.
3238
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl

README.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ROX-Filer creates a very minimalist way to manage the files and icons on the des
1515

1616
![Docker L](image/docker-desktop.png "Docker-Desktop")
1717

18-
OBS: The client machine needs to have a X11 server installed. See the "Notes" below.
18+
OBS: The client machine needs to have a X11 server installed (Xpra). See the "Notes" below.
1919

2020
##Docker Installation
2121

@@ -74,16 +74,25 @@ $ docker port $CONTAINER_ID 22
7474

7575
###Connecting to the container
7676

77+
####Starting the a new session
78+
7779
```
7880
$ ifconfig | grep "inet addr:"
7981
inet addr:192.168.56.102 Bcast:192.168.56.255 Mask:255.255.255.0 # This is the LAN's IP for this machine
8082
81-
$ ssh -YC -c blowfish [email protected] -p 49153 ./docker-desktop # Here is where we use the external port
82-
[email protected]'s password: xxxxxxxxxxxx # The Desktop should open up automatically after you type the password
83+
$ ssh [email protected] -p 49153 ./docker-desktop -s 800x600 -d 10 # Here is where we use the external port
84+
[email protected]'s password: xxxxxxxxxxxx
85+
86+
-s = Screen Resolution
87+
-d = Session Number
88+
```
89+
90+
####Attaching to the session started
91+
92+
```
93+
$ xpra --ssh="ssh -p 49153" attach ssh:[email protected]:10 # user@ip_address:session_number
94+
[email protected]'s password: xxxxxxxxxxxx
8395
84-
-Y = Trusted X11 Forwarding
85-
-C = Use compression
86-
-c blowfish = It's one of the fastest compression type available
8796
```
8897
Once you establish the connection, the file /home/docker/docker-desktop is executed. It takes care of attaching to the previous session or creating a new one, if it doesn’t exist.
8998

@@ -93,13 +102,15 @@ If you are connecting from a Windows Machine, you can use Putty. Please check th
93102

94103
###On Windows:
95104
Requirements:
96-
- Xming (http://sourceforge.net/projects/xming/)
97-
- Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
98-
- Configuration Tutorial (https://wiki.utdallas.edu/wiki/display/FAQ/X11+Forwarding+using+Xming+and+PuTTY)
105+
- Xpra (https://www.xpra.org/dists/windows/)
106+
- Path: C:\Program Files(x86)\Xpra\Xpra_cmd.exe
99107

100108
###On OS X:
101109
Requirements:
102-
- XQuartz (http://xquartz.macosforge.org/landing/)
110+
- Xpra (https://www.xpra.org/dists/osx/x86/)
111+
- Path: /Applications/Xpra.app/Contents/Helpers/xpra
103112

104113
###On Linux:
105-
There is no requiment. If you have a Linux Desktop you should have X11 server installed already.
114+
Requirements:
115+
- Xpra: You can use apt-get to install it -> apt-get install xpra
116+
- Path: /usr/bin/xpra

config.tar

20 KB
Binary file not shown.

startup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ cd /src; tar -C /home/docker -xvf config.tar
2020
#Set all the files and subdirectories from /home/docker with docker permissions.
2121
chown -R docker:docker /home/docker/*
2222

23+
# restarts the xdm service
24+
/etc/init.d/xdm restart
25+
2326
# Start the ssh service
2427
/usr/sbin/sshd -D

0 commit comments

Comments
 (0)