I
I
Igor Makhov2017-11-12 00:07:37
linux
Igor Makhov, 2017-11-12 00:07:37

How to set up X.org?

Installed X.org on a clean Ubuntu server, two questions arose about setting it up.
First, how can I make sure that when executing a command, the startxgraphical session starts in the seventh console (Ctrl + Alt + F7), and not in the one in which the command is typed?
Second, starting X.org starts Xterm, but how do you get something else to start, like Xfreerdp?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2017-11-13
@Igorgro

1. Nothing. startx - X test run method, which is used when testing, checking, crashing the DM. For regular work, it has not been used for years ... er ... fifteen.
2. When starting X through startx, the .xinitrc script is executed in the homework, respectively, all the commands that are in it will be executed. For example:

xautolock -time 15 -locker "xlock -mode dclock -messagefont 12x24bold -planfont 12x24 -font 12x24 -fg white -bg -black -time24" &
gnome-terminal --geometry $XGEOM+923+116 --title "X terminal" --hide-menubar &
gnome-terminal --geometry $XGEOM+185+49 --title "Root terminal" --hide-menubar -e "sudo tcsh" &
xhost +
exec starttde

W
Wexter, 2017-11-12
@Wexter

1) it already runs on console 7
2) man .xinitrc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question