nano is a text editing program that is called up by the terminal so that you can edit a file that is stored somewhere in your system files. Another text editor is
vim, and there are several others. Which of them one uses is entirely by choice;
nano is usually installed already, so it’s a default choice.
Terminal is not a text editor itself. It allows you to enter and execute changes, such as installing or removing software, or changing configurations, including the contents of any file…which you first have to open using a text editor like
In the case of the gtk.css file, it doesn’t exist by default (because it wasn’t needed by any GTK-based application yet), which is why you see “No such file or directory” as output above. So first you have to manually create it before you can edit it in the terminal. By the way
css stands for Cascading Style Sheets; it is simply a way for the user to make GTK applications look and behave as desired instead of preset defaults.
So, in the terminal, to open any file with
nano so that you can edit the contents, the command would take this format:
sudo nano NameOfDirectory/NameOfFile&Extension
sudo; it’s not required in this command. Should be
nano NameOfDirectory/NameOfFile&Extension instead. See comments below.]
sudo - i.e. “super user do” - elevates your user privileges to admin level (required for making system changes)
nano - use the program
nano to edit the file that follows
“NameOfDirectory” - the name of the directory (folder) where the file is located
“NameOfFile&Extension” - the name of the file you want to edit, e.g. “gtk.css” or “abc.txt” or whatever
By the way, here’s a simple guide to basic terminal commands: https://ubuntu.com/tutorials/command-line-for-beginners#1-overview
So, in short, here’s what you are trying to accomplish with the custom background creation:
Create (if it doesn’t exist already) the
gtk-3.0FOLDER inside the
.configFOLDER in the
file systemhome folder. (TIP: a “.” before a folder or file name makes it hidden; you can’t see it in the files navigator unless you select “Show Hidden” from the menu. This is to prevent accidents.)
gtk-3.0FOLDER and create a FILE named
gtk.css, paste the script as indicated in the tutorial. Change the path to your saved background to correspond to the name and location of your background (mine is
file:///home/purism/Pictures/mybackground.png), and also set your desired transparency level. Save and close the file.
(Steps 1, 2, and 3 can be done either in the terminal as described above, or simply in the file navigator, using the menus, right-click, etc.)
phosh(the user interface of the Librem 5). You can do this with a terminal command (
sudo systemctl restart phosh) or by restarting the phone.
Hope that helps.