Skip to content

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?

0 points19 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
5rfkcb

Author

39
posts
82
comments
2
media
View profile

19 comments

I then ran startx from the terminal but said permission denied for /dev/tty0. I ran it with sudo

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?!

8 points

Slightly Relevant xkcd

1 points

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)

1 points

What's the permissions on your xinitrc? Can you post the contents?

2 points

-rw-r--r--

-2 points

How about the contents of your xinitrc like you were asked by someone trying to help you?

2 points

IIRC, .xinitrc has to be executable. Try:

[user] $ sudo chmod a+x ~/.xinitrc

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.

1 points

Copying /etc/X11/xinit/xinitrc was a mistake. It probably looks like this at the end...

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

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.

What is the best way to install and customize i3?

You haven't gotten to i3 yet. You're still setting up Xorg.

1 points

The output says Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)

when I run startx. What does that mean?

-1 points

Try running startx -- vt$XDG_VTNR -keeptty instead.

1 points

Output:

Fatal server error: (EE) xf86OpenConsole: Switching VT failed

-1 points

You need to check permissions for your xinitrc file. If everything seems fine, delete your ~/.xinitrc file and retry sudo startx

-8 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.