piwik

dijous, 17 de gener del 2013

How to compress an entire directory on GNU/Linux tar

tar -cvf filename.tar.gz directory_to_compress/

How to mount ISO image into GNU/Linux filesystem

You must be logged as a root and execute the following command, assuming that you have a mount point directory (/mnt/disk1) already created.

mount -o loop disk1.iso /mnt/disk

Source: http://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html

dimecres, 16 de gener del 2013

Enable PAE support for the CentOS virtual image, on VirtualBox

When trying to dun a CentOS image in my VirtualBox, I got the following error.

This kernel requires the following features not present on the CPU:
PAE
Unable to boot - please use a kernel appropiate for your CPU.

Due to the new kernel version of CenOS 6, we are required to have PAE support enabled in the actual virtual machine. To proceed with this we just need to run the following console command, which sets to On mode PAE support for the current machine.

VBoxManage modifyvm SlackVM2 --pae on
Info taken from: http://slackblogs.blogspot.cz/2011/06/pae-support-on-virtualbox.html

diumenge, 21 d’octubre del 2012

Getting started with Raspberry PI, installing, Raspbian Raspberry's Pi OS.

Once I got my toy I am going to get started with it installing the OS. I have chosen the Debian version for the gadget.
Yo can get if from the official repositories which are here. Unzip it and.....
After that you need to what devices are currently mounted in your computer. Yo will get an output similar to


root@xemacs:/home/xemacs# df -h
S. fitxers            Mida En ús Lliure %Ús Muntat a
/dev/sda5             9,2G  5,2G  3,6G  59% /
tmpfs                 1,5G     0  1,5G   0% /lib/init/rw
udev                  1,5G  280K  1,5G   1% /dev
tmpfs                 1,5G  612K  1,5G   1% /dev/shm
/dev/sda7             352G   67G  268G  20% /home

Now you have to plug the SD card into the reader and check againg the devices, You will notice there is a new device already mounted.

root@xemacs:/home/xemacs# df -h
S. fitxers            Mida En ús Lliure %Ús Muntat a
/dev/sda5             9,2G  5,2G  3,6G  59% /
tmpfs                 1,5G     0  1,5G   0% /lib/init/rw
udev                  1,5G  280K  1,5G   1% /dev
tmpfs                 1,5G  612K  1,5G   1% /dev/shm
/dev/sda7             352G   67G  268G  20% /home
/dev/sdb2             1,8G   35M  1,6G   3% /media/10b4c001-2137-4418-b29e-57b7d15a6cbc
/dev/sdb1              56M   24K   56M   1% /media/usb0

In this case we will be dropping the image over /dev/sdb device
We will have to umount the partition with the following command:
root@xemacs:/home/xemacs# umount /dev/sdb2
For that we will be running the following command, which will copy the image into the SD card.
We are setting the block size to 4M, if will be the path to the image file and of stands for the output where we are going to copy the image, it means oour SD card (without the number associated to the partition)

root@xemacs:/home/xemacs# dd bs=4M  if=/home/xemacs/Raspberry/2012-08-16-wheezy-raspbian.img of=/dev/sdb
462+1 registres llegits
462+1 registres escrits
1939865600 octets (1,9 GB) copiats, 355,567 s, 5,5 MB/s
root@xemacs:/home/xemacs# 


Notes:
We will be proceeding as a root user
Since we have installed Debian, the partition size is only 2G, in the next post I will be explaining how to expand the size of the partition .

We are ready to rock

dimecres, 4 de juliol del 2012

Raspberry Pi

I just had ordered a Raspberry Pi, which the cheapest  GNU/Linux workstation you can find, 29$. Hopefully it will be shipped by the end of August.



The meaning of this post is just bookmark some interesting websites for using this when I will get it.

Here it goes.

http://elinux.org/RPi_VerifiedPeripherals#Powered_USB_Hubs
http://www.element14.com/community/message/54877#54877/l/re-can-i-connect-pi-to-a-vga-monitor
http://www.amazon.co.uk/gp/product/B007KEIRNG


Fonts: http://blog.parts-people.com

dimecres, 28 de setembre del 2011

Instal·lar LibreOffice, i reemplaçar OpenOffice en Ubuntu




El perquè d'aquest canvi. Per qüestió de llibertats futures. Tot comença quan Oracle adquireix Sun Microsystems, llavors decideix parar el desenvolupament de Open Solaris. Atents a aquesta jugada i amb el perill que feren el mateix amb OpenOffice, una gran part dels desenvolupadors decideixen alliberar el projecte LibreOffice i continuar el desenvolupament per ací.
Ho teniu millor explicat ací.

Per a poder instal·lar-lo, tant sols tenim que eliminar els paquets d' open-office, afegir els repositoris de LibreOffice i instal·lar-lo.

Per a eliminar per complet OpenOffice
sudo apt-get purge openoffice*.*
Afegim els repositoris
sudo add-apt-repository ppa:libreoffice/ppa sudo apt-get update sudo apt-get install libreoffice
Instal·lem l'idioma que volem sudo apt-get install libreoffice-l10n-ca

Extret de UbuntuLibre

diumenge, 27 de febrer del 2011

Organitzar i mostrar un article en pestanyes, Joomla.

De vegades volem subdividir un article escrit en un portal Joomla en diverses parts. Tan sols instal·lant el Complement JW ho podem fer.

Ara hem d'anar a l'article i separar d'aquesta manera les parts.

{tab=Padel}
Les partides de Padel..
{tab=Tenis

Les partides de tenis...

{/tabs}