SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-02-13 15:36:43

neogramps
New Member
Registered: 2012-02-13
Posts: 2

Post-install script: Proxy issue

Hi,

I just installed Crunchbang the other day at work; and I had to bugger about to get it to work with our proxy/vpn - unfortunately when I was done, I had accidently killed the post-install script.

Could anyone let me know where this is stored so I can re-run it?

Thanks

Last edited by neogramps (2012-02-14 11:25:57)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-02-13 15:42:42

thevdude
#! Junkie
From: Pittsburgh, PA
Registered: 2011-09-01
Posts: 469

Re: Post-install script: Proxy issue

just run "cb-welcome" from terminal.

Offline

#3 2012-02-13 15:44:55

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Post-install script: Proxy issue

... and mark the thread 'Solved' by editing your first post smile

Offline

#4 2012-02-13 21:12:44

neogramps
New Member
Registered: 2012-02-13
Posts: 2

Re: Post-install script: Proxy issue

Thanks a lot guys smile

I can run the script, but can't actually connect through my proxy. Same with the other scripts (i.e. install Dropbox)

I'm using a script which a friend gave me - it uses proxydriver, and whenever I connect to my work SSID it starts up vpnc and moves a proxy config into /etc/apt/apt.conf.d/80proxy

I can use apt fine, and use wget  if I set the proxy again via export http_proxy [and ftp proxy]) but the scripts won't connect.

Am i missing something?

Last edited by neogramps (2012-02-14 11:25:35)

Offline

#5 2012-05-16 18:07:15

Zetas
New Member
Registered: 2012-05-16
Posts: 1

Re: Post-install script: Proxy issue

You can't really ping through a proxy, a proxy operates on a different layer of the TCP stack. You'd need to punch a whole through the network to let the ping out, use a VPN with a forced gateway or do what i did and comment out the ping command in the /usr/lib/lib-cb-welcome/check-internet-connection file.

Offline

#6 2012-05-17 07:50:25

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,887
Website

Re: Post-install script: Proxy issue

FYI, a patch has already been supplied for this and it will be applied to the next build smile

Online

#7 2012-08-29 09:01:53

Fran Simó
New Member
Registered: 2012-08-29
Posts: 1
Website

Re: Post-install script: Proxy issue

Steps I made for solve it

1) Create file /etc/apt/apt.conf.d/80proxy with

Acquire::http::proxy "http://user:password@server:port/";
Acquire::ftp::proxy "ftp://user:password@server:port/";
Acquire::https::proxy "https://user:password@server:port/";

2) Modify /usr/lib/lib-cb-welcome/check-internet-connection repacing the ftp.debian.org ping by my proxy server

3)  type in terminal

export http_proxy=http://user:password@server:port/

4) re-run post installation script typing in terminal

cb-welcome

Offline

#8 2012-10-02 14:00:22

canpolat
Member
Registered: 2012-09-25
Posts: 28

Re: Post-install script: Proxy issue

Fran Simó wrote:

Steps I made for solve it

1) Create file /etc/apt/apt.conf.d/80proxy with

Acquire::http::proxy "http://user:password@server:port/";
Acquire::ftp::proxy "ftp://user:password@server:port/";
Acquire::https::proxy "https://user:password@server:port/";

2) Modify /usr/lib/lib-cb-welcome/check-internet-connection repacing the ftp.debian.org ping by my proxy server

3)  type in terminal

export http_proxy=http://user:password@server:port/

4) re-run post installation script typing in terminal

cb-welcome

For Waldorf:

Instead of step 2 & 3 above, you can use the wgetrc file to set your proxies for all uses of wget. If you need a password for proxy access, it may be a good idea to create a configuration file for yourself (as opposed to using the global one):

cp /etc/wgetrc ~/.wgetrc

Now you can open ~/.wgetrc and find the section for proxy settings. Activate the relevant proxy settings (remove the # in front of the line and modify them to fit your setup) and set "use_proxy" to on.

# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = https://USERNAME:PASSWORD@host:port/
http_proxy = http://USERNAME:PASSWORD@host:port/
ftp_proxy = ftp://USERNAME:PASSWORD@host:port/

# If you do not want to use proxy at all, set this to off.
use_proxy = on

Next time you run wget (or cb-welcome which uses wget to check internet connection), you'll go through the proxy.

Edit: I added the note that my instructions are only valid for Waldorf (which uses wget) and not for Statler (which uses ping).

Last edited by canpolat (2012-10-03 13:40:17)


"If the facts don't fit the theory, change the facts. " ~Einstein

Offline

#9 2012-10-15 08:05:50

petru
New Member
Registered: 2012-10-15
Posts: 1

Re: Post-install script: Proxy issue

Hi,

I had the same issue with proxy.
I just commented the script /usr/bin/cb-welcome and commented line 45:

#. $LIBDIR/check-internet-connection

The thing is, ping does not work behind a proxy, so the "check-internet-connection" script is useless.
I have configured proxy for apt-get, and everything worked smoothly.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo