-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* halt only for specified user * neobotix sudoers file * added cleanup script * query user + clear history * new dependencies: vino, openssh-server * autostart vino server * enable keyboard layout switcher * added vino configuration. closes #15. * extend udev rule for serial converter * close #23; powermanagement, lockscreen and screensaver. * update the debian package * shutdown and poweroff without password prompt. * update the debian package * use correct user account to set gsettings * disable blank screen * v. 1.0.3 * adding multicasting for loopback * better way to clear bash history --------- Co-authored-by: par <reiter@neobotix.de>
- Loading branch information
1 parent
efab3f2
commit 7a96af7
Showing
6 changed files
with
76 additions
and
10 deletions.
There are no files selected for viewing
Binary file not shown.
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
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,32 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ $SUDO_USER ]; then user=$SUDO_USER; else user=`whoami`; fi | ||
|
||
# check for root privileges | ||
uid=$(/usr/bin/id -u) && [ "$uid" = "0" ] || { echo "Run this script as root!"; exit 1; } | ||
|
||
# empty trash | ||
rm -rf /home/$user/.local/share/Trash/* | ||
|
||
# remove unused packages | ||
apt-get -y autoremove | ||
|
||
# delete ros logs | ||
rm -rf /home/$user/.ros/log/* | ||
|
||
# delete pilot logs | ||
rm -rf /home/$user/pilot/user/data/logs/* | ||
|
||
# delete system logs | ||
rm -rf /var/log/* | ||
|
||
# this is needed for journalctl (systemd) | ||
mkdir /var/log/journal | ||
|
||
# clear bash history | ||
>/home/$user/.bash_history | ||
sudo -u$user bash -c "unset HISTFILE; history -c && history -w;" | ||
|
||
exit 0 |
5 changes: 5 additions & 0 deletions
5
debian/neobotix-tools/opt/neobotix/tools/enable_multicast_lo.sh
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,5 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
sudo ip link set lo multicast on |
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