Pimped Penguin Pages

Monday, May 25, 2020

Setting up a Raspberry Pi Zero W for Headless Use on Linux

This shouldn't take to long, and it's fairly simple to do. But if you're a novice and don't know about it, it might drive you crazy trying to figure this out.  And that's not the kind of crazy that is good for anyone.

This assumes that you've already figured out how you're going to get your Pi's SD card imaged.  I use BalenaEtcher myself.  There is dd and other methods a person can use.

Once the SD card is imaged you'll need to create an empty file on the Boot Partition called ssh.
Just right click in your file manager to create an empty document called ssh

Now you'll need to right click again to create a document, but you'll want to call it  wpa_supplicant.conf in that file you'll need your wifi network login information. Open that in Pluma or Nano or whatever your default text editor is, and put these lines below in in. Edited of course, with the correct SSID and Password for your Wifi network.  

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
Save this file, making sure that it's named correctly and in the \boot partition of the SD card. At this point you can eject the SD card from your PC.

Next you're going to SSH into the Pi from the terminal on you Linux machine.

What I found easiest was to log into my router and get the IP address of connected devices. I'm pretty sure that it'll show up with the network name of raspberrypi, this one I renamed Pi-Spy-One for a MotionEye Camera Project. It should be fairly obvious.

I have also used an Android App called Fing, along with nmap. But my router info does the trick. Once you have figured out what the IP address is for your Raspberry Pi Zero W, you need to open up a terminal to SSH into it.The Default username is pi and default password is raspberry

randy@linuxpc:~$ ssh pi@
pi@'s password:raspberry

If all has gone well, you've now successfully logged into your Pi Zero over Wifi!
For your initial log in you'll get a security warning. Say Yes to it.

Now would be a good time to run raspi-config  now that you've logged into it to change your default password, and expand the file system. You'll also want to run Apt Update and Apt Upgrade to get your machine up to date with it's packages.

That's pretty much it. You should have a Raspberry Pi Zero W that you can SSH into.

I've used this method a few times to get my Pi's setup for use with MotionEye. I'm working on an updated blog post of how to get that setup right now, as the original one is a little off.

I'd like to say that I took most of my information for this blog post from Mitch Allen's post about how to do this via Windows.

Thursday, January 31, 2019

Weather Clock HTML

Ever since I cut the cord, and hooked up a PC to my TV, I've always liked a nice Weather Clock display for those times I'm not watching TV and am listening to the radio (I like 181.fm by the way).

If you've been a Chrome user you might have seen some of the "New Tab" Clock and weather gadgets that have been built over the past couple of years.  A popular one E Clock, I think it was, worked really well and it had the coolness of offering up quite a few nice backgrounds to go with it.  But as of the 1st of this year it quit loading the weather. There is also Currently, and it's working at the moment.  But it has stopped from time to time. 

I grew tired of relying on someone else's tool, and I knew it shouldn't be toooo hard to make a web page to show the time and weather, right? I mean, I messed around with web pages back when there was a Netscape editor for them, and Front Page was destroying everything that you opened up to edit, so you ended up editing things with a text editor and holding your breath that FP wasn't going to destroy your pages. It was sorta ok if you only used it.  It's such garbage, that there is even a tool to remove it's bloat. BLECH!

So far this little HTML page that I created seems to work. The Weather Widget gets it's info from DarkSky.  But if you want to use another widget you can.  So even if this one breaks or whatever, there's more weather widgets out there to fiddle with I suppose.   In any case, this mostly your own code to fiddle with as you see fit.  If you come up with some snazzy new things to do to it, or have better code, please share.  I in no way see myself as some well informed web page developer, rather I've got limited knowledge to get me just this far.  I'm just fair  enough to fiddle with some things here and there and get them to work.

In any case, I've got the orginal code for this saved on the TryIt editor.  I have saved it here:  I have also saved it to my Google Drive here.

If you DL the HTML code, just save it on your PC  \home\weather_clock\clock.html or someplace like that.  You'll need to go to weatherwidget.io to get the code for your area and replace my widget code with your favorite Text Editor. This code should work with anyone's PC and any modern browser.

There's still a few things that I'm not exactly "happy" with this. As of the moment, I have to ZOOM in the page to 200 - 250%  to get it to fill the page up the way I want to.  I'm sure there's a way to fix this, but it's not really a huge problem, but I'm not exactly sure how to address it at this time. 

I Have also made some changes to the mentioned code so that I can have a nicer background, but  again, I have to ZOOM in and the background image also zooms.  Not sure that I really like that.

I'm sure some of this code could be cleaned up, but hey, not bad for amature. IMHO.  


Sunday, June 03, 2018

Where are 'vino-preferences'?

So, earlier today, I'm having an issue with Ubuntu MATE 18.04  after I installed Vino.  In the past I've been able to just use vino-preferences from within the command line, and the little configuration window pops up and allows me to set it up so that I can remote into a machine without having to have someone at the other end "OK" the log in.

I tried to install the gnome-control-center so that could get the preferences to pop up. As VINO did install, and I did successfully get it to run at startup.  I just needed to tweak it a little bit to get it set up the way that I needed, and as far as I was concerned I could uninstall the gnome control center if it got in the way.

So, I come across the dconf-editor, in fact, I'm sure that I've used it in the past 4-5 years, but I totally forgot about it. (Slap on the forehead) It would seem that some of the Raspberry Pi users have had this same kind of issue.   Simple fix once you figure it out. This little fix doesn't allow for you to change the password for the remote user (I didn't look to see if there was a fix for that) as I was planning on using the default password.

sudo apt-get install vino dconf-editor 
confirm with y
This opens a window on your laptop with dconf-editor
go to:
org ==> gnome ==> desktop ==>remote-access
uncheck prompt-enabled
uncheck require-encryption

You can also access it via the MATE menu later, if you need to tweak something else.