Compare commits

..

2 Commits

Author SHA1 Message Date
marc
4518cccec1 Changes in greeter 2024-12-24 17:57:58 +01:00
marc
8da975b098 Fix install docs and deploy keys script 2024-12-24 17:57:40 +01:00
3 changed files with 62 additions and 9 deletions

View File

@@ -105,7 +105,7 @@ cp ~/.ssh/id_<hostname> /mnt/home/marc/.ssh/id_<hostname>
* Initialization
Steps after reboot
** Set up the user
You'll set the root password during the installation. You can then reboot and use the installed OS. First thing you'll have to do is log in as root and set the password for your user:
You'll set the root password during the installation. You can then reboot and use the installed OS. First thing you'll have to do is log in as root (via vultr dashboard) and set the password for your user:
#+BEGIN_SRC bash
passwd marc
#+END_SRC

View File

@@ -36,13 +36,53 @@ in {
background-size: cover;
background-position: center;
font-family: Iosevka;
}
label#clock {
font-size: 25px;
color: #${config.colorScheme.palette.base00};
}
entry {
color: #${config.colorScheme.palette.base05};
padding: 0px 15px;
background-color: #${config.colorScheme.palette.base00};
border-color: #${config.colorScheme.palette.base02};
border-radius: 20px;
}
button.combo {
box-shadow: none;
margin-left: 5px;
border-radius: 20px;
border-color: #${config.colorScheme.palette.base02};
background-image: image(#${config.colorScheme.palette.base00});
color: #${config.colorScheme.palette.base05};
}
menu {
color: #${config.colorScheme.palette.base05};
background-color: #${config.colorScheme.palette.base00};
}
menuitem {
border-radius: 20px;
background-color: #${config.colorScheme.palette.base00};
}
menuitem:hover {
background-color: #${config.colorScheme.palette.base0C};
}
.suggested-action {
border-radius: 20px;
border-color: #${config.colorScheme.palette.base02};
color: #${config.colorScheme.palette.base05};
background-image: image(#${config.colorScheme.palette.base00});
}
box#body {
background-color: #${config.colorScheme.palette.base06};
opacity: 0.75;
border-radius: 10px;
padding: 50px;
}
'';

View File

@@ -11,7 +11,15 @@ fi
read -p "Username: " USERNAME
PRIVATE_KEY="id_$HOSTNAME"
ENCRYPTED_PRIVATE_KEY="$PRIVATE_KEY.gpg"
PUBLIC_KEY="id_$HOSTNAME.pub"
DECRYPTED=f
if [ ! -f $PRIVATE_KEY ]; then
DECRYPTED=t
echo "Decrypting private key ..."
gpg -d $ENCRYPTED_PRIVATE_KEY > $PRIVATE_KEY
fi
echo "Deploying private key ($PRIVATE_KEY) to ($USERNAME@$HOSTIP) ..."
scp $PRIVATE_KEY $USERNAME@$HOSTIP:.ssh/$PRIVATE_KEY
@@ -19,4 +27,9 @@ scp $PRIVATE_KEY $USERNAME@$HOSTIP:.ssh/$PRIVATE_KEY
echo "Deploying public key ($PUBLIC_KEY) to ($USERNAME@$HOSTIP) ..."
scp $PUBLIC_KEY $USERNAME@$HOSTIP:.ssh/$PUBLIC_KEY
if [ "$DECRYPTED" = 't' ]; then
echo "Deleting decrypted private key ..."
rm $PRIVATE_KEY
fi
echo "Done"