- Copy the program you want to run to
/usr/binfolder and make it executable.
$ sudo cp my_service_program.sh /usr/bin
$ sudo chmod +x /usr/bin/my_service_program.sh- Create the unit file
| #!/bin/bash | |
| function get_active_window() { | |
| printf "0x%08x" $(xdotool getactivewindow) | |
| } | |
| function get_current_opacity() { | |
| window="$1" | |
| opacity=$(xprop -id $window | grep _NET_WM_WINDOW_OPACITY | awk '{print $3}') | |
| if [ -z $opacity ]; then |
| #!/bin/bash | |
| user='github_username' | |
| password_or_oauth_token='pass' | |
| # Delete a bunch of GitHub repos | |
| nukem="repo1 repo2 repo3" | |
| for repo in $nukem; do | |
| echo "Deleting repo: https://github.com/$user/$repo" |
| VBoxManage modifyvm "MacOS" -- cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff | |
| VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" | |
| VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" | |
| VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" | |
| VBoxManage setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" | |
| VBoxManage setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 | |
| VBoxManage setextradata "MacOS" VBoxInternal2/EfiGopMode 4 |
| #!/bin/bash | |
| mkdir -p ~/.local/bin | |
| echo -e '#!/bin/sh\n/usr/bin/pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY HOME=$HOME "$@"' > ~/.local/bin/gksudo | |
| chmod u+x ~/.local/bin/gksudo |
| docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -v $PWD/app:/app vscode |
This dependency for some reason cannot be installed using the package managers (apt, apt-get or aptitude).
Download the .deb file
Try to install it using: