You are not logged in.
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
Hi seg1t, welcome to BunsenLabs
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
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
Добро пожаловать в 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
EDIT: single quotes not needed:
terminator -x thelp sudo rkhunter --check --sk
works just as well.
Last edited by Sector11 (2017-09-04 01:46:35)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
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 directory04 Sep 17 @ 11:47:09 ~
$
Mine is in ~/bin
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Did you put the script: thelp in your $PATH and make it executable?
there are difficulties in understanding the language, I use a translator
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
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
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
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