screenrc
, contains a collection of scripts and configurations for setting up screen
on Raspberry Pi. The following covers how to install this branch within Linux user account.
Installing
-
Make a directory for Git sources and clone this project
-
Symbolically link configuration file
-
Symbolically link scripts directory
mkdir -vp ~/git/rpi-curious
cd ~/git/rpi-curious
git clone git@github.com:rpi-curious/screenrc.git
mkdir -vp ~/bin
ln -s "${HOME}/git/rpi-curious/screenrc/screenrc" "${HOME}/.screenrc"
mkdir -vp ~/.screenrc-scripts
ln -s "${HOME}/git/rpi-curious/screenrc/screenrc-scripts" "${HOME}/.screenrc-scripts"
Starting a new screen
session should something similar to...
screen -RD ssh
53c pi@raspberrypi ssh | | Free Mem: 59% Swap: 83% Disk: 72% | 2019/08/15 10:57
... along the bottom of the terminal window.
Updating
-
Change directories to repository
-
Pull changes from default remote
cd ~/git/rpi-curious/screenrc
git pull
Customizing
-
Change directories to repository and checkout a local branch
-
Make changes to a file
-
Add and commit for Git to track changes on the local branch
cd ~/git/rpi-curious/screenrc
git checkout -b local-edits
vim screenrc-scripts/cpu-temp.sh
git commit add screenrc-scripts/cpu-temp.sh
git commit -F- <<'EOF'
:shell: Adds Kelvin support
# ... Three blank lines and then other
# comment-worthy notes maybe...
EOF
This project is designed and tested on Raspberry Pi development boards, however, there's likely little reason that it will not work properly on other platforms, perhaps even without modifications.
-
screenrc
-
cpu-temp.sh
-
free-mem
Legal bits of Open Source software
`screenrc` Tips documentation
Copyright (C) 2019 S0AndS0
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation; version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.