Skip to content

Setup (MISC)

manx52 edited this page Jul 23, 2024 · 1 revision

MISC

Git LFS

to remove git lfs stuff use git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch docs/_static' HEAD

No password

Wifi

  • Run sudo gedit /etc/network/interfaces and add
auto lo
iface lo inet loopback
 
auto wlan0
iface wlan0 inet dhcp
wpa-essid myssid
wpa-psk mypasscode
  • Restart interface sudo ifdown wlan0 && sudo ifup -v wlan0

Github Actions Self Hosted Runners

  • Install GNU Parallel
wget https://ftpmirror.gnu.org/parallel/parallel-20230822.tar.bz2
    wget https://ftpmirror.gnu.org/parallel/parallel-20230822.tar.bz2.sig
    gpg parallel-20230822.tar.bz2.sig
    bzip2 -dc parallel-20230822.tar.bz2 | tar xvf -
    cd parallel-20230822
    ./configure && make && sudo make install
  • Create 'sudo gedit ~/github_runners.sh' and add
#!/usr/bin/env bash
cd ~
parallel -u ::: './actions-runner/run.sh' './actions-runner2/run.sh' './actions-runner3/run.sh' './actions-runner4/run.sh'
  • Give permission sudo chmod 755 ~/github_runners.sh
  • Run ./~/github_runners.sh
  • Or add to startup
  • Run a Cron Job at Boot Time sudo crontab -e choose 1
  • add @reboot /home/jonathan/github_runners.sh
  • Run sudo systemctl status cron.service and sudo systemctl enable cron.service to verify its running

Nvidia driver problems

sudo apt-get --purge remove nvidia-*
sudo ubuntu-drivers autoinstall

Switch to nvidia driver metapackage only proprietary