From 8e60daba8b9258c64f85880759eb9149e16d565d Mon Sep 17 00:00:00 2001 From: alpcentaur Date: Thu, 25 Jan 2024 21:01:33 +0100 Subject: [PATCH] updates to broken armbian images and update to the size of the microsd with the image. --- README.md | 89 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 2239bfd..83c723f 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ + Orange Pi Zero + MiniUsb2Usb Cable for power-supply + An Ethernet !Crossover! Cable for ssh access -+ An MicroSD 16 GB for the Installation of the OS ++ An MicroSD 30 GB for the Installation of the OS + MicroSD2Usb Reader to plug in the Laptop + Linux Wifi Dongle + Wifi Antenna @@ -32,31 +32,38 @@ Because Ubuntu is half proprietary, and there is a surveillance door for Amazon on the system, the KAOS Cube runs on ARMbian - Debian based. -First step is to partition the MicroSD - - lsblk # list devices see which /dev/sdX is usb - - sudo fdisk /dev/sdb # In my case, the usb is /dev/sdb - - Command: d # Inside fdisk: delete all partions - - Command: n # Inside fdisk: Create new Partion - # Press enter until you are done - Command: w # Write the changes - sudo mkfs.vfat /dev/sdb1 # format the new partition to fat32 +You could get a debian buster image from https://www.armbian.com/download/ for the orange pi +zero, as sshd is still running by default on the resulting machine, for connecting. But all that images, if bullseye or buster, wont have a working ap enabling on board antenna driver. + +The image provided has it. +And it gives an Access Point already configured. +On the newest Bullseye Security, one of the securest in the internet. + +Git clone the repository to get the image if you like, or go on with bullseye instead in the same manner as described. -Get a buster image from https://www.armbian.com/download/ for the orange pi -zero, as sshd is still running by default on the resulting machine +And, more importantly, as of my writing, the xradio does not work with Bullseye and Bookworm. But that is writing of a year ago. -And, more importantly, as of my writing, the xradio does not work with Bullseye and Bookworm. -Which means, the small on board wifi does not work. +First untar and extract from downloaded archive from my git server. +with + tar -xzvf kaosimage.tar.gz + +Now comes partitioning. +Be careful. + +Look up the partitions, with + + lsblk + +Have a look that the microsd of minimum 30GB is not mounted, and + +start copying to the root of the microsd. Now copy binarywise the image to the partition - sudo dd bs=4M if=ArmbianBusterForOrangePiZero.img of=/dev/sdb + sudo dd bs=4M if=kaosimage.img of=/dev/mmlp Thats it! The free system should be installed. Put the MicroSD into your OrangePi. @@ -64,7 +71,12 @@ Thats it! The free system should be installed. Put the MicroSD into your OrangeP Now connect the cables. The Orange Pi will boot by supplying it with power. -Connect your computer with ethernet (crossover, special one) cable to the orange pi zero. +Here comes the part, how to connect over ethernet to other computers. +The image provided just gives you a wpa2 encrypted interface, so not secure for first +setup of keys on your client, and on your new own autonomous server. +If you are sure to be in a cage of aluminium, you can also make your first connection. Your first relaxed connection over an Access Point - the Kaoscube.image will generate when put on power. + +For Connect your computer with ethernet (crossover, special one) cable to the orange pi zero. The first boot takes a bit longer, up to 2 minutes. Make sure, that not only the lights of the ethernet port on the orange pi zero have the lights on. @@ -131,28 +143,13 @@ gave you a virus instead of an OS :) In the newer versions of armbian, ssh is deactivated by default. -To save time, we installed an armbian buster. +To save time, we could have installed an armbian buster. Generally, it is important to keep your KaosCube up to date. -That is why, after getting access to the Cube, the first thing is +That is why, after getting access to the Cube, the first thing would have been an upgrade to bullseye (which is debian stable at the time of this writing and has the latest debian-security updates inside) - sudo apt update - - sudo apt dist-upgrade -y - -Then change the apt configuration file - - sudo nano /etc/apt/sources.list - -and change all words which are "buster" to "bullseye". - -Except of the line regarding debian-security. There, you have -to change "buster" to "bullseye-security". - -Save (in nano that is strg+o) and exit nano (strg+x) - -Then update with the new list and run the upgrade +With the kaosimage you dont have to do a system upgrade, but the updates are always important. To give you a Trick for updating servers, try to use only sudo apt update @@ -160,11 +157,18 @@ Then update with the new list and run the upgrade During the upgrade, always choose ok or default :). -Then go to /etc/apt/sources.list.d/armbian.list and change to bullseye there too -Then run again the update and upgrade. +When something appears broken, which will be the case if you have a lot of servers, +it will be one of the updates. + +That is why, we first check that. +In case there is a break, we can have a rollback to before the update. +Based on the cache of the package manager. -## Setting up the Access Point +If everything went well on the other side, which will be the case if updates are made fast and rolled back directly if broken, then you can just go on to cleaning and auto cleaning the system and you are fresh to go. + + +## Setting up the Access Point (if you want to, because in the end the provided image has one configured, and one can copy paste that too. but one can extend too.) On buster, the access point can be set up persistently with the commands: @@ -215,7 +219,7 @@ After all commands have run successfully, restart the system sudo reboot -## Create network connection with new wifi dongle +## Create network connection with new wifi dongle (not sure if thats already or still on the image) First look up with ifconfig for the interfaces, and which one is the one of the dongle @@ -248,7 +252,8 @@ Now change to user (still being root) and go to home directory -First clone the interface from git: + +Remember cloning the interface from git? git clone https://code.basabuuka.org/alpcentaur/kc-interface.git