when running Apache2 I like to use file manager to move webpage files in and out of the /var/www folder from USB drive. I compose pages on a Mac with iWeb and load them into RPi to test. I'm sure this can be done at the prompt with various linux commands, however I find it easier to have read/write privledges in startx and use the mouse to move files.malakai wrote:running startx under sudo is not recommended. I believe if you were to do it it would be sudo -H startx would need to look it up under the man sudo unless things have changed. What are you needing to do as root in X.

Yes. Even better, make shortcuts for sudo file manager and sudo editor on your desktop by editing the shortcut and just adding sudo in front of the commandhotwires81 wrote:what is the terminal command for file manager? I would just need put "sudo" in front o that command?
When you are in X and need to run the filemanager as root, you can type "sudo pcmanfm" in a terminal emulator.dancytron wrote:Yes. Even better, make shortcuts for sudo file manager and sudo editor on your desktop by editing the shortcut and just adding sudo in front of the commandhotwires81 wrote:what is the terminal command for file manager? I would just need put "sudo" in front o that command?
I want to run everything as Super user, I want X to be root, and to have complete read write access to all files automatically. Why ?, because we are using the raspberry pi to do things like control a brew fridge, or a fish tank pond. Why ? because it cost 35 dollars and the whole operating system is running on an SD card from the grocery store. Linux Gurus get jumpy at the mention of root privileges. We are not administering the pay roll server of the FBI. And I don't care if I' big-time crash' my model train controller. Typing in a password every time we need to change something or getting access-denied when installing (qt creator for example) can become tiresome.malakai wrote:running startx under sudo is not recommended. I believe if you were to do it it would be sudo -H startx would need to look it up under the man sudo unless things have changed. What are you needing to do as root in X.