Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

I Broke Openbox - Doesn't Start on Login

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
KenD
Posts: 17
Joined: 2022-05-06 00:23

I Broke Openbox - Doesn't Start on Login

#1 Post by KenD »

Debian 11 (updated) with Openbox

I edited ~/.config/openbox/rc.xml to add a key binding and apparently made an error. Now my system starts and logs in correctly but I get an error message saying that I forgot to add "</" somewhere. Openbox does not start.

How do I get to a terminal so that I can use nano to try to find my error and fix it?

Aki
Global Moderator
Global Moderator
Posts: 2966
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 73 times
Been thanked: 405 times

Re: I Broke Openbox - Doesn't Start on Login

#2 Post by Aki »

Hello,
KenD wrote: 2023-05-07 14:36 Debian 11 (updated) with Openbox

I edited ~/.config/openbox/rc.xml to add a key binding and apparently made an error. Now my system starts and logs in correctly but I get an error message saying that I forgot to add "</" somewhere. Openbox does not start.

How do I get to a terminal so that I can use nano to try to find my error and fix it?
You can start Debian selecting from grub "Advanced options for Debian GNU/Linux" and the select the entry with the "recovery mode" label. It will start Debian in single user mode. At the prompt, typing the root password, a terminal console will be opened for user root. Your home directory will be in /home/yourusername (where yourusername is your user name).
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

KenD
Posts: 17
Joined: 2022-05-06 00:23

Re: I Broke Openbox - Doesn't Start on Login

#3 Post by KenD »

Thank you. I did that as you directed but it took me back to my usual login screen where I was asked for my user name and password as usual. Upon entering them I was back at the same place as before - i.e. logged into my system but Openbox has not started.

Bulkley
Posts: 6387
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: I Broke Openbox - Doesn't Start on Login

#4 Post by Bulkley »

On your keyboard push Ctrl + Alt + F3 at the same time.

KenD
Posts: 17
Joined: 2022-05-06 00:23

Re: I Broke Openbox - Doesn't Start on Login

#5 Post by KenD »

SOLVED: At the grub menu hit "e". Find the line beginning with "linux" and add a space and "3" at the end. Hit enter, command prompt appears.

User avatar
kent_dorfman766
Posts: 540
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 59 times
Been thanked: 70 times

Re: I Broke Openbox - Doesn't Start on Login

#6 Post by kent_dorfman766 »

As @Bulkley alluded to, there are other virtual consoles running, so <CTLR><ALT><F?> can give you a separate and distinct command line login session. It used to be that VT7 was reserved for X11 but I'm not sure if that policy still holds true because I always boot to command line mode, login, then manually start X11. You can check using systemctl | grep getty

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1497
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 60 times

Re: I Broke Openbox - Doesn't Start on Login

#7 Post by oswaldkelso »

The fix is easy. login to another tty Control+Alt+F3 then rename you broken openbox.rc

Code: Select all

 mv  ~/.config/openbox/rc.xml   ~/.config/openbox/rc-backup.xml 


You'll then be able to login with the system wide config.

Then fix the error in rc-backup.xml

The are xml validators on line that will show you where you made a cock up. Once fixed rename it back to the original.

https://www.xmlvalidation.com/
https://www.w3schools.com/xml/xml_validator.asp
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 622
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 81 times
Been thanked: 96 times

Re: I Broke Openbox - Doesn't Start on Login

#8 Post by wizard10000 »

Another thing that I think is worth mentioning is that almost every Linux text editor can be configured to make a backup of any file you edit. This has saved my bacon many times :)
we see things not as they are, but as we are.
-- anais nin

CwF
Global Moderator
Global Moderator
Posts: 2715
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: I Broke Openbox - Doesn't Start on Login

#9 Post by CwF »

wizard10000 wrote: 2023-05-08 16:09 make a backup of any file you edit
Better yet leave comments of edits within the file itself as to prior edits, what ifs, version or distro variations, etc

I use a 'probe' thunar custom action to cat any file into a gxmessage/xenity/notify-send dialog for review. For file that are mostly commented I use 'cliff' (think cliffsnotes) instead of 'probe' for a dialog condensed to actually active code;

Code: Select all

grep -Env '^\s*$|^\s*\#' %f | gxmessage -geometry 960x480 -name "%f" -buttons "cool:0" -file -

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 622
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 81 times
Been thanked: 96 times

Re: I Broke Openbox - Doesn't Start on Login

#10 Post by wizard10000 »

CwF wrote: 2023-05-08 18:41Better yet leave comments of edits within the file itself as to prior edits, what ifs, version or distro variations, etc
I do this also. I copy the entry I want to change, paste it below the original entry, make my edits and then comment out the original.
we see things not as they are, but as we are.
-- anais nin

Post Reply