c
 
Debian Repositorios
 
Debian lenny
 

#############################################################
################### OFFICIAL DEBIAN REPOS ###################
#############################################################

###### Debian Main Repos
deb http://ftp.es.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.es.debian.org/debian/ lenny main contrib non-free

###### Debian Update Repos
deb http://security.debian.org/ lenny/updates main contrib non-free
deb http://ftp.es.debian.org/debian/ lenny-proposed-updates main contrib non-free
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://ftp.es.debian.org/debian/ lenny-proposed-updates main contrib non-free
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

##############################################################
##################### UNOFFICIAL REPOS ######################
##############################################################

###### 3rd Party Binary Repos

#### Debian Backports - http://www.backports.org
## Run this command: gpg --keyserver hkp://subkeys.pgp.net --recv-keys 16BA136C && gpg --export 16BA136C | apt-key add -
deb http://www.backports.org/debian lenny-backports main contrib non-free

#### Debian Eee PC - http://wiki.debian.org/DebianEeePC
## Run this command: wget -q http://eeepc.debian.net/debian/archive-key-eeepc.asc -O- | apt-key add -
deb http://eeepc.debian.net/debian lenny main contrib non-free

#### Debian Multimedia - http://www.debian-multimedia.org/
## Run this command: apt-get update && apt-get install debian-multimedia-keyring && apt-get update
deb http://www.debian-multimedia.org/ lenny main

#### Debian Unofficial - http://debian-unofficial.org/
## Run this command: apt-get install debian-unofficial-archive-keyring
deb http://ftp.debian-unofficial.org/debian lenny main contrib non-free restricted

#### Debian-Volatile for end users - http://www.debian.org/volatile/
## Run this command: apt-get install debian-archive-keyring
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

#### Dotdeb - http://www.dotdeb.org
deb http://packages.dotdeb.org stable all

#### E17 - http://enlightenment.org
## Run this command: wget -q http://packages.enlightenment.org/repo.key -O- | apt-key add -
deb http://packages.enlightenment.org/debian lenny main extras

#### Esmska - http://code.google.com/p/esmska/
## Run this command: wget -q -O - http://repo.palatinus.cz/repo.key | apt-key add -
deb http://repo.palatinus.cz/stable /

#### Google Linux Software Repositories - http://www.google.com
## Run this command: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && apt-get update
deb http://dl.google.com/linux/deb/ stable all

#### Google Linux Software Repositories (testing) - http://www.google.com
## Run this command: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && apt-get update
deb http://dl.google.com/linux/deb/ testing non-free

#### KDE 4.1.x backports - http://kde4.debian.net/
deb http://kde4.debian.net/ lenny main

#### Lenny and a Half - http://wiki.debian.org/LennyAndAHalf
deb ftp://ftp.debian.org/debian lenny-proposed-updates main

#### Skype - www.skype.com
## Run this command: gpg --keyserver pgp.mit.edu --recv-keys 0xd66b746e && gpg --export --armor 0xd66b746e | apt-key add -
http://download.skype.com/linux/repos/debian/ stable non-free

#### The Opera .deb Repository - http://deb.opera.com/
## Run this command: wget -O - http://deb.opera.com/archive.key | apt-key add -
deb http://deb.opera.com/opera/ stable non-free

#### VirtualBox - http://www.virtualbox.org
## Run this command: wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | apt-key add -
deb http://download.virtualbox.org/virtualbox/debian lenny non-free

#### Webmin - http://webmin.com/
## Run this command: wget -q http://www.webmin.com/jcameron-key.asc -O- | apt-key add -
deb http://download.webmin.com/download/repository sarge contrib

#### Wicd - http://wicd.net/
## Run this command: wget -q http://apt.wicd.net/wicd.gpg -O- | apt-key add -
deb http://apt.wicd.net lenny extras

#### Wine - http://www.winehq.org/
## Run this command: wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | apt-key add -
deb http://www.lamaresh.net/apt lenny main

####### 3rd Party Source Repos

#### Debian Eee PC (Source) - http://wiki.debian.org/DebianEeePC
## Run this command: wget -q http://eeepc.debian.net/debian/archive-key-eeepc.asc -O- | apt-key add -
deb-src http://eeepc.debian.net/debian lenny main contrib non-free

#### Dotdeb (Source) - http://www.dotdeb.org
deb http://packages.dotdeb.org stable all

#### Wine (Source) - http://www.winehq.org/
## Run this command: wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | apt-key add -
deb-src http://www.lamaresh.net/apt lenny main

 
 
Debian Squeeze
 

#############################################################
################### OFFICIAL DEBIAN REPOS ###################
#############################################################

###### Debian Main Repos
deb http://ftp.es.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.es.debian.org/debian/ squeeze main contrib non-free

###### Debian Update Repos
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://ftp.es.debian.org/debian/ squeeze-proposed-updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://ftp.es.debian.org/debian/ squeeze-proposed-updates main contrib non-free

##############################################################
##################### UNOFFICIAL REPOS ######################
##############################################################

###### 3rd Party Binary Repos

#### Debian Eee PC - http://wiki.debian.org/DebianEeePC
## Run this command: wget -q http://eeepc.debian.net/debian/archive-key-eeepc.asc -O- | apt-key add -
deb http://eeepc.debian.net/debian squeeze main contrib non-free

#### Debian Multimedia - http://www.debian-multimedia.org/
## Run this command: apt-get update && apt-get install debian-multimedia-keyring && apt-get update
deb http://www.debian-multimedia.org/ squeeze main

#### Debian Unofficial - http://debian-unofficial.org/
## Run this command: apt-get install debian-unofficial-archive-keyring
deb http://ftp.debian-unofficial.org/debian squeeze main contrib non-free restricted

#### E17 - http://enlightenment.org
## Run this command: wget -q http://packages.enlightenment.org/repo.key -O- | apt-key add -
deb http://packages.enlightenment.org/debian squeeze main extras

#### Esmska - http://code.google.com/p/esmska/
## Run this command: wget -q -O - http://repo.palatinus.cz/repo.key | apt-key add -
deb http://repo.palatinus.cz/stable /

#### Google Linux Software Repositories - http://www.google.com
## Run this command: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && apt-get update
deb http://dl.google.com/linux/deb/ stable all

#### Google Linux Software Repositories (testing) - http://www.google.com
## Run this command: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && apt-get update
deb http://dl.google.com/linux/deb/ testing non-free

#### Skype - www.skype.com
## Run this command: gpg --keyserver pgp.mit.edu --recv-keys 0xd66b746e && gpg --export --armor 0xd66b746e | apt-key add -
http://download.skype.com/linux/repos/debian/ stable non-free

#### The Opera .deb Repository - http://deb.opera.com/
## Run this command: wget -O - http://deb.opera.com/archive.key | apt-key add -
deb http://deb.opera.com/opera/ testing non-free

#### Webmin - http://webmin.com/
## Run this command: wget -q http://www.webmin.com/jcameron-key.asc -O- | apt-key add -
deb http://download.webmin.com/download/repository sarge contrib

#### Wine - http://www.winehq.org/
## Run this command: wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add -
deb http://www.lamaresh.net/apt squeeze main

####### 3rd Party Source Repos

#### Debian Eee PC (Source) - http://wiki.debian.org/DebianEeePC
## Run this command: wget -q http://eeepc.debian.net/debian/archive-key-eeepc.asc -O- | apt-key add -
deb-src http://eeepc.debian.net/debian squeeze main contrib non-free

#### Wine (Source) - http://www.winehq.org/
## Run this command: wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add -
deb-src http://www.lamaresh.net/apt squeeze main

 
 
Debian SID
 

#############################################################
################### OFFICIAL DEBIAN REPOS ###################
#############################################################

###### Debian Main Repos
deb http://ftp.es.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.es.debian.org/debian/ sid main contrib non-free

###### Debian Update Repos
deb http://security.debian.org/ sid/updates main contrib non-free
deb http://ftp.es.debian.org/debian/ sid-proposed-updates main contrib non-free
deb-src http://security.debian.org/ sid/updates main contrib non-free
deb-src http://ftp.es.debian.org/debian/ sid-proposed-updates main contrib non-free

##############################################################
##################### UNOFFICIAL REPOS ######################
##############################################################

###### 3rd Party Binary Repos

#### Debian Eee PC - http://wiki.debian.org/DebianEeePC
## Run this command: wget -q http://eeepc.debian.net/debian/archive-key-eeepc.asc -O- | apt-key add -
deb http://eeepc.debian.net/debian sid main contrib non-free

#### Debian Multimedia - http://www.debian-multimedia.org/
## Run this command: apt-get update && apt-get install debian-multimedia-keyring && apt-get update
deb http://www.debian-multimedia.org/ sid main

#### Debian Unofficial - http://debian-unofficial.org/
## Run this command: apt-get install debian-unofficial-archive-keyring
deb http://ftp.debian-unofficial.org/debian sid main contrib non-free restricted

#### E17 - http://enlightenment.org
## Run this command: wget -q http://packages.enlightenment.org/repo.key -O- | apt-key add -
deb http://packages.enlightenment.org/debian sid main extras

#### Esmska - http://code.google.com/p/esmska/
## Run this command: wget -q -O - http://repo.palatinus.cz/repo.key | apt-key add -
deb http://repo.palatinus.cz/stable /

#### Google Linux Software Repositories - http://www.google.com
## Run this command: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && apt-get update
deb http://dl.google.com/linux/deb/ stable all

#### Google Linux Software Repositories (testing) - http://www.google.com
## Run this command: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && apt-get update
deb http://dl.google.com/linux/deb/ testing non-free

#### Skype - www.skype.com
## Run this command: gpg --keyserver pgp.mit.edu --recv-keys 0xd66b746e && gpg --export --armor 0xd66b746e | apt-key add -
http://download.skype.com/linux/repos/debian/ stable non-free

#### The Opera .deb Repository - http://deb.opera.com/
## Run this command: wget -O - http://deb.opera.com/archive.key | apt-key add -
deb http://deb.opera.com/opera/ unstable non-free

#### Webmin - http://webmin.com/
## Run this command: wget -q http://www.webmin.com/jcameron-key.asc -O- | apt-key add -
deb http://download.webmin.com/download/repository sarge contrib

#### Wine - http://www.winehq.org/
## Run this command: wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add -
deb http://www.lamaresh.net/apt sid main

####### 3rd Party Source Repos

#### Debian Eee PC (Source) - http://wiki.debian.org/DebianEeePC
## Run this command: wget -q http://eeepc.debian.net/debian/archive-key-eeepc.asc -O- | apt-key add -
deb-src http://eeepc.debian.net/debian sid main contrib non-free

#### Debian Multimedia (Source) - http://www.debian-multimedia.org/
## Run this command: apt-get update && apt-get install debian-multimedia-keyring && apt-get update
deb-src http://www.debian-multimedia.org/ sid main

#### Wine (Source) - http://www.winehq.org/
## Run this command: wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add -
deb-src http://www.lamaresh.net/apt sid main

 
Grub2
 

After reinstalling Windows in the computer dual boot with both Windows and Ubuntu Linux,you need restore grub because mbr has been rewritten.This tutorial shows how to restore grub 2.

Update:Today I ghost my XP system,but after restore grub,I cannot boot into XP by clicking the old windows option in grub menu.So you’d better to run this command to renew the grub2 boot list after trying following method:

sudo update-grub

1).Using grub4dos
First download grub4dos from here.
1. For XP user,copy the file “grldr”(without quotes) from grub4dos package to C:\.Edit boot.ini (hidden file in C:\) and add this line to the file:

c:\grldr="grub4dos"

For Vista/win7 user,copy the file “grldr”,”grldr.mbr” to C:\.Create boot.ini file in the root directory of C:,copy and paste following into this file.

[boot loader]
timeout=0
default=c:\grldr.mbr
[operating systems]
C:\grldr.mbr="Grub4Dos"

2. Now,create menu.lst in root directory of C:,its content:

timeout 0
default 0
title grub2
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot

Restart computer,and select boot from Grub4Dos.Then select boot up Ubuntu in grub menu.
Once login,use this command to install grub into mbr:

sudo grub-install /dev/sda

2).Using Ubuntu 9.10 livecd
Here assuming the Ubuntu partition is sda7,and /boot partition is sda6 (if you have a separate /boot partition).
Boot up ubuntu from the livecd,open terminal and run:

sudo -i
mount /dev/sda7 /mnt
mount /dev/sda6 /mnt/boot #skip this one if not have a separate /boot partition
grub-install --root-directory=/mnt/ /dev/sda

If you miss “grub.cfg” file,use following to recreate:

mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit

3).Using the cd/usb boot up with grub
Boot up the cd/usb,press c in grub menu.Type:

grub>find /boot/grub/core.img
grub>root (hdx,y) (previous command will output the x,y)
grub>kernel /boot/grub/core.img
grub>boot

After the boot command,you’ll go into grub2 menu.Select to boot up ubuntu,and run this command to restore grub:

sudo grub-install /dev/sda