Archive for ottobre, 2010

Ott 31

Recently I needed a *BSD machine to test a software I’m developing with two friends for an university research project.
My choice went for NetBSD of course ( latest version is 5.0.2, but the 5.1 is coming, anyway…).
But I can’t use Mirage, my UNIX (Oracle Solaris) server, for two reasons:

  • The only disk inside has Solaris on it and I don’t want to remove it, install NetBSD, then reinstall Solaris again;
  • I need two network cards and  Mirage has only one ( the Happy Meal ).

Because Raptor is powerful enough, I decided to virtualize NetBSD on VirtualBox, so I can have up to four network cards, as much RAM (and CPUs) as I wish, remote desktop, etc.

So, I created a virtual hard drive, then I created a virtual machine and tried to boot it… No way… Some strange errors at boot, during kernel loading…
Now, the NetBSD slogan is “Of course it runs NetBSD”, meaning it is able to runs on almost anything with a CPU and some RAM, including the toaster.
Being unable to run on one of the most used desktop virtualization software is unacceptable. It has to be my fault, I’m missing something.
Something critical for every OS I’ve used (and they’re many) is the / or the C: partition. The boot loader could be able to launch the kernel, but the kernel could not be able to find and mount the partition.

So, get my advice. When creating a virtual machine for NetBSD, add a SCSI controller to handle the virtual disk instead of using the classical IDE interface or the newer AHCI interface.

Bye



Questa guida è stata realizzata su richiesta di… ehr… un “cliente” con la necessità di monitorare le operazioni di un altro utente sul proprio (del mio “cliente”) computer.

Le immagini sono state prese da una versione in lingua italiana di Windows XP Professional. Su Windows Vista / 7 non cambia molto.

Importante: Accedere come un utente membro del gruppo Administrator (XP) o eseguire il setup come amministratore (Vista / 7).

  1. Eseguire il programma di installazione.
  2. Selezionare la lingua (in questo caso, inglese).Language selection dialog
  3. Alla schermata iniziale cliccare sul pulsante ‘Next’.
  4. Alla schermata ‘Version Comparison’ cliccare nuovamente su ‘Next’.
  5. Alla schermata ‘License Agreement’ cliccare su ‘I agree’.
  6. Alla schermata ‘Information’ cliccare su ‘Next’.
  7. Alla schermata ‘Select Destination Location’, scegliere dove installare i file del programma.
    • Default: C:\Windows\System32\MPK
    • Altre possibilità: C:\Programmi\MPK (Windows XP Italiano); C:\Program Files\MPK (Windows XP inglese e Windows Vista / 7 a 32 bit); oppure altri percorsi a sceltaDestination Location Selection
    • Considerazione personale: installarlo sotto C:\Windows\System32 non mi sembra una buona idea…
  8. Alla schermata ‘Select Additional Tasks’ si può levare il segno di spunta da ‘Create a desktop icon’, quindi cliccare su ‘Next’.Uncheck 'Create Desktop Icon'
  9. Alla schermata ‘Ready to Install’ cliccare su ‘Install’.
  10. All’ultima schermata cliccare su ‘Finish’.
  11. All’avvio del programma compare una schermata che suggerisce di acquistare la versione completa. Cliccare su ‘OK’.
  12. La procedura guidata di configurazione si aprirà automaticamente. Deselezionare ‘Monitor all users’ per non monitorare tutti gli account del computer e poter scegliere selettivamente, quindi cliccare su ‘Next’.Uncheck 'Monitor all users' at the first configuration wizard dialog
  13. Selezionare gli utenti che si vogliono controllare, quindi cliccare su ‘Next’.
  14. Selezionare le attività degli utenti che si vogliono controllare, quindi cliccare su ‘Next’. Le opzioni non selezionate  non sono disponibili nella versione gratuita.Selection of the user activities to monitor
  15. Selezionare il livello di “invisibilità” del programma, quindi cliccare su ‘Next’. Le opzioni non selezionate non sono disponibili nella versione gratuita.Inivisibility options
  16. Selezionare una combinazione di tasti con cui richiamare il programma, quindi cliccare su ‘Next’.hotkey selectionE’ comunque possibile richiamare il programma mediante l’icona posta nella tray bar.traybar icon
  17. All’ultima schermata deselezionare ‘Check updates automatically’, quindi cliccare su ‘Next’.last dialog
  18. Fine

Adesso il programma è attivo e sta registrando l’attività degli utenti che si è scelto di controllare. Una volta richiamata la finestra principale del programma è sufficiente selezionare uno degli utenti sotto controllo per visualizzare i dati registrati.


This guide has been made on demand for… ehr… a “customer” with the need to control the actions of another user on his (my “customer”) computer.

Images come from an Italian language version of Windows XP Professional. On Windows Vista / 7 there aren’t many changes.

Notice: login as an user member of the Administrator group (XP) or run the setup as an administrator (Vista / 7).

Refer to the italian version of this howto just up here for the images.

  1. Run setup.
  2. Select language.
  3. At the first dialog, click on ‘Next’.
  4. At the ‘Version Comparison’ dialog, click on ‘Next’.
  5. At the ‘License Agreement’ dialog, click on ‘I agree’.
  6. At the ‘Information’ dialog, click on ‘Next’.
  7. At the ‘Select Destination Location’ dialog, choose where to install the program.
    • Default: C:\Windows\System32\MPK
    • Other options: C:\Programmi\MPK (Windows XP Italian); C:\Program Files\MPK (Windows XP English and Windows Vista / 7  32 bit); other locations
    • Personal thought: installing under C:\Windows\System32\ doesn’t sound like a good idea to me…
  8. At the  ‘Select Additional Tasks’ dialog, uncheck the ‘Create a desktop icon’ option, then click on ‘Next’.
  9. At the ‘Ready to Install’ dialog click on ‘Install’.
  10. At the last dialog, click on ‘Finish’.
  11. The first time the program start, it asks to buy the complete version. Close the dialog by clicking ‘OK’.
  12. The Configuration Wizard will run automatically. Deselect ‘Monitor all users’ to choose the user to control.
  13. Select the users to control, then click ‘Next’.
  14. Select the user’s actions to record, then click ‘Next’.
    Unchecked options are unavailable on the free version.
  15. Select the desired “invisibility”.
    Unchecked options are unavailable on the free version.
  16. Select the hot keys to unhide the program.
  17. At the last dialog, click on ‘Finish’.
  18. The end.

Now the program is active and is recording the activity of the monitored users. After unhiding the main window, just select a controlled user to see the recorded data.

Bye



So here I am, configuring my UNIX server (actually a Sun Ultra 5 workstation), Mirage, installing Oracle Solaris 10 for the second time after a disk change.
The disk on which Solaris was installed was too damn noisy to allow me to work at night so I just put another IBM 9GB SCSI disk and went through the (really long) installation process.
So, after installing the OS, I started configuring the system (adding users, configuring daemons etc.). In the meanwhile, I wanted to listen to some music so I just plugged my headphones into the corresponding jack, pressed ‘Play’ on the media player and… here it came…
the internal speaker.

The internal speaker is active by default, but, unlike others operating systems, those of the Ultra 5 / 10 are not only used to play ‘beep’ but also to play system sounds (could be useful) and other sounds (it’s annoying).

The only working solution I’ve found on the web (beside meaningless chats), is the following:

$ audioplay -p line

Now I should decide about putting that line on my ~/.profile file, but at least now I can listen to some music without that annoying noise.


E così, eccomi qui intento a configurare il mio server UNIX (effettivamente una workstation Sun Ultra 5), Mirage, installando Oracle Solaris 10 per la seconda volta dopo avere cambiato il disco rigido.
Il disco su cui era installato Solaris era troppo dannatamente rumoroso per permettermi di lavorare di notte, così ho semplicemente montato un altro disco IBM SCSI da 9GB e ho effettuato l’installazione (veramente lunga).
Dopo aver installato il OS, ho iniziato la configurazione del sistema (aggiunta degli utenti, configurazione dei demoni, ecc.). Nel frattempo, visto che volevo sentire un po’ di musica, ho inserito lo spinotto delle mie cuffie nel jack corrispondente, ho premuto play nel media player e… ecco il problema…
lo speaker interno.

Lo speaker interno è attivo di default, ma, a differenza di quanto accade in altri sistemi operativi, quelli delle Ultra 5 / 10 non sono utilizzati solo per riprodurre il ‘beep’, ma anche per riprodurre i suoni di sistema (può essere utile) e altri suoni(è seccante).

L’unica soluzione funzionante che ho trovato sul web (a parte le chiacchiere inutili), è la seguente:

$ audioplay -p line

Adesso devo decidere se inserire questa riga nel mio file ~/.profile, ma almeno, per adesso, posso sentire un po’ di musica senza quel rumore fastidioso.

Bye