Changeset - 4847a0efa093
[Not reviewed]
0 1 0
x - 1 month ago 2025-09-12 14:06:21
xbr@c3l.lu
fix: missing newline for log in _root.sh
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
build_script/freifunk_root.sh
Show inline comments
 
#!/usr/bin/env bash
 
set +xe
 

	
 
username=user
 
ssh_login_key="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOLFCOqpPOTZEQiWcY9TyVQnMoc5bCYlxLaRKhiB/uxo xbr 2024-06-16"
 
projects_c3l_pubkey="|1|X2M4bHKf8E+plhJ6KoDZzCfw5LI=|EpHLDWOmOq4SLelYTGd8SH+7hvU= ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIXfRmGmfbxPoErs5lpTnz+PZRQdh0QvPGTiswxFkXOx"
 

	
 
log() {
 
    printf "[-] %s" "$@"
 
    printf "[-] %s\n" "$@"
 
}
 

	
 
install_packages() {
 
    log "Installing packages..."
 

	
 
    apt update
 
    # Installing QoL packages (1) then gluon deps (2)
 
    # ! Debian 13-specific !
 
    apt install -y htop tmux vim sudo mosh \
 
                git python3 python-is-python3 python3-setuptools build-essential ecdsautils gawk unzip libncurses5-dev zlib1g-dev libssl-dev libelf-dev wget rsync time qemu-utils
 
}
 

	
 
create_user() {
 
    log "Creating user..."
 

	
 
    # user: forcing bash, and needs (passwordless) sudo
 
    useradd -ms /bin/bash -G sudo $username
 
    # enabling passwordless sudo
 
    sed -i /etc/sudoers -re 's/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g'
 
}
 

	
 
ssh_setup() {
 
    log "Setting up SSH..."
 

	
0 comments (0 inline, 0 general)