Are you doing it in the terminal or in the file navigator?
In nano, as instructed.
Your last return was very instructive.
I picked up a lot and already saw the mistake I made with the picture… the rest was lost not included in the initial frame.
Thank you very much, appreciate it.
No problem…
So using nano
in the terminal, once you copy and paste the script in, look at the bottom of the screen for options. One is Cntrl X
, which means close. Once you type that, you will get the option to save changes or discard. You should be able to save it and close it, then exit the terminal.
And actually…I think sudo
is not required for this operation. Sorry.
In that case, if the file has already been created, it would be best to check output of
ls -l ~/.config/gtk-3.0/gtk.css
in order to make sure that it didn’t pick up any unusual ownership or permissions.
1 tiny issue left to explain please,
I found the the folder gtk-3 inside the .config folder.
So far so good!
How do I create a file inside a folder being in the app “files” on the Librem 5 phone not a desktop.
I checked the shortcut section.
Thank you.
This should do, within the terminal:
cd ~/.config/gtk-3.0/
touch gtk.css
ls -la
EDIT: @dav69, you’ll need instructions from this important post: Terminal to clipboard, although Ctrl+c
and Ctrl+v
will work on Librem 5 keyboard very well.
One way is to rename your background picture to mybackground.jpg
and put/paste it in here: /home/purism/Pictures/
or just “Change the path to point to your chosen image”.
Each raw is separate command/step:
-
cd ~/.config/gtk-3.0/
-
ls -la
−− you’ll see that this folder is empty -
touch gtk.css
-
ls -la
−− you’ll see that above, third one, command created neededgtk.css
file
Above linked text (code) to be put into gtk.css
file you’ll select as a whole and touch Ctrl
and letter c
to copy it. Than switch to with nano
opened gtk.css
file and touch v
to paste. Touch/press again Ctrl
to disable this button and use keyboard as usual to save
and close
this gtk.css
file.
This got me when I was new, but in nano after pressing Ctrl x press y and then press enter to finish saving.
For the GUI way, you can enter the .config directory, then enter the gtk-3.0 folder, then from the “File” menu at the top of the files navigator, select “Create New Document,” then “Empty Document,” which you should name gtk.css.
Next, after you have copied the full text of the script, go back and open the empty gtk.css file, paste the text, then save and close.
As @Quarnero said, just name your saved background the same as it’s called in the script, and place it in the Pictures directory. But if your background is saved as a .jpg, just change the script to read .jpg instead of .png.
For select-all, copy, paste, and other functions using the on-screen keyboard, first:
Click the “globe” symbol on the keyboard.
Choose “Terminal” for the keyboard type/layout.
Then click on the “>_” key.
Next click on “Menu” and then “Select All.”
Then click on “Menu” and then “Copy” or “Paste,” as required.
the “File” menu at the top of the files navigator, select “Create New Document,” then “Empty Document,” which you should name gtk.css .
I cannot find the “File” menu!
Can you show me a pic?
Oops… Sorry for the confusion. I use a different Files manager, called nemo
, not the default one, which is called nautilus
.
Nemo
looks like this:
In nautilus
, which I also have installed, I see that there is an option to create a folder, but I don’t see an option to create a document.
Which serves to illustrate why I loathe Gnome’s super-dumbed-down and somewhat opaque menu options.
If you want to add nemo
Files manager, you can run this in the terminal:
‘sudo apt update’
And then if any packages are available to install, follow with:
sudo apt upgrade
Then: sudo apt install nemo
Or search for it in the software store app.
You can have both File managers installed at the same time. Use whichever can easily do what you want.
I have installed nautilus! Thank you.
I thought I lost it altogether, not seeing what you were explaining.
So now I have a folder gtk-3.0 with a file named gtk.css.
I cannot copy paste the code because my mail is not on the phone.
I have to write it out in the terminal.
Does it need to be written stepwise as shown in the examples?
I just tried to enter the text straight into gtk.css, it is possible.
Aside: You can solve that by enabling the SSH server on your phone and SSHing in from the computer that does have your email (or anything else). Then you can cut and paste from email (or anything else) into a terminal session on your phone.
My phone is still not connected, I am still learning how to install the tunnel. Only after that I will turn my phone into my daily driver.
Thank you for your input.
To be clear … I only meant: SSH access from the local network, assuming that another computer on your local network is the one that receives email etc.
The first 3 lines are greyed out.
Are they part of the text to be inserted in the gtk.css
Thank you so much.
Thank you
Everything between /* and */ is a comment. Its for people to read and isn’t code run by anything.
Thank you so much, it means I can leave it out?