i3 issues
I'm trying to download i3. I downloaded i3, dmenu, my graphics driver and all of the xorg packages.
I ran "$ cp /etc/X11/xinit/xinitrc ~/.xinitrc" and added "exec i3" to ~/.xinitrc.
I then ran startx from the terminal but said permission denied for /dev/tty0. I ran it with sudo and all I got were terminal windows that couldn't even go to ~/.config.
Am I doing something wrong? What is the best way to install and customize i3? Is there an all-in-one guide?
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 5rfkcb
19 comments
You are asking for trouble, running your X system with sudo.
Permission denied... Let's sudo our way out of here! That was to be a good solution imarite?!Slightly Relevant xkcd
Image
Mobile
Title: X11
Title-text: Thomas Jefferson thought that every law and every constitution should be torn down and rewritten from scratch every nineteen years--which means X is overdue.
Comic Explanation
Stats: This comic has been referenced 67 times, representing 0.0457% of referenced xkcds.
[xkcd.com](https://www.xkcd.com) | [xkcd sub](https://www.reddit.com/r/xkcd/) | [Problems/Bugs?](https://www.reddit.com/r/xkcd_transcriber/) | [Statistics](http://xkcdref.info/statistics/) | [Stop Replying](https://reddit.com/message/compose/?to=xkcd_transcriber&subject=ignore%20me&message=ignore%20me) | [Delete](https://reddit.com/message/compose/?to=xkcd_transcriber&subject=delete&message=delete%20t1_dd87glb)
What's the permissions on your xinitrc? Can you post the contents?
-rw-r--r--
How about the contents of your xinitrc like you were asked by someone trying to help you?
IIRC, .xinitrc has to be executable. Try:
EDIT:
Also, you said you added "exec i3" to your xinitrc. Did you delete the lines that launch twm, xterm, and xclock? I imagine trying to start i3 after starting twm could cause some problems.
Copying /etc/X11/xinit/xinitrc was a mistake. It probably looks like this at the end...
If you only added exec i3 to the bottom then it never got there. The last line of the file you copied runs an xterm in the foreground. When you exit that, only then will i3 run, but it will die because another WM (twm) is running first.
Just kill your .xinitrc and replace it with one line that just does 'exec i3'.
The likely reason your terminals can't go to ~/.config is that you are running as 'root' and that directory doesn't exist in /root/.
I have no idea why you're getting permission issues on /dev/tty0.
You haven't gotten to i3 yet. You're still setting up Xorg.
The output says Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
when I run startx. What does that mean?
Can you show us what is in your xinitrc?
Try running
startx -- vt$XDG_VTNR -keepttyinstead.Output:
Fatal server error: (EE) xf86OpenConsole: Switching VT failed
You need to check permissions for your xinitrc file. If everything seems fine, delete your ~/.xinitrc file and retry
sudo startx