<commit_before>#!/bin/bash -x
VERSION=$(lsb_release -cs)

# Sources
	echo "
deb http://ftp.de.debian.org/debian/ $VERSION main contrib non-free
deb-src http://ftp.de.debian.org/debian/ $VERSION main contrib non-free
deb http://security.debian.org/ $VERSION/updates main contrib non-free
deb-src http://security.debian.org/ $VERSION/updates main contrib non-free
deb http://ftp.de.debian.org/debian/ $VERSION-updates main
deb-src http://ftp.de.debian.org/debian/ $VERSION-updates main
" > /etc/apt/sources.list

# Chrome

	read -p "Google Chrome installieren? [y/N]" GOOGLE
	if [ $GOOGLE = y ]
		then 
		wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
		dpkg -i /tmp/chrome.deb
		rm /tmmp/chrome.deb
	fi

# Trackpoint (https://wiki.debian.org/InstallingDebianOn/Thinkpad/Trackpoint)
	echo "
Section "InputClass"
    Identifier      "Trackpoint"
    MatchProduct    "TrackPoint|DualPoint Stick"
    MatchDevicePath "/dev/input/event*"
    Option          "EmulateWheel" "true"
    Option          "EmulateWheelButton" "2"
    Option          "EmulateWheelTimeout" "200" 
    Option          "YAxisMapping" "4 5" # vertikales Scrollen
    Option          "XAxisMapping" "6 7" # horizontales Scrollen
EndSection
" > /usr/share/X11/xorg.conf.d/20-trackpoint.conf

	echo "
Section "InputClass"
        Identifier "touchpad"
        MatchProduct "SynPS/2 Synaptics TouchPad"
        Driver "synaptics"
        Option "MinSpeed" "1"
        Option "MaxSpeed" "1"
        Option "AccelerationProfile" "2"
        Option "AdaptiveDeceleration" "1000"
        Option "ConstantDeceleration" "16"
        Option "VelocityScale" "30"
        Option "AccelerationNumerator" "30"
        Option "AccelerationDenominator" "10"
        Option "AccelerationThreshold" "10"
EndSection
" > 50-touchpad.conf

# Thinkfan (http://www.thinkwiki.org/wiki/ACPI_fan_control_script)
	apt-get install thinkfan
	echo "options thinkpad_acpi fan_control=1"|tee /etc/modprobe.d/thinkfan.conf
	modprobe -rv thinkpad_acpi<commit_msg>modified: init.sh<commit_after>#!/bin/bash -x
VERSION=$(lsb_release -cs)

# Sources
	echo "
deb http://ftp.de.debian.org/debian/ $VERSION main contrib non-free
deb-src http://ftp.de.debian.org/debian/ $VERSION main contrib non-free
deb http://security.debian.org/ $VERSION/updates main contrib non-free
deb-src http://security.debian.org/ $VERSION/updates main contrib non-free
deb http://ftp.de.debian.org/debian/ $VERSION-updates main
deb-src http://ftp.de.debian.org/debian/ $VERSION-updates main
" > /etc/apt/sources.list

# Chrome

	read -p "Google Chrome installieren? [y/N]" GOOGLE
	if [ $GOOGLE = y ]
		then 
		wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
		dpkg -i /tmp/chrome.deb
		rm /tmmp/chrome.deb
	fi

# Trackpoint (https://wiki.debian.org/InstallingDebianOn/Thinkpad/Trackpoint)
	echo "
Section "InputClass"
    Identifier      "Trackpoint"
    MatchProduct    "TrackPoint|DualPoint Stick"
    MatchDevicePath "/dev/input/event*"
    Option          "EmulateWheel" "true"
    Option          "EmulateWheelButton" "2"
    Option          "EmulateWheelTimeout" "200" 
    Option          "YAxisMapping" "4 5" # vertikales Scrollen
    Option          "XAxisMapping" "6 7" # horizontales Scrollen
EndSection
" > /usr/share/X11/xorg.conf.d/20-trackpoint.conf

	echo "
Section "InputClass"
        Identifier "touchpad"
        MatchProduct "SynPS/2 Synaptics TouchPad"
        Driver "synaptics"
        Option "MinSpeed" "1"
        Option "MaxSpeed" "1"
        Option "AccelerationProfile" "2"
        Option "AdaptiveDeceleration" "1000"
        Option "ConstantDeceleration" "16"
        Option "VelocityScale" "30"
        Option "AccelerationNumerator" "30"
        Option "AccelerationDenominator" "10"
        Option "AccelerationThreshold" "10"
EndSection
" > /usr/share/X11/xorg.conf.d/50-touchpad.conf

# Thinkfan (http://www.thinkwiki.org/wiki/ACPI_fan_control_script)
	apt-get install thinkfan
	echo "options thinkpad_acpi fan_control=1"|tee /etc/modprobe.d/thinkfan.conf
	modprobe -rv thinkpad_acpi
{'fraction_non_alphanumeric': 0.12096969696969696, 'fraction_numerical': 0.017454545454545455, 'mean_word_length': 3.1930894308943087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5458636', 'n_tokens_mistral': 1516, 'n_tokens_neox': 1361, 'n_words': 298}