LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 09-01-2018, 07:03 AM   #1
RonCam
Member
 
Registered: Dec 2008
Posts: 138

Rep: Reputation: 52
Question Key-press combination to restart Moksha or Enlightenment from terminal?


I'm both searching the forum and looking at the 'Linux' (bash?) command list in the Wiki but can't locate an answer to this question.

Use example where I'd like the commands to work: if Firefox locks-up and becomes unresponsive or nearly so, I can sometimes get to a command prompt with <Ctrl><Alt>f1, and from here it's possible to 'kill' firefox. At the command prompt, it seems Bodhi is still running but the file manager (Enlightenment or Moksha, depending on the version) is not.

I'm pretty sure there are commands that could be issued to restart either of these.
? Does anyone know what the commands might be?

P.S.: Is it correct that Moksha is still a file manager, or after Jeff 'worked it over' has it now graduated to be a desktop environment?

Last edited by RonCam; 09-02-2018 at 06:51 AM. Reason: The solution is a special key combination, not a Command.
 
Old 09-01-2018, 07:42 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,521

Rep: Reputation: Disabled
The usual way to kill an errant program is to 'kill 9' it's PID number.

However, as you look like a newbie, try using ctrl+alt+bksp - that will terminate your GUI - then type startx in the command line & press return/enter key, & you should be back in a fresh GUI session.

(Edited to correct my typo - thanks for pointing that out hazel.)

Last edited by fatmac; 09-01-2018 at 12:42 PM.
 
1 members found this post helpful.
Old 09-01-2018, 07:45 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
I think that should be ctrl+alt+back. ctrl+alt+del would reboot the whole thing.

But killing Firefox shouldn't affect the desktop at all. What happens if you use alt+F7 to get back to your gui? What does ps show as still running? I'd mosey around a bit before deciding what to do.

Last edited by hazel; 09-01-2018 at 07:47 AM.
 
1 members found this post helpful.
Old 09-01-2018, 08:34 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
killall firefox : too is an option.

Last edited by BW-userx; 09-01-2018 at 08:36 AM.
 
1 members found this post helpful.
Old 09-01-2018, 10:19 AM   #5
RonCam
Member
 
Registered: Dec 2008
Posts: 138

Original Poster
Rep: Reputation: 52
Thumbs up

Thanks to all who replied. I took a bit from each, put it together, and now it's working fine.
Quote:
Originally Posted by fatmac View Post
The usual way to kill an errant program is to 'kill 9' it's PID number.
...
This is working to kill firefox, with a slight syntax change from your suggestion -- but retaining the value of 9:
Code:
killall -9 firefox
... without having to look for the PID. The name alone seems to be working just fine.

Quote:
Originally Posted by hazel View Post
...
But killing Firefox shouldn't affect the desktop at all. What happens if you use alt+F7 to get back to your gui? ...
Your second suggestion is right on target! You're correct, the desktop was still running, because that key combination brought it right back, minus firefox, of course -- the desired result.

Quote:
Originally Posted by BW-userx View Post
killall firefox : too is an option.
I added the value -9 because I read elsewhere that when firefox is in 'that condition' it has likely drained system resources near to the breaking point and an 'orderly shutdown' may consume yet more resources. So a swift termination was recommended.

I'm going make a note of the steps:
<Ctrl><Alt><f1> to get the command line
killall -9 firefox
<Ctrl><Alt><f7> to return to the Enlghtenment/Moksha desktop

I am wondering if Hazel is a KDE user, since one of the key sequences she suggested resets Plasma. It's not implemented in Enlightenment, but perhaps it could work on Moksha. That installation of Bodhi 5.0 will be completed as soon as the older netbook gets a screen hinge repair.

Off topic but maybe useful, something of which I was unaware: on the ASUS netbooks (701, 701SD) if the screen becomes difficult to open, immediately stop using it, open it up, remove the metal hinges and lubricate them until they can be moved with finger pressure. To do otherwise places excessive stress on the internal plastic posts supporting the hinges and may cause (nearly) irreparable damage to the case, should the screen continue to be opened and closed, with the hinges in that condition.

By the way, even after an abrupt 'kill' firefox starts up just fine, giving the option of which tabs you want to restore, rather than automatically loading whatever may have 'pushed it to the edge'.

Last edited by RonCam; 09-01-2018 at 10:22 AM. Reason: syntax error corrected
 
Old 09-01-2018, 10:32 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
whatever happened to WD40?
 
1 members found this post helpful.
Old 09-01-2018, 10:42 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
No, I don't use KDE. I don't use any big desktop; a simple window manager (usually fluxbox) is good enough for me. But the ctrl+alt+back trick is very ancient. Basically it kills the X-server itself, but there is a configuration option that stops it working. I think that many desktops inhibit it.

If you find a post helpful, you can add to the poster's reputation by marking it.
 
1 members found this post helpful.
Old 09-01-2018, 11:33 AM   #8
RonCam
Member
 
Registered: Dec 2008
Posts: 138

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by BW-userx View Post
whatever happened to WD40?
You are a mind-reader as a can of WD-40 was bought for the purpose. The hinges also have a screw to adjust a tensioning spring and that can be backed-off a little. I've already been through the process on the newer 701-SD and now its screen opens and closes better than new. The hinge-support posts have been rebuilt with epoxy putty, so it's essential that the screen may be moved with as little force as possible.
Quote:
Originally Posted by hazel View Post
... If you find a post helpful, you can add to the poster's reputation by marking it.
Thanks for pointing that out, because I am new to the LinuxQuestions forum.
 
Old 09-01-2018, 12:09 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by RonCam View Post
You are a mind-reader as a can of WD-40 was bought for the purpose. The hinges also have a screw to adjust a tensioning spring and that can be backed-off a little. I've already been through the process on the newer 701-SD and now its screen opens and closes better than new. The hinge-support posts have been rebuilt with epoxy putty, so it's essential that the screen may be moved with as little force as possible.
Thanks for pointing that out, because I am new to the LinuxQuestions forum.
you're just trying to keep that thing alive, so its like two or three steps away from life support. you would be the only one that would know it frailty. super glue I think would/ might do a better job than epoxy putty for the hinges to plastic fastening.
 
1 members found this post helpful.
Old 09-01-2018, 12:44 PM   #10
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,521

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
I think that should be ctrl+alt+back. ctrl+alt+del would reboot the whole thing.
Thanks Hazel, not sure why I put that, I knew what I meant.
 
1 members found this post helpful.
Old 09-02-2018, 06:05 AM   #11
RonCam
Member
 
Registered: Dec 2008
Posts: 138

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by BW-userx View Post
you're just trying to keep that thing alive, so its like two or three steps away from life support. ...
Actually, I'll be glad if it remains functional until someone gets the sound working for GNU/Linux on the One Mix Yoga. When that time comes, I will miss the 701 and 701SD's forward-facing over-sized loudspeakers behind the wide bezel, but one can't have everything ...
 
Old 09-02-2018, 06:38 AM   #12
RonCam
Member
 
Registered: Dec 2008
Posts: 138

Original Poster
Rep: Reputation: 52
Duplicate post -- unable to find option to delete it

Quote:
Originally Posted by BW-userx View Post
you're just trying to keep that thing alive, so its like two or three steps away from life support. ...
Actually, I'll be glad if it remains functional until someone gets the sound working for GNU/Linux on the One Mix Yoga. When that time comes, I will miss the 701 and 701SD's forward-facing over-sized loudspeakers behind the wide bezel, but one can't have everything ...

Last edited by RonCam; 09-02-2018 at 06:45 AM. Reason: Pressed Edit/Delete button, but am seeing only Edit - not Delete?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restarting service using command works fine but using the same command in shell script fails to restart UserLinux123 Linux - Newbie 4 04-26-2016 09:47 AM
LXer: Enlightenment's Terminal Gets New Features LXer Syndicated Linux News 0 12-10-2013 02:10 AM
LXer: Enlightenment's Terminal Brings In Fancy Features LXer Syndicated Linux News 0 03-26-2013 11:22 PM
How to restart enlightenment session? werepacman Linux - Desktop 1 07-25-2010 01:15 AM
Restart through terminal jojojo Linux - Newbie 3 05-27-2006 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration