[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Run a GUI program from root account withour needing to run terminal.

Hi,

How to run a command from root without terminal?

Image a want to run 10 GUI programs from root.
This means I have to have useless 10 terminals open.
This is a real mess.

Operating system is Fedora Core 20.

Thanks.
0
Nusrat Nuriyev
Asked:
Nusrat Nuriyev
  • 4
  • 3
1 Solution
 
ozoCommented:
What do you want to use instead of terminal?
Would you be satisfied running the 10 programs from one terminal?
0
 
gheistCommented:
Why you need a terminal for GUI program?
Run command & and it is no longer bound to terminal.
0
 
Nusrat NuriyevAuthor Commented:
ozo, no. Simultaniously.

gheist , because I want to run it as root.
When I start GUI programs it from menu(left bottom corner "F" sign) it starts as a usual user.

The solution is to press Alt+F2, type command and then press settings type root and password then execute.

The question is how I can run GUI programs from root by default, however other programs (non-gui ) will still run as it has been logged in. (i don't want to log in to the system as a root).
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
gheistCommented:
It seems you run kde.
Yes, just prepend them with "kdesu" and they will run as root.
0
 
Nusrat NuriyevAuthor Commented:
Accepted.
0
 
gheistCommented:
gnome equivalent is gksu
or you can make sudo to not reset $DISPLAY and $HOME.
0
 
Nusrat NuriyevAuthor Commented:
or you can make sudo to not reset $DISPLAY and $HOME.
1. Does this part apply to gnome?
2. What is $DISPLAY and why echo $DISPLAY gives me an empty string?
0
 
gheistCommented:
Well read manual pages on your system.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now