Linux Xen Notes

Quick and dirty ref sheet for myself 🙂

vgdisplay – this command shows you all the disk space used/free
lvdisplay – this will show you all the partitions that you have running and how big they are etc

lvextend -L +10G /dev/vg00/files – this will increase /dev/vg0/files 10GB
xfs_growfs /dev/vg0/files – this will resize the xfs partition to take into account eh extra 10GB

lvcreate /dev/vg0 -n mail1 -L 10G # create a partition 10GB called mail1
  lvcreate /dev/vg0 -n mail1-swap -L 1G # create a partition 1GB called mail1-swap
  mkswap /dev/vg0/mail1-swap
  xen-create-image --dist=sarge --debootstrap --hostname=mail1 --force --passwd --size=10G --swap=1G --lvm=vg00   --mirror=http://ftp.nz.debian.org/debian/ --mem=200 --gateway=192.168.10.2 --netmask=255.255.255.0 --ip=192.168.10.81
  cd /etc/xen/ # make a config/copy one from elsewhere and edit it
  sudo ln -s /etc/xen/mail1.cfg /etc/xen/auto/
  xm create -c mail1.cfg
  xm console mail1

Terminology: In xen, everything runs as a virtual machine, even the ‘host operating system’ ( called dom0 ) is just the virtual machine from which you control all the others. The ‘virtual machines’ themselves are called ‘domU’ virtual machines & the only difference is their absence of this admin capability.

To do anything with Xen, ssh to the dom0 on which your xen domU runs and run the ‘xm’ xommand

xm #Lists xm subcommands
xm list # lists xen domUs
xm top # Show xen CPU usage
xm reboot xxxxx #Reboot xen nodes
xm shutdown xxxx # shutdown xen node
xm destry xxxx # equivalent of pulling power cable
xm create xxxx.cfg #Boot a xen node (note the cfg)
xm console xxx # Attach to the console of a xen node, press CTRL-] to exit

To create a xen machine try a shell script similar to this

hostname=test
dist=sarge # Or etch for a new system
ipaddress=192.168.10.161
mem=2000
xen-create-image --dist=$dist --debootstrap --hostname=$hostname --force --passwd --size=5G --swap=1G --lvm=vg00   --mirror=http://debian.orcon.net.nz/debian --mem=$mem --gateway=192.168.10.2 --netmask=255.255.255.0 --fs=xfs --ip=$ipaddress

Lollicake Recipe

1 packet crushed malt biscuits,
1/2 tin sweetened condensed milk,
1/2 cup chopped eskimo lollies,
4 oz butter, coconut.

Melt butter and condensed mlik. Add lollies and crushed biscuits. Mix together until combined. Roll into log shape. Sprinkle with coconut.

Double the recipe so you dont end up with half cans of stuff 🙂

The Name “Negro”

The Name “Negro”
W.E.B. DuBois
March 1928
Printer-Friendly Version

South Bend, IN

Dear Sir:

I am only a high school student in my Sophomore year, and have not the understanding of you college educated men. It seems to me that since THE CRISIS is the Official Organ of the National Association for the Advancement of Colored People which stand for equality for all Americans, why would it designate and segregate us as “Negroes,” and not as “Americans.”

The most piercing thing that hurts me in this February CRISIS, which forced me to write, was the notice that called the natives of Africa, “Negroes,” instead of calling them “Africans,” or “natives.”

The word “Negro,” or “nigger,” is a white man’s word to make us feel inferior. I hope to be a worker for my race, that is why I wrote this letter. I hope that by the time I become a man, that this word, “Negro,” will be abolished.

Roland A. Barton

My dear Roland:

Do not at the outset of your career make the all too common error of mistaking names for things. Names are only conventional signs for identifying things. Things are the reality that counts. If a thing is despised, either because of ignorance or because it is despicable, you will not alter matters by changing its name. If men despise Negroes, they will not despise them less if Negroes are called “colored” or “Afro-Americans.”

Moreover, you cannot change the name of a thing at will. Names are not merely matters of though and reason; they are growths and habits. As long as the majority of men mean black and brown folk when they say “Negro,” so long will Negro be the name of folks brown and black. And neither anger nor wailing nor tears can or will change the name until the name-habit changes.

But why seek to change the name? “Negro” is a fine word. Etymologically and phonetically it is much better and more logical than “African” or “colored” or any of the various hyphenated circumlocutions. Of course, it is not “historically” accurate. No name ever was more historically accurate: neither “English,” “French,” “German,” “White,” “Jew,” Nordic” nor “Anglo-Saxon.” They were all at first nicknames, misnomers, accidents, grown eventually to conventional habits and achieving accuracy because, and simply because, wide and continued usage rendered them accurate. In this sense, “Negro” is quite as accurate, quite as old and quite as definite as any name of any great group of people.

Suppose now we could change the name. Suppose we arose tomorrow morning and lo! Instead of being “Negroes,” all the world called us “Cheiropolidi,” – do you really think this would make a vast and momentous difference to you and to me? Would the Negro problem be suddenly and eternally settled? Would you be any less ashamed of being descended from a black man, or would your schoolmates fell any less superior to you? The feeling of inferiority is in you, not in any name. The name merely evokes what is already there. Exorcise the hateful complex and no name can ever make you hang your head.

Or, on the other hand, suppose that we slip out of the whole thing by calling ourselves “Americans.” But in that case, what word shall we use when we want to talk about those descendants of dark slaves who are largely excluded still from full American citizenship and from complete social privilege with the white folk? Here is Something that we want to talk about; that we do talk about; that we Negroes could not live without talking about. In that case, we need a name for it, do we not? In order to talk logically and easily and be understood. If you do not believe in the necessity of such a name, watch the antics of a colored newspaper which has determined in a fit of New Year’s Resolutions not to use the word “Negro”!

And then too, without the word that mans Us, where are all those whose spiritual ideals, those inner bonds, those group ideals and forward strivings of this might army of 12 millions? Shall we abolish there with the abolition of a name? Do we want to abolish them? Of course we do not. They are our most precious heritage.

Historically, of course, your dislike of the word Negro is easily explained: “Negroes” among your grandfathers meant black folk; “Colored” people were mulattoes. The mulattoes hated and despised the blacks and were insulted if called “Negroes.” But we are not insulted – not you and I. We are quite as proud of our black ancestors as of our white. And perhaps a little prouder. What hurts us is the mere memory that any man of Negro descent was ever so cowardly as to despise any part of his own blood.

Your real work, my dear young man, does not lie with names. It is not a matter of changing them, losing them, or forgetting them. Names are nothing but little guideposts along the Way. The Way would be there and just be as hard and just as long if there were no guideposts,  but not quite as easily followed! Your real work as a Negro lies in two directions: First, to let the world know what there is fine and genuine about the Negro race. And secondly, to see that there is nothing about that race which is worth contempt; your contempt, my contempt; or the contempt of the wide, wide world.

Get this then, Roland, and get it straight even if it pierces your soul: a Negro by any other name would be just as black and just as white; just as ashamed of himself and just as shamed by others, as today. It is not the name – it’s the Thing that counts. Come on, Kid, let’s go get the Thing!