I am happily running Ubuntu Netbook Remix on my A110L for some days now. Bye bye Linpus!

Windows shutdown

2009/06/30

This is a photograph that I took while passing by a colleague’s desk:

shutnever

I know that at the end of the day everyone wants to go home (or for a walk, or whatever) but please wait the extra seconds to make sure that your computer actually shut down. What if it was Friday?

[ Παρόλο το debianism του τίτλου, αυτό είναι ένα γενικότερο post ]

Πριν από δραστικές αλλαγές στο λειτουργικό σύστημα ενός server, καλό είναι να γίνεται ένα reboot. Ειδικά εάν έχουν περάσει αρκετές ημέρες (μήνες, χρόνια) από το προηγούμενο reboot. Οι εξαρτήσεις στο πολύπλοκο περιβάλλον που ζουν οι servers φτάνουν σε σημεία που δεν μπορούμε να ελένξουμε ή δεν θυμόμαστε πάντα από μνήμης (Documentation; Τι είναι αυτό;).

Για αυτό ένα reboot πριν μια θεμελιώδη αλλαγή επιβάλλεται. Downtime is an option, αρκεί να μπορούμε να έχουμε μια ιδέα τι το προκάλεσε. Μετά π.χ. από ένα dist-upgrade από Etch σε Lenny, δεν είναι σίγουρο πως θα μπορεί να εντοπιστεί το πιθανό πρόβλημα στην αναβάθμιση του software ή σε μια άλλη εξάρτηση που έχει προστεθεί στην πορεία και δεν μας περνάει από το μυαλό.

Αλλάζουμε μία μεταβλητή (από όσες ελέγχουμε) τη φορά και θυμόμαστε πως συνήθως εάν ένα ext3 filesystem δεν έχει γίνει fsck για περισσότερες από 30 μέρες, θα κάνει fsck στο επόμενο reboot. Είσαι σίγουρος πως αυτό θέλεις να είναι το reboot του dist-upgrade;

Fear of rebooting.

XandrOS presto

2009/06/01

I have been a XandrOS user ever since their first released version of desktop Linux. The reason that I stopped using XandrOS 4 was that I could not compile ns2-2.31 on it (which meant switching to Ubuntu and later to Debian/Etch; this desktop now runs OpenBSD). So when XandrOS emailed me an offer to install Presto, I gladly did.

If there is one way for Linux to conquer the desktop, distributions like Presto are the way to go. If most of the time that you use your computer you browse the web why not use an operating system that boots faster (11 seconds on my HP 530 laptop) and consumes less energy while at the same time your documents are accessible? Everyone seems to be riding the green computing wave and judging from my laptop’s battery, Presto is greener than Vista. Plus their email support is exceptional and they follow back when they haven’t heard from you for a day or two.

Presto installs as a three-click (next, next, install) application from within Windows. I can’t wait for a standalone installer for my Aspire One A110L.

There seems to be a bug biting crypt(3) on Lenny amd64. On such platforms when using crypt(3) with the traditional DES scheme you get a segmentation fault. You do not get this when using the Modular Crypt Format ($digit$ password hash style). Fortunately, for the problem I was facing, I located and used the crypt(3) implementation from the Seventh Edition Unix. It is available from The Unix Heritage Society thanks to Henry Spencer.

This happened to me the other day: I was called to see why a newly installed Windows 2008 machine could not see anything beyond the default gateway. After playing point-and-click for some time, I resorted to the command line. Issuing an ipconfig command revealed that the machine had two default gateways on the same interface and with the same metric. The correct one (let’s call it 192.168.1.254) plus 0.0.0.0:

Default Gateway . . . . . . . . . : 0.0.0.0
                                    192.168.1.254

After some tcpdumping it seems that when having two default gateways and with the same metric, Windows 2008 does not randomly chooses one of them for every packet, rather it tries to send every packet through the smallest one (zero in this case). To resolve the problem one executes the following commands:

route delete 0.0.0.0
route -p add 0.0.0.0 mask 0.0.0.0 192.168.1.254 metric 1

The -p switch is need to make the route change permanent across reboots.

It seems that the default installation of xfce4 on Debian Lenny does not start the xscreensaver daemon by default. After looking here and there (mostly in Ubuntu forums) and reading the X startup scripts, I resolved the problem by simply creating $HOME/.xsession as follows:

#!/bin/bash
(sleep 5; /usr/bin/xscreensaver -no-splash) &
/usr/bin/startxfce4
/usr/bin/xscreensaver-command -exit

PS: I use xdm

Το 2001 στα πλαίσια του IT Security Conference (που αργότερα εξελίχθηκε στο Cyprus InfoSec) ο Richard Cross έκανε την καλύτερη παρουσίαση.

Δεν θυμάμαι τον τίτλο, ούτε το περιεχόμενο, όμως σίγουρα όποιος την είδε θα σας πει το ίδιο: Ήταν η καλύτερη παρουσίαση, γιατί είχε ένα μήνυμα και όλοι μα όλοι το θυμούνται καλά:

Remember people; Patch! Patch! Patch!

Δε θυμάμαι πόσες φορές το είπε. Το είπε αρκετές και παραστατικά, γιατί αμέσως μετά, όποιος πήγαινε να του μιλήσει δεν του έλεγε “Hi!”, του έλεγε “Patch! Patch! Patch!”.

Αργότερα μου είπε πως:

Έχω καταλάβει πως αν θέλεις να μείνει κάτι από αυτά που λές, πρέπει να το λες τρεις φορές.

Μία λέξη · δύο μαθήματα.

(Σε συνέχεια του προηγούμενου post)

Η πρώτη φορά που άκουσα για το concept των portable applications on-a-stick ήταν όταν ο φίλος μου ο Γιάννης, (τότε ΠΔ/407 σε κάποιο περιφερειακό πανεπιστήμιο) μου είπε:

- Φίλε Γιώργο, βρήκα τρόπο να κουβαλάω τη δουλειά μου μαζί χωρίς να την έχω σε laptop.

Αυτό ήταν πολλά χρόνια πριν και ο Γιάννης αφιέρωνε χρόνο και κόπο για να συντηρεί το USB stick που είχε όλα τα απαραίτητα προγράμματα για τη δουλειά του, ώστε να είναι πάντα επίκαιρα (τελευταία έκδοση). Από τότε έχει περάσει πολύς καιρός και έχουν εμφανιστεί λύσεις που κάνουν αυτή την απαίτηση πιο εύκολη, όπως π.χ. το MokaFive, το Ceedo, το MojoPac και το Tiny USB Office. Νομίζω όμως πως η σουίτα των PortableApps.com αξίζει ιδιαίτερης αναφοράς καθώς έχει τον πιο απλό τρόπο εγκατάστασης, τόσο του control panel της, όσο και των ίδιων των υποστηριζόμενων εφαρμογών.

Ακόμα περισσότερο, το control panel του PortableApps.com δεν το έχω εγκατεστημένο μόνο σε ένα USB stick, αλλά και στο PC μου για τον απλό λόγο, πως εάν θέλω να κάνω ένα δοκιμαστικό install κάποιας υποστηριζόμενης εφαρμογής, είναι ευκολότερο το uninstall της από το PortableApps.com παρά από τον uninstaller κάθε εφαρμογής, που μπορεί να αφήνει πίσω του χύμα DLLs και λοιπά αρχεία.

Έτσι και σε συνδιασμό με το alpine και το putty μπορεί κανείς να έχει ένα καλό working environment το οποίο να μπορεί να χρησιμοποιήσει από υπολογιστή που δεν είναι δικός του αλλά τον εμπιστεύεται. Στο δικό μου stick επίσης έχουν σπίτι το wget, ένα binary του micro emacs από τη Digital Mars και η embedded έκδοση του Damn Small Linux που τρέχει από το QEMU. Σκέφτομαι επίσης να προσθέσω και το Tclkit Portable Python για να έχω μια γλώσσα προγραμματισμού πρόχειρη.

Για ιστορικούς και μόνο λόγους κατοικεί και ένα VisiCalc.

From my /boot/grub/menu.lst:

title        FreeBSD
root        (hd0,2,a)
kernel      /boot/loader

As a side note, if you want to install FreeBSD 7.0-RELEASE on a VirtualBox virtual machine, you have to use the Intel PRO/1000 MT Desktop network card instead of the default one (PCnet-FAST III). VirtualBox’s DHCP server does not seem to cooperate with FreeBSD and PCnet-FAST III.

Follow

Get every new post delivered to your Inbox.

Join 1,104 other followers