Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems getting startx to boot tiling window manager
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
eklebanow
n00b
n00b


Joined: 08 Sep 2019
Posts: 31

PostPosted: Sun Sep 08, 2019 3:37 pm    Post subject: Problems getting startx to boot tiling window manager Reply with quote

I am a noob. On a minimal gentoo install I would like to have OpenRC initiate a startx session which launches a tiling windlow manager (dwm).
I have installed Xorg. I am using the X without Display Manager gentoo wiki as a guide but it is not working.

Can someone help me troubleshoot? What info must I provide to troubleshoot?

How can I provide output results to forum when I do not have a working browser on the machine with gentoo?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7465
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 08, 2019 4:18 pm    Post subject: Reply with quote

eklebanow, welcome to Gentoo :)

There are probably a million ways to do it. I'll describe my Kodi box setup below, maybe you can get some ideas from it.

First, the user is logged in automatically from inittab.
Code:

$ cat /etc/inittab
...
c1:12345:respawn:/sbin/agetty -n -l /sbin/autologin 38400 tty1
...


This autologin is a tiny executable, source:
Code:
$ cat autologin.c
int main() {
    execlp("login", "login", "-f", "kodi", 0);
    }

Then X is started automatically from ~/.bash_profile
Code:
$ cat .bash_profile
# /etc/skel/.bash_profile

# This file is sourced by bash for login shells.  The following line
# runs your .bashrc and is recommended by the bash info pages.
if [[ -f ~/.bashrc ]] ; then
        . ~/.bashrc
fi

[[ $(tty) = "/dev/tty1" ]] && exec startx -- vt1

And finally Kodi is started from ~/.xinitrc
Code:
$ cat .xinitrc
exec kodi

_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
eklebanow
n00b
n00b


Joined: 08 Sep 2019
Posts: 31

PostPosted: Sun Sep 08, 2019 6:43 pm    Post subject: Reply with quote

jaglover: thanks for the help

worked perfectly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum