code formating

Sunday, May 19, 2013

Archlinux basic install

I am writing down the installation process I have just followed to set up an archlinux basic system. All this documentation is already wonderfully written down in archlinux wiki but I am just filtering for my particular case.

Download archlinux iso and copy it to a USB drive using the following command:

dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx
 
Plug the USB key into the machine and boot it. In this particular case, the motherboard is an ASUS and had to press F8 in order to start from USB drive.

Ones the image is loaded, I had to set up the keyboard:

loadkeys es

Then Delete/Create partitions using fdisk and format them. In this particular case the only partiion used is sda.

mount /dev/sda1 /mnt
mkfs.ext4 /dev/sda1
 
As soon as I connected the ethernet cable I already had network connection so we are ready to install the base system:

pacstrap -i /mnt base

Then generate fstab

genfstab -U -p /mnt >> /mnt/etc/fstab

Jack into the  system (Probably an unsutable sentence but a cool one)

arch-root /mnt

Edit the locale generation file and get rid of the "#" for the "en_GB" locale. Then generate the locale and reference it.

nano /etc/locale.gen
locale-gen
echo LANG=en_GB.UTF-8  /etc/locale.conf

Keyboard language. This time for the final system.

nano /etc/vconsole.conf and edit KEYMAP=es

Set up time zone.

ln -s /usr/share/ZoneTimes/Europe/Madrid /etc/localtime

Setup the network configuration for the final system

cd  /etc/netctl
cp examples/ethernet-static .
netctl enable ethernet-static

Install grub.

modprobe dm-mod
pacman -S grub-bios
grub-install --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

Set hostname.

hostnamectl set-hostname --------

Reboot the system and it should start into a console with enough resources to boostrap everything else.

Sidenotes:

I had some problems with the network setup. After going around and round I dont really what it was that caused it. But stoping the dhcp might be required at some point:

systemctl stop dhcpcd.service

Also, checking out the journal files to what happend.

journalctl -xn

Programatically walk a CATIA tree in .NET

One of the most basic tasks when automating anything in CATIA, it's usually to walk the whole tree and apply some changes to objects in ...