You are not logged in.
Pages: 1
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
just run "cb-welcome" from terminal.
Offline
... and mark the thread 'Solved' by editing your first post 
Offline
Thanks a lot guys 
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
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
FYI, a patch has already been supplied for this and it will be applied to the next build 
Online
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-welcomeOffline
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 ~/.wgetrcNow 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 = onNext 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
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
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.