Building pfSense 2.2 / FreeBSD 10.1 - WORKING STEPS
-
Hii,
I am a new comer, Please assist me how to build own pfSense
-
Hi sreekupm,
Step 1: READ the posts above yours !
Step 2: read some more forum posts, try to do the steps, then read some more.
Step 3: fail while trying those steps, then try to understand the error's show, gather logfiles, look in those logs for clues what might have gone wrong.
Step 4: search the forum and use google to find possible solutions to your problems..
Step 5: try those possible solutions.
Step 6: repeat above steps 3 times (or more..)Step 7: then, and only then, clearly explain what you have done, tried and failed at, what errors you have seen, what step you could not follow..
Now please follow these instructions and you might get a more useful reply next time..
Some computer knowledge and is expected from a developer so we are not going to tell every mouse click you need to do..
What would you say when i report you the problem that the program/website you created is not working properly? Wouldn't you like to know what button&page i was talking about and what behavior i expected but didn't get?I'm sorry if i sound a bit harsh, but please do understand that your question is useless like it is currently written..
Regards,
PiBa-NL -
Hi,
I couldnt clone the repo's.
Following steps I performed
1. accepted Individual CLA
2. accepted the License Agreement (also insert my pubkey)
3. imported the openssh private key in my freebsd machine (evalssh-agent -c
, ssh-add /path/to/private/openssh_key
4. waited 1 hour
5. tried to clone (git clone -b RELENG_2_2 git@git.pfsense.org:pfsense-tools tools)
And here I´m asked for an Password (Not the password from my private key)To verifiy if I made an mistake with my pub key , i uploaded the pub key to github.com and tested the verification (ssh -T git@github.com), these worked as it should and returned.
"Hi skirschner! You've successfully authenticated, but GitHub does not provide shell access."My Pfsense profil contain my github username and the pubkey , also the subscriptions would displayed as active.
Have someone an idea ?
[root@freebsd-2836] /home/pfsense# git clone -b RELENG_2_2 git@git.pfsense.org:pfsense-tools tools Cloning into 'tools'... Password:
-
Im not sure what is currently the best repository to clone from.. But you could try cloning from github instead. Now that you have signed the ICLA and LA you have also been added to the 'pfsense-tools team'..
what happens if you try? The following:git clone -b RELENG_2_2 git@github.com:pfsense/pfsense-tools.git tools
-
Thank you , it worked for me.
Now i have to find out how to build a specific appilcation in a pbi.
-
@S.:
Now i have to find out how to build a specific appilcation in a pbi.
Not really sure why'd anyone do that… Use pkg instead. https://doc.pfsense.org/index.php/Installing_FreeBSD_Packages#pfSense_2.2
-
@S.:
Now i have to find out how to build a specific appilcation in a pbi.
Not really sure why'd anyone do that… Use pkg instead. https://doc.pfsense.org/index.php/Installing_FreeBSD_Packages#pfSense_2.2
Yes allready tried it , but I would like to use some options that isnt available in "stock".
Thats the reason why i try to build my own pbi for the pfsense machine.
-
Still using pkg instead of pbi makes sense.
Building a single PBI takes hours on my system.. While using a 'pkg create YourPackage' on a FreeBSD system where the package was compiled and then 'pkg add YourPackage-1.2.3.txz' on pfSense the whole process can be done in a matter of a few minutes.
-
^^^ There. Plus, worse yet, the end result with PBI is usually a completely broken thing needing tons of hacks to work.
-
Ok thats are some points why the pkg method gets a + :)
But I try it with a pbi , for following reason:
1.keep the usability of the webinterface for that software
2.keep the possability to update the software later via the webinterface without "tons" of old useless files
3.publish my expierence in the forum, that other got an better idea how it works and maybe faster an update for that software could be published to all via the offical repo.The software i try to build is the latest version of squid 3 (which is actual the version 3.5.8 and the latest (not fully offical) available version for pfsense is 3.5.3 at the moment).
And i hope if its get working that the offical version of squid 3 got updated for pfsense that all other could use the new features.At the moment I stuck a bit with the default prefix path.
-
That's just completely wrong reason. The usability with the web GUI will be much better if you avoid PBI completely. With huge things like this, probably some 1/3 of the code could be dropped altogether if there was no PBI in the first place. Huge part of the rest could be simplified and made much less buggy.
Squid 3.5.x is already compiled as PBI (https://files.pfsense.org/packages/10/All/). Upgrade never happened mostly likely because
- it'd require another round of insane hacking around the PBI screwed paths in the XML/PHP package (the webGUI)
- the whole binary thing doesn't work properly anyway
If you want to work on Squid 3.5.x GUI integration
- install Squid via pkg
- take the current package code - https://github.com/pfsense/pfsense-packages/tree/master/config/squid3/34
- fix the package code so that it points to the sane paths under the /usr/local prefix, ditching all the PBI and pfSense-version specific shit/generally useless garbage (if,else,blah…)
-
Squid 3.5.x is already compiled as PBI (https://files.pfsense.org/packages/10/All/). Upgrade never happened mostly likely because
- it'd require another round of insane hacking around the PBI screwed paths in the XML/PHP package (the webGUI)
- the whole binary thing doesn't work properly anyway
What I dont get is , I think between 3.5.3 and 3.5.9 didnt changed so much in the file structure,
why the person who build 3.5.3 couldnt fetch the new files and build 3.5.9 ? -
Hmm? Why'd you waste hours of time building something that ain't gonna be used anywhere?
-
Hi sreekupm,
Step 1: READ the posts above yours !
Step 2: read some more forum posts, try to do the steps, then read some more.
Step 3: fail while trying those steps, then try to understand the error's show, gather logfiles, look in those logs for clues what might have gone wrong.
Step 4: search the forum and use google to find possible solutions to your problems..
Step 5: try those possible solutions.
Step 6: repeat above steps 3 times (or more..)Step 7: then, and only then, clearly explain what you have done, tried and failed at, what errors you have seen, what step you could not follow..
Now please follow these instructions and you might get a more useful reply next time..
Some computer knowledge and is expected from a developer so we are not going to tell every mouse click you need to do..
What would you say when i report you the problem that the program/website you created is not working properly? Wouldn't you like to know what button&page i was talking about and what behavior i expected but didn't get?I'm sorry if i sound a bit harsh, but please do understand that your question is useless like it is currently written..
Regards,
PiBa-NLI had done above steps but stuck up here what I can do?
[2.2.4-RELEASE][admin@pfSense.localdomain]/home/pfsense: git clone -b RELENG_2_2 git@github.com:pfsense/pfsense-tools.git tools
Cloning into 'tools'…
Permission denied (publickey).
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists. -
Surely you did not do "step7: clearly explain what you have done, tried and failed at".
Anyway..So, did you sign the ICLA or CCLA and the LA for the pfSense portal ? Did you recieve a email that you added to the pfsense-tools team? Did you configure your public ssh key to github?
-
Hi PiBa
I already sign Individual CLA - Lifetime
I am stuck up
root@develop:/usr/ports/devel/git # cd /home/pfsense && git clone git@git.pfsense.org:pfsense-tools tools
Cloning into 'tools'…
The authenticity of host 'git.pfsense.org (208.123.73.74)' can't be established.
ECDSA key fingerprint is 52:7b:22:f9:3b:7e:dd:85:85:1a:a5:98:b8:8f:7f:62.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'git.pfsense.org' (ECDSA) to the list of known hosts.
Password: Which Password??
Password for git@git.pfsense.org: Which Password??
Password:
Password for git@git.pfsense.org:
Password:
Password for git@git.pfsense.org:
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists. -
pfsense-tools moved onto GitHub as a private repo a while ago. After completed the CLA you should have it as a repo in GitHub. That GitHub repo has the RELENG_2_2 branch from which you should be able to clone and build 2.2.* …
I guess the CLA signup code is no longer automagically adding access to the git.pfsense.org:pfsense-tools repo?
-
@sreekupm@gmail.com:
I had done above steps but stuck up here what I can do?
[2.2.4-RELEASE][admin@pfSense.localdomain]/home/pfsense: git clone -b RELENG_2_2 git@github.com:pfsense/pfsense-tools.git tools
Cloning into 'tools'…
Permission denied (publickey).
fatal: Could not read from remote repository.Some questions where asked after you asked that.
@PiBa:- So, did you sign the ICLA or CCLA and the LA for the pfSense portal ?
- Did you recieve a email that you added to the pfsense-tools team?
- Did you configure your public ssh key to github?
Which you did not answer..
@sreekupm@gmail.com:
I am stuck up
root@develop:/usr/ports/devel/git # cd /home/pfsense && git clone git@git.pfsense.org:pfsense-tools tools
Cloning into 'tools'…Indeed you are.. And probably will be for a while longer.. Why now try and clone a different repository? Others have confirmed the github repository to be working fine? (when ICLA/CCLA LA are signed, and ssh key has been configured)
If i may repeat myself.. Please read the other posts in this thread, and don't blindly run commands until something breaks, instead try to understand what your doing, pretty much all information required is there already.
Could you please answer the 3 questions above before continuing with other attempts?
-
Hi Piba
I had sign ICLA
recived a mail [pfsense-github added you to the pfsense team pfsense-tools read access]configured Publish key in github
:( -
Ok, so does this work now?
git clone -b RELENG_2_2 git@github.com:pfsense/pfsense-tools.git tools
Edit,
After loading the private ssh key, with commands shown before.