So what happens if you set up a laptop to be a server and you close the lid? The system goes to sleep.

This is not fantastic behavior for a server, so to fix it, we have to edit

/etc/systemd/logind.conf

and add the following lines:

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

Reboot. Now the laptop won't sleep when the lid is closed.

#LinuxTips #Linux

(Obviously, this is only for systemd systems. Other init systems need a different method.)

Na, ihr fleißigen Linux-Leute...

Wenn ihr irgendwann kein Bock mehr auf df -h habt, dann nehmt einfach mal dysk.

dysk ist sehr gut... und bunt.

https://github.com/Canop/dysk

#adminLife #shell #linuxtips #linux
Set `torsocks curl check.torproject.org`.
Alias it for quick checks.
Always confirm Tor routing.
No assumptions allowed.
#Tor #LinuxTips #OPSEC
How to Add File Types to the "Create New Document" Context Menu in Linux Mint (Cinnamon, Nemo)

Learn how to add file types to the "Create New Document" submenu of Linux Mint's Cinnamon's Nemo's context menu.

Virtual Curiosities

🐧 #LTMLinuxTips

Forget to use sudo? Don't retype everything: sudo !!

It reruns your last command as root. Saved me more times than I can count!

#LinuxTips #LinuxTricks #CLI #OpenSource #Linux

So we all have used Windows, right. I have a Digital license for both that are tied to my account. But we all have paid for it and I'm sick of the choices that Microsoft has made. Microsoft: "Yeah let's bake in Ads and USELESS AI in the product our users pay for"

yeah I won't be using that. I still love Windows deep down, but that's Windows 10. Too bad it's not getting supported unless you pay for ESU. I'm gonna use Linux on PCs in the future.

In my opinion: Fuck Microsoft and Win11.

#linux #linuxdesktop #microsoft #enshittification #windows10 #windows11 #linuxtips #endof10

might edit this in the future

Boost!

🐧 #LTMLinuxTips

Want to quickly find out what distro you're using?

Run: cat /etc/os-release

This gives you detailed info like distro name, version, and more.

#Linux #LinuxTips #OpenSource #CommandLine #LinuxTricks

🧠Forgot a command? Use: apropos something

Example: apropos network — shows related commands.

#LinuxTips #CommandLine #OpenSource

💡 It's conference 🎤 season! Impress your audience with a slick QR code using these easy commands on Linux

✅ Add your content to a text file:
printf " Name: Zik Joseph\n Blog: https://zikusooka.com \n" > my_contacts.txt

✅ Convert text file (and contents) into QR code image:
qrencode -o zik.png -r my_contacts.txt

Thats all! Add zik.png to your slides. Easy, classy.

#ZikTIPS #TechTips #LinuxTips #Conference #Linux #FOSS #OpenSource

🧠💻 Você sabia isto sobre Linux?
Descobre as curiosidades e factos pouco conhecidos que vão mudar a forma que vés o sistema do pinguim! 🐧⚙️

📖 Novo artigo no blog:
👉 https://paper.wf/linuxe/sabias-que-q4wg

Se tu és fã de tecnologia, software livre ou só queres aprender algo novo, esta leitura é para tí. 😉

#Linux #Tecnologia #CuriosidadesLinux #OpenSource #BlogTech #SabiaDisso #LinuxTips

Sabias que...

O Linux foi criado por um estudante? Ler mais O Linux foi criado por Linus Benedict Torvalds em 1991, enquanto era estudante de Ciênci...

Linuxe
×

🐧 #LTMLinuxTips

Forget to use sudo? Don't retype everything: sudo !!

It reruns your last command as root. Saved me more times than I can count!

#LinuxTips #LinuxTricks #CLI #OpenSource #Linux