Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed Skype and Google Chrome but not able to run it #5

Closed
shiroamada opened this issue Dec 26, 2020 · 2 comments
Closed

Installed Skype and Google Chrome but not able to run it #5

shiroamada opened this issue Dec 26, 2020 · 2 comments

Comments

@shiroamada
Copy link

Hi,

I manage to install via https://linuxize.com/post/how-to-install-google-chrome-web-browser-on-ubuntu-18-04/ this tutorial.
The Program Icon appear at the start menu, but when I click and run it, Google Chrome not appear.
It's go to try.

Are you able to run it? Or any setting need to be done?

Thanks!

@hectorm
Copy link
Owner

hectorm commented Dec 26, 2020

In the following issue you will find the reason why it doesn't work: jessfraz/dockerfiles#65

The easiest solution to make it work (considering that adding privileges to a container represents a security risk) would be to run the container with the --cap-add=SYS_ADMIN argument.

To perform the installation I used the following Dockerfile:

FROM docker.io/hectormolinero/xubuntu:latest

# Install Google Chrome
ARG GOOGLE_CHROME_DEB_URL=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN curl -Lo /tmp/google-chrome.deb "${GOOGLE_CHROME_DEB_URL:?}" \
	&& dpkg -i /tmp/google-chrome.deb || (apt-get update && apt-get install -fy) \
	&& rm -rf /tmp/google-chrome.deb /var/lib/apt/lists/*

# Install Skype
ARG SKYPE_DEB_URL=https://go.skype.com/skypeforlinux-64.deb
RUN curl -Lo /tmp/skype.deb "${SKYPE_DEB_URL:?}" \
	&& dpkg -i /tmp/skype.deb || (apt-get update && apt-get install -fy) \
	&& rm -rf /tmp/skype.deb /var/lib/apt/lists/*

Then started the container with the following command:

docker run \
    --detach \
    --shm-size 2g \
    --cap-add=SYS_ADMIN \
    --publish 3389:3389/tcp \
    --device /dev/dri:/dev/dri \
    YOUR_IMAGE

And then connected with FreeRDP with the following command:

xfreerdp \
    /v:127.0.0.1:3389 \
    /u:guest /p:password \
    /log-level:INFO /cert:ignore \
    /gfx:RFX +gfx-progressive /w:1600 /h:900 \
    /audio-mode:0 /sound:sys:pulse,rate:44100 \
    /microphone:sys:pulse,rate:44100 \
    +clipboard +home-drive \
    -compression -encryption

@hectorm hectorm closed this as completed Dec 26, 2020
@4563453
Copy link

4563453 commented Jun 11, 2023

this fix is working nice, thank you.

for docker-compose:

services:
  xubuntu:
    image: registry.ipv6.docker.com/hectorm/xubuntu:latest
    container_name: xubuntu
    cap_add:
      - ALL
      

source: https://docs.docker.com/compose/compose-file/compose-file-v3/#cap_add-cap_drop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants