-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cce1f89
Showing
290 changed files
with
12,680 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# debkiss (Program Installers) | ||
|
||
[](./LICENSE) | ||
|
||
scripts to install programs | ||
|
||
# usage: | ||
|
||
<!-- | ||
su - | ||
apt install git -y | ||
sudo usermod -aG sudo USERNAME | ||
#logout from desktop session and login again | ||
sudo dpkg-reconfigure keyboard-configuration | ||
or: | ||
sudo apt update && sudo apt install git -y --> | ||
|
||
``` | ||
bash -c "$(curl -fsSL https://git.io/debkiss)" | ||
``` | ||
|
||
<!--curl -sSL https://git.io/debkiss | bash--> | ||
|
||
# alternative 1: | ||
|
||
``` | ||
bash -c "$(wget -O - https://raw.githubusercontent.com/freddii/program_installers/master/debkiss.sh)" | ||
``` | ||
|
||
# alternative 2: | ||
|
||
``` | ||
cd /tmp && git clone https://github.com/freddii/program_installers && cd program_installers && ./debkiss.sh | ||
``` | ||
|
||
# Todo: | ||
|
||
* [ ] execute AppImages with firejail | ||
|
||
* [ ] shellcheck scripts | ||
|
||
``` | ||
# Fail if any of these files have warnings | ||
shellcheck program_installers/*.sh | ||
``` | ||
|
||
## Contributing | ||
|
||
* Copyright © 2020 freddii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
# | ||
# | ||
#default backgrounds are in cd /usr/share/backgrounds or /usr/share/xfce4/backdrops/ | ||
set -eo pipefail | ||
# | ||
# | ||
Name_1=towertv.jpg | ||
Url_1=https://tv-turm.de/fileadmin/webcam/images.jpg | ||
Name_2=red_house.jpg | ||
Url_2=https://www.rbb24.de/include/webcam/rathaus/hugesize_logo.jpg | ||
Name_3=tvtower.jpg | ||
Url_3=https://www.rbb24.de/include/webcam/fsz/hugesize_logo.jpg | ||
Name_4=berlin.jpg | ||
Url_4=https://www.yr.no/place/Germany/Berlin/Berlin/avansert_meteogram.png | ||
# | ||
#https://opendata.dwd.de/weather/webcam/Warnemuende-NW/Warnemuende-NW_latest_400.jpg | ||
# | ||
# | ||
mkdir -p $HOME/.cam-background_setup/createImage | ||
cd $HOME/.cam-background_setup/createImage | ||
# | ||
# | ||
wget -q --show-progress -O $Name_1 $Url_1 | ||
wget -q --show-progress -O $Name_2 $Url_2 | ||
wget -q --show-progress -O $Name_3 $Url_3 | ||
wget -q --show-progress -O $Name_4 $Url_4 | ||
#curl $Url > $Name | ||
# | ||
# | ||
Resolution=$(xrandr -d :0 |grep \* |awk '{print $1}') | ||
# | ||
Xres=$(echo $Resolution | cut -f1 -d"x") | ||
YRes=$(echo $Resolution | cut -f2 -d"x") | ||
Ysize=$(($YRes/4)) | ||
#Xsize=$((640*$Ysize/480)) | ||
Xsize=$(($Xres/5)) | ||
XPosO=$(($Xres-$Xsize)) | ||
XPos1=$(($Xres-$Xsize*2)) | ||
Resized=${Xsize}x${Ysize} | ||
Resized2_1="$(($Xsize*2))"x${Ysize} | ||
YPosI=$(($Ysize*2)) | ||
YPosII=$(($Ysize*3)) | ||
# | ||
#other colors instead of SteelBlue4: | ||
#https://imagemagick.org/script/color.php | ||
# | ||
convert -size $Resolution xc:SteelBlue4 \ | ||
\( $Name_1 -resize $Resized\! \) -geometry +$XPosO+0 -composite \ | ||
\( $Name_2 -resize $Resized\! \) -geometry +$XPosO+$Ysize -composite \ | ||
\( $Name_3 -resize $Resized\! \) -geometry +$XPosO+$YPosI -composite \ | ||
\( $Name_4 -resize $Resized2_1\! \) -geometry +$XPos1+$YPosII -composite \ | ||
drawn.jpg | ||
# | ||
rm $Name_1 | ||
rm $Name_2 | ||
rm $Name_3 | ||
rm $Name_4 | ||
# | ||
#xfconf-query -c xfce4-desktop -m #then change the background to get your screen and monitor numbers.. | ||
# | ||
env DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus xfconf-query \ | ||
--channel xfce4-desktop \ | ||
--property /backdrop/screen0/monitor0/workspace0/last-image \ | ||
--set $PWD/drawn.jpg | ||
# | ||
#workspace1 for second one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
#https://stackoverflow.com/questions/929368/how-to-test-an-internet-connection-with-bash | ||
#https://ryanstutorials.net/bash-scripting-tutorial/bash-loops.php | ||
counter=1 | ||
while [ $counter -le 20 ] | ||
do | ||
pingtime=$(ping -w 1 8.8.8.8 | grep ttl) | ||
if [ "$pingtime" = "" ] | ||
then | ||
echo 'Offline' | ||
echo $counter | ||
((counter=counter+1)) | ||
else | ||
echo 'Online' | ||
/home/xxUserxx/.cam-background_setup/cam-background.sh | ||
((counter=counter+20)) | ||
fi | ||
sleep 1 | ||
done | ||
echo All done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/bash | ||
|
||
#This script been created on Debian trixie (sid) 2023-08-24 - run me in a new created directory. | ||
#Maybe some changes are needed, depends on alchemy-next requirements/changes and your system | ||
#Also check which branch you want to compile, this script is for the latest active branch currently | ||
#Most recommendations are to check .gitlab-ci.yml file in alchemy repository | ||
|
||
|
||
sudo apt install -y libglu1-mesa-dev libgl-dev libegl1-mesa-dev libgles2-mesa-dev libvulkan-dev libasound2-dev \ | ||
libpulse-dev meson autoconf autoconf-archive automake autotools-dev libtool gettext ninja-build \ | ||
python3-wheel pipenv python3-venv build-essential git mercurial curl wget nasm gnutls-bin groff libudev-dev libdbus-1-dev \ | ||
libibus-1.0-dev fcitx-libs-dev libx11-dev x11proto-dev libxext-dev libxrender-dev libxi-dev libxss-dev libxinerama-dev libxkbcommon-dev \ | ||
libxrandr-dev libxcursor-dev libxt-dev libxv-dev libxxf86vm-dev libice-dev libwayland-dev libwayland-egl-backend-dev wayland-protocols \ | ||
libinput-dev libcunit1-dev libxml2-utils curl openssl wget libtimedate-perl libfreetype-dev libgtk-3-dev libglib2.0-dev libsystemd-dev \ | ||
libgdk-pixbuf2.0-dev libvlc-dev libncurses-dev gperf bison flex fakeroot cdbs elfutils devscripts locales liblzma-dev chrpath \ | ||
libnspr4 libnspr4-dev libnss3 libnss3-dev graphviz cmake gcc-10 g++-10 libfontconfig1-dev | ||
|
||
|
||
#Check if alchemy-next already exists | ||
if [ -d "alchemy-next" ]; then | ||
echo "Alchemy already exists. Updating..." | ||
cd alchemy-next | ||
git pull | ||
cd .. | ||
else | ||
echo "Cloning Alchemy..." | ||
#Clone Alchemy in this directory | ||
git clone https://git.alchemyviewer.org/alchemy/alchemy-next.git | ||
fi | ||
|
||
|
||
#cd alchemy-next | ||
#Save alchemy-next directory path | ||
ALCHEMY_DIR=$(pwd)/alchemy-next | ||
|
||
|
||
if [ -d ".venv" ]; then | ||
echo "Virtual environment already exists. Updating..." | ||
cd .venv/bin | ||
source activate | ||
|
||
cd .. | ||
else | ||
echo "Creating virtual environment..." | ||
#Create virtual environment | ||
python3 -m venv .venv | ||
cd .venv | ||
source bin/activate | ||
|
||
cd .. | ||
fi | ||
|
||
|
||
pip3 install --upgrade llbase autobuild certifi sentry-cli cmake ninja | ||
#cd to alchemy-next directory | ||
cd $ALCHEMY_DIR | ||
|
||
#Edit configure & build lines for your needs | ||
#Copy configure and build lines to your own script better later | ||
autobuild configure -c ReleaseOS -A64 -- -DUSE_LTO=OFF -DLL_TESTS="${ENABLE_TESTS}" -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE -DCOMPRESS_DEBUG=ON | ||
autobuild build -c ReleaseOS -A64 --no-configure | ||
echo "Done - run client: ./alchemy-next/build-linux-64/newview/packaged/alchemy" | ||
|
||
#TODO: Create flatpak package for alchemy-next for isolating it from system |
Oops, something went wrong.