My settings files and automation scripts.
Installation
wget -q -O - https://raw.githubusercontent.com/marcodpt/config/main/iot/install.sh | sudo bash
install.sh
is a script to initialize a terminal with scale and printer.rc.local
is used by this script to start the server when powered on.startup.sh
restarts servers and is used byinstall.sh
andrc.local
.config.toml
are the server settings.
Restart server
sudo /etc/iot/startup.sh
My personal settings.
wget -q -O - https://raw.githubusercontent.com/marcodpt/config/main/marco/install.sh | sudo bash
ssh-add
wget -q -O - https://raw.githubusercontent.com/marcodpt/config/main/marco/config.sh | bash
install.sh
install the packages I use to work.config.sh
set my preferences.bashrc
putvim
as the default editor and always usetmux
in the terminal.vimrc
these are myvim
settings.tmux.conf
these are mytmux
settings.
mkdir -p ~/.ssh
cp path/to/key ~/.ssh/id_rsa
chmod go-rw ~/.ssh/id_rsa
ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
ssh-keygen -t rsa -b 4096 -C "user@email.com" -f ~/.ssh/id_rsa
gpg --import path/to/key
gpg --edit-key user@email.com
trust
5
quit
gpg --armor --export user@email.com > pub.asc
gpg --armor --export-secret-key user@email.com > key.asc
gpg -k
gpg -K
sudo rngd -r /dev/urandom
gpg --gen-key