Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FELHNEV=$(w | awk '/x-session/ && /tty/ {print $1}')
- ## Backup
- cp /etc/apt/sources.list /etc/apt/sources.list.backup-$(date +%F-%N)
- ## Configure sources.list
- echo "# Debian security updates
- deb http://security.debian.org/ lenny/updates main contrib non-free
- deb-src http://security.debian.org/ lenny/updates main contrib non-free
- # Debian-volatile Project - http://www.debian.org/volatile/
- deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
- deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
- # Hungary mirror - http://www.debian.org/mirror/list
- #deb http://ftp.hu.debian.org/debian/ lenny main contrib non-free
- # Germany mirror
- deb http://ftp.de.debian.org/debian/ lenny main contrib non-free
- # Debian multimedia mirror - http://debian-multimedia.org/debian-m.php
- #deb http://debian-multimedia.fx-services.com/ stable main
- #deb-src http://debian-multimedia.fx-services.com/ stable main
- # Backports
- deb http://www.backports.org/debian lenny-backports main contrib non-free
- deb-src http://www.backports.org/debian lenny-backports main contrib non-free
- # Opera mirror
- deb http://deb.opera.com/opera/ lenny non-free
- # Google [for Picasa]
- deb http://dl.google.com/linux/deb/ testing non-free
- # Sun VirtualBox
- deb http://download.virtualbox.org/virtualbox/debian lenny non-free
- # Wine emulator
- deb http://www.lamaresh.net/apt lenny main" > /etc/apt/sources.list
- apt-get update -f
- ## Get the repositories public keys
- apt-get clean
- apt-get install -fy --force-yes debian-keyring debian-backports-keyring
- wget http://deb.opera.com/archive.key -O - | apt-key add -
- wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O - | apt-key add -
- wget http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O - | apt-key add -
- wget http://www.lamaresh.net/apt/key.gpg -O - | apt-key add -
- apt-get update -f
- apt-get remove --purge -y ffmpeg libavcodec51 libavdevice52 libavformat52 libavutil49 libpostproc51 libswscale0 vlc
- rm -r /home/$FELHNEV/.vlc
- apt-get install -y ffmpeg libavcodec51 libavdevice52 libavformat52 libavutil49 libpostproc51 libswscale0 vlc
Advertisement
Add Comment
Please, Sign In to add comment