Code Monkey home page Code Monkey logo

viber-root-docker's Introduction

viber-unoffical-root

Installation:

sudo apt-get install docker.io

Build docker image:

docker build -t viber_root:0.1 .

Run image:

xhost +
sudo docker run --name viber -it -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/snd:/dev/snd --privileged -t viber_root:0.1

Run container from image:

docker run --name viber -d viber_root:0.1 

Remove Viber:

docker rmi viber_root:0.1 -f

Create forever:

or create forever
sudo docker create \
        -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v /dev/snd:/dev/snd  \
        -v ~/.ViberPC:/home/gui/.ViberPC  \
        --privileged --name viber  -t viber_root:0.1
sudo docker start viber

Original source:

https://github.com/ezbik/docker/tree/master/viber

Open problems:

touch: cannot touch '/home/gui/.config/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 844: /usr/bin/xdg-mime: cannot create /home/gui/.config/mimeapps.list.new: Directory nonexistent

No browser installed, so viber cannot open a new browser window (intentional)

Useful information:

https://askubuntu.com/questions/22031/what-are-my-audio-devices
aplay -l

https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes
https://stackoverflow.com/questions/18497688/run-a-docker-image-as-a-container
https://linuxize.com/post/how-to-remove-docker-images-containers-volumes-and-networks/
https://www.tutorialspoint.com/docker/building_docker_files.htm
https://docker-curriculum.com/
https://www.howtoforge.com/tutorial/how-to-create-docker-images-with-dockerfile/

viber-root-docker's People

Contributors

foobar2016 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

viber-root-docker's Issues

Missing dependency

Hi,

I try to build, and create, and start viber_root, but I can't (I got missing qt plugin error), on a CentOS 7. So I modified the last apt-get install line, and add libxkbcommon-x11-0 package, and now, it's working perfectly:
RUN apt-get install -y libx11-xcb1 libxcb-composite0 libxcb-present0 libxcb-sync1 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render0 libxcb-render-util0 libxcb-xfixes0 libxcb-xfixes0 libxcb-randr0 libxcb-shape0 libxcb-xkb1 libxtst6 libxkbcommon-x11-0
Thank You for Your work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.