epiccurious / jade-diy

Securely custody your bitcoin with Open Source software and generic hardware.
MIT No Attribution
20 stars 2 forks source link

Add support for more Linux and FreeBSD flavors #10

Open epiccurious opened 1 year ago

epiccurious commented 1 year ago

Currently, if Linux, install using apt so only works on Debian/Ubuntu based Linux.

From this guide:

From this superuser question:

#!/bin/sh
source /etc/os-release
echo $PRETTY_NAME

Of course, if you need to identify old versions or non-systemd distros as well, you could simply start with the above but if /etc/os-release does not exist jump to further heuristics

epiccurious commented 1 year ago

Linux-based Operating Systems:

git clone https://github.com/epiccurious/jade-diy

Debian - PASS 408 MB ISO download page sha512: 4460ef6470f6d8ae193c268e213d33a6a5a0da90c2d30c1024784faa4e4473f0c9b546a41e2d34c43fbbd43542ae4fb93cfd5cb6ac9b88a476f1a6877c478674

Ubuntu Desktop - PASS 4.93 GB ISO download page sha256: b98dac940a82b110e6265ca78d1320f1f7103861e922aa1a54e4202686e9bbd3

Ubuntu Server - PASS 1.98 GB ISO download page sha256: 5e38b55d57d94ff029719342357325ed3bda38fa80054f9330dc789cd2d43931

Fedora Workstation 38 - PASS

sudo dnf -qy install cmake git python3-pip python3-virtualenv

2.10 GB ISO download page sha256: 7a444a2e19012023bf0b015ae30135bafc5fd20f4f333310d42b118745093992

Linux Mint - PASS

sudo apt-get -qq install -y git

2.68 GB ISO sha256: 2df322f030d8ff4633360930a92d78829d10e515d2f6975b9bdfd1c0de769aca

Zorin OS Lite - PASS 2.59 GB ISO https://zorin.com/os/download/16/lite/

Manjaro - PASS

sudo pacman --noconfirm -Sy cmake git make python-pip python-virtualenv

https://manjaro.org/download/ KDE PLASMA DESKTOP - PASS 3.92 GB ISO sha512: 0e1936d89e3617b7e9ec6b7bb147a3942ce48d6e80840294365d866bd427d30b7d30662c802c28d6642151f5dd4e7adfde43773a14b16005da0899255cc74b11 XFCE DESKTOP - PASS 3.79 GB sha512: 225a5d5fdaa11bd54a60ab81d71802ae3621aea07ac3add04596a35745ef1362454a5e6057e2a2d09e3a769fb94c20ad10adf4269680984a041cc70aa8f8e1da GNOME DESKTOP - PASS 3.77 GB ISO sha512: 40fbeeeb4f09c1f5f088c48eeda1fa01303782b74a5186370340f633c79e261815c58e712ac9169ca2396665e05bb3bd719ec4c6cc4cb6364f7ecd40b59df5dc

Arch Linux - TBD need to partition the drive 853 MB ISO

pacman --noconfirm -Sy cmake git python-pip python-virtualenv

setup guide download page download mirror sha256: 329b00c3e8cf094a28688c50a066b5ac6352731ccdff467f9fd7155e52d36cec

OpenSUSE - PASS (see next comment) 182 MB ISO download page sha256: c0a71062d0238ccba4874e2da1fb77847e99ae73cdb148933aeb411956bb35ec

CentOS - TBD need to install python 3.7 or newer

sudo yum -y -q -e 0 install cmake git make python3-pip
sudo pip3 install virtualenv

603 MB ISO testing as an administrator user1 download page mirror page sha256: 4b257cb5418e2ba44064121020dfe457fadaff0d0c597bb2f4e7f7eec4aef58a

TinyCore Linux - TBD need to install python 3.7 or newer (3.6.15)

tce-load -wil bash.tcz cmake.tcz gcc.tcz git.tcz make.tcz python3.6-pip.tcz usb-serial-6.1.2-tinycore.tcz
wget https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tgz
tar -xvzf Python-3.10.9.tgz
cd Python-3.10.9/
./configure --enable-optimizations
make
sudo make install
pip3 install virtualenv
bash -c jade-diy/flash_your_device.sh

25 MB ISO download page

Linux Lite - TBD 2.45 GB ISO http://repo.linuxliteos.com/linuxlite/isos/ sha256: d91c7a7ae5a0de347984aa23c9b1137cfd0399054a21965baf0c5011284eb343

Lubuntu - TBD 2.85 GB ISO sha256: 0cc7faebb19949a9e6f754c9f04a86e6900afeabbf5f46574bedced6c98bd70d

Bodhi Linux - TBD

RedHat - Need login, no checksum

Apline Linux - unlikely because dealing with dependencies is terrible

epiccurious commented 1 year ago

More notes:

centOS - see previous comment for commands 4.75 GB ISO sha256: 4b257cb5418e2ba44064121020dfe457fadaff0d0c597bb2f4e7f7eec4aef58a

Linux Mint MATE - PASS 2.74 GB ISO sha256: f7fb9c0500e583c46587402578547ea56125e0a054097f9f464a2500830c8b25

Linux Mint XFCE - PASS 2.65 GB ISO sha256: 6fea221b5b0272d55de57f3d31498cdf76682f414e60d28131dc428e719efa8b

Bodhi - PASS 872.42 MB ISO download page sha256: e2c92307e20ee8aeaba8e39c049fb993b32a3b2879d297a9c8b70efa50aae3ae

MX Linux - PASS 1.96 GB ISO download page sha256: 4162e4174f31448fedfb2727685a799a60774bfa7ea61b9b04255f4270d0c9cd

Gentoo Live GUI - TBD need to increase disk free space

sudo emerge --quiet --sync
sudo emerge --quiet dev-python/pip dev-python/virtualenv
#pip3 install --break-system-packages virtualenv

3.32 GB ISO sha256: 1d7084a3b621339ac92561fcaf566356541442c6188ec247645a5b3830207165

openSUSE - PASS

sudo zypper -qn si -d python3
wget https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tgz
wget --no-check-certificate https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tgz
tar -xvzf Python-*.tgz 
cd Python-*/
./configure --prefix=/usr/local/python/ --with-openssl=/usr/local/openssl --enable-optimizations
make
sudo make install
which python3
REBOOT?
maybe the next 4 lines?
sudo mv /usr/bin/python3 /usr/bin/python3.backup
sudo mv /usr/bin/pip3 /usr/bin/pip3.backup
ln -s /usr/local/python/bin/python3 /usr/bin/python3
ln -s /usr/local/python/bin/pip3 /usr/bin/pip3
which python3
sudo ln -s /usr/local/python/lib64/python3.10/lib-dynload/ /usr/local/python/lib/python3.10/lib-dynload
pip3 install virtualenv
export PATH="/home/${USER}/.local/bin:$PATH"
epiccurious commented 1 year ago

Install Python 3.10 on openSUSE https://techviewleo.com/how-to-install-python-on-opensuse-linux/

Install Python 3.10 on CentOS https://techviewleo.com/how-to-install-python-on-centos-linux/

epiccurious commented 1 year ago

Need to add installed python3 and pip3 binaries to $PATH

export PATH="/path/to/python3:$PATH"
epiccurious commented 1 year ago
if [ -f /etc/os-release ]
then
  os_id=$(grep "^ID=" /etc/os-release | cut -c 4-)
  os_name=$(grep "^NAME=" /etc/os-release | cut -c 7- | sed 's/.$//')
  os_prettyname=$(grep "^PRETTY_NAME=" /etc/os-release | cut 14- | sed 's/.$//')
fi
epiccurious commented 1 year ago

EndeavorOS - TBD 2.06 GB ISO download page sha-512: d60fd83ef24b0d62208f48d6de37ea62e056b01dedfe86cbd0bd464f6eb7130c141cf931144d3426270d8e8b53db2d2dd4777b3a49b150b70fac8bec10c91d4c

epiccurious commented 1 year ago

NAME="Linux Mint" ID=linuxmint ID_LIKE="debian ubuntu" PRETTY_NAME="Linux Mint 21.1"

lubuntu NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 22.04.2"

NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 22.04.2 LTS" PRETTY_NAME="Linux Lite 6.4"

NAME="Debian GNU/Linux" ID=debian PRETTY_NAME="Debian GNU/Linux 11 (bullseys)"

NAME="Zorin OS" ID=zorin PRETTY_NAME="Zorin OS 16.2"

NAME="CentOS Linux" ID="centos" ID_LIKE="rhel_fedora" PRETTY_NAME="CentOS Linux 7 (Core)"

NAME=FreeBSD ID=freebsd PRETTY_NAME="FreeBSD 13.2-STABLE"

this is for MX linux NAME="Debian GNU/Linux" ID=debian PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"

NAME=TinyCore ID=tinycore PRETTY_NAME="TinyCoreLinux 14.0"

NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Bodhi 6.0.0"

NAME=Gentoo ID=gentoo PRETTY_NAME="Gentoo Linux"

NAME="Fedora Linux" ID=fedora PRETTY_NAME="Fedora Linux 38 ( Workstation Edition)"

NAME="Manjaro Linux" ID=manjaro PRETTY_NAME="Manjaro Linux" ID_LIKE=arch

NAME=EndeavorOS ID=endeavoros PRETTY_NAME="EndeavorOS" ID_LIKE=arch

NAME="Arch Linux" ID=arch PRETTY_NAME="Arch Linux"

epiccurious commented 1 year ago

BSD-based operating systems:

FreeBSD - TBD 392 MB ISO download page sha512: 9fe5b892f9c9edf6fb9e97019917441b3fbf91ef3af69d54773849ae9f5563fc3429da84fb56a2e5b15c84e0b450f60d49a37f8a261d16ea2e4c4341963d82b8

openbsd ?? ISO download page fdf1210ffe87213eeca5f1d317e8b19364cbae83545cdfc7845098a53fc79a60

netbsd ?? ISO download page sha512: 2bfce544f762a579f61478e7106c436fc48731ff25cf6f79b392ba5752e6f5ec130364286f7471716290a5f033637cf56aacee7fedb91095face59adf36300c3

dragonfly bsd ?? ISO download page md5: ff4d500c7c75b1f88ca4237a6aa861d1

ghostbsd ?? ISO download page sha256: 239c5a01667420edd555d2d62707289db4051e3b16c4e74f1772c6bcf507cec8

midnight bsd ?? ISO download page sha512: 9cb09e768deaf819ab1b3d3c7c658ae95ab0e4d83a70df4552e5e5c767e1069aaac481be50306b49186c8d589195a9cf57ff7c3e0663fb0d1e258e5041d4c439

nomad bsd download page Since NomadBSD is designed to be a persistent system, we do not provide ISO files, as ISO-9660 is a read-only filesystem.

epiccurious commented 1 year ago

DIST=cat /etc/SuSE-release | tr "\n" ' '| sed s/VERSION.*//

epiccurious commented 1 year ago

OpenBSD grep "BSD" /.profile export OBSD="OpenBSD/$ARCH $VNAME" Welcome to the OpenBSD installation program. grep "OpenBSD" /.profile

NAME=DragonFly ID=dragonfly PRETTY_NAME="DragonFlyBSD 6.4-SYNTH"

/etc/release grep "NetBSD" /etc/release | wc -l

grep "ID=" /etc/rc.d/os-release VERSION_ID=$_version_id ID=midnightbsd grep "NAME=" /etc/rc.d/os-release NAME=MidnightBSD PRETTY_NAME="MidnightBSD $_version" CPE_NAME=cpe:/o:midnightbsd:midnightbsd:$_version_id grep "PRETTY_NAME=" /etc/rc.d/os-release PRETTY_NAME="MidnightBSD $_version"

epiccurious commented 1 year ago

/etc/systemd/sleep.conf.d/nosuspend.conf

[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
epiccurious commented 1 year ago

Solus 1.95 GB ISO download page sha256: 5511b7d5926679a4c94f95cc18e802377c3f950beb2a70bd9145ff1c28309352

RedHat Enterprise Linux 12.53 GB ISO download page

epiccurious commented 1 year ago

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html

epiccurious commented 1 year ago

Add support for Nixos and Tails:

ID=nixos

ID=tails ID_LIKE=debian