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
I Broke Openbox - Doesn't Start on Login
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?
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?
-
- 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
Hello,
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).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?
Re: I Broke Openbox - Doesn't Start on Login
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.
Re: I Broke Openbox - Doesn't Start on Login
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.
- 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
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
- oswaldkelso
- 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
The fix is easy. login to another tty Control+Alt+F3 then rename you broken openbox.rc
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
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
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
- wizard10000
- 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
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
-- anais nin
-
- 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
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 -
- wizard10000
- 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
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
-- anais nin