Follow posts tagged #archlinux in seconds.

Sign up

Starting a resque worker on an archlinux setup

Problem

You get an error saying something like “hostname” not known or

undefined method `chomp’ for nil:NilClass

when trying to start a resque worker.

Reason

Hostname utility moved from net-tools to inetutils.

Resque is actually trying to start the hostname utility.

File 'lib/resque/worker.rb', line 467
@hostname ||= `hostname`.chomp
Solution

Install inetutils :)

yaourt inetutils

bash4 expansions tip

Will be helpful for Archers who owns and/or edits PKGBUILDs:

$ pkgver=1.2.3-beta1
$ echo ${pkgver^^}
1.2.3-BETA1
$ echo ${_pkgdir//-/_}
1.2.3_BETA1

How to Get on IPv6 *Now*

Via Freenet6 Client gogoc (Arch Linux instructions)

1. Install gogoc with your favorite AUR helper.

% sudo packer -S gogoc

2. Remove the ‘-b’ switch on line 14 of the gogocd service script.

% sudo vim /etc/rc.d/gogocd

3. Start the gogocd daemon.

% /etc/rc.d/gogocd start

4. Ping ipv6.google.com.

% ping6 -c4 -n ipv6.google.com 
PING ipv6.google.com(2607:f8b0:4001:c01::67) 56 data bytes
64 bytes from 2607:f8b0:4001:c01::67: icmp_seq=1 ttl=50 time=266 ms
64 bytes from 2607:f8b0:4001:c01::67: icmp_seq=2 ttl=50 time=267 ms
64 bytes from 2607:f8b0:4001:c01::67: icmp_seq=3 ttl=50 time=266 ms
64 bytes from 2607:f8b0:4001:c01::67: icmp_seq=4 ttl=50 time=279 ms

--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 266.395/270.022/279.512/5.506 ms
%

Feel free to add gogocd to your /etc/rc.conf daemons list. Also, you can register an account on Freenet6 (http://gogonet.gogo6.com/page/freenet6-registration) and edit /etc/gogoc/gogoc.conf to connect with this account, instead of connecting anonymously to the tunnel. This will can give you a steady IPv6 address and some of the other Freenet6 features.



Via a Free IPv6 Tunnel Broker

1. Register an account at a free IPv6 Tunnel Broker, such as Hurricane Electric (http://tunnelbroker.net/register.php) or SixXS (http://www.sixxs.net/signup/create/).

2. Log in and create a new tunnel on Hurricane Electric or SixXS.

3. Copy the two scripts below, and fill out the server IPv4 and client IPv6 variables with your tunnel information in ipv6_6in4_up.sh.

For a more robust, dynamic IPv4 endpoint updating tunnel script specifically for Hurricane Electric Free IPv6 tunnels, see my ipv6_he_up.sh script here: https://gist.github.com/1369204.

4. Run ipv6_6in4_up.sh to create the tunnel, and then ping ipv6.google.com:

% ./ipv6_6in4_up.sh
% ping6 -c4 -n ipv6.google.com
PING ipv6.google.com(2607:f8b0:4001:c01::93) 56 data bytes
64 bytes from 2607:f8b0:4001:c01::93: icmp_seq=1 ttl=56 time=34.6 ms
64 bytes from 2607:f8b0:4001:c01::93: icmp_seq=2 ttl=56 time=34.7 ms
64 bytes from 2607:f8b0:4001:c01::93: icmp_seq=3 ttl=56 time=34.6 ms
64 bytes from 2607:f8b0:4001:c01::93: icmp_seq=4 ttl=56 time=34.9 ms

--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 34.637/34.747/34.904/0.213 ms
%  

Welcome to the IPv6 internet!

Disclaimer: Some of the instructions above may require minor tweaks to fit your particular configuration.

Archlinux

And I’m back on archlinux after being away 4 months, everything working after a few hours bug hunting.

my short love affair with windows 7 came to an end.

Como instalar fuentes para Archlinux Gnome3

Hola a todos, hace aproximadamente 5 meses que estoy usando el sistema operativo de Archlinux y como muchos se habrán dado cuenta hay que instalar todo desde cero.

Actualmente uso Archlinux para Diseño Gráfico usando Gimp e Inkscape, y hace pocos dias necesite usar un estilo de fuente que no esta instalada por defecto asi que investigue y resolvi el problema y pude instalar toda clase de fuentes para mi Archlinux.

Acontinuacion les comparto los pasos a seguir:

Instalación de Fuentes sin derechos de administrador:

  1. Ingresa a tu carpeta personal: home/[usuario]/
  2. Luego preciona la combinacion de teclas ctrl+H para ver las carpetas ocultas
  3. Debes ubicar la carpeta .fonts (en el caso que no la encuentres, deberás crearla)
  4. Abrir la carpeta .fonts

Luego, de tener ya lista tu carpeta .fonts, deberas descargar todas las fuentes que desees o necesites.

Nota: las fuentes son archivos .ttf

Ya descargadas todas las fuentes que necesitabas habré una terminal y escribe lo siguiente:

mv ~/(carpeta donde se ubican las fuentes)/*.ttf /home/[usuario]/.fonts

Esto hara que todas las fuentes que descargastes (que deben estar ubicadas en una carpeta) se muevan al directorio .fonts de tu carpeta personal.

Excepcion:

En el caso que tu tengas clasificadas las fuentes, como en mi caso que las tenia dentro de una carpeta Fuentes y dentro subcarpetas desde la A-Z con las fuentes dentro de cada una. Deberás ejecutar el siguiente comando en consola:

  1. En consola: Debes estar ubicado en la carpeta principal que tiene tus fuentes y luego escribir:

cp -v */*.ttf /home/[usuario]/.fonts/

Esto copiara todas las fuentes (.ttf) que se ubiquen en la carpeta principal y sus subcarpetas a la directorio .fonts de tu carpeta principal.

En este caso recomiendo realizar el comando cp (copiar) por seguridad.

Y listo verifiquen que las fuentes estén instaladas en su carpeta personal .fonts

la filosofia de linux es “ríete del peligro en su cara”, oops, frase equivocada. “Hazlo tu mismo”
(Linus Torvalds)

è un po' di tempo che...

lotto con linux passando da LinuxMint a Debian a Fedora e di nuovo a Debian e ora Archlinux… prima o poi ci salto fuori

I just raped my computer by reinstalling XFCE4 and compiz, lol.

Dándole un mejor uso a la tecla Bloq Mayús

Crear un nuevo archivo


gvim ~/.Xmodmap

Agregar lo siguiente


remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L

remove Control = Control_R
keysym Control_R = Caps_Lock
add Lock = Caps_Lock

Abrir ~/.xinitrc y escribir lo siguiente


xmodmap ~/.Xmodmap

What I've been up to (technically)

Deleting the old XCode 3 and installing the newer XCode 4 freed up nearly 10 gigs of space on my always-full hard drive (I know, I’m a slow adopter of new things). So that meant I had some space for a virtual machine. Now I’ve done Ubuntu, Mint, Puppy, Jolicloud and all the rest of them. It was time for some more hardcore stuff - ArchLinux.

Took me maybe 10 hours in all to get where I needed to me. Everything done from scratch, which meant random errors. What threw me off, mostly, was Xcfe4 which didn’t run for some reason on VirtualBox’s video drivers. At least, I couldn’t get it to work. After a bit of trying (and lots of rebooting), I deleted it and installed LXDE instead. That worked fine. I’m actually not sure whether anything I did (changing the conf files) made any difference, or where the exact problem was, but I’m not going to bother about that anymore.

Then I spent some time trying to install colemak. I did eventually, it’s a layout variant apparently rather than an actual layout. I think it was some added line in the xorg.conf file. Maybe.

One thing I learned was to actually look through the logs carefully if errors pop up. It may sound obvious, but anyway, the specific errors helped greatly in the obligatory google searches.

Of course, I wasn’t satisfied with simply the basic LXDE theme. Downloaded the GTK theme Elegant through packer. Then I messed around with Conky. Downloaded the conky-colors, took me quite a while to understand what was going on. Even so, the background transparency wasn’t there (a visual setting should be set to ‘no’), and the sidebar cut off (changed the minimum size).

So I think I’m done for now. Like my many other computer ventures, I’d probably rarely touch the build again, but it’s all in the fun of the process. Did get to learn quite a bit about linux.

Guess who just went Arch with Gnome 3.2 boyaaaaaa!!

Whew.

Finally its over. Been busy at work for the past 2 weeks and did not even have time for myself. Schedule has been wake, work, sleep, rinse and repeat for 14 days straight. And now its over, I can finally start on that Arch install. I will document all the findings, some of the programs I used that I tried and dumped, and the ones that I like. I probably would post some config files for future backup purposes too.

Loading more posts...