Skip to content

Plasma stuff #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 23 additions & 20 deletions qdarch/doinchroot.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#! /bin/bash

#username
USERNAME='you'
#USERNAME='you'
#locale
set_locale='0' # 0=em_US ; 1=de_DE
#set_locale='0' # 0=em_US ; 1=de_DE
#wm
set_wm='0' # 0=nope ; 1=i3-wm ; 2=plasma
#set_wm='0' # 0=nope ; 1=i3-wm ; 2=plasma
#gpu
set_xf86_video='0' # 0=intel ; 1=amd
#set_xf86_video='0' # 0=intel ; 1=amd



case $set_locale in
case $lang in
"1")
echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen
echo "de_DE ISO-8859-1" >> /etc/locale.gen
Expand Down Expand Up @@ -49,7 +49,7 @@ systemctl enable org.cups.cupsd.service
ntpd -gq
pacman -S xorg-server xorg-xinit xorg-apps --noconfirm

case $set_xf86_video in
case $video in
"0") pacman -S xf86-video-intel --noconfirm;;
"1") pacman -S xf86-video-amdgpu --noconfirm;;
esac
Expand All @@ -74,39 +74,42 @@ pacman -S alsa alsa-utils pulseaudio sudo --noconfirm
pacman -S wpa_supplicant netctl dialog --noconfirm

#usermake
useradd -m -g users -s /bin/bash $USERNAME
gpasswd -a $USERNAME wheel
echo "$USERNAME passwort:"
passwd $USERNAME
useradd -m -g users -s /bin/bash $username
gpasswd -a $username wheel
echo "$username passwort:"
passwd $username
#echo "setxkbmap de" >> /home/$USERNAME/.bashrc

#other stuff
pacman -S cdrtools gedit screenfetch firefox openssh transmission-gtk htop cpupower --noconfirm

#Virtualbox
pacman -S virtualbox virtualbox-host-modules-arch --noconfirm
gpasswd -a $USERNAME vboxusers
gpasswd -a $username vboxusers

#fastboot android
#pacman -S fastboot --noconfirm


case $set_wm in
case $desktop in
*) echo 'nope';;

"1") #i3-wm
pacman -S i3 feh ttf-dejavu scrot thunar file-roller i3lock gvfs conky --noconfirm
echo "exec i3" >> ~/.xinitrc
cp ~/.xinitrc /home/$USERNAME/.xinitrc
mkdir /home/$USERNAME/.config
mkdir /home/$USERNAME/.config/i3
cp /root/installer/i3 /home/$USERNAME/.config/i3/config
cp /root/installer/conky.conf /home/$USERNAME/conky.conf
chown $USERNAME:users /home/$USERNAME/.config
chmod 770 /home/$USERNAME/.config;;
cp ~/.xinitrc /home/$username/.xinitrc
mkdir /home/$username/.config
mkdir /home/$username/.config/i3
cp /root/installer/i3 /home/$username/.config/i3/config
cp /root/installer/conky.conf /home/$usernameE/conky.conf
chown $username:users /home/$username/.config
chmod 770 /home/$username/.config;;

"2") #plasma
#stuff
pacman -S xorg --noconfirm
pacman -S plasma-meta kde-applications --noconfirm
systemctl enable sddm
systemctl enable NetworkManager
;;


Expand Down
26 changes: 23 additions & 3 deletions qdarch/quick.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
#!/bin/bash
#! /bin/bash


read -p "Enter your username:" username

read -p "Enter your password:" password

read -p "Which desktop-environment do you want? ( 0=nothing ; 1=i3-wm ; 2=plasma )" desktop

read -p "Which grafikcard do you have? ( nvidia=0 ; amd=1 )" graka

read -p "Which language do you speak? ( 0=en ; 1=de )" lang

wifi-menu



echo "Bitte Festplatte in zwei Partitionen splitten"
#cfdisk /dev/$SYSDISK
cfdisk /dev/sda

Expand Down Expand Up @@ -38,10 +52,16 @@ syslinux-install_update -i -a -m -c /mnt
#sed s/sysdisk/$ROOT/g syslinux.cfg > /mnt/boot/syslinux/syslinux.cfg
sed s/sysdisk/sda2/g syslinux.cfg > /mnt/boot/syslinux/syslinux.cfg

export username
export password
export desktop
export lang
export graka

cp -r /root/qdarch /mnt/root/installer

arch-chroot /mnt /bin/bash -c '/root/installer/doinchroot.sh'

echo "################"
echo "############################################################"
echo "REBOOT NOW!"
echo "################"
echo "#############################################################"