Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the copy-the-code domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pb-seo-friendly-images domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the johannes domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121
Run terminal as root user by default in Ubuntu - PC✗3
Run terminal as root user by default in Ubuntu

Run terminal as root user by default in Ubuntu

Edit the sudoers file with:

sudo visudo

visudo is a command created with the sole purpose of locking the configuration file for sudo command located at /etc/sudoers

Add to the end of the file:

<username> ALL=NOPASSWD: ALL
image 10 - Run terminal as root user by default in Ubuntu

Syntax is defined as: username hosts=(users:groups) commands so in our case username ALL= NOPASSWD:ALL means that the user can run any command anywhere without password.

Save the file and exit, the next thing is to edit the shell command.

Navigate to Preferences > Profile > Command and check the “Run a custom command instead of my shell” then as a custom command set sudo gnome-terminal

image 11 - Run terminal as root user by default in Ubuntu

That’s it, now every time you open the terminal icon it will start the terminal as root user.

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.