This commit is contained in:
Frieder Schlesier 2018-06-14 09:45:13 +02:00
parent 8450f8821d
commit 61d0838665
3 changed files with 65 additions and 8 deletions

View File

@ -65,7 +65,7 @@ android-studio() {
-v $ANDROID_DIR:/workspace \ -v $ANDROID_DIR:/workspace \
-v $ANDROID_DIR/.docker-dev/.studio-home:/home/developer/.AndroidStudio1.2 \ -v $ANDROID_DIR/.docker-dev/.studio-home:/home/developer/.AndroidStudio1.2 \
-v $ANDROID_DIR/.docker-dev/.android:/home/developer/.android \ -v $ANDROID_DIR/.docker-dev/.android:/home/developer/.android \
${DOCKER_REPO_PREFIX}/android-studio3:latest \ ${DOCKER_REPO_PREFIX}/android:3 \
/bin/studio /bin/studio
#exit 0; #exit 0;
@ -442,6 +442,41 @@ openvpn() {
${DOCKER_REPO_PREFIX}/openvpn:latest config.ovpn ${DOCKER_REPO_PREFIX}/openvpn:latest config.ovpn
} }
papyrus() {
# del_stopped papyrus
MYUSERID=$(id --user)
echo "starting papyrus with uid"
echo $MYUSERID
# -v $BASE/.eclipse:/home/eclipse/.eclipse/ \
# -v $BASE/.gradle:/home/eclipse/.gradle/ \
# -v $BASE/.egradle:/home/eclipse/.egradle/ \
# -v $BASE/plugins:/opt/eclipse/plugins/ \
# -v $BASE/configuration:/opt/eclipse/configuration \
local BASE="/media/driveBay/Backups/eclipse-configs/oxygen_configs"
docker run -it \
--net host \
--name="papyrus" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=unix$DISPLAY \
-v $HOME/projects/java/workspace:/home/eclipse/workspace \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(which docker):/bin/docker \
--user $MYUSERID \
--device /dev/video0 \
--group-add audio \
--group-add video \
${DOCKER_REPO_PREFIX}/papyrus:latest \
sh -c "/opt/eclipse/eclipse"
# exit 0;
}
pulseaudio() { pulseaudio() {
del_stopped pulseaudio del_stopped pulseaudio

View File

@ -4,13 +4,15 @@ some stuff that makes my linux life more portable and comfortable.
for debian, or debian-based distros. using i3wm.org on the desktop. for debian, or debian-based distros. using i3wm.org on the desktop.
also uses containers. also uses containers.
strongly inspired by awesome work by https://github.com/jessfraz strongly inspired by awesome work of https://github.com/jessfraz
## Notes ## Notes
First Rule of Data: Always have Backups!
### Security ### Security
#### Hardening ssh #### Hardening ssh
- https://blog.g3rt.nl/upgrade-your-ssh-keys.html - https://blog.g3rt.nl/upgrade-your-ssh-keys.html
@ -46,6 +48,8 @@ $ ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_host_$(date +%Y-%m-%d) -C "Key to H
#### GnuPG #### GnuPG
- https://wiki.mozilla.org/Security/Key_Management - https://wiki.mozilla.org/Security/Key_Management
- https://keyring.debian.org/creating-key.html
- https://wiki.debian.org/Subkeys
`~/.gnupg/gpg.conf`: `~/.gnupg/gpg.conf`:
@ -57,6 +61,16 @@ default-preference-list SHA512 SHA384 AES256 ZLIB BZIP2 ZIP Uncompressed
keyid-format 0xlong keyid-format 0xlong
``` ```
#### Managing logins/passphrases
- use keepass2
#### Backup Secure Keys
- get 2 USB Thumb drives
- on each, create 2 partitions (ext4, you will never use them on any windows device anyway)
- https://wiki.archlinux.org/index.php/Dm-crypt/Device_Encryption
## TODO ## TODO
- [ ] explain setup, ideas, practises - [ ] explain setup, ideas, practises

View File

@ -8,17 +8,18 @@ USERNAME=fschl
apt_sources() { apt_sources() {
DIST="${$1:-stable}" DIST="${$1:-stable}"
if [[ ! "stable" -eq ${DIST} ]]; then
else
cat <<-EOF > /etc/apt/sources.list cat <<-EOF > /etc/apt/sources.list
deb http://ftp.de.debian.org/debian/ ${DIST} main contrib non-free deb http://ftp.de.debian.org/debian/ stable main contrib
deb http://ftp.de.debian.org/debian/ stable-updates main contrib
deb http://security.debian.org/ ${DIST}/updates main contrib non-free deb http://security.debian.org/ stable/updates main
EOF EOF
} }
base_applications() { base_applications() {
echo "update and installing baseapps..." echo "update and installing baseapps..."
apt update apt update
@ -120,9 +121,16 @@ no_suspend() {
} }
install_i3() { install_i3() {
echo "update and installing i3wm and some tools..." echo "update and installing i3wm and some tools..."
# tlp: Advanced Linux Power Management
# http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html
deb http://repo.linrunner.de/debian sid main
fi
# add the tlp apt-repo gpg key
apt-key adv --keyserver pool.sks-keyservers.net --recv-keys CD4E8809
DEBIAN_FRONTEND=noninteractive DEBIAN_FRONTEND=noninteractive
apt update apt update