# Need to bootstrap the linux node without internet

**URL:** <https://discourse.chef.io/t/need-to-bootstrap-the-linux-node-without-internet/10284>\
**Category:** Chef Infra (archive)\
**Created:** [January 24, 2017, 4:21pm UTC](https://discourse.chef.io/t/need-to-bootstrap-the-linux-node-without-internet/10284 "2017-01-24T16:21:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Rohit](https://discourse.chef.io/u/Rohit)\
**Post date:** [January 24, 2017, 4:21pm UTC](https://discourse.chef.io/t/need-to-bootstrap-the-linux-node-without-internet/10284/1 "2017-01-24T16:21:03Z")

</div>

HI

I am trying to bootstrap the linux node without internet access.

I tried various method but no luck:

1. I kept my package ie chef-client package in artifactory and ran the bootstrap command passing the --bootstrap-install-command wget command to redirect it to package , but it gave no result and was stuck on wget command.

2. I tried to download the [linux.sh](http://linux.sh) script and with an estimation inspite of the linux to package download from chef i gave the link to artifactory url, but still not worked and I am also not sure which line in linux script to edit.

3. I also tried with the custom templates but no luck.

I need a help on this if somebody can provide me the clear action to be taken to make it successful.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![manishmehra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/manishmehra/32/1484_2.png) [@manishmehra](https://discourse.chef.io/u/manishmehra)\
**Post date:** [January 24, 2017, 4:50pm UTC](https://discourse.chef.io/t/need-to-bootstrap-the-linux-node-without-internet/10284/2 "2017-01-24T16:50:03Z")

</div>

This should work:

knife bootstrap SERVER\_FQDN --ssh-user USERNAME --ssh-password “PASSWORD” --node-name SERVER\_FQDN --bootstrap-install-command “wget [https://nexus.org/nexus/content/repositories/chef\_repo/Linux/chef-client/12.9.38-1.el6.x86\_64/chef-client-12.9.38-1.el6.x86\_64.rpm;](https://nexus.org/nexus/content/repositories/chef_repo/Linux/chef-client/12.9.38-1.el6.x86_64/chef-client-12.9.38-1.el6.x86_64.rpm;) yum --nogpgcheck install -y chef-client-12.9.38-1.el6.x86\_64.rpm” --sudo --use-sudo-password PASSWORD

Change the nexus URL and rpm package name.

Cheers!

---

<div class="post-metadata">

**Author:** ![Rohit](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Rohit](https://discourse.chef.io/u/Rohit)\
**Post date:** [January 24, 2017, 4:55pm UTC](https://discourse.chef.io/t/need-to-bootstrap-the-linux-node-without-internet/10284/3 "2017-01-24T16:55:13Z")

</div>

@manishmehra

Thanks for your reply…

One question do i need to use nogpgcheck along with the same bootstrap command as you have given in above statement.

or I need to pass the command uptill " knife bootstrap SERVER\_FQDN --ssh-user USERNAME --ssh-password “PASSWORD” --node-name SERVER\_FQDN --bootstrap-install-command "wget [https://nexus.org/nexus/content/repositories/chef\_repo/Linux/chef-client/12.9.38-1.el6.x86\_64/chef-client-12.9.38-1.el6.x86\_64.rpm](https://nexus.org/nexus/content/repositories/chef_repo/Linux/chef-client/12.9.38-1.el6.x86_64/chef-client-12.9.38-1.el6.x86_64.rpm) "

Need little clarification

Thanks in advance

---

<div class="post-metadata">

**Author:** ![kkeane](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kkeane](https://discourse.chef.io/u/kkeane)\
**Post date:** [January 24, 2017, 6:59pm UTC](https://discourse.chef.io/t/need-to-bootstrap-the-linux-node-without-internet/10284/4 "2017-01-24T18:59:43Z")

</div>

The nogpgcheck is basically a precaution. Because your RPM wouldn’t come from the official repository and your machine doesn’t have Internet access, the PGP signing key may not be available for verification. That would cause the installation to fail. nogpgcheck makes the installation more resilient, at the expense that there is less protection against somebody tampering with the RPM.

If you can download and install the PGP key before bootstrapping, you don’t need nogpgcheck.

Kevin Keane  
Whom the IT Pros Call  
The NetTech  
[http://www.4nettech.com](http://www.4nettech.com)  
Our values: Privacy, Liberty, Justice  
See [https://www.4nettech.com/corp/the-nettech-values.html](https://www.4nettech.com/corp/the-nettech-values.html)
