Tim D'Annecy

bash

#bash #linux

QNAP recently enabled a maintenance prompt that appears when you connect over SSH. In the current version of the QNAP OS, I'm not able to turn off the prompt via GUI and needed to run a bash command to get it to go away.

I found this command somewhere and it's been working for me:

sed -r -i.bak 's/^(.*admin.*qts-console-mgmt.*)$/#\1/' /etc/profile

#Linux #bash

I'm using a Lenovo Thinkpad x240 with Elementary and I'm not happy with its performance. The laptop runs hot around 60°C and I can barely squeeze out an hour and a half when I'm on battery. The battery life is much better on Windows 10 and anecdotally, it runs cooler.

I found a few helpful packages for Intel hardware and there are also a few Thinkpad-specific packages in the repos that promise to improve performance. After running the commands below, restart and you should be golden. I'm getting much better battery life after these and I'm not noticing a performance hit.

Run this in bash:

sudo add-apt-repository ppa:linrunner/tlp -y && sudo apt-get update && sudo apt-get install tp-smapi-dkms acpi-call-dkms thermald intel-microcode tlp intel-gpu-tools -y && sudo tlp start