Compare commits
6 Commits
7ddcc73454
...
3f08b3ed06
| Author | SHA1 | Date | |
|---|---|---|---|
|
3f08b3ed06
|
|||
|
fc7ff9613a
|
|||
|
41180043ae
|
|||
|
a68074cb01
|
|||
|
91be1a194b
|
|||
|
322239ec1f
|
10
Makefile
10
Makefile
@@ -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
|
||||
|
||||
#===============================================
|
||||
@@ -55,10 +55,6 @@ droidcam:
|
||||
droidcam-obs:
|
||||
@./install/droidcam-obs
|
||||
|
||||
# Install file templates (KDE)
|
||||
file-templates-kde:
|
||||
@./install/file-templates-kde
|
||||
|
||||
# [TODO] Build flameshot from src (latest)
|
||||
flameshot-build:
|
||||
@./install/flameshot-build
|
||||
@@ -83,6 +79,10 @@ kde-appmenu:
|
||||
kde-backports:
|
||||
@./install/kde-backports
|
||||
|
||||
# Install file templates (KDE)
|
||||
kde-file-templates:
|
||||
@./install/kde-file-templates
|
||||
|
||||
# Install libreoffice
|
||||
libreoffice:
|
||||
@./install/libreoffice
|
||||
|
||||
@@ -9,7 +9,7 @@ echo
|
||||
|
||||
# https://docs.docker.com/engine/install/ubuntu/
|
||||
|
||||
sudo apt-get install \
|
||||
sudo apt install \
|
||||
ca-certificates \
|
||||
curl \
|
||||
gnupg \
|
||||
@@ -17,9 +17,8 @@ sudo apt-get install \
|
||||
|
||||
sudo mkdir -p /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
||||
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(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 apt update
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
# https://www.dev47apps.com/droidcam/linux/
|
||||
# https://www.dev47apps.com/obs/
|
||||
# https://www.dev47apps.com/obs/usage.html
|
||||
# https://obsproject.com/forum/threads/how-to-start-virtual-camera-without-sudo-privileges.139783/
|
||||
|
||||
echo
|
||||
echo "==============================================="
|
||||
@@ -13,7 +14,7 @@ echo
|
||||
|
||||
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
|
||||
unzip -o /tmp/droidcam-obs.zip -d ~/install/droidcam-obs
|
||||
rm -rf /tmp/droidcam-obs.zip
|
||||
@@ -21,6 +22,8 @@ cd ~/install/droidcam-obs && ./install.sh
|
||||
|
||||
echo
|
||||
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 "3) If virtual camera not starting then execute:"
|
||||
echo "\tsudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera""
|
||||
echo
|
||||
|
||||
@@ -15,11 +15,11 @@ installed() {
|
||||
|
||||
if installed git; then
|
||||
if [ -d "${HOME}/install/git" ]; then
|
||||
cd /usr/src/git/ && \
|
||||
cd "${HOME}/install/git" && \
|
||||
git pull
|
||||
else
|
||||
git clone https://github.com/git/git.git --depth=1 "${HOME}/install/git" && \
|
||||
cd /usr/src/git/
|
||||
cd "${HOME}/install/git"
|
||||
fi
|
||||
sudo make prefix=/usr/local all && \
|
||||
sudo make prefix=/usr/local install
|
||||
|
||||
@@ -77,6 +77,40 @@ Type=Link
|
||||
URL=.source/template.go
|
||||
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 "Finish! You can find them here:"
|
||||
echo -e "\t$TPL_DIR"
|
||||
@@ -12,18 +12,19 @@ installed() {
|
||||
}
|
||||
|
||||
if installed git; then
|
||||
mkdir ${HOME}/install/
|
||||
git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git --depth=1 ${HOME}/install/papirus-icon-theme
|
||||
mkdir -p "${HOME}/install/"
|
||||
git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git --depth=1 "${HOME}/install/papirus-icon-theme"
|
||||
else
|
||||
! installed wget && sudo apt install -y wget
|
||||
mkdir ${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
|
||||
unzip ${HOME}/install/papirus-icon-theme.zip -d ${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"
|
||||
unzip "${HOME}/install/papirus-icon-theme.zip" -d "${HOME}/install/papirus-icon-theme"
|
||||
fi
|
||||
|
||||
ln -s ${HOME}/install/papirus-icon-theme/Papirus ${HOME}/.local/share/icons/Papirus
|
||||
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
|
||||
mkdir -p "${HOME}/.local/share/icons/"
|
||||
ln -s "${HOME}/install/papirus-icon-theme/Papirus" "${HOME}/.local/share/icons/Papirus"
|
||||
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 "Finish! Don't forget to change current icon theme."
|
||||
|
||||
@@ -12,7 +12,8 @@ mkdir -p ${HOME}/.local/bin
|
||||
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 && \
|
||||
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
|
||||
|
||||
[Desktop Entry]
|
||||
|
||||
Reference in New Issue
Block a user