Showing posts with label archlinux. Show all posts
Showing posts with label archlinux. Show all posts

Sunday, August 4, 2013

[Tutorial] ¿Qué hacer luego de instalar ArchLinux?

¿Qué hacer luego de instalar ArchLinux?



Mi computador principal tiene ArchLinux instalado por el momento y lo estoy disfrutando mucho.

He decidido hacer este post un poco diferente que los anteriores porque si han logrado instalar Arch en su computador deben tener un conocimiento bastante bueno de Linux.

Si desean instalar Arch


La instalación de ArchLinux no es algo simple. Si quieren ver lo que les espera les dejo estos dos posts (en inglés). Así pueden ver lo que van a tener que hacer dependiendo de donde quieran instalar Arch.

Beginners' Guide - ArchWiki

Build a Killer Customized Arch Linux Installation - LifeHacker

Les recomiendo que no lo intenten en su computador principal porque es muy probable que no lo logren al primer intento. Practicar en una máquina virtual puede darles una primera idea de como van a tener que proceder.

¿Por qué quisiera instalar Arch?


Random meme motivador
La idea detrás de Arch es tener un sistema ligero que recibe siempre las últimas actualizaciones. Entonces van a usar siempre los últimos kernels o las últimas versiones de los programas y paquetes que tengan instalados.

A mucho usuarios les gusta ArchLinux porque deben hacer prácticamente todo desde 0. Es decir que uno debe crear sus propias particiones y elegir el sistema de archivos, hay que habilitar la conexión a Internet, entre otras cosas...

He sido usuario de Ubuntu desde que comencé a usar Linux, intenté algunas otras distribuciones pero nunca me logré adaptar al cambio. Con Arch ha sido diferente justamente porque siento que soy dueño del sistema operativo que está instalado en mi máquina. Instalé los paquetes que necesitaba y las cosas que me gustan, nada más ni nada menos y eso es genial.

Mi desktop en Arch

Instalar software, añadir paquetes, usar el Wiki


Los dos tutoriales que cité al principio les darán un sistema bastante básico. Pero para poder aumentar la funcionalidad de su instalación lo único que necesitan es un emulador de Terminal.


En ArchLinux van a tener que usar pacman para instalar nuevos paquetes y programas. Es bastante fácil, estos son unos comandos que van a usar probablemente todo el tiempo.

Si quieren instalar algo lo único que necesitan ejecutar:

sudo pacman -S <nombre_del_paquete>

Si quieren buscar un paquete en los repositorios

sudo pacman -Ss <nombre_del_paquete>

Si quieren desinstalar algo

sudo pacman -R <nombre_del_paquete>

Y si quieren actualizar su sistema

sudo pacman -Syu

Lo que les recomiendo, antes de que se pongan a instalar paquetes como locos es hablitar los repositorios multilib.

Editen el archivo de configuración en /etc/pacman.conf

Quiten los comentarios en las líneas:

[multilib]
Include = /etc/pacman.d/mirrorlist


El ArchWiki va a ser su mejor amigo mientras usen Arch. Si quieren información sobre como instalar un programa pueden buscar información en el ArchWiki y van a encontrar como instalarlo y como resolver los problemas más comunes (si es que lo tienen).

Lo que es genial sobre el ArchWiki es que en la mayoría de casos lo que está explicado en los artículos se aplica para todas las distribuciones de Linux. Definitivamente es una gran fuente de documentación.

Si quieren una lista de software que puede interesarles pueden ver cualquiera de mis posts de ¿Qué hacer luego de instalar <cualquier distro>?

Para Ubuntu 13.04 por ejemeplo:

¿Qué hacer luego de instalar Ubuntu 13.04?

Usar los AUR


Si no encuentran un programa en los repositorios oficiales, la otra forma de instalar lo que deseen, es descargando un tarball desde los Arch User Repositories (AUR). Luego de descargar el paquete hay que compilarlo , puede sonar un poco complicado pero en realidad es muy fácil.

La primera vez van a tener que asegurarse que tienen las herramientas básicas de desarrollo:

sudo pacman -S base-devel

Primero busquen el paquete que quieran en la página de AUR y descarguen la tarball. Luego van a tener que extraerla:

tar xvf <the_tarball>.tar.gz

Vayan a la carpeta que se creó y usen makepkg, la opción -s va a resolver las dependencias

makepkg -s

Esto va a compilar el paquete y va a crear un .tar.xz el último paso es instalar el paquete con pacman

sudo pacman -U <the_build>.tar.xz

Algunas notas y problemas que he encontrado


En mi computador tengo un dispositivo Broadcom Wireless, tuve que instalar el paquete broadcom-wl para poder usar mi Wifi pero NetworkManager no puede conectarse a internet, por el momento no he encontrado una solución :(

Cuando estaba tratando de instalar Steam tenía un problema con gpg lo que solucionó mi problema fueron estos comandos:

sudo pacman-key --refresh-keys
sudo gpg --homedir /etc/pacman.d/gnupg --edit-key 182ADEA0 enable quit


Asegúrense de ver el ArchWiki post sobre Steam. A lo mejor necesiten instalar algunas librerías. En mi caso tuve que instalar lib32-intel-dri para tener un buen rendimiento.

Les gustó este post? No se olviden de agregarme a sus círculos en G+ o de seguirme en Twitter: @RobertoXMed

Si pueden y quieren no olviden hacer una Donación (por Paypal) para el blog chimbo así podré seguir haciendo gran contenido.

Wednesday, July 31, 2013

[To do] Things to do after installing ArchLinux

Things to do after installing ArchLinux



My main system is running Arch for the moment and I am loving it.

I decided to make this post a little different from the previous ones, because if you have installed Arch you have a good knowledge of Linux.

If you plan to install Arch


The installation of ArchLinux is not an easy thing. You can check this two guides that I followed to have an idea of what you will need to do.

Beginners' Guide - ArchWiki

Build a Killer Customized Arch Linux Installation - LifeHacker

You may want to try it in a different machine because you may not be able to make everything run the first try.

Why would I want to install Arch?


Random motivation meme
The idea behind Arch is to have a lightweight distribution that receives always the latests updates. So you will always run the latests kernels and the latests versions of everything.

Many users like ArchLinux because you do almost everything from scratch. You create your partitions and choose your filesystem, you enable your network...

I have been an Ubuntu user since I started using Linux, I have tried other distros but I wasn't fully satisfied with them. With Arch it has been different because I feel like I own the OS. I build it the way I like it and that feels actually great.

My desktop in Arch

Installing software, adding packages, using the Wiki


The two tutorials that I mentioned will allow you to install a very basic installation. But let's be honest the only thing you need to get everything you want, is a Terminal emulator.


In ArchLinux you will have to install new software using pacman it's very easy actually.

If you want to install something you only need to run

sudo pacman -S <package_name>

If you want to search for a package

sudo pacman -Ss <package_name>

If you want to remove a package

sudo pacman -R <package_name>

And if you want to update your system

sudo pacman -Syu

What I recommend you to do before starting installing everything that you want is to enable multilib repositories.

Go ahead and edit the pacman configuration file in /etc/pacman.conf

Uncomment the lines

[multilib]
Include = /etc/pacman.d/mirrorlist


The ArchWiki is your best friend while you are using Arch. If you want some information about how to install a package you can search information in the ArchWiki about Bumblebee for example, it will tell you how to install it and test it.

What is great about the ArchWiki is that it applies most of the time for Linux in general. It's a great source of documentation.

If you want a list of software you may want to install, you can check my posts about Top Things to Do for any distro.

For Ubuntu 13.04 for example:

Top things to do after installing Ubuntu 13.04

Using the AUR


If you don't find the program that you want in the repositories the easiest way to install what you want is to download a tarball from the Arch User Repositories (AUR) build the package and install it using pacman. It sounds very complicated but you get used to doing this.

The really first time you do this you need to install basic development tools:

sudo pacman -S base-devel

First search for the package that you want in the AUR website and download the tarball. Then you need to extract it:

tar xvf <the_tarball>.tar.gz

Go to the extracted directory and run makepkg, the -s option is used to install dependencies

makepkg -s

This will build the package and create a .tar.xz and the last step is to install that build with pacman

sudo pacman -U <the_build>.tar.xz

Some notes about problems I have encountered


I use a Broadcom Wireless device and I have to use the broadcom-wl package from the AUR. My interface gets renamed from time to time and NetworkManager isn't able to connect. I haven't figured out what is causing the problem yet. :(

EDIT (02/09/13): My problem with Network Manager and with the weird interface name was caused by a systemd service. In the wiki it tells you to enable dhcpd service if you don't have a network connection. I had to do it and that basically caused my wireless interface to have weird names like "eth0".
If you have that problem you need to disable dhcpd with

sudo systemctl disable dhcpd.service

If you enabled or installed another service, in my case netctl make sure you uninstall it in order to use Network Manager.

Then simply start Network Manager with:

sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager

If you need a 3G connection install Modem Manager and enable it:

sudo systemctl enable ModemManager
sudo systemctl start ModemManager

Looking good Arch
When I was trying to install Steam I had a gpg signature problem what solved my problem was running the following commands:

sudo pacman-key --refresh-keys
sudo gpg --homedir /etc/pacman.d/gnupg --edit-key 182ADEA0 enable quit


Make sure you check the ArchWiki post about Steam. You may need some libraries , I needed the package lib32-intel-dri in order to fix performance issues.

If you use Bumblebee I recommend you to launch steam with primusrun:

primusrun steam

Did you like this post? Don't forget to add me to your circles in G+ or to follow me on Twitter: @RobertoXMed .

If you can and if you want, don't forget to Donate so I can keep up the good work.