thing is that xinit starts what it says in the xinitrc file (~/. Note that just starting X won't give you a terminal or anything, just a black screen. If you really want to investigate, try switching to a "real" terminal and writing X :1 (or Xorg :1) (then reading the man pages actually read the X logs first)
#Startx vs xinit software#
I don't know what setup lightdm does but i suspect it succeeds where startx fails because of the console/logind (blame would be on the distribution you are using not shipping with good configuration, or maybe a piece of software i don't want to mention) xinitrc, it does not solve the goal to start the X server and its environment. You can start Xorg yourself but among the things startx and xinit set up are various permissions and other things of the Xorg server (note that there are also config files) On systemd vs logged in user: there are a lot of things that arent immediately obvious which are different in those cases. Xinit, after doing some things, starts Xorg Startx, after setting up some environment arguments, runs xinit Search for another thread I made about getting The Ur-quan Masters (Star Control 2) to work for more information on this.Startx is a shell script, so you can just open it with a text editor and look at what it does I was able to get past this by adding the argument double dash -nomouse That hid the mouse making it such that I had to move the mouse around until the keyboard worked, but it worked out for me in the end. Which was annoying since the program I was using didn't *use* the mouse. But I had to maneuver the mouse over the window for it to accept keyboard input. Now this worked out fine since that's where the program window was placed anyway. Unfortunately, rather than truly resizing the screen, all this did was limit me to the top left hand portion of the screen (so if I did xres=800 yres=640, it showed the top left 800圆40 area of the screen).
My basic solution was to use xinit then specify a path to an xinitrc file in which I set xres and yres to the resolution I needed.
Piglet wrote:Please could you write up everything needed to get it working as far as you have? I see lots of information in the thread but it would be good to see enough information about your end-state solution for others to follow. # start my program – when this exits so does X
#Startx vs xinit install#
When you have a tty, you can log into your system, Install Display Managers or edit your /. xinitrc in ~mythtv that runs evilwm in the background (apt-get it – it is really minimal) and then starts my program: If this happens, get a tty by pressing CTRL + ALT + F2 (or any other funktion key - try all function keys from F1 to F7 ). Those parameters just give it a black root window, turn of vesa screen blanking and make it local only.
#Startx vs xinit how to#
Then if you are like me or at least one other archer (Earnestly) youd even figure out how to replace xinit with a much much smaller alternative because xinit is just so darn bloated too. Afterwards, I startx, it failed shortly after started by saying connection to X. After removing everying and running 'xbps-install xorg xterm openbox' I can get something with the command 'sudo xinit' which produces an X session with an X-term box, from which I can run 'openbox-session' and turn that box into a window. Of course if you really want to shave time and processes, you should use xinit rather than startx. I also built and installed vncserver in QEMU. After that, I added exec gnome-session to the end of /etc/X11/xinit/xinitrc. Startx -br -nolisten tcp -dpms # the - is two dashes Then I installed GNOME environment, but found that gnome-session was still missing, so I built and installed gnome-session from source.
Whatever you are using on the Pi probably has SysV init so you can do something similar in /etc/inittab replacing an existing getty line with mingetty –autologin=mythtv In Ubuntu with upstart that works out to be a file in /etc/init called tty7 with a line in it that readsĮxec /sbin/mingetty –autologin=mythtv tty7 #the - is two dashes Replace mythtv with username of your choice. I have a console autologin using mingetty which you can apt-get. You can set an X display manager to autologin which is point and click easy. This package is not a part of the Xorg katamari and is provided only as a dependency to other.
My mythtv has been doing that for about 5 years. The xinit package contains a usable script to start the xserver.