guysoft / FullPageOS

A raspberrypi distro to display a full page browser on boot
GNU General Public License v3.0
3.79k stars 229 forks source link

Fullpageos Proxy settings #316

Open lukeyboytas1 opened 4 years ago

lukeyboytas1 commented 4 years ago

HI - Any help on how to add proxy server settings?

guysoft commented 4 years ago

If you press ctrl+t on a keyboard/vnc you should get a nornal chromium window where you can access the browser settings and set up a proxy

lukeyboytas1 commented 4 years ago

That is an awesome start.... Now I get this ( see pic) 20200216_200437

guysoft commented 4 years ago

Oh, seems like when you paste that message in to google you get a commandline argument to do this (source). So it seems you will need to add this argument in the file /home/pi/scripts/start_chromium_browser The command arguments are set is this file and you can change them, including adding that proxy server flag.

stappersg commented 4 years ago

@lukeyboytas1 how about any feedback on the additional advice from @guysoft ?

guysoft commented 4 years ago

Ill close this issue if there is no reply

lukeyboytas1 commented 4 years ago

Sorry guys - this is over my head - I dont understand adding arguments?

guysoft commented 4 years ago

@lukeyboytas1 There is a file with a line that writes the command used to start chromium. That command has list of arguments. Here is an article on this in the chromium project. If you edit that file you can change that line to have different settings. As explained in the chromium tab you took a photo on. You need to have basic understanding how to use a raspberrypi to edit a file there. Once you do it should use the proxy from that line that you edit. The path of the file in the filesystem is /home/pi/scripts/start_chromium_browser as I provided above.

stappersg commented 3 years ago

Oh, seems like when you paste that message in to google you get a commandline argument to do this (source). So it seems you will need to add this argument in the file /home/pi/scripts/start_chromium_browser The command arguments are set is this file and you can change them, including adding that proxy server flag.

Yes, adding --proxy-server="protocol://hostname:port" to the many options on chromium in /home/pi/scripts/start_chromium_browser works for me.

stappersg commented 3 years ago

@lukeyboytas1 thanks for raising the question. I'm glad found this issue. and the advice from guysoft.

For is it fine that this issue gets closed. (@lukeyboytas1 you have to power to do so)

60999 commented 3 years ago

--proxy-server="socks5://127.0.0.1:1080" --proxy-server="http://127.0.0.1:1081"

60999 commented 3 years ago

in --proxy-server="protocol://hostname:port"

could be one of them: "http", "socks", "socks4", "socks5".
stritti commented 8 months ago

Proxy could also be defined global in Rasbian, which also helps to run apt updates:

cd /etc/apt/apt.conf.d
sudo touch 10proxy
sudo nano 10proxy
//file=/etc/apt/apt.conf.d/10proxy
Acquire::http::Proxy "http://127.0.0.1:8080";
Acquire::https::Proxy "http://127.0.0.1:8080";