Changing the Default Terminal to Terminator on Ubuntu

Image
Terminator is a powerful tool for developers, allowing you to manage multiple terminal sessions in a single window. Features like splitting panes, tabs, and simultaneous input can significantly boost your productivity. Step 1: Install Terminator First, install Terminator using the apt package manager. sudo apt update sudo apt install terminator -y The -y option automatically answers 'yes' to any prompts during the installation process, streamlining the setup. Step 2: Set as the System Default Ubuntu uses a utility called update-alternatives to manage default applications. We'll use this tool to change the default terminal emulator ( x-terminal-emulator ) to Terminator. Run the Configuration Command Enter the following command in your terminal. A list of available terminals will appear. sudo update-alternatives --config x-terminal-emulator Select Terminator From the resulting list, enter the selection number corresponding to terminator and press Enter. ...

How to Keep Ubuntu 24.04 Laptop Running with Lid Closed

laptop lid closed and suspend

By default, Ubuntu suspends your laptop when you close the lid. However, in some use cases, such as downloading files overnight, using external displays, or running services, you may want your laptop to stay awake. Here’s how to configure your system so it continues running even with the lid closed.

Step 1: Edit the logind.conf File

Open a terminal and run the following command to edit the systemd logind configuration file:

sudo vi /etc/systemd/logind.conf

Find the following lines (they may be commented out) and modify them as shown below:

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

If any of these lines are commented out with #, be sure to remove the comment symbol.

  • HandleLidSwitch=ignore: Prevents the system from suspending when the laptop lid is closed, regardless of whether it's on battery or AC power.
  • HandleLidSwitchExternalPower=ignore: Specifically ensures the system does not suspend when the lid is closed and the laptop is plugged into AC power.
  • HandleLidSwitchDocked=ignore: Prevents suspend when the laptop is docked (e.g., connected to an external display or docking station).

Step 2: Restart the Logind Service

After saving the file, apply the changes by restarting the systemd-logind service:

sudo systemctl restart systemd-logind

That’s it!

Your Ubuntu laptop will now keep running even when the lid is closed. Just be cautious about heat buildup if you leave your laptop running in a closed space like a backpack.

Comments

Popular posts from this blog

Resolving Key Exchange Failure When Connecting with SecureCRT to OpenSSH

SecureCRT] How to Back Up and Restore SecureCRT Settings on Windows

How to Set Up Vaultwarden (Bitwarden) on Synology NAS (Best Free Alternative to LastPass)