You are not logged in.

#1 2018-03-31 06:54:02

JustAcouch
Member
Registered: 2018-03-30
Posts: 13

Xinit with i3? [SOLVED]

Hey guys, so I actually got Xinit and i3 working with my root login - however not on my main login.

Using this $ cp /etc/X11/xinit/xinitrc ~/.xinitrc I was able to move the file to my root and edit the /.xinitrc file. The issue is, I am not able to do the same with my main login - it says I already have the directory - so instead I overwrite it, however I can not since I can not overwrite with a nondirectory. I can not open it in Nano - so there is no way to edit it. When making a new Nano file and editing a fresh file I set the "file name to write:" as "/home/midoriya/.xinitrc" - to where it states the "file already exists; overwrite? " - to which it spits out "error writing ...: is a directory".

Wow - this is confusing the hell out of me. Lol, I was able to do virtually the same in my Manjaro... unless if I am totally missing a keypoint.

Thanks for the advice in advance, I am a bit - insanely stupid.

EDIT: Okay, wait- I think I got it this time. This time it let me into my ~/.xinitrc, however it is not a copy of /etc/X11/xinit/xinitrc so if editing does not work, I will delete the directory and copy over the original. Hopefully it works, and I do not know what allowed me to access ~/.xinitrc this time around, I am assuming I put in a typo the first time.

EDIT 2: Uh.. yep - I deleted the directory and copied it over. I am in fact, stupid, I missed the most obvious think ever... *derp*. The issue was I was trying to edit a directory.... I am going to leave now...

Too be fair -- I am sleep deprived - however that is a horrible excuse.

Last edited by JustAcouch (2018-03-31 07:36:44)

Offline

#2 2018-03-31 07:29:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: Xinit with i3? [SOLVED]

stat /home/midoriya/.xinitrc

Offline

#3 2018-03-31 07:40:18

JustAcouch
Member
Registered: 2018-03-30
Posts: 13

Re: Xinit with i3? [SOLVED]

seth wrote:
stat /home/midoriya/.xinitrc

Wow, I totally forgot that command existed. Lol - that would have definitely allowed me to catch on faster. Thanks for the reply.

Offline

#4 2018-03-31 16:32:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: Xinit with i3? [SOLVED]

I note that you are a new member here, so I will drag out my soap box for the occasion.  Running i3 / Xorg as root is a really bad idea™.  Unless you have a really good reason, don't do it.  This isn't Windows.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2018-03-31 23:43:59

JustAcouch
Member
Registered: 2018-03-30
Posts: 13

Re: Xinit with i3? [SOLVED]

ewaller wrote:

I note that you are a new member here, so I will drag out my soap box for the occasion.  Running i3 / Xorg as root is a really bad idea™.  Unless you have a really good reason, don't do it.  This isn't Windows.

I am using Xorg with my unprivileged - my DE is not even configured for my root right now - because I do not plan on using it. I was only using it then because, frankly - I accidently added it to my root. Mistakes happened, however I definitely learned from them and in the future will not do the same.

Don't worry - I know enough - and honestly fucked up enough stuff to realize not to run as root!

Offline

Board footer

Powered by FluxBB