Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: Rudock1 on April 15, 2017, 07:41:55 AM

Title: spacefm question about setting 'Preferences>Advanced>Terminal' to urxvt
Post by: Rudock1 on April 15, 2017, 07:41:55 AM
Hi All, if you use SpaceFM, I have a quick question.

I enjoy using SpaceFM for most GUI file management tasks.  Persistence is pretty good except for locking in my preferred terminal, urxvt.  The app defaults to aterm.  SpaceFM has several "Root" and "SU" preference options which don't quite relate to the Tiny Core root sudo su way.  In SpaceFM when you change terminal preference it takes you down a "Save Root Settings" route because "SpaceFM runs some commands as root via su, these settings are best protected by root."

It pops open a SU terminal window asking for "Password:"  There is a settings file in /etc/spacefm named tc-as-root where I think this gets saved but it is not intended to be edited, or so it says.

Is there even an answer for the SU terminal password question? 
Have you managed to lock in your favorite non-aterm terminal?

Manually editing and adding etc/spacefm/tc-as-root to .filetool.lst works but it does say it is a SpaceFM session file not designed to be edited... I'd like to respect that if possible if there is another way with the so-called "SU" password.

thx
Billy

 
Title: Re: spacefm question about setting 'Preferences>Advanced>Terminal' to urxvt
Post by: Misalf on April 15, 2017, 08:28:56 AM
Editing  /etc/spacefm/tc-as-root  and adding that to the backup is exactly what I would do. ;)
Not sure about how to get rid of that terminal window asking for sudo password which isn't needed anyways.
Title: Re: spacefm question about setting 'Preferences>Advanced>Terminal' to urxvt
Post by: coreplayer2 on April 15, 2017, 01:51:54 PM
Interesting because I often think about modifying the code to open a new window with elevated privileges without the need to enter the password..

Meanwhile two methods I know of with SpaceFM to open a privileged window are
1. File > Root Window > Enter password  (assuming one has been set)
2. " sudo spacefm "

(https://dl.dropboxusercontent.com/u/35323031/windowshot-2017Apr15-134232.png)
Title: Re: spacefm question about setting 'Preferences>Advanced>Terminal' to urxvt
Post by: TomyTurbos on February 12, 2019, 06:35:06 PM
I'd like to report that a situation with spacefm and interfacing to 'root' still exists under TC10.0, where Selecting 'Edit as Root' requests a password, despite there being no password.  It opens a terminal window, requests a password and then terminates after any input.

I don't know if this behavior exists in the original code or if it has to do with the build for TinyCore, but it's something to look into.  Spacefm is otherwise a fantastic app, IMO.

Title: Re: spacefm question about setting 'Preferences>Advanced>Terminal' to urxvt
Post by: coreplayer2 on February 12, 2019, 07:54:47 PM
I'd like to report that a situation with spacefm and interfacing to 'root' still exists under TC10.0, where Selecting 'Edit as Root' requests a password, despite there being no password.  It opens a terminal window, requests a password and then terminates after any input.

I don't know if this behavior exists in the original code or if it has to do with the build for TinyCore, but it's something to look into.  Spacefm is otherwise a fantastic app, IMO.
AIUI if you set a root password and add the password files to backup,  then root window and root terminal open as expected after entry of the correct password.
see:  http://wiki.tinycorelinux.net/wiki:passwd

And I agree SpaceFM is a very useful file manager

:)
Title: Re: spacefm question about setting 'Preferences>Advanced>Terminal' to urxvt
Post by: TomyTurbos on February 12, 2019, 09:00:42 PM
I'd like to report that a situation with spacefm and interfacing to 'root' still exists under TC10.0, where Selecting 'Edit as Root' requests a password, despite there being no password.  It opens a terminal window, requests a password and then terminates after any input.

I don't know if this behavior exists in the original code or if it has to do with the build for TinyCore, but it's something to look into.  Spacefm is otherwise a fantastic app, IMO.
AIUI if you set a root password and add the password files to backup,  then root window and root terminal open as expected after entry of the correct password.
see:  http://wiki.tinycorelinux.net/wiki:passwd

And I agree SpaceFM is a very useful file manager

:)

OK, cool.  Does this mean that every time I say 'sudo' or 'sudo su' in aterm I will have to provide the password, or does this only apply to applications such as spacefm?  The reasons I DON'T want to do that are pretty clear (it's a PITA).