installing wget into jail?

neatfreak

Dabbler
Joined
Sep 5, 2015
Messages
35
Hello

i found this great open source adblocker which is called no track (https://github.com/quidsup/notrack), and i was thinking or wanted t o try to install it in a jail. so i created a standart new jail and tried typing
wget https://raw.githubusercontent.com/quidsup/notrack/master/install.sh
then it says wget: command not found

im a n00b when i comes to doing stuff in jails and the last time i tried doing stuff with ssh i mistakenly fell out of the jails and did it in the root directory and messed up my whole freenas system. I thought ill rather ask before i need real help because i messed something out.

with google searching i saw a post saying how to install wget but it starts with having root and i dont trust that plus the thread is already 4 years old so i thought maybe stuff changed.
https://rediantosatya.wordpress.com/2012/03/05/how-to-install-wget-on-embedded-freenas/

im still on freenas 9.3.0
 

neatfreak

Dabbler
Joined
Sep 5, 2015
Messages
35
lol thats embarrassing. i extra went and checked the plex jails post because i thought i saw something with wget there. and i thought i say somebody type wget and the the plex repo.
learned something new.

thanks for the fast reply =D
 

neatfreak

Dabbler
Joined
Sep 5, 2015
Messages
35
i have another question if i may. If i use sudo in a jail is going to effect the whole system or just the jail because i wasnt able to run bash install.sh because it says not install.sh found so i installed git alongside bash and typed
git clone https://github.com/quidsup/notrack.git
cd notrack
bash install.sh
it says it cant install because sudo not found. im not even sure this program would run on freebsd, but i thought since its in a jail why not try.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Anything you do in a jail only affects the jail. Not the host.

I don't think notrack will work on freebsd though. I think the script tries to install packages that don't exist in freebsd.

In fact the github page explicitly says it only works with Debian or Ubuntu...
 

neatfreak

Dabbler
Joined
Sep 5, 2015
Messages
35
ya i know, but i thought maybe ill give it a try because in the youtube video he made he said he only tested it on those two distros.
when i glanced at the install.sh there were scripts for arch and fedora so i thought maybe it could work.
and since you say it says in the jail it was worth a try.

but thanks for your help
 

ukinami

Dabbler
Joined
Nov 9, 2019
Messages
22
Inside the jail you simply type pkg install wget
hii try to do that but dont work

root@plex:/ # pkg install wget
Updating iocage-plugins repository catalogue...
iocage-plugins repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'wget' have been found in the repositories
 

Phe0nix

Explorer
Joined
Jan 5, 2015
Messages
76
I'm getting the same as ukinami when i type pkg install wget. I'm running 11.2-U7 and trying to update
plex. I've edited the freeBSD.conf file in a text editor and changed from "no" to "yes" and still get
the same response from that command.
I was following this guide
 
Top