Category Archives: Linux

Stuff about Linux

Linux: Add a user with a disabled password

Hi,

these commands adds a user with a disabled password:
Continue reading Linux: Add a user with a disabled password

Advertisment to support michlstechblog.info

Linux/systemd: Set default runlevel to console

Hi,

for server systems it isn’t necessary to start a graphical user interface because they usually run headless.
Continue reading Linux/systemd: Set default runlevel to console

Linux: Load iptables/firewall rules at startup

Hi,

when you set up firewall rules by iptables these rule are not persistent. This means they are volatile and will be deleted at reboot time.
Continue reading Linux: Load iptables/firewall rules at startup

Linux: Serial interface/terminal redirecting/forwarding over a TLS encrypted TCP/IP connection

Hi,

the scenario: A device with a serial console for example a raspberry pi, orange pi, esp8266 with tasmota, digital multimeter etc. runs headless, but you want to able to connect to the serial console with linux system here called serialServer over the network.
Continue reading Linux: Serial interface/terminal redirecting/forwarding over a TLS encrypted TCP/IP connection

FTP: Setup a simple (read only) FTP server without install everything

Hi,

for some reasons, for example firmware updatse of IoT devices you need a readonly/anonymous FTP server and you don’t wont install and configure a whole ftp solution for this.

The python module twisted offers such a simple server. The ftp server must started with root privileges because it uses a port <1024. I always create a virtual python environment (ftp-venv) for such things.
Continue reading FTP: Setup a simple (read only) FTP server without install everything