Debian netinst testing
Partimos de una ISO y sólo instalamos el sistema base, sin escritorio, para dejar una instalación lo más ligera posible
i386
$ cd ~/Descargas && wget -c http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/debian-testing-i386-netinst.iso && cd ..
amd64
$ cd ~/Descargas && wget -c http://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-cd/debian-testing-amd64-netinst.iso && cd ..
i386
$ cd ~/Descargas && wget -c http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/debian-testing-i386-netinst.iso && cd ..
amd64
$ cd ~/Descargas && wget -c http://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-cd/debian-testing-amd64-netinst.iso && cd ..
Particiones
/dev/sda1 /
/dev/sda2 /home
/dev/sda3 /swap
/dev/sdb1 /Datos
Repositorio de DEBIAN Testing adecuado a una instalación casera
Abrimos terminal de ROOT
# gedit /etc/apt/sources.list
#
# TESTING
#
deb http://httpredir.debian.org/debian/ testing main contrib non-free
deb-src http://httpredir.debian.org/debian/ testing main contrib non-free
deb-src http://httpredir.debian.org/debian/ testing main contrib non-free
#
# UPDATES
#
deb http://httpredir.debian.org/debian/ testing-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ testing-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ testing-updates main contrib non-free
#
# SEGURIDAD
#
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
Actualizar sistema
# aptitude update && aptitude safe-upgrade && aptitude clean
Insertamos programas
Común
# aptitude install gnome-core xinit gnome-power-manager menu synaptic gufw gedit gdebi gparted vlc iceweasel-l10n-es-es rhythmbox nfs-common pavucontrol rsync seahorse initramfs-tools unrar rar p7zip-full unace unzip file-roller chromium chromium-l10n openssh-client pepperflashplugin-nonfree numlockx# aptitude install xserver-xorg-video-ati firmware-linux-nonfree libgl1-mesa-dri libgl1-mesa-glx brasero transmission icedove icedove-l10n-es-es easytag ntp nautilus-image-converter gimp asunder lame soundconverter nautilus-image-converter gnome-schedule calibre libreoffice-gnome libreoffice libreoffice-help-es libreoffice-calc libreoffice-impress ttf-mscorefonts-installer nfs-kernel-server cups hplip hpijs-ppds system-config-printer simple-scan sane-utils openssh-server fslint
# numlockx on
TV
# aptitude install xserver-xorg-video-ati firmware-linux-nonfree libgl1-mesa-dri libgl1-mesa-glx
# numlockx on
Portátil
# aptitude install xserver-xorg-video-intel xserver-xorg-input-synaptics laptop-mode-tools firmware-ralink calibre libreoffice-gnome libreoffice libreoffice-help-es libreoffice-calc libreoffice-impress
Minimizar el uso de SWAP
# gedit /etc/sysctl.conf
Y añadimos la siguiente línea al final del archivo:
#
# Añadido
#vm.swappiness=10
Configuración de GRUB2
Editaremos GRUB2 para que arranque en 3 segundos
# gedit /etc/default/grub
Buscaremos la línea que pone GRUB_TIMEOUT=5 y pondremos en su lugar GRUB_TIMEOUT=3
Después de cerrar tecleamos:
# update-grub
Configuración del servidor NFS
En PC otorgamos acceso de lectura a /Datos
# gedit /etc/exports
Y añadimos la siguiente línea al final del archivo:
# Compartimos DATOS para toda la red interna con permisos de lectura
/Datos *(ro)
# service nfs-kernel-server restart
Con esto vemos lo que hemos compartido
# showmount --exports localhost
En TV/Portátil podremos acceder al equipo PC en modo lectura de /Datos
# showmount -e 192.168.1.2
Creamos la carpeta /mnt/PC_Datos
# mkdir /mnt/PC_Datos
Montamos carpeta compartida por NFS
# mount -t nfs 192.168.1.2:/Datos /mnt/PC_Datos
Para montaje automático al iniciar el equipo añadimos esto en /etc/fstab
192.168.1.2:/Datos /mnt/PC_Datos nfs noauto,x-systemd.automount,rsize=8192,wsize=8192
Posteriormente volvemos a cargar /etc/fstab sin reiniciar el equipo
# mount -a
Ejecutar .sh desde Nautilus
Ejecutar dconf-editor, ir a org / gnome / nautilus / preferences y en executable-text-activation cambiar la opción a 'ask' (preguntar), ya que estaba en 'display' (ver)Mostrar directorios primero en Nautilus
Ejecutar dconf-editor, ir a org / gnome / nautilus / preferences y en sort-directories-first lo marcamos
Escritorio como defecto de Gnome-screenshoot
Añadir fuentes a LibreOffice (PC / Portátil) Descargamos el pack de fuentes de aquí y descomprimimos
# mkdir /usr/share/fonts/truetype/msoffice
# mv ~/Descargas/fuentesvista/* /usr/share/fonts/truetype/msoffice/
# fc-cache -f –v
Ya podemos abrir por ejemplo Libre Office Writer y fijarnos si disponemos de las nuevas fuentes:
- Calibri
- Cambria
- Candara
- Consolas
- Constantia
- Corbel
- Segoe ui
Mostrar red cableada (Portátil)
# gedit /etc/network/interfaces
Comentamos esto
allow-hotplug eth0
iface eth1 inet dhcp
y lo dejamos así
#allow-hotplug eth0
#iface eth1 inet dhcp
Poner IP fija
PC
192.168.1.2
TV
192.168.1.3
Portátil
192.168.1.4
Apple Air
192.168.1.5
Apple Air
192.168.1.5
Editamos las conexiones
Conexión cableada
Método manual
PC 192.168.1.2 255.255.255.0 192.168.1.1
TV 192.168.1.3 255.255.255.0 192.168.1.1
Portátil 192.168.1.4 255.255.255.0 192.168.1.1
Servidores DNS
208.67.222.222 208.67.220.220
Autorizar accesos a firewall (GUFW)
Permitiremos accesos a los siguientes puertos:
- SSH
- NFS
- Transmission (puerto 28001)
- SAMBA
- VNC
# ufw status
Status: active
To Action From
-- ------ ----
2049 ALLOW Anywhere
135,139,445/tcp ALLOW Anywhere
Anywhere ALLOW 135,139,445/tcp
137,138/udp ALLOW Anywhere
Anywhere ALLOW 137,138/udp
5900/tcp ALLOW Anywhere
28001/tcp ALLOW Anywhere
28001/udp ALLOW Anywhere
22/tcp ALLOW Anywhere
2049 ALLOW Anywhere (v6)
135,139,445/tcp ALLOW Anywhere (v6)
Anywhere (v6) ALLOW 135,139,445/tcp
137,138/udp ALLOW Anywhere (v6)
Anywhere (v6) ALLOW 137,138/udp
5900/tcp ALLOW Anywhere (v6)
28001/tcp ALLOW Anywhere (v6)
28001/udp ALLOW Anywhere (v6)
22/tcp ALLOW Anywhere (v6)
2049 ALLOW OUT Anywhere
135,139,445/tcp ALLOW OUT Anywhere
137,138/udp ALLOW OUT Anywhere
5900/tcp ALLOW OUT Anywhere
28001/tcp ALLOW OUT Anywhere
28001/udp ALLOW OUT Anywhere
22/tcp ALLOW OUT Anywhere
2049 ALLOW OUT Anywhere (v6)
135,139,445/tcp ALLOW OUT Anywhere (v6)
137,138/udp ALLOW OUT Anywhere (v6)
5900/tcp ALLOW OUT Anywhere (v6)
28001/tcp ALLOW OUT Anywhere (v6)
28001/udp ALLOW OUT Anywhere (v6)
22/tcp ALLOW OUT Anywhere (v6)
Scripts de Nautilus
Status: active
To Action From
-- ------ ----
2049 ALLOW Anywhere
135,139,445/tcp ALLOW Anywhere
Anywhere ALLOW 135,139,445/tcp
137,138/udp ALLOW Anywhere
Anywhere ALLOW 137,138/udp
5900/tcp ALLOW Anywhere
28001/tcp ALLOW Anywhere
28001/udp ALLOW Anywhere
22/tcp ALLOW Anywhere
2049 ALLOW Anywhere (v6)
135,139,445/tcp ALLOW Anywhere (v6)
Anywhere (v6) ALLOW 135,139,445/tcp
137,138/udp ALLOW Anywhere (v6)
Anywhere (v6) ALLOW 137,138/udp
5900/tcp ALLOW Anywhere (v6)
28001/tcp ALLOW Anywhere (v6)
28001/udp ALLOW Anywhere (v6)
22/tcp ALLOW Anywhere (v6)
2049 ALLOW OUT Anywhere
135,139,445/tcp ALLOW OUT Anywhere
137,138/udp ALLOW OUT Anywhere
5900/tcp ALLOW OUT Anywhere
28001/tcp ALLOW OUT Anywhere
28001/udp ALLOW OUT Anywhere
22/tcp ALLOW OUT Anywhere
2049 ALLOW OUT Anywhere (v6)
135,139,445/tcp ALLOW OUT Anywhere (v6)
137,138/udp ALLOW OUT Anywhere (v6)
5900/tcp ALLOW OUT Anywhere (v6)
28001/tcp ALLOW OUT Anywhere (v6)
28001/udp ALLOW OUT Anywhere (v6)
22/tcp ALLOW OUT Anywhere (v6)
Instalar certificados en CHROMIUM
Instalamos los siguientes certificados
Instalar la copia diaria de seguridad
Permitir sincronizar carpetas para las copias (CLIENTE / SERVIDOR)
Generamos en los CLIENTES (TV / Portatil) y el SERVIDOR (PC) las claves ssh para que no pida cada vez la contraseña
$ ssh-keygen -t rsa
Admitiremos todo y no escribiremos contraseña.
En los CLIENTES (TV / Portatil) agregaremos la clave pública, al fichero authorized_keys del usuario remoto del SERVIDOR (PC) con el que nos queramos identificar por ssh.
En los CLIENTES (TV / Portatil) agregaremos la clave pública, al fichero authorized_keys del usuario remoto del SERVIDOR (PC) con el que nos queramos identificar por ssh.
$ ssh-copy-id pacanis@192.168.1.2
$ rsync -avuz --delete --force -e ssh pacanis@192.168.1.2:/Datos/Seguridad /Datos
Más información aquí.
Añadir enlaces magnet links a Chromium
$ gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command 'transmission "%s"'
$ gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/needs_terminal false
$ gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true
Acelerar la carga de LibreOffice
Pondremos los siguientes valores dentro de Herramientas / Opciones / LibreOffice / Memoria
- Cantidad de pasos: 30
- Usar para OpenOffice.org: 128
- Memoria por objeto: 20
- Cantidad de objetos: 20
Extensiones de CHROMIUM
Themes de iconos
Copiamos la carpeta en ~/.icons o en usr/share/icons si queremos que sean accesibles para todos los usuarios del PC
Radio por internet
Ejecutaremos este script que nos dejará las emisoras en ~/.local/share/rhythmbox/rhythmdb.xml
Las emisoras que no están correctas tienen el símbolo @@@
Cadena Ser http://194.169.201.177:8085/liveser.mp3
RAC1 http://streaming3.radiocat.net:80
RAC105 http://streaming105.radiocat.net:80
Radio GNU Mundial http://audio.radiognu.org/radiognu.ogg
RNE http://radio1.rtve.stream.flumotion.com/rtve/radio1.mp3.m3u
M80 http://194.169.201.177:8085/liveM80.mp3
Los 40 Principales http://194.169.201.177:8085/live3.mp3
Cadena Dial http://194.169.201.177:8085/liveDial.mp3
Máxima http://194.169.201.177:8085/liveMaxima.mp3
Radio Clásica http://rtve.stream.flumotion.com/rtve/radioclasica.mp3.m3u
Radio 3 http://radio3.rtve.stream.flumotion.com/rtve/radio3.mp3.m3u
Radio 4 http://rtve.stream.flumotion.com/rtve/radio4.mp3.m3u
Radio 5 http://radio5.rtve.stream.flumotion.com/rtve/radio5.mp3.m3u
Cinemix http://209.9.238.4:6022/listen.pls
Extensiones de GNOME (desde Iceweasel)
Las emisoras que no están correctas tienen el símbolo @@@
Cadena Ser http://194.169.201.177:8085/liveser.mp3
RAC1 http://streaming3.radiocat.net:80
RAC105 http://streaming105.radiocat.net:80
Radio GNU Mundial http://audio.radiognu.org/radiognu.ogg
RNE http://radio1.rtve.stream.flumotion.com/rtve/radio1.mp3.m3u
M80 http://194.169.201.177:8085/liveM80.mp3
Los 40 Principales http://194.169.201.177:8085/live3.mp3
Cadena Dial http://194.169.201.177:8085/liveDial.mp3
Máxima http://194.169.201.177:8085/liveMaxima.mp3
Radio Clásica http://rtve.stream.flumotion.com/rtve/radioclasica.mp3.m3u
Radio 3 http://radio3.rtve.stream.flumotion.com/rtve/radio3.mp3.m3u
Radio 4 http://rtve.stream.flumotion.com/rtve/radio4.mp3.m3u
Radio 5 http://radio5.rtve.stream.flumotion.com/rtve/radio5.mp3.m3u
Cinemix http://209.9.238.4:6022/listen.pls
Extensiones de GNOME (desde Iceweasel)