SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-11-19 06:27:41

mcfundash
New Member
Registered: 2012-11-13
Posts: 5

Can't log in on after editing tint2rc

So I was editing my tint2rc in order to add a bit more customization and part of that was to install an extra font (ttf-atarismall) to use.  Everything seemed fine but then suddenly when I logged out to activate the font, I couldn't log in.  I rebooted hoping that would fix it but when it started up again I couldn't log in.  Slim shows the login page fine and all but after I put in my password it just resets showing the text tty login for a sec and then the username prompt again.  I have no clue what could have caused this hoping someone can help me, thanks!

Offline

Help fund CrunchBang, donate to the project!

#2 2012-11-19 07:23:05

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

If I you Id reboot and from tty enter login info then

sudo nano /home/your_name/.config/openbox/autostart

and stop tint2 from autostarting by uncommenting tint2 with an #. Im not on openbox but it would be something like

change

tint2 &

to

#tint2 &

If you are able to reboot and then log in you know its a tint2 issue and then you can remove the font you installed and run tint2 from a terminal so you can see if it starts with any errors.

Also you can update your font by running

sudo fc-cache -f -v

then restarting whatever program you want that font to show up in

Hope this helps

Offline

#3 2012-11-19 07:47:28

mcfundash
New Member
Registered: 2012-11-13
Posts: 5

Re: Can't log in on after editing tint2rc

Unfortunately that changed nothing at all, so it doesn't seem to be tint2, I was also messing with screensavers and thought it might be xscreensaver so I tried reinstalling that but it didn't help.  Thanks for the commands though.

Offline

#4 2012-11-20 03:33:07

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,631
Website

Re: Can't log in on after editing tint2rc

cat ~/.config/openbox/autostart

Post it here.

Offline

#5 2012-11-20 06:28:09

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,494

Re: Can't log in on after editing tint2rc

lwfitz wrote:
sudo nano /home/your_name/.config/openbox/autostart

This is wrong.  There are a (very) few cases where you'd want to edit something in your home directory as root, and this is not one of them.  (It messes up the file's ownership & permissions.)  Since logging in as {user} at a tty automatically takes you to /home/{user}, this is probably the most appropriate command:

nano .config/openbox/autostart

@mcfundash:  I doubt a borken tint2rc would do anything worse than keep Tint2 from starting, but just for s#!ts & giggles, could you post your ~/.config/tint2/tint2rc as well?

Far more likely is a borken ~/.config/openbox/rc.xml; is there any chance you changed this as well?  Please post it.


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#6 2012-11-20 07:46:16

benginm
#! Junkie
From: Underneath!
Registered: 2012-11-11
Posts: 488

Re: Can't log in on after editing tint2rc

I would look in ~/.xsession-errors , as well.

Offline

#7 2012-11-20 08:01:54

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

pvsage wrote:
lwfitz wrote:
sudo nano /home/your_name/.config/openbox/autostart

This is wrong.  There are a (very) few cases where you'd want to edit something in your home directory as root, and this is not one of them.  (It messes up the file's ownership & permissions.)  Since logging in as {user} at a tty automatically takes you to /home/{user}, this is probably the most appropriate command:

nano .config/openbox/autostart

Yeah your absolutely right and I know better than that. I shouldve slept than posted  tongue  Thanks for the correction buddy.

As far as a broken tint2 causing issues with x starting, I had exactly that happen thats why I went to it first. I agree that it should just cause tint2 not to start but I had a simple typo that caused all kinds of crazy crap cool  If it can be broken Ill break it!

Offline

#8 2012-12-04 08:58:25

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

Did this ever get figured out? Something very similar just happened to me. I was editing tint2 and when I saved my config everything froze and I had to hard reboot.
Upon reboot everything looked OK but slim won't start correctly its just a black screen and nothing else.

Offline

#9 2012-12-04 09:03:19

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: Can't log in on after editing tint2rc

Can you ctrl + alt + f1 to get to tty? If you can, login from there, then type startx

Your default tint2 config will be in /etc/skel/.config

Last edited by dura (2012-12-04 09:04:07)

Offline

#10 2012-12-04 09:26:23

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

Does nothing. Screen just stays black. I have stopped tint2 from starting so if it was a tint issue I should be able to log in. I'll try editing tint from recovery and then star x from there and let you know what it does. Thanks

Edit: thanks dura I'm just gonna try to figure this out tomorrow.

Last edited by lwfitz (2012-12-04 09:38:25)

Offline

#11 2012-12-04 09:51:02

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: Can't log in on after editing tint2rc

There isn't much to figure out with it really... Are you sure you haven't bodged your rc.xml?

Offline

#12 2012-12-04 13:21:26

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,505

Re: Can't log in on after editing tint2rc

+1 Pvsage and Dura ...

My guess  ... whatever you borked can be unborked by logging into another tty and copying the default files for openbox or tint2  ( whichever you may've messed up.) to replace the ones in your /home/username. Recently seen someone saying the default files in #! are kept in something like /etc/skel, as they are in many distro's I believe. This thread is discussing something very similar.

Meant to do a babble how to on this carp. Aka: Using a diff tty and copying ( cp) over default config files to unbork. Someone can even of course use a different tty login and simply correct the stuff they messed up from cli ( command line) w/o need of resorting to restoring default. My guestimation ... often enough restoring the default config files is just quicker and/or easier. In other words blahblahblahblah ...

Would try to explain this madness better BUT ... a: I'm highly intoxicated atm + b. A lazy person ... read link and perhaps it will bring you joy ? tongue



Vll! smile

Last edited by CBizgreat! (2012-12-04 13:37:33)


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#13 2012-12-04 14:01:00

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: Can't log in on after editing tint2rc

^ Yip- default rc.xml is in /etc/skel/.config/openbox

Default tint2rc config is in /etc/skel/.config/tint2

Offline

#14 2012-12-04 17:02:26

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

Thanks all, I didn't touch the rc.xml  so how that got borked  beats me. All I did was change the position of my tint2 config and then it crashed.
I'll try replacing the rc.xml and tint2 with the defaults and see what that does. This same thing happened about a month ago on an office PC but I didn't have time to trouble shoot so I just reinstalled.

Edit: OK I replaced the rc.xml and tint2 configs but it didn't seem to change anything. I'm about to boot into a live disk so I can post my error log.

Heres my ~/.xsession-errors

Last edited by lwfitz (2012-12-04 17:32:57)

Offline

#15 2012-12-04 17:33:38

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: Can't log in on after editing tint2rc

Replace your existing autostart.sh with the one you find in /etc/skel/.config/openbox and see if that makes any difference.

Use the cp command at a tty if you cannot login, or you could always chroot

Offline

#16 2012-12-04 17:34:46

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: Can't log in on after editing tint2rc

Can you just post it in a code box? I don't want to download it.

Offline

#17 2012-12-04 17:39:03

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

dura wrote:

Replace your existing autostart.sh with the one you find in /etc/skel/.config/openbox and see if that makes any difference.

Use the cp command at a tty if you cannot login, or you could always chroot

Thats what I thought also but it didnt make any difference.

As for the ~/.xsession-errors I cant post it here cuz its just to long and pastbin has a limit unless you pay for a pro account so if you know of another way ill try it but im not sure how else to get it posted here.

Offline

#18 2012-12-04 17:40:53

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: Can't log in on after editing tint2rc

You can't post it in code brackets?

Try pastie.org

Last edited by dura (2012-12-04 17:41:22)

Offline

#19 2012-12-04 17:45:58

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

No its to big to just post in code brackets and also in pastie.org sorry

Offline

#20 2012-12-04 18:29:28

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: Can't log in on after editing tint2rc

Lots of bad window errors. Hundreds. I don't know what to do with this, sorry. Others may.

Offline

#21 2012-12-04 18:54:45

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

dura wrote:

Lots of bad window errors. Hundreds. I don't know what to do with this, sorry. Others may.

Yeah I saw those and I dont have any clue why. I also saw the Nvidia errors but theres no Nvidia card on that computer so Im a bit baffled. If this doesnt get figured out today I will just reinstall and keep an eye on the error log

Offline

#22 2012-12-05 18:05:58

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Can't log in on after editing tint2rc

Ok everythings back up and running. For me it seems that it was a video driver issue . I had a total brain fart and forgot that I had run updates which installed the newest Debian kernel (3.2.0.4 I believe) so once I finally was able to get to tty I uninstalled then reinstalled the video driver and it booted up fine.

Thanks for the help everyone.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo