JRehkemper.de

JRehkemper.de

- Homepage and Wiki of Jannik Rehkemper -

New Posts

Limit Interface Bandwidth with Wondershaper

Wondershaper is a simple bash script that is using tc und the hood. tc allows you to introduce packet-loss, latency or bandwith-limits on your networkinterfaces. It’s really powerful and also quiet complex. Wondershaper makes it easy to limit the bandwith with just one, readable command. Installation The easiest way to install is, to simply copy the bash-script from github and past it on your server. wget https://raw.githubusercontent.com/magnific0/wondershaper/master/wondershaper -o wondershaper.sh After hat make it executable and that’s it.

TrueNas ISCSI Storage for Proxmox Backup Server

If you have a TrueNas and want to save backups from the Proxmox-Backup-Server (PBS) onto it the best way to connect the two is via iscsi. Reason being that PBS uses a lot of small chunks which is very slow over NFS, CIFS or SFTP. ISCSI on the other side handles storage just as local block devices and encapsulates the SCSI-commands in IP-packets. That way small or large chunks doesn’t make such a difference.

Set User Password

You own Password You can change you own password with passwd. You will need to enter you current password, before you can set a new one. [tux@server]$ passwd Password of another User Root can reset other users passwords. You will not be asked for the current password and can set a new one. [tux@server]$ passwd <username> Force User to reset Password on Login You can use the chage command to force a user to reset their password.

Reset Root Password on OpenSuse

If a normal user forgets his password it can be reset by root. But if root forgets it’s password it is not that easy. But there is a way. You need to boot your system into recovery mode to circumvent the login process. This is only possible if you physical access to the system (or the console of a VM) and may reboot the system. Enter Grub Menu While the system boots you need to enter the grub menu.

Manage Service with SysVInit

SysVInit is the predecessor of systemd and is responsible for starting, stopping and managing services. Where systemd uses configuration-files, SysVInit uses bash-scripts to manage services. These Scripts are located under /etc/init.d/* or /etv/rc.d/init.d/*. Check if SysVInit is running The initsystem has always the pid 1. So you can simply check the name of the process number 1 and see what you init system is. [tux@server]$ ps aux | head ... /sbin/init Unfortunately this doe not certainly mean, that you are running SysVInit.