<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by onehitwonder on Medium]]></title>
        <description><![CDATA[Stories by onehitwonder on Medium]]></description>
        <link>https://medium.com/@onehitwonder?source=rss-f96cb2dc136b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rmir3B5th5gqbUAL.</url>
            <title>Stories by onehitwonder on Medium</title>
            <link>https://medium.com/@onehitwonder?source=rss-f96cb2dc136b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:01:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@onehitwonder/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to build a Raspberry Pi GPS Tracker]]></title>
            <link>https://medium.com/@onehitwonder/how-to-build-a-raspberry-pi-gps-tracker-c5e63d456c84?source=rss-f96cb2dc136b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5e63d456c84</guid>
            <category><![CDATA[gps-tracking-system]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[gps]]></category>
            <dc:creator><![CDATA[onehitwonder]]></dc:creator>
            <pubDate>Thu, 12 Nov 2020 13:19:55 GMT</pubDate>
            <atom:updated>2020-11-12T16:23:13.424Z</atom:updated>
            <content:encoded><![CDATA[<p>The goal of this tutorial is to create a headless and portable GPS tracker that can be activated by an SMS. Once activated, the Raspberry Pi GPS tracker sends an SMS every 5 minutes with the geolocation of the device to a predefined phone number. The Tracker doesn’t need an internet connnection and is solely controlled by SMS messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*jXw1ZzC7jv-9HcdflA2z0w.png" /><figcaption>Raspberry PiTracker</figcaption></figure><p>Personally I was aiming for a small footprint, so I could hide this device inside my bike. If the bike ever gets stolen, I’d just have to activate the tracker and would know the current location.</p><h4>1. Hardware that is needed</h4><ul><li><a href="https://www.amazon.com/-/de/dp/B07C7FHJDX/ref=sr_1_12?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&amp;crid=3937EGRKN7T1R&amp;dchild=1&amp;keywords=raspberry+pi+zero+w&amp;qid=1605110309&amp;sprefix=raspberry+pi+zero+w%2Caps%2C235&amp;sr=8-12">Raspberry Pi Zero WH</a></li><li>16GB SD-Card</li><li><a href="https://www.amazon.com/-/de/dp/B076CPX4NN/ref=sr_1_1?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&amp;dchild=1&amp;keywords=Waveshare+Raspberry+Pi+GSM%2FGPRS&amp;qid=1605110518&amp;sr=8-1">Waveshare GSM/GPRS/Blutooth HAT</a></li><li>Prepaid SIM Card</li><li><a href="https://www.amazon.co.uk/Anker-PowerCore-Ultra-Compact-Fast-Charging-Technology/dp/B01CU1EC6Y/ref=sr_1_2?dchild=1&amp;keywords=power+bank+round&amp;qid=1605111306&amp;sr=8-2">Power Bank</a></li></ul><p>Before setting up your Raspberry Pi, make sure the Waveshare HAT is connected to the Pi’s GPIO Headers. Connect the antennas and insert the SIM-Card into the GSM HAT. <strong>Make sure the SIM-Card doesn’t require a PIN-Code to unlock!</strong> If it does, disable it in your phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10X-0QFODf8y_NJwwXaLuQ.jpeg" /><figcaption>Raspberry Pi Zero WH with Waveshare GSM/GPRS/Blutooth HAT</figcaption></figure><h4>2. Headless Setup of the Raspberry Pi</h4><p>We are going to setup a headless version of Raspberry Pi OS lite. So, head to the Raspberry Pi website and download the <a href="https://www.raspberrypi.org/documentation/installation/installing-images/">Raspberry Pi Imager</a>. When runing the tool, make sure you select <em>Raspberry Pi OS lite</em> as the desired Operating System and chose your empty SD-Card to flash the image.</p><p>Once finished flashing the image, eject the SD-Card from your computer and plug it back in. A boot folder should appear. Inside the boot folder we have to add two files. For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD-Card. When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted. The content of the file does not matter; it could contain text, or nothing at all.</p><p>To make the Pi accessible via SSH from another PC, it has to connect to your Wifi. You will need to create a wpa_supplicant.conf file for your particular wireless network and place it into the boot folder. Inside the file you’ll need to put the following code:</p><pre>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev<br>update_config=1<br>country=&lt;Insert 2 letter ISO 3166-1 country code here&gt;<br><br>network={<br> ssid=&quot;&lt;Name of your wireless LAN&gt;&quot;<br> psk=&quot;&lt;Password for your wireless LAN&gt;&quot;<br>}</pre><p>Please adjust the code for your country code, ssid and wifi password (psk). Once you are done and the ssh and wpa_supplicant.conf files are placed inside the boot folder, you can boot up the Raspberry Pi with your prepared SD-Card.</p><h4>3. Accessing the Raspberry Pi via SSH</h4><p>To access your Raspberry Pi you can use any SSH client. I’m using <a href="https://www.putty.org/">PuTTY</a>. Look up the ip address of your Raspberry Pi in your router settings and connect to your Pi using your SSH client and the standard login credentials pi/raspberry. It is recommended to change your password on your first login.</p><h4>4. Installing necessary software</h4><p>Run the following commands inside a new terminal session:</p><pre>sudo apt-get update &amp;&amp; sudo apt-get upgrade</pre><pre>sudo apt install git python-setuptools python-pip wiringpi screen</pre><pre>git clone <a href="https://github.com/adammck/pygsm.git">https://github.com/adammck/pygsm.git</a></pre><pre>git clone <a href="https://github.com/olaf-hoops/pitracker">https://github.com/olaf-hoops/pitracker</a></pre><pre>cd pygsm</pre><pre>sudo python setup.py install</pre><pre>sudo pip install crcmod</pre><p>Inside your Raspberry Pi’s home fodler navigate to the pitracker folder<br>cd pitracker and edit the the tracker.py file: nano tracker.py <br>Find the line #Set mobile number here and change it to the number on which you want to receive the location updates via SMS. If you are using another device than the Raspberry Pi Zero W, you might have to change the line where it says GsmModem(port=&quot;/dev/serial0&quot;)<em>. </em>The Pi Zero is using the port serial0 to communicate with the GSM hat. This might be different on other Raspberry devices. Exit the editor with <em>ctrl+x </em>and save your changes.<br>Inside the pitracker folder run the following command:</p><pre>sudo chmod a+x tracker.py</pre><p>We now want to have the Raspberry Pi listen for incoming SMS that contain the trigger word <em>Start. </em>So when the Raspberry Pi gets triggered by receiving an SMS with the <em>Start</em> keyword, it will start sending the geolocation using the GPS module of the Waveshare GSM/GPRS HAT. We can achieve this by manually running the tracker.py file inside the pitracker folder. But it would be much more comfortable if the Pi would run the script automatically every time on boot up. For that reason we are setting up a crontab:</p><pre>sudo crontab -e</pre><p>Select nano if you are prompted to choose an editor. At the end of the file add the following line:</p><pre><a href="http://twitter.com/reboot">@reboot</a> /home/pi/pitracker/startup.sh</pre><p>Exit the editor with ctrl+x and save your changes.</p><h4>5. Test your GPS Tracking Device</h4><p>Everything is set up and should be good to go now. It’s time to test your device. Reboot your Raspberry Pi <strong>and</strong> <strong>wait a few minutes to make sure the GPS module is able to detect a signal</strong>. Your device could have trouble picking up a GPS signal indoors, so you might want to try this somewhere outside. Just hook up your Raspberry Pi to the power bank and move it out of your house. It doesn’t require Wifi anymore at this point.</p><p>Send an SMS with the word <em>Start </em>to the phone number of the SIM-Card inside your Raspberry Pi. You should get back an SMS with the current location of the device and a link to Google Maps.</p><h4>6. Debugging</h4><p>When booting up the Respbarry Pi, it should automatically start the tracker.py script to listen for incoming SMS. You can check if this is working by establishing an SSH connection and reattaching to the screen session of the the tracker.py script.</p><pre>sudo screen -r pitracker</pre><p>You should see the modem details in the screen session and the Pi waiting for messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*7nrQIJWXZ4UYdaRFf-QAug.png" /><figcaption>Running tracker.py script</figcaption></figure><p>If you can’t see this screen, check if you setup the crontab correctly. Also try to run the tracker.py script inside the pitracker folder manually.</p><pre>sudo python tracker.py</pre><p>You should be able to see the script reacting to incoming SMS. The keyword <em>Start</em> should trigger the sending of the current location. If you want to stop the script, just send another SMS with the keyword <em>Stop </em>to the Raspberry Pi.</p><p>Please comment below for any further questions.</p><p>I want to give credit to <a href="https://github.com/daveake/GSMTracker">David Akerman</a> for most of the code used here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5e63d456c84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a safe environment for your IOTA Wallet and Seed]]></title>
            <link>https://medium.com/@onehitwonder/creating-a-safe-environment-for-your-iota-wallet-and-seed-1fe5a563addb?source=rss-f96cb2dc136b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fe5a563addb</guid>
            <category><![CDATA[iota]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[onehitwonder]]></dc:creator>
            <pubDate>Fri, 19 Jan 2018 20:59:38 GMT</pubDate>
            <atom:updated>2018-02-09T09:11:56.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P6En045ay-1GPD2m7mxRLA.jpeg" /></figure><h3>Why you shouldn’t trust exchanges with your IOTA</h3><p>You might ask yourself why not to keep your Iota-Tokens in the same exchange where you first bought them. Well, there are muliple reasons.</p><ul><li>Exchanges have been hacked before and probably will be hacked in the future. <a href="http://www.businessinsider.de/cyberattack-brings-a-cryptocurrency-exchange-to-its-knees-2017-12?r=US&amp;IR=T"><strong>Youbit,</strong></a><strong> </strong><a href="https://hacked.com/crypto-exchange-etherdelta-suspends-trading-alleged-dns-attack/"><strong>EtherDelta,</strong></a><strong> </strong><a href="https://www.coindesk.com/bitfinex-bitcoin-hack-know-dont-know/"><strong>Bitfinex</strong></a><strong> </strong>and<strong> </strong><a href="https://www.wired.com/2014/03/bitcoin-exchange/"><strong>Mt.Gox</strong></a> are just a few examples of exchanges that got hacked in the last years where people lost a lot of money.</li><li>Exchanges are highly unregulated. They don’t have capital requirements like banks do and won’t get backed by anyone if they file for bankruptcy for whatever reason. If an exchange decides to lock your funds, or just runs with it, you won’t be able to do anything about it.</li><li>If you don’t trust banks, should you really trust some website on the internet with your cryptocurrency potentially worth thousands of dollars? And is the “comfort” really worth risk having your coins stored in an exchange?</li><li>It only takes a maximum of one hour and a USB stick to create a safe environment to store your Iota.</li></ul><h3>What is the goal of this tutorial</h3><p>The goal here is to help you create an extremely safe environment for your IOTA light wallet to safely receive, send and store your funds. It is also explained how to create and store your seed without the risk of it getting compromised.</p><p>Since there is a lot of malware out there which isn’t even detectable by modern anti-virus software you shouldn’t use your everyday PC (or smartphone) to store highly sensitive information like your Seed.</p><p>To achieve this goal you’ll setup a Debian based Linux OS called <a href="https://tails.boum.org/about/index.en.html">Tails</a>. It will be installed on an USB stick which will be live bootable - means you can start it from any PC you want and access your wallet in a matter of seconds.</p><h3>What is Tails</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*pEbznelZhzHUcGdFCa_j9A.jpeg" /></figure><p>Tails is a ‘live’ operating system, which you can boot from a USB stick. It focuses on preserving privacy and anonymity on the internet and also securing your data with state-of-the-art encryption.</p><p>It is designed to be used from a USB stick, so you can carry it around and start it up on any PC you want and won’t leave any traces doing so.</p><p>It was used by <a href="https://www.wired.com/2014/04/tails/"><strong>Edward Snowden during the NSA scandal</strong></a> to safely communicate with the outside and leave no traces.</p><h3>Installing Tails</h3><p>Since the developers of Tails have a really nice and user-friendly tutorial about installing Tails, I suggest you head over there for the<strong> </strong><a href="https://tails.boum.org/install/index.en.html"><strong>installation</strong></a><strong>.</strong></p><p>One thing that isn’t covered though is, how to configure your BIOS to boot from USB instead of the hard-drive.</p><ul><li>A typical method to access the BIOS settings is to press ESC, F1, F2, F8, F10 or DEL during the boot sequence. (the correct key should be shown briefly on boot-up)</li><li>Find the menu where you can set the boot order of the bootable devices. The first device in the order list has the first boot priority.</li><li>Make sure your USB stick is shown and has the highest priority.</li></ul><h3>Installing the IOTA wallet</h3><p>Congratulations, the hardest part is done! Your Tails OS now should be set up and you’ll be able to get your light wallet up and running.</p><p>First you have to configure Tails for your needs. To do so you should create a persistent folder on your USB stick which won’t be reset by tails on reboot. There you’ll store your wallet files and other dependencies.</p><h4>Create the persistent folder:</h4><ul><li>Click “Applications” &gt; “System Tools” &gt;”Configure persistent volume”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*NcEutealERBsZQimBxQW6g.jpeg" /><figcaption>configure persistent volume</figcaption></figure><ul><li>Choose a safe passphrase that will be used to protect your encrypted persistent folder</li><li>You want your persistent folder to store “Personal Data”, “APT Packages” and “APT Lists”</li><li>Save your settings and reboot</li><li>After the reboot unlock your persistent folder in the Tails welcome screen and set a root password as well. (it is only a temporary root password for your next session)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*9GxpB57TQO4TnwYbSuRxkQ.png" /><figcaption>Tails welcome screen</figcaption></figure><h4>Installing the wallet:</h4><p>To make the installation and starting of the wallet as easy as possible you can use two simple bash scripts.</p><ul><li>Navigate to your persistent folder, right click into the folder and select “Open in Terminal”</li><li>Download the installation scripts:</li></ul><blockquote>Type into Terminal: git clone <a href="https://github.com/onehitwonderos/safe-iota-wallet">https://github.com/onehitwonderos/safe-iota-wallet</a></blockquote><ul><li>You should see a new folder “safe-iota-wallet” in your persistent folder. Open that folder.</li><li>Right click into the folder and select “Open in Terminal”. If asked for the password for amnesia, enter your root password.</li></ul><blockquote>Type into the Terminal: sudo bash iota-install.sh</blockquote><p>The script will install all dependencies and make them available on every Tails startup. From time to time you have to accept the installation of a new package by typing “Y” into the terminal.</p><p>The latest version of the light wallet will be downloaded from the <a href="https://github.com/iotaledger/wallet/releases">official GitHub</a> (This guide will be kept up to date if there is a newer version available).</p><blockquote>Type into the Terminal: sha256sum iota_2.5.7_amd64.deb</blockquote><p>Compare the shown SHA256 value with the one in the <a href="https://github.com/iotaledger/wallet/releases"><strong>official GitHub</strong></a> to verify that the file is legit.</p><p>You can change the node your wallet is connecting to in the settings.json file. Just edit the value after “lightWalletHost:”. <br><em>Note: It should be an IP address, since proxychains has some problems to resolve DNS.</em></p><h4>Starting the wallet:</h4><p>Since the Tails OS is amnesic (means it resets the OS on reboot), you’ll have to install your wallet every time you boot up tails. Don’t worry, there is a script for that as well and it only takes seconds to have the wallet up and running.</p><ul><li>Right click into the Iota folder and select “Open in Terminal”</li></ul><blockquote>Type into the Terminal: bash iota.sh</blockquote><p>Here is the explanation of what is happening in the iota.sh script if you are interested in the technical part and maybe have some trust issues ;-)</p><p>The script installs the wallet from the .deb file you downloaded in the previous step. It will also paste the settings.json file to the right directory, so you don’t have to setup the wallet on every start. Finally it is piping the traffic from the wallet through Tor using proxychains. Tails is configured to only allow inbound and outbound traffic through Tor, which makes you almost anonymous on the internet. I encourage you to have a look at the .sh files.</p><p>Congratulation, your wallet is all set now!<br>If you’d like to test your new wallet, you can send some Iota to this address ;-)</p><p>KXHIZCDBOPQWDREYSZFLOLJYRSVSYRRWMZOVORUAFFJNLJDFWBNLQYBYARSVPEHUTH9EFAE9BLIVYNFTWGGHYMNUJD</p><p>You might notice the wallet being slower than on your desktop machine. The reason is the USB stick you are using is probably a lot slower than your internal hard-drive. So don’t worry if a transaction takes you a few minutes.</p><h3>Safely generate and store your seed</h3><p>To generate and store your Seed safely you should be using KeepassX, which is already provided by Tails.<br><strong>Don’t use any only seed generator you might find on the web!</strong> Many people already got scammed that way!</p><ul><li>Click Applications &gt; Favorites &gt; KeepassX</li><li>Click Database &gt; New Database</li><li>Choose a strong password to encrypt your Keypass file</li><li>Make sure you remember that password! Otherwise you won’t be able to access your Seed later</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*6HMkmKBXd-a90F_npEVpeQ.jpeg" /><figcaption>creating a new database in KeepassX</figcaption></figure><ul><li>Click “Add new entry” (Key symbol)</li><li>Title and Username can be whatever, I’ll call mine “Seed”</li><li>Right next to the password field click on “Gen.”</li><li>Set length to 81 and only select character Types “A-Z”</li><li>Make the password visible (click on the eye) and change a few letters to “9” since a Seed can contain the letters A to Z and the number 9</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*gJUIG4q8L7JMiweEuR2Faw.png" /></figure><ul><li>When you’re done click the accept button</li><li>Save your Database and store it in your Iota folder. It has to be somewhere in the persistent folder because otherwise your Keepass file will be lost on reboot</li></ul><p>Congratulation, you’ve created a safe Seed! You can copy your Seed to your Wallet and login.</p><p>As an alternative you can also roll your seed randomly with three dices and safe that seed in Keepass.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TLmE0_tfj5RgrLSuDD1p0g.jpeg" /><figcaption>Click to enhance!</figcaption></figure><p>To access your Seed in a later session you just have to start KeepassX and open your saved Database in your Iota folder. Make sure you remember your password for your Keepass file though!</p><p><strong>Make sure to also write your Seed on a piece of paper and store it in a bank vault or hide it somewhere good. USB sticks can have a lifespan of more than 10 years if you treat them right, but this is not guaranteed! If it fails on you someday you want to have a backup of your Seed!</strong></p><p>If you liked the tutorial you can leave a small donation here:</p><p>KXHIZCDBOPQWDREYSZFLOLJYRSVSYRRWMZOVORUAFFJNLJDFWBNLQYBYARSVPEHUTH9EFAE9BLIVYNFTWGGHYMNUJD</p><p>If you should have any questions or problems setting this up you can reach me in the official <a href="https://discordapp.com/invite/fNGZXvh"><strong>Iota discord</strong></a><strong> </strong>@onehitwonder<strong> </strong>or on Twitter <a href="https://twitter.com/onehitwonderos"><strong>@onehitwonderos</strong></a></p><p>I’ll keep this guide up to date with new versions of the light wallet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fe5a563addb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>