dimecres, 29 de desembre del 2010

Instal·lar Nagios en Freebsd

Instruccions per instal·lar nagios en Freebsd 8.1:

ies# cd /usr/ports/net-mgmt/nagios
ies# make install clean

Fer una ullada a:



Moduls a instal·lar:

dimarts, 28 de desembre del 2010

Mac Os X: Mount NFS Share / Set an NFS Client

Super ben explicat:


How do I access my enterprise NAS server by mounting NFS filesystem onto my Mac OS X based system using GUI and command line based tools?

NFS (Network File System) is the common for file sharing on NAS server and Linux / UNIX systems like, HP-UX, Solaris, Mac OS X, and others. Mac OS X can be setup as an NFS client to access shared files on the network.

divendres, 12 de novembre del 2010

Webmin en Ubuntu Server 10.4 LTS

Instal·lem les llibreries i dependències:

# aptitude -y install perl libnet-ssleay-perl openssl \
libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl \
apt-show-versions libapt-pkg-perl
 
Si es queixa de libmd5-perl l'haurem d'instal·lar a ma:
Descarregar la versió mes actual des de:
http://ftp.debian.org/pool/main/libm/libmd5-perl/ 
 
#dpkg -i  libmd5-perl_2.03-1_all.deb
Descarregar el Webmin de http://www.webmin.com
i instal·lar:
# dpkg -i webmin_1.510-2_all.deb
 
El problema / Complexitat esta en les dependències i que la llibreria libmd5-perl no esta en els repositoris... 
La resta es tot normal, senzill i ràpid.
 

dissabte, 16 d’octubre del 2010

Guidelines for Numbering IPv6 Point-to-Point Links and Easing the Addressing Plans

http://www.consulintel.euro6ix.org/ietf/draft-palet-v6ops-point2point-00.html

There are different alternatives for numbering IPv6 point-to-point links, and from an operational perspective, they may have different advantages or disadvantages that need to be taken in consideration under the scope of each specific network architecture design.

However, as a general rule, this document suggest the approach of using /64 in order to ensure not only compliance with standards, and consequently facilitate interoperability, but also in order to ensure avoiding possible future issues and simplifying the addressing plans.

The use of /64 also facilitates an easier way for routing the shorter aggregated prefix into the point-to-point link. Consequently it simplifies the "view" of a more unified addressing plan, providing an easier path for following up any issue when operating IPv6 networks.

dilluns, 27 de setembre del 2010

Implementing IPv6 Addressing and Basic Connectivity

Implementing basic IPv6 connectivity in the Cisco IOS software consists of assigning IPv6 addresses to individual router interfaces. The forwarding of IPv6 traffic can be enabled globally, and Cisco Express Forwarding switching for IPv6 can also be enabled. Basic connectivity can be enhanced by configuring support for AAAA record types in the Domain Name System (DNS) name-to-address and address-to-name lookup processes, and by managing IPv6 neighbor discovery.
This module describes IPv6 addressing and basic IPv6 connectivity tasks.

dijous, 23 de setembre del 2010

UNIX tips: Learn 10 good UNIX usage habits

Adopt 10 good habits that improve your UNIX® command line efficiency -- and break away from bad usage patterns in the process. This article takes you step-by-step through several good, but too often neglected, techniques for command-line operations. Learn about common errors and how to overcome them, so you can learn exactly why these UNIX habits are worth picking up.

dimecres, 22 de setembre del 2010

Installing Git with macports

http://confluence.concord.org/display/CCTR/Installing+git+with+macports

http://code.google.com/p/git-osx-installer/

http://dysinger.net/2007/12/30/installing-git-on-mac-os-x-105-leopard/

divendres, 3 de setembre del 2010

FreeBSD will continue supporting ZFS

mitjançant FreeBSD - the unknown Giant per Gerard el 02/09/10

OpenSolaris may be dead now,; its advanced techologies such as the ZFS file system continue to live on in FreeBSD. FreeBSD Developer Pawel Jakub Dawidek confirmed that he is praparing a port of the OpenSolaris ZFS v28 file-system. Some of the new features included in v28 are: Data deduplication Triple parity RAIDZ (RAIDZ3) zfs diff zpool split Snapshot holds zpool import -F continue to [...]
To run a website you need speed and reliability. This company provides both: FreeBSD VPS hosting


dijous, 26 d’agost del 2010

Dreceres del VIM

Cursor movement

  • h - move left
  • j - move down
  • k - move up
  • l - move right
  • w - jump by start of words (punctuation considered words)
  • W - jump by words (spaces separate words)
  • e - jump to end of words (punctuation considered words)
  • E - jump to end of words (no punctuation)
  • b - jump backward by words (punctuation considered words)
  • B - jump backward by words (no punctuation)
  • 0 - (zero) start of line
  • ^ - first non-blank character of line
  • $ - end of line
  • G - Go To command (prefix with number - 5G goes to line 5)
Note: Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines.

Insert Mode - Inserting/Appending text

  • i - start insert mode at cursor
  • I - insert at the beginning of the line
  • a - append after the cursor
  • A - append at the end of the line
  • o - open (append) blank line below current line (no need to press return)
  • O - open blank line above current line
  • ea - append at end of word
  • Esc - exit insert mode

Editing

  • r - replace a single character (does not use insert mode)
  • J - join line below to the current one
  • cc - change (replace) an entire line
  • cw - change (replace) to the end of word
  • c$ - change (replace) to the end of line
  • s - delete character at cursor and subsitute text
  • S - delete line at cursor and substitute text (same as cc)
  • xp - transpose two letters (delete and paste, technically)
  • u - undo
  • . - repeat last command

Marking text (visual mode)

  • v - start visual mode, mark lines, then do command (such as y-yank)
  • V - start Linewise visual mode
  • o - move to other end of marked area
  • Ctrl+v - start visual block mode
  • O - move to Other corner of block
  • aw - mark a word
  • ab - a () block (with braces)
  • aB - a {} block (with brackets)
  • ib - inner () block
  • iB - inner {} block
  • Esc - exit visual mode

Visual commands

  • > - shift right
  • < - shift left
  • y - yank (copy) marked text
  • d - delete marked text
  • ~ - switch case

Cut and Paste

  • yy - yank (copy) a line
  • 2yy - yank 2 lines
  • yw - yank word
  • y$ - yank to end of line
  • p - put (paste) the clipboard after cursor
  • P - put (paste) before cursor
  • dd - delete (cut) a line
  • dw - delete (cut) the current word
  • x - delete (cut) current character

Exiting

  • :w - write (save) the file, but don't exit
  • :wq - write (save) and quit
  • :q - quit (fails if anything has changed)
  • :q! - quit and throw away changes

Search/Replace

  • /pattern - search for pattern
  • ?pattern - search backward for pattern
  • n - repeat search in same direction
  • N - repeat search in opposite direction
  • :%s/old/new/g - replace all old with new throughout file
  • :%s/old/new/gc - replace all old with new throughout file with confirmations

Working with multiple files

  • :e filename - Edit a file in a new buffer
  • :bnext (or :bn) - go to next buffer
  • :bprev (of :bp) - go to previous buffer
  • :bd - delete a buffer (close a file)
  • :sp filename - Open a file in a new buffer and split window
  • ctrl+ws - Split windows
  • ctrl+ww - switch between windows
  • ctrl+wq - Quit a window
  • ctrl+wv - Split windows vertically

dissabte, 7 d’agost del 2010

From sysinstall to ZFS-only configuration.

I’d like to share how we set up new servers at my company.
As you know, sysinstall currently doesn’t support ZFS or GEOM configuration, but I’ll show you how to convert system installed with sysinstall to ZFS-only server. Even if you don’t want to follow all the steps, please take a look at ZFS datasets layout, which after several modifications I consider quite optimal for FreeBSD.
After doing all the steps below your system will use GPT partitions, encrypted+mirrored swap and mirrored ZFS system pool.
I’m assuming your server contains two identical disks (ada0 and ada1).
Start from installing FreeBSD on the first disk using regular installation CD/DVD. Choose exactly one slice and exactly one partition. Reboot.
...

dijous, 15 de juliol del 2010

La Fundació (guifi) interposa un recurs contra la CMT per obstaculitzar a la xarxa oberta i als accessos a internet de baix cost.


NOTA DE PREMSA.
guifi.net, que disposa d'una Fundació legalment constituida i consta en el registre d'operadors de la CMT, promou des del 2.004 una xarxa de telecomunicacions oberta, lliure i neutral en a un exercici legítim de la llibertat dels que hi participen per comunicar-se com desitgin, incloent també la participació de les Administracions Públiques. És un model que a més permet formats d'accés gratuït a internet que al llarg del temps han demostrat una notable eficàcia en l'aprofitament d'infraestructures públiques, un augment de la inclusió digital, i una reducció de l'exclusió digital causada per els models de negoci comercials tradicionals, poc sensibles als dèficits de cobertura territorial o als usuaris amb pocs recursos econòmics.

dilluns, 7 de juny del 2010

¿Puede la Coalición de Creadores dejar de decir sandeces? ¿Puede el gobierno dejar de legitimarlas?

Copio un post:


LES RECORDAMOS CADA DÍA:
¿Puede la Coalición de Creadores dejar de decir sandeces? ¿Puede el gobierno dejar de legitimarlas?
Antes que nada queremos recordar a Zapatero que comete un craso error histórico cuando dice que en su tiempo la erradicación de la piratería permitió el libre comercio en la rutas marítimas. Es importante recordarle que fue exactamente lo contrario: cuando en 1778 se acabó con la negación de la realidad – se finiquitó la absurda prohibición de cruzar el Atlántico a cualquier barco que no fuera español -, sólo así se acabó con tres siglos de piratería.
Tras las últimas declaraciones de Sinde que demuestran haber dado por bueno sin rechistar un informe absolutamente sesgado y parcial de la Coalición de Creadores mientras hace caso omiso de centenares de informes profesionales que demuestran justamente lo contrario; tras el voto del PP en Europa que pide el impulso de la ley Sinde; la sociedad civil está indignada viendo una clase política en su gran mayoría al servicio de intereses económicos particulares, los mismos que han llevado el país a la ruina.

La sociedad civil repite que la Era Digital tiene que ser una fuente de prosperidad para todos. Criminalizar el intercambio de conocimiento para dejarlo en manos de multinacionales y capar la posibilidad de enlazar y publicar en la Red no son la solución a los problemas de la industria cultural. Sólo hay una solución justa y acorde con los tiempos que corren: acompañarla en su camino a la reconversión y exigirle compromiso con nuevos modelos de negocio.
Frente a aquella clase política sin memoria, la ciudadanía sí la tiene. A partir de hoy, para que recuerden, iremos RE-publicando en nuestras redes sociales cada día un informe diferente hasta que se acabe la discusión parlamentaria de la LES. Cada día (les) recordaremos algunos de los artículos e informes que demuestran que lo que dice la Coalición sobre sus pérdidas son cálculos anacrónicos. Que dejen de soñar. Un mundo en el que se podían enriquecer infinitamente vendiendo un trozo de plástico a 25€ se ha acabado. Que adapten su negocio y dejen de molestar.

La publicación de los informes irá acompañada de las siguientes frases: SI LA CLASE POLÍTICA NO TIENE MEMORIA, LA CIUDADANÍA SÍ LA TIENE. SI LA CLASE POLÍTICA NO TIENE EN CONSIDERACIÓN EL BENEFICIO DE LA SOCIEDAD ENTERA, LA CIUDADANÍA SÍ LO HACE. PARA UNA ERA DIGITAL BENEFICIOSA PARA TODO EL MUNDO: NO AL CIERRE DE WEBS. SINDE PÍRATE. Pedimos la dimisión de la Ministra de Cultura por estar al servicio de la industría del entretenimiento.

Desde http://ningunterra.com/:
De Thomas Paine:
La infidelidad no consiste en creer o no creer; consiste en profesar que se cree lo que no se cree. Es imposible calcular el perjuicio moral, si se me permite expresarlo así, que ha producido la mentira mental en la sociedad. Cuando el hombre ha corrompido y prostituido de tal modo la castidad de su mente como para someter su profesión de fe a algo que no cree, se ha puesto en condiciones de cometer cualquier otro crimen.”
De T. H. Huxley:

La base de la moralidad es… dejar de simular que se cree aquello de lo que no hay pruebas y de repetir propuestas ininteligibles sobre cosas que superan las posibilidades del conocimiento.”
http://red-sostenible.net/

divendres, 21 de maig del 2010

Garmin + Ubuntu + GPSd

Per poder fer servir un GPS USB Garmin, s'ha de carregar el modul de kernel garmin_gps:

root@NB200:~$ modprobe garmin_gps

Si ha funcionat, al endollar l'USB al fer un ls a /dev/ veurem:


root@NB200:~$ ls /dev/tty*
...
/dev/ttyUSB0


Ara ja nomes cal conectar el gpsd al port que toca:

root@NB200:~$ gpsd  /dev/ttyUSB0

divendres, 23 d’abril del 2010

dijous, 22 d’abril del 2010

Convertir una imatge .dmg a .iso

Crear una imatge ISO (.iso) d'un CD/DVD  amb Mac OS X

1. Posa el CD/DVD
2. Localitza el nom de la unitat
kcraam@Ti-kcraam:~$ df -h
Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/disk0s2   931Gi  263Gi  668Gi    29%    /
devfs          114Ki  114Ki    0Bi   100%    /dev
/dev/disk1s2   931Gi  587Gi  344Gi    64%    /Volumes/MAC HD 2
map -hosts       0Bi    0Bi    0Bi   100%    /net
map auto_home    0Bi    0Bi    0Bi   100%    /home
map -static      0Bi    0Bi    0Bi   100%    /Volumes/vNAS
/dev/disk2s3   7.0Gi  7.0Gi  1.5Mi   100%    /Volumes/Mac OS X Server Install Disc

3. fes un umount del CD (com root):

kcraam@Ti-kcraam:~$ sudo umount /dev/disk2

4. Crea la ISO amb el dd:
kcraam@Ti-kcraam:~$ dd if=/dev/disk2s3 of=file.iso bs=2048
5. Prova la ISO mountant-la al Finder:
kcraam@Ti-kcraam:~$hdid file.iso


Convertir una imatge DMG (.dmg) a ISO (.iso)


Si tens un .dmg i el vols convertir a .iso:
hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso

divendres, 5 de febrer del 2010

Cisco SAFE

Cisco SAFE provides detailed design and implementation guidelines for organizations looking to build highly secure and reliable networks.

http://www.cisco.com/en/US/netsol/ns954/index.html

dilluns, 1 de febrer del 2010

Correspondencia IOS 1721 -> memoria i serveis

http://tools.cisco.com/support/downloads/go/

c1700-bk9no3r2sy7-mz.124-25b.bin -> IP/ADSL/IPX/AT/IBM/FW/IDS PLUS IPSEC 3DES ->DRAM:96 MB  Flash:32 MB

Dynamic DNS Support for Cisco IOS Software



interface fa0
ip ddns update hostname example.dyndns.org
ip ddns update example_dyndns
!
ip ddns update method example_dyndns
HTTP
add https://username:password@members.dyndns.org/nic/update?system=dyndns&amp;hostname=<h>&amp;myip=<a href="">
interval maximum 28 0 0 0
interval minimum 28 0 0 0
!
crypto pki trustpoint example
revocation check none
enroll term pem
!
crypto pki certificate chain example
certificate ca 35DEF4CF
30820320 30820289 A0030201 02020435 DEF4CF30 0D06092A 864886F7 0D010105
0500304E 310B3009 06035504 06130255 53311030 0E060355 040A1307 45717569
...
2AA72349 01048642 7BFCEE7F A21652B5 6767D340 DB3B2658 B228773D AE147761
D6FA2A66 27A00DFA A7735CEA 70F19421 65445FFA FCEF2968 A9A28779 EF79EF4F
AC077738
quit