How to start GUI from command line?


I posted an answer to an older thread of similar topic with answers from various sources. Following is a copy of that answer adapted for this thread.

Following works:

$ (gui_app &> /dev/null &)

This is Nathan Fellman's answer plus redirection.

"&> /dev/null" redirects both stdout and stderr to the null device. The last ampersand makes the process run in the background. The parentheses around the command will cause your "gui_app" to run in a subshell.

Doing this will detach the "gui_app" process from the console you execute this command from. So even if you close the window parent terminal emulator is running in, "gui_app" won't close. I ran this then looked at the process tree with "pstree" command and found an application started this way will become child process to "init".

For example,

$ gui_app &> /dev/null &

will run the application in the background, but it will become a child process of the console process and will terminate when you...

0 0

CentOS is a robust Linux distribution used primarily in Web server environments. CentOS provides a stable server platform and is available as a free, open-source operating system for use by hosting providers and end users alike. While CentOS is a powerful Web server OS with many Internet related features, it lacks a graphical user interface with basic installations. Consequently, if you want enable a GUI from the CentOS command line, you'll need to first download and install a compatible graphical desktop environment, such as Gnome or KDE.

Video of the Day

Log in to the CentOS operating system.

Type the command "su -" to switch to a root session.

Type the command:

yum groupinstall "X Windows System" "GNOME Desktop Environment" or yum groupinstall "X Windows System" "KDE Desktop Environment"

to install your preferred desktop environment.

Type the command "startx" to start the X windows system and your preferred desktop...

0 0

I've installed the following version of ubuntu om my machine.


But when I switch on the computer, I get command line.

Ubuntu 12.04 LTS COMP-1245 tty1

Once I provide my username and password, it authenticates login and then displays a link to documentation.

Now, how can I start GUI? I'm stuck at command line?

If you tried the command startx, but the error command not found was returned, then to install a graphical desktop, in case it is not installed, you would type this:

sudo apt-get install ubuntu-desktop

Try to use startx in your tty , if it does not work on one terminal try ctrl+ alt + [F1 to F6] in order to switch a new tty

I have had the same problem. Solution is as the said try and install Xorg and the Ubuntu Desktop. also don't forget the build essential pkg

$ sudo apt-get install build-essential $ sudo apt-get install ubuntu-desktop

you might have to install xorg seperate but...

0 0

How to start GUI from command line? error

By | September 14, 2015 | Category Uncategorized

By GamingHeadquarters HD

hi when i try load up the gui i am getting this error

-bash: syntax error near unexpected token `Log' root@kosh115:~# (==) Using system config directory "/usr/share/X11/xorg.conf.d" -bash: syntax error near unexpected token `Using' root@kosh115:~# root@kosh115:~# Fatal server error: -bash: Fatal: command not found root@kosh115:~# xf86OpenConsole: Cannot find a free VT: Invalid argument -bash: xf86OpenConsole:: command not found root@kosh115:~# root@kosh115:~# root@kosh115:~# Please consult the The X.Org Foundation support -bash: Please: command not found root@kosh115:~# at -bash: at: command not found root@kosh115:~# for help. > Please also check the log file at "/var/log/Xorg.0.log" for additional information. -bash: syntax error near unexpected token `Please' root@kosh115:~# root@kosh115:~# ddxSigGiveUp: Closing log...
0 0

How to start CentOS GUI from the command line

If you installed CentOS as a server, the graphical user interface may not be configured to start and you will be presented with the CentOS terminal window at log in. You can still access the desktop by running a simple command or enable the GUI to ru[More]

How to execute SQL scripts from the command line

SQL, short for "Structured Query Language," is a script language used for altering information in a database, according to the Indiana University Information Technology Services website. SQL uses a set of script commands to create new databases, add[More]

How to Update the AVG From the Command Line

AVG is a free utility that anyone can download and run to keep their computer protected from viruses and malicious software. As with other antivirus utilities, AVG must update itself regularly over the Internet to download the definitions for the lat[More]

How to Start NetMeeting From a Command...

0 0

Is there a way to run a GUI application (GNURadio in this case) from [a virtual console]?

I've replaced "command line" here with VC (sometimes VT, virtual terminal), because that's what you are referring to. You can of course start a GUI application from the command line in a terminal emulator on a running GUI desktop. The nomenclature here can be confusing (non GUI "virtual terminal" vs. GUI "terminal emulator"; the former is still considered virtual because historically, a real terminal was an actual piece of hardware, whereas your screen and keyboard are interfaces to a virtual software version).

Anyway, the general answer here is no, although there are exceptions. This is not one of them, since it depends on GTK, which is a widget library dependent on the X windows stack.

a full desktop environment to conserve resources

A "full desktop environment" may be ambiguous since the technical definition of desktop environment in the context of the X stack...

0 0
Page 1Next Page

How to Win Friends and Influence People by Dale Carnegie ( Paperback)

More Results Related to how to start gui from command line bootup

Quick Start BeanShell Lightweight Scripting for Java
Quick Start Welcome to BeanShell. This is a crash course to get you going. We'll leave out many important options and details. Please see the rest of the user's guide ...
Read More about Quick Start BeanShell Lightweight Scripting for JavaKitematic
Docker Hub Integration. Easily search and pull your favorite images on Docker Hub from Kitematic GUI to create and run your app containers.
Read More about Kitematichttp www oracle splash netbeans org maintenance index html
We would like to show you a description here but the site won’t allow us.
Read More about http www oracle splash netbeans org maintenance index htmlSemichem Inc The AMPAC People
Semiempirical Quantum Mechanics with State-of-the-Art Graphics Faster. Smarter. Just...
0 0
0 0

How do I launch GUI Emacs from the command line in OSX?

I have downloaded and installed Emacs from

I’ll accept an answer fulfilling all of the following criteria:

The emacs window opens in front of my terminal window. Typing “emacs” launches a GUI Emacs window. Finding files in that window will default to looking in the directory from where I started Emacs. Typing “emacs foo.txt” when foo.txt exists launches a GUI Emacs window with foo.txt loaded. Typing “emacs foo.txt” when foo.txt does not exist launches a GUI Emacs window with an empty text buffer named “foo.txt”. Doing ^X^S in that buffer will save foo.txt in the directory from where I started Emacs.

how to open emacs via OSX terminal [duplicate]

This question already has an answer here: How to start “emacsformacosx” in terminal 5 answers How to launch GUI Emacs from command line in OSX? 6 answers how do you open emacs for OSX? I ha

How to launch Windows Scheduler...

0 0

When using JMeter you will usually follow this process:

1.0.1 Test plan building¶

To do that, you will run JMeter in GUI Mode.
Then you can either choose to record the application from a browser, or native application. You can use for that the menu

Note you can also manually build your plan. Ensure you read this documentation to understand major concepts.

You will also debug it using one of these options:

and View Results Tree renderers or Testers (CSS/JQUERY, JSON, Regexp, XPath).
Ensure you follow best-practices when building your Test Plan.

1.0.2 Load Test running¶

Once your Test Plan is ready, you can start your Load Test. The first step is to configure the injectors that will run JMeter, this as for any other Load Testing tool includes:

Correct machine sizing in terms of CPU, memory and network OS Tuning Java setup: Ensure you install the latest version of Java supported by JMeter Increase...
0 0