domingo, 26 de noviembre de 2017

Cómo instalar VirtualBox 5.1 en Debian 9 Stretch.


Para instalar VirtualBox en Debian 9 sólo hay que seguir los siguientes pasos:

Abrimos una terminal de súper usuario y hacemos:

apt-add-repository 'deb http://download.virtualbox.org/virtualbox/debian stretch contrib'

curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc

apt-key add oracle_vbox_2016.asc

apt-get update

apt-get install virtualbox-5.1

Después añadimos la extensión de VirtualBox 5.1:

wget http://download.virtualbox.org/virtualbox/5.1.22/Oracle_VM_VirtualBox_Extension_Pack-5.1.22-115126.vbox-extpack

Abrimos VirtualBox y vamos a: ARCHIVO / PREFERENCIAS / EXTENSIONES / INSTALAR

Seleccionamos la extensión descargada y damos a ACEPTAR.

Ya tenemos VirtualBox instalado en nuestro Debian 9.


¡Fácil, verdad?


Fuente: MasLinux.es

sábado, 25 de noviembre de 2017

Cómo poner MX Linux en español.


MX Linux es una distribución GNU/Linux basada en Debian que surge de la fusión de AntiX Linux y Mepis Linux.

Tiene como base el esritorio XFCE, tuneado y "adelgazado" al máximo para que pese lo mínimo posible en memoria Ram, tal y como hacían sus dos distros madre. Las herramientas que ofrece para la configuración del sistema son tremendamente livianas y muy completas.

Al instalarla me he encontrado con un problema: no había manera de pasarla completamente a español.

Buscando en Google encontré un método tremendamente simple,... abres una terminal como administrador y escribes:

env | grep LANG

Con esto te va a aparecer el idioma que tienes establecido en el sistema.

Para ponerlo en español:

export LANG=es_ES.UTF-8

En principio, ya es suficiente,... pero resulta que a mi no me bastó, por más que lo hice y que reiniciara el sistema, siempre me aparecía en inglés, por lo que tuve que recurrir a lo siguiente:

apt-get purge locales
apt-get install locales
dpkg-reconfigure locales

Nos aparecerá el listado de idiomas disponibles, donde seleccionaremos:

es_ES UTF-8

Nos aseguramos que todo está en español con el comando:

locale

Si hay algo que no está en español lo establecemos:

export LANGUAGE=es_ES.UTF-8 
export LANG=es_ES.UTF-8

Por último (a mí no me hizo falta) regeneramos todo con el siguiente comando:

locale-gen es_ES.UTF-8

Para terminar, deberías instalar los paquetes de idioma español de los programas que tengas instalados y que no venían instalados previamente, como por ejemplo:

apt-get install libreoffice-help-es libreoffice-l10n-es firefox-l10n-es-es gimp-help-es


Este mátodo te puede servir para poner en español cualquir distro que tiene como base XFCE, que aunque en principio te permite establecer el idioma del teclado, puede que el sistema se te quede en inglés.


¡Fácil, verdad?


_____________________________________________________________

Fuentes de esta entrada:

Raspberry Paratorpes (de donde obtuve la información principal de este post).

domingo, 12 de noviembre de 2017

Cambiar los colores de Plank.


Si usas Plank, lo mismo quieres personalizarlo un poco. Para ello puedes instalar una gran variedad de temas existentes, como los de estos enlaces:


Para instalarlos, sólo tienes que copiarlos en la ruta:

/home/TU_USUARIO/.local/share/plank/themes

Para seleccionar el tema y configurar más aspectos de Plank, abre una terminal y escribe:

plank --preferences

Se abrirá algo así:


No obstante, a pesar de todas las opciones, puede que lo único que desees sea cambiar el color del fondo del dock para que coincida con el mismo del decorador de ventanas que estes usando, por ejemplo.

Para ello vamos a abrir una herramienta que nos permita seleccionar el código de color, por ejemplo Gimp:



Una vez seleccionado el color, nos aparecerá un código parecido a esto: 4e4844



Ese es el código hexadecimal.

Después tendremos que transformar el código obtenido a código en formato RGB. Para ello nos vamos a la página: RapidTables

Pegamos el código y nos dará el nuevo código pero en formato RGB:




En el caso del ejemplo, hemos transformado el código hexadecimal 4e4844 a código RGB 78 72 68

Ahora nos vamos a:

/home/TU_USUARIO/.local/share/plank/themes


Allí seleccionamos el tema que queramos cambiar y editamos con gedit, mousepad, kate o con cualquier editor de texto plano el archivo:

dock.theme

Miramos el contenido del mismo, os pongo el tema de ejemplo NUMIX, que lo voy a cambiar al color de POP GTK (lo podéis descargar de este enlace). Incluso le puedes cambiar el nombre y copiarlo dentro de otra subcarpeta dentro de /plank/themes , así conservaremos los dos temas.

Contenido del archivo dock.theme:

--------------------------------------------------------------------------------------------------------------------
#This file auto-generated by Plank.
#2017-11-09T22:22:50+0000

[PlankTheme]
#The roundness of the top corners.
TopRoundness=2
#The roundness of the bottom corners.
BottomRoundness=0
#The thickness (in pixels) of lines drawn.
LineWidth=1
#The color (RGBA) of the outer stroke.
OuterStrokeColor=72;;72;;72;;255
#The starting color (RGBA) of the fill gradient.
FillStartColor=45;;45;;45;;255
#The ending color (RGBA) of the fill gradient.
FillEndColor=45;;45;;45;;255
#The color (RGBA) of the inner stroke.
InnerStrokeColor=45;;45;;45;;255

[PlankDockTheme]
#The padding on the left/right dock edges, in tenths of a percent of IconSize.
HorizPadding=0
#The padding on the top dock edge, in tenths of a percent of IconSize.
TopPadding=1.5
#The padding on the bottom dock edge, in tenths of a percent of IconSize.
BottomPadding=1.5
#The padding between items on the dock, in tenths of a percent of IconSize.
ItemPadding=5
#The size of item indicators, in tenths of a percent of IconSize.
IndicatorSize=5
#The size of the icon-shadow behind every item, in tenths of a percent of IconSize.
IconShadowSize=0
#The height (in percent of IconSize) to bounce an icon when the application sets urgent.
UrgentBounceHeight=1.6666666666666667
#The height (in percent of IconSize) to bounce an icon when launching an application.
LaunchBounceHeight=1
#The opacity value (0 to 1) to fade the dock to when hiding it.
FadeOpacity=1
#The amount of time (in ms) for click animations.
ClickTime=300
#The amount of time (in ms) to bounce an urgent icon.
UrgentBounceTime=600
#The amount of time (in ms) to bounce an icon when launching an application.
LaunchBounceTime=600
#The amount of time (in ms) for active window indicator animations.
ActiveTime=300
#The amount of time (in ms) to slide icons into/out of the dock.
SlideTime=300
#The time (in ms) to fade the dock in/out on a hide (if FadeOpacity is < 1).
FadeTime=250
#The time (in ms) to slide the dock in/out on a hide (if FadeOpacity is 1).
HideTime=150
#The size of the urgent glow (shown when dock is hidden), in tenths of a percent of IconSize.
GlowSize=30
#The total time (in ms) to show the hidden-dock urgent glow.
GlowTime=10000
#The time (in ms) of each pulse of the hidden-dock urgent glow.
GlowPulseTime=2000
#The hue-shift (-180 to 180) of the urgent indicator color.
UrgentHueShift=150
#The time (in ms) to move an item to its new position or its addition/removal to/from the dock.
ItemMoveTime=450
#Whether background and icons will unhide/hide with different speeds. The top-border of both will leave/hit the screen-edge at the same time.
CascadeHide=true
--------------------------------------------------------------------------------------------------------------------

Los números que os he puesto en negrita son los que hay que cambiar por los tres números que tiene el nuevo código obtenido... El número 255 se refiere a la opacidad del color, lo podéis dejar igual:

--------------------------------------------------------------------------------------------------------------------
.
.
.
#The color (RGBA) of the outer stroke.
OuterStrokeColor=78;;72;;68;;255
#The starting color (RGBA) of the fill gradient.
FillStartColor=78;;72;;68;;255
#The ending color (RGBA) of the fill gradient.
FillEndColor=78;;72;;68;;255
#The color (RGBA) of the inner stroke.
InnerStrokeColor=78;;72;;68;;255
.
.
.
--------------------------------------------------------------------------------------------------------------------

Así, al aplicar el nuevo tema, obtendréis un dock con el color que queráis.


¡Fácil, verdad!