mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 08:29:16 +00:00
Add local GUI and bug fixes
This commit is contained in:
parent
9609b51b34
commit
9e82b7819a
4
rootfs/standard/etc/apt/apt.conf.d/local
Normal file
4
rootfs/standard/etc/apt/apt.conf.d/local
Normal file
|
@ -0,0 +1,4 @@
|
|||
Dpkg::Options {
|
||||
"--force-confdef";
|
||||
"--force-confold";
|
||||
}
|
3
rootfs/standard/etc/docker/daemon.json
Normal file
3
rootfs/standard/etc/docker/daemon.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"graph": "/mnt/hdd/mynode/docker"
|
||||
}
|
9
rootfs/standard/home/admin/.config/openbox/autostart
Normal file
9
rootfs/standard/home/admin/.config/openbox/autostart
Normal file
|
@ -0,0 +1,9 @@
|
|||
chromium \
|
||||
--no-first-run \
|
||||
--disable \
|
||||
--disable-translate \
|
||||
--disable-infobars \
|
||||
--disable-suggestions-service \
|
||||
--disable-save-password-bubble \
|
||||
--start-maximized \
|
||||
"http://localhost/" &
|
|
@ -11,7 +11,7 @@ Type=notify
|
|||
# the default is not to use systemd for cgroups because the delegate issues still
|
||||
# exists and systemd currently does not support the cgroup feature set required
|
||||
# for containers run by docker
|
||||
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -g /mnt/hdd/mynode/docker
|
||||
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
TimeoutSec=0
|
||||
RestartSec=2
|
||||
|
|
|
@ -11,7 +11,7 @@ echo "$HASH" > /home/bitcoin/.mynode/.hashedpw
|
|||
|
||||
# Change RTL password
|
||||
sed -i "s/rtlPassHashed=.*/rtlPassHashed=$HASH/g" /opt/mynode/RTL/RTL.conf
|
||||
systemctl restart rtl
|
||||
systemctl restart rtl &
|
||||
|
||||
# Change LND Admin Password
|
||||
#cp -f /usr/share/mynode/lnd_admin_credentials.json /home/bitcoin/.lnd-admin/credentials.json
|
||||
|
|
|
@ -14,20 +14,28 @@ systemctl stop lnd
|
|||
systemctl stop quicksync
|
||||
systemctl stop bitcoind
|
||||
|
||||
# Check for updates (might auto-install all updates later)
|
||||
apt-get update
|
||||
|
||||
|
||||
# Install any new software
|
||||
apt -y install pv sysstat network-manager unzip pkg-config libfreetype6-dev libpng-dev
|
||||
apt -y install libatlas-base-dev libffi-dev libssl-dev glances python3-bottle
|
||||
apt -y -qq install apt-transport-https ca-certificates
|
||||
apt -y install libgmp-dev automake libtool libltdl-dev libltdl7
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get -y install fonts-dejavu
|
||||
apt-get -y install pv sysstat network-manager unzip pkg-config libfreetype6-dev libpng-dev
|
||||
apt-get -y install libatlas-base-dev libffi-dev libssl-dev glances python3-bottle
|
||||
apt-get -y -qq install apt-transport-https ca-certificates
|
||||
apt-get -y install libgmp-dev automake libtool libltdl-dev libltdl7
|
||||
apt-get -y install xorg chromium openbox lightdm
|
||||
|
||||
|
||||
# Install any pip software
|
||||
pip install tzupdate virtualenv
|
||||
pip install tzupdate virtualenv --no-cache-dir
|
||||
|
||||
|
||||
# Install any pip3 software
|
||||
pip3 install python-bitcointx
|
||||
pip3 install lndmanage==0.8.0 # Install LND Manage (keep up to date with LND)
|
||||
pip3 install docker-compose
|
||||
pip3 install python-bitcointx --no-cache-dir
|
||||
pip3 install lndmanage==0.8.0 --no-cache-dir # Install LND Manage (keep up to date with LND)
|
||||
pip3 install docker-compose --no-cache-dir
|
||||
|
||||
|
||||
# Import Keys
|
||||
|
@ -37,10 +45,13 @@ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 01EA5486DE18A882D4C268459
|
|||
|
||||
|
||||
# Install docker
|
||||
#if [ ! -f /usr/bin/docker ]; then
|
||||
# curl -sSL https://get.docker.com | sh
|
||||
#fi
|
||||
curl -sSL https://get.docker.com | sed 's/sleep 20/sleep 1/' | sudo sh
|
||||
if [ ! -f /usr/bin/docker ]; then
|
||||
rm -f /tmp/docker_install.sh
|
||||
wget https://get.docker.com -O /tmp/docker_install.sh
|
||||
sed -i 's/sleep 20/sleep 1/' /tmp/docker_install.sh
|
||||
/bin/bash /tmp/docker_install.sh
|
||||
fi
|
||||
|
||||
groupadd docker || true
|
||||
usermod -aG docker admin
|
||||
usermod -aG docker bitcoin
|
||||
|
@ -231,7 +242,7 @@ fi
|
|||
WEBSSH2_UPGRADE_URL=https://github.com/billchurch/webssh2/archive/v0.2.10-0.tar.gz
|
||||
WEBSSH2_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.webssh2_url
|
||||
CURRENT=""
|
||||
if [ -f WEBSSH2_UPGRADE_URL_FILE ]; then
|
||||
if [ -f $WEBSSH2_UPGRADE_URL_FILE ]; then
|
||||
CURRENT=$(cat $WEBSSH2_UPGRADE_URL_FILE)
|
||||
fi
|
||||
if [ "$CURRENT" != "$WEBSSH2_UPGRADE_URL" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user