Commit graph

7673 commits

Author SHA1 Message Date
/rootzoll
e879c7df0d
prepare v1.9.0rc1 (#3553)
* prepare v1.9.0rc1

* offer subscribe also for CLN & justBTC

* add quicklinks

* move quick links

* add break line
2022-12-20 17:30:50 +01:00
/rootzoll
5cf4aad1f9
#3272 blitz_api change to dev branch (#3546) 2022-12-20 17:29:31 +01:00
openoms
bcc05b6ada
docker helper script updates (#3554) 2022-12-20 17:18:25 +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
openoms
b8b86b3b10
fix typos (#3552) 2022-12-20 11:57:14 +01:00
/rootzoll
ba68541d2e
#2891 seperation of install/on joinmarket (#3551)
* #2891 fix install blips

* #2891 move wallet

* add exit

* #2891 move config over to `on` section
2022-12-20 01:37:36 +01:00
/rootzoll
41c0aa5c66
#3524 Deactivate IP2Tor from SSH menus & docs (#3549)
* deactivate in subscription menu

* remove IP2Tor options from LNbits

* Add to CHANGES

* remopve from btcpayserver

* deactivate LNDREST & SPHINX

* remove from README
2022-12-19 17:18:17 +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
allyourbankarebelongtous
19cb9fdbc5
Update blitz.datadrive.sh (#3540)
* Update blitz.datadrive.sh

Updates script for amd64 and nvme drives

* Update home.admin/config.scripts/blitz.datadrive.sh

Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>

* Update blitz.datadrive.sh

Cleaned up code a bit per Openoms suggestion

Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
2022-12-18 19:15:23 +01:00
allyourbankarebelongtous
20c0da709b
Update 00settingsMenuServices.sh (#3538)
* Update 00settingsMenuServices.sh

* Update 00settingsMenuServices.sh
2022-12-18 18:35:59 +01:00
/rootzoll
f6fd368f17
fix debug clear output (#3543)
* higher timeout for API

* remove clear
2022-12-18 12:06:57 +01:00
/rootzoll
285485009a
add missing isntall (#3542) 2022-12-17 21:58:24 +01:00
/rootzoll
edf375860d
fix sdcard build (#3534) 2022-12-16 17:53:32 +01:00
/rootzoll
2610758faa
#3482 btcpayserver 1.7.2 (#3533) 2022-12-16 15:50:03 +01:00
/rootzoll
fe6737439a
improve API config (#3532)
* remove secret preset (not needed)

* add ip2d debug install info
2022-12-16 14:07:04 +01:00
/rootzoll
0ce4cca4ec
fix webapi (#3531) 2022-12-16 11:16:22 +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
f067250979
3460 Mempool install check fix (#3528)
* fix mempool working detection

* #3640 change test

* add version info for electrs
2022-12-15 23:45:46 +01:00
/rootzoll
5a08729644
add more info on incomplete blockchain (#3526) 2022-12-15 17:58:41 +01:00
/rootzoll
9d3e4faf3d
#2659 journalctl --vacuum-size once a day (#3525) 2022-12-15 16:05:31 +01:00
openoms
9ebf9c63a5
jam update to v0.1.4 (#3521) 2022-12-14 23:26:52 +01:00
/rootzoll
21eb83b3c2
#3520 redact lnbits info on debug (#3522)
* redact api-key usr wallet strings
2022-12-14 14:58:04 +01:00
/rootzoll
7ac2d214f6
#3429 app bonus scripts all give version information for WebUI (#3518)
* add version to template

* add version to RTL

* fix RTL verison

* add lnbits version

* add version to mempool

* add version to thunderhub

* add version to btc rpc explorer

* add version to BTCpayServer
2022-12-14 11:54:06 +01:00
/rootzoll
5a3b3f78d8
bonjour ports & gfree-sync-list off (#3517)
* #3144 open additional Bonjour NAT ports
* #3144 remove sync-freelist=true from def lnd.conf
* #3251 remove sync-freelist=1 by lnd.check.sh
2022-12-14 10:55:33 +01:00
ChuckNorrison
1c26120056
LNBits Backup and Restore database (#3412)
* LNBits Backup and Restore database

Add Backup and Restore methods and  menu entries

* LNBits backup target

based on blitz.backupdevice.sh switch backup target to /mnt/backup_manual per default

* Add postgresql script

Script to install or uninstall postgresql

Backup a single database with sql dump file

Restore a single database from sql dump file

* Unpack backup file only for SQLite

For postgresql just use the dedicated script

* Support multiple backup files

After backup file was written, keep only last 3 backups

Restore the recent backup found

* improve backup and restore with config and path

make use of raspiblitz config to retrieve db state for backup and restore

default manual backup path set to /mnt/hdd/app-data/backup

* add info command to postgresql script

retrieve database directory and database names

* update backup path for postgresql script

default path is /mnt/hdd/app-data/backup

this will survive reflash sd card

* improve user feedback

* add dialog for restore and improvements

dialog with confirm restore process

timestamps for backup file names

small improvements for user feedback

only resume if unpack backup succeed

* fix sqlite backup file name

* fix restore path and permissions

* add dialog to choose backup from a list

list all available backups to start restore in a dialog

* fix backup list for sqlite

* fix restore menu

* Update LNBits version with bigint fix for migration

if migrate to postgresql, use lnbits version with latest bigint fixes

* Update bonus.postgresql.sh

* fix postgres backup permissions
2022-12-14 10:40:15 +01:00
/rootzoll
7141cb1674
#2192 lnd xpubs display (#3515)
#2192 menu entry to show lnd xpubs
2022-12-13 18:14:47 +01:00
/rootzoll
fb9283a06c
Fatpack WebUI Apps (#3514) 2022-12-13 15:28:05 +01:00
/rootzoll
6c9bfaf1b7
Update Bitcoin to v24.0.1 (#3512) 2022-12-12 16:31:27 +01:00
/rootzoll
e3ffe5dc61
#3326 Reduce Logs & Misc (#3511)
* #3326 set loglevel of mempool to warn
* #3326 set mempool loglevel thru systemd service
* fix pint out of isSMART
* #3326 set LogLevel ins systemd
* #3268 fix helipad db owner
* check mempool install success
* fix mempool success detection
* add mempool db socks
* lnserver localhost to 127.0.0.1
2022-12-12 14:29:51 +01:00
/rootzoll
5184044faf
prevent hanging shutdows (#3510)
* prevent hanging shutdows

* also timeout stopping bitcoind
2022-12-12 01:05:17 +01:00
/rootzoll
59c2e4d8bf
#3473 Update to CLN 22.11.1 (#3508)
* #3473 update cln to 22.11.1
2022-12-11 17:20:53 +01:00
ChuckNorrison
1f0416bbbb
Add staticIP config and fix 127.0.0.1 (#3419)
* Add staticIP config and fix 127.0.0.1

Add possibility of a staticIP config in Raspiblitz.conf to override globalIP and publicIP detection.

Skip dyndns in case of static ip usage

if curl fails accidentaly it could result in the wrong IP. Only prefer if publicIP is empty.

* add FAQ entry

Co-authored-by: rootzoll <christian@geektank.de>
2022-12-10 14:53:29 +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
/rootzoll
9d23c63c38
#3313 & #3230 lndg final (#3506)
* Integrate LNDg to Raspiblitz (#3313)

* cl.hsmtool: fix password display

* add clearnet fallback for tor keys

* fix CLN wallet reset (#3296)

* cln: unify and improve the resetWallet function
previously the old config and channel database could have been left
behind when using SEEDRESTORE and FILERESTORE
* prompt to save the wallet password for backup

* change default branch to v1.8 (#3306)

* Adds install script for LNDg (https://github.com/cryptosharks131/lndg)

Install script creates user lndg and installs LNDg in /home/lndg/lndg,
uses systemd for the backend, and uses nginx and uwsgi for the gui.

Install script will check for tor and enable tor
if "run behind tor" is on.

Updates menu settings for easy access to the script settings

* Creates bonus.lndg.sh script for installing LNDg
Adds LNDg to list of apps in "SERVICES"
Adds LNDg to UPDATES when installed
Adds LNDg to menu when installed

Fixed typos/errors, tested and works!

* LNDg menu install. Added ssl, ssl over tor, and standardized nginx files. Tests Good.

* FAQ.cln: poncho, CLN cheatsheet, extract privkey

* #3286 fix loca IP

* fix #3312

* fix lnbits update options (#3307)

* Integrates LNDg to Raspiblitz
Fixes issues with python and python3 (see comments on PR).
Adds option to keep or delete database on both uninstall and install with existing database.

Fixes issues with python and python3 (see comments on PR).
Adds option to keep or delete database on both uninstall and install with existing database.

Update 00settingsMenuServices.sh

Update info menu for LNDg

Adds username and instructions on how to change username

* Update bonus.lndg.sh

* Install LNDg script
Forces yes on install question

* Update blitz.shutdown.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

Co-authored-by: openoms <oms@tuta.io>
Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
Co-authored-by: Dipun Mistry <dipunm@gmail.com>
Co-authored-by: rootzoll <christian@geektank.de>

* added documentation

* #3230 change password B

* #3230 fix to version 1.4.0

Co-authored-by: allyourbankarebelongtous <100060902+allyourbankarebelongtous@users.noreply.github.com>
Co-authored-by: openoms <oms@tuta.io>
Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
Co-authored-by: Dipun Mistry <dipunm@gmail.com>
2022-12-09 21:49:44 +01:00
ChuckNorrison
72eac9e9c3
bos-telegram as service (#3446)
* bos-telegram as service

Add OPTIONS menu for balance of satoshi to setup telegram.

Asks for the connect code and installs service file

* improve first time setup

need to start bos telegram manually once to enter HTTP API token from telegram bot creation

* Rework BoS telegram menu

Improve setup experience

invoke bos telegram command from menu and make service install optional

* add changes

Co-authored-by: rootzoll <christian@geektank.de>
2022-12-08 23:10:58 +01:00
ChuckNorrison
4fd3247386
New Feature LightningTipBot (#3445)
* Add new Service LightningTipBot

A tip bot and Bitcoin Lightning wallet on Telegram based on LNBits

https://github.com/LightningTipBot/LightningTipBot

* mention config file in menu

* Add version in CHANGES

Co-authored-by: /rootzoll <christian@geektank.de>
2022-12-08 21:33:27 +01:00
/rootzoll
e19b5911cf
Merge CL Watchtower #3394 (#3501)
* Bonus script to install CLN Watchtower client rust-teos ("The Eye of Satoshi") (#3404)

* TEoS watchtower bonus install script

* Add Menu items

* add READ & CHANGES info

* On Purge, delete source and plugin

* Add sys pkg_dependecies

* Cleanup before clone

* Add cl plugins to _provision.sh and Info menu

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

* adapt info

* Add Watchtower info to menu

Co-authored-by: steepdawn974 <92274076+steepdawn974@users.noreply.github.com>
2022-12-08 12:56:30 +01:00
rek79
9fe1c47048
Improve localIP assignment and SSD detection (#3439) 2022-12-08 12:20:00 +01:00
ChuckNorrison
74ee085400
show localip after install webui (#3496)
When turning the webUI off & on again
2022-12-08 00:58:12 +01:00
openoms
4323dbbc49
CLN update to v22.11, install and update fixes (#3487)
* cln readd mako, update and testPR checks

* cln update to v22.11

* always use cl.hsmtool.sh unlock

* add git reset --hard to not show as v22.11-modded

* update RECKLESS upgrade message, run unlock after

* one line RECKLESS upgrade message

* add to CHANGES

* cln 22.11 PGPsigner cdecker A26D6D9FE088ED58

Co-authored-by: rootzoll <johndoe@example.com>
Co-authored-by: rootzoll <christian@geektank.de>
2022-12-08 00:29:00 +01:00
openoms
41e75d9d8f
fix bitcoin aliases, whitespaces and comments (#3483)
* fix bitcoin aliases, whitespaces and comments

* fix typo
2022-12-07 20:39:28 +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
openoms
df74c87e2c
btcpay update to v1.7.1 (#3482)
btcpay update to v1.7.1
2022-12-06 18:55:31 +01:00
openoms
d715422e62
lnd update to v0.15.5-beta, litd update and LNC fix (#3490) 2022-12-06 17:46:22 +01:00
/rootzoll
0a697bb59a
#3427 sd card clean bloat (#3495) 2022-12-06 17:25:06 +01:00
/rootzoll
022d1eee4f
update bitcoin 24 (#3481) 2022-11-27 17:03:47 +01:00
openoms
dec77ac467
CLN 22.11 update (#3474)
* update cln backup plugin
* use database-upgrade=true if needed
2022-11-27 15:51:57 +00:00
/rootzoll
850173043a
allow code update from different branch (#3480) 2022-11-27 15:01:26 +01:00
/rootzoll
0302b7ce1c
#3376 update circuitbreaker v0.3.2 (#3479) 2022-11-26 23:19:20 +01:00