woensdag 26 september 2007

What's new in Mandriva 2008.0

clipped from osnews.com
"In less than two weeks time, six months after the great Mandriva 2007.1 Spring release, Mandriva 2008.0 will be ready and published. Currently, Release Candidate 2 is out, it's your last chance to test it and make sure everything is working before the final release! There were great ideas at the start of the development phase, and in in those six months that have passed, Mandriva has always been one of the most active projects on CIA.vc. This gives much hope for lots of improvements, so let's take a look at what can be expected from Mandriva 2008.0."
 blog it

Back-ups !!

Paar dagen geleden de nieuwe Linux magazine in mijn brievenbus ontvangen. Bij de commandline Tips stond er enehandige tip voor het maken van back-ups, wat ik eerlijk gezegd vaker zou moeten doen :-)

Tip 1 : KOPIEREN

Dit is de makkelijkste manier om een back-up te maken, m.a.w. bestanden kopieren

$ cp -a /home/user /backup

Bovenstaande commando kopieert de hele inhoud van de home directory, inclusief subdirectories. De -a optie zorgt daarvoor.

Tip 2 : RSYNC

Een andere manier is de tool rsync. dit synchroniseert de ene directory met de andere. Het is dan ook eenvoudig te gebruiken. Voor een back-up gebruiken we de archive mode optie -a:

$ rsync -a /home/user /backup

voordeel is wanneer je dit commando iedere dag uitvoert, rsync alleen de bestanden kopieert die veranderd zijn ten opzichte van de vorige dag.

* edit

kleine bash script bij gebruik van rsync

#!/bin/bash
clear
rsync -a /home/user /backup

gewoon nog als uitvoerbaar stellen.


bron: Linux magazine / oktober 2007 / bladzijde 66.

zaterdag 22 september 2007

Python Tutorial deel1

Python tutorial (deel1)
------------------------------------------

Voor ik Python begon te leren had ik echt weinig ervaring met programmeren. Ik had op hogeschool wel Turbo Pascal gezien en een beetje VB maar daar bleef het bij. Ik ben Python zelfstandig beginnen leren met behulp van de tutorial van Josh Cogliati.
Ik zal dus overlopen wat ik geleerd heb en hopelijk een aantal beginnende mensen kunnen helpen...


- Python installeren

Op de meeste linux distributies zal python al geïnstalleerd zijn. Om te zien of IDLE, de python GUI, al op je machine aanwezig is , probeer het uit te voeren.

$ idle

op Ubuntu moet je idle nog installeren. ga naar synaptic pakketbeheeer en zoek idle op. installeer het dan gewoon. Je kan natuurlijk ook een simpele tekst editor gebruiken om code te schrijven.

- gegevens afdrukken

Bijna alle programmeer tutorials beginnen met het programma Hello World !

print "Hello, World!"

Als je de command line gebruikt om programma's uit te voeren, typ dit dan in een tekst editor, sla het op als 'hello.py' en run het met "python hello.py".
In het ander geval, ga naar IDLE, open een nieuw venster en typ print "hello world!". Om het uit te voeren kies edit --> run script.

Hier een iets moeilijker programma :

print "Jack ans Jill went up a hill"
print "to fetch a pail of water;"
print "Jack fell down, and broke his crown,"
print "and Jill came tumbling after."

Wanneer je dit programma uitvoert, bekom je het volgende:

Jack ans Jill went up a hill
to fetch a pail of water;
Jack fell down, and broke his crown,
and Jill came tumbling after.

De computer leest de eerste lijn en gaat vervolgens zo door naar de volgende lijnen.

Probeer nu zelf wat teksten te printen, volgende keer gaan we wat rekenen...

vrijdag 21 september 2007

Defending Openness

clipped from linuxjournal.com

Defending Openness



Things have been going pretty well for open source and open standards recently. First, there was the implosion of the SCO case, in the wake of which even SCO accepts that it may not be around much longer. Then we had the rejection of Microsoft's request for a fast-track approval of its OOXML rival to ODF. Finally, the European Court of First Instance has refused Microsoft's request for an annulment of the terms imposed by the European Commission. All are notable victories that many regarded as unlikely a few years ago. But elsewhere, other open movements are still in the early stages of the struggle against forces pushing closed, proprietary standards.



 blog it

donderdag 20 september 2007

screenshots Mandriva 2007 Powerpack




edit: effe ook ne kubus bij gepost :-)

zaterdag 15 september 2007

Why you should adopt Python to manage UNIX systems

Interessant artikel voor mensen die bezig zijn met Python, ikzelf ben al een tijdje bezig met Python te leren. Is geen te moeilijke taal en heel efficient...
clipped from osnews.com
As a system administrator, you run across numerous challenges and problems. Managing users, disk space, processes, devices, and backups can cause many system administrators to lose their hair, good humor, or sanity. Shell scripts can help, but they often have frustrating limitations. This is where a full-featured scripting language, such as Python, can turn a tedious task into an easy one. Python is a scripting language that looks like it was made for system administrators.
 blog it

vrijdag 14 september 2007

Screenshots with Scrot


How to take screenshots with Scrot



By Gary Richmond


Online on: 2007-09-04


Screenshots. Where would the internet be without them? They are ubiquitous and when you are researching that latest piece of cool software or the latest ISO of your favourite GNU/Linux distro they are an opportunity to preview the eye candy. There are many ways to make those screenshots and most KDE and Gnome users will be familiar with the GUI tools bundled with them: Ksnapshot for KDE and Take Screenshot for Gnome. They are good at what they do. However, sometimes you just need to take screenshots quick and dirty without the overheads (especially if you are using a lightweight windows manager on a relatively low-spec machine). If that's your case, you can use “Scrot”.


 blog it