setups my desktop environment from a debian netinst
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

122 lines
5.6 KiB

#!/bin/sh
echo "installing hardware stuff"
sudo apt-get -y build-essential amd64-microcode firmware-b43-installer firmware-b43legacy-installer firmware-linux firmware-ralink firmware-iwlwifi firmware-realtek i965-va-driver intel-microcode cpufrequtils hdparm hddtemp acpi printer-driver-all hplip va-driver-all vdpau-va-driver libfreenect0.5
echo "installing realtime kernel"
sudo apt-get install linux-image-rt-amd64
echo "installing updated intel drivers"
sudo apt-get -t buster-backports install xserver-xorg-video-intel
echo "installing some kind of crunchbang system"
sudo apt-get -y install alsa-utils anacron apt-transport-https apt-xapian-index aptitude arandr arj btrfs-tools chntpw clipit compton conky-all curl crda dmz-cursor-theme dosfstools efibootmgr eject enchant fbxkb feh file-roller ftp fuse galternatives gdebi ghostscript gpicview gksu gparted hardinfo hwdata libnotify-bin lightdm lm-sensors locales lsb-release lxappearance lzop mlocate modemmanager network-manager nitrogen ntfs-3g ntp obconf obmenu openbox openssh-client p7zip-full pciutils pcmciautils rfkill rpl rsync rzip scrot smartmontools tint2 transmission-gtk unace unalz unar unrar unzip update-inetd usb-modeswitch usbutils user-setup uuid-runtime xdg-user-dirs xdg-utils xfce4-notifyd xfce4-power-manager xfce4-screenshooter xinput xorg xsel xz-utils yad zip grc xdiskusage redshift xbacklight ncftp nmap strace hsetroot wmctrl thermald sshfs joystick jstest-gtk rofi apulse wmctrl
# installs file manager (TODO decide between thunar and pcmanfm)
sudo apt-get -y install gvfs gvfs-backends gvfs-fuse thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman pcmanfm
echo "installing terminal stuff"
sudo apt-get -y install terminator fish tmux cmatrix cowsay fortune nmon neofetch xdotool trash-cli figlet toilet toilet-fonts htop espeak tree
sudo chsh -s /usr/bin/fish
set -u fish_greeting # unexport greetings
echo "installing coding tools"
sudo apt-get -y install build-essential swig shellcheck make cloc clang-8 clang-format-8 clang-tools-8 clang-tidy-8 lldb-8 git git-email linux-tools perf-tools-unstable linux-perf valgrind frama-c-base doxygen doxygen-doc gdb systemd-coredump python-keybinder python-notify python-xdg python3-pyqt5
echo "installing dev libs"
sudo apt-get -y install libncurses5-dev libncursesw5-dev libportmidi-dev
echo "installing text editors:"
sudo apt-get -y install geany geany-plugins micro
echo "installing essential apps"
sudo apt-get -y install audacity firefox-esr darktable thunderbird kdenlive krita imagemagick pdftk mpv cmus sox obs-studio evince calibre wine filezilla pandoc liferea
echo "installing office tools"
sudo apt-get -y install xsane libreoffice libreoffice-gtk galculator
echo "installing fonts"
sudo apt-get -y install fonts-cantarell fonts-dejavu fonts-droid-fallback fonts-inconsolata fonts-liberation fonts-stix fonts-lmodern fonts-powerline fonts-roboto xfonts-terminus xfonts-terminus-dos xfonts-terminus-oblique fonts-inconsolata fonts-f500 fonts-roboto-fontface fonts-firacode fonts-open-sans fonts-3270 ttf-mscorefonts-installer
echo "installing codecs"
sudo apt-get -y install vorbis-tools lame monkeys-audio gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly x264
echo "installing jack utils"
sudo apt-get -y install jackd1 qjackctl aconnectgui jack-midi-clock jack-capture
echo "installing more apps"
sudo apt-get -y install winbind paulstretch qv4l2 csound
#sudo apt-get -y install gimp doxygen-gui universalindentgui
# probably not needed anymore, installing openbox is enough
#echo "setting up xinitrc"
#cp ~/system/nonde/extra/xinitrc ~/.xinitrc
mkdir -p ~/system/apps
echo "installing create_ap"
cd ~/system/apps
git clone https://github.com/oblique/create_ap.git
cd create_ap
sudo make install
echo "sensor detect"
sudo sensors-detect
echo "installing icons"
mkdir ~/.icons
cd ~/.icons
git clone https://github.com/EmptyStackExn/mono-dark-flattr-icons.git
echo "making ssh mount directory"
mkdir -p ~/mnt/ssh
echo "reconfigure keyboard now, use ctrl+alt+delete to terminate x"
sudo dpkg-reconfigure keyboard-configuration
echo "adding user to dialout and tty"
sudo usermod -a -G tty $USER
sudo usermod -a -G dialout $USER
echo "linking bins"
rm -rf ~/bin
ln -s ~/system/nonde/bin ~/bin
# -------------------------------------------------------------------------------
echo "copying system wide hardware confs"
sudo mkdir -p /usr/share/X11/xorg.conf.d/
sudo cp ~/system/nonde/extra/base/20-intel.conf /usr/share/X11/xorg.conf.d/20-intel.conf
sudo mkdir -p /etc/modprobe.d/
sudo cp ~/system/nonde/extra/base/kinect-depth.conf /etc/modprobe.d/kinect-depth.conf
sudo cp ~/system/nonde/extra/base/lightdm.conf /etc/lightdm/lightdm.conf
sudo mkdir -p /etc/X11/xorg.conf.d/
sudo cp ~/system/nonde/extra/base/40-libinput.conf /etc/X11/xorg.conf.d/40-libinput.conf
echo "setting up GRUB"
sudo cp extra/base/grub /etc/default/grub
sudo update-grub
echo "setting up realtime limits"
sudo cp ~/system/nonde/extra/base/limits.conf /etc/security/limits.conf
sudo groupadd realtime
sudo usermod -a -G realtime $USER
echo "adding cloudshare DNS to resolv.conf"
echo "prepend domain-name-servers 1.0.0.1;" | sudo tee -a /etc/dhcp/dhclient.conf
echo "prepend domain-name-servers 1.1.1.1;" | sudo tee -a /etc/dhcp/dhclient.conf
# -------------------------------------------------------------------------------
echo "removing dbus a11y bridge"
echo "NO_AT_BRIDGE=1" | sudo tee -a /etc/environment
sudo apt-get purge at-spi2-core
echo "being sure stuff is removed:"
sudo apt-get -y purge geoclue-2.0
sudo apt-get -y purge avahi-daemon
exit