[Oisf-users] Properly installing Suricata-Update on latest version of Suricata

419telegraph298 at protonmail.com 419telegraph298 at protonmail.com
Fri Feb 8 01:02:56 UTC 2019


Dear Shivani,

Thank you for your help, I ran a sudo nano bashsrc and added PATH=/home/pi/.local/bin:$PATH to the file and then saved it, ran "pip install --upgrade suricata-update", said that it installed successfully but still have not been able to the program to run from command line.


Sent from ProtonMail, encrypted email based in Switzerland.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, February 2, 2019 11:31 PM, Shivani Bhardwaj <shivanib134 at gmail.com> wrote:

> On Sun, Feb 3, 2019 at 6:27 AM 419telegraph298 at protonmail.com wrote:
>
> > Dear Shivani,
> > Thank for your advice -
> > I located the directory in /home/pi/.local/bin/suricata-update
> > I deleted the directory /usr/local/bin
> > I attempted to add it to PATH with this command " PATH=/home/pi/.local/bin/suricata-update:~/opt/bin"
>
> When adding a path, do not include the exact binary. This is the path
> where python will try to look for suricata-update. So, it should
> rather be "PATH=/home/pi/.local/bin:$PATH". See $PATH? It means you
> are also taking into account the existing PATH variable and not
> overwriting it. Note that this change will not be persistent and will
> end with the death of the shell. In order to make it persistent,
> you'll have to add this line to your ,bashrc.
>
> > but I am still getting "command not found" when I run suricata-update
> > and when I try to install again with pip:
> > pi at raspberrypi:~ $ pip install --user --upgrade suricata-update
> > Collecting suricata-update
> > Collecting pyyaml (from suricata-update)
> > Installing collected packages: pyyaml, suricata-update
> > Successfully installed pyyaml-3.13 suricata-update-1.0.3
> > pi at raspberrypi:~ $ suricata-update
> > -bash: suricata-update: command not found
> > Sent from ProtonMail, encrypted email based in Switzerland.
> > Sent with ProtonMail Secure Email.
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > On Saturday, February 2, 2019 2:24 AM, Shivani Bhardwaj shivanib134 at gmail.com wrote:
> >
> > > On Sat, Feb 2, 2019 at 4:03 AM 419telegraph298 at protonmail.com wrote:
> > >
> > > > I made a suricata-update directory and -
> > > > /usr/local/bin/suricata-update $ pip install --upgrade suricata-update
> > > > Collecting suricata-update
> > > > Collecting pyyaml (from suricata-update)
> > > > Installing collected packages: pyyaml, suricata-update
> > > > Successfully installed pyyaml-3.13 suricata-update-1.0.3
> > > > But still getting:
> > > > pi at raspberrypi:/usr/local/bin/suricata-update $ ls -l -t
> > > > total 0
> > > > pi at raspberrypi:/usr/local/bin/suricata-update $ suricata-update
> > > > -bash: suricata-update: command not found
> > >
> > > Are you creating a directory in /usr/local/bin? I'm afraid that is
> > > incorrect. You should remove that.
> > > First try "pip list" and see if suricata-update is there. Use sudo
> > > here if you used sudo with pip while trying to install
> > > suricata-update.
> > > Could you install mlocate package and run a "locate -b
> > > suricata-update" on your system? It will show you basepaths where
> > > something named suricata-update is available. Whichever out of those
> > > is a binary, likely in some path like path/to/bin/suricata-update
> > > would be your path. Add that to your PATH environment variable to be
> > > able to easily run that in your terminal. (See here
> > > https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path)
> > > Ideally if you install any pip package which does not require root
> > > privileges, you should do, "pip install <package> --user" <- this will
> > > install the package in the path of your current user, However, if you
> > > require root privileges, use "sudo pip install <package>". (Check this
> > > https://pip.pypa.io/en/stable/user_guide/#user-installs)
> > > Let us know if you face any issues trying to run suricata-update.
> > >
> > > > Sent from ProtonMail, encrypted email based in Switzerland.
> > > > Sent with ProtonMail Secure Email.
> > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > > > On Friday, February 1, 2019 4:34 PM, Jason Ish ish at unx.ca wrote:
> > > >
> > > > > On 2019-02-01 2:35 p.m., 419telegraph298 at protonmail.com wrote:
> > > > >
> > > > > > sudo: suricata-update: command not found
> > > > >
> > > > > Maybe it was installed somewhere outside of root's path. Can you try
> > > > > /usr/local/bin/suricata-update?
> > > > > Jason
> > > > >
> > > > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > > > > > On Friday, February 1, 2019 1:23 PM, Jason Ish ish at unx.ca wrote:
> > > > > >
> > > > > > > On 2019-02-01 8:32 a.m.,419telegraph298 at protonmail.com wrote:
> > > > > > >
> > > > > > > > Hello all -
> > > > > > > > Apologies if this question is obvious, I've been reading over the manual
> > > > > > > > for suricata-update and do not have an expert linux background -
> > > > > > > > I just did a fresh install of the latest Suricata on a Raspberry pi and
> > > > > > > > ran "pip install --upgrade suricata-update" :
> > > > > > > > /Collecting suricata-update///
> > > > > > > > /Collecting pyyaml (from suricata-update)///
> > > > > > > > /Installing collected packages: pyyaml, suricata-update///
> > > > > > > > /Successfully installed pyyaml-3.13 suricata-update-1.0.3/
> > > > > > > > I cannot get suricata-update to run in the terminal, however, and
> > > > > > > > no /var/lib/suricata/update directory was created...
> > > > > > >
> > > > > > > Whats the error you are getting? Are you running it as root or a
> > > > > > > non-root user? The permission setup is create a setup where you can run
> > > > > > > it as a non-root user which is ideal
> > > > > > > Jason
> > > > > > > Suricata IDS Users mailing list: oisf-users at openinfosecfoundation.org
> > > > > > > Site: http://suricata-ids.org | Support: http://suricata-ids.org/support/
> > > > > > > List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
> > > > > > > Conference: https://suricon.net
> > > > > > > Trainings: https://suricata-ids.org/training/
> > > > >
> > > > > Suricata IDS Users mailing list: oisf-users at openinfosecfoundation.org
> > > > > Site: http://suricata-ids.org | Support: http://suricata-ids.org/support/
> > > > > List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
> > > > > Conference: https://suricon.net
> > > > > Trainings: https://suricata-ids.org/training/
> > > >
> > > > Suricata IDS Users mailing list: oisf-users at openinfosecfoundation.org
> > > > Site: http://suricata-ids.org | Support: http://suricata-ids.org/support/
> > > > List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
> > > > Conference: https://suricon.net
> > > > Trainings: https://suricata-ids.org/training/
> > >
> > > --
> > > Shivani
> > > https://about.me/shivani.bhardwaj
>
> --
>
> Shivani
> https://about.me/shivani.bhardwaj




More information about the Oisf-users mailing list