FreeBSD
FreeBSD'de kurulum için terminalde aşağıdaki komutları çalıştırın:
Kurulum
FFmpeg'i kurun:
sudo pkg update
sudo pkg install ffmpeg
Yucca'yı kurun:
- Yucca Free
- Yucca Plus / Enterprise
- AMD64
- ARM64
- ARM
sudo mkdir -p /opt/yucca/ffmpeg
cd /opt/yucca
YUCCA_VER=$(fetch -qo - https://releases.yucca.app/latest/VERSION.txt)
sudo fetch https://releases.yucca.app/latest/yucca_freebsd_amd64.tar.gz
sudo fetch https://releases.yucca.app/latest/yucca_${YUCCA_VER}_checksums.txt
sha256 -c yucca_${YUCCA_VER}_checksums.txt --ignore-missing
sudo tar -xzvf yucca_freebsd_amd64.tar.gz
sudo rm -f yucca_freebsd_amd64.tar.gz yucca_${YUCCA_VER}_checksums.txt
sudo mkdir -p /opt/yucca/ffmpeg
cd /opt/yucca
YUCCA_VER=$(fetch -qo - https://releases.yucca.app/latest/VERSION.txt)
sudo fetch https://releases.yucca.app/latest/yucca_freebsd_arm64.tar.gz
sudo fetch https://releases.yucca.app/latest/yucca_${YUCCA_VER}_checksums.txt
sha256 -c yucca_${YUCCA_VER}_checksums.txt --ignore-missing
sudo tar -xzvf yucca_freebsd_arm64.tar.gz
sudo rm -f yucca_freebsd_arm64.tar.gz yucca_${YUCCA_VER}_checksums.txt
sudo mkdir -p /opt/yucca/ffmpeg
cd /opt/yucca
YUCCA_VER=$(fetch -qo - https://releases.yucca.app/latest/VERSION.txt)
sudo fetch https://releases.yucca.app/latest/yucca_freebsd_arm.tar.gz
sudo fetch https://releases.yucca.app/latest/yucca_${YUCCA_VER}_checksums.txt
sha256 -c yucca_${YUCCA_VER}_checksums.txt --ignore-missing
sudo tar -xzvf yucca_freebsd_arm.tar.gz
sudo rm -f yucca_freebsd_arm.tar.gz yucca_${YUCCA_VER}_checksums.txt
- AMD64
- ARM64
- ARM
sudo mkdir -p /opt/yucca/ffmpeg
cd /opt/yucca
YUCCA_VER=$(fetch -qo - https://releases.yucca.app/latest/VERSION.txt)
sudo fetch https://releases.yucca.app/latest/yucca-ent_freebsd_amd64.tar.gz
sudo fetch https://releases.yucca.app/latest/yucca_${YUCCA_VER}_checksums.txt
sha256 -c yucca_${YUCCA_VER}_checksums.txt --ignore-missing
sudo tar -xzvf yucca-ent_freebsd_amd64.tar.gz
sudo rm -f yucca-ent_freebsd_amd64.tar.gz yucca_${YUCCA_VER}_checksums.txt
sudo mkdir -p /opt/yucca/ffmpeg
cd /opt/yucca
YUCCA_VER=$(fetch -qo - https://releases.yucca.app/latest/VERSION.txt)
sudo fetch https://releases.yucca.app/latest/yucca-ent_freebsd_arm64.tar.gz
sudo fetch https://releases.yucca.app/latest/yucca_${YUCCA_VER}_checksums.txt
sha256 -c yucca_${YUCCA_VER}_checksums.txt --ignore-missing
sudo tar -xzvf yucca-ent_freebsd_arm64.tar.gz
sudo rm -f yucca-ent_freebsd_arm64.tar.gz yucca_${YUCCA_VER}_checksums.txt
sudo mkdir -p /opt/yucca/ffmpeg
cd /opt/yucca
YUCCA_VER=$(fetch -qo - https://releases.yucca.app/latest/VERSION.txt)
sudo fetch https://releases.yucca.app/latest/yucca-ent_freebsd_arm.tar.gz
sudo fetch https://releases.yucca.app/latest/yucca_${YUCCA_VER}_checksums.txt
sha256 -c yucca_${YUCCA_VER}_checksums.txt --ignore-missing
sudo tar -xzvf yucca-ent_freebsd_arm.tar.gz
sudo rm -f yucca-ent_freebsd_arm.tar.gz yucca_${YUCCA_VER}_checksums.txt
Varsayılan değerlerle bir yapılandırma dosyası oluşturun:
sudo /opt/yucca/yucca server --config emtpy --show-config | sed 's|data_dir = ""|data_dir = "/opt/yucca/data"|' > /opt/yucca/yucca.toml
Bir kullanıcı oluşturun ve sahiplik/erişim izinlerini ayarlayın:
sudo pw groupadd yucca -g 642
sudo pw useradd yucca -u 642 -g yucca -s /sbin/nologin -d /opt/yucca -c "Yucca Service User"
sudo chown -R yucca:yucca /opt/yucca
sudo chmod -R 2775 /opt/yucca
Otomatik başlatma
/usr/local/etc/rc.d/dizininde uzantısızyuccaadlı bir dosya oluşturun.- Başlatma betiğinin kodunu bu dosyaya kopyalayın.
#!/bin/sh
# PROVIDE: yucca
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="yucca"
rcvar="yucca_enable"
load_rc_config $name
: ${yucca_enable:=no}
: ${yucca_pidfile="/var/run/yucca.pid"}
: ${yucca_user="yucca"}
: ${yucca_group="yucca"}
: ${yucca_logfile="/var/log/yucca.log"}
: ${yucca_command="/opt/yucca/yucca server --config /opt/yucca/yucca.toml"}
command="/opt/yucca/yucca"
command_args="server --config /opt/yucca/yucca.toml"
pidfile="/var/run/yucca.pid"
logfile="/var/log/yucca.log"
start_cmd="${name}_start"
stop_cmd="${name}_stop"
status_cmd="${name}_status"
yucca_start() {
echo "Starting $name."
if [ ! -f $pidfile ]; then
su $yucca_user -c "$yucca_command >> $yucca_logfile 2>&1 & echo \$! > $yucca_pidfile"
echo "$name started."
else
echo "$name is already running."
fi
}
yucca_stop() {
echo "Stopping $name."
if [ -f $pidfile ]; then
kill -TERM `cat $pidfile`
rm -f $pidfile
echo "$name stopped."
else
echo "$name is not running."
fi
}
yucca_status() {
if [ -f $pidfile ]; then
echo "$name is running."
else
echo "$name is not running."
fi
}
run_rc_command "$1"
chmod +x /usr/local/etc/rc.d/yuccakomutunu kullanarak betiğin çalıştırma izinlerine sahip oldu ğundan emin olun.- Loglar ve PID dosyası için gerekli dizinleri ve dosyaları oluşturun. Örneğin:
mkdir -p /var/log
touch /var/log/yucca.log
chown yucca:yucca /var/log/yucca.log
touch /var/run/yucca.pid
chown yucca:yucca /var/run/yucca.pid
Sistem açılışında yucca servisinin başlatılması gerektiğini belirtmek için /etc/rc.conf dosyasına yucca_enable="YES" ekleyin.
Artık servisi aşağıdaki komutlarla yönetebilirsiniz:
service yucca start- Servisi başlatır.service yucca stop- Servisi durdurur.service yucca restart- Servisi yeniden başlatır.service yucca status- Servis durumunu kontrol eder.
Çalışma kontrolü
Kurulum ve başlatmadan sonra web arayüzü http://sunucunuzun-ip-adresi:9910 adresinde erişilebilir olacaktır. Kurulumdan sonra arayüz erişilebilir değilse, servisin durumunu kontrol edin ve sunucu loglarına bakın.
Güncelleme
Güncel arşivi indirin (yukarıdaki «Kurulum» bölümüne bakın), /opt/yucca dizininin üzerine açın ve servisi yeniden başlatın:
sudo service yucca restart
Kaldırma
sudo service yucca stop
sudo rm -rf /opt/yucca /usr/local/etc/rc.d/yucca
sudo pw userdel yucca
sudo pw groupdel yucca