LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro
User Name
Password
Manjaro This forum is for the discussion of Manjaro Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 07-07-2018, 08:40 AM   #1
anon_private
Member
 
Registered: Aug 2014
Location: UK
Distribution: manjaro (KDE) 17.1.7 or kubuntu 16.04.4
Posts: 65

Rep: Reputation: Disabled
Starting rkhunter


Hello,

I can start rkhunter form the command line.

I would like to start this programme from the gui. However, when I set up the command line and click the icon in the gui nothing happens.

Can anyone advise?

Thanks
 
Old 07-07-2018, 05:42 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by anon_private View Post
Can anyone advise?

Thanks
Post the script and please identify the terminal-emulator you are using.

See https://askubuntu.com/questions/4662...ommands-in-the
for possible solutions.
along the lines of
Code:
terminal -e "rkhunter -c -sk"
Have fun.
 
Old 07-08-2018, 04:54 AM   #3
anon_private
Member
 
Registered: Aug 2014
Location: UK
Distribution: manjaro (KDE) 17.1.7 or kubuntu 16.04.4
Posts: 65

Original Poster
Rep: Reputation: Disabled
Hello,

[andrew@Dell-pc ~]$ terminal -e "rkhunter -c -sk"
bash: terminal: command not found
[andrew@Dell-pc ~]$

I copied this from the properties box, rkhunter desktop - plasma

/usr/bin/rkhunter -c %F

No luck


I tried this

andrew@Dell-pc ~]$ konsole -e "rkhunter -c -sk"
"Could not find binary: " "rkhunter"
[andrew@Dell-pc ~]$

No luck

Last edited by anon_private; 07-08-2018 at 05:01 AM.
 
Old 07-08-2018, 05:19 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
there's no terminal emulator called "terminal".

and the last error implies that either rkhunter's executable is not called "rkhunter", or it's not in $PATH, or it isn't installed at all.
 
Old 07-08-2018, 06:54 AM   #5
anon_private
Member
 
Registered: Aug 2014
Location: UK
Distribution: manjaro (KDE) 17.1.7 or kubuntu 16.04.4
Posts: 65

Original Poster
Rep: Reputation: Disabled
I did try konsole

rkhunter runs from the terminal
 
Old 07-08-2018, 06:58 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by anon_private View Post
I did try konsole

rkhunter runs from the terminal
Yes, but does it run from the terminal no matter which directory you run it from?

Try using an absolute filepath.
 
Old 07-08-2018, 08:39 AM   #7
anon_private
Member
 
Registered: Aug 2014
Location: UK
Distribution: manjaro (KDE) 17.1.7 or kubuntu 16.04.4
Posts: 65

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Yes, but does it run from the terminal no matter which directory you run it from?

Try using an absolute filepath.

Is this not the absolute path:

usr/bin/rkhunter
 
Old 07-08-2018, 08:45 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by anon_private View Post
Is this not the absolute path:

usr/bin/rkhunter
The location of the rkhunter executable depends on where you installed it to, which in itself depends on how you installed it. More information on that would be useful

However, if the executable has been installed in /usr/bin then your path wouldn't work unless you were in the root directory - you need the initial / to show that it is an absolute path. The path you posted is a relative path.

Try:

Code:
whereis rkhunter
 
Old 07-08-2018, 09:36 AM   #9
anon_private
Member
 
Registered: Aug 2014
Location: UK
Distribution: manjaro (KDE) 17.1.7 or kubuntu 16.04.4
Posts: 65

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
The location of the rkhunter executable depends on where you installed it to, which in itself depends on how you installed it. More information on that would be useful

However, if the executable has been installed in /usr/bin then your path wouldn't work unless you were in the root directory - you need the initial / to show that it is an absolute path. The path you posted is a relative path.

Try:

Code:
whereis rkhunter

whereis rkhunter
rkhunter: /usr/bin/rkhunter /usr/lib/rkhunter /etc/rkhunter.conf /usr/share/man/man8/rkhunter.8.gz

I have the /

/usr/bin/rkhunter -c %F

Last edited by anon_private; 07-08-2018 at 09:38 AM.
 
Old 07-09-2018, 11:30 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
rkhunter -h in my /usr/src/rkhunter-1.4.6/ says this about layouts
Code:
--layout <value> : Choose installation template.
                     The templates are:
                      - default: (FHS compliant; the default)
                      - /usr
                      - /usr/local
                      - oldschool: old version file locations
                      - custom: supply your own installation directory
                      - RPM: for building RPM's. Requires $RPM_BUILD_ROOT.
                      - DEB: for building DEB's. Requires $DEB_BUILD_ROOT.
                      - TGZ: for building Slackware TGZ's. Requires $TGZ_BUILD_ROOT.
                      - TXZ: for building Slackware TXZ's. Requires $TXZ_BUILD_ROOT.
this info is not seemingly available using
Code:
rkhunter -h
after it has been installed.

something like
Code:
/usr/local/bin/rkhunter -c -sk
What's the %F for?
but it may close after running, so be prepared.

Last edited by Habitual; 07-09-2018 at 11:33 AM.
 
Old 07-09-2018, 05:45 PM   #11
anon_private
Member
 
Registered: Aug 2014
Location: UK
Distribution: manjaro (KDE) 17.1.7 or kubuntu 16.04.4
Posts: 65

Original Poster
Rep: Reputation: Disabled
MY /usr/local/bin/ folder is empty
 
Old 07-10-2018, 08:27 AM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by anon_private View Post
MY /usr/local/bin/ folder is empty
Check the other locations shown like
Quote:
Originally Posted by anon_private View Post
whereis rkhunter...
rkhunter: /usr/bin/rkhunter
How was it installed? from what source? and method used to install it? apt-get...dpkg -i ...???

Last edited by Habitual; 07-10-2018 at 08:31 AM.
 
Old 07-10-2018, 12:05 PM   #13
anon_private
Member
 
Registered: Aug 2014
Location: UK
Distribution: manjaro (KDE) 17.1.7 or kubuntu 16.04.4
Posts: 65

Original Poster
Rep: Reputation: Disabled
Yes, it is in /usr/bin/rkhunter

If I remember correctly, I installed in through octopi under manjaro
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When Centos 6.3 starting,All services starting OK and starting Atd: OK .And stop scr. DeSouffle Linux - General 4 08-29-2013 12:46 AM
rkhunter scan: 1 Rootkit & 6 Possible Suspect Files /var/log/rkhunter.log included Mollusc Linux - Security 10 09-29-2011 08:43 AM
/var/log/rkhunter.log - rkhunter's (rootkit detection) logfile ahartman Linux - Security 1 07-04-2009 05:28 PM
rkhunter phatbastard Linux - Security 3 12-08-2004 09:44 PM

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

All times are GMT -5. The time now is 02:47 AM.

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