-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit log size and add pre-logon message (#40)
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
####### PhotonVision is the free, fast, and | ||
############# easy-to-use computer vision solution | ||
################# for the FIRST Robotics Competition. | ||
###### ###### ::: | ||
##### ##*:::::::::: To configure PhotonVision, open: | ||
##### ::::::::::::::::::: | ||
#### ::::::::::: ### http://photonvision.local:5800 | ||
#### #### | ||
#### #### using a computer on the same network | ||
#### :: ### as this device. | ||
#### ::::::: #### | ||
#### :::::::: #### Documentation is available at: | ||
##### :::::::: : | ||
###### ####::::::::: https://docs.photonvision.org/ | ||
################## :::::: | ||
############## | ||
######### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -v | ||
|
||
# Do additional tasks that are common across all images, | ||
# but not suitable for inclusion in install.sh | ||
echo "Running install_common.sh" | ||
|
||
# Limit the maximum length of systemd-journald logs | ||
mkdir -p /etc/systemd/journald.conf.d | ||
cat > /etc/systemd/journald.conf.d/60-limit-log-size.conf <<EOF | ||
# Added by Photonvision to keep the logs to a reasonable size | ||
[Journal] | ||
SystemMaxUse=100M | ||
EOF | ||
|
||
# Add a helpful message to the logon screen | ||
# ASCII Art generated by: https://www.asciiart.eu/image-to-ascii | ||
cp -f ./files/issue.txt /etc/issue | ||
cp -f /etc/issue /etc/issue.net | ||
sed -i 's/#Banner none/Banner \/etc\/issue.net/g' /etc/ssh/sshd_config |