Category: Linux

  • How to add ephemeral usb devices to the docker container

    Usually you can mount the device by defining that in your docker-compose file or by command line. But docker container won’t start if the device doesn’t exists at this moment. For this you can use the follwing workaround. Connect your device to the host system to get the required information for further processing. Get the…

  • Setup Ubuntu

    Bash completion (incl. Kubectl) Add to your ~/.bashrc: Java version management Use update-alternativesto switch between different java versions. Add an alias to your ~/.bashrc: Calling this alias java-select you can select one of the installed java versions. Node version management Use nvmto switch between different node versions. Clone nvm repo to your home directory ~/:…

  • Linux tipps

    Cron jobs Creating a script file in the daily run folder for Ubuntu. cd /etc/cron.daily sudo touch my-daily-job sudo chmod 755 my-daily-job Now add commands to the created script file and you’re done. #!/bin/sh do some job here You can verify that the script will run using this command. sudo run-parts –report –test /etc/cron.daily Firewall…

  • OpenVPN on Debian over UFW

    Complete OpenVPN How-To here: Click here for a very nice tutorial about OpenVPN on Debian UFW open ports Get running applications with their used ports netstat -tulpen UFW command to open ports ufw allow 22/tcp SSH Server !!! SSH port HAS TO be opened befor you activate UFW, in other case you will block yourself…