{"id":24290524,"url":"https://github.com/dutu/tails-autostart","last_synced_at":"2025-06-12T02:06:39.681Z","repository":{"id":74504644,"uuid":"592903475","full_name":"dutu/tails-autostart","owner":"dutu","description":"Automatically start scripts/applications on Tails bootup","archived":false,"fork":false,"pushed_at":"2023-05-17T08:00:22.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T02:32:31.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dutu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-24T19:31:39.000Z","updated_at":"2023-05-07T07:21:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0df4eeb-ff8f-46cf-a47f-98adcb5e34bd","html_url":"https://github.com/dutu/tails-autostart","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dutu/tails-autostart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutu%2Ftails-autostart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutu%2Ftails-autostart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutu%2Ftails-autostart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutu%2Ftails-autostart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dutu","download_url":"https://codeload.github.com/dutu/tails-autostart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutu%2Ftails-autostart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259382298,"owners_count":22848836,"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","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":"2025-01-16T11:53:05.431Z","updated_at":"2025-06-12T02:06:39.629Z","avatar_url":"https://github.com/dutu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tails Autostart\n\n## What is it?\n\nAutomatically start scripts/applications on tails bootup\n\n## Why make this?\n\nThere could be a need for several scripts to run each time Tails boots up, so this is a mechanism for doing so.\n\n## How do I install it on Tails?\n\n1. Make sure you have dotfiles feature turned on in your persistence configuration.\n\n2. Download and unpack asset files:\n   ```shell\n   cd ~/Downloads\n   wget https://raw.githubusercontent.com/dutu/tails-autostart/master/assets/tails-autostart.tar.gz\n   tar -xzvf tails-autostart.tar.gz\n   ```\n\n3. Run the installation script:\n   ```shell\n   cd tails-autostart\n   chmod +x install_tails_autostart.sh\n   sudo ./install_tails_autostart.sh\n   ```\n\nDone.\n\n## How do I use it?\n\n* add any scripts to `/live/persistence/TailsData_unlocked/dotfiles/.config/autostart/amnesia.d` to execute them on startup as amnesia\n* add any scripts to `/live/persistence/TailsData_unlocked/dotfiles/.config/autostart/root.d` to execute them on startup as root\n\n## How does it work?\n`run_dir_scripts.sh` runs all the scripts ending in `.sh` in a particular directory. This way, we use the same script to run `amnesia.d` scripts and `root.d` scripts.\n\n`startup_mods.sh` runs `run_dir_scripts.sh` for each user (root and amnesia). running as root is done using `pkexec` (gui for sudo prompt).\n\nFinally, using Gnome's autostart feature, `Tails-autostart.desktop` is run each time Gnome starts up. This `Tails-autostart.desktop` runs `/live/persistence/TailsData_unlocked/tails-autostart/startup_mods.sh`\n\nSo on startup, gnome runs:\n\n```mermaid\ngraph LR;\n  A(Tails-autostart.desktop)--\u003eB(startup_mods.sh);\n  B(startup_mods.sh)--\u003eC(pkexec run_dir_scripts.sh);\n  B(startup_mods.sh)--\u003eD(run_dir_scripts.sh);\n  C(pkexec run_dir_scripts.sh)--\u003eE(root.d/*.sh);\n  D(run_dir_scripts.sh)--\u003eF(amnesia/*.sh);\n```\n\n\u003e Note: `startup_mods.sh` now checks for `.sh` script files in `.config/autostart/root.d`. If no files are found, `pkexec` is not executed. This is to avoid unnecessary prompt to enter admin password after Gnome starts up.     \n\n## How do I remove it from Tails?\n\n1. Remove Tails-autostart files:\n   ```shell\n   rm /live/persistence/TailsData_unlocked/dotfiles/.config/autostart/Tails-autostart.desktop\n   rm -fr /live/persistence/TailsData_unlocked/dotfiles/.config/autostart/Tails-autostart\n   ```\n   \n\u003e Note: Scripts in `autostart/amnesia.d` and `autostart/root.d` intended to run on startup will remain in place. However, with the removal of Tails autostart, they will no longer be triggered at Tails startup. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutu%2Ftails-autostart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdutu%2Ftails-autostart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutu%2Ftails-autostart/lists"}