GithubHelp home page GithubHelp logo

suckerfish-bot's Introduction

Suckerfish

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.

Raspberry Pi Zero W Setup

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.

Installation

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/

suckerfish-bot's People

Contributors

imontesino avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.