Skip to content

Davenchy/pc-remote

Repository files navigation

PC-Remote

  • Control your Linux Machine from anywhere.

Build

  • use make command to build this project.
$ make build clean
$ ./pc_remote

Configuration and Environment Variables

Env Var Default Description
PC_REMOTE_PORT 5050 Port to listen on.
PC_REMOTE_SCRIPTS_PATH $HOME/.config/remote_scripts/ if XDG_CONFIG_HOME is set or $HOME/remote_scripts/ Path to scripts directory.

Scripts

  • Any executable file is a script and will be called by sending its name from the client to PC-Remote.

  • Example Script at path $HOME/.config/remote_scripts/lock:

#!/bin/bash
# lock and turn off screen
xset dpms force suspend
  • Don't forget to set executable permission to scripts otherwise it won't work.
$ chmod +x $HOME/.config/remote_scripts/lock

Client

  • Using netcat as a client to connect to PC-Remote.
$ nc 0 5050
> ls
lock
> lock
!> Executing script: lock
>

PC-Remote Commands

  • PC-Remote has a list of built-in commands.
Command Description
help Display this help message
ls List all loaded scripts
reload Reload all scripts
quit Exit PC-Remote

About

A server to control my Linux machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published