Jo auch hier noch eine kleine Info von mir dazu
hier mein kleines Installationsscript welches ich nach einer Linux neuinstallation ausführe ...
(bitte nur verwenden wenn ihr versteht was die Befehle bedeuten und ihr es auf euren rechner angepasst habt!)
[codebox]
#!/bin/sh
clear
echo Willkommen in meinem kleinen Script zur Optimirung ihres Computers auf den
echo Desktopbetrieb.
echo
echo Das Script benötigt Root-Rechte um ausgeführt zu werden und eine funktionierende
echo Internetverbindung wird benötigt!
echo
sleep 1
echo Überprüfe die benötigten Rechte ...
echo
sleep 1
RVG=root
if [ "$USER" = "$RVG" ]
then
echo Sie sind Root und haben die nötigen Rechte\; fahre fort.
echo
else
echo Benutzerauthentifizierung fehlgeschlagen\; bitte starten sie das Script mit
echo Root-Rechten erneut.
exit
fi
echo Bitte geben sie nun noch ihren Usernamen ein:
read -p "Username: " USRNA
sleep 1
clear
echo Starte Systemoptimirung auf Desktopbetrieb.
rm /home/$USERNA/Examples
rm -R /usr/share/example-content
sed 's/sw /sw,defaults,pri=5 /g' /etc/fstab > ~/fstmp
sed 's/relatime/noatime,nodiratime,relatime/g' ~/fstmp > /etc/fstab
rm ~/fstmp
echo vm.swappiness=90 >> sysctl.tmp
echo vm.dirty_ratio=10 >> sysctl.tmp
echo vm.dirty_background_ratio=5 >> sysctl.tmp
echo vm.vfs_cache_pressure=30 >> sysctl.tmp
echo user_pref(\"network.http.pipelining\", true); >> ffox.tmp
echo user_pref(\"network.http.proxy.pipelining\", true); >> ffox.tmp
echo user_pref(\"network.http.pipelining.maxrequests\", 8); >> ffox.tmp
echo user_pref(\"content.notify.backoffcount\", 5); >> ffox.tmp
echo user_pref(\"plugin.expose_full_path\", true); >> ffox.tmp
echo user_pref(\"ui.submenuDelay\", 0); >> ffox.tmp
echo user_pref(\"browser.xul.error_pages.enabled\", true); >> ffox.tmp
echo user_pref(\"content.interrupt.parsing\", true); >> ffox.tmp
echo user_pref(\"content.max.tokenizing.time\", 3000000); >> ffox.tmp
echo user_pref(\"content.maxtextrun\" 8191); >> ffox.tmp
echo user_pref(\"content.notify.interval\", 750000); >> ffox.tmp
echo user_pref(\"content.notify.ontimer\", true); >> ffox.tmp
echo user_pref(\"content.switch.threshold\", 750000); >> ffox.tmp
echo user_pref(\"network.http.max-connections\", 32); >> ffox.tmp
echo user_pref(\"network.http.max-connections-per-server\", 8); >> ffox.tmp
echo user_pref(\"network.http.max-persistent-connections-per-proxy\", 8); >> ffox.tmp
echo user_pref(\"network.http.max-persistent-connections-per-server\", 4); >> ffox.tmp
echo user_pref(\"nglayout.initialpaint.delay\", 0); >> ffox.tmp
echo user_pref(\"browser.cache.memory.capacity\", 65536); >> ffox.tmp
echo SYSFS{idVendor}==\"0483\", SYSFS{idProduct}==\"2016\", SYMLINK+=\"input/thinkfinger-%k\", MODE=\"0660\", GROUP=\"fingerprint\" >> thinkfinger.tmp
echo KERNEL==\"uinput\", MODE=\"0660\", GROUP=\"fingerprint\" >> thinkfinger.tmp
echo Section \"InputDevice\" >> xorg.tmp
echo Identifier \"Configured Mouse\" >> xorg.tmp
echo Driver \"evdev\" >> xorg.tmp
echo Option \"Phys\" \"*/input0\" >> xorg.tmp
echo Option \"Name\" \"Logitech G9 Laser Mouse\" >> xorg.tmp
echo Option \"HWHEELRelativeAxisButtons\" \"11 12\" >> xorg.tmp
echo Option \"WHEELRelativeAxisButtons\" \"4 5\" >> xorg.tmp
echo Option \"Emulate3Buttons\" \"false\" >> xorg.tmp
echo Option \"Buttons\" \"9\" >> xorg.tmp
echo EndSection >> xorg.tmp
echo \# Default gpsd settings. >> gpsd.tmp
echo \# Please do not edit this file directly - use \`dpkg-reconfigure gpsd\' to >> gpsd.tmp
echo \# change the options. >> gpsd.tmp
echo START_DAEMON=\"true\" >> gpsd.tmp
echo DAEMON_OPTS=\"\" >> gpsd.tmp
echo DEVICES=\"/dev/rfcomm0\" >> gpsd.tmp
echo USBAUTO=\"true\" >> gpsd.tmp
echo rfcomm0 \{ >> rfcomm.tmp
echo \# Automatically bind the device at startup >> rfcomm.tmp
echo bind yes; >> rfcomm.tmp
echo \# Bluetooth address of the device >> rfcomm.tmp
echo device 00:0d:b5:01:bb:78; >> rfcomm.tmp
echo \# RFCOMM channel \for the connection >> rfcomm.tmp
echo channel 1; >> rfcomm.tmp
echo \# Description of the connection >> rfcomm.tmp
echo comment \"BT-GPS-01BB78\"; >> rfcomm.tmp
echo \} >> rfcomm.tmp
touch /etc/udev/rules.d/60-thinkfinger.rules
cat thinkfinger.tmp>/etc/udev/rules.d/60-thinkfinger.rules
SWAPPI=$(cat sysctl.tmp | grep -i 'vm.swappiness')
RATIO=$(cat sysctl.tmp | grep -i 'vm.dirty_ratio')
BGRATIO=$(cat sysctl.tmp | grep -i 'vm.dirty_background_ratio')
PRESSURE=$(cat sysctl.tmp | grep -i 'vm.vfs_cache_pressure')
echo $SWAPPI>>/etc/sysctl.conf
echo $RATIO>>/etc/sysctl.conf
echo $BGRATIO>>/etc/sysctl.conf
echo $PRESSURE>>/etc/sysctl.conf
FFDIR=$(ls /home/$USRNA/.mozilla/firefox/ | grep -i '.default')
touch /home/$USRNA/.mozilla/firefox/$FFDIR/user.js
tail -19 ffox.tmp>/home/$USRNA/.mozilla/firefox/$FFDIR/user.js
cat xorg.tmp>>/etc/X11/xorg.conf
echo \"pointer = 1 2 3 4 5 8 9 6 7\" > /home/$USERNA/.Xmodmap
rm xorg.tmp
rm ffox.tmp
rm sysctl.tmp
rm thinkfinger.tmp
echo deb
http://wine.budgetdedicated.com/apt intrepid main \#WineHQ - Ubuntu 8.10 \"Intrepid Ibex\" >> /etc/apt/sources.list
echo deb
http://download.virtualbox.org/virtualbox/debian intrepid non-free \#Virtual BOX - Ubuntu 8.10 \"Intrepid Ibex\" >> /etc/apt/sources.list
echo deb
http://navit.latouche.info/ubuntu intrepid main \#Navit - Ubuntu 8.10 \"Intrepid Ibex\" >> /etc/apt/sources.list
apt-get -y install keyring* add-apt-key
wget -q
http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | apt-key add -
wget -q
http://download.virtualbox.org/virtualbox/...an/sun_vbox.asc -O- | apt-key add -
wget -q
http://packages.medibuntu.org/medibuntu-key.gpg -O - | apt-key add -
add-apt-key CB229096
wget
http://www.kegel.com/wine/winetricks
wget
http://liplianin.at.tut.by/dvb-usb-dw2102.fw --directory-prefix=/home/$USRNA
wget
http://www.medibuntu.org/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/medibuntu.list
wget
http://maps.navit-project.org/planet.bin --directory-prefix=/etc/navit
mv /home/$USRNA/dvb-usb-dw2102.fw /lib/firmware
chmod 777 winetricks
cp winetricks /usr/local/bin
rm winetricks
apt-get -y remove gnome-games gnome-games-data gnome-cards-data totem-gstreamer rhythmbox f-spot
apt-get -y update
apt-get -y --force-yes install preload powertop wine amarok openoffice.org teamspeak-client smbfs cabextract lm-sensors sensors-applet smartmontools powertop obexftp mercurial ssh openssh-server libxtst6 xinetd build-essential linux-headers-$(uname -r) ia32-libs libxt6 libxrender1 libc6-i386 gcc binutils-doc make manpages-dev autoconf automake1.9 libtool flex bison gdb libncurses-dev kernel-package nspluginwrapper gsfonts-x11 unixodbc xutils-dev odbcinst1debian1 p7zip-full hwinfo totem-xine totem-mozilla totem-plugins libxine1-all-plugins xine-plugin libxine1 libpam-thinkfinger thinkfinger-tools input-utils kaffeine gnome-vfs-obexftp usplash gstreamer0.10-ffmpeg libxine1-ffmpeg libgtk1.2 checkinstall googleearth non-free-codecs virtualbox-2.1 disk-manager lib32nss-mdns cheese navit gpsd linux-source libncurses5-dev compizconfig-backend-gconf
cp /etc/navit/navit.xml /home/$USRNA/.navit/navit.xml
sed -i "148 a\\</mapset\>" /home/$USRNA/.navit/navit.xml
sed -i "148 a\\<map type=\"binfile\" enabled=\"yes\" data=\"/etc/navit/planet.bin\"\/\>" /home/$USRNA/.navit/navit.xml
sed -i "148 a\\<mapset enabled=\"yes\"\>" /home/$USRNA/.navit/navit.xml
adduser $USRNA vboxusers
adduser root vboxusers
IDVBOXU=$(cat /etc/group | grep -i \'vboxusers\' | cut -d: -f3)
echo none /proc/bus/usb usbfs devgid=$IDVBOXU,devmode=666 0 0 > fstab.tmp
cat fstab.tmp>>/etc/fstab
cat gpsd.tmp>/etc/default/gpsd
cat rfcomm.tmp>/etc/bluetooth/rfcomm.conf
rm fstab.tmp
rm gpsd.tmp
rm rfcomm.tmp
apt-get clean all
apt-get -y dist-upgrade
apt-get autoclean
apt-get autoremove
clear
echo Bitte nun ALLES mit ja bestätigen
sensors-detect
clear
echo Bitte nun Fingerabdruck Erstellen
sleep 3
clear
tf-tool --acquire thinkfinger.bir
mv thinkfinger.bir /home/$USRNA/.thinkfinger.bir
sleep 1
echo Danke.
groupadd fingerprint
/sbin/udevadm trigger
gpasswd -a $USRNA fingerprint
chown $USRNA:root /home/$USERNA/.thinkfinger.bir
chmod 400 /home/$USERNA/.thinkfinger.bir
# adduser $USRNA fingerprint # wenn nach test user nicht in gruppe bitte aktivieren!
/usr/lib/pam-thinkfinger/pam-thinkfinger-enable
clear
echo Installiere DVB-S Karte
sleep 1
hg clone
http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb && make
cd v4l-dvb && 'make install'
rm -R v4l-dvb
echo
echo Sie sollten nun ihr System neu starten und nach dem Neustart das Script:
echo
echo Deskusr.sh
echo
echo ausführen.
[/codebox]