Compare commits

...

2 Commits

Author SHA1 Message Date
40d214e99b
Merge branch 'master' of git.axenov.dev:anthony/my-env 2022-09-30 14:06:23 +08:00
e4e64a8ab1
obs pack and fixes 2022-09-30 14:06:16 +08:00
4 changed files with 25 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# Autogenerated at 29.09.2022 12:27 using ./gen-makefile # Autogenerated at 30.09.2022 14:05 using ./gen-makefile
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
#=============================================== #===============================================
@ -14,6 +14,9 @@ flameshot: qt5 flameshot-build
# [PACK] Apache + php + mariadb # [PACK] Apache + php + mariadb
lamp: apache php mariadb lamp: apache php mariadb
# [PACK] OBS Studio + droidcam-obs
obs: obs-studio droidcam-obs
# [PACK] zsh + omz + powerline10k + MesloLGS font # [PACK] zsh + omz + powerline10k + MesloLGS font
omz: zsh omz-clean omz-fancy omz: zsh omz-clean omz-fancy
chsh -s /usr/bin/zsh chsh -s /usr/bin/zsh
@ -103,6 +106,10 @@ nodejs:
ntfy: ntfy:
@./install/ntfy @./install/ntfy
# Install obs-studio (latest snap)
obs-studio:
@./install/obs-studio
# Install omz (latest) # Install omz (latest)
omz-clean: omz-clean:
@./install/omz-clean @./install/omz-clean

View File

@ -12,18 +12,20 @@ echo "Installing droidcam-obs..."
echo "===============================================" echo "==============================================="
echo echo
command -v "obs" >/dev/null 2>&1 || echo 'You need to install obs first!' # command -v "obs" >/dev/null 2>&1 || echo 'You need to install obs first!'
command -v "obs-studio" >/dev/null 2>&1 || echo 'You need to install obs-studio first!'
mkdir -p ~/install/droidcam-obs mkdir -p ~/install/droidcam-obs
wget -O /tmp/droidcam-obs.zip https://files.dev47apps.net/obs/droidcam_obs_1.5.1_linux.zip wget -O /tmp/droidcam-obs.zip https://files.dev47apps.net/obs/droidcam_obs_1.5.1_linux.zip
unzip -o /tmp/droidcam-obs.zip -d ~/install/droidcam-obs unzip -o /tmp/droidcam-obs.zip -d ~/install/droidcam-obs
rm -rf /tmp/droidcam-obs.zip rm -rf /tmp/droidcam-obs.zip
cd ~/install/droidcam-obs && ./install.sh cd ~/install/droidcam-obs && ./install.sh
sudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera"
echo echo
echo "Don't forget to:" echo "Don't forget to:"
echo "1) restart OBS if it is running right now OR install (if not) and start it" echo "1) restart OBS if it is running right now OR install (if not) and start it"
echo "2) install android app: https://play.google.com/store/apps/developer?id=Dev47Apps" echo "2) install android app: https://play.google.com/store/apps/developer?id=Dev47Apps"
echo "3) If virtual camera not starting then execute:" echo "3) if virtual camera not starting then execute:"
echo "\tsudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera"" echo -e "\tsudo modprobe v4l2loopback video_nr=2 card_label=\"OBS Virtual Camera\""
echo echo

10
install/obs-studio Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
##makedesc: Install obs-studio (latest snap)
echo
echo "==============================================="
echo "Installing obs-studio (latest snap)..."
echo "==============================================="
echo
sudo snap install obs-studio

2
packs/obs Normal file
View File

@ -0,0 +1,2 @@
# [PACK] OBS Studio + droidcam-obs
obs: obs-studio droidcam-obs