Questions tagged [xinit]
xinit is a Unix command that starts the X Window Server.
58
questions
76
votes
2answers
52k views
Difference between .xinitrc, .xsession and .xsessionrc
I found three configuration files.
.xinitrc
.xsession
.xsessionrc
I know that the first one is for using startx and the second and third are used when using a display manager. But what is the ...
20
votes
2answers
49k views
What desktop environment does startx run, and how can I change it?
From many docs, I read that startx is starting LXDE in Raspbian OS. I am a little bit confused.
Will always startx run LXDE GUI?
Also I have seen example with using startlxde command. How is that ...
5
votes
2answers
2k views
Arch Linux: Running VirtualBox (VM) without a window manager
In Arch Linux, I would like to run VirtualBox without a window manager.
As a root I can easily do:
xinit /usr/bin/VirtualBox -- :0 vt1
As a non-root user I get a blank screen. If I open another ...
5
votes
1answer
1k views
`xinit /usr/bin/firefox` vs `xinit firefox`
xinit /usr/bin/firefox seems to do what's expected: to run firefox without a window manager.
xinit firefox seems to do similar, but with a small xterm running behind.
Can someone explain me what's ...
5
votes
2answers
2k views
xterm not using .Xresources
I've one .xinitrc with the following lines:
#!/usr/bin/env bash
xrdb -merge ~/.Xresources &
xset r rate 200 30 &
xterm & #fixme: xterm is not reading loaded .Xresources
exec /etc/...
5
votes
0answers
2k views
Start application using xinit on different tty
I'm using Fedora 21, trying the following:
On tty1 is running KDE, just as normal. But to speed up my games/avoid them changing something like gamma, I want to run them on a differnt tty, starting a ...
4
votes
1answer
239 views
Start new process group in .xinitrc
I have a statusbar (lemonbar) to which I pipe the output of a couple of scripts (time, battery, volume, etc.). These scripts, and the statusbar itself, are all started in a single bash script ...
4
votes
0answers
12k views
Set up display orientation and resolution on an embedded Linux
we have an embedded PC with an Linux OS which seems to be an Debian/Ubuntu derivate with RT-Preempt patch.
At this pc we attached a display (7" 1024x600 170 DPI) via DVI. We are need to run the ...
4
votes
3answers
14k views
Start X Server on Login with Systemd
I know that this is not the normal way people use X. Most setup instructions tell you to put something like startx in your shell's profile. However I want to have systemd manage things.
Ideally I ...
3
votes
2answers
200 views
Should suspended application in the background (by ctrl+z) still run or should it stop running?
I run Firefox with command xinit /path/to/firefox/binary and it opens a display with Firefox running on it.
Then I push Ctrl +Alt+F1 to go back to console and then I push Ctrl+z to suspend the ...
3
votes
1answer
21 views
XDM stuck on login prompt
I've recently attempted experimentation with Arch Linux, and have managed to get an install with basic utilities, a network manager, etc going. I plan to use the Openbox window manager, with (at least,...
3
votes
3answers
5k views
How to manually run/init/start a Xorg server on a different VT/TTY?
I want to start an Xorg server (which should only feature a minimal xterm terminal emulator from a newly created "pristine" tty). I have thought this to be as simple as issuing a xinit or ...
3
votes
1answer
781 views
Configure XFCE startup commands in NixOS
In NixOS, services.xserver.desktopManager.xfce.extraSessionCommands describes "Shell commands executed just before XFCE is started.". What about for shell commands right after XFCE is started?
That ...
3
votes
0answers
669 views
How rotate Xorg on demand with xinit?
I can physically swing around my monitor one right angle. On the console I can control orientation with the rotate_all "button" in /sys/devices/.../fbcon/. But xorg is not impressesed by that. Now I ...
2
votes
2answers
325 views
My ubuntu-server doesn't execute my gtk-based program at startup!
I have Ubuntu-server 16.04. Installed gtk3 and can execute my program manually by this command: ./img when I go to it's directory /home/m.
But when I tried to add this line to my /etc/rc.local file:
...
2
votes
1answer
468 views
How to make several “startx” profiles?
I have an Arch Linux with i3wm now. When I need to start my i3, I just type startx, because in config file I have exec i3;. When I need to run some another graphical environment, such as Gnome, I edit ...
2
votes
1answer
4k views
starting LXDE automatically (without Display Manager)
I am disappointed with existing Display Managers, and so I was wondering wheteher I could live without one. I have very basic needs on my laptop. I have one user martin who wants to be logged into ...
2
votes
1answer
965 views
Can't login after editing xinitrc
I wanted to install dwm according to this tutorial. I've skipped the part about Xorg, bc I knew it have been already installed at the time. I started with step about installing dwm. The desktop ...
2
votes
0answers
834 views
Run 2 instances of xinit with output to separate video out
I have a video card with 2 video outputs. I want to run 2 instances of xinit and draw 2 different displays. I want one display to be output to one video out and the other to go to the other video out. ...
1
vote
1answer
3k views
Starting just an X server on a minimal installation
I need to run a program that I haven't developed, the issue is that even if it doesn't run any GUI interface (can be used on silent mode) it still requires an X server running because of the way it's ...
1
vote
2answers
2k views
How can I find which process is controlling the root window?
I'm trying to get an xscreensaver to run as my desktop background / wallpaper using the method described here: https://wiki.archlinux.org/index.php/XScreenSaver#Animated_wallpaper and the first step ...
1
vote
1answer
137 views
dwmblocks not reading $PATH
I'm using archlinux, dwm and dwmblocks. At startup dwmblocks shows only the icons of the blocks', without loading the scripts output. If I run
$ killall dwmblocks
and restart
$ dwmblocks &
it ...
1
vote
2answers
423 views
why would a command run at the prompt and not in a script?
I have a RPi running raspbian jessie which I use in kiosk mode: I start in /etc/rc.local
/usr/bin/xinit /opt/domotique/xinitrc > /root/xinitrc-errors 2>&1
and /opt/domotique/xinitrc is
...
1
vote
1answer
1k views
xset not having any effect in my .xsessionrc file
I need to set some trackpoint settings automatically. I don't know the best file in which to place these commands, but I used .xsessionrc. The commands are properly executed (I can verify that by ...
1
vote
1answer
3k views
How to use i3 on CentOS 7 with Gnome?
I have a CentOS 7 with Gnome running on my machine. Now I want to use i3 as the window manager. I managed to install i3 but I don't know how to make CentOS 7 use i3 now. I tried to edit .xinitrc like ...
1
vote
0answers
25 views
Dual Display - one is fine, the other showing squashed in left half of the screen
I have a Debian linux box set up with two displays.
One is from Display Port (DP) on the box through an active adapter to DVI input on the display itself.
The other is straight VGA to VGA.. This is ...
1
vote
1answer
7k views
How to set i3 to be the default window manager?
In the Kali login, I have to select i3 in the menu in order to use i3 instead of gnome. How to set i3 as the default window manager (no need of selection?
1
vote
2answers
3k views
How to start a script after login using gdm?
I am using arch linux with xmonad, and I login using gdm, but to make xmonad work properly I have to run a script directly after login (actually I want to run .xinitrc after login using gdm to set ...
1
vote
0answers
699 views
xinit: giving up can't start xinit
My Musicbot won't start:
musikbot@euve102733:/opt/ts3soundboard$ xinit /opt/ts3soundboard/ts3bot -- /usr/bin/ Xvfb :1 -screen 0 800x600x16 -ac
xinit: giving up
xinit: unable to connect to X server: ...
1
vote
0answers
119 views
Correctly shutting down the computer from an X session
I run Debian 8.1 with the window manager Blackbox. The window manager is started from ~/.xinitrc, and when the X session is done some cleanup commands are invoked:
dbus-launch --exit-with-session ...
1
vote
1answer
2k views
What is the exact command to start the openbox-lxde default session in raspbian?
I am trying to configure my .xinitrc to be able to choose different window managers before starting X but I cannot reproduce the same environment as when I just run startx without a .xinitrc file in ...
1
vote
0answers
1k views
How to start the twm manager on a system which already has a window manager ?
I am using linux mint codename rebecca with xface.
I tried to follow a description how to start a window manager of once choice:
created an empty .xinitrc file in my homefolder
filled the file with "...
1
vote
0answers
1k views
script started in .xinitrc stays in processes
I have made a little startup bash-script to run before my wm starts. Unfortunately
after X and WM is started this script is still listed in the in htop and I don't have a clue why...
this is the ...
0
votes
1answer
47 views
Is there a preference rule for exec in xinitrc?
I have i3 installed as my primary window manager; now I want to test dwm. My xinitrc has only one line: exec i3. If I want dwm to launch and not i3 do I have to delete this line completely or do I ...
0
votes
1answer
6k views
.xinitrc not loading .Xresources [closed]
I'm using fresh install of Arch with i3; after logging into I type in startx and i3 is starting with default settings, despite the configuration of my .xinitrc:
#!/bin/sh
exec i3
exec xrdb ~/....
0
votes
1answer
332 views
pywal wont run on startx
I'm having some trouble starting pywal through .xinitrc
Currently my .xinitrc is:
exec dwm
wal -i "/home/joe/pictures/wallpapers" &
Anyone know what I could have messed up?
0
votes
1answer
41 views
Xinit/zsh: jobs control
In .xinitrc, there'll have multiple lines with & to put some commands in background, I'd like to control if a command is completed or not before process to next command.
I use zsh in .xinitrc ...
0
votes
1answer
2k views
xinitrc - set DBUS_SESSION_BUS_ADDRESS
Not using display manager and executing startup logic via xinitrc.
Problem is some dbus-related env variables are not set.
xinitrc excerpt:
dbus-update-activation-environment --systemd --all # note ...
0
votes
1answer
72 views
Strange xinit problem
I am using LFS-based custom Linux. When I try to start "xinit" then it fails to start with following error:
Fatal server error:
(EE) Cannot move old log file
"/var/log/Xorg.0.log" ...
0
votes
1answer
304 views
How to start a dialog at startup after login in?
I want to display a dialog at startup after the user log in?
How would you suggest to do automatically launch a dialog at startup?
Example of dialogue:
zenity --question
0
votes
2answers
2k views
Configuring fluxbox (or any other WM) on FreeBSD
First time using FreeBSD (or any BSD).
I recently installed FreeBSD and installed xorg and fluxbox with:
pkg install xorg fluxbox
And put this in the .xinitrc for my user:
exec xterm &
exec ...
0
votes
1answer
543 views
chroot into a Linux with X window system installed, from a Linux without X window system, and then run xinit, there is no mouse and keyboard working
I have two systems on my machine. One is Ubuntu and the other one is Linux from scratch (LFS) which I built it my self.
Ubuntu has X window system installed but LFS has no windowing system whatsoever....
0
votes
1answer
745 views
Position window automaticly in TWM
The man pages of TWM tells me that if I specify a -geometry [size x size] + offset + offset, TWM will honor this and create the window in that location.
For which types of windows is this possible? ...
0
votes
0answers
7 views
Debugging Apparent Partial Execution of Startup Script
So, I'm trying to follow this post to add trackball scroll functionality to my ELECOM Huge. I've written a script which I placed in my /etc/profile.d/ folder, which performs the initial setup steps ...
0
votes
0answers
20 views
Display managers not loading startup commands properly, even when running xinitrc as a session
When logging into any display manager some commands just won't load while others will, no matter where I put them. I originally thought it was a lightdm specific issue with how it sources the dotfiles,...
0
votes
1answer
62 views
Forward X11 through SSH and open GUI applications from tty
If I'm on the tty cli with no desktop environment set up, how can I start a remote desktop environment through ssh?
For exmaple, if I first launch startx icewm and from there do a ssh -X me@raspi ...
0
votes
1answer
82 views
.xinitrc seems to be ignored if /usr/bin/xinit is called from systemd service
This is on Xubuntu 18.04.
I'm trying to replace lightdm with my own application running full screen on boot up.
I can run xinit from root shell, and it correctly takes my /root/.xinitrc commands and ...
0
votes
1answer
55 views
Executing commands from process substitution in xinitrc
I felt that an .xinitrc like this
#!/bin/sh
bash <(sed -n 'H
/^exec ./{
x
s/\([^\n]\+ &\n\)*exec .*//
p
}' /etc/X11/xinit/xinitrc)
xmonad &
# ...
exec xterm
where ...
0
votes
0answers
1k views
Populating .Xauthority file when DISPLAY and HOST variables are non-existent
I just installed the new Debian 10 Buster and I am not satisfied. I installed it without any desktop. Only basic system utilities were installed during the initial install.
After reboot I signed in ...
0
votes
1answer
124 views
X11: ^C drop to shell while start X
I use xinit to start X with wm - startx command that using .xinitrc to invoke X11 environment, but when X starts, there a black screen with cursor staying there for few seconds before X is fully ...