create account

Setting up a Raspberry Pi headless (Without monitor or keyboard) by themarkymark

View this thread on: hive.blogpeakd.comecency.com
· @themarkymark ·
$34.51
Setting up a Raspberry Pi headless (Without monitor or keyboard)
![image.png](https://files.peakd.com/file/peakd-hive/themarkymark/od2Mx3Lb-image.png)

You just got a brand new Raspberry Pi 4 and want to get it set up quickly.  You don't have a spare monitor and keyboard/mouse to set it up, or you just don't want to use one.

Almost every Raspberry Pi (I have around 10 personally, and ordering 6 more) I have has been set up and used headless.

Unless you are using a Raspberry Pi for a gaming console (Retro Pi), Media Station (Plex), or as a desktop, there is really no reason to use a keyboard, mouse, and monitor.  I'm going to show you how to avoid all that.

# Find your Raspberry Pi's IP address

You need to know the address of the Raspberry Pi before you can connect to it.  You have two options here, edit the configuration files on a PC and give it a fixed IP or discover the IP address on the network.  I recommend the second option and I will show you how to do this.

#### Use nmap to discover your Raspberry Pi

You will need to install nmap to be able to scan your network for your Raspberry Pi.  On Linux this is as simple as `sudo apt install nmap`, if you are on Windows or Mac the install is a little more involved.

Visit https://nmap.org/download.html and download the binaries for your platform.  The installation is very simple, just basically say yes to everything.

Nmap is a command-line utility but there is a GUI solution available as well. Since finding your Raspberry Pi is one simple command, I'm going to just recommend using the command-line available in the default install.

You need to know your network and subnet mask to do this scan, but in most cases, you will be using a class C subnet and 192.168.1.0 network.  If you are using something different I hope you would know what this is, for now, I will assume you are using these defaults.

`nmap -sP 192.168.1.0/24`

This should display all devices on your network and the associated IP.

You are looking for a device that announces itself as `Raspberry Pi Foundation`.

This is the IP address you will need to connect to the Raspberry Pi remotely.

#### Connect to the Raspberry Pi

This next step may or may not work, but let's give it a try and if it doesn't work I will tell you how to turn on SSH.

Depending on the model, version, and distribution, SSH may or may not already be turned on.

From any machine on your network use your favorite ssh client to ssh into the IP you discovered above.  If you are able to connect and asked to save the host to your known hosts file, you are good to go.  You can use SSH to administer the Raspberry Pi and do most anything you can do locally, you can even install an X Window client on your PC and access GUI applications and complete X window sessions.

#### If you cannot connect via ssh, let's turn that on.

Connect the SD card to the machine you used to write out the installation image.

You should see the first partition named **Boot** show up in your file explorer. 

On this drive, create an empty file named **ssh**, if you are using a text editor make sure it doesn't add the extension `txt`.  If you are in Windows, you should make sure to turn on viewing known extensions so you can be sure it is not created as a .txt file.

Remove the SD card and place it back into the Raspberry Pi and boot.

You should now be able to ssh into the Pi and tinker away.

This should save you some time and money whenever you want to tinker with a Raspberry Pi.

Now for some Raspberry Pie!
![image.png](https://files.peakd.com/file/peakd-hive/themarkymark/hCdoYKRa-image.png)

---

<center>Securely chat with me on [Keybase](https://keybase.io/officialmarky)
<center>https://steemitimages.com/DQmcWxV1dpA1eAtw2ipwZiWZkydyVNU5LaLa2Ak1GUnbGmS/The-Marky-Mark.png </center>
# <center>  [Why you should vote me as witness](https://peakd.com/witness-category/@themarkymark/why-you-should-vote-for-themarkymark-as-witness)  </center> # 
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 624 others
👎  , , , , , , , , , , , , ,
properties (23)
authorthemarkymark
permlinksetting-up-a-raspberry-pi-headless-without-monitor-or-keyboard
categoryraspberrypi
json_metadata{"app":"peakd/2020.05.5","format":"markdown","tags":["raspberrypi","technology","palnet","neoxian"],"users":["themarkymark"],"links":["https://nmap.org/download.html","https://keybase.io/officialmarky","/witness-category/@themarkymark/why-you-should-vote-for-themarkymark-as-witness"],"image":["https://files.peakd.com/file/peakd-hive/themarkymark/od2Mx3Lb-image.png","https://files.peakd.com/file/peakd-hive/themarkymark/hCdoYKRa-image.png","https://steemitimages.com/DQmcWxV1dpA1eAtw2ipwZiWZkydyVNU5LaLa2Ak1GUnbGmS/The-Marky-Mark.png"]}
created2020-06-04 05:46:12
last_update2020-06-04 05:46:12
depth0
children4
last_payout2020-06-11 05:46:12
cashout_time1969-12-31 23:59:59
total_payout_value19.844 HBD
curator_payout_value14.663 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,905
author_reputation1,774,102,101,992,747
root_title"Setting up a Raspberry Pi headless (Without monitor or keyboard)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,763,495
net_rshares77,132,190,090,138
author_curate_reward""
vote details (702)
@kennyroy ·
Nerdy! I am a noob! LOL, my first impression about "Raspberry Pi" was literally a food! Hahaha... But when I read and look at the image, oh my vegetable salad! Electronics including IT solution! Hahaha...

I have a knowledge but not wider than yours! LOL
properties (22)
authorkennyroy
permlinkqbfyjf
categoryraspberrypi
json_metadata{"app":"hiveblog/0.1"}
created2020-06-05 07:09:15
last_update2020-06-05 07:09:15
depth1
children0
last_payout2020-06-12 07:09:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length254
author_reputation64,694,645,595,688
root_title"Setting up a Raspberry Pi headless (Without monitor or keyboard)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,783,423
net_rshares0
@lpfaust ·
Marky, I've always been fascinated with Raspberry Pi devices, but never really went out and got one. Mind you, I'm not a programmer. That being said, my daughter has been getting into programming/robotics recently. Do you think a Raspberry Pi device is something good to help her cut her teeth into programming?
properties (22)
authorlpfaust
permlinkre-themarkymark-qbf5lb
categoryraspberrypi
json_metadata{"tags":["raspberrypi"],"app":"peakd/2020.05.5"}
created2020-06-04 20:44:00
last_update2020-06-04 20:44:00
depth1
children1
last_payout2020-06-11 20:44:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length311
author_reputation69,268,196,173,999
root_title"Setting up a Raspberry Pi headless (Without monitor or keyboard)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,776,458
net_rshares0
@themarkymark ·
Most certainly. I believe kids are were doing the devices shine. 
properties (22)
authorthemarkymark
permlinkre-lpfaust-qbfari
categoryraspberrypi
json_metadata{"tags":["raspberrypi"],"app":"peakd/2020.05.5"}
created2020-06-04 22:35:42
last_update2020-06-04 22:35:42
depth2
children0
last_payout2020-06-11 22:35:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length65
author_reputation1,774,102,101,992,747
root_title"Setting up a Raspberry Pi headless (Without monitor or keyboard)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,777,831
net_rshares0
@steemstem ·
re-themarkymark-setting-up-a-raspberry-pi-headless-without-monitor-or-keyboard-20200604t161514402z
<div class='text-justify'> <div class='pull-left'>
 <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div>

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider <a href="https://hivesigner.com/sign/update-proposal-votes?proposal_ids=%5B91%5D&amp;approve=true">supporting our funding proposal</a>, <a href="https://hivesigner.com/sign/account_witness_vote?approve=1&witness=stem.witness">approving our witness</a> (@stem.witness) or delegating to the @stemsocial account (for some ROI).

Please consider using the <a href='https://stem.openhive.network'>STEMsocial app</a> app and including @stemsocial as a beneficiary to get a stronger support.&nbsp;<br />&nbsp;<br />
properties (22)
authorsteemstem
permlinkre-themarkymark-setting-up-a-raspberry-pi-headless-without-monitor-or-keyboard-20200604t161514402z
categoryraspberrypi
json_metadata{"app":"stemsocial"}
created2020-06-04 16:15:15
last_update2020-06-04 16:15:15
depth1
children0
last_payout2020-06-11 16:15:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length778
author_reputation262,017,435,115,313
root_title"Setting up a Raspberry Pi headless (Without monitor or keyboard)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,772,088
net_rshares0