Linux

From Sinfronteras
Revision as of 22:56, 20 January 2016 by Adelo Vieira (talk | contribs) (Creating a bootable Ubuntu USB flash drive from Ubuntu:)
Jump to: navigation, search

Instalación de Ubuntu

Creating a bootable Ubuntu USB flash drive from Ubuntu:

Install and run Startup Disk Creator alias usb-creator https://help.ubuntu.com/community/Installation/FromUSBStick

usb-creator-gtk
usb-creator-kde

1. Insert and mount the USB drive.

2. Start usb-creator.

El sistema de archivos debe ser FAT o creo que también EXT. No puede ser ntfs. Si el pendrive está en ntfs u otro filesystem inadecuado, el programa usb-creator dirá que no hay suficiente espacio en el dispositivo. Podemos en este caso utilizar la opción «Erase Disk» que formatea el dispositivo en FAT32. Luego de esto el dispositivo debería de estar disponible y habilitada la opción «Make Startup Disk» que permite iniciar la creación del bootable USB. También podemos formatear el dispositivo en FAT32 antes de iniciar el programa usb-creator [[Linux#

Cuando intenté crear el USB bootable en Ubuntu 14.04, el programa daba un error al final del proceso. Decía que no podía instalar el arranque. Luego intenté hacerlo en una versión antigua de Ubuntu que tenía instalada y el programa usb-creator ejecutaba el proceso de creación con éxito; sin embargo cuando intentaba bootear desde el dispositivo USB creado, se detenía el arranque y se mostraba un mensaje que decía:

Missing parameter in configuration file.

Luego encontré en un forum que dicho problema se solucionaba haciendo Tab, escribiendo live y Enter. Esto funcionó perfectamente y Ubuntu inició normalmente desde la memoria USB. http://askubuntu.com/questions/544414/missing-parameter-in-configuration-file-keyword-path

Al parecer también se puede crear a bootable Ubuntu USB flash drive usando: UnetBootin, LiliUSB or Universal USB Installer https://help.ubuntu.com/community/Boot-Repair


En la siguiente página se explica como podemos crear el bootable Ubuntu USB flash drive desde la línea de comandos. Sin embargo, no pude crearlo con éxito. Cuando arranqué desde el disco USB que creé, el SO no cargó correctamente. Cuando intenté crear el bootable USB encontré el siguiente error:

cp: no se puede crear el enlace simbólico «/media/adelo/D853-0856/./dists/stable»: Operación no permitida


http://askubuntu.com/questions/372607/how-to-create-a-bootable-ubuntu-usb-flash-drive-from-terminal

How can I create a Windows bootable USB stick with Ubuntu:

http://askubuntu.com/questions/289559/how-can-i-create-a-windows-bootable-usb-stick-with-ubuntu winusb


Proceso de instalación

En el proceso de instalación de Ubuntu 15.10 se propone de una vez la instalación de "Third-party sortwares" (algunos de estos son propietarios). Así, el sistema fue capaz de habilitar directamente el WiFi en mi computadora.

Creación y elección de la partición donde será instalado el SO

Para el particionamiento se pueden usar las opciones propuestas por instalador o podemos también hacer el particionamiento antes de iniciar el instalador a través del programa GParted.

La parte más delicada es cuando debemos crear (si no existe ya) y seleccionar la partición en la que se instalará el SO.

Todo disco duro permite un número máximo de particiones primarias. Por tanto, si el programa de creación de particiones no nos da la opción de crear una nueva partición es porque el número máximo de particiones fue alcanzado. Los disco duros permiten un máximo de cuatro (4) particiones primarias.

https://es.wikipedia.org/wiki/Partici%C3%B3n_de_disco

La partición swap

What is swap?

Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Swap space is used when your system decides that it needs physical memory for active processes and there is insufficient unused physical memory available. https://help.ubuntu.com/community/SwapFaq

Que tamaño debe tener la partición swap

How much swap do I need?

For less then 1GB of physical memory (RAM), it's highly recommended that the swap space should, as a base minimum, be equal to the amount of RAM. Also, it's recommended that the swap space is maximum twice the amount of RAM

For more modern systems (>1GB), your swap space should be at a minimum minimum be equal to your physical memory (RAM) size "if you use hibernation", otherwise you need a minimum of round(sqrt(RAM)) and a maximum of twice the amount of RAM. https://help.ubuntu.com/community/SwapFaq


I have 16GB RAM. Do I need 32GB swap?

It entirely depends on what you plan to do with the machine. For example if it were a Sap server then yes, I would add 32gb swap (we have boxes at work with 128gb ram and 32gb swap). If you were manipulating massive pictures and video then it makes sense to have a little swap. 32gb is probably overkill. http://askubuntu.com/questions/49109/i-have-16gb-ram-do-i-need-32gb-swap

Here's a very good recommendation from RedHat

In years past, the recommended amount of swap space increased linearly with the amount of RAM in the system. But because the amount of memory in modern systems has increased into the hundreds of gigabytes, it is now recognized that the amount of swap space that a system needs is a function of the memory workload running on that system. However, given that swap space is usually designated at install time, and that it can be difficult to determine beforehand the memory workload of a system, we recommend determining system swap using the following table. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s2-diskpartrecommend-ppc.html#id4394007

Amount of RAM in the system   Recommended swap space         Recommended swap space 
                                                             if allowing for hibernation
---------------------------   ----------------------------   ---------------------------
2GB of RAM or less            2 times the amount of RAM      3 times the amount of RAM
2GB to 8GB of RAM             Equal to the amount of RAM     2 times the amount of RAM
8GB to 64GB of RAM            0.5 times the amount of RAM    1.5 times the amount of RAM
64GB of RAM or more           4GB of swap space              No extra space needed


Donde colocar la partición Swap

Estuve leyendo y al parecer no importa donde la colocamos en el disco duro: al principio, en el medio o al final. It doesn’t matter where on the hard drive the swap partition is located (beginning, middle or the end).

Cosas que hacer después de instalar Ubuntu 15.10

Instalar GIMP

Instalé GParted


Instalar corrector ortográfico y gramatical en LibreOffice/OpenOffice

http://blog.desdelinux.net/instalar-corrector-ortografico-y-gramatical-en-libreofficeopenoffice/

sudo apt-get install myspell-es
sudo apt-get install myspell-fr
sudo apt-get install myspell-*

Comandos Linux

Para saber las características del hardware y del SO

Desplegar el SO instalado (detallando la versión)

lsb_release -a

http://askubuntu.com/questions/55609/how-do-i-check-system-specifications


Para saber si el SO instalado es 32 o 64bit

uname -a

Result for 32-bit Ubuntu:

   Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

whereas the 64-bit Ubuntu will show:

   Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux


O a través del comando:

getconf LONG_BIT


Para crear un archivo html detallado con todas las características del harware

sudo apt-get install sysinfo

then run something like

sudo lshw -html > mySpecs.html

then check the html file.


Para ver las particiones y dispositivos montados

Muestra las particiones o dispositivos montados en el orden en el que se encuentran en el disco duro. Es el único comando que conozco que las muestra en el orden correcto. Además da muestra el tamaño exacto de la partición (el tamaño exacto ajustado al momento del particionamiento. Los otros comandos no muestran este tamaño exacto; claro no sé cual es el tamaño correcto). Tambíen dice si la partición es de tipo Primaria, extendida o lógica y el File system. Muestra también las características del disco duro (tamaño, fabricante, modelo).

sudo parted /dev/sda then type print
sudo parted -l

Muestra todas las particiones en el disco y los dispositivos montados. Muestra el tamaño exacto de la partición y el File system.

lsblk -fm

Muestra todas las particiones en el disco y los dispositivos montados. Da información, aunque no tan precisa, del filesystem type de cada partición o dispositivo. Muestra también algunas características del disco duro (tamaño, modelo).

sudo fdisk -l

A través del comando mount podemos saber el tipo de sistemas de archivos de particiones/dispositivos montados (check filesystem type):

 mount

Al parecer el tipo fuseblk se refiere a una partición ntfs ver http://ubuntuforums.org/showthread.php?t=1096841


Muestra información sólo de particiones/dispositivos montados

df -h

Para saber la memoria RAM y Swap (total y en uso)

free -m

O graficamente en System > Administration > System monitor

Hay también otros comandos detallados aquí http://www.cyberciti.biz/faq/check-ram-in-ubuntu/


Información del procesador del sistema: núcleos, velocidad, fabricante

lscpu

Formatear una unidad Flash USB

http://tecadmin.net/format-usb-in-linux/#

https://ksearch.wordpress.com/2010/09/29/format-usb-in-linux/


$ sudo umount /dev/sdc1

Format with vFat FileSystem

$ sudo mkfs.vfat /dev/sdc1

Format with NTFS FileSystem

$ sudo mkfs.ntfs /dev/sdc1

Format with EXT4 FileSystem

$ sudo mkfs.ext4 /dev/sdc1


Screenshot Tool in Ubuntu

Aplicación para imprimir pantalla

Gnome Screenshot

https://doc.ubuntu-fr.org/gnome-screenshot

Gnome Screenshot est déjà installé par défaut sur Ubuntu

Lancer l'interface depuis le tableau de bord d'Unity à l'aide des mots-clés "capture d'écran" ou pour les menus classiques, Applications → Accessoires → Capture d'écran. Ou encore depuis un terminal avec la commande suivante:

gnome-screenshot -i


À l'aide de raccourcis: La convinación de tecla normal no me funciona, la siguiente sí: [ALT]+[IMPR] → Capturer la fenêtre active. En la página Web se pueden ver las otras convinaciones de tecla disponibles



Shutter