You are not logged in.
Hi there
i have the idea to write a script, thats transform Debian into Bunsenlabs without reinstalling the whole distro or messing around with the sources.list. its the first script, that im ever wrote, so i have to figure it out, how things work (the sudo was a real problem for me ) but finaly, the script works (kind of)
what the script does:
- add the Bunsenlabs and the Jessy Backport sources into the sourceslist
- install Openbox, Tint2, Conky, Geany, Terminator, and all the Bunsenthemes and Tweaks
- add the User into the sudo list
what the script dont do
- change the normal sources.list, so its possible to use the script also with Ubuntu (not testet)
- uninstall other desktops (i try, but its a mess)
- speaks english (if anybody can translate, the script, feel free
i hope you like the script
run the script with: bash "scriptname", sh will not work - dont know why, as i said, its my first script
here you can see, that the script is working (alpha version, without sudo) https://www.youtube.com/watch?v=lowELe5Ywjo
#!/bin/bash
# Das Script steht unter der GNU General Public Licence v3
# https://www.gnu.org/licenses/gpl-3.0.html und wurde von
# noob_fl für Bunsenlabs Deutschland geschrieben:
# https://bunsenlabs-de.lima-city.de/
# wenn euch das Script gefällt, fühlt euch frei, mir ein Redbull
# zu kaufen: Paypal: stefan_infanger@cloudmail.de bei Fragen und
# Anregungen, schreibt mir eine Mail :)
clear
blue="\\033[0;34m"
black="\\033[0;30m"
echo -en "${black} ${blue}HC]${black} \n"
echo -en "${black} ${blue}H]]]]${black} \n"
echo -en "${black} ${blue}H]]]]]]4${black} \n"
echo -en "${black} ${blue}@C]]]]]]]]*${black} \n"
echo -en "${black} ${blue}@]]]]]]]]]]xd${black} \n"
echo -en "${black} ${blue}@]]]]]]]]]]]]]d${black} \n"
echo -en "${black} ${blue}0]]]]]]]]]]]]]]]]${black} \n"
echo -en "${black} ${blue}kx]]]]]]x]]x]]]]]%${black} \n"
echo -en "${black}${blue}#x]]]]]]]]]]]]]x]]]d${black} \n"
echo -en "${black}${blue}#]]]]]]qW${black} ${blue}x]]x]]]]]4${black} \n"
echo -en "${black}${blue}k]x]]xg${black} ${blue}%x]]]]]]%${black} \n"
echo -en "${black}${blue}Wx]]]W${black} ${blue}x]]]]]]]${black} \n"
echo -en "${black}${blue}#]]]4${black} ${blue}xx]]x]]${black} \n"
echo -en "${black} ${blue}px]${black} ${blue}]]]]]x${black} \n"
echo -en "${black} ${blue}Wx]${black} ${blue}x]]x]]${black} \n"
echo -en "${black} ${blue}&x${black} ${blue}x]]]]${black} \n"
echo -en "${black} ${blue}m${black} ${blue}x]]]]${black} \n"
echo -en "${black} ${blue}x]x]${black} \n"
echo -en "${black} ${blue}x]]]${black} \n"
echo -en "${black} ${blue}]]]]${black} \n"
echo -en "${black} ${blue}x]x${black} \n"
echo -en "${black} ${blue}x]q${black} \n"
echo -en "${black} ${blue}]g${black} \n"
echo -en "${black} ${blue}q${black} \n"
# das ASCII logo stammt von hier: https://github.com//bunsen-ascii
echo -e "Default \e[39m"
echo "$USER" > sudolist
echo "
Willkommen zum Bunsenizer Script. Der Bunsenizer macht aus einem
Debian Stable (Jessie) ein Bunsenlabs Linux, ohne das eine
Neuinstallation nötig ist. Das Script funktiniert auch mit anderen
Debian basierenden Betriebsystemen, ist darauf aber nicht getestet.
Die Verwendung des Bunsenizers geschieht auf eigene Gefahr. Bitte
macht ein Backup, bevor ihr den Bunsenizer verwendet"
echo "Damit der Bunseizer läuft, braucht es Rootrechte
Möchtest du dem Script Rootrechte verleihen, [j]/[n]"
read kommando
if [ "$kommando" == 'j' ]
then
echo "OK";
else
echo "Ohne Root kann das Skript nicht ausgeführt werden, tschötschö"; exit;
fi
su -c'
echo "cool, dann gehts jetzt los \o/"
echo "deb http://pkg.bunsenlabs.org/debian bunsen-hydrogen main" > /etc/apt/sources.list.d/bunsen.list;
echo "deb http://pkg.bunsenlabs.org/debian jessie-backports main" > /etc/apt/sources.list.d/bunsen-jessie-backports.list;
wget https://pkg.bunsenlabs.org/debian/pool/main/b/bunsen-keyring/bunsen-keyring_2016.7.2-1_all.deb
dpkg -i bunsen-keyring_2016.7.2-1_all.deb
apt-get update
apt-get install bunsen-pipemenus bunsen-themes bunsen-common bunsen-docs bunsen-images bunsen-keyring bunsen-welcome bunsen-configs bunsen-python-apt-template bunsen-conky bunsen-faenza-icon-theme bunsen-meta-libreoffice bunsen-utilities tint2 geany openbox obconf obmenu thunar xfce4-screenshooter xfce-keyboard-shortcuts xfce4-power-manager xfce4-volumed terminator
apt-get autoremove --purge
VAR=§(cat sudolist)
adduser $VAR sudo'
rm sudolist
echo "Es empfiehlt sich nun ein Neustart, möchtest du den Computer jetzt neu starten [j]/[n]"
read kommando
if [ "$kommando" == 'j' ]
then su -c'reboot';
else
echo "okidoki"; exit
fi'
lg
der noob
Last edited by noob_fl (2016-09-06 23:58:15)
Offline
Hi noob_fl this is a fun project, but before you invest too much time and energy into it, you might want to have a look at the BunsenLabs netinstall script.
It's more complicated than it needs to be, in fact, because the original version was written for CrunchBang, and intended to be as customizable as possible.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
isn't one of the main selling points of bunsenlabs that it can be added to an existing debian install? by way of repo, and just
apt-get install bunsen-desktop
or some such?
Offline
^That would do most of it, in fact (package is bunsen-meta-all), though you'd have to set up the repositories yourself, and tweak a few things here and there. Also because the meta depends on installing recommends it will pull in a certain amount of extra stuff.
The netinstall script has had less and less to do as time went on...
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline