Commit graph

298 commits

Author SHA1 Message Date
Dipun Mistry
c3715c2194
minor fixes I found as I ran scripts manually (#3767)
* minor fixes I found as I ran scripts manually
* removed use of sudo & added sudo root check
2023-05-03 17:21:44 +02:00
rootzoll
19a54e1641 move fatpack into external script 2023-04-09 23:19:22 +02:00
rootzoll
2397b3847c update SD CARD base image info 2023-04-04 01:21:06 +02:00
openoms
82e26b118b
disable suspend (#3587)
* disable suspend

* fix typo in the logrotate config
2023-02-03 19:38:20 +01:00
/rootzoll
a382f2b803
fix web api/ui installs (#3567)
* add export build parameter

* Install WebAPI with build_sdcard.sh defaults

* change use of build_sdcard

* make webui work with DEFAULTS

* use web data

* update docs
2022-12-22 00:38:44 +01:00
/rootzoll
4a2a33c081
Fix display settings recover for future lean build releases (#3558)
* modify dev notes

* display recover during lean-build
2022-12-21 14:50:52 +01:00
openoms
4ab6c46a27
Add automated image builds for VM, bare metal (amd64) and RPi (arm64-rpi) (#3486)
* add amd64 image build with lean and fatpack option

* use the pi user for setup

* add notes to ci readme

* add gnome desktop to fatpack image, reduce to 30GB

* documentation updates

* install gnome with --force-yes

* install gnome desktop non-interactively

* change links to rootzoll dev

* pass user and branch to build_sdcard.sh from PR

* add user and branch to Makefile

* Add arm64 rpi image build (#74)

ci:
* add arm64-rpi image build
* rename to raspiblitz-amd64-debian-11.5-lean/fatpack
* use rm -f to not exit with error
* place amd64 images under ci/amd64/builds/
* make /dev/shm world writable for fatpack
* fix vlc remove and --var syntax
* remove sudo-s
* leave update and upgrade to the build_sdcard.sh
* increase image size to 16GB, rename build dir

build_sdcard.sh:
* detect raspios_arm64 with raspi.list
* switch ssmtp to msmtp
related: https://github.com/rootzoll/raspiblitz/pull/2232

Co-authored-by: rootzoll <johndoe@example.com>

* i2pd: unified install from repo, /usr/sbin to PATH

related: #2413, fixes amd64 build

* update CHANGES.md

* fix amd64 path in Makefile

* use only qemu image, run on ubuntu-22.04

* use file_checksum for the arm64-rpi base image

* Fix the local arm64-rpi image generation (#75)

* add selfrun script
* ubuntu: add universe repo and qemu-user-static
* test on ubuntu live (jammy)

* build from branches: [ "dev", "v1.8", "v1.9" ]

* correct Makefile paths for the  local run

* make the local run non-interactive

* improve readme and Makefile

* increase disk image sizes to 32GB

* set image sizes to 30 GB for amd64 and arm64-rpi

* add network-manager for amd64

* add to readme

* skip Code&Compile for VM builds

* add to readme

* amd64 base image update to debian 11.6.0

* remove debian version from filenames

* skip Code&Compile for amd64 builds

* Merge branch 'dev' into add-amd64-image-build

* amd64: increase cpu and RAM, compile mempool last

* trigger workflows only on scripts used or called

* Update ci/arm64-rpi/packer.build.arm64-rpi.sh

Co-authored-by: Daniel Bast <2790401+dbast@users.noreply.github.com>

* arm64 remove setup-qemu-action, leave npm last

* set only manual trigger for fatpack, edit triggers

Co-authored-by: rootzoll <johndoe@example.com>
Co-authored-by: Daniel Bast <2790401+dbast@users.noreply.github.com>
2022-12-20 15:31:51 +01:00
/rootzoll
334792abda
#2891 Prepare JAM install scripts for WebUI (#3545)
* webapi branches

* add thunderhub off

* webui JAM & joinmarket

* fix joinmarket menu

* comment output

* add debug

* remove user delete JAM

* pipe outputs

* add to fatpack

* pipe more debug

* dont remove app

* force https

* #3544 manual merge

* separate install and on option for joinmarket (#3544)

* fix call

* adapt api/webui branches

Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
2022-12-19 12:28:56 +01:00
/rootzoll
edf375860d
fix sdcard build (#3534) 2022-12-16 17:53:32 +01:00
/rootzoll
54c66559e0
added githubapi versioning (#3530) 2022-12-16 11:12:56 +01:00
/rootzoll
45c2716e0e
API & WebU get installed from similar release branches like main repo (#3529)
* #3272 adapt API install script version branches

* #3273 adapt webui install script version branches

* #3254 move info

* #3460 change mempool detection

* fix syntax

* fix warning output
2022-12-16 00:19:12 +01:00
/rootzoll
fb9283a06c
Fatpack WebUI Apps (#3514) 2022-12-13 15:28:05 +01:00
/rootzoll
d7d1c40866
#3505 lnbits PostgresSQl migration finalization (#3507)
* fix missing dependencies

* LNBits SQLite to PostgreSQL migration (#3411)

* LNBits SQLite to PostgreSQL migration

New installations with PostgreSQL configuration, existent data with SQLite.

convert script needs a full start of LNBits prior migrating the old sqlite db's.

User can migrate from raspiblitz menu.

* only fix postgres if it needs to

check for symbolik link of postgres default directory or desired postgres folder

btcpayserver and lnbits could use postgresql

new script to install or uninstall postgresql

* fix typos

* silent apt remove

* fix removed function postgresConfig

call bonus.postgresql.sh to setup PostgreSQL

* Support outdated installation

old installations should upgrade to new tag first

create new data directory /mnt/hdd/app-data/LNBits/data

* Improve migration

Make it a bit more user friendly and prepare for a worst case to revert the migration if something fails unexpectedly

make use of sync method for preparation

* Rework migration workflow

Cant wait for lnbits to start when ExecStartPre is used.

We need a full start of lnbits prior migration, so make use of lsof to check for ports and wait.

dont forget to start postgres service after installation. dont forget to stop postgres after uninstall

* Dont overwrite the backup file

if we start migrate again, the sqlite backup should not be overwritten with postgres data. Keep the backup file.

* add migrate message to menu

add the hint to revert migration manually after migrate script executed

* fix install and data directory

lnbits always needs a data directory

* clean up lnbits settings for migration

even if postgresql is already running, we can extract sqlite backup and start migrate

remove migrateMsg duplicate

* preserve database for reflash

drop database only for migrate, not for regular installations

* set blitz config for LNBits

fix drop database only for migrate, not for regular installations

* Add confirmation dialog and automatic revert

User needs to confirm the process, this will eliminate missclicks

add a migrate revert function to automatically revert if something unexpected happens

let the user call the function manually

* check conv.py on success or revert

if the conversion script fails, revert automatically

* Improve revert message

Do not print the revert hint message if current database is SQLite

* fix read config LNBitsDB

* fix unpack backup

Folder LNBits should never block the restore of backup. Happened after multiple migrations and revert.

* Wait for lnbits v0.9.5

Set commit version with fix for postgresql database and BIGINT for amounts for migrate

Can be set to v0.9.5 tag or above later

* improve migrate backup handling

revert to the current backup and not to the previous backup.

No need for the failed folder state

user message with backup file path

* check psql version once

* supress expected errors

if database exists

Co-authored-by: /rootzoll <christian@geektank.de>

* fix error output on status

Co-authored-by: ChuckNorrison <2964146+ChuckNorrison@users.noreply.github.com>
2022-12-10 00:04:15 +01:00
rek79
9fe1c47048
Improve localIP assignment and SSD detection (#3439) 2022-12-08 12:20:00 +01:00
openoms
c69b2603de
feat: add I2P (#3330)
* feat: add i2pd install script

* improve i2p install script

* add i2pd to SDcard image

* set i2pd value in the raspiblitz.conf

* improve detection and output

* fix typo

* exit 0 after addseednodes

* fix config and enable teh i2pd webconsole

* working install for amd64

* add checksum check

* better help message

* use confAdd for repeated keys

* add status option, passwordB protected webconsole

* separate i2pd install and setup

* change install check

* rename script & remove double on switch

* add i2p add node

* fallback.bitcoin.nodes

* kickstart only torv3

* fix Torv3 kickstart

* update bitnodes fallback list

* kickstart i2p from background

Co-authored-by: rootzoll <christian@geektank.de>
2022-12-07 20:26:10 +01:00
/rootzoll
6ef861ba0b
New sdcard base image & sd card build fixes (#3456)
- wrapt fix
- python3-mako
- Fix install issues with wrong hashes and python environment mismatch
- #3455 fix ExecStart path of blitzapi
2022-11-21 21:15:18 +01:00
steepdawn974
53c5a8559d
Add mako to python-lib in build_sdcard.sh (#3442) 2022-11-17 20:17:51 +01:00
openoms
6fafcf042a
build_sdcard: fix double quote and whitespaces 2022-10-04 23:42:47 +01:00
openoms
473ce12730
prevent sleep (#3292) 2022-09-29 21:04:39 +02:00
Luis Miguel
f6ea4847da
Adding fdisk to dependencies (#3228) 2022-09-29 21:00:39 +02:00
Tochi Obudulu
0248213f6a
Update build_sdcard.sh default branch (#3301)
Bumps the default branch of `build_sdcard.sh` to v1.8 as following the build instructions on the 1.8 branch currently installs 1.7.2 which might be confusing.
2022-09-13 22:35:18 +02:00
Luis Miguel
09335f1e40
Add lsb-release to apt install (#3233) 2022-07-18 22:14:30 +02:00
openoms
a7976786d5
fix error messages using exclamation marks (#3232) 2022-07-18 22:07:14 +02:00
openoms
6c01360bd6
fix quotation #3180 2022-07-04 13:24:49 +01:00
rootzoll
64e1cbc550 fix syntax of build script 2022-06-29 00:49:05 +02:00
openoms
d4448d4652
blitzapi: add dedicated user and conf entry (#3191)
* blitzapi: add dedicated user and conf entry
* blitzapi: add to sudo group,  allow systemd access
* store blitz_we code under /home/blitzapi
* add SERVICES menu option for Blitz API and webUI
* blitz.passwords: allow non-sudo to check passwords
* change blitz_web path
* blitzapi: fix SERVICES menu entry
2022-06-28 19:35:21 +02:00
openoms
5eb32db8cf
increase the possible number of running processes (#3180) 2022-06-28 18:48:07 +02:00
openoms
f02d814b2d
build: pin protobuf==3.20.1 #3162 2022-06-13 15:28:33 +01:00
rootzoll
fa7868006c #3127 improve webui 2022-05-18 20:09:13 +02:00
rootzoll
d58b3f4a9a #3127 improve webui install 2022-05-18 16:34:45 +02:00
rootzoll
76c2e46e74 Merge branch 'merge-v1.7' into dev 2022-05-17 22:40:04 +02:00
Joel Klabo
48b684b0ce
Update Link to System Configuration Guide in build_sdcard.sh (#3045) 2022-05-17 22:39:33 +02:00
Götz Görisch
5b478252ad
feat: removes preinstalled cups (#2951) 2022-05-17 19:34:50 +02:00
harvhat
39dd64c156
Wrap apt install -y into a function and exit if it fails (#3002) 2022-05-17 19:13:13 +02:00
openoms
539afe9882
add the cln-grpc plugin (#3109)
* add cln-grpc plugin
* set firewall,  Tor and move rust install
* build the cln-grpc as part of the fatpack option
* add to CHANGES
2022-05-13 13:06:30 +01:00
/rootzoll
fd8d880c09
Apiscripts (#3093) 2022-05-05 10:59:50 +02:00
rootzoll
8ba04e90c0 allow rolling with python 3.8 2022-03-09 22:31:58 +01:00
rootzoll
2315b438b6 allow rolling with python 3.8 2022-03-09 22:31:19 +01:00
rootzoll
d1cf7ee57e remove btrfs-tools package 2022-02-07 10:29:53 +01:00
rootzoll
843265e816 fix image description 2022-01-29 01:06:45 +01:00
rootzoll
660344fa1b #2915 update to new raspios base image 2022-01-28 19:33:42 +01:00
rootzoll
801f5fffd7 #2913 added policykit-1 to build script 2022-01-27 23:24:54 +01:00
rootzoll
872e87a937 limit journald system use 2022-01-27 18:39:32 +01:00
nyxnor
082b52f143
make boolean options have the same value (#2912) 2022-01-26 00:26:50 +01:00
arno
2fb7fb9496
add curl and unzip before first use (#2886) 2022-01-14 20:52:21 +01:00
arno
a20d9f353c
other syntax for boolean if statements (#2885) 2022-01-14 17:36:28 +01:00
rootzoll
b1fe99e112 shebang to bash 2022-01-13 20:56:30 +01:00
rootzoll
ca4255ffd2 put back hashbang 2022-01-11 20:17:03 +01:00
rootzoll
59903a3d1a test build script again 2022-01-11 18:43:15 +01:00
/rootzoll
1fbb620c0a
2852buildparameter (#2879) 2022-01-11 14:39:15 +01:00