Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo for Mac OS X (Portage for Mac OS X)
  • Search

How do I install behind a firewall/proxy? [solved]

Running Portage on Mac OS X and need help with a problem? Post here.
Locked
Advanced search
8 posts • Page 1 of 1
Author
Message
publius
n00b
n00b
User avatar
Posts: 13
Joined: Thu Oct 21, 2004 7:22 pm

How do I install behind a firewall/proxy? [solved]

  • Quote

Post by publius » Wed Oct 27, 2004 7:00 pm

So I 'd like to give portage for Mac OS X a whirl on my PowerMac at work. However they have an exceptionally restrictive firewall and basically all I have is http access via a proxy server.

I download and install via the dmg, but I can't do the initial emerge --sync. Nor can I do emerge-webrsync as I dont have wget.

Any ideas?

One idea I had was to ssh home (they do allow ssh via a proxy) and forward a local port to the gentoo rysnc port. Would this work? How do I tell emerge to use a different rsync host/port?
Last edited by publius on Mon Nov 01, 2004 9:19 pm, edited 1 time in total.
Top
amiatrome
Apprentice
Apprentice
User avatar
Posts: 180
Joined: Mon Jun 28, 2004 2:36 pm
Location: Campus | Arena Country Club | Home

  • Quote

Post by amiatrome » Wed Oct 27, 2004 7:05 pm

Try this.

Code: Select all

export http_proxy="your_proxy:port"
blog | homepage | alias | prompts
Top
publius
n00b
n00b
User avatar
Posts: 13
Joined: Thu Oct 21, 2004 7:22 pm

  • Quote

Post by publius » Wed Oct 27, 2004 7:16 pm

That doesn't help. If I am not mistaken emerge --sync uses rsync not http.
Top
Robu
n00b
n00b
Posts: 24
Joined: Wed Nov 19, 2003 4:09 pm
Location: Italy

  • Quote

Post by Robu » Fri Oct 29, 2004 7:26 am

publius: Change the /etc/make.conf file to use curl instead of wget and add in the FETCHCOMMAND line the option to use the proxy.

Code: Select all

 man curl 

for any help. Then use emerge-webrsync.

In the /etc/make.conf file use: (they should be already present):

Code: Select all

FETCHCOMMAND="/usr/bin/curl --connect-timeout 15 -# -o \${DISTDIR}/\${FILE} \${URI}"
RESUMECOMMAND="/usr/bin/curl --connect-timeout 15 -# -C - -o \${DISTDIR}/\${FILE} \${URI}"
I have modified the answer, sorry for this.
Top
publius
n00b
n00b
User avatar
Posts: 13
Joined: Thu Oct 21, 2004 7:22 pm

  • Quote

Post by publius » Fri Oct 29, 2004 7:56 pm

Thanks for the help Robu! Alas, it still does not work...

I put '--proxy myfunkyproxy:8080' in those two lines in make.conf. Note I checked that they are not commented out and /usr/bin/curl is there. But I still get:

/usr/lib/portage/bin/emerge-webrsync: line 63: wget: command not found

a bunch of times when I emerge-webrsync. And sure enough wget is hardcoded in there on that line.

I think we are on the right track. This is the very first emerge sync (emerge-webrsync) on the machine. Has there been an update to the emerge-webrsync script since the installer was made?

Or I could try to just edit the script directly to use curl. But I'm off for the weekend, so it will have to wait till Monday.
Top
servobf
Apprentice
Apprentice
User avatar
Posts: 160
Joined: Thu Jun 03, 2004 7:26 am

  • Quote

Post by servobf » Sat Oct 30, 2004 9:15 pm

This site has a program SimpleWget that's a cocoa wrapper for wget. If you poke arround inside the program (just the .app folder) you'll find a copy of the actuall wget. If you copy that file to somewhere in your path, you can use it on the command line.


http://www.cosmos.ne.jp/~kaz6120/downl ... mplewget_e

Michael
Top
publius
n00b
n00b
User avatar
Posts: 13
Joined: Thu Oct 21, 2004 7:22 pm

  • Quote

Post by publius » Mon Nov 01, 2004 9:18 pm

Thanks for all the help everyone. I have a working solution now...

First, I gave up on emerge-webrsync... Even using wget, it has trouble with other commands, e.g. '-d' is an invalid option on the OSX 'date' command.

Instead, I set SYNC in make.conf to 'rsync://localhost/gentoo-portage'. Whenever I want to do a 'emerge --sync', I first ssh home and map a local port to the rsync.gentoo.org. 'ssh publius@home.com -L 873:rsync.gentoo.org:873' It actually goes through a proxy here at work and I ofcourse have to be root to map a privledged port. But then emerge --sync works like normal.

I also use the modified FETCHCOMMAND and RESUMECOMMAND with the http proxy option that Robu suggested. This allows the regular emerge package downloads to work.

It's not ideal, but it works.
Top
Robu
n00b
n00b
Posts: 24
Joined: Wed Nov 19, 2003 4:09 pm
Location: Italy

  • Quote

Post by Robu » Wed Nov 03, 2004 8:32 am

@publius: I am happy that you solved. I was out of work till today so sorry for not reply to you soon.
Yes you're right, I did'nt remember that version of emerge-webrsync has trouble with OSX date.
Solution: edit emerge-webrsync to use curl instead of wget, then comment the lines to calculate the most recent snapshot and insert the full name of the portage snapshot with the date of one day earlyer (the format is like the following: portage-20041028.tar.bz2 . With this you should be able to donwload the snapshot and upgrade the system and the portage. The new version of emerge-webrsync then is ok and you could use it without pbms.
Robu
Top
Locked

8 posts • Page 1 of 1

Return to “Gentoo for Mac OS X (Portage for Mac OS X)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic