Revisions
-
billyargh revised this gist
Jan 16, 2023 . 1 changed file with 3 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -98,8 +98,8 @@ The instructions below are for headless server and desktop CHIPs. See below for 6. Update your apt sources with `sudo nano /etc/apt/sources.list`. It should like this after your edits. ``` deb http://archive.debian.org/debian/ jessie main contrib non-free deb-src http://archive.debian.org/debian/ jessie main contrib non-free deb http://security.debian.org/ jessie/updates main contrib non-free deb-src http://security.debian.org/ jessie/updates main contrib non-free @@ -108,9 +108,7 @@ deb http://chip.jfpossibilities.com/chip/debian/repo jessie main deb http://chip.jfpossibilities.com/chip/debian/pocketchip jessie main ``` Note that the references to `opensource.nextthing.co` have been replaced by `chip.jfpossibilities.com`. Thanks again to JF Possibilities. 7. Update your sources with `sudo apt update`. This will take a while, and may seem to be stuck. Be patient. -
billyargh revised this gist
Jan 16, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -52,12 +52,12 @@ GND was correct, and try again. For one of the CHIPs, it took six attempts to 0. Before you do any of the below, make sure that the computer you are flashing from is running Ubuntu 18.04 natively. _Lorenz74 says in a comment below that they were able to do this on Ubuntu 22.10 by 'removing from the CHIP-tools scripts files the two strings “`-i 0x1f3a`” “`-u`”' in 'the files `chip-fel-flash.sh`, `chip-flash`, `common.sh`.' I haven't tried this._ To save the readers a click, the instructions from Thore Krug are duplicated here. 1. Remove the CHIP from its case (in case you have a PocketCHIP). 2. Connect the FEL and a GROUND pin of the CHIP (for example, with a paperclip). 3. Connect the CHIP's micro USB port to a USB port of your Linux machine. 4. In the Linux machine: * run `git clone https://github.com/thore-krug/Flash-CHIP.git` to clone this repository. -
billyargh revised this gist
Jan 16, 2023 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,8 +50,9 @@ Sometimes flashing would fail, and I would diconnect the CHIP from USB, make sur GND was correct, and try again. For one of the CHIPs, it took six attempts to 0. Before you do any of the below, make sure that the computer you are flashing from is running Ubuntu 18.04 natively. _Lorenz74 says in a comment below that they were able to do this on Ubuntu 22.10 by 'removing from the CHIP-tools scripts files the two strings “`-i 0x1f3a`” “`-u`”' in 'the files `chip-fel-flash.sh`, `chip-flash`, `common.sh`.'_ To save the readers a click, the instructions from Thore Krug are duplicated here. -
billyargh revised this gist
Jan 16, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,8 +50,8 @@ Sometimes flashing would fail, and I would diconnect the CHIP from USB, make sur GND was correct, and try again. For one of the CHIPs, it took six attempts to 0. Before you do any of the below, make sure that the computer you are flashing from is running Ubuntu 18.04 natively. _Lorenz74 says in a comment below that they were able to do this on Ubuntu 22.10 by 'removing from the CHIP-tools scripts files the two strings “-i 0x1f3a” “-u”' in 'the files chip-fel-flash.sh, chip-flash, common.sh.'_ To save the readers a click, the instructions from Thore Krug are duplicated here. -
billyargh revised this gist
Jan 16, 2023 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,7 +50,8 @@ Sometimes flashing would fail, and I would diconnect the CHIP from USB, make sur GND was correct, and try again. For one of the CHIPs, it took six attempts to 0. Before you do any of the below, make sure that the computer you are flashing from is running Ubuntu 18.04 natively. *Lorenz74 says in a comment below that they were able to do this on Ubuntu 22.10 by 'removing from the CHIP-tools scripts files the two strings “-i 0x1f3a” “-u”' in 'the files chip-fel-flash.sh, chip-flash, common.sh.' * To save the readers a click, the instructions from Thore Krug are duplicated here. -
billyargh revised this gist
Jan 16, 2023 . 1 changed file with 10 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -72,15 +72,9 @@ To save the readers a click, the instructions from Thore Krug are duplicated her ## Update to latest release of Debian 8 (jessie) The instructions below are for headless server and desktop CHIPs. See below for PocketCHIP. 1. Remove the FEL-GND jumper and unplug the CHIP to shut it down. Reconnect the CHIP to the Ubuntu 18.04 machine (a real one, not virtual!) through USB. Your CHIP should reboot, and should be ready after a minute or two. @@ -165,6 +159,14 @@ unmanaged-devices=interface-name:wlan1 point for my pocketCHIP and HDMI CHIP. I probably with never update the pocketCHIP to a newer version of Debian. I may update the HDMI CHIP at some later time. For PocketCHIP, do step 1 and then put the CHIP back into its shell/chassis/case, and go to the terminal app. Skip step 2. Steps 3 through 9 are done on the PocketCHIP itself, not through `screen /dev/ttyACM0`. When I tried using `screen` for the PocketCHIP, it would disconnect before I could accomplish anything useful. Perhaps `screen` will work for you. I hope so, because typing on the PocketCHIP is a little awkward. ## Updating to Debian 9 (stretch), 10 (buster), and 11 (bullseye) I don't plan to use my headless CHIPs with any sort of GUI, so I decided to update them to the current -
billyargh revised this gist
Jan 15, 2023 . 1 changed file with 7 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,13 +47,16 @@ all of the options and failed, until I installed Ubuntu 18.04 on an old laptop. pocketCHIP image to one of the CHIPs, the desktop image to another, and the headless server image to the two remaining CHIPs. I say "flawlessly (almost)" because I discovered one needs patience and perserverance to succeed. Sometimes flashing would fail, and I would diconnect the CHIP from USB, make sure that the connection between FEL and GND was correct, and try again. For one of the CHIPs, it took six attempts to 0. Before you do any of the below, make sure that the computer you are flashing from is running Ubuntu 18.04 natively. To save the readers a click, the instructions from Thore Krug are duplicated here. 1. Remove the CHIP from its case (in case you have a Pocket C.H.I.P). 2. Connect the FEL and a GROUND pin of the C.H.I.P (for example, with a paperclip). 3. Connect the CHIP's micro USB port to a USB port of your Linux machine. 4. In the Linux machine: * run `git clone https://github.com/thore-krug/Flash-CHIP.git` to clone this repository. * `cd` into the location where you stored this repository. @@ -192,7 +195,7 @@ Repeat the above replacing `stretch` with `buster`. ### From buster to bullseye Repeat the above steps by replacing `buster` with `bullseye`. ## PocketCHIP customization -
billyargh revised this gist
Jan 11, 2023 . 1 changed file with 13 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -112,26 +112,32 @@ Note that the references to `opensource.nextthing.co` have been replaced by `chi again to JF Possibilities. If `deb.debian.org` does not work for you, replace it with `archive.debian.org`. Debian 8 (jessie) is really old, and may disappear from `deb.debian.org` at any time. 7. Update your sources with `sudo apt update`. This will take a while, and may seem to be stuck. Be patient. 8. Install the openssh server and keyrings with ``` sudo apt install openssh-server debian-keyring debian-archive-keyring ``` This will allow us to connect to the CHIP with `ssh` which I prefer to `screen`. I prefer `emacs` to `nano`, so I also installed emacs at this stage using this command instead. ``` sudo apt install openssh-server debian-keyring debian-archive-keyring emacs-nox ``` This takes some time. 9. Shutdown the CHIP with `sudo shutdown now`, unplug it from USB, plug it back in, and wait patiently for in to reboot. 10. Connect to CHIP from an Ubuntu terminal with `ssh chip@10.0.0.128`, using your own CHIP's IP address, of course. Login with user `chip` and password `chip`. 11. Update CHIP to the latest version of Debian 8 (jessie) with `sudo apt upgrade`. Note that we did `sudo apt update` in a previous step. It is possible that you do not need to do this step if you're upgrading to Debian 9 (stretch) or later. 12. Something weird seems to happen to wi-fi with the upgrade. If you edit `/etc/NetworkManager/NetworkManager.conf` to the following, you should be OK when you reboot the CHIP. ``` @@ -150,6 +156,7 @@ managed=false [keyfile] unmanaged-devices=interface-name:wlan1 ``` 13. Wait a long time, for `sudo shutdown now`, unplug and replug CHIP, wait for it to boot, and `ssh chip@10.0.0.128` again. You now have a CHIP running the latest Debian 8 (jessie). I stopped at this point for my pocketCHIP and HDMI CHIP. I probably with never update the pocketCHIP to a newer version of Debian. @@ -201,7 +208,11 @@ The best reason to use PocketCHIP is the fantastic gaming platform PICO-8. Vers can be [downloaded from the developer](https://www.lexaloffle.com/bbs/?tid=34009), Lexaloffle. You will need to edit the Pocket Home settings to access this from the home screen. Some of the CLI based games are a lot of fun. You can install the ones I did with ``` sudo apt install bsdgames nethack-console pacman4console nsnake moon-buggy ninvaders greed ``` I particularly enjoy adventure, nethack, and greed. Have fun. ## Credits I borrowed heavily from [luzhuomi](https://gist.github.com/luzhuomi/526fbcc30f3522f09eacf20d0f776fa5) when -
billyargh revised this gist
Jan 1, 2023 . 1 changed file with 15 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,12 +8,12 @@ features that the Pi did not at the time including built-in wi-fi and battery ch the original Pi. The CHIP was shipped with Debian 8 (Jessie) and was a capable Linux computer. I had big plans for all of them, but the using one of them as an ad-blocking Pi-Hole was as far as I got. It worked well for that. The other have been sitting idle for a few years and I thought it would be fun to put them back to use. I've started thinking about doing more IoT stuff, and these little guys are going to help me do it. One of the four CHIPs is in a PocketCHIP shell/chassis/case which makes it a pretty cool handheld computer if you can get used to its keyboard. I think that this will be nice for remote control and monitoring of IoT gadgets. I have an HDMI "dip" that @@ -63,15 +63,17 @@ To save the readers a click, the instructions from Thore Krug are duplicated her * Wait until the installation finishes. * Enjoy! At the end of all of this, the CHIP is a bootable Debian 8 (jessie) machine. The next step is to update to Debian jessie and set up the CHIPs as `ssh` servers. ## Update to latest release of Debian 8 (jessie) The instructions below are for headless server and desktop CHIPs. For PocketCHIP, do step 1 and thenb put the CHIP back into its shell/chassis/case, and go to the terminal app. Skip step 2. Steps 3 through 9 are done on the PocketCHIP itself, not through `screen /dev/ttyACM0`. When I tried using `screen` for the PocketCHIP, it would disconnect before I could accomplish anything useful. Perhaps `screen` will work for you. I hope so, because typing on the pocketCHIP is a little awkward. @@ -110,30 +112,28 @@ Note that the references to `opensource.nextthing.co` have been replaced by `chi again to JF Possibilities. If `deb.debian.org` does not work for you, replace it with `archive.debian.org`. Debian 8 (jessie) is really old, and may disappear from `deb.debian.org` at any time. 7. Update your sources with `sudo apt update`. This will take a while, and may seem to be stuck. Be patient. 8. Install the openssh server and keyrings with ``` sudo apt install openssh-server debian-keyring debian-archive-keyring ``` . This will allow us to connect to the CHIP with `ssh` which I prefer to `screen`. I prefer `emacs` to `nano`, so I also installed emacs at this stage using this command instead. ``` sudo apt install openssh-server debian-keyring debian-archive-keyring emacs-nox ``` This takes some time. 9. Shutdown the CHIP with `sudo shutdown now`, unplug it from USB, plug it back in, and wait patiently for in to reboot. 10. Connect to CHIP from an Ubuntu terminal with `ssh chip@10.0.0.128`, using your own CHIP's IP address, of course. Login with user `chip` and password `chip`. 11. Update CHIP to the latest version of Debian 8 (jessie) with `sudo apt upgrade`. Note that we did `sudo apt update` in a previous step. It is possible that you do not need to do this step if you're upgrading to Debian 9 (stretch) or later. 12. Something weird seems to happen to wi-fi with the upgrade. If you edit `/etc/NetworkManager/NetworkManager.conf` to the following, you should be OK when you reboot the CHIP. ``` [main] plugins=ifupdown,keyfile -
billyargh revised this gist
Dec 31, 2022 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -130,7 +130,8 @@ reboot. Login with user `chip` and password `chip`. 11. Update CHIP to the latest version of Debian 8 (jessie) with `sudo apt upgrade`. Note that we did `sudo apt update` in a previous step. It is possible that you do not need to do this if you're upgrading to Debian 9 (stretch) or later. 12. Something weird seems to happen to wi-fi with the upgrade. If you edit `/etc/NetworkManager/NetworkManager.conf` to the following, you should be OK ``` @@ -173,7 +174,7 @@ deb-src http://security.debian.org/ stretch/updates main contrib non-free Note that all occurences of `jessie` were replaced with `stretch` and the lines referencing `chip.jfpossilities.com` were deleted. 2. Do a full upgrade with `sudo apt update && sudo apt full-upgrade`. I responded 'yes' to prompts asking if I wanted to restart services, and 'no' to prompts asking if I wanted to replace configuration files. 3. Shutdown and reboot. @@ -204,8 +205,8 @@ to edit the Pocket Home settings to access this from the home screen. ## Credits I borrowed heavily from [luzhuomi](https://gist.github.com/luzhuomi/526fbcc30f3522f09eacf20d0f776fa5) when doing this. His instructions seem to indicate a successful upgrade of the PocketCHIP to Debian 10 (buster), but when I tried it, I lost the Pocket Home interface. Debian 11 seems to work fine on the PocketCHIP for me when I followed the headless server instructions, but the interface was just a dumb terminal. You might have better luck. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -122,12 +122,16 @@ CHIP with `ssh` which I prefer to `screen`. I prefer `emacs` to `nano`, so I also installed emacs at this stage with ```sudo apt install openssh-server debian-keyring debian-archive-keyring emacs-nox```. This takes some time. 9. Shutdown the CHIP with `sudo shutdown now`, unplug it from USB, plug it back in, and wait patiently for in to reboot. 10. Connect to CHIP from an Ubuntu terminal with `ssh chip@10.0.0.128`, using your own CHIP's IP address, of course. Login with user `chip` and password `chip`. 11. Update CHIP to the latest version of Debian 8 (jessie) with `sudo apt upgrade`. Note that we did `sudo apt update` in a previous step. 12. Something weird seems to happen to wi-fi with the upgrade. If you edit `/etc/NetworkManager/NetworkManager.conf` to the following, you should be OK ``` [main] @@ -152,7 +156,7 @@ I may update the HDMI CHIP at some later time. ## Updating to Debian 9 (stretch), 10 (buster), and 11 (bullseye) I don't plan to use my headless CHIPs with any sort of GUI, so I decided to update them to the current version of Debian. I did this by updating jessie to stretch, then from stretch to buster, and then from buster to bullseye. From here I assume that you can `ssh` into your CHIP. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 8 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -76,25 +76,25 @@ through `screen /dev/ttyACM0`. When I tried using `screen` for the PocketCHIP, before I could accomplish anything useful. Perhaps `screen` will work for you. I hope so, because typing on the pocketCHIP is a little awkward. 1. Remove the FEL-GND jumper and unplug the CHIP to shut it down. Reconnect the CHIP to the Ubuntu 18.04 machine (a real one, not virtual!) through USB. Your CHIP should reboot, and should be ready after a minute or two. If the LEDs are not flashing, the CHIP is not yet ready for the next step. If they are flashing, wait another minute :). It takes a fairly long time for the CHIP to boot. 2. Open a terminal on the Ubuntu machine and type `screen /dev/ttyACM0` at the prompt. This creates a serial connection between the terminal and CHIP. 3. If you see a login prompt, great. Login with user `chip` and password `chip`. Remember to change the password later. If you don't get a password prompt right away, try pressing some keys a few times. I suspect there are keys that should be pressed. I tried Ctl-A, Ctl-B, return, I didn't notice which of them worked :) If this fails, unplug the CHIP, plug it back in, and retry. 4. Connect the CHIP to wi-fi. I did this using `sudo nmtui` and selecting the appropriate access point using the correct password. After you've connected to wi-fi and exited `nmtui`, you can `sudo nmtui` again to change the hostname of your CHIP from chip, if you want. It's a really good idea to do this if you're working with multiple CHIPs. Exit nmtui. 5. Note the IP address for your CHIP with `ip addr`. We will use this to log in the to CHIP with `ssh` later. Mine was `10.0.0.128`. Yours will probably be different and will likely start with `192.168`. 6. Update your apt sources with `sudo nano /etc/apt/sources.list`. It should like this after your edits. ``` deb http://deb.debian.org/debian/ jessie main contrib non-free @@ -110,7 +110,9 @@ Note that the references to `opensource.nextthing.co` have been replaced by `chi again to JF Possibilities. If `deb.debian.org` does not work for you, replace it with `archive.debian.org`. Debian 8 (jessie) is really old, and may disappear from `deb.debian.org` at any time. 7. Update your sources with `sudo apt update`. This will take a while, and may seem to be stuck. Be patient. 8. Install the openssh server and keyrings with ``` sudo apt install openssh-server debian-keyring debian-archive-keyring -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -70,9 +70,9 @@ To save the readers a click, the instructions from Thore Krug are duplicated her The instructions below are for headless server and desktop CHIPs. For PocketCHIP put the CHIP back into the PocketCHIP shell/chassis, and go to the terminal app. Steps 2 through 9 are done on the PocketCHIP itself, not through `screen /dev/ttyACM0`. When I tried using `screen` for the PocketCHIP, it would disconnect before I could accomplish anything useful. Perhaps `screen` will work for you. I hope so, because typing on the pocketCHIP is a little awkward. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,11 +25,14 @@ IoT "stuff". Because it's been so long since I used them, I decided to flash them to their initial states and start again. The goal for the PocketCHIP is to bring it up to the latest version of Jessie, because I didn't want to break the Pocket Home interface, the goal for the HDMI CHIP is the same because I don't want to break the desktop (at least for now), and the goal for the other to machines is to make them headless servers running Debian 11 (bullseye). I will also be adding software that I frequently use to all of them. Please note that the procedures documented here are time consuming, and that it is a PITA to start again from the flashing step. ## Flashing Unlike the Raspberry Pi which uses an SD Card to carry its operating system, the CHIP carries its operating system -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 30 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,14 +13,20 @@ main use I put them to was as an ad-blocking Pi-Hole. They worked well for that They have been sitting idle for a few years and I thought it would be fun to put them back to use. I've started thinking about doing more IoT stuff, and these little guys are going to help me do it. One of the four CHIPs is in a PocketCHIP shell which makes it a pretty cool handheld computer if you can get used to its keyboard. I think that this will be nice for remote control and monitoring of IoT gadgets. I have an HDMI "dip" that will allow me to connect one of them to a monitor as a desktop computer. The other two will be put to some sort of IoT "stuff". Because it's been so long since I used them, I decided to flash them to their initial states and start again. The goal for the PocketCHIP is to bring it up to the latest version of Jessie, because I didn't want to break the Pocket Home interface, the goal for the HDMI CHIP is the same because I don't want to break the destop (at least for now), and the goal for the other to machines is to make them headless servers running Debian 11 (bullseye). I will also be adding software that I frequently use to all of them. @@ -63,7 +69,8 @@ The instructions below are for headless server and desktop CHIPs. For pocketCHIP put the CHIP back into the chassis, and go to the terminal app. Steps 2 through 9 are done on the pocketCHIP itself, not through `screen /dev/ttyACM0`. When I tried using `screen` for the pocketCHIP, it would disconnect before I could accomplish anything useful. Perhaps `screen` will work for you. I hope so, because typing on the pocketCHIP is a little awkward. 1. Remove the FEL-GND jumper and unplug the CHIP to shut it down. Reconnect the CHIP to the @@ -106,7 +113,7 @@ is really old, and may disappear from `deb.debian.org` at any time. sudo apt install openssh-server debian-keyring debian-archive-keyring ``` . This will allow us to connect to the CHIP with `ssh` which I prefer to `screen`. I prefer `emacs` to `nano`, so I also installed emacs at this stage with ```sudo apt install openssh-server debian-keyring debian-archive-keyring emacs-nox```. This takes some time. @@ -170,6 +177,21 @@ Repeat the above replacing `stretch` with `buster`. Repeat the above steps by replacing `buster` with `bulleye`. ## PocketCHIP customization I am now running a PocketCHIP with the most current version of Debian 8 (jessie). That's really outdated, but will work for me. I found a [blog post from Steve McGrath](http://stevemcgrath.io/post/2016-07-16-setting-up-pocketchip/) describing how he set up his PocketCHIP in 2016. There are some very good ideas there: * disabling the SSH server from starting automatically is better for security than leaving it on all the time * aliases are very helpful if you use a small keyboard like that on the pocketCHIP * `dwm` seems to be a suitable web browser for the pocketCHIP. !!!TODO!!! write some more about how to get this running. * a reminder that Pocket Home settings can be set by editing `/usr/share/pocket-home/config.json` The best reason to use PocketCHIP is the fantastic gaming platform PICO-8. Version 0.2.5e of this software can be [downloaded from the developer](https://www.lexaloffle.com/bbs/?tid=34009), Lexaloffle. You will need to edit the Pocket Home settings to access this from the home screen. ## Credits I borrowed heavily from [luzhuomi](https://gist.github.com/luzhuomi/526fbcc30f3522f09eacf20d0f776fa5) when -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 18 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -146,7 +146,7 @@ to bullseye. From here I assume that you can `ssh` into your CHIP. ### From jessie to stretch 1. Edit `/etc/apt.sources.list` to look like the following. ``` deb http://deb.debian.org/debian/ stretch main contrib non-free deb-src http://deb.debian.org/debian/ stretch main contrib non-free @@ -162,5 +162,22 @@ restart services, and 'no' to prompts asking if I wanted to replace configuratio 3. Shutdown and reboot. ### From stretch to buster Repeat the above replacing `stretch` with `buster`. ### From buster to bullseye Repeat the above steps by replacing `buster` with `bulleye`. ## Credits I borrowed heavily from [luzhuomi](https://gist.github.com/luzhuomi/526fbcc30f3522f09eacf20d0f776fa5) when doing this. His instructions seem to indicate a successful upgrade of the pocketCHIP to Debian 10 (buster), but when I tried it, I lost the Pocket Desktop interface. Debian 11 seems to work fine on the pocketCHIP for me when I followed the headless server instructions, but the interface was just a dumb terminal. You might have better luck. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 51 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -57,9 +57,14 @@ To save the readers a click, the instructions from Thore Krug are duplicated her At the end of all of this, the CHIP is a bootable Debian 8 (jessie) machine. The next step is to set up the CHIPs as `ssh` servers. ## Update to latest release of Debian 8 (jessie) The instructions below are for headless server and desktop CHIPs. For pocketCHIP put the CHIP back into the chassis, and go to the terminal app. Steps 2 through 9 are done on the pocketCHIP itself, not through `screen /dev/ttyACM0'. When I tried using `screen` for the pocketCHIP, it would always disconnect. Perhaps `screen` will work for you. I hope so, because typing on the pocketCHIP is a little awkward. 1. Remove the FEL-GND jumper and unplug the CHIP to shut it down. Reconnect the CHIP to the Ubuntu 18.04 machine (a real one, not virtual!) through USB. @@ -96,26 +101,66 @@ again to JF Possibilities. If `deb.debian.org` does not work for you, replace it Debian 8 (jessie) is really old, and may disappear from `deb.debian.org` at any time. 7. Update your sources with `sudo apt update`. This will take a while, and may seem to be stuck. Be patient. 8. Install the openssh server and keyrings with ``` sudo apt install openssh-server debian-keyring debian-archive-keyring ``` . This will allow us to connect to the CHIP with `ssh` which I prefer to `screen`. \ I prefer `emacs` to `nano`, so I also installed emacs at this stage with ```sudo apt install openssh-server debian-keyring debian-archive-keyring emacs-nox```. This takes some time. 9. Shutdown the CHIP with `sudo shutdown now`, unplug it from USB, plug it back in, and wait patiently for in to reboot. 10. Connect to CHIP from an Ubuntu terminal with `ssh chip@10.0.0.128`, using your own CHIP's IP address, of course. Login with user `chip` and password `chip`. 11. Update CHIP to the latest version of Debian 8 (jessie) with `sudo apt upgrade`. Note that we did `sudo apt update` in a previous step. 12. Something weird seems to happen to wi-fi with the upgrade. If you edit `/etc/NetworkManager/NetworkManager.conf` to the following, you should be OK ``` [main] plugins=ifupdown,keyfile [connection] wifi.mac-address-randomization=1 [device] wifi.scan-rand-mac-address=no [ifupdown] managed=false [keyfile] unmanaged-devices=interface-name:wlan1 ``` 13. Wait a long time, for `sudo shutdown now`, unplug and replug CHIP, wait for it to boot, and `ssh chip@10.0.0.128` again. You now have a CHIP running the latest Debian 8 (jessie). I stopped at this point for my pocketCHIP and HDMI CHIP. I probably with never update the pocketCHIP to a newer version of Debian. I may update the HDMI CHIP at some later time. ## Updating to Debian 9 (stretch), 10 (buster), and 11 (bullseye) I don't plan to use my headless server CHIPS with any sort of GUI, so I decided to update them to the current version of Debian. I did this by updating jessie to stretch, then from stretch to buster, and then from buster to bullseye. From here I assume that you can `ssh` into your CHIP. ### From jessie to stretch 1. Edit `/etc/apt.sources.list to look like the following. ``` deb http://deb.debian.org/debian/ stretch main contrib non-free deb-src http://deb.debian.org/debian/ stretch main contrib non-free deb http://security.debian.org/ stretch/updates main contrib non-free deb-src http://security.debian.org/ stretch/updates main contrib non-free ``` Note that all occurences of `jessie` were replaced with `stretch` and the lines referencing `chip.jfpossilities.com` were deleted. 2. Do a full upgrade with `sudo apt update && sudo apt upgrade`. I responded 'yes' to prompts asking if I wanted to restart services, and 'no' to prompts asking if I wanted to replace configuration files. 3. Shutdown and reboot. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 15 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -96,12 +96,25 @@ again to JF Possibilities. If `deb.debian.org` does not work for you, replace it Debian 8 (jessie) is really old, and may disappear from `deb.debian.org` at any time. 7. Update your sources with `sudo apt update`. This will take a while, and may seem to be stuck. Be patient. 8. Install the openssh server with ``` sudo apt install openssh-server ``` . This will allow us to connect to the CHIP with `ssh` which I prefer to `screen`. \ I prefer `emacs` to `nano`, so I also installed emacs at this stage with ```sudo apt install openssh-server emacs-nox```. This takes some time. 9. Shutdown the CHIP with `sudo shutdown now`, unplug it from USB, plug it back in, and wait patiently for in to reboot. 10. Connect to CHIP from an Ubuntu terminal with `ssh chip@10.0.0.128`, using your own CHIP's IP address, of course. Login with user `chip` and password `chip`. 11. Update CHIP to the latest version of Debian 8 (jessie) with `sudo apt upgrade`. Note that we did `sudo apt update` in a previous step. 12. Wait a long time, for `sudo shutdown now`, unplug and replug CHIP, wait for it to boot, and `ssh chip@10.0.0.128` again. You now have a CHIP running the latest Debian 8 (jessie). I stopped at this point for my pocketCHIP and HDMI CHIP. I probably with never update the pocketCHIP to a newer version of Debian. I may update the HDMI CHIP at some later time. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 23 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -79,8 +79,29 @@ To save the readers a click, the instructions from Thore Krug are duplicated her multiple CHIPs. Exit nmtui. 5. Note the IP address for your CHIP with `ip addr`. We will use this to log in the to CHIP with `ssh` later. Mine was `10.0.0.128`. Yours will probably be different and will likely start with `192.168`. 6. Update your apt sources with `sudo nano /etc/apt/sources.list`. It should like this after your edits. ``` deb http://deb.debian.org/debian/ jessie main contrib non-free deb-src http://deb.debian.org/debian/ jessie main contrib non-free deb http://security.debian.org/ jessie/updates main contrib non-free deb-src http://security.debian.org/ jessie/updates main contrib non-free deb http://chip.jfpossibilities.com/chip/debian/repo jessie main deb http://chip.jfpossibilities.com/chip/debian/pocketchip jessie main ``` Note that the references to `opensource.nextthing.co` have been replaced by `chip.jfpossibilities.com`. Thanks again to JF Possibilities. If `deb.debian.org` does not work for you, replace it with `archive.debian.org`. Debian 8 (jessie) is really old, and may disappear from `deb.debian.org` at any time. 7. Update your sources with `sudo apt update`. This will take a while, and may seem to be stuck. Be patient. 8. Install the openssh server with `sudo apt install openssh-server`. This will allow us to connect to the CHIP with `ssh` which I prefer to `screen`. \ I prefer `emacs` to `nano`, so I also installed emacs at this stage with `sudo apt install openssh-server emacs-nox`. This takes some time. 9. Shutdown the CHIP with `sudo shutdown now`, unplug it from USB, plug it back in, and wait patiently for in to reboot. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 14 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -61,15 +61,24 @@ To save the readers a click, the instructions from Thore Krug are duplicated her ### For headless server and desktop 1. Remove the FEL-GND jumper and unplug the CHIP to shut it down. Reconnect the CHIP to the Ubuntu 18.04 machine (a real one, not virtual!) through USB. Your CHIP should reboot, and should be ready after a minute or two. If the LEDs are not flashing, the CHIP is not yet ready for the next step. If they are flashing, wait another minute :). It takes a fairly long time for the CHIP to boot. 2. Open a terminal on the Ubuntu machine and type `screen /dev/ttyACM0` at the prompt. This creates a serial connection between the terminal and CHIP. 3. If you see a login prompt, great. Login with user `chip` and password `chip`. Remember to change the password later. If you don't get a password prompt right away, try pressing some keys a few times. I suspect there are keys that should be pressed. I tried Ctl-A, Ctl-B, return, I didn't notice which of them worked :) If this fails, unplug the CHIP, plug it back in, and retry. 4. Connect the CHIP to wi-fi. I did this using `sudo nmtui` and selecting the appropriate access point using the correct password. After you've connected to wi-fi and exited `nmtui`, you can `sudo nmtui` again to change the hostname of your CHIP from chip, if you want. It's a really good idea to do this if you're working with multiple CHIPs. Exit nmtui. 5. Note the IP address for your CHIP with `ip addr`. We will use this to log in the to CHIP with `ssh` later. Mine was `10.0.0.128`. Yours will probably be different and will likely start with `192.168`. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 22 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,11 @@ There are a number of web pages that try to explain how to flash the CHIP with a all of the options and failed, until I installed Ubuntu 18.04 on an old laptop. Once I did this, the script on [Thore Krug's github](https://github.com/Thore-Krug/Flash-CHIP) worked flawlessly (almost). I needed to install the pocketCHIP image to one of the CHIPs, the desktop image to another, and the headless server image to the two remaining CHIPs. I say "flawlessly (almost)" because I discovered one needs patience and perserverance to succeed. Sometimes flashing would fail, and I would diconnect the CHIP from USB, make sure that the connection between FEL and GND was correct, and try again. For one of the CHIPs, it took six attempts to succeed. To save the readers a click, the instructions from Thore Krug are duplicated here. 1. Remove the C.H.I.P from its case (in case you have a Pocket C.H.I.P). 2. Connect the FEL and a GROUND pin of the C.H.I.P (for example, with a paperclip). @@ -49,6 +53,23 @@ remaining CHIPs. For ease of use, the instructions from Thore Krug are duplicat * Select the version you want to install. * Wait until the installation finishes. * Enjoy! At the end of all of this, the CHIP is a bootable Debian 8 (jessie) machine. The next step is to set up the CHIPs as `ssh` servers. ## Set up `openssh-server` ### For headless server and desktop 1. Remove the FEL-GND jumper and unplug the CHIP to shut it down. Reconnect the CHIP connected to the Ubuntu 18.04 machine (a real one, not virtual!) through USB. Your CHIP should reboot, and should be ready after a minute or two. If the LEDs are not flashing, the CHIP is not yet ready for the next step. If they are flashing, wait another minute. It takes a fairly long time for the CHIP to boot. 2. Open a terminal on the Ubuntu machine and type `screen /dev/ttyACM0` at the prompt. This creates a serial connection between the terminal and CHIP. 3. If you see a login prompt, great. Login with user `chip` and password `chip`. Remember to change the password later. If you don't get a password prompt right away, try pressing some keys. I suspect there are keys on Ubuntu to CHIP -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,13 +42,13 @@ remaining CHIPs. For ease of use, the instructions from Thore Krug are duplicat 2. Connect the FEL and a GROUND pin of the C.H.I.P (for example, with a paperclip). 3. Connect the C.H.I.P its micro USB port to a USB port of your Linux machine. 4. In the Linux machine: * run `git clone https://github.com/thore-krug/Flash-CHIP.git` to clone this repository. * `cd` into the location where you stored this repository. * run `sudo chmod +x Flash.sh` * run `./Flash.sh` * Select the version you want to install. * Wait until the installation finishes. * Enjoy! -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 15 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,21 @@ There are a number of web pages that try to explain how to flash the CHIP with a all of the options and failed, until I installed Ubuntu 18.04 on an old laptop. Once I did this, the script on [Thore Krug's github](https://github.com/Thore-Krug/Flash-CHIP) worked flawlessly (almost). I needed to install the pocketCHIP image to one of the CHIPs, the desktop image to another, and the headless server image to the two remaining CHIPs. For ease of use, the instructions from Thore Krug are duplicated here. 1. Remove the C.H.I.P from its case (in case you have a Pocket C.H.I.P). 2. Connect the FEL and a GROUND pin of the C.H.I.P (for example, with a paperclip). 3. Connect the C.H.I.P its micro USB port to a USB port of your Linux machine. 4. In the Linux machine: * run `git clone https://github.com/thore-krug/Flash-CHIP.git` to clone this repository. * `cd` into the location where you stored this repository. * run `sudo chmod +x Flash.sh` * run `./Flash.sh` * Select the version you want to install. * Wait until the installation finishes. * Enjoy! -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,16 @@ I frequently use to all of them. Unlike the Raspberry Pi which uses an SD Card to carry its operating system, the CHIP carries its operating system on onboard NAND memory, which requires the OS to be flashed. Of course nothing is available officially from NTC, but fortunately [JF Possiblities](http://chip.jfpossibilities.com/) created mirrors of the the information (including flashable system images) from NTC's long dead web site. Thank you to the person/people at JF Possibilities for doing this. There are a number of web pages that try to explain how to flash the CHIP with a fresh system. I believe I tried all of the options and failed, until I installed Ubuntu 18.04 on an old laptop. Once I did this, the script on [Thore Krug's github](https://github.com/Thore-Krug/Flash-CHIP) worked flawlessly (almost). I needed to install the pocketCHIP image to one of the CHIPs, the desktop image to another, and the headless server image to the two remaining CHIPs. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,5 +27,8 @@ I frequently use to all of them. ## Flashing Unlike the Raspberry Pi which uses an SD Card to carry its operating system, the CHIP carries its operating system on onboard NAND memory, which requires the OS to be flashed. Of course nothing is available officially from NTC, but fortunately [JF Possiblities](http://chip.jfpossibilities.com/) created mirrors of the the information on NTC's long dead web site. Thank you to the person/people at JF Possibilities for doing this. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,3 +26,6 @@ I frequently use to all of them. ## Flashing Unlike the Raspberry Pi which uses an SD Card to carry its operating system, the CHIP carries its operating system on onboard NAND memory, which requires the OS to be flashed. -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 21 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,24 @@ I bought four of the Next Thing Co. (defunct since 2018) C.H.I.P. (CHIP hereafte Kickstarter campaign of 2015. The CHIP computer is an interesting beast. It was positioned as a competitor the orginal Raspberry Pi and only cost US$8.00 before shipping. The Raspberry Pi cost US$25 at the time. The CHIP had some features that the Pi did not at the time including built-in wi-fi and battery charging. It was also considerably smaller the original Pi. The CHIP was shipped with Debian 8 (Jessie) and was a capable Linux computer. I had big plans for all of them, but the main use I put them to was as an ad-blocking Pi-Hole. They worked well for that. They have been sitting idle for a few years and I thought it would be fun to put them back to use. I've started thinking about doing more IoT stuff, and these little guys are going to help me do it. One of the four CHIPs is in a PocketCHIP shell which makes it a pretty cool handheld computer if you can get used to its keyboard. I think that this will be nice for remote control and monitoring of IoT gadgets. I have an HDMI "dip" that will allow me to connect one of them to a monitor as a desktop computer. The other two will be put to some sort of IoT "stuff". Because it's been so long since I used them, I decided to flash them to their initial states and start again. The goal for the PocketCHIP is to bring it up to the latest version of Jessie, because I didn't want to break the Pocket Desktop interface, the goal for the HDMI CHIP is the same because I don't want to break the destop (at least for now), and the goal for the other to machines is to make them headless servers running Debian 11 (bullseye). I will also be adding software that I frequently use to all of them. ## Flashing -
billyargh revised this gist
Dec 30, 2022 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,8 @@ # Resurrecting NTC C.H.I.P. computers ## Introduction I bought four of the Next Thing Co. (defunct since 2018) C.H.I.P. (CHIP hereafter) computers shortly after their successful Kickstarter campaign of 2015. The CHIP computer is an interesting beast. It was positioned as a competitor the orginal Raspberry Pi and only cost US$8.00 before shipping. The Raspberry Pi cost US$25 at the time. The CHIP had some features that the Pi did not at the time including built-in wi-fi and battery charging. It was also considerably smaller the original Pi. -
billyargh renamed this gist
Dec 30, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
billyargh created this gist
Dec 30, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ # Hello this is text