๐—ฆ๐—ฒ๐˜๐˜๐—ถ๐—ป๐—ด ๐—จ๐—ฝ ๐—” ๐—ฅ๐—ฎ๐˜€๐—ฝ๐—ฏ๐—ฒ๐—ฟ๐—ฟ๐˜† ๐—ฃ๐—ถ ๐—ฎ๐˜€ ๐—ฎ๐—ป ๐—จ๐—ฏ๐˜‚๐—ป๐˜๐˜‚ ๐——๐—ฒ๐˜ƒ๐—ฒ๐—น๐—ผ๐—ฝ๐—บ๐—ฒ๐—ป๐˜ ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ฒ๐—ฟ

A #LearnInPublic & #BuildiInPublic thread

The intention is to have a Raspberry Pi as a dev environment for web / web app & python projects primarily, for these endeavours
I'm going to approach this in my customary haphazard & non-linear fashion

No plan for the thread

Just a document of what I'm doing, as it unfolds
First thing I learned a while ago is that there is some complexity to creating a bootable SD Card for a Pi

I'm not quite sure what that is
A thing I learned today, is that @Raspberry_Pi have created a 'Pi Imager' application to make this bootable SD Card business easier

Great

The next thing I learned is that my Mac is too old to run it

raspberrypi.org/blog/raspberryโ€ฆ
A thing I learned after that, is that there is a tool called Etcher for creating bootable drives, and there is Mac app

Etcher is built on Electron, which is compatible with MacOS 10.10 and above, so I'm alright here, this will install

Dl/d & installed

balena.io/etcher/
I've already downloaded the latest stable version of Ubuntu Server

So apparently what I do is to run Etcher, select the Ubuntu image, and point it at the SD

This makes the SD bootable, but I don't see how it completes the 'headless server' setup by itself (e.g. wifi & ssh?)
Answer is this method does not complete the headless server setup by itself

This will involve connecting up the Pi after this install and completing the setup on the device, rather than having an ideal installer config

Fair enough
Ok, so...

We go:
- Run Etcher
- Select Ubuntu Image ImageImage
Then:

- Select SD Drive as Target
- Flash (ahaaa!)

(and wait) ImageImageImageImage
Took a couple of minutes or so, and was done

Next will be to connect up the Pi board (it's not tucked up in its case, yet), and continue the config process (probably tomorrow) Image
Alright

Raspberry Pi kit out

However, I'm gonna try to get the whole headless server setup according to some instructions I've found, so that I won't need to plug this in to a monitor and keyboard to finish the setup

Idea is to set it up and then use it headlessly
Next:

Adding a simple file to the SD card called 'ssh'

Apparently when the Pi finds this file on first boot, it will enable ssh; if it's not there, ssh (a method of logging in remotely and securely via a terminal) will be disabled on first boot
Next, and unconfidently, the final step, is to create another file on the ssd card containing wifi settings

Apparently the Pi, when seeing this file on first boot, will create a permanent wifi profile, and so the theory is I should just be able to log in via ssh straight away
Ok, so now we learn something about the learning process...

That didn't work
And that's ok, 'cos this is learning

So here is a new vid with what seems the correct method of setting these wifi settings on the SD Card in headless Ubuntu on the Pi ๐Ÿ‘‡
Then, there's one final setting which needs to be made: telling the Raspberry Pi to reboot after its initial boot-up and creation of the wifi profile

It'll then reboot, pick up the new wifi profile, and connect to the wifi router, which then makes it discoverable & we can log in
Next up is to insert the SD card into the Pi, and power it on

Then let it boot up, apply the wifi profile, reboot itself, and see if it appears on the network... ๐Ÿ‘‡
So as per the above video, this latest (correct) approach to setting the wifi config worked, and the Pi booted up and was visible on my wifi router

That means I can ssh into the router and complete the basic setup

Bingo!
ssh into the Pi, of course...

next couple of days i'll be deciding what packages to install on the Pi for it to become an effective dev environment

will probably leave it there for now as i'd like to run rest of it through my creative process, which requires a cork wall...
andโ€ฆ. returning to this thread

life had many (mostly unwelcome, some welcome) interruptions since i was last here

however, we resume, and development is, in small way, now underway

onto pi dev environment steps ๐Ÿ‘‡
i'm wanting to move web development off my mac (sort of, apart from the code editor & previewing web sites etc.) and off my nas onto the pi

so the pi will run apache, serve dev sites, run python & other required packages etc

i become more conversant with linux as a result
and i will prob end up scripting the creation of new tech endeavours and putting together a slick dev process, and then can incrementally ship new & changed stuff pretty quickly

this helps me to flit between my creative endeavours and just go where the energy is, and do that
so ok, setup stuff:

next up was to get the pi to see my nas shares, where all my web stuff is, and where git files & python scripts will live

it makes sense to keep files stored on the nas in this way & have the pi serve sites from here, as the nas gets backed up
i can then figure out how to backup key files on the pi and have it re-built easily if necessary

first up then was installing the NFS Client on the pi, and then getting my regular pi user to be able to see & write to those shares

this wasn't easy
pulled my hair out
installing nfs client package easy

initially mounting an NFS share easy enough

but getting permissions right, using the right nfs version & options was the tricky bit for a noob

we did some root squashing and recursive chowning here, ok?

a resource: bytexd.com/installing-nfsโ€ฆ
ooh, i cracked this

didn't like that root squashing business, and wanted my network share to work without it

this meant changing the userid of my regular user account on the pi, so that it is the same id as on the nas

then disabled the root squashing business, and it works ๐Ÿค˜
a nice little resource on changing linux user & group ids, and changing file ownership to those new ids:

cyberciti.biz/faq/linux-chanโ€ฆ
onto setting up Apache on the Pi

easy enough; just a few config tweaks after the install

best resource for this is the ubuntu apache install guide, surprisingly enough

install is a simple: sudo apt install apache2

then i veer from the doc for my setup
ubuntu.com/tutorials/instโ€ฆ
the idea here is to get apache to serve website hosted on my NAS, not on the Pi itself

this is achieved by the previous (slightly confounding) setup of NFS shares & permissions

meaning my requirement was easy to achieve, which was to simply point apache to that shared folder
this is done by setting up a virtual hosts file in the sites-available folder in apache's directory structure

so for each domain and subdomain, a new virtual hosts file is required

this is easyโ€ฆ grab a template, change the server / host name & document locations & save file
in ubuntu land, that vhosts then needs activating, according to the ubuntu apache install doc instructions

- sudo a2ensite yournewvirtualhost.conf

effectively creates a symlink to the conf file in the sites-enabled folder, so apache will see the virtual host

then reload apache
one more step i had to make here, aside from pointing my apache via the vhosts to a network share location, was to change the ip address of the local domain for the site i'm developing to the pi's ip address, in order that apache will serve the website at that address
i do that on my NAS as that device is managing DNS addresses on my network

so the NAS receives DNS queries, directs certain requests for particular domains to the Pi, and the Pi serves the website request using files stored on the NASโ€ฆ
in essence my little dev setup is done for now, in a slightly old-fashioned way (my code editor will push updated files around dev & test subdomains and onto the production server)

and so i'm ready to knock pages/sites up and to explore the numerous unfolding ways in codeโ€ฆ Image
part of me questions the reason for doing the below when i read that back

2 reasons:

1. the NAS website management interface has become impossibly slow after the last couple of OS updates. whereas it takes me seconds to create a new vhosts file on the Pi
1.1 i can automate new vhosts creation if i wish to

2. the NAS is kinda old and it won't run Docker

so it's only useful for basic network stuff and storing stuff

rest of my dev process needs to be on something newer, and the Pi is more than adequate for serving, packaging etc

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with ๐Ÿ††28 โ“2ใ€Ž the way of the struggle ใ€

๐Ÿ††28 โ“2ใ€Ž the way of the struggle ใ€ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @theunfoldingway

Jan 19, 2022
An #unfolding #BuildInPublic thread demoing an iteration to the previously created audio 'Drop' page

(e.g. theunfoldingway.com/drops/templateโ€ฆ)

The iteration is to add twitter meta-tags to the Drop page, as follows๐Ÿ‘‡
Idea:

When posting an audio 'Drop' to twitter, format it as a Twitter Player Card โ€“ with a playable audio widget in the tweet

Allows me to store my audio files on theunfoldingway.com & share these in easily-consumable fashion via twitter
Ideal Version:

A smartly-customised 'unfoldingway'-monikored & designed audio widget embedded in the tweets, with a link back to the Drop page on theunfoldingway.com

Displays the title & description of the audio file
Read 13 tweets
Jan 18, 2022
an #Unfolding #BuildInPublic thread:

โ„‚๐•ฃ๐•–๐•’๐•ฅ๐•š๐•Ÿ๐•˜ ๐•’๐•Ÿ ๐•’๐•ฆ๐••๐•š๐• ๐•ก๐• ๐•ค๐•ฅ ๐•ก๐•’๐•˜๐•– for theunfoldingway.com

The core idea is to be able to move my audio recordings away from Soundcloud to my own domain & website

The rest is goodies

Let's see where it goes ๐Ÿ‘‡
Let's take a little journey through the creative process

First up is usually audio recordings, which kinda creates a circular problem here

Anyhow idea-audio will probably mostly stay private

I prefer to demonstrate the process & the doing, rather than the deluded daydreaming
Next up is the form-mapper

This is a technique & template I created last year (when most of the creative process behind @theunfoldingway was created)

I use this to get ideas down & flowing, quickly assess them for value, and identify a realistic form i can rapidly create ๐Ÿ‘‡ Image
Read 8 tweets
Jan 17, 2022
today, i shall be mostly an expression of my best understanding of the world
aka 'fucking weird'

and yes

weird world, ain't it?
anyway, what i meant to say was that everything i do on this account is an expression of my current best understanding of the world, of how we can maybe do a little better, or perhaps pivot to doing much better

for ourselves & together
Read 8 tweets
Jan 15, 2022
crypto enables creators & represents new spaces & ways to play inside the existing economic paradigm

we should embrace the freedom it brings for us to design & more truly lead our own lives

but it isn't the ultimate promise, as it neither a native digital nor a new economics
here is the difficult new reality:

โ€“ if you're a creator, you should be in web3/daos/crypto

- if you're looking to create a sustainable community, you should be in web3/daos/crypto

โ€“ if you worship money, you should be in web3/daos/crypto
here is the really difficult new reality:

you need to be all three
Read 5 tweets
Jan 15, 2022
i've consistently been 20- 30 years ahead of my time with some of my technology predictions & visions

except i never had a method to build any of them

i'm now 30 - 50 years ahead with technology & economic ideas

there are reasons for me getting started with @theunfoldingway
however, i shall continue with learning basic linux & doing 'home projects' on a raspberry pi, and doing what look like very weird things with regards to this unfolding way thing

this is because you have to accept that to unfold the future, you must start right where you are at
i wish i started right where i was 25 yrs ago, and was v. close to doing so & achieving financial independence at the start of the internet age

i'd no idea how personally transformational that could have been

those lessons & convictions are inherent to how i choose to live now
Read 9 tweets
Jan 14, 2022
life is art

and i feel like that is what i'm going to do with it

maybe i already began
maybe we all began, but maybe we have to truly realise it
i've ran some tests against reality

they came back negative / positive

no; nothing has to be turned into work

yes; life can indeed be lived entirely as art
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(