Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to setup a Web based binary package host?[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 285

PostPosted: Thu Mar 22, 2018 11:50 am    Post subject: How to setup a Web based binary package host?[solved] Reply with quote

Hello,
i'm tying to set up a Web based binary package host, by following the wiki
https://wiki.gentoo.org/wiki/Binary_package_guide
The webserver seems to work but i can not install binary packages yet.

on server with ip 192.168.2.14
cat /etc/lighttpd/lighttpd.conf | wgetpaste -> https://paste.pound-python.org/show/UHzLv4C5uysZYO7pwnBw/

on client
cat /etc/portage/make.conf | wgetpasteYour -> https://paste.pound-python.org/show/huzQG4msmw3tbsPtsJiD/

How can i test this? What 's wrong?


Last edited by skorefish on Thu Mar 22, 2018 12:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Mar 22, 2018 11:57 am    Post subject: Reply with quote

Quote:
PORTAGE_BINHOST="http://192.168.2.14/packages"

:)
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 285

PostPosted: Thu Mar 22, 2018 12:13 pm    Post subject: Reply with quote

ok , I changed it , but there must be something else :(

when i type lynx http://192.168.2.14/ i get the default page (ok)

lynx http://192.168.2.14/packages -> 403 forbidden

emerge -Kav xeyes doesn't work

I tested the package by moving it by hand in client /usr/portage/packages
but no connection to remote packages

emerge xeyes -gKav


!!! Error fetching binhost package info from 'http://192.168.2.14/packages'
!!! HTTP Error 403: Forbidde


Last edited by skorefish on Thu Mar 22, 2018 12:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Mar 22, 2018 12:25 pm    Post subject: Reply with quote

and your server log is saying what?
at least, make sure /usr/portage/packages and the symlink are readable by other, or the group or user the http server use.
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 285

PostPosted: Thu Mar 22, 2018 12:28 pm    Post subject: Reply with quote

cat /var/log/lighttpd/access.log | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/pizQdU7uZG1OfXIWi0Oa/

Quote:
at least, make sure /usr/portage/packages and the symlink are readable by other, or the group or user the http server use.


should i use chmod on /usr/portrage/packages and it 's content? What symlink?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Mar 22, 2018 12:36 pm    Post subject: Reply with quote

yeah chmod /usr/portage/packages and its content, or at least check its current permissions.

sorry, no symlink, that's something the server create for you (the alias).
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 285

PostPosted: Thu Mar 22, 2018 12:44 pm    Post subject: Reply with quote

ok chmod 755 /usr/portage/packages/ -R did the job thx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum