LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-13-2020, 08:55 PM   #1
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
I need help getting Privoxy running on openSUSE Leap 15.2


I'm helping someone set it up and I'm not familiar with how openSUSE Leap 15.2 does things. I want to setup Privoxy so it will run on boot and I don't know how to set it up beyond installing the Privoxy package via YaST.

Here are the files that were installed through YaST: https://build.opensuse.org/package/s...3A15.2/privoxy
 
Old 11-14-2020, 02:27 AM   #2
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
Because privoxy is in the standard Repo as you can see:
Code:
LANG=C zypper se -s privox
Loading repository data...
Reading installed packages...

S  | Name        | Type    | Version          | Arch   | Repository
---+-------------+---------+------------------+--------+-----------
i+ | privoxy     | package | 3.0.28-lp152.2.6 | x86_64 | OSS
   | privoxy-doc | package | 3.0.28-lp152.2.6 | noarch | OSS
You can install privoxy, as root by:
Code:
zypper in privoxy
To start it:
Code:
systemctl start privoxy.service
To start it on every reboot:
Code:
systemctl enable privoxy.service
Configuration:
/etc/privoxy
which is a link to /var/lib/privoxy/etc
 
1 members found this post helpful.
Old 11-14-2020, 04:00 PM   #3
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Original Poster
Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Thanks that worked. Before it couldn't find the privoxy.service. I had to use
Code:
sudo rcprivoxy restart
to get it to work with chromium and firefox:
https://sourceforge.net/p/ijbswa/support-requests/1691/
 
Old 11-14-2020, 11:28 PM   #4
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Original Poster
Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
I had to create service files for rcprivoxy. I'm sure there is a better way to do this but here are my service files to help whoever has issues with getting chromium/firefox to use privoxy. I used a timer to run "rcprivoxy restart." These are my first service files and I'm sure someone can come up with something better but this worked for me. I put these in
Code:
/etc/systemd/system/
One is called rcprivoxy.timer and the other is called rcprivoxy.service

rcprivoxy.timer
Code:
 [Unit]
Description=Timer to start rcprivoxy with
Requires=rcprivoxy.service

[Timer]
Unit=rcprivoxy.service
OnBootSec=1min

[Install]
WantedBy=timers.target
rcprivoxy.service
Code:
[Unit]
Description=Restart Privoxy 
After=network.target privoxy.service
Requires=privoxy.service
PartOf=privoxy.service
Wants=rcprivoxy.timer


[Service]
Type=oneshot
ExecStart=/usr/sbin/rcprivoxy restart

[Install]
WantedBy=network-online.target

Last edited by RadicalDreamer; 11-14-2020 at 11:31 PM.
 
Old 11-15-2020, 05:45 AM   #5
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
Quote:
I had to create service files for rcprivoxy.
Why?

Code:
rpm -ql privoxy | grep -i service
/etc/sysconfig/SuSEfirewall2.d/services/privoxy
/usr/lib/systemd/system/privoxy.service
/var/lib/privoxy/etc/templates/mod-support-and-service
Its using systemd as every distribution nowadays.
 
1 members found this post helpful.
Old 11-15-2020, 03:33 PM   #6
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Original Poster
Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Quote:
Originally Posted by Sauerland View Post
Why?

Code:
rpm -ql privoxy | grep -i service
/etc/sysconfig/SuSEfirewall2.d/services/privoxy
/usr/lib/systemd/system/privoxy.service
/var/lib/privoxy/etc/templates/mod-support-and-service
Its using systemd as every distribution nowadays.
The system is using Firewalld. Privoxy would load up, I could see it with "ss -tan" but firefox or chromium wouldn't use it unless I used the command "rcprivoxy restart" and I needed to use that command each boot. The only thing I could figure out to do from the internet is those scripts. I'm not familiar with openSUSE. Not every distribution uses systemd. This has made me appreciate those that don't even more.

Edit: I want to make clear that I installed OpenSUSE for them after they tried several other distributions like Manjaro, Fedora, Linux Mint, Debian, & Ubuntu. It was the most stable, newbie friendly, and it just worked. I was left impressed with OpenSUSE because the others failed in some way. I believe it will serve them well. They wanted one that they could manage themselves and OpenSUSE Leap 15.2 has worked beautifully.

Last edited by RadicalDreamer; 11-15-2020 at 04:00 PM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: openSUSE Leap 15.0 Reached End of Life, Upgrade to openSUSE Leap 15.1 Now LXer Syndicated Linux News 0 12-01-2019 09:21 AM
LXer: openSUSE Leap 42.3 Linux OS Reached End of Life, Upgrade to openSUSE Leap 15.1 LXer Syndicated Linux News 0 06-30-2019 01:54 AM
LXer: openSUSE Leap 42.2 is out, how to upgrade safely from openSUSE Leap 42.1 LXer Syndicated Linux News 0 11-17-2016 07:18 AM
dig output shows NOERROR but no IP and privoxy claims NXDOMAIN ( privoxy OFF) linuxStudent11 Linux - Networking 0 04-27-2011 10:45 PM
Privoxy - "Privoxy is not being used" from http://www.privoxy.org/config/ slimjim Linux - Networking 1 03-12-2007 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:03 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