Category Archives: Linux

Stuff about Linux

Linux: Change working directory to script directory in bash

Hi,

short post. You start a bash script and want to change the working directory to the directory where the script is stored

Use this:

cd "$(dirname "$0")"

Michael

Linux: Disable IPv6

Hi,

to disable IPv6 on a Linux system you have to set some variables with sysctl.
Continue reading Linux: Disable IPv6

Linux: Use ssh agent forwarding while sudo to another user

Hi,

if you are logged on as a user1 and switch to another user2 with sudo the ssh agent from user1 cannot be used because the “switched” user2 does nothing know about the ssh-agent respectively the agent socket.
Continue reading Linux: Use ssh agent forwarding while sudo to another user

Linux: Install LAMP Stack on Debian 10 (Buster)

Hi ,

this post describes the steps to install a lamp stack on debian linux. This is the base for many content management systems like Joomla, WordPress or Drupal.
Continue reading Linux: Install LAMP Stack on Debian 10 (Buster)

Linux: Send Networkpackets from a shell

Hi,

the linux kernel has the ability to send simple network packets from a shell.
Continue reading Linux: Send Networkpackets from a shell