Archive > Tag: English

Reboot

Yeah, so my blog is back!

I've finally found a way to publish the content I want to publish; in a friendly way.

Pelican is the software I use to generate my website now. This is much safer and nicer for all of the involved; including my server.

I can …


OpenStack: What is the optimal number of objects per container

Well, I just had this question and went over to #openstack @ Freenode. There, notmyname (apparently, a moderator or @ps of some kind) answered:

12:20 < notmyname> Renich: I saw you asking questions about swift earlier
12:20 < notmyname> Renich: about object count per container
12:27 < notmyname> Renich: in case …

Howto: install Air XR18's edit software on Gentoo

Well, I've made the best buy a GNU & Linux user can make when it comes to pro-audio. I got an Air XR18. This product is one of the best of it's kind. The preamps, FX and software are awesome.

Yes, it works fine on GNU & Linux and Android. Here's how …


Crashing your kernel on purpose

Ok, that sounds funny, doesn't it? Well, it turns out, sometimes, you want to test your kernel dump or something of the sorts. Here's how to do it:

echo c > /proc/sysrq-trigger

This will, instanly, crash your kernel.

References:


HowTo: Ask questions in Bash?

I've been writing some script to configure some firewall and came up with this way of asking a question in Bash. I hope it helps as an example. Feel free to contribute your own:

#!/usr/bin/env bash

ask() {
    local query=$1

    if ( echo $query | grep -qi password ); then
        read …

HowTo: Fixing Dovecot 2.2 in CentOS 7.2

Warning: If you update dovecot on CentOS 7, it will brake! You need to update one of the config files in order for it to keep working:

# /etc/dovecot/conf.d/15-mailboxes.conf
...

namespace inbox {
    ...
    inbox = yes
    ...
}
...

So, basically, you need to add inbox = yes within the inbox namespace.


Far away: A Creative Commons success story

Once upon a time, I made a song for a good friend (Juan Carlos Cano); since he got a good contract from a big label and he was to record an album.

https://www.jamendo.com/track/1298683/far-away

The song was made and I uploaded it to my website …


HowTo: Generate free SSL certificates for Nginx/Tengine with LetsEncrypt

OK, it's fairly easy to get this done on a distro like Funtoo/Gentoo or Fedora, which are the distros I use.

First of all, you need to install this thing on your server:

# Fedora
su -
dnf -y install letsencrypt

# Funtoo/Gentoo
su -
mkdir src && cd src
git clone https …

HowTo: Permanently redirect a request with parameter consideration in Tengine/NginX

Well, this one gave me a super hard time. I looked everywhere and found nothing. There is a lot of misinformation.

As usual, the Nginx and Funtoo communities helped me. Thanks to:

  • MTecknology in #nginx @ Freenode
  • Tracerneo in #funtoo @ Freenode

So, how do we do this? Easy, we use a …


I'd like my kernel vanilla, please

Yep, vanilla is the flavor of the kernel for me. I like using vanilla in #funtoo. It is nice and it is simple. No patches. No security watch-cha-ma-call-it or anything like that. Just me and that good 'ol penguin; which deals with my hardware, networking and you-name-it systems.

I like …


Funtoo

Ok, just to announce, in case anybody cares, that I am a dual resident now. I have Funtoo on my desktop (the PC I use most) and Fedora 21 in my laptop.

Usually, I write all my articles for Fedora but, for now, I will be writing them for both …


HowTo: How to use your jack audio card with pulseaudio in Fedora 20

I, honestly, don't know what happens here. I dunno if you're delegating pulseaudio to jack or viseversa. Anyway, I use this method to enable my <a href="http://us.focusrite.com/usb-audio-interfaces/scarlett-18i20">Focusrite Scarlett 18i20</a> in Fedora 20. I hope it helps out:

Procedure

#!/usr/bin/env bash …

HowTo: Change your css according to client's time

I am no fan of javascript. In fact, I despise it. But, recently, it occured to me that it would be cool to change the CSS theme according to the client's time.

Here's how:

function change_css_according_to_time() {
    var d = new Date();
    var h = d.getHours();

    if ( h >= 7 && h <= 19 ) {
        console …

HowTo: Create an interface configuration with nmcli on CentOS7 and Fedora

I ran through hell today!

I tried doing things the old way. You know; edit /etc/sysconfig/network-scripts/ifcfg-eth1 in order to set it to a static IP. Well, bad idea.

I had all kinds of problems when the two interfaces where online (eth0 and eth1). For example:

  • eth0, even …

HowTo: Two different public IPs on a single server

Ok, today, I discovered I am still an <a href="http://en.wikipedia.org/wiki/Idiot">idiot</a>.

Yep, I tried to add 2 public networks to one of my <a href="http://tracking.cloudsigma.com/SH1I">CloudSigma</a> servers and one of them didn't work.

I thought everything was …


HowTo: Wait for any process to finish on Bash

Well, here's a quick one.

Let's say you're creating a KVM/Qemu guest; using oz-install; and you're tired, 'cause it's 06:31 and you need some sleep.

You don't want to wait the 2k seconds it takes to do all the work so you want to setup a bash script …


HowTo: Build and Use Fedora 20 for/on Google Cloud

So, in my last post, I promised to post these instructions. As if I ever kept secrets from you! &not;_&not;

Update: Please, visit my repo where you can find the updated code: https://github.com/renich/gce-images

So, here's the magic:

Initialize (last post)

This takes care of …


HowTo: Install Google Cloud SDK from the CLI on Fedora 20

Basically, this is a HowTo that prevents the usage of a browser in <a href="https://developers.google.com/cloud/sdk/">Google's Cloud SDK</a> installation.

Why?

Easy. I wanted to build my own image; from scratch. I wanted <a href="https://fedoraproject.org/">Fedora</a> 20 on that cloud …


HowTo: Fedora 20 and the FOSS xorg-x11-drv-ati driver

I've been having this problem lately:

My Fedora 20 would freeze; after a while, while using the <em>xorg-x11-drv-ati</em> driver.

Another thing I noticed, was the fan of the card going up and up like crazy.

First thing I did, was install <em>lm_sensors</em>:

yum -y install lm_sensors …

HowTo: cgminer as systemd service

Ok, I have been setting up my <a href="http://cubieboard.org/">CubieTruck</a> up with <a href="https://fedoraproject.org/">Fedora</a> to be able to control my <a href="http://www.butterflylabs.com/">Butterflylabs</a> hardware.

Obviously, I had to compile cgminer, which is straightforward; as mentioned <a …


HowTo: Viewing documentation on GNU & Linux

Ok, so, before I go to bed, I wanted to share a quick tip with you.

Sometimes, you wanna check a man page on the CLI. AFAIK, you have two alternatives:

# man
man rsync

# info
info rsync

These are, both, pretty convenient and useful. But, sometimes, you wanna check it …


Two big ideas: the biometric helper and the auto-music video app

Ok, today, I had two big ideas.

Speaking with Gabriel, I came up with a mini device; pluggable to the computer via USB, a PAN or whatever. The device would be a medical device that you attach to your finger. It would take various metrics; including temperature, pressure, pulse and …


Ideas for Google

So, the other day a google email arrived suggesting they might be interested in hiring me.

So, that got me thinking and reading (about algorithms and design patters, btw).

I thought what would I answer if I got asked: "So, what product ideas might you have?". I came up with …


HowTo: Quick and dirty MyISAM to InnoDB convert while importing

Recently, I've been playing around with the all-mighty MariaDB + Galera Multi-Master cluster!

Yeah, one thing that got me chasing my own tail was the fact that Galera does not support MyISAM... damn... the pain!

Anyway, I figured a quick and dirty trick to import DBs to galera:

mysql -u root …

Story: Mgoh

Meteors are falling from the sky. Oddly enough, they're not falling at full speed. Most of them seem coming down in slow motion. Still, there are some that come down at full speed; but they're not falling into populated areas. Also, the meteor storm seems to focus on a specific …


HowTo: Butterfly Labs BitForce 25/30 GH/s Miner in Fedora 19

So, I got my, apparently dissipated, bitcoin mining rig.

I found out it's really easy to setup in Fedora; even with SELinux and all. Here's a straightforward howto:

# Get BFGMiner
git clone git@github.com:luke-jr/bfgminer.git
cd bfgminer

# install deps
su -c 'yum install -y uthash jansson jansson-devel …

HowTo: Install Fedora 19 on old; low on memory, machines!

Ok, when I say "low on memory", I mean less than 512 MB of RAM. My particular installation was on an old Dell; with ~384 MB of RAM.

Yep, it will take long. Yep, you will suffer. Yep, it works fine!

So, first of all, get Fedora's LXDE live CD …


Wanna install Fedora? (release, alpha or beta) Use BFO!

Guys, I really like BFO. It's cool, awesome and, in the end, you will save a lot bandwidth not only to you, but to the mirror Community.

Yep, bfo is easy to use: https://boot.fedoraproject.org/

It's kind of a net install but it's not married to any specific …


The Fedorian Dare

Ok, when I first installed <a href="http://www.linux-noob.com/screenshots/fedora/1/post/index.html">Fedora Core 1</a>, I got "all crazy" and installed KDE, XFCE and GNOME all at once!

It was quite an experience. I had a pentium 4 (1st gen) with 1 GB of …


Benchmarks: C Vs Perl5.16 Vs PHP5.5 Vs Python2/3 Vs Ruby2

Oh, today is a sad, sad day for me.

Ruby seems to be as slow as Python3; which, in my <a href="http://blog.woralelandia.com/2012/06/05/benchmarks_2012/" title="Benchmarks: PHP, Perl, Python, Python3 and Ruby">previous benchmark</a>, was not! It was just between PHP and Python2 …


HowTo: Cómo listar contextos/etiquetas y módulos en SELinux

Hola, un rapidín.

# listar posibles tipos (contextos/etiquetas).
seinfo -xt

# averiguar qué hace un tipo
sesearch -A -s httpd_sys_rw_content_t

# listar módulos.
semanage module -l

# listar la política actual (conjunto de reglas).
semanage fcontext -l

# cómo buscar negaciones.
ausearch -i -m AVC,USER_AVC -sv no

# cómo buscar negaciones recientes.
ausearch -i …

HowTo: Configure Gitolite3 on Fedora 19

Ok, Fedora adheres, thankfully, to the FHS a lot and, thus, changes where things might go. In this case, they don't use the git user; they use gitolite3 as a user. And, in a nutshell, here's how to configure it:

The first part of the HowTo goes on the Server …


Synapse: Should it retire from Fedora?

Hello, Fedorian Community!

I started maintaining Synapse in Fedora back in GNOME 2.x. It seemed like a great idea. It used Vala; no Mono and stuff.

Today, it seems abandoned:

I'd like to retire the package to …


Howto: Check if a browser has CACert installed as an authority

Well, I am working on a project to sell virtualization instances, a.k.a. vps, in <a href="http://bitcoin.org/">Bitcoin</a>.

Anyway, that has nothing to do with this. The thing is that I decided to go for <a href="http://cacert.org/">CACert.org</a>'s certificates …


HowTo: Bind10 resolver @ Fedora 19

I've been waiting for Bind10 to come to Fedora for a long time. I dunno if it's better or worse; I just like new stuff ;)

That said, I totally expect it to be better. It has some neat features and the idea of a modular app seems great. (huh? somebody …


My trip to Archland (Arch Linux)

I am an infamous Fedorian. Everybody who knows me, knows that. I love Fedora. Been with it since Fedora Core 1 and never left it.

This said, I just made a trip to Archland! I try to use some other distros between Fedora releases. The list of distros I have …


Fedora 19 up and running!

Yep, just upgraded. It's 5 AM and noticed the mirrors there.

I am totally happy! I can't believe it. FedUp did the trick this time!

fedup --network 19 --reboot

That was it. The production, testing and devel servers went down and up in 378 pings (1 sec per ping). This …


HowTo: Use ip instead of ifconfig

The other day, I was helping out some guy to set his IP address. He missed ifconfig; which is deprecated by the way, and I lent a hand; helping him get around the "ip" command.

Here's a micro cheatsheet:

# get some info on your link
# This will show your links …

HowTo: Fix Google Chrome's slowness on Fedora

Well, if you; like me, hate Google Chrome recently; because it gets slow as a turtle, here's a solution:

google-chrome %U --disable-accelerated-compositing</code>

I dunno what the %U does, but the other one is self explanatory. This solved my slowness problems.

My symptoms:

  • Impossible to view flash videos (choppy most …

HowTo: Regenerate tmpfiles without restarting

Ok, I'm playing around with thin and nginx now. I am into sinatra and padrino and stuff.

So, I am creating sockets for thin so nginx can read them. I need a directory in /run

I've decided to create a directory called thin; with 2770 permissions and owner/group would …


autokrn: an automated kernel building system

Well, I kind of had this idea: https://plus.google.com/114257692259380959226/posts/WDgaDk46eZB

And I am working, as newbie as I am, in a ruby project that I've named autokrn.

What it should do

  • It should detect all your hardware and know which modules you're currently using. * it should …

Enjoying the all new CloudSigma 2.0

For those of you who don't know, my servers are hosted by CloudSigma. Not only my personal one and the "<a href="http://blog.woralelandia.com/servidor-de-la-comunidad/" title="Servidor de la Comunidad">Servidor de la Comunidad</a>" one; but, also, I have a sponsored one to <a href="http://blog …


My music on Jamendo is being heard a lot!

Hey guys!

I am happy to see the stats on <a href="http://jamendo.com/">Jamendo</a>. It seems that my music is being heard; which is my main objective with my music.

There is this song I hate: A lo largo. Everybody listens to that song. You know why …


Fedora to CentOS migration

Today, a client needed a Fedora > CentOS migration. I ended up migrating 12 servers with a LOT of configuration.

Mainly, what I did is to re-configuring kickstarts; four of them to be exact. Each of these had specific configurations and a kilometer-long post section.

The main issues were:

  • Identifying which …

Fuse mount options

Today, I had a hard time figuring out these. I had to compile it myself since Fedora doesn't provide the example directory.

So, I hope you can find this if you're looking for it. It is the output of fusexmp -h and it shows all module and mount options. Very …


Fedora Configurations Repository

Oh well, I just posted a configurations repo @ Github: https://github.com/renich/fedora-configs

The idea is to provide useful configuration examples; for servers (for now). I have a lot of cleaning up to do and all but, please, feel free to contribute anything you seem might be different and …


A nice alternative to Distrowatch.com

I wanted to find some nice alternative to Distrowatch in order to check some distro's popularity. I found some nice google tools:

# Google's AdPlanner (site profile)

https://www.google.com/adplanner/site_profile

This one seems pretty clear and offers a lot of info on the website. Obviously, all this according …


HowTo: Use zram on Fedora 16

Ok, this one is badly documented. Even the kernel docs are outdated.

Here's how to start using zram on Fedora 16:

<code>

# get rpmfusion: http://rpmfusion.org/Configuration

...

# install the staging kmod

su -c 'yum install kmod-staging'

# get zram running (aha!)

su -c 'modprobe zram zram_num_devices=4'

# define the block's …


HowTo: Appfirst with SELinux enabled

Ok, first off, I hate people that say "turn off SELinux"... man, those idiots might as well tell you to turn off your firewall and open up your servers to the world.

This sounds like a nice gesture but, in today's internet, it's a shortcut to online suicide.

Anyway, here's …


HowTo: Removing BtrFS from a bunch of drives (BOD)

Ok, I just discovered how to remove BtrFS from a bunch of drives. It got kind of hard at first but, thanks to the #btrfs channel, I discovered how.

<code>for device in sd{d..g}; do dd if=/dev/zero of=/dev/$device bs=4k count=1 seek=16 …


The Pirate Bay's SOPA/PIPA Press Release

INTERNETS, 18th of January 2012.

PRESS RELEASE, FOR IMMEDIATE RELEASE.

Over a century ago Thomas Edison got the patent for a device which would "do for the eye what the phonograph does for

the ear". He called it the Kinetoscope. He was not only amongst the first to record video …


F/Red: Fedora/Red Hat Electric Devices

Ok, this idea woke me up: <a href="https://fedoraproject.org/wiki/User:Renich/Projects/Fed">https://fedoraproject.org/wiki/User:Renich/Projects/Fed</a>

I think Fedora/Red Hat could get into the device realm. Who would buy a Fedora/Red Hat tailored laptop? Imagine that? Or maybe an …


LinuxCabal: Thank you, CloudSigma, for a wonderful year!

Ah, yes, it's been more than a year without downtime and that is because we host ourselves in <a href="http://tracking.cloudsigma.com/SHf">CloudSigma</a>.

I remember the first days, right after Rackspace and all. <a href="http://imat.com/richard/index.html">Richard Couture</a> was very …


GNU and Numbers

Check this out:

a b c d e f g h i j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 …

introbella is on the move!

Oh yeah! I really like making this announcement.

introbella is on it! We're making new songs and we're gonna be releasing everything in english from now on! World, get ready for some really cool music!

Our newest project is to compose a few EPs. 4-6 songs per album and let …


HowTo: Deploy using git

This one is not mine. It's, actually, a transcript. Please, check out the source at the bottom

#
# Local
#

# Create a website
mkdir website && cd website
git init
echo 'Hello, world!' > index.html
git add index.html
git commit -q -m "The humble beginnings of my web site."

# add remotes
git …

HowTo: Change upload_max_filesize on a standard DreamHost account

Ok, recently, a good friend, needed some help. He wanted to change the upload_maz_filesize value of his DreamHost account but was so frustrated when he learned that .htaccess files don't work for him...

It is simple: you're using FastCGI and you should be using .user.ini files to set php …


Search Cards Interface

This is another search interface.

It would be cool to have a card interface too. You make a search, and a million cards open up bellow. Each one has a screenshot of the website with hilighted results. You would see 4 or so cards per line and the title of …


Search Cube (polygon) interface

Today, I woke up with two ideas; here's one.

The search cube polygon is an idea for the search engines. The idea is to search for something and have a 3D cube or polygon with a determined number of sides. Each side guides you through the search results; in different …


HowTo: Adding your Fedora Client-side Certificate to Google Chrome

If you're gonna try this, you already know what the client-side cert is. To get it, just issue the following command:

# install fedora-packager
yum install fedora-packager

# get the certificates
fedora-packager-setup

Your certs are called .fedora.cert, .fedora-server-ca.cert and .fedora-upload-ca.cert.

Now, we need to convert the cert for our …


Good advice

I've been thinking,

I want to set up a website with good advice. One that attracts people that think things like: "I don't want to live", "I feel lost" or "what should I do with my life?"

I'm sure people <a href="http://google.com/">google</a> this from time …


Open Letter: Audio development unification proposal

I've tried, in numerous times, to contact different audio companies and get them to develop their products for GNU & Linux. These companies are: <a href="http://www.m-audio.com/">M-Audio</a> (<a href="http://www.avid.com/">Avid</a>), <a href="http://www.propellerheads.se/">Propellerheads Software</a>, <a href …


The future of P2P on the cloud

Last night, before sleep, I thought of this:

The new sharing system should be something as simple as a distributed, syncronized filesystem.

This new filesync should sync the files on a certain directory; for all it's nodes (users). It should use rsync or something similar so it could send the …