- Control your Linux Machine from anywhere.
- use make command to build this project.
$ make build clean
$ ./pc_remote
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. |
-
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
- Using netcat as a client to connect to PC-Remote.
$ nc 0 5050
> ls
lock
> lock
!> Executing script: lock
>
- 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 |