The idea in this project is to have a pi zero stuck with double sided tape to the inside of your pc. Its main functionality is to power and/or reset the bigger pc remotely. My main use case is a dual boot system, where I have to remote into Ubuntu (ssh, TeamViewer, etc.) for my work and into Windows for accessing a photo archive and gamestreaming via moonlight.
Install raspbian buster image. Here is a convinient way:
Download and install rpi-imager. This is a GUI tool to easily install raspbian images. It also allows to setup of ssh keys and wifi before hand.
This video shows how to do it.
Choose the rasbian buster lite x32 image.
If installed correctly you can now acess the pi zero via ssh.
ssh pi@suckerfish_hostname
Once there install some dependencies
sudo apt-get install git python3-pip
Geŋenerate an ssh key
ssh-keygen -t rsa -C "MyEmailAddress" -f ~/.ssh/id_rsa
Ssh from the pi to the pc to save the key
ssh-copy-id -i ~/.ssh/id_rsa.pub your_username@pc_ip_address
Clone the repo to the home directory of the pi zero.
$ cd ~/
$ git clone https://github.com/imontesino/suckerfish-bot
Install the python dependencies.
$ cd ~/suckerfish-bot
$ pip3 install -r requirements.txt
Add your bot token to the config file.
Then copy the service file to the systemd folder.
$ sudo cp /home/pi/suckerfish_bot/resources/suckerfish_bot.service /etc/systemd/system/