You are not logged in.
Hi,
I am referring to the Experimental BL Beryllium installed as described by johnraff in https://forums.bunsenlabs.org/viewtopic.php?id=7356.
When I open Geany as normal user a screenshot of the top of the program looks like this:
Geany as normal user
When I open Geany as root it looks like this:
Geany opened as root
The latter is how Geany looks, I would say, since decades , say in Ubuntu or Debian. I should add that the latter version is essential if you use Geany as programming IDE - which is its strength. Why can't I have the proper Geany as a normal user in BL Beryllium, please?
Thanks, bunsencub
P.S.In my thread https://forums.bunsenlabs.org/viewtopic.php?id=7543 I describe how I swetted my blood out to tweak Geny to work as IDE in BL, anyway.
P.P.S. By the way, Thunar looks different, too, when run as user or as root, so this strange behaviour seems not to be Geany related.
Last edited by bunsencub (2021-04-25 14:47:16)
Offline
Those looks are theme based (different themes for root & non-root). You'll probably see the same if you open File Manager as Root and/or non-root. The difference is typical so the user will know when they have G*d powers and when they are less at risk to send their system into the netherworld.
If you want both themes to look different you can enter lxappearance using sudo (for root) or without sudo for regular user themes.
Last edited by manyroads (2021-04-21 17:05:01)
Pax vobiscum,
Mark Rabideau - https://many-roads.com https:/eirenicon.org
i3wm, dwm, hlwm on sid/ arch ~ Reg. Linux User #449130
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
Offline
When I open Geany as normal user a screenshot of the top of the program looks like this:
Geany as normal userWhen I open Geany as root it looks like this:
Geany opened as rootThe latter is how Geany looks, I would say, since decades
, say in Ubuntu or Debian. I should add that the latter version is essential if you use Geany as programming IDE - which is its strength. Why can't I have the proper Geany as a normal user in BL Beryllium, please?
[...]
P.S.In my thread https://forums.bunsenlabs.org/viewtopic.php?id=7543 I describe how I swetted my blood outto tweak Geny to work as IDE in BL, anyway.
So, why open a new thread?
P.P.S. By the way, Thunar looks different, too, when run as user or as root, so this strange behaviour seems not to be Geany related.
No, as I pointed out in topic 7543, it is user related. Have you not tested changing themes with obconf and lxappearance, and changing aplication look from menu Edit => Preferences why start a new thread and ask the same question again? I can not understand that...
If you like the look of geany run as root, you can make geany run by you look the same!!!
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
...The difference is typical so the user will know when they have G*d powers and when they are less at risk to send their system into the netherworld.
Thank you, but I do not understand the logic behind this. Why should a normal user be forced to work with a program the essential icon buttons of are barely visible - rest assured I tried many different color schemes, and this one I show here is the best one I could muster - and
why would it be only the priviledge of someone who has G*d powers" to have the program look real with clear and distinctive buttons? Compare the pictures in the links I presented. Wouldn't it easier for someone to see that he is less at risk if he sees a good program and not a bad program?
Offline
Probably the One way to do this is to never elevate gui stuff, but do some workarounds
SUDO_EDITOR=geany sudo -e /etc/apt/sources.list
Should run geany as your user. (See 'man sudo' and search for '--edit')
https://wiki.archlinux.org/index.php/Sudo#Editing_files
https://wiki.archlinux.org/index.php/Ru … ns_as_root
...if he sees a good program and not a bad program?
That's just like your opinion, man...
Last edited by brontosaurusrex (2021-04-21 20:42:11)
Offline
Thank you, but I do not understand the logic behind this. Why should a normal user be forced to work with a program the essential icon buttons of are barely visible
Nope, it is not like that! Your problem to configure geany to your liking is not distinctive for the general linux user.
But, many openbox user prefer to have the gui light and only have text in geanys toolbar. So, that is in BunsenLabs the default setting for users.
@bunsencub, if you quit ignore what I write:
Check also in lxappearance, menu-choice "Other". There is settings for icons or text and icons and size for icons in toolbars.
Edit:
You also need to check Icon theme in lxappearance. I think you would prefer Adwaita or GNOME.
Last edited by rbh (2021-04-22 11:35:37)
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
OK, I'm totally confused.
I'm not on a BL system ATM, but IIRC correctly the difference in the user theme and the sudo theme is a hold-over from #! which I like, as it's a clear indication for the sighted among us that you are now in "You Could Wreck Your System" mode.
Geany, that theme on the user end is customized by @johnraff IIRC, so the difference from the root theme could easily be more dramatic.
-edit- Looking at the OP scrots again, that looks like a user theme in the first pic and Adwaita (the default Debian GTK theme) in the second, so the intended theming.
Actually, I have no idea what your second theme is, but the icons also switch from symbolic icons to GNOME or Tango, I can't tell anymore.
Notice font size has also changed. You can change all of this system-wide in, what, the root lxappearance-settings, for a start. sudo lxappearance, I think.
Just... when all your root and user themes match, don't forget what window you're in.
I don't care what you do at home. Would you care to explain?
Offline
Maybe we need to simply acknowledge that certain users don't appreciate BL's fine legacy. Making BL work a non #! way, simply destroys the legacy of #!. Could it be this is not a fit for everyone?
MODS: please delete if my comment is offensive/ inappropriate.
Pax vobiscum,
Mark Rabideau - https://many-roads.com https:/eirenicon.org
i3wm, dwm, hlwm on sid/ arch ~ Reg. Linux User #449130
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
Offline
^ Not at all offensive, or even controversial, for that matter. The Linux distro universe is so rich right now, how can you not find a setup you like? It would take some extreme laziness. I mean, Slackware is about to put out 15, a new release. Slack and Deb are the two dinosaurs of Linux...
https://www.osradar.com/slackware-15-beta-released/
Or get down with you inner geek and run Arch, Fedora, Mint, openSuse, Ubuntu, Kubuntu, Lubuntu, Xubuntu, Ubuntu Studio, Ubuntu Budgie. Knoppix, Siduction, Void, Kali... BSD (any one and you are a god). MX Linux, the most popular distro at the moment. PCLinux OS, PureOS. Bhodi, Tiny, AntiX, Cub, Puppy, elementary. Pinguy, Peppermint, Trisquel, Zorin. Deepin, Devuan, Mepis, Kanotix, Pardus, Raspberry. Sparky, SteamOS, Damn Small Linux, Sabayan, ArchBang, ArchLabs, Endeavour. Linux From Scratch, to name a few.
... all on the same computer if you want. We don't care, bring it!
Also, you can manipulate BL in so many ways. That's the whole point/advantage of using a light-weight, modular with few dependencies, faux DE.
What you can remove from base GNOME or KDE is very limited. Xfce gets it right, which is why we use utilities of theirs like xfce4-power-manager and xfce4-notifyd. You can use them without having to install the whole xfce4 metapackage.
I don't care what you do at home. Would you care to explain?
Offline
After being now more familiar with BL, I should rephrase my thread's title. A few wordsfirst: I was perplexed when I first opened BL Beryllium, it was so different from the other Linux distros I was used to. But, after some installations later, it treats my old notebook more gentle then, say, Ubuntu 20.04 or Debian Bullseye/sid. Now the new title:
Beryllium encourages executing programs as Root. Is this safe?
Think of a normal Linux user who has his first experience with BL. He will be happy to find programs he's familiar with. He even finds the lightweight programming IDE Geany in Menu > Applications > Development. BL comes with it per default, no need to install, as necessary in other distros. Happily, opens Geany and texts in a simple code from, say, "Hello World!: Computer Programming..." or "Coding for Kids". This what I see when I open Geany in my version of BL and type a short Python code (the coding error is deliberate):
Geany obviously finds the error, but that's it. After correcting, the user will not find any means to build and test the python script.
Then, the user finds "Run as root" in the "Build" menu. Kind of strange, but, like magic, klicking it the real Geany comes out of the bottle, like so:
Building, running the script... you name it, everything now is fine! Everybody so far kept telling me "Don't run a programm as root user, if it is not absolutely necessary". Is it safe then in BL to run programs as root? Woulnd't this be risky behaviour?
Thanks, bunsencub
Last edited by bunsencub (2021-04-23 16:12:33)
Offline
I was perplexed when I first opened BL Beryllium, it was so different from the other Linux distros I was used to.
If you are used to Gnome or KDE, Openbox and BunsenLabs, is a little different yes. But, new user, should read at lest "Introduction to the Bunsenlabs Lithium Desktop" and don't be so chocked.
Beryllium encourages executing programs as Root. Is this safe?
No, that is not true!
the user will not find any means to build and test the python script.
Most users would very easy find the Build Menu
Then, the user finds "Run as root" in the "Build" menu.
No, not in my installations. I have "Open as Root"
Kind of strange, but, like magic, klicking it the real Geany comes out of the bottle,
The look of default user and geany BL theme is as "real" as the traditional look.
Everybody so far kept telling me "Don't run a programm as root user, if it is not absolutely necessary". Is it safe then in BL to run programs as root? Woulnd't this be risky behaviour?
If you have to run as root, you have to, but, then you have to be carefull. As root, you can damage the whole system. As user, you can only damage your own files.
The use of "sudo", has been implemented to minimize the risk for damage.
But, as I have pointed out, if you are dissatisfied with the look of a graphical program run as user, you can change the look.
You can configure lxapperance to use Adwaita or Gnome icons insted of Paper icons.
You can configure lxapperance to use big icons.
Do not blame BL for your problems.
Last edited by rbh (2021-04-23 19:57:25)
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
You don't build python scripts to run them - they are scripts. Make the file executable, or run with
python scriptname.py
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
By way of encouraging personal innovation, as @hhh noted,
sudo lxappearance
is always available to you @bunsencub should you wish to make things more beautiful or accommodating to your aesthetic. The above allows you to change the theme for root tools such as file managers and applications which are reactive to typical OB themes.
Pax vobiscum,
Mark Rabideau - https://many-roads.com https:/eirenicon.org
i3wm, dwm, hlwm on sid/ arch ~ Reg. Linux User #449130
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
Offline
sudo lxappearance
But, he is satisfied with look of how geany looks for root, but dissatisfied with the look for standard user.
This is the third thread on that theme...
His problem is that he can not find menu "Icon Theme" and "Other" in lxappearance, to set icons for user.
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
@rbh then perhaps @bunsencub should breakdown and enter the following in terminal mode
lxappearance
...for those pesky non-root theme/icon changes.
Pax vobiscum,
Mark Rabideau - https://many-roads.com https:/eirenicon.org
i3wm, dwm, hlwm on sid/ arch ~ Reg. Linux User #449130
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
Offline
Yes @manyroads, that is what I've proposed a couple of times.
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
Thanks for the many replies. I cannot answer them all, my apologies! So, for short: the issue here is neither how to change colors in BL (Preferences > Appearance does a fine job) neither how to run a python script in command line (I know that; a couple of years ago I developed a python program to rename image files on my computer, with GUI, directory and file picker, you name it..., just for the fun of it), the issue is about function, and, sorry that I shout now:
GEANY AS IT IS IN MY EXPERIMENTAL INSTALLATION OF BERYLLIUM DOES NOT FULFILL ITS INTENDED FUNCTION AS AN INTEGRATED DEVELOPMENT ENVIRONMENT, IDE that is, when you use it as a normal user. Prove me wrong, please, I make it easy for you:
Open Menu > Applications > Development > Geany and text in, or conveniently copy and paste this simple Python script:
inputString = input('Enter a sentence: ')
print('The inputted string is:', inputString)
Compile it (Under "Build"), no error, if copied correctly. Now execute it, hitting <F5> is the simplest way. An empty terminal will open, no text, no nothing
Now you choose in Geany under "Build" the option "Open as root". Do that, hit the cogwheel button or <F5> to execute, the terminal appears again, but this time with a small prompt to input text. Type whatever small text you wish to end the program.
I would be vey happy if you would tell whether your results will be the same as mine.
Thanks, bunsencub
EDIT: If your compilation result is "Python not found" you should do
$ cd /usr/bin
$ sudo ln -s python3.9 python
Recompilation should now be ok.
Last edited by bunsencub (2021-04-24 18:57:03)
Offline
Is it because you are asking to execute a script out of $path without root?
Where are you saving the script?
Anyway, seems like a permissions issue so Geany doesn't arbitrarily execute random scripts... Feeling warmer.
Offline
the issue here is neither how to change colors in BL (Preferences > Appearance does a fine job)
It started so: "BL Beryllium: same program, opened normal or as root, different. Why?", is the subject of this thread. When you had understand that, you should have ended the thread and started a new one.
sorry that I shout now:
GEANY AS IT IS IN MY EXPERIMENTAL INSTALLATION OF BERYLLIUM DOES NOT FULFILL ITS INTENDED FUNCTION AS AN INTEGRATED DEVELOPMENT ENVIRONMENT, IDE
There is absolutely no need to shout! And, it is not nicer to first beg forgiveness for shouting.
I would be vey happy if you would tell whether your results will be the same as mine.
I used the shorter code "print("Hello World")", got the same result alson in geany 1.33 (Debian Buster).
I have never used geany as IDE, the error might be because of user handling error.
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
Where are you saving the script?
In my Home directory, e.g., /home/<me>/Documents or in a different partition of my HD, as I keep doing since decades. Never had this problem, neither in Ubuntu, nor Debian, nor Fedora nor other distros. And never did I have to use Root with Geany. And I did install BL Beryllium exactly as described by johnraff. What might I be doing wrong in BL?
Last edited by bunsencub (2021-04-24 19:55:05)
Offline