diff --git a/install.sh b/install.sh index 7985936..12301e0 100755 --- a/install.sh +++ b/install.sh @@ -15,6 +15,7 @@ if [[ $distro == "Debian" ]]; then echo "Error: failed to detect release" exit 1 fi + sudo apt install -y gnupg echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_$release/ /" | sudo tee /etc/apt/sources.list.d/podman.list curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_$release/Release.key | sudo apt-key add - diff --git a/src/postfix/Containerfile b/src/postfix/Containerfile new file mode 100644 index 0000000..fe30e15 --- /dev/null +++ b/src/postfix/Containerfile @@ -0,0 +1,58 @@ +### +### Meta Information +### +FROM localhost/debian + +# deploy options +# -p (port) and -v (volume) both go host:container +LABEL deployopts="\ +-p 25:25 \ +-p 465:465 \ +-p 143:143 \ +-p 993:993" + +# Build Variables +# uid that the files owner user should have +ARG FILESUID=5000 + +### +### General Setup +### + +# install packages we want +RUN apt update -y && apt install -y postfix dovecot-imapd + +### +### Apache +### + +# enable modules we need +RUN a2enmod php${phpv} + +# copy site config +COPY assets/site.conf /etc/apache2/sites-available/ +WORKDIR /etc/apache2/sites-enabled +RUN rm 000-default.conf && ln -s ../sites-available/site.conf + +### +### browserStartpage +### + +# download app +WORKDIR /root +RUN wget https://github.com/saschadiercks/browserStartpage/archive/master.zip && \ + echo "Unzipping ..." && \ + unzip -q master.zip && \ + mv browserStartpage-master/htdocs /var/www/html/startpage && \ + chown -R www-data:www-data /var/www/html && \ + rm -r browserStartpage-master + +# copy config +WORKDIR /var/www/html +COPY --chown=www-data:www-data assets/config.php startpage/config/config.php +COPY --chown=www-data:www-data assets/data.json startpage/data/data.json + +# copy thumbnails +COPY --chown=www-data:www-data assets/thumbnails/ startpage/assets/thumbnails/ +# copy wallpaper +COPY --chown=www-data:www-data assets/wallpaper/ startpage/assets/wallpaper/ diff --git a/src/postfix/docs/Build.md b/src/postfix/docs/Build.md new file mode 100644 index 0000000..a36d704 --- /dev/null +++ b/src/postfix/docs/Build.md @@ -0,0 +1,39 @@ +# build postfix container + +## create container + +build & launch debian-base container: +``` +git clone https://git.brbytes.org/mario/container.git +cd container +./install.sh +cd src/debian +sudo pdm-build +sudo pdm-launch debian postfix +sudo pdm-shell postfix +``` + +## postfix + +install postfix: +``` +apt install postfix +``` +select `1 (no configuration)` when asked how to configure. + +copy default config for postfix: +``` +cp /usr/share/postfix/main.cf.dist /etc/postfix/main.cf +``` +edit config: +``` +cd /etc/postfix/ +nano main.cf +``` + +set the following config parameters: +``` +mail_owner = postfix +myhostname = linode.alemor.org +myorigin = $myhostname +mydestination = $myhostname diff --git a/src/startpage/assets/data.json b/src/startpage/assets/data.json index 50c3e90..09d121b 100644 --- a/src/startpage/assets/data.json +++ b/src/startpage/assets/data.json @@ -15,166 +15,183 @@ }, { "url": "https://www.duckduckgo.com/", - "title": "DuckDuckGo" + "title": "DuckDuckGo", + "image": "assets/thumbnails/duckduckgo.png" }, { - "url": "https://www.google.com/", - "title": "Google" + "url": "https://en.wikipedia.org/", + "title": "Wikipedia", + "image": "assets/thumbnails/wikipedia.svg" }, { "url": "https://www.amazon.com/", - "title": "Amazon" + "title": "Amazon", + "image": "assets/thumbnails/amazon.svg" }, { - "url": "https://en.wikipedia.org/", - "title": "Wikipedia", - "image": "assets/thumbnails/wikipedia.svg" - }, + "url": "https://github.com/", + "title": "Github", + "image": "assets/thumbnails/github.svg" + }, { - "url": "https://www.reddit.com/", - "title": "Reddit" + "url": "https://www.reddit.com/", + "title": "Reddit", + "image": "assets/thumbnails/reddit.svg" }, { "url": "https://www.facebook.com/", - "title": "Facebook" + "title": "Facebook", + "image": "assets/thumbnails/facebook.png" }, { - "url": "https://twitter.com/", - "title": "Twitter" + "url": "https://twitter.com/", + "title": "Twitter", + "image": "assets/thumbnails/twitter.svg" + }, + { + "url": "https://web.whatsapp.com/", + "title": "WhatsApp Web", + "image": "assets/thumbnails/whatsapp.svg" }, { "url": "https://voice.google.com/u/0/messages", - "title": "Google Voice" + "title": "Google Voice", + "image": "assets/thumbnails/google_voice.png" }, { - "url": "https://web.whatsapp.com/", - "title": "WhatsApp Web" + "url": "https://hangouts.google.com/", + "title": "Google Hangouts", + "image": "assets/thumbnails/google_hangouts.svg" } ], "Work" : [ - { - "url": "https://github.com/", - "title": "Github" - }, { "url": "https://www.wolframalpha.com/", - "title": "WolframAlpha" + "title": "Wolfram Alpha", + "image": "assets/thumbnails/wolfram_alpha.svg" } ], "Media" : [ { "url" : "https://www.youtube.com/", - "title": "YouTube" + "title": "YouTube", + "image": "assets/thumbnails/youtube.svg" }, { "url" : "https://www.netflix.com/", - "title": "Netflix" + "title": "Netflix", + "image": "assets/thumbnails/netflix.svg" }, { "url" : "https://www.hulu.com/", - "title": "Hulu" + "title": "Hulu", + "image": "assets/thumbnails/hulu.svg" }, { "url" : "https://www.amazon.com/Amazon-Video/b?ie=UTF8&node=2858778011", - "title": "Amazon Prime Video" + "title": "Amazon Prime Video", + "image": "assets/thumbnails/amazon_prime_video.svg" }, { "url" : "https://play.hbonow.com", - "title": "HBO Now" + "title": "HBO Now", + "image": "assets/thumbnails/hbo_now.svg" }, { "url" : "https://www.thewatchcartoononline.tv/", - "title": "WatchCartoonOnline" + "title": "WatchCartoonOnline", + "image": "assets/thumbnails/watch_cartoon_online.gif" }, { "url" : "https://www.pandora.com/", - "title": "Pandora" + "title": "Pandora", + "image": "assets/thumbnails/pandora.svg" } ] }, "bookmarks" : { - "Downloads" : [ + "Downloads" : [ { - "url": "https://www.humblebundle.com/", - "title": "Humble Bundle" + "url": "https://www.humblebundle.com/", + "title": "Humble Bundle" }, { - "url": "https://www.gog.com/", - "title": "GOG.com" + "url": "https://www.gog.com/", + "title": "GOG.com" }, { - "url": "https://www.kerbalspaceprogram.com/profile.php?userProf=info", - "title": "KSP Store" + "url": "https://www.kerbalspaceprogram.com/profile.php?userProf=info", + "title": "KSP Store" }, { - "url": "https://www.steamworkshopdownloader.io/", - "title": "Steam Workshop Downloader" + "url": "https://www.steamworkshopdownloader.io/", + "title": "Steam Workshop Downloader" }, { - "url": "https://thetrove.net/", - "title": "The Trove" + "url": "https://thetrove.net/", + "title": "The Trove" }, { - "url": "http://gen.lib.rus.ec/", - "title": "Library Genesis" + "url": "http://gen.lib.rus.ec/", + "title": "Library Genesis" } - ], + ], "Forums" : [ { - "url": "https://artemis.forumchitchat.com/", - "title": "Artemis" + "url": "https://artemis.forumchitchat.com/", + "title": "Artemis" }, { - "url": "https://eclipsephase.com/forum", - "title": "Eclipse Phase" + "url": "https://eclipsephase.com/forum", + "title": "Eclipse Phase" }, { - "url": "https://forum.kerbalspaceprogram.com/", - "title": "Kerbal Space Program" + "url": "https://forum.kerbalspaceprogram.com/", + "title": "Kerbal Space Program" }, { - "url": "https://en-forum.guildwars2.com/", - "title": "Guild Wars 2" + "url": "https://en-forum.guildwars2.com/", + "title": "Guild Wars 2" } ], "Webcomics" : [ { - "url": "https://xkcd.com/", - "title": "xkcd" + "url": "https://xkcd.com/", + "title": "xkcd" }, { - "url": "https://www.smbc-comics.com/", - "title": "SMBC" + "url": "https://www.smbc-comics.com/", + "title": "SMBC" }, { - "url": "https://questionablecontent.net/", - "title": "Questionable Content" + "url": "https://questionablecontent.net/", + "title": "Questionable Content" }, { - "url": "https://existentialcomics.com/", - "title": "Existential Comics" + "url": "https://existentialcomics.com/", + "title": "Existential Comics" }, { - "url": "https://www.giantitp.com/Comics.html", - "title": "The Order of the Stick" + "url": "https://www.giantitp.com/Comics.html", + "title": "The Order of the Stick" }, { - "url": "https://pbfcomics.com/", - "title": "Perry Bible Fellowship" + "url": "https://pbfcomics.com/", + "title": "Perry Bible Fellowship" } ], "Alemor" : [ { - "url": "https://login.linode.com/login", - "title": "Linode" + "url": "https://login.linode.com/login", + "title": "Linode" }, { - "url": "https://account.dyn.com/", - "title": "Dyn DNS" + "url": "https://account.dyn.com/", + "title": "Dyn DNS" }, { - "url": "https://portal.vitelity.net/login.php", - "title": "Vitelity" + "url": "https://portal.vitelity.net/login.php", + "title": "Vitelity" } ] } diff --git a/src/startpage/assets/thumbnails/amazon.svg b/src/startpage/assets/thumbnails/amazon.svg new file mode 100644 index 0000000..08fbaf6 --- /dev/null +++ b/src/startpage/assets/thumbnails/amazon.svg @@ -0,0 +1,91 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/amazon_prime_video.svg b/src/startpage/assets/thumbnails/amazon_prime_video.svg new file mode 100644 index 0000000..0f5630a --- /dev/null +++ b/src/startpage/assets/thumbnails/amazon_prime_video.svg @@ -0,0 +1,130 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/src/startpage/assets/thumbnails/duckduckgo.png b/src/startpage/assets/thumbnails/duckduckgo.png new file mode 100644 index 0000000..a12b7b8 Binary files /dev/null and b/src/startpage/assets/thumbnails/duckduckgo.png differ diff --git a/src/startpage/assets/thumbnails/facebook.png b/src/startpage/assets/thumbnails/facebook.png new file mode 100644 index 0000000..aa99184 Binary files /dev/null and b/src/startpage/assets/thumbnails/facebook.png differ diff --git a/src/startpage/assets/thumbnails/github.svg b/src/startpage/assets/thumbnails/github.svg new file mode 100644 index 0000000..977cf9d --- /dev/null +++ b/src/startpage/assets/thumbnails/github.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/google_hangouts.svg b/src/startpage/assets/thumbnails/google_hangouts.svg new file mode 100644 index 0000000..394d4f7 --- /dev/null +++ b/src/startpage/assets/thumbnails/google_hangouts.svg @@ -0,0 +1,1525 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/google_voice.png b/src/startpage/assets/thumbnails/google_voice.png new file mode 100644 index 0000000..71e74f1 Binary files /dev/null and b/src/startpage/assets/thumbnails/google_voice.png differ diff --git a/src/startpage/assets/thumbnails/hbo_now.svg b/src/startpage/assets/thumbnails/hbo_now.svg new file mode 100644 index 0000000..2c84d42 --- /dev/null +++ b/src/startpage/assets/thumbnails/hbo_now.svg @@ -0,0 +1,77 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/hulu.svg b/src/startpage/assets/thumbnails/hulu.svg new file mode 100644 index 0000000..a9845ce --- /dev/null +++ b/src/startpage/assets/thumbnails/hulu.svg @@ -0,0 +1,244 @@ + + + + + + image/svg+xml + + + + + + + + + Created by HiQPdf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/netflix.svg b/src/startpage/assets/thumbnails/netflix.svg new file mode 100644 index 0000000..b413dd5 --- /dev/null +++ b/src/startpage/assets/thumbnails/netflix.svg @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/pandora.svg b/src/startpage/assets/thumbnails/pandora.svg new file mode 100644 index 0000000..7c25201 --- /dev/null +++ b/src/startpage/assets/thumbnails/pandora.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/reddit.svg b/src/startpage/assets/thumbnails/reddit.svg new file mode 100644 index 0000000..17aa0ef --- /dev/null +++ b/src/startpage/assets/thumbnails/reddit.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/twitter.svg b/src/startpage/assets/thumbnails/twitter.svg new file mode 100644 index 0000000..90f7394 --- /dev/null +++ b/src/startpage/assets/thumbnails/twitter.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/watch_cartoon_online.gif b/src/startpage/assets/thumbnails/watch_cartoon_online.gif new file mode 100644 index 0000000..135d1ce Binary files /dev/null and b/src/startpage/assets/thumbnails/watch_cartoon_online.gif differ diff --git a/src/startpage/assets/thumbnails/whatsapp.svg b/src/startpage/assets/thumbnails/whatsapp.svg new file mode 100644 index 0000000..00f3d03 --- /dev/null +++ b/src/startpage/assets/thumbnails/whatsapp.svg @@ -0,0 +1,1901 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/wolfram_alpha.svg b/src/startpage/assets/thumbnails/wolfram_alpha.svg new file mode 100644 index 0000000..9485f6e --- /dev/null +++ b/src/startpage/assets/thumbnails/wolfram_alpha.svg @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/startpage/assets/thumbnails/youtube.svg b/src/startpage/assets/thumbnails/youtube.svg new file mode 100644 index 0000000..770d57f --- /dev/null +++ b/src/startpage/assets/thumbnails/youtube.svg @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + +