miércoles, diciembre 06, 2006

Origen del café

La primera infusión elaborada a partir de granos tostados y molidos -seguramente muy parecida a la bebida actual- se supone que data del siglo XV. Antes de ello en diferentes regiones la gente fue desarrollando formas variadas para aprovechar esta planta. Un ejemplo eran una pequeñas tortas elaboradas con granos crudos molidos que se mezclaban con manteca; en este caso la grasa hacía que fuese un alimento altamente energético. También se sabe que en algún momento se elaboraba un licor, fermentando la pulpa que recubre las semillas.
Algunos datos sueltos
- Actualmente se cultiva a todo lo largo de la franja tropical que rodea al planeta. Es una semilla que ha colonizado el mundo entero.- Luego del petróleo, constituye el segundo lugar en productos legales de exportación.- La cafeína es la sustancia psicoactiva de mayor consumo legal.- Los cultivadores de café, paradójicamente, son los trabajadores que viven en los lugares más hermosos y exuberantes de la tierra, pero también pertenecen al grupo de los más pobres.- Los cafetos demandan mucha mano de obra para el cuidado, cosecha y beneficio del producto: de su cultivo depende el ingreso de más de 20 millones de personas.- En las grandes ciudades, una tasa de café se paga con el equivalente al salario de un día de quien trabaja en su cultivo.- El café significa pobreza para quien trabaja en el campo y riqueza para quienes, sin tocarlo siquiera, comercian con él o lo hacen cotizar en la bolsa de valores.- A causa de su apreciado cultivo, el café ha sido causante del deterioro ecológico de millones de hectáreas de selvas.- Este pequeño grano ha sido capaz de determinar en algunos países su forma de vida, su economía, su sistema político y sus cambios sociales.- Es tan democrático su consumo, que igual es bebido por mandatarios de Estado como por campesinos y obreros.
Información sobre la historia del café, sus formas de cultivo, los tipos, la cultura desarrollada a su alrededor, etcétera, puede ser encontrada en el libro:
Pendergrast, Mark: El café; historia de la semilla que cambió el mundo. Barcelona, Javier Vergara editor, 2002.

lunes, septiembre 25, 2006

VPN EN XP

Servidor VPN
Vamos al Panel de control, y abrimos la carpeta de "Conexiones de red" y en el menú Archivo seleccionamos "Nueva conexión".





Ahora estamos en el "Asistente para conexión nueva". Pulsamos en el botón "Siguiente" para continuar.





Entre las opciones disponibles seleccionamos "Configurar una conexión avanzada", y pulsamos en "Siguiente".



Ahora seleccionamos "Aceptar conexiones entrantes" y pulsamos "Siguiente" para continuar.





En la pantalla "Dispositivos de conexiones entrantes" no seleccionamos ninguno, pues no queremos que se conecten a este equipo haciendo una llamada o usando el puerto paralelo. Pulsamos en "Siguiente".



En la pantalla "Conexión de red privada virtual (VPN) entrante" debemos seleccionar "Permitir conexiones virtuales privadas". Pulsamos en "Siguiente".





En la pantalla "Permisos de usuarios" seleccionamos los usuarios que podrán conectarse a nuestro equipo usando la VPN. Desde esta misma pantalla podremos crear nuevos usuarios. Pulsamos en "Siguiente".




Ahora debemos seleccionar los protocolos que habilitaremos en la VPN. Como queremos compartir ficheros e impresoras marcaremos "Protocolo Internet (TCP/IP)", "Compartir impresoras y archivos para redes Microsoft". Podremos agregar los protocolos que queramos usando el botón Instalar. Seleccionamos el protocolo "Protocolo Internet (TCP/IP)" y pulsamos en el botón Propiedades para proceder a configurarlo.



Ahora podemos configurar las propiedades del protocolo TCP/IP. Si queremos que los clientes que se conectan a nosotros puedan acceder a la red local en la que tenemos nuestro servidor deberemos activar la primera casilla. Además podemos dejar que el servidor asigne las IPs de los clientes o establecer un intervalo de IPs, o incluso permitir que los clientes especifiquen su IP.



Guardamos la configuración de TCP/IP y pulsamos en el botón siguiente del asistente y ya habremos terminado. En este momento tendremos una nueva conexión en la carpeta de Conexiones de red. Seleccionando la nueva conexión podremos ver el estado de ésta, los clientes conectados, cambiar las opciones de configuración, etc.


Ahora ya tenemos configurado el servidor VPN y ya está listo para aceptar clientes VPN.
A continuación configuraremos una conexión VPN para que se conecte al servidor.

Cliente VPN
Abrimos la carpeta de "Conexiones de red" y en el menú Archivo seleccionamos "Nueva conexión". En el asistente para conexión nueva seleccionamos "Conectarse a la red de mi lugar de trabajo", y pulsamos siguiente.





Seleccionamos "Conexión de red privada virtual", y pulsamos siguiente.




En la siguiente ventana, marcaremos la opción "no usar conexion inicial" a menos que queramos que con la vpn se utilice otra de nuestras conexiones a internet, si indicamos que al activar esta conexión se active antes otra conexión, por ejemplo una conexión telefónica, se conectará primero a Internet y luego se establecerá la VPN. Si disponemos de cable o ADSL no es necesario activar ninguna de estas conexiones. Tampoco lo es si estamos conectados a Internet cuando activamos la conexión VPN o no queremos que ésta marque ninguna conexión. Por último indicamos la dirección IP del servidor VPN, esta es la dirección IP pública, es decir, la que tiene en Internet en el momento de establecer la conexión entre los clientes y el servidor.





Al finalizar el asistente ya tendremos la conexión lista para activarse. Ahora debemos indicar el usuario y las password que hemos activado en el servidor y ya podremos conectarnos con el servidor.
Si el servidor VPN se conecta a Internet usando un modem o Cable la IP puede cambiar (IPs dinámicas) por lo que será necesario indicarle la IP que tiene en cada momento.






Ya tenemos la conexión VPN lista para funcionar.
Si trabajamos con conexiones lentas (móden o similar) la VPN también irá lenta. Es recomendable disponer de conexiones de banda ancha para sacarle todo el rendimiento a este tipo de conexiones.

Para realizar las comunicaciones usando la VPN deberemos usar las IPs de la VPN. Es decir, además de la IP de Internet que tiene el servidor y los clientes se han generado otras IPs internas de la VPN, pues esas deberemos usar para comunicarnos con los equipos de la VPN, estas se obtendrán como las habituales, pero en el icono de la nueva conexión que aparece en la barra de notificación (junto al reloj).

En conexiones lentas, el Explorador de Windows no será capaz de mostrar los otros equipos de la red, o le llevará mucho tiempo, en ese caso, podremos acceder a ellos escribiendo en la barra de direcciones del Explorardor de Windows "\\ip_en_la_VPN" o "\\nombre_maquina" de la máquina a la que queremos acceder, por ejemplo, si la IP (en la VPN) de la otra máquina es 169.254.3.117 pondremos \\169.254.3.117 en la barra de direcciones del Explorador de Windows y de esta forma ya tendremos acceso a los ficheros e impresoras de la máquina indicada.
Para usar otros recursos, como servidores de base de datos, etc. simplemente usamos la IP en la VPN de la máquina destino.

Además, si los equipos no tienen realizada la configuración de red adecuadamente, o tienen mal asignados los permisos puede ocurrir que no se pueda acceder a recursos. Esto no es un problema de la VPN sino de cómo se tienen establecidos los permisos en cada ordenador, al igual que pasa en una red local.

Por último, y como recomendación final, es aconsejable mantener el equipo actualizado e instalar los parches y services packs que va publicando Microsoft. Al tratarse de un servicio de red es muy vulnerable a ser atacado y si no está convenientemente actualizado podemos ser víctimas de ataques, o nuestros datos quizás no viajen lo suficientemente seguros como esperábamos.

Fotos


martes, julio 18, 2006

Apache

Archivos de configuracion para httpd (apache)

SINOPSIS:
Apache es el servidor Web para que se hospeden las paginas web en el, y asi puedan visualizarse desde cualquier parte de la nube de internet.

Requerimientos:
-Enlace dedicado a internet. infinitum (ADSL), IDE, CABLE, etc.
-Tener una ip fija o bien un rango de direcciones ips fijas
-Un dominio en Internet pagado www.nic.com, www.nic.com.mx
-httpd-2.0-40-21.3

El archivo de configuraion se encuentra alojado en /etc/httpd/conf/httpd.conf
al editar este archivo se puede configurar:
-El puerto que escucha el demonio httpd
-La cuenta de correo del webmaster
-En document root "/var/www/html" es el directorio donde se accesa a la pagina hospedada
-Control de acceso las paginas
-Permite visualizar los logs del sistema /var/log/httpd
-Permite hacer dominios virutales de la siguiente forma:

copiar en el servidor el archivo index.html

/var/www/html/nombre_pagina

depues editar el archivo /etc/httpd/conf/httpd.conf

y agregar en virtual host

www.nombre_pag.com>
ServerName www.nombre_pag.com
ServerAlias www.nombre_pag.com www.nombre_pag.com
ServerAdmin webmaster@dominio.com
DocumentRoot /var/www/html/nombre_pagina
Trnasferlog logs/nombre_pagina_access.log
ErrorLog log/nombre_pagina_error.log

Por ultimo verifica que este activo el demonio de httpd /etc/init.d/httpd status

sábado, junio 10, 2006

My Photo art






Lyrics R.E.M

Everybody Hurts Lyrics

When the day is long and the night, the night is yours alone,
When you're sure you've had enough of this life, well hang on
Don't let yourself go, 'cause everybody cries and everybody hurts sometimes

Sometimes everything is wrong. Now it's time to sing along
When your day is night alone, (hold on, hold on)
If you feel like letting go, (hold on)
When you think you've had too much of this life, well hang on

'Cause everybody hurts. Take comfort in your friends
Everybody hurts. Don't throw your hand. Oh, no. Don't throw your hand
If you feel like you're alone, no, no, no, you are not alone

If you're on your own in this life, the days and nights are long,
When you think you've had too much of this life to hang on

Well, everybody hurts sometimes,
Everybody cries. And everybody hurts sometimes
And everybody hurts sometimes. So, hold on, hold on
Hold on, hold on, hold on, hold on, hold on, hold on
Everybody hurts. You are not alone



Bad Day Lyrics

Followed me home the other day.
I paid it nevermind. Go Away.
Shits so thick you could stir it with a stick-free Teflon whitewashed presidency.
We're sick of being jerked around.
Wear that on your sleeve.

Broadcast me a joyful noise unto the times, lord,
Count your blessings.
We're sick of being jerked around.
We all fall down.

Have you ever seen the televised St. vitus subcommittee prize
Investigation dance? Those ants in pants glances.
Well,look behind the eyes.
It's a hallowed hollow anesthetized
"save my own ass, screw these guys"
smoke and mirror lock down.

Broadcast me a joyful noise unto the times, lord,
Count your blessings.
The Papers wouldn't lie!
I sigh, Not one more.

It's been a bad day.
Please don't take a picture.
It's been a bad day.
Please.

We're dug in deep the price is steep.
The auctioneer is such a creep.

The lights went out, the oil ran dry
We blamed it on the other guy
Sure, all men are created equal.
Heres the church, heres the steeple
Please stay tuned-we cut to sequel
ashes, ashes, we all fall down.

Broadcast me a joyful noise unto the times, lord,
Count your blessings.
Ignore the lower fear
Ugh, this means war.

It's been a bad day.
Please don't take a picture.
It's been a bad day.
Please.

Broadcast me a joyful noise unto the times, lord,
Count your blessings.
We're sick of being jerked around.
We all fall down.

It's been a bad day...




Losing My Religion Lyrics

Oh, life is bigger
It's bigger than you
And you are not me
The lengths that I will go to
The distance in your eyes
Oh no, I've said too much
I set it up

(chorus)
That's me in the corner
That's me in the spotlight, I'm
Losing my religion
Trying to keep up with you
And I don't know if I can do it
Oh no, I've said too much
I haven't said enough
I thought that I heard you laughing
I thought that I heard you sing
I think I thought I saw you try

Every whisper
Of every waking hour I'm
Choosing my confessions
Trying to keep an eye on you
Like a hurt lost and blinded fool, fool
Oh no, I've said too much
I set it up
Consider this
Consider this
The hint of the century
Consider this
The slip that brought me
To my knees failed
What if all these fantasies
Come flailing around
Now I've said too much
I thought that I heard you laughing
I thought that I heard you sing
I think I thought I saw you try

But that was just a dream
That was just a dream

(repeat chorus)

But that was just a dream
Try, cry, why try?
That was just a dream
Just a dream, just a dream
Dream



Man On The Moon Lyrics

Mott the Hoople and the Game of Life. Yeah, yeah, yeah, yeah
Andy Kaufman in the wrestling match. Yeah, yeah, yeah, yeah
Monopoly, twenty one, checkers, and chess. Yeah, yeah, yeah, yeah
Mister Fred Blassie in a breakfast mess. Yeah, yeah, yeah, yeah
Let's play Twister, let's play Risk. Yeah, yeah, yeah, yeah
See you in heaven if you make the list. Yeah, yeah, yeah, yeah

Hey Andy, did you hear about this one? Tell me, are you locked in the punch?
Hey Andy, are you goofing on Elvis? Hey baby, are we losing touch?
If you believed they put a man on the moon, man on the moon
If you believe there's nothing up my sleeve, then nothing is cool

Moses went walking with the staff of wood. Yeah, yeah, yeah, yeah
Newton got beaned by the apple good. Yeah, yeah, yeah, yeah
Egypt was troubled by the horrible asp. Yeah, yeah, yeah, yeah
Mister Charles Darwin had the gall to ask. Yeah, yeah, yeah, yeah

Hey Andy, did you hear about this one? Tell me, are you locked in the punch?
Hey Andy, are you goofing on Elvis? Hey baby, are you having fun?
If you believed they put a man on the moon, man on the moon
If you believe there's nothing up my sleeve, then nothing is cool

Here's a little agit for the never-believer. Yeah, yeah, yeah, yeah
Here's a little ghost for the offering. Yeah, yeah, yeah, yeah
Here's a truck stop instead of Saint Peter's. Yeah, yeah, yeah, yeah
Mister Andy Kaufman's gone wrestling (wrestling bears). Yeah, yeah, yeah, yeah

Hey Andy, did you hear about this one? Tell me, are you locked in the punch?
Hey Andy, are you goofing on Elvis? Hey baby, are we losing touch?
If you believed they put a man on the moon, man on the moon
If you believe there's nothing up my sleeve, then nothing is cool

If you believed they put a man on the moon, man on the moon
If you believe there's nothing up my sleeve, then nothing is cool
If you believed they put a man on the moon, man on the moon
If you believe there's nothing up my sleeve, then nothing is cool
If you believed they put a man on the moon, man on the moon
If you believe there's nothing up my sleeve, then nothing is cool

The hottest songs from R.E.M.



Its The End Of The World As We Know It (And I Feel Fine) Lyrics


Eye of a hurricane, listen to yourself churn - world
Serves its own needs, dont misserve your own needs. Feed
It off an aux speak, grunt, no, strength,turn, ladder
Start to clatter with fear fight down height. Wire
In a fire, representing seven games, in a government
For hire and a combat site. Left of west and coming in
A hurry with the furies breathing down your neck. Team
By team reporters baffled, trumped, tethered cropped
Look at that low playing! Fine, then. Uh oh,
Overflow, population, common food, but it'll do. Save
Yourself, serve yourself. World serves its own needs,
Listen to your heart bleed dummy with the rapture and
The revered and the right, right. You vitriolic,
Patriotic, slam, fight, bright light, feeling pretty
Psyched

It's the end of the world as we know it
It's the end of the world as we know it
It's the end of the world as we know it and I feel fine

Six o'clock - TV hour. Don't get caught in foreign
Towers. Slash and burn, return, listen to yourself
Churn. Locking in, uniforming,and book burning, blood
Letting. Every motive escalate. Automotive incinerate
Light a candle, light a motive. Step down, step down
Watch your heel crush, crushed, uh-oh, this means no
Fear cavalier. Renegade steer clear! A tournament,
a Tournament, a tournament of lies. Offer me solutions,
Offer me alternatives and I decline

(chorus)
It's the end of the world as we know it (it's time I had some time alone)
It's the end of the world as we know it (it's time I had some time alone)
It's the end of the world as we know it and I feel fine (it's time I had some
time alone)

I feel fine

(repeat chorus)

The other night I dreamt of knives, continental
Drift divide. Mountains sit in a line, Leonard
Bernstein. Leonid Brezhnev, Lenny Bruce and Lester
Bangs. Birthday party, cheesecake, jelly bean, boom! You
Symbiotic, patriotic, slam book neck, right? Right

(repeat chorus)

It's the end of the world as we know it
It's the end of the world as we know it
It's the end of the world as we know it and I feel fine (it's time I had some
time alone)

(repeat chorus 2x)

Fine
It's the end of the world as we know it (it's time I had some time alone)

The hottest songs from R.E.M.


Daysleeper Lyrics

Receiving department, 3 a.m.
Staff cuts have socked up the overage
Directives are posted
No callbacks, complaints
Everywhere is calm

Hong Kong is present
Taipei awakes
All talk of circadian rhythm

I see today with a newsprint fray
My night is colored headache grey
Daysleeper, daysleeper, daysleeper

The bull and the bear are marking
Their territories
They're leading the blind with
Their international glories

I'm the screen, the blinding light
I'm the screen, I work at night

I see today with a newsprint fray
My night is colored headache grey
Don't wake me with so much
Daysleeper

They cried the other night
I can't even say why
Fluorescent flat caffeine lights
Its furious balancing

I'm the screen, the blinding light
I'm the screen, I work at night

I see today with a newsprint fray
My night is colored headache grey
Don't wake me with so much
Don't wake me with so much. The
Ocean machine is set to 9
I'll squeeze into heaven and valentine
My bed is pulling me,
Gravity
Daysleeper, daysleeper
Daysleeper, daysleeper, daysleeper




Imitation Of Life Lyrics
Charades, pop skill
Water hyacinth, named by a poet
Imitation of life.
Like a koi in a frozen pond.
Like a goldfish in a bowl.
I don't want to hear you cry.

Thats sugarcane that tasted good.
Thats cinnamon, thats Hollywood.
C'mon, c'mon no one can see you try.

You want the greatest thing
The greatest thing since bread came sliced.
You've got it all, you've got it sized.
Like a Friday fashion show teenager
Freezing in the corner
Trying to look like you don't try.

Thats sugarcane that tasted good.
Thats cinnamon, thats Hollywood.
C'mon, c'mon no one can see you try.

No one can see you cry.

That sugar cane that tasted good.
That freezing rain, that's what you could.
C'mon, c'mon on no one can see you cry.

This sugarcane
This lemonade
This hurricane, I'm not afraid.
C'mon, c'mon no one can see you cry.

This lightning storm
This tidal wave
This avalanche, I'm not afraid.
C'mon, c'mon no one can see me cry.

That sugar cane that tasted good.
That's who you are, that's what you could.
C'mon, c'mon on no one can see you cry.

That sugar cane that tasted good.
That's who you are, that's what you could.
C'mon, c'mon on no one can see you cry.


The One I Love Lyrics



(chorus 1)
This one goes out to the one I love
This one goes out to the one I've left behind
A simple prop to occupy my time
This one goes out to the one I love

(chorus 2)
Fire (she's comin' down on her own, now)
Fire (she's comin' down on her own, now)

(repeat chorus 1)

(repeat chorus 2)

This one goes out to the one I love
This one goes out to the one I've left behind
Another prop has occupied my time
This one goes out to the one I love

(repeat chorus 2 2x)



Nightswimming Lyrics

Nightswimming deserves a quiet night
The photograph on the dashboard, taken years ago,
Turned around backwards so the windshield shows
Every streetlight reveals the picture in reverse
Still, it's so much clearer
I forgot my shirt at the water's edge
The moon is low tonight

Nightswimming deserves a quiet night
I'm not sure all these people understand
It's not like years ago,
The fear of getting caught,
Of recklessness and water
They cannot see me naked
These things, they go away,
Replaced by everyday

Nightswimming, remembering that night
September's coming soon
I'm pining for the moon
And what if there were two
Side by side in orbit
Around the fairest sun?
That bright, tight forever drum
Could not describe nightswimming

You, I thought I knew you
You, I cannot judge
You, I thought you knew me,
This one laughing quietly underneath my breath
Nightswimming

The photograph reflects,
Every streetlight a reminder
Nightswimming deserves a quiet night, deserves a quiet night



At My Most Beautiful Lyrics

(chorus)
I've found a way to make you
I've found a way
A way to make you smile

I read bad poetry
Into your machine
I save your messages
Just to hear your voice
You always listen carefully
To awkward rhymes
You always say your name,
Like I wouldn't know it's you,
At your most beautiful

(repeat chorus)

At my most beautiful
I count your eyelashes, secretly
With every one, whisper I love you
I let you sleep
I know you're closed eye watching me,
Listening
I thought I saw a smile

(repeat chorus)


You Are The Everything Lyrics

Sometimes I feel like I can't even sing (say, say, the light)
I'm very scared for this world
I'm very scared for me (say, say, the light)
Eviscerate your memory
Here's a scene
You're in the back seat laying down (say, say, the light)
The windows wrap around
To sound of the travel and the engine (say, say, the light)
All you hear is time stand still in travel
And feel such peace and absolute
The stillness still that doesn't end
But slowly drifts into sleep
The stars are the greatest thing you've ever seen
And they're there for you
For you alone you are the everything

I think about this world a lot and I cry (say, say, the light)
And I've seen the films and the eyes
But I'm in this kitchen (say, say, the light)
Everything is beautiful
And she is so beautiful (say, say, the light)
She is so young and old
I look at her and I see the beauty (say, say, the light)
Of the light of music
The voices talking somewhere in the house
Late spring and you're drifting off to sleep
With your teeth in your mouth
You are here with me
You are here with me
You have been here and you are everything

Sometimes I feel like I can't even sing (say, say, the light)
I'm very scared for this world
I'm very scared for me (say, say, the light)
Eviscerate your memory
Here's a scene
You're in the back seat laying down (say, say, the light)
The windows wrap around
To sound of the travel and the engine (say, say, the light)
All you hear is time stand still in travel
And feel such peace and absolute
The stillness still that doesn't end
But slowly drifts into sleep
The greatest thing you've ever seen
And they're there for you
For you alone you are the everything
For you alone you are the everything

The hottest songs from R.E.M.

One Lyrics

Is it getting better
Or do you feel the same
Will it make it easier on you now
You got someone to blame
You say...

One love
One life
When it's one need
In the night
One love
We get to share it
Leaves you baby if you
Don't care for it

Did I disappoint you
Or leave a bad taste in your mouth
You act like you never had love
And you want me to go without
Well it's...

Too late
Tonight
To drag the past out into the light
We're one, but we're not the same
We get to
Carry each other
Carry each other
One...

Have you come here for forgiveness
Have you come to raise the dead
Have you come here to play Jesus
To the lepers in your head

Did I ask too much
More than a lot
You gave me nothing
Now it's all I got
We're one
But we're not the same
Well we
Hurt each other
Then we do it again
You say
Love is a temple
Love a higher law
Love is a temple
Love the higher law
You ask me to enter
But then you make me crawl
And I can't be holding on
To what you got
When all you got is hurt

One love
One blood
One life
You got to do what you should
One life
With each other
Sisters
Brothers
One life
But we're not the same
We get to
Carry each other
Carry each other

The hottest songs from R.E.M.

Star Me Kitten Lyrics

Keys cut, three for the price of one
Nothing's free but guaranteed for a lifetime's use
I've changed the locks
And you can't have one
You, you know the other two

The brakes have worn so thin that you could hear,
I hear them screeching through the door from our driveway
Hey love, look into your glovebox heart
What is there for me inside? This love is tired
I've changed the locks. Have I misplaced you?
Have we lost our minds?
Will this never end?
It could depend on your take

You, me, we used to be on fire
If keys are all that stand between,
Can I throw in the ring?
No gasoline
Just fuck me kitten
You are wild and I'm in your possesion
Nothing's free so, fuck me kitten

I'm in your possesion
So, fuck me kitten

The hottest songs from R.E.M.


Dragging The Line Lyrics


Makin' a livin' the old hard way
Takin' and givin' by day by day
I dig snow and rain and the bright sunshine
Draggin' The Line

My dog Sam eats purple flowers
Ain't got much, but what we got's ours
We dig snow and rain and the bright sunshine
Draggin' The Line
(Draggin' The Line)
Draggin' The Line
(Draggin' The Line)

I feel fine, I'm talkin' 'bout peace of mind
I'm gonna take my time, I'm gettin' the good sign
Draggin' The Line
(Draggin' The Line)
Draggin' The Line
(Draggin' The Line)

Lovin' the free and feelin spirit of
hugging a tree
when you get near it.
Diggin' snow and rain and the bright sunshine
Draggin' The Line
(Draggin' The Line)
Draggin' The Line
(Draggin' The Line)

The hottest songs from R.E.M.


The Lifting Lyrics

Grounded 5 a.m.
The nightlite is comforting.
But gravity is holding you.

Once settled into sleep
You have watched on repeat,
The story of your life
Across the ceiling;
And in review,

You've said the air was singing
It's calling you you don't believe
These things you've never seen.

"Good morning, how are you?
The weather's fine, the sky is blue-
It's perfect for our seminar..."

"Now close your eyes,
And start to breathe.
Allow the noise to recede...
...Allow yourself to drift and fly away.
But you just stay.

You've said the air was singing
It's calling you you don't believe
These things you've never seen, never dreamed.

Did you hear these voices calling

Locked into a conference room,
"We're only what our minds assume..."
And rationale is leaving you.

This conceit these systems of belief,
Your counselor agrees,
"You've always mark these boundaries now you're free..."
And with relief.

You've said the air was singing
It's calling you you don't believe
These things you've never seen, never heard, never dreamed.

You said the air was singing
It's calling you you don't believe
These things you've never seen.

Never [x19]

Once you had a dream
Of oceans, and sunken cities
Memories of things you've never known

martes, abril 04, 2006

Comandos Unix


Índice:

Comandos Comunes..............................................2

Comandos propios de unix.....................................3

Agrupamiento de mandatos....................................4

Caracteres especiales..............................................6

Ayuda.....................................................................6

Variables de entorno...............................................6

Archivos especiales................................................7

Pidiendo disculpas a los puristas, esta lista está estructurada de la siguiente forma:

A la izquierda figuran los comandos DOS, y a la derecha su equivalente Unix.

A continuación hay otra lista con los comandos sin equivalente DOS.

Comandos comunes:

DOS

Unix

cd

cd( nota: “cd..” no sirve. Usar “cd ..”(Con espacio).

md

mkdir

rd

rmdir

del

rm

deltree

rm -R

dir

ls (dir funciona como ls -l -color)

copy, xcopy

cp

move, rename

mv

COMMAND.COM

bash, tcsh, zsh, etc. (En Unix hay varios shells)

win

startx

help

man

cls

clear

pkzip/pkunzip

gunzip

doskey

Automático en Linux.

Comando /?

Comando --help. Si no, mirar el manual.

type

cat

edit

pico, vi, emacs, etc. (El pico es el más fácil de usar)

time, date

date (Imprime la fecha y hora). date --set la define.

cmp

cmp,diff(Imprime las diferencias entre dos archivos)

echo Cadena de caracteres

echo “Cadena de caracteres” (Entrecomillado)

ping

ping

tracert

traceroute

set

set

Comandos propios de Unix:

chmod : Cambia los permisos de acceso a un fichero. Los permisos se especifican mediante tres números. El primero simboliza los permisos del propietario del archivo, el segundo los permisos del grupo al que pertenece el archivo, y los tres últimos son los permisos para todo el mundo. Si pasamos cada uno de estos números a binario, ocuparán tres bits. Los permisos se estructuran en tres tipos: Lectura(r), Escritura(w), y ejecución(x). Por ejemplo:

chmod 764 archivo.txt (Nota: 7=111, 6=110, 4=100)

Permisos 764: en binario los tres números son (111 110 100). Esto es, da permisos rwx(111) rw-(110) r- -(100); Es decir, todos los permisos para el propietario(rwx), lectura-escritura para todos los usuarios

pertenecientes al grupo dueño del archivo(rw-) y sólo de lectura para el resto del mundo(r- -).

chown : Cambia el usuario propietario de un archivo. Sólo root puede

ejecutar este comando.

chgrp : Cambia el grupo efectivo de un archivo.

su: Cambia a modo administrador desde cualquier usuario. Por supuesto, pide el password.

ps: Muestra una lista de los procesos en curso, con su PID.

kill : Mata el proceso especificado por PID. Si falla, kill -9 lo mata incondicionalmente.

reboot: Reinicia el sistema.

halt: Apaga el ordenador(Si la BIOS lo soporta). Equivale a Inicio-Apagar sistema-Apagar el equipo.

lsmod: Muestra los módulos cargados en memoria.

rmmod: Descarga de memoria un módulo, pero sólo si no está siendo usado.

insmod : Carga en memoria un módulo.

gzip: Para instalar un archivo comprimido (Archivo.tar.gz, muy usado en internet) se usa:

gzip -cd Archivo.tar.gz | tar xvf - (Con guión al final)

mount /dev/ : Monta una unidad de red en el sistema de archivos. Nótese que las unidades de disco, CD, etc. locales las trata como unidades de red, ubicadas en /dev/hd?. Su uso es igual a NET USE en Windows NT. Sólo root puede ejecutar este comando, a no ser que se especifique lo

contrario en el archivo /etc/fstab.

umount : Desmonta una unidad.

YaST: ( ¡Respetar mayúsculas/Minúsculas!) Es el programa de configuración de SuSE. Puede invocarse en cualquier momento desde el prompt, pero sólo como superusuario(root). Es algo así como el panel de control de W95. Permite instalar/Desinstalar archivos de la distribución, paquetes RPM, configurar

hardware, opciones de red, etc…(Ver documento adjunto).

whereis : Devuelve la ubicación del archivo especificado, si existe.

find : Busca el archivo especificado. Necesita opciones alternativas, como el directorio donde

se debe buscar, etc… Es complicado, pero muy potente.

grep : Busca la cadena de caracteres especificada en un texto. Cuando la encuantra imprime solamente las líneas en las que aparece la cadena. Por ejemplo: set | grep “WINDOWMANAGER” devolverá algo como:

WINDOWMANAGER=/opt/kde/bin/startkde

cat “comandos Unix.doc” | grep “caca” devolvería esta misma línea.

sort: Ordena un texto( lista de archivos, etc.)

more: Da control sobre el scroll de pantalla al intentar leer textos largos.

less: Es una función más completa que more.

make: Compila un módulo con sus librerías automáticamente. Requiere un archivo: Makefile.

pwd: Devuelve el directorio actual.

head: Imprime las primeras líneas de un archivo.

ln: Hace un link simbólico ó físico a un fichero. Ej.: ln -s /MisDocumentos/documento.txt texto

haría un enlace simbólico con nombre “texto“ al archivo documento.txt.

lpr: Comando de impresión en linux.

wc: No es el retrete, no... Cuenta las palabras de un archivo.

who: Imprime una línea por cada usuario que se encuentre en el sistema.

mail: Para enviar/recibir correo a/de otros usuarios de la red, o dentro de nuestro ordenador.

Agrupamiento de mandatos:

Los shell de Unix, como el COMMAND.COM de MS-DOS permiten una serie de conexiones lógicas de unos mandatos con otros, de manera que se modifica la entrada/salida estándard de los comandos, para comunicarlos entre sí:

1.- Redirección de salida(>): Redirige la salida de un comando a un fichero.

Si hacemos: dir > fichero.txt

Se creará un archivo “fichero.txt”. Si miramos su contenido (cat fichero.txt) veremos que contiene exactamente lo que veríamos al ejecutar el comando dir.

2.- Redirección de entrada(<): Redirige la entrada estándard de un comando desde un fichero.

Si hacemos: grep “/root” < fichero.txt

De existir una línea que contenga esa cadena en el archivo antes creado, fichero.txt se imprimirá en pantalla la línea completa. Si no, no devolverá nada.

3.- Ejecución secuencial(;): Ejecuta secuencialmente una lista de comandos.

Ejemplo: mv archivo1 aux ; mv archivo2 archivo1; mv aux archivo1

4.- Redirección de salida estándard de error(>&).

Si utilizamos un comando y salen varias pantallas describiendo el error(Cosa poco usual), o si por ejemplo dejamos trabajando nuestro terminal ejecutando varias órdenes y queremos al volver mirar si todo ha sido correcto, hacemos:

comando >& fichero.txt

5.- Ejecución asíncrona(&): Ejecuta en paralelo el/los comandos introducidos.

Ejemplo: make programa_enorme.c & make programa_enorme2.c &

Compilará los dos programas “a la vez”, y además nos dejará el shell libre para poder seguir ejecutando mandatos.

6.- OR lógico( || ): Se ejecutan de forma secuencial los mandatos introducidos hasta que uno de ellos devuelva un valor 0(verdadero).

Ejemplo: test -d archivo || lpr archivo

Sólo imprime el archivo si no es un directorio.

7.- AND lógico (&&): Se ejecutan de forma secuencial los mandatos introducidos hasta que uno de ellos devuelva un valor distinto de 0(falso).

Ejemplo: test -f archivo && lpr archivo

Imprime el fichero sólo si se trata de un fichero ordinario.

8.- Tuberías(pipes)( | ): Se ejecutan los comandos de forma secuencial, pero redirigiéndose la salida de cada uno al siguiente comando.

Ejemplo1: dir | sort | less

Imprime la lista de los ficheros del directorio actual de trabajo ordenados alfabéticamente y línea a línea.

Ejemplo2: head -100 carta | grep “Juan” | sort | lpr

Imprime en orden alfabético las líneas que, estando entre las 100 primeras del archivo “carta” contengan la cadena de caracteres “Juan”.

Además el shell es una herramienta de programación muy versátil y completa. Proporciona una serie de mandatos compuestos que permiten escribir programas estructurados de forma condicional o incluso bucles. Entre estos mandatos están el if, case, until, while, for, etc. Además de la posibilidad de definir funciones de forma similar a la sintaxis de C, y variables. Esto permite hacer unos programas llamados Shell Scripts, que equivalen a los archivos .BAT de MS-DOS, pero con una sintaxis de programación mucho más completa.

Caracteres especiales:

La sintaxis de los shell de Linux permite definir los nombres de archivos con todo tipo de caracteres, pero hay una serie de caracteres especiales como el espacio, o símbolos como ( ; | > < ), etc. que no se pueden especificar así como así en un nombre de archivo. Para proteger estos caracteres se usan los caracteres (\), (“) y (`).Un ejemplo:

Si queremos borrar un archivo que se llama mio;tuyo nombre;>raro debemos poner:

rm mio\;tuyo\ nombre\;\>raro

o bién (mas cómodo):

rm “mio;tuyo nombre;>raro”

El carácter tilde(~) se usa en el shell de Linux para especificar el directorio HOME de cada usuario en vez de, por ejemplo: /home/Informática/Explotación/Manuelva/

Además para cambiar a nuestro directorio HOME basta con ejecutar “cd” sin argumentos.

Ayuda:

La ayuda en Linux viene en forma de manuales de cada comando. Su uso es el siguiente:

man

Son manuales algo antiguos, y tienen el inconveniente de estar en inglés, pero son muy útiles. Además prestan ayuda también a los múltiples archivos de configuración del sistema.

Variables de entorno:

En unix las variables de entorno son mas importantes que en MS-DOS. La principal razón es la variable “PATH”, que como todos sabemos contiene los directorios donde el shell debe buscar para encontrar cualquier comando xterno al shell. Esto es igual que en MS-DOS, pero en Linux toda la demás información que aparece con el comando set es usada continuamente por los diferentes programas.

Entre la información que aparece por allí, tenemos el shell(COMMAND.COM) que se usa por defecto, el nombre de usuario, el pid de nuestro propio shell, la configuración del servidor de ventanas, y un largo etcétera que será más o menos largo según los programas que usemos.

Para exportar nuevas variables primero se definen. Por ejemplo, si queremos que nuestro gestor de ventanas sea el KDE por defecto, simplemente haremos:

WINDOWMANAGER=/opt/kde/bin/startkde

Si ahora escribimos set en la línea de comandos, vemos que lo que hemos hecho no ha afectado a la variable de entorno WINDOWMANAGER. Para que el cambio tenga efecto, hay que exportarla al sistema; Esto se hace:

export WINDOWMANAGER

Si queremos que cualquiera de estas variables exista cada vez que entremos con nuestro usuario, habrá que añadirla al archivo .profile en nuestro directorio home.

Archivos importantes:

En Linux, como en MS-DOS o cualquier sistema operativo, existen una serie de archivos con información para mantener el sistema. Archivos como el AUTOEXEC.BAT o el CONFIG.SYS, el IO.SYS, etc. contienen la forma de configurar el arranque de nuestro ordenador, o hasta de algún programa, como el WIN.INI, etc...

A continuación se hace un breve resumen de estos archivos en Linux:

En cada directorio personal: /home/Usuario/

.xinitrc: Archivo de inicio del entorno de ventanas. Es propio de cada usuario.

.profile: Es el equivalente al AUTOEXEC.BAT de MS-DOS, pero con la particularidad de que en Linux este archivo es diferente para cada usuario. Se trata de un shell script, y hay que crearlo a mano, pues no se crea por defecto.

.bash_history: Es un archivo de seguridad en el que se graba cada comando que ejecuta un usuario durante varias sesiones seguidas.

En el directorio de configuración: /etc/

profile: Es el equivalente al AUTOEXEC.BAT; se ejecuta al arrancar.

fstab: Archivo que contiene el montaje de los dispositivos, los puntos de montaje, opciones de automontaje en el arranque, permisos, etc.

lilo.conf: Archivo de configuración del cargador del sistema operativo lilo(Linux loader), encargado del arranque de Linux y los demás s.s.o.o.

resolv.conf: Archivo de configuración de la resolución de nombres de red.

hosts: Archivo de configuración de redes(Ver documento adjunto).

En otros directorios:

/var/adm/backup: Cada vez que se hacen cambios en el sistema, se nos da la posibilidad de guardar una copia de seguridad de todos los archivos susceptibles de variar. Aquí se guardan dichos cambios en formato tar.gz

/opt/: Aquí se guardan los programas considerados opcionales, como son el navegador Netscape, o el entorno de ventanas KDE.

/vmlinuz: Es el núcleo del sistema operativo. Puede llamarse de otra forma.

/mnt/: Aquí se suelen montar las particiones o dispositivos que tenga el sistema.

/usr/doc/Howto: Múltiples ayudas catalogadas por temas.

/usr/doc/packages: Conjunto de README, y documentos varios para cada paquete instalado, en formato texto, postscript, html, etc.

En el directorio /proc:

Si miramos el contenido de cualquiera de estos archivos( cat ), obtendremos información útil sobre nuestro sistema:

devices: Información sobre los dispositivos que el sistema reconoce.

ioports: Info. sobre las direcciones de entrada/salida de los dispositivos.

interrupts: Info. sobre las interrupciones usadas por el sistema.

dma: Info. sobre los canales de acceso directo a memoria del sistema.

En el directorio de los dispositivos: ( /dev)

hda: Disco primario maestro.

hdb: Disco primario esclavo.

hdc: Disco secundario maestro.

hdd: Disco secundario esclavo.

fd0: Disquetera.

mouse: Contiene un enlace al puerto del ratón(tty0, psaux, etc)

modem: Enlace al puerto del módem(tty0, tty1, etc)

lpd: Impresora.

fb0: Frame buffer device. Es un dispositivo que controla la tarjeta gráfica a bajo nivel, sin necesidad de entorno gráfico.

COMO CONECTARSE A LA WIRELESS EN LINUX

1. Tarjetas

Lo primero que debemos tener en cuenta es si nuestra tarjeta es compatible con Linux, la mayoria de las tarjetas suelen tener el chip del modelo Orinoco,Symbol HR y Prism 2,estas si son compatibles con Linux con el driver orinoco_cs incluido en el kernel de todos modos mirad en la web de vuestro fabricante para saber si esta soportada vuestra tarjeta o en internet por si alguien ha realizado algun driver para ella.

A parte de esto existen otras opciones como son los nuevos linux-wlan-ng o el hostap-driver para Prism2, personalmente me quedo con estos dos ultimos, el primero para trabajar en en managed (caso de nuestra red) o en modo (ad-hoc) y el segundo para crear un punto de acceso de bajo coste en sus respectivos README encontrareis informacion de como instalarlos en vuestro linux.

2 Como Conectarse

Una vez que tenemos todo listo, tenemos dos comandos que nos van a servir de ayuda para conectarnos a la wireless, uno es el propio ifconfig que usamos normalmente para configurar nuestras tarjetas tradicionales de red y otro iwconfig que lo que nos permite es configurar parametros especiales,este ultimo se encuentra dentro del paquete wireless-tools q deberiamos instalar.

Con el iwconfig podemos configurar parametros como el essid, el canal, el modo,la Clave de encriptacion y muchos mas.

Lo que realmente nos interesa a nosotros es el de clave de encriptacion para ello realizaremos la siguiente instruccion iwconfig interface key ``s:wireless esei'', pongo interface por que segun el driver que useis o el tipo de distribucion linux la cosa cambia.

3 Configuracion Del Cliente

Me voy a basar en la configuracion de una tarjeta PCMCIA, como he dicho antes nosotros estamos en modo infraestructura, por lo tanto nos comunicaremos contra un AP q ya tenemos configurado.

Para habilitar en el kernel el soporte PCMCIA en ``General Setup:PCMCIA CardBus Support'' y alli seleccionamos ``Cardbus Support''.

Si utilizamos los drivers orinoco_cs utilizaremos en ``Networking Device Support:Wireless LAN (non-hamradio)'' y seleccionamos todas las opciones del ``Hermes Chipset 802.11 support (Orinoco/Prism/Symbol)''.

Ahora deberiamos compilar el kernel y mirar q tenemos los paquetes de nuestra distribucion para soporte PCMCIA en caso de debian es el paquete pcmcia-cs, en cuanto compilemos el kernel ya tenemos todo preparado para acceder a la red.

kernel-orinoco.png

3.1 Debian (PCMCIA)

Realizaremos la configuracion en archivos .opts los cuales se encuentran en /etc/pcmcia y basandonos en la tarjeta conceptronic mencionada anteriormente.

Primero editamos el archivo /etc/pcmcia/config.opts y agregamos(El nombre de la tarjeta,la version,....) :

card "Conceptronic Wireless" version "802.11", "11Mbps Wireless LAN Card" bind "orinoco_cs".

Ahora le toca el turno al fichero wireless.opts(Parametros de configuracion):

ESSID=''wireless-esei''

MODE=''Managed''

KEY=''s:wireless esei'' NOTA:Aqui wireless va separado de esei con un espacio.

Y por ultimo configurar los datos de la red IP:

Aqui ponemos q use DHCP y las lineas tales como IPADDR, NETMASk, NETWORK,BROADCAST,GATEWAY las comentamos,para comentarlas usaremos la # por que nos seran sumistradas por el servidor DHCP.

Por ultimo nos bajamos un cliente DHCP, en mi caso dhcp-client y en una consola ejecutamos dhclient interface, y con esto ya estariamos conectados a la red wireless de la escuela.

Si ahora haceis un ifconfig os encontrareis con que teneis vuestra tarjeta de red configurada con una direccion ip.

3.2 RED HAT

En red hat en lugar de configurar la red en /etc/pcmcia lo hacemos en /etc/sysconfig/network-scripts/ifcfg-ethX(o lo q sea) y configurar los parametros tal y como hemos echo en debian.