{"id":19034277,"url":"https://github.com/wenzel/docker-kdesrc-build","last_synced_at":"2025-12-17T08:44:42.198Z","repository":{"id":22332222,"uuid":"25667752","full_name":"Wenzel/docker-kdesrc-build","owner":"Wenzel","description":"Dockerfiles to compile KDE source code into Docker with kdesrc-build script","archived":false,"fork":false,"pushed_at":"2020-09-26T15:30:42.000Z","size":228,"stargazers_count":47,"open_issues_count":6,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-23T17:52:22.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wenzel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-24T02:26:56.000Z","updated_at":"2024-08-24T02:02:59.000Z","dependencies_parsed_at":"2022-08-21T02:30:53.794Z","dependency_job_id":null,"html_url":"https://github.com/Wenzel/docker-kdesrc-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Wenzel/docker-kdesrc-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wenzel%2Fdocker-kdesrc-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wenzel%2Fdocker-kdesrc-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wenzel%2Fdocker-kdesrc-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wenzel%2Fdocker-kdesrc-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wenzel","download_url":"https://codeload.github.com/Wenzel/docker-kdesrc-build/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wenzel%2Fdocker-kdesrc-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27780527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T21:44:07.642Z","updated_at":"2025-12-17T08:44:42.155Z","avatar_url":"https://github.com/Wenzel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-kdesrc-build\n\n![](https://github.com/Wenzel/docker-kdesrc-build/workflows/Build/badge.svg)\n\nThis project aims to provide a lightweight and ready to use KDE development\nenvironment by wrapping the `kdesrc-build` tool in Docker.\n\nThis way, you can compile and work on the latest version of the KDE project \nand keep your main system clean of unwanted development packages.\n\nYou can run a KDE application on your current desktop by sharing your X\nserver instance inside the Docker container\n\nMoreover, you can run and try the entire Plasma Desktop in another tty !\n\n# Requirements\n\n- `python` `\u003e=` `3.2`\n- `docopt`\n- `docker` `\u003e=` `1.5`\n\n# Usage\n\n## Quick and simple\n\nJust choose a distro as a base system for the container (*`archlinux` \nis recommended, as it has the latest dependencies*), and run the script :\n\n    ./run.py --base archlinux\n\nThe script will do the following operations :\n\n* check for a `Dockerfile-archlinux` file\n* create a dir under `$HOME/kdebuild/archlinux` to be mounted under `/work`\n* build or update the Docker image `archlinux-kdedev` if necessary\n* mount `bashrc` as a volume (`/home/kdedev/.bashrc`)\n* mount `kdesrc-buildrc` as a volume (`/home/kdedev/.kdesrc-buildrc`)\n* run the container\n* run `/bin/bash`\n\nYou will find the `kdesrc-build` repository cloned in your home directory.\nYou can run `./kdesrc-build/kdesrc-build` to start the build.\n\n## Run the Plasma Desktop\n\n### 1 - Using a shared X11 socket\n\nTo run an entire Plasma Desktop session, we need to create a new X server instance\n, running on a new `tty`, for example, `tty8`.\n\n    # startx -display :1 -- :1 vt8\n\nAlso you have to **explicitly authorize access** to allow clients inside the\ncontainer to use this xserver instance :\n\n    # DISPLAY=':1' xhost +\n\nThen, run the container and use the `--display` option to specify the right\ntty to be used by applications :\n\n    ./run.py --base archlinux --display ':1'\n\nExecute `startkde` from your install directory (which is `/work` by default)\n\nNote that you should have build the `workspace` set first (`kdesrc-build workspace`)\n\nInside the container :\n\n    $ /work/install/bin/startplasma-x11\n\nAnd the KDE desktop should be starting on `tty8` !\n\n### 2 - Using a VNC Server\n\nAnother method consist to run a `Virtual FrameBuffer` inside the container,\nas well as a `VNC` server to view it's content.\n\nRun the environement :\n\n    ./run.py --base archlinux \n\nRun the `Xvfb` server :\n\n    sudo Xvfb $DISPLAY +extension GLX +render -screen 0 1024x780x24 \u0026\n\nRun the `VNC server :`\n\n    sudo x11vnc -usepw -display $DISPLAY\n\nNow you should inspect the container on the host\n    \n    docker inspect \u003ccontainer name | ID\u003e\n\nand check for it's IP address:\n\n    \"IPAddress\": \"172.17.0.10\"\n\nYou can connect to the VNC server `container-ip-address`:`5900` with a VNC client\non the host !\n\nNow you can run any applications, including `startplasma-x11` !\n\n### 3 Xephyr\n\nInstall Xephyr via package manager\n\nTune docker:\n\n    ```sudo systemctl unmask docker.service```\n    ```sudo systemctl unmask docker.socket```\n    ```sudo systemctl restart docker.service```\n\nRun Xephyr:\n\n    ```Xephyr -screen 1024x768 :1```\n\nRun the environment:\n    \n    ```./run.py --base opensuse --display ':1'```\n\nInstall dependencies in container:\n\n    ```./kdesrc-build/kdesrc-build --initial-setup```\n\nStart DBus \u0026 Plasma :\n\n    ```sudo dbus-uuidgen --ensure \u0026\u0026 sudo mkdir -p /run/dbus/ \u0026\u0026 dbus-launch --sh-syntax \u003e $HOME/dbusenv \u0026\u0026 source $HOME/dbusenv \u0026\u0026 /work/install/bin/startplasma-x11```\n\n\n## kdesrc-buildrc configuration\n\nTo configure `kdesrc-buildrc`, take a look at [http://kdesrc-build.kde.org/documentation/](http://kdesrc-build.kde.org/documentation/¬)\n\n## Use a specific version of Qt\n\nIf you want to change the Qt version used during the compilation, you can\nprovide a the path to a Qt installation on the host with :\n\n    ./run.py --base archlinux --qt /path/to/qt\n\nThis path will be mounted under `/qt`\n\nDon't forget to change the `qtdir` variable in the `kdesrc-buildrc`\n\n# Dependencies installed\n\n|              | Archlinux | Fedora | OpenSUSE | Ubuntu | Neon |\n|--------------|-----------|--------|----------|--------|------|\n| Frameworks   |     ✓     |    ✗   |     ✓    |    ✗   |   ✓  |\n| Workspace    |     ✓     |    ✗   |     ✓    |    ✗   |   ✓  |\n| Applications |     ✗     |    ✗   |     ✗    |    ✗   |   ✓  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenzel%2Fdocker-kdesrc-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwenzel%2Fdocker-kdesrc-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenzel%2Fdocker-kdesrc-build/lists"}