PiZero v1.2 Headless install

Having issues with your DietPi installation, or, found a bug? Post it here.
bre75

PiZero v1.2 Headless install

Post by bre75 »

Hi,

I'm having issue to install DietPi on a PiZero v1.2 in "headless" mode (i mean without screen).
I followed all the instructions here http://dietpi.com/phpbb/viewtopic.php?f=8&t=9#p9 but at Step 4 when trying to connect through SSH it can't find hostname "DietPi".

I first tried with Wifi. No success my network doesn't even see it.
I tried directly with ethernet adapter, no more success.
And of course i also tried usb direct connect to my laptop (i tried on both Linux and Windows)

Any idea of what mistakes i'm doing or step i'm missing ?

Thanks a lot for any help.

Regards,
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: PiZero v1.2 Headless install

Post by k-plan »

Hi,

please have a look at: DietPi-Automation

.. and edit /boot/dietpi.txt with a linux compatible text editor (e.g. Notepad2) to use a static ip address,
before first boot up
after writing image to sd card!
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
bre75

Re: PiZero v1.2 Headless install

Post by bre75 »

Hi,

Thx a lot for your answer who helped me to solve my install issue !

I just have one problem left now.

When i'm running apt-get update or upgrade it's failing.
AptGetUpdate.png
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: PiZero v1.2 Headless install

Post by WarHawk »

I have to log into my router at home...then pull the DHCP address from clients to find dietpi

Also...make 100% sure the powersupply can run the Pi...biggest problem I have had to deal with is even though it looks like it up and running, the power from some of my phone bricks would NOT run without crashing the processor.

I guess you could run nmap on a linux device and look for live hosts
sudo nmap -sP 192.168.2.1/24 (change to your LAN network scheme)

yaps is one I just found for windows (they have a port of nmap to windows)
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: PiZero v1.2 Headless install

Post by WarHawk »

bre75 wrote:Hi,

Thx a lot for your answer who helped me to solve my install issue !

I just have one problem left now.

When i'm running apt-get update or upgrade it's failing.
AptGetUpdate.png
Can you ping www.google.com or any other url?
Might be you need to ensure (if using static IP) that /etc/network/interfaces has a default gateway and dns set to your home router
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: PiZero v1.2 Headless install

Post by k-plan »

bre75 wrote: I just have one problem left now.
Please put in here the output of:

Code: Select all

cat /etc/network/interfaces
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiZero v1.2 Headless install

Post by Fourdee »

WarHawk wrote:
bre75 wrote:Hi,

Thx a lot for your answer who helped me to solve my install issue !

I just have one problem left now.

When i'm running apt-get update or upgrade it's failing.
AptGetUpdate.png
Can you ping http://www.google.com or any other url?
Might be you need to ensure (if using static IP) that /etc/network/interfaces has a default gateway and dns set to your home router

Code: Select all

Please put in here the output of:

CODE: SELECT ALL
cat /etc/network/interfaces
Yep, looks like DNS issue.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
bre75

Re: PiZero v1.2 Headless install

Post by bre75 »

sorry for the delay i was out for a while.

Well my dns-nameserver is 8.8.8.8 so i guess ...it's not good ...

How can i change from static to dynamic ip address ?
bre75

Re: PiZero v1.2 Headless install

Post by bre75 »

bre75 wrote:sorry for the delay i was out for a while.

Well my dns-nameserver is 8.8.8.8 so i guess ...it's not good ...

How can i change from static to dynamic ip address ?
I feel so stupid.. dietpi-config of course ...
I succeed !
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: PiZero v1.2 Headless install

Post by WarHawk »

nameserver 8.8.8.8

is the google dns server...one of em the other is 4.4.4.4

Those should work...do you have a gateway set for your network hardware

also make sure you set the thread title to [Solved]
Post Reply