Edit /etc/systemd/logind.conf by using your favorite editor Find line “#HandleLidSwitch=suspend” The shortcut for searching in nano is [ctrl] + [w] Uncomment the line remove hashtag in front of the line Change value from suspend to “ignore” The following values can be used: HandleLidSwitch=hibernate –> hiberante when lid is closedHandleLidSwitch=ignore –>
Continue readingTag: Ubuntu
Ubuntu: Mount Bitlocker-Encrypted partition
Install dislocker Create folders for mounting Decrypt drive Mount partition Mount NTFS if above command is not working Mount automatically using /etc/fstab Instead of using your user-password you can also use the recovery-password by using the parameter recovery-password instead.
Continue readingUbuntu: Backup & Restore with tar
Create Backup Restore
Continue readingUbuntu: Create user directory afterwards
If you create an new user with useradd without using the option -m there will be created no home directory Create user without -m Create home directory manually by copying the template of /etc/skel Set owner of /home/testuser Set GECOS-field / comment after user was created When creating a user
Continue readingLinux: set hostname using hostnamectl
To set the hostname of a linux system run the following command in a terminal session Reboot system
Continue readingUbuntu: Mount Windows-Share on startup
Install cifs-utils Create directory to use as mount point for the Windows share Mount Windows share manually using terminal If supported use Version 3.0. Otherwise use a supported version (For example: vers=2.0) Mount Windows share on startup using /etc/fstab Create file with credentials Set correct permissions so that no unauthorized
Continue readingJoin Debian / Ubuntu to Active Directory Domain
To domain-join an debian / ubuntu – server you first need to install realmd and its dependencies Join the server to your Active Directory-Domain If you need to, replace “administrator” with another authorized user. If the above command fails:check if your user has the required permissionscheck the passwordtry the following:
Continue readingInstall NVIDIA Graphics Drivers on Ubuntu 18.04 Linux
Download driver https://www.nvidia.com/download/driverResults.aspx/114708/en-us Remove the installed NVIDIA drivers Disable Nouveau driver Install the downloaded NVIDIA Graphics driver Press tab instead of typing …
Continue readingUbuntu: Set Time and Timezone
Check current date / time List available timezones Set timezone Check current date/time configuration Sync time with ntp Ensure that “status systemd-timesyncd” is running Time synchronistation is enabled by default. Run the command timedatectl and ensure that “System clock synchroized” and “systemd-timesyncd.service active” are both set to yes. If not,
Continue readingLinux: Disable IPv6 on Linux-based operating systems
Debian / Ubuntu (Linux Mint etc.) / all debian-based Operating Systems Add this lines (to re-enable IPv6 simply remove them) Reload your configuration or reboot CentOS / RedHat To re-enable IPv6 run the following commands
Continue reading