![]() ![]() Ubuntu, however, has configured visudo to use the nano text editor instead. None of these add-ons is going to revolutionise your productivity but if they shave a few seconds off the drudgery of daily computing here and there please make sure you spend the time wisely, i.e. Traditionally, visudo opens the /etc/sudoers file with the vi text editor. you can mount the remote file system in a local directory through sshfs, then you can use gedit to edit those files, or whatever application running in the local machine to edit the files in the local ssh mapping. in a terminal write: sudo gedit /path/to/your/file. I think that the question is not about how to use the ssh console command, but some way to use gedit over ssh connections. nautilus-ideviceinfo to see advanced info in the properties dialog If only root has write access to those files, youd need to run gedit as root.nautilus-kdeconnect to level up KDE Connect integration.nautilus-image-converter to rotate and resize images. ![]() nautilus-hide to quickly hide files and folders.I will assume you've named this script as freedom-as-root without any file extensions. desktop, or other text-related file and quickly open in Gedit to do what I need to, then be on my way.īut hey: I’m also the guy who will repeatedly smush the ↑ key 20 times to find the sudo apt dist-upgrade command I ran last Saturday rather than retype it - little timesavers like this are much needed.Īs (most of) you may (do) know there are other nifty Nautilus extensions available in Ubuntu’s archive (and likely the archives of most modern Linux distros) including: Write the following script: /bin/sh gksudo java -jar /bin/freedom.jar Save it to the bin folder you've created in your home folder. To following article will describe how to access root terminal and hence gain root access to the Ubuntu 20.04 Focal Fossa Desktop/Server system. Terminal opened as root using the sudo command. But for a graphically-led chap like myself? Well, I appreciate being able to right-click on a buried config. Simply execute the following command from your current terminal session: sudo gnome-terminal. It’s arguably more efficient to use a command-line text editor to edit text files as root using. However, If I try to run gedit as root to edit my /etc/fstab file I get this: Code: GConf Error: Failed to contact configuration server some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. Henceforth, you can right-click on pretty much any file in the file manager and select “Edit as Administrator” - a bit Windows-y worded, that - to open the file with root permissions in whatever the default/associated app for that type is Gedit (thanks Jo).Īnd open it as root safely, without inadvertently screwing up the location of any configuration files touched during your session. Simply go to a terminal and run: sudo apt install nautilus-admin Here’s a little time-saver if you (like me) often need to edit text files as root in a graphical app on Ubuntu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |