Guest User

gbor

a guest
May 27th, 2009
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. FELHNEV=$(w | awk '/x-session/ && /tty/ {print $1}')
  4.  
  5.  
  6. ## Backup
  7. cp /etc/apt/sources.list /etc/apt/sources.list.backup-$(date +%F-%N)
  8.  
  9.  
  10. ## Configure sources.list
  11. echo "# Debian security updates
  12. deb http://security.debian.org/ lenny/updates main contrib non-free
  13. deb-src http://security.debian.org/ lenny/updates main contrib non-free
  14.  
  15. # Debian-volatile Project - http://www.debian.org/volatile/
  16. deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
  17. deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
  18.  
  19. # Hungary mirror - http://www.debian.org/mirror/list
  20. #deb http://ftp.hu.debian.org/debian/ lenny main contrib non-free
  21.  
  22. # Germany mirror
  23. deb http://ftp.de.debian.org/debian/ lenny main contrib non-free
  24.  
  25. # Debian multimedia mirror - http://debian-multimedia.org/debian-m.php
  26. #deb http://debian-multimedia.fx-services.com/ stable main
  27. #deb-src http://debian-multimedia.fx-services.com/ stable main
  28.  
  29. # Backports
  30. deb http://www.backports.org/debian lenny-backports main contrib non-free
  31. deb-src http://www.backports.org/debian lenny-backports main contrib non-free
  32.  
  33. # Opera mirror
  34. deb http://deb.opera.com/opera/ lenny non-free
  35.  
  36. # Google [for Picasa]
  37. deb http://dl.google.com/linux/deb/ testing non-free
  38.  
  39. # Sun VirtualBox
  40. deb http://download.virtualbox.org/virtualbox/debian lenny non-free
  41.  
  42. # Wine emulator
  43. deb http://www.lamaresh.net/apt lenny main" > /etc/apt/sources.list
  44. apt-get update -f
  45.  
  46.  
  47. ## Get the repositories public keys
  48. apt-get clean
  49. apt-get install -fy --force-yes debian-keyring debian-backports-keyring
  50. wget http://deb.opera.com/archive.key -O - | apt-key add -
  51. wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O - | apt-key add -
  52. wget http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O - | apt-key add -
  53. wget http://www.lamaresh.net/apt/key.gpg -O - | apt-key add -
  54. apt-get update -f
  55.  
  56. apt-get remove --purge -y ffmpeg libavcodec51 libavdevice52 libavformat52 libavutil49 libpostproc51 libswscale0 vlc
  57. rm -r /home/$FELHNEV/.vlc
  58. apt-get install -y ffmpeg libavcodec51 libavdevice52 libavformat52 libavutil49 libpostproc51 libswscale0 vlc
Advertisement
Add Comment
Please, Sign In to add comment