![]() Add export EDITOR/usr/bin/gedit to your /.profile if necessary. This uses your favorite editor, taken from the EDITOR environment variable, or a system default if you havent expressed your preference. I recommend using sudoedit /etc/xinetd.d/tftp instead. The icon should appear in the Dash, and when you click it gksu should ask for your password.ĭue to an extra step in part (2), now you can also type freedom-as-root in the terminal and it will be enough to run yourfreedom with privileges. If yours doesnt, you can create the file first with sudo touch /etc/xinetd.d/tftp. Another newer way to do this, is to open the file through its GVFS admin:// path rather than its traditional Unix-style path. Just open the Dash and type your freedom to see if there were any problems. However, if you set it to gedit, keep in mind that commands like sudoedit filename wont work when no GUI is available, as is often (albeit not always) the case in a virtual console or via SSH. Go to a terminal again and type: chmod +x ~/bin/freedom-as-root (If you wish you can get some other free/libre icon from the internet, Wikipedia is a good source for these.) Save it as freedom.svg to your home folder. (Instead of your-username make sure to type your actual username!) 3: Open a terminal againīefore, opening the terminal download this icon, by clicking the image and Save as. ![]() First, we'll launch gedit and edit the newfstab file to make the required changes. ![]() We'll need to correct these two attributes before we copy the file back. The group permissions for newfstab are read-only. Replace the scratch-text-editor with gedit and skip the part before &(include &) since it automatically created non-exist file, and the new. The group permissions are read and write. Icon=/home/your-username/.icons/freedom.svgĮxec=/home/your-username/bin/freedom-as-root As we can see the owner is root and the file mode permissions are different. (This line in ~/.bashrc adds ~/bin to the search path for executables.)Ĭreate a new file and add the following to it: Go to the last line of this file and add the following new line: PATH="$PATH:$HOME/bin" In the file selection dialog, navigate to your home folder and type Ctrl+ H to make the hidden files visible. I will assume you've named this script as freedom-as-root without any file extensions. Save it to the bin folder you've created in your home folder. The last line is to install gksu a GUI frontend for su. I would very much prefer to do it in a GUI text editor rather than using command line tools like nano or vi. The first two lines will create a folder called bin in your home folder and How to edit files in GUI text editors as root Ask Question Asked 2 years, 8 months ago Modified 2 years, 8 months ago Viewed 16k times 5 This time and another I need to edit some files that are supposed to be edited by root only. If you want to have a launcher for yourfreedom in the Dash 1: Open a terminalĬp ~/Desktop/freedom-folder/freedom.jar ~/bin Just open the terminal ( Ctrl+ Alt+ T) then cd ~/Desktop/freedom-folder If I understand correctly this is what you have: ~/Desktop/freedom-folder:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |