Compare commits

...

5 Commits

Author SHA1 Message Date
tteckster 15f1343a00
Update openwrt.sh
tweak
2023-11-01 03:40:43 -04:00
tteckster a94bcac429
Update CHANGELOG.md 2023-11-01 02:58:33 -04:00
tteckster 732b663147
Update owncast-install.sh
tweak
2023-11-01 02:29:46 -04:00
tteckster 7186cfc2a8
Create owncast.sh 2023-11-01 02:25:03 -04:00
tteckster cf8704529c
Create owncast-install.sh 2023-11-01 02:23:38 -04:00
4 changed files with 132 additions and 1 deletions

View File

@ -5,6 +5,13 @@
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
## 2023-11-1
### Changed
- **Owncast LXC**
- NEW Script
## 2023-10-31
### Changed

70
ct/owncast.sh Normal file
View File

@ -0,0 +1,70 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2023 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
function header_info {
clear
cat <<"EOF"
____ __
/ __ \_ ______ _________ ______/ /_
/ / / / | /| / / __ \/ ___/ __ `/ ___/ __/
/ /_/ /| |/ |/ / / / / /__/ /_/ (__ ) /_
\____/ |__/|__/_/ /_/\___/\__,_/____/\__/
EOF
}
header_info
echo -e "Loading..."
APP="Owncast"
var_disk="2"
var_cpu="2"
var_ram="2048"
var_os="debian"
var_version="12"
variables
color
catch_errors
function default_settings() {
CT_TYPE="1"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"
CORE_COUNT="$var_cpu"
RAM_SIZE="$var_ram"
BRG="vmbr0"
NET="dhcp"
GATE=""
DISABLEIP6="no"
MTU=""
SD=""
NS=""
MAC=""
VLAN=""
SSH="no"
VERB="no"
echo_default
}
function update_script() {
header_info
if [[ ! -d /opt/owncast ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating $APP LXC"
apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null
msg_ok "Updated $APP LXC"
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${APP} should be reachable by going to the following URL.
${BL}http://${IP}:8080${CL}
${BL}http://${IP}:8080/admin${CL} admin|abc123\n"

View File

@ -0,0 +1,54 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2023 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y ffmpeg
msg_ok "Installed Dependencies"
msg_info "Installing Owncast"
mkdir /opt/owncast
cd /opt/owncast
wget -q $(curl -s https://api.github.com/repos/owncast/owncast/releases/latest | grep download | grep linux-64bit | cut -d\" -f4)
$STD unzip owncast*.zip
rm owncast*.zip
msg_ok "Installed Owncast"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/owncast.service
[Unit]
Description=Owncast
After=syslog.target network-online.target
[Service]
ExecStart=/opt/owncast/./owncast
WorkingDirectory=/opt/owncast
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now owncast.service
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get autoremove
$STD apt-get autoclean
msg_ok "Cleaned"

View File

@ -478,7 +478,7 @@ qm set $VMID \
-description "# OpenWrt VM
### https://github.com/tteck/Proxmox
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D7EP4GF)" >/dev/null
msg_ok "OpenWrt VM ${CL}${BL}(${HN})"
msg_ok "Created OpenWrt VM ${CL}${BL}(${HN})"
msg_info "OpenWrt is being started in order to configure the network interfaces."
qm start $VMID
sleep 15