jueves, 2 de enero de 2014

Tips to install ArchLinux

First of all you'll need to know some bash commands, that we'll use in this mini-guide:

man: command to know about any other command, its usage is: "man command"

For the all next command I invite you to issue, man "command" to know how to use it:

ls
cp
mv
rm
chroot

the commands above are the basic administrative commands, importants to succeed in our installation.

> Connecting to the internet (essential to proceed):
Since I have not a Router but an adsl modem, I used the rp-pppoe plugin to connect m. Ensure that you have installed rp-pppoe plugin befor you finish the installation, issue:
pacman -S rp-pppoe
After that all is configured, you have to add a dns-server (as root user):

echo 8.8.8.8 > /etc/resolv.conf
8.8.8.8 Is a DNS server from Google © To see if you are connected, issue:
ping -c 3 www.google.com 
This is the desired output:

PING www.google.com (74.125.229.241) 56(84) bytes of data.
64 bytes from mia05s07-in-f17.1e100.net (74.125.229.241): icmp_req=1 ttl=56 time=215 ms
64 bytes from mia05s07-in-f17.1e100.net (74.125.229.241): icmp_req=2 ttl=56 time=232 ms
64 bytes from mia05s07-in-f17.1e100.net (74.125.229.241): icmp_req=3 ttl=56 time=157 ms

--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 157.125/201.869/232.519/32.354 ms
If you have problems, try this command:
rm /etc/ppp/options
this'll remove a posible bad config.
> Disk Partitioning
In the ArchWiki is recomended to use fdisk tool to part the disk, avoiding cfdisk because it currently does not alignthe first partition properly.
Personaly I think that fdisk is pretty much simple and efficent than other tools.
Watch out if you use BIOS or UEFI.

Finally, you need to know that the best guide is the Official Guide at ArchLinux Wiki, I recommend you that read it first, and then come to here to get some tips.
And don't forget to ask to the community!!
Good Luck!

For a complete Guide in Spanish (my language), see: link

miércoles, 1 de enero de 2014

Keeps dsl-provider connected on GNU/Linux

Hey everybody, here I made a Bash Script that restore the connection if it's broken, i hope it is useful, enjoy!


#!/bin/bash
if [ $(whoami) = 'root' ]
then
    rest=0
    salir=0
    while [ $salir = 0 ]
    do
        ip r | grep .
        if [ $? = 1 ]
        then
            # Verifying that eth0 is setted up
            ip link show dev eth0 | grep "state UP"
            if [ $? = 1 ]
            then
                echo "Check your modem and cables"
                salir=1;
            else
                echo "Connection down, attempting to reconnect..."
                #### Begin - PPPoE Connection Commands
                poff dsl-provider # Cleaning.
                pon dsl-provider
                #### End - PPPoE Connection Commands
                clear
                if [ $rest = 0 ]
                then
                    rest=1
                else
                    if [ $rest > 1 ]
                    then
                        echo "re-connection command issued ("$rest " times)"
                        echo "hoping for the best"
                    fi
                fi
                rest=$(expr $rest + 1)
                # wait for 10 seconds, to not saturate the cpu.
                sleep 10;
            fi
        else
            echo "Connection Established"
        fi
    done
else
    echo 'You are not root, try again being root user'
fi

if [ $salir = 1 ]
then
    exit 1
else
    exit 0
fi

To use it, just copy it and paste into a .sh new file.

You are able to modify it and share it!

As always, sorry my English!

Regards!

Another push to GNU/Linux - SteamOS

Without doubts, sooner or later, we will get involved in a new age, the age of Linux, and part of this movement will be generated by this O.S., because the amount of gamers that nowaday do not use linux, because they can not run their games, is huge.
Moreover, this new flavor of GNU/Linux wiil provide new enhaced drivers and betters algorithms dedicated to draw graphics in ours screens.

As the Steam Team says:
"In SteamOS, we have achieved significant performance increases in graphics processing, and we’re now targeting audio performance and reductions in input latency at the operating system level. Game developers are already taking advantage of these gains as they target SteamOS for their new releases."

and such system, will be colaborative:
"Steam is not a one-way content broadcast channel, it’s a collaborative many-to-many entertainment platform, in which each participant is a multiplier of the experience for everyone else. With SteamOS, “openness” means that the hardware industry can iterate in the living room at a much faster pace than they’ve been able to. Content creators can connect directly to their customers. Users can alter or replace any part of the software or hardware they want. Gamers are empowered to join in the creation of the games they love. SteamOS will continue to evolve, but will remain an environment designed to foster these kinds of innovation."

This means less monopoly and much better Indie games!

So I invite you to watch out to the Release date of SteamOS!

Clic here to learn more!
Sorry my poor English!