Compare commits

...

6 Commits

Author SHA1 Message Date
3f08b3ed06 KDE file templates: rename goal + new templates 2022-09-29 13:29:54 +08:00
fc7ff9613a papirus fixes 2022-09-29 13:22:04 +08:00
41180043ae droidcam-obs fixes & misc 2022-09-29 13:21:35 +08:00
a68074cb01 Postman misc 2022-09-29 13:21:18 +08:00
91be1a194b git fixes 2022-09-29 13:20:30 +08:00
322239ec1f docker misc 2022-09-29 13:20:14 +08:00
7 changed files with 60 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
# Autogenerated at 28.09.2022 22:15 using ./gen-makefile # Autogenerated at 29.09.2022 12:27 using ./gen-makefile
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
#=============================================== #===============================================
@@ -55,10 +55,6 @@ droidcam:
droidcam-obs: droidcam-obs:
@./install/droidcam-obs @./install/droidcam-obs
# Install file templates (KDE)
file-templates-kde:
@./install/file-templates-kde
# [TODO] Build flameshot from src (latest) # [TODO] Build flameshot from src (latest)
flameshot-build: flameshot-build:
@./install/flameshot-build @./install/flameshot-build
@@ -83,6 +79,10 @@ kde-appmenu:
kde-backports: kde-backports:
@./install/kde-backports @./install/kde-backports
# Install file templates (KDE)
kde-file-templates:
@./install/kde-file-templates
# Install libreoffice # Install libreoffice
libreoffice: libreoffice:
@./install/libreoffice @./install/libreoffice

View File

@@ -9,7 +9,7 @@ echo
# https://docs.docker.com/engine/install/ubuntu/ # https://docs.docker.com/engine/install/ubuntu/
sudo apt-get install \ sudo apt install \
ca-certificates \ ca-certificates \
curl \ curl \
gnupg \ gnupg \
@@ -17,9 +17,8 @@ sudo apt-get install \
sudo mkdir -p /etc/apt/keyrings sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo chmod a+r /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo apt update sudo apt update

View File

@@ -4,6 +4,7 @@
# https://www.dev47apps.com/droidcam/linux/ # https://www.dev47apps.com/droidcam/linux/
# https://www.dev47apps.com/obs/ # https://www.dev47apps.com/obs/
# https://www.dev47apps.com/obs/usage.html # https://www.dev47apps.com/obs/usage.html
# https://obsproject.com/forum/threads/how-to-start-virtual-camera-without-sudo-privileges.139783/
echo echo
echo "===============================================" echo "==============================================="
@@ -13,7 +14,7 @@ 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!'
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
@@ -21,6 +22,8 @@ cd ~/install/droidcam-obs && ./install.sh
echo echo
echo "Don't forget to:" echo "Don't forget to:"
echo "1) restart OBS if it is running right now" 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 "\tsudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera""
echo echo

View File

@@ -15,11 +15,11 @@ installed() {
if installed git; then if installed git; then
if [ -d "${HOME}/install/git" ]; then if [ -d "${HOME}/install/git" ]; then
cd /usr/src/git/ && \ cd "${HOME}/install/git" && \
git pull git pull
else else
git clone https://github.com/git/git.git --depth=1 "${HOME}/install/git" && \ git clone https://github.com/git/git.git --depth=1 "${HOME}/install/git" && \
cd /usr/src/git/ cd "${HOME}/install/git"
fi fi
sudo make prefix=/usr/local all && \ sudo make prefix=/usr/local all && \
sudo make prefix=/usr/local install sudo make prefix=/usr/local install

View File

@@ -77,6 +77,40 @@ Type=Link
URL=.source/template.go URL=.source/template.go
EOF EOF
echo "- Dockerfile" ####################################################
cat <<EOF > "$TPL_SRC/Dockerfile"
# https://habr.com/ru/company/ruvds/blog/439980/
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
FROM ubuntu:latest
EOF
cat << EOF > "$TPL_DIR/dockerfile.desktop"
[Desktop Entry]
Name=Dockerfile
Type=Link
URL=.source/Dockerfile.go
EOF
echo "- docker-compose" ####################################################
cat <<EOF > "$TPL_SRC/docker-compose.yml"
# https://docs.docker.com/compose/gettingstarted/
# https://docs.docker.com/compose/compose-file/compose-file-v3/
version: "3.9"
services:
EOF
cat << EOF > "$TPL_DIR/docker-compose.desktop"
[Desktop Entry]
Name=docker-compose
Type=Link
URL=.source/docker-compose.yml
EOF
echo echo
echo "Finish! You can find them here:" echo "Finish! You can find them here:"
echo -e "\t$TPL_DIR" echo -e "\t$TPL_DIR"

View File

@@ -12,18 +12,19 @@ installed() {
} }
if installed git; then if installed git; then
mkdir ${HOME}/install/ mkdir -p "${HOME}/install/"
git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git --depth=1 ${HOME}/install/papirus-icon-theme git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git --depth=1 "${HOME}/install/papirus-icon-theme"
else else
! installed wget && sudo apt install -y wget ! installed wget && sudo apt install -y wget
mkdir ${HOME}/install/papirus-icon-theme mkdir -p "${HOME}/install/papirus-icon-theme"
wget https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/archive/refs/heads/master.zip -O ${HOME}/install/papirus-icon-theme.zip wget https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/archive/refs/heads/master.zip -O "${HOME}/install/papirus-icon-theme.zip"
unzip ${HOME}/install/papirus-icon-theme.zip -d ${HOME}/install/papirus-icon-theme unzip "${HOME}/install/papirus-icon-theme.zip" -d "${HOME}/install/papirus-icon-theme"
fi fi
ln -s ${HOME}/install/papirus-icon-theme/Papirus ${HOME}/.local/share/icons/Papirus mkdir -p "${HOME}/.local/share/icons/"
ln -s ${HOME}/install/papirus-icon-theme/Papirus-Dark ${HOME}/.local/share/icons/Papirus-Dark ln -s "${HOME}/install/papirus-icon-theme/Papirus" "${HOME}/.local/share/icons/Papirus"
ln -s ${HOME}/install/papirus-icon-theme/Papirus-Light ${HOME}/.local/share/icons/Papirus-Light ln -s "${HOME}/install/papirus-icon-theme/Papirus-Dark" "${HOME}/.local/share/icons/Papirus-Dark"
ln -s "${HOME}/install/papirus-icon-theme/Papirus-Light" "${HOME}/.local/share/icons/Papirus-Light"
echo echo
echo "Finish! Don't forget to change current icon theme." echo "Finish! Don't forget to change current icon theme."

View File

@@ -12,7 +12,8 @@ mkdir -p ${HOME}/.local/bin
wget "https://dl.pstmn.io/download/latest/linux64" -O ${HOME}/install/postman.tar.gz && \ wget "https://dl.pstmn.io/download/latest/linux64" -O ${HOME}/install/postman.tar.gz && \
tar -xzf ${HOME}/install/postman.tar.gz -C ${HOME}/install/postman && \ tar -xzf ${HOME}/install/postman.tar.gz -C ${HOME}/install/postman && \
ln -s ${HOME}/install/postman/Postman/Postman ${HOME}/.local/bin/postman && \ ln -s ${HOME}/install/postman/Postman/Postman ${HOME}/.local/bin/postman && \
cat << EOF > ${HOME}/.local/share/applications/Postman.desktop mkdir -p "${HOME}/.local/share/applications" && \
cat << EOF > "${HOME}/.local/share/applications/Postman.desktop"
#!/usr/bin/env xdg-open #!/usr/bin/env xdg-open
[Desktop Entry] [Desktop Entry]