Saturday 3 June 2017

M6SIG live CD for LilacSat 1 and 2

As you know we have been playing around with FM and SSB voice satellites for a good few months now.

So we decided to take a look at the new LilacSat-1

This has a unique FM uplink and codec2 digital voice down.

So how complex is it going to be to try and decode and listen to this digital voice?

M6SIG has put together all the tools you need on a live Linux CD.

Live CD from M6SIG (ISO File, TNX BG9AGZ for uploading): https://pan.baidu.com/s/1qXMUspu
Tutorial of M6SIG Live CD: http://www.bilibili.com/video/av10148798http://www.bilibili.com/video/av10148798 

Firstly you will need to verify and decode the GPG image file above, this is a little bit complex and need some knowledge of Linux command line to help.

Copy the iso.gpg and zip file above onto a linux machine

ensure gnupg2 is installed : sudo apt-get install gnupg2
extract the signature file from the zip file (M6SIG.asc) save in the home folder
now add the above signature to gpg: gpg2 --import M6SIG.asc
now copy the iso.gpg file to home folder (if not already there)
verify the image: gpg2 --verify M6SIG_Mod_LilacSats_Live_20170528-0.iso.gpg
if above outputs as "Good Signature" move on to the next step, if not find a new image






To extract the gpg into a usable ISO image:
gpg2 M6SIG_Mod_LilacSats_Live_20170528-0.iso.gpg
(may take some time....)
you will now have an iso file which you can burn to DVD or use in VMware / Virtualbox.


Once installed, few things to set up:

Open LilacSat-1 folder
Double click on 01-Setup LilacSat-1 proxy







Password is:  lilac (enter)  *terminal closes by itself)
Now double click on 02-LilacSat-1 proxy












Fill in your details
click save
click on update orbit (note message in window at bottom)
click start proxy
shrink this window down (-)

Presuming you are using a funcube pro plus dongle
Double click on frontend_lilacsat1_rx_fcdpp.grc, once it opens click the green triangle on at the top of the window to start it.







You will also see the Waterfall / spectrum / scope window appear











Keeping the waterfall window on top, shrink the frontend fun cube layout page.

Now double click on the demon_lilacsat-1.grc icon
Click on the green triangle to start it







You will now see the Demod window start up












You can repeat the same with the LilacSat-2 folder, ensuring LilacSat-1 is totally closed down.
setup proxy, start proxy and fill in details update data etc.
start frontend--rx-fcdpp, the choose the mode you wish to decode and run the GRC module by double clicking

Wednesday 3 May 2017

Project "Thomas Watch" enabling Autism using radio's

Thomas, is 11, he has autism and is struggling with his independence a little bit.

He likes to ride his bike around the street, but sometimes get distracted or goes off a little far.

I do stand outside and keep an eye on him, but when he goes around the block, those 5 minutes or so out of sight can be a little bit nerve racking, knowing he may get distracted or head off somewhere without letting me know.

The Retevis H777 walkie Talkie at around $16 per unit

I was able to shown Thomas how to use them.




The box contains 2 radios, docking station and USB charge plug, rubber duck antenna, wrist strap and also additional headset / microphone 





I added the Autism Awareness stickers to the radio, in case Thomas is approached by anyone or needs to make them aware of his condition. It just a quick added visual for the general public.



The handset is fairly small, no display to distract from its main function and is easy t use (even little hands) Volume is loud and clear as is the microphone. You can set up CTCSS and DTS to keep out interference as needed. You can also enable VOX (voice operated PTT) if needed.



My idea is now to share radios with friends and neighbours in the street to help keep an eye on Thomas, but it also goes the other way around that we can keep an eye on the other children in the area.


I have recently spoken to OFCOM and they have advised that we can get a simple uk business license which would cover the whole of the UK for £75 for 5 years (£15 / year) and allow all people with autism to be able to use the radios without any additional cost or without breaking the licensing laws.

***We are Happy to announce we raised enough money to buy the license***

For more details see this LINK


For more information please reach out to us at the club jamesm0jfp@virginmedia.com










Sunday 30 April 2017

Egham Raspberry Jam hosted by Gartna in Staines Middx. Sunday.



s



taking a look at the raspberry pi controlling LED colour and brightness

learning about how electricity conducts and makes a sound, Scratch and raspberry pi  

Some coding in scratch on the raspberry pi, to make the octopus make a sound, several channels available, also some hidden features which make the onscreen octopus miaow and moves (hidden features)


























Changing colour and rotating 


retropi on the raspberry pi 3 and played happily for an hour on Mario kart and super mario 64 ;-)




Tiny LCD close up in high res.





Kempton park radio rally on Sunday


Bob M6FLT using the Arrow satellite antenna at Kempton park on Sunday.






Monday 17 April 2017

Thinking of sharing your raspberry pi image, Save time by shrinking the image first (also some security tips)



Considering sharing a Raspberry Pi Image, or using one?

When you think you have a great Raspberry pi image and you want to share it to the world for testing and comments, there is nothing more frustrating that an oversized image which takes ages to download and even longer to install on the SD card.

First lets get rid of the packages we don't need and take up the most room from a default raspberry pi image

sudo apt-get remove --purge libreoffice-*
sudo apt-get remove --purge wolfram-engine


Now we need to make a copy of your SD card (image)

Credit to Andrew Oakley: http://www.aoakley.com/articles/2015-10-09-resizing-sd-images.php

Making the Image


Let's start by making an image. Pop your SD card in your PC's card reader. Most likely the file manager will open a window or two. Close these windows if so.
Now find out where the card is mounted. Go to a terminal session and type:
df -h
You'll see something like:
/dev/sde1                   56M   20M   37M  36% /media/aoakley/boot1
/dev/sde2                  7.2G  3.8G  3.0G  56% /media/aoakley/ec2aa3d2-eee7-454e-8260-d145df5ddcba
The important thing is that you now know that your SD card is on /dev/sde . It has two partitions, /dev/sde1 and /dev/sde2.
Your system might mount the card somewhere else, such as /dev/sdg or even /dev/sdb. Make a note of where your card is mounted and use this wherever I use /dev/sde , /dev/sde1 or /dev/sde2.
Let's unmount this but leave the card in the card reader. This will let us take an image.
sudo umount /dev/sde1 /dev/sde2
Obviously if yours is on /dev/sdb or /dev/sdg or whatever, you'll need to type that in appropriately. It is highly unlikely that your SD card is on /dev/sda unless you're mad enough to do this entirely on a Raspberry Pi. Typically /dev/sda will be your hard disk or SSD, so don't mess with that.
sudo might ask for a password. Check that you really, really haven't typed /dev/sda unless you really, really know what you're doing, then enter your password.
I use dcfldd for making card images, which is a replacement for the old dd disk duplication program. dcfldd has a number of improvements, most notably a progress meter so you can see it working, and be confident that it hasn't crashed.
Install dcfldd if you haven't already got it (it won't hurt to try to install it again):
sudo apt-get update && sudo apt-get install dcfldd
Now take the image. Again, change /dev/sde to wherever your SD card is mounted.
sudo dcfldd if=/dev/sde of=imagename.img
You can change imagename to whatever you like - I use YYYYMMDD dates and names, so 20151009-tutorial.img for example.
The image will start to be taken, together with a nice progress counter (which you don't get with old-style dd ). When it finishes there may be a pause before you get the command line prompt back - give it a minute or two to flush the cache.
Once finished, you should force a synchronise of any outstanding input or output (there shouldn't be any, but just to be sure), then the card will be safe to remove.
sudo sync
You may now safely remove the card.
Next, let's change the ownership of the .img file. The image file will be owned by root (because we used sudo). It's probably a wise move to change the ownership to your user. For example, my username is james but you'll need to change this to your username:
sudo chown james.james imagename.img
We use james twice because we are changing both the ownership and the group.
Okay, you've got an image file; you have backed up your SD card. But it's probably quite a big file - as big as the SD card itself. Let's start making it smaller.


Using a simple script

next we need to copy a script and make it executable on our system.

Credit to Andrew Oakley here: https://github.com/aoakley 
as it is his script we will be using.

copy or download the script from this link: https://github.com/aoakley/cotswoldjam/tree/master/raspbian-shrink

create a new file in your home folder (on your linux box)

vi shrink.sh
escape a (insert)
edit paste
escape : w q (escape save file and quit)
chmod 7777 shrink.sh (modify file to be executable)

Now test the file runs ok type: sudo ./shrink.sh
should get the following output:









To run the script simply type: sudo ./shrink.sh image.img smallimage.img











Once it finishes running (minute or so) we get the following output





















as you can see we now have  a new image which is .2GB smaller, results will vary, the above was just run on the standard Jessie image (without removing the office and other packages)




Security warning!!!!


A word about distributing images on the Internet.
Remember if you have used the image with any personal information (e-mail, web browsing, etc.) then all of this history will be in the image file. you e-mail account, any saved user names and passwords, this is quite scary.

Similarly, if you download a shared image be aware this could contain programs which collect and share your data. any old script could be running in the back ground and sharing all sorts of personal information back to the  distributor.

One very quick fix is to ensure the public and private SSH keys are changed so that no one can get access to your Raspberry Pi computer remotely.

  1. Become root, or append ‘sudo’ on the front of all the following commands.
  2. Delete old ssh host keys: rm /etc/ssh/ssh_host_*
  3. Reconfigure OpenSSH Server: dpkg-reconfigure openssh-server
  4. Update all ssh client(s) ~/.ssh/known_hosts files otherwise you’ll get the REMOTE HOST KEY HAS CHANGED error message.