You are not logged in.

#1 2017-09-03 19:25:31

seg1t
Member
Registered: 2017-09-03
Posts: 5

[Solved] Obmenu - Can not find the shell

Hello! I am writing the following command in ObMenu ---> terminator -e 'rkhunter --check --sk' (example, it can be anything like terminator -e 'any --any') I have an inscription:

"Не удается найти оболочку (shell)" - RU
or
"Can not find the shell (shell)" - EN


please, write to me what I'm doing is wrong and how to run the command (with sudo) in the terminal through Obmenu?

Is interested in Terminator and Tilda or Guake.

Last edited by seg1t (2017-09-03 19:36:13)

Offline

#2 2017-09-03 22:04:57

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [Solved] Obmenu - Can not find the shell

Hi seg1t, welcome to BunsenLabs smile

Try this command in the menu...

terminator -e "/bin/bash -c 'sudo rkhunter --check --sk; /bin/bash'"

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-09-03 23:15:53

seg1t
Member
Registered: 2017-09-03
Posts: 5

Re: [Solved] Obmenu - Can not find the shell

Thanks:) ,

but the same thing...

I ran this command through Xterm and was the following:
_____________________________________________________________________________
<Window object at 0x7faff274f690 (terminatorlib+window+Window at 0x2c120b0)> is not in registered window list
_____________________________________________________________________________


I ran this command through Terminator and was the following:
_____________________________________________________________________________
** (terminator:5214): WARNING **: Binding '<Shift><Control>a' failed!
Unable to bind hide_window key, another instance/window has it.
_____________________________________________________________________________

It seems to be the case in my Terminator?

Last edited by seg1t (2017-09-03 23:53:02)

Offline

#4 2017-09-04 01:40:56

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: [Solved] Obmenu - Can not find the shell

Добро пожаловать в BunsenLabs.

Try this command:

terminator -x thelp 'sudo rkhunter --check --sk'

thelp is a bash script in your $PATH [mine is in: ~/bin] and executable.

#! /bin/bash
#
# THIS PROGRAM WILL: Open the terminal, execute a command, and keep the terminal open.
# The intention is that you call this script from a menu launcher and include an argument in your command. (SEE BELOW)
#
# Darrin Goodman (http://www.hilltopyodeler.com/blog) > hilltopyodeler@gmail.com
# Credit is due to 13u11fr09 through his/her thread at http://ubuntuforums.org/archive/index.php/t-296628.html
# Go to the link above for more ideas and philosophies on this subject.
#
# This script should be called from your panel/menu launcher using a command structure
# that will launch your terminal emulator, then call on this shell script, and then provide
# an argument that is taken in by this script ("$1" or $@); this argument tells the script
# which command to run (for instance: nmap --help).
# SYNTAX: [command] [path/to/helperScript.sh] [argument]
#
# PLEASE NOTE THAT:
#	- "USER" SHOULD BE CHANGED TO YOUR OWN USERNAME BELOW
#	- CHANGE "nmap --help" TO WHATEVER IS SPECIFIC TO YOUR NEEDS.
#	- MAKE SURE THAT helperScript.sh IS EXECUTABLE (chmod 755 helperScript.sh)
#
# The command you should use in your panel/menu launcher is as follows.
#   For gnome-terminal, use: gnome-terminal -x /home/USER/helperScript.sh nmap --help
#   For xterm, use: xterm -e /home/USER/helperScript.sh nmap --help
#   For Terminator, use: terminator -x /home/USER/helperScript.sh nmap --help
# [-x] and [-e] are the flags for "execute".
#	Note: for some reason, "terminator -x" will launch some things in Terminator,
#	but not others; not sure why at this time.
#
# The reference below to /bin/bash tells the terminal to keep a bash shell open and running.

$@
/bin/bash

2017-09-03_223900_Scrot11.th.jpg

EDIT: single quotes not needed:

terminator -x thelp sudo rkhunter --check --sk

works just as well.
2017-09-03_225006_Scrot11.png

Last edited by Sector11 (2017-09-04 01:46:35)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#5 2017-09-04 14:27:08

seg1t
Member
Registered: 2017-09-03
Posts: 5

Re: [Solved] Obmenu - Can not find the shell

terminator -x thelp sudo rkhunter --check --sk

and

s_1504535070_3181918_e26e058002.png




I'm not yet an advanced user and probably will miss this problem for now

Last edited by seg1t (2017-09-15 18:05:47)

Offline

#6 2017-09-04 14:50:36

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: [Solved] Obmenu - Can not find the shell

Did you put the script: thelp in your $PATH and make it executable?

04 Sep 17 @ 11:46:57 ~
   $ $PATH
bash: /home/sector11/bin:/usr/sbin:/sbin:/home/sector11/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: No such file or directory

04 Sep 17 @ 11:47:09 ~
   $

Mine is in ~/bin


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#7 2017-09-04 15:31:48

seg1t
Member
Registered: 2017-09-03
Posts: 5

Re: [Solved] Obmenu - Can not find the shell

Sector11 wrote:

Did you put the script: thelp in your $PATH and make it executable?

there are difficulties in understanding the language, I use a translator

s_1504538841_9000970_762507a1e0.png

Something's wrong, right? I can not see the /home/sg/bin

please step by step, otherwise I will not understand what to throw

--

ОК, I do not have a bin folder ) I guess I deleted it by accident

Because of this, all ? )

Then the problem is solved. Thanks!

Last edited by seg1t (2017-09-04 16:23:54)

Offline

#8 2017-09-04 17:03:54

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: [Solved] Obmenu - Can not find the shell

Then I will try both.  With a translator as well
Тогда я попробую оба. С переводчиком, а также

1.
Edit: ~/.config/openbox/autostart
редактировать: ~/.config/openbox/autostart)

Add this line:
Добавьте эту строку:

export PATH=~/bin:$PATH

2.
Log out and then check again to see if ~/bin is in your $PATH
Выйдите из системы, а затем еще раз проверьте, есть ли ~/bin в вас $PATH

if is is not, please come back here.
если нет, вернитесь сюда.

3.
If it is, and it should be, copy the file "thelp" from my other post to ~/bin/thelp
Если это так и должно быть, скопируйте файл "thelp" из моего другого сообщения в ~/bin/thelp

4.
And make thelp 'executable'
И сделайте thelp 'executable'

Then try:  Затем попробуйте:

terminator -x thelp sudo rkhunter --check --sk

If the Russian is bad - blame Google
Если русский плохой виноват Google   lol


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#9 2017-09-05 16:41:44

seg1t
Member
Registered: 2017-09-03
Posts: 5

Re: [Solved] Obmenu - Can not find the shell

Yes, after the tips, I had / home / sg / bin,
s_1504629457_8035918_e69e77b1fd.png

but then I realized that I broke the system myself and went the other way, that was completely my fault) Thanks for help! The problem is solved.

Last edited by seg1t (2017-09-05 16:55:10)

Offline

#10 2017-09-05 19:56:48

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: [Solved] Obmenu - Can not find the shell

It happens to the best of us.  Good luck.
Hope to see you around the forums.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB