Close

raspberry pi zero running headless vs. ssh login

A project log for Heimdall - dumb remote home

It's not smart. It's a raspberry pi I can ssh into. With a fancy mac inspired case.

davedarkodavedarko 12/06/2015 at 19:125 Comments

Case by pimoroni.com


oh dear. Seems like all the time when SSH got the hick-ups on my mac and I blamed the raspberry pi that I was wrong. SSH on my mac sometimes loses connection and tells me the host is down, but when I call top it tells a long uptime. That is weird. Not sure what happens.

I'm installing php and mysql right now, all over a ssh-client on my phone.

Change the names of your raspberryPIs if you have had more than one.

sudo service dhcpcd status

told me to do reload my daemons with

sudo systemctl daemon-reload

No clue and final thoughts for today:

whenever my ssh terminal or the browser tells me that the IP address is not reachable, my cellphone has no problems and likewise the browser, if I connect over dynamicDNS. Whenever I cannot connect over IP, the pizero.local address is also unreachable from my mac. If I then refresh or try to reconnect, it gets back again. Power supply is 1A and it is only the pizero with an OTG connected edimax usb wifi dongle. It must be something with routing in general. I've seen this at my grandmas place too. Gnargh. Is DHCP on jessy a bad thing? I have no idea. Just more questions than before.


This morning I had to wake it up with multiple requests, that made google a bit more. Found kbd settings to play with.

sudo nano /etc/kbd/config

Powersaving and monitor blank set to 0 now

Seems to be a valid thing turning the PI headless (that's what I want for all of them anyway, so, hurray!)

http://www.sbprojects.com/projects/raspberrypi/tweaks.php

https://www.bitpi.co/2015/02/14/prevent-raspberry-pi-from-sleeping/

http://serverfault.com/questions/137728/how-do-i-permanently-disable-linuxs-console-screen-saver-system-wide


I ran out of mojo again. Maybe it's the WiFi dongle.

sudo nano /etc/modprobe.d/8192cu.conf

options 8192cu rtw_power_mgnt=0

http://raspberrypi.stackexchange.com/questions/1384/how-do-i-disable-suspend-mode

http://www.mikeslab.net/?p=178

http://electronut.in/preventing-raspberry-pi-wifi-from-going-into-sleep-mode/

Discussions

Craig Hissett wrote 12/06/2015 at 19:59 point

Hurrah! I told you Pis are great :-)

  Are you sure? yes | no

davedarko wrote 12/06/2015 at 20:08 point

I think it also helps A LOT to change the name of the raspberry. At least that's the conclusion for now. I have these weird hick-ups with http as well. I hope it was a DHCP IP vs. computer name thing.

  Are you sure? yes | no

davedarko wrote 12/06/2015 at 20:10 point

or not. I have no idea. Just don't call the raspi over IPs for now. 

  Are you sure? yes | no

Craig Hissett wrote 12/06/2015 at 20:15 point

hmmm... intriguing. I have never used a Mac with mine but have had no problems with windows. I will have a feck about with mine tomorrow and see if I can recreate your issues buddy!

  Are you sure? yes | no

davedarko wrote 12/06/2015 at 20:24 point

  Are you sure? yes | no