Skip to content

Il sito di Ivan Piffer

Narrow screen resolution Wide screen resolution Increase font size Decrease font size Default font size    Default color brown color green color red color blue color
You are here: HOME arrow IT
Skip to content

Articoli correlati

Chatta con me


IT
Use Windows For Unix Services PDF Stampa E-mail
Valutazione utente: / 0
Scritto da Ivan Piffer   
venerdì 08 settembre 2006

Use Windows For Unix Services

Want to run best-of-breed apps under both Windows and Unix? Eric Hall tells you about an option for doing this: Microsoft's Posix subsystem. It lets Unix apps think they're using regular Unix when they're actually using Windows instead.

By Eric A. Hall,  InformationWeek
Sept. 6, 2006
URL: http://www.informationweek.com/story/showArticle.jhtml?articleID=192503618

Sooner or later, every administrator finds himself wanting to run applications from multiple operating systems on the same physical machine simultaneously, and then struggles to figure out a solution that works somewhat seamlessly.

Maybe you're married to Microsoft Exchange, but you secretly pine for open-source e-mail tools like SpamAssassin or fetchmail. Or maybe you're using Unix-based applications for some network services, but you really want to run them under Windows so you can integrate them into your overall network security model. Whatever the case, wishing that you could run best-of-breed applications from different operating systems simultaneously is pretty common, and often unavoidable.

In my case, I ran into this situation when upgrading an aging utility server, and I made the mistake of buying a brand-new Intel motherboard that does not yet have adequate Linux driver support. If I was going to use this system at all, it had to run Windows, but most of the software that this particular system is meant to run was designed for Unix.

The traditional solution to this dilemma is to force yourself to pick one platform--either by developing detailed lists of the weighted pros and cons for each operating system, or by using the proven decision-making technique of eenie-meenie-minie-moe--and then making do with the tools that are available for the winner. But the reason you find yourself in this dilemma in the first place is because you want to use the best applications from multiple platforms, so "making do" with almost-as-good alternative applications means using something other than "the best" applications, and is sub-optimal by definition.

Another option here, and one that is increasingly viable, is to run multiple systems in parallel, or to use virtualization technology to run multiple platforms on a single system simultaneously. Given the relatively low cost of high-powered modern hardware, not to mention the availability of zero-cost virtualization products, this is at least more feasible than it used to be. However, there are additional problems that are created by this kind of approach, particularly in the areas of user and device integration.

But there is another option available that hardly anyone seems to know about, which is to simply run your Unix-based applications under Windows itself, using the Posix subsystem from Microsoft's Services for Unix package. In this model, the actual operating system itself is Windows, while system libraries and executables provide a Posix-compliant front-end to the operating system's resources. Simply put, Unix-based applications think they are using regular Unix, but are actually using the Windows resources instead.

This is easier shown than explained, and since a picture is worth a thousand words anyway, the screenshot below shows what I mean.

 

 

In this example, a Windows domain user is logged into a Windows XP PC via a local bash shell, using the Posix subsystem in SFU. To the user and applications, the environment looks and feels pretty much like a regular Unix system, but it is in fact Windows XP. The Posix subsystem for Windows has actually been around for quite some time. The technology used to be called Interix (and still is in some quarters), and was developed by a company called Softway Solutions for use with Windows NT. Microsoft acquired the company in the fall of 1999, and then combined Interix with some separate NFS and NIS technology into a retail add-on package called Services for Unix v2.0, also known as SFU. (I reviewed parts of SFU 2.0 for Network Computing magazine back in 2000, which you can read here.) Over the years since, the product has been further developed and enhanced to become SFU v3.0, and then SFU v3.5, becoming a free-for-download package along the way.

Microsoft is transitioning the product line again, integrating it directly into Windows, with the Posix component being renamed to Subsystem for Unix Applications (SUA). This transition actually started with Windows Server R2, but it's also the strategy going forward with Vista. The new labeling also signifies the fact that SUA is essentially a ground-up rewrite of the Posix environment--including 64-bit platform support, Open Database Connectivity (ODBC) interfaces, and better integration with Microsoft Visual Studio. But to user-space applications it's all still Interix.

The Posix subsystem essentially maps Windows resources to the Unix environment, providing an alternative "personality" for the Windows kernel through a Unix-like set of APIs and representations. For example, user accounts are not stored in a traditional /etc/passwd file, but instead are accessed through library calls like getpwnam and getpwuid, which the Posix subsystem then maps to the Windows authentication system via the legacy SAM database API.

This model allows the Windows authentication store to work somewhat seamlessly, regardless of whether the store itself is a local users and groups database, a legacy NT domain, or an Active Directory domain. The downside is that user account data is limited to what can be stored in the SAM database, which isn't much. Worse, the NIS server component of SFU provides Posix extensions for Active Directory, but those attributes cannot be used because the Posix subsystem can speak only to the SAM database API.

Likewise, the Posix file system is simply a representation of the underlying Windows file system, and can use only what Windows can provide. The root of the Unix file system is mapped to C:\SFU by default, although other parts of the Windows file system can be accessed through device aliases. (For instance, the root of the C: drive can be accessed via /dev/fs/C.)

Since there are no mount services to speak of, the only way to access remote file systems from the Posix subsystem is to set up a connection in Windows. For example, if you need to use a remote SMB share for a user's home directory, then you need to make sure the resource is mapped to a drive letter by Windows during the login process, either by the user's profile settings, or by using a login script. (This can be seen in the first screenshot above, which shows the user's home directory being mapped to Z:, or /dev/fs/Z in the Posix space.) This can be another point of weak integration in some cases. Because the user's home directory attribute gets used for the user's Posix home directory as well, you are stuck with UNC and drive letter paths for the SFU home directory, while remote systems can use NFS mount points and paths.

Windows and the Posix subsystem also share a common command environment, so you can call Windows executables from within a Unix shell simply by calling the executable like you would from any command prompt. The opposite works too--such as using "ls" to get a Unix-style directory listing from within the CMD command shell. But if you need the whole Posix subsystem--including file system mapping and the like—then you need to use the POSIX.EXE command as a front-end loader for the Unix-style command to create the full environment.

One area of disconnect here is in the background services: the Posix subsystem includes its own /etc/init.d startup scripts and cron scheduler, which are completely independent of the Windows service engine and Task Scheduler. Experimentation shows that it is possible to launch some of the Unix services as fake Windows services by using the "instsrv" utility from the Windows Resource Kit and "psxrun" (POSIX.EXE with the terminal I/O functions removed), although this is a crude hack at best. It would be nice if Microsoft could find a way to improve some of these mappings. Apart from the base components, SFU also includes scores of classic Unix utilities, as well as the development tools that are needed to compile new ones, including GNU tools like gcc and gmake. The screenshot below shows the contents of the /bin directory, as populated by the default installation and some updates.

 

 

Depending on whether you use SFU or SUA, the tools will either be bundled into the installation package directly (SFU), or will be downloaded from a Microsoft repository as part of the installation process (SUA).

Interop Systems, a third-party company that was founded by some of the original employees of Softway Systems, also maintains ports of several common open-source applications. Some of the packages are simply updates to the utilities that are bundled into SFU and SUA, but Interop Systems also maintains ports of other, critical applications like OpenSSH and Apache, among others. Interop Systems charges a one-time fee of $20 for access to its repository of ports, but the cost is well worth it.

You can also try your hand at porting applications yourself, using the bundled development tools (or the updated versions from Interop Systems). In my experience, this can be done for some things fairly easily, while other applications are extremely difficult to work with. Generally speaking, if the source tarball uses GNU configure scripts that support Interix as a platform, and if the application does not expect to work with Unix-specific resources such as /etc/passwd directly, then you have a pretty good chance of being able to successfully compile the application, although it still may not run. If the application is written to specific target platforms and it does not have explicit support for Interix as a target, then you are probably not going to get it working unless you spend a fair amount of effort on hacking the code.

As a quick sampling of the feasibility here, I was able to get the latest version of Berkeley DB to compile and run without a problem, and I was also able to get some OpenLDAP tools to compile (but not all of them, and the winners did not run fully). I was also able to get SpamAssassin and some support modules to compile and run (including Net::LDAP, although I had to upgrade Perl from Interop Systems' repository first). A few other Perl modules would not compile or would not pass the "make test" phase. Nor was I able to get the CMU SASL libraries to compile, while UW IMAPD and Cyrus IMAP are written to specific platforms that do not include support for Interix, so I was not able to compile those either.

As for my specific usage needs, the only two Unix applications that I really need for this system are OpenSSH and Squid, and I am easily able to use Windows services for everything else. In some cases, like printer management, I am far better off with the Windows services. Since Squid and OpenSSH are available from Interop Systems in pre-built form, my needs were met easily. In short, I'm able to run best-of-breed open source applications under Windows just as if they were running under Unix, and am also able to benefit from tight integration with the Windows environment.
 
Access a remote Linux Desktop using FreeNX PDF Stampa E-mail
Valutazione utente: / 0
Scritto da Ivan Piffer   
venerdì 08 settembre 2006

Access a remote Linux Desktop using FreeNX

 

NX short form for NoMachine's X protocol is a compression technology developed by NoMachine which allows one to run complete remote desktop sessions (be it Linux or Windows) even at dial up internet connection speeds. One of the advantages of using NX technology over VNC is that NX uses SSH on port 22 for connection between the client and the server. Which means all the communication takes place encrypted through industry standard SSL public key cryptography.

FreeNX is the GPL implementation of NoMachine's NX server. To have access to a remote desktop, you need to have two software.
  1. The (Free)NX server installed and running on the remote machine and
  2. The (Free)NX client installed on the local machine from which you want to have access to the remote machine.
I tried this technology by connecting via dialup to a demo remote server run by NoMachine and I was really impressed by the speed with which I recieved the remote KDE desktop. Infact, the NoMachine demo server called TestDrive provides three choices of Gnome, KDE and a Windows desktop (through RDP / terminal server).

NX clients are available for Debian/Ubuntu in deb format, RPM for Red Hat based distros and gzipped tar file for all other Linux flavours. Why just for Linux, NX clients are available for Windows, Solaris, Mac OSX and even Sharp Zaurus and HP/Compaq iPaq (PDAs). So it is possible to access the remote Linux/Solaris desktop from all these machines.

The primary difference between NX technology and VNC is that, VNC works by grabing screenshots of the remote desktop which means the network traffic is rather heavy. Where as NX uses its in-house developed X compression technology to display the remote desktop on the local machine. Security wise too, NX scores over VNC.

Daniel.W.Amstrong has written a very nice article explaining how to install and configure a FreeNX server and client in Linux. He has used Kanotix as the test machine but I believe the steps are the same for any other Debian based distribution.
 
strumenti google per webmaster PDF Stampa E-mail
Valutazione utente: / 0
Scritto da Ivan Piffer   
martedì 29 agosto 2006

http://www.google.com/webmasters/

Google
Webmaster Central

Welcome to your one-stop shop for comprehensive info about how Google crawls and indexes websites. You can learn here how to ensure that your site is easily crawled and indexed and access tools that will enable you to diagnose crawling issues, study statistics on how your site is doing in our index, and tell us how you'd like your site to be crawled and indexed.

Site status wizard

Find out whether your site is currently being indexed by Google.

Google's blog for webmasters

The latest news and info on how Google crawls and indexes websites.

Webmaster tools (including Sitemaps)

Statistics, diagnostics and management of Google's crawling and indexing of your website, including Sitemap submission and reporting.

Google's discussion group for webmasters

Talk with your fellow webmasters and share your feedback with us.

Submit your content to Google

Learn about submitting content for Google properties such as Google Base and Google Book Search.

Webmaster help center

See answers to frequently asked questions about crawling, indexing, ranking and other webmaster issues.

 

 

 

 
AllPeers, sharing di gruppo cifrato PDF Stampa E-mail
Valutazione utente: / 0
Scritto da Ivan Piffer   
martedì 29 agosto 2006

AllPeers, sharing di gruppo cifrato

Un add on per Firefox tenta il colpaccio, buttandosi sullo sharing di qualsiasi file tra gruppi privati sfruttando BitTorrent e cifratura, sperando così di non finire nel mirino di RIAA e soci. Ma non è tutto oro quel che luccica

 

icona Roma - Mentre scriviamo ha già ottenuto più di 48mila download un add on per Firefox, il celebre browser open source, che si propone di consentire "via browser" lo sharing di file e altri elementi tra amici e conoscenti con una modalità protetta, "invisibile", dovuta all'utilizzo di sistemi di cifratura.

Si tratta di AllPeers, applicazione testata per cinque mesi e da pochi giorni disponibile sul sito ufficiale delle estensioni per Firefox.

Di che si tratta lo dice la home page del sito: "File sharing reso semplice", per condividere con gruppi di utenti a propria discrezione file di ogni genere, pagine web, documenti, foto e via dicendo. Non solo ciò che risiede sul proprio computer ma anche tutto ciò in cui ci si imbatte navigando in Internet.

Il tutto in semplicità: attivando AllPeers, l'add on apre una sidebar all'interno della quale si possono inserire i contatti desiderati, organizzati in gruppi. A quel punto è sufficiente decidere quali dei file del proprio sistema sono da condividere con i diversi gruppi. A ciascuno di loro viene così garantito un accesso piuttosto semplice grazie ad un sistema di icone idiot-proof. L'add on è disponibile per Windows, OS X e Linux.

File sharing di massa?
Sebbene gli sviluppatori dichiarino con fermezza che il programma "non è pensato per condividere grandi quantità di file con sconosciuti", essendo invece indirizzato alla creazione di "ambienti privati" di condivisione, è assai concreta la possibilità che il software venga utilizzato da popolosi gruppi di file sharer interessati a scambiare anche file protetti da diritto d'autore, o almeno così la vedono i molti che stanno commentando la nuova release.

Proprio i creatori di AllPeers in una intervista spiegano che "quando si condivide, i metadati di tutti i file vengono inviati all'interlocutore, così che possa immediatamente visionare thumbnail, dimensione dei file e via dicendo, senza dover cercare nulla. Questo è un approccio inadatto per condividere, per dire, mp3 con molte persone". Viene anche messo l'accento che i termini di utilizzo del servizio vietano la condivisione di materiale protetto.

Per mettere in campo una efficiente infrastruttura di sharing, AllPeers utilizza il protocollo BitTorrent per condividere il download di file, eliminando così la necessità di un server centrale e accelerando il download all'aumentare del numero di coloro che scaricano. Inoltre, come accennato, si tratta di un ambiente "sicuro": tutte le informazioni condivise "viaggiano" infatti sotto SSL e sono dunque cifrate. L'idea di chi applaude al nuovo software, dunque, è che trattandosi di scambi privati tra amici e conoscenti, perdipiù cifrati, questi possano sfuggire alla lunga mano delle major, da anni impegnate nello scovare i condivisori di file protetti.

Sul sito ufficiale del nuovo applicativo è stato pubblicato anche un tour che dimostra la facilità con cui un utente abilitato può di fatto scorrere nel dettaglio le cartelle condivise dai suoi contatti, visualizzare e scaricare quanto desiderato. Ciò che caratterizza AllPeers è evidentemente, prima di ogni altra cosa, proprio la semplicità d'uso, adatta anche ad un pubblico non esperto. Questo lo differenzia, evidentemente, da altri applicativi di sharing, che talvolta richiedono una qualche consapevolezza del mezzo sia per porre in condivisione solo ciò che si desidera sia per scaricare efficacemente. Difficile dire se avrà successo, di certo AllPeers, e basta dare un'occhiata su Google per rendersene conto, già da prima del suo lancio ha raccolto enorme interesse.

Funzionalità... invisibili...
Eppure, nononstante l'hype che circonda l'add on, molte sono le perplessità espresse da alcuni esperti, come quelli di Slyck. Prima tra tutte il fatto che fino a questo momento il codice di AllPeers non sia stato reso pubblico, cosa singolare per un add on pensato per il celebre browser open source ma soprattutto per le precedenti dichiarazioni degli sviluppatori.

Sul piano tecnico, Slyck avverte che chi installa AllPeers e non si registra immediatamente al servizio, che richiede anche un'email valida, rischia di non riuscire ad usare il browser, trovandosi di continuo finestre di AllPeers che chiedono la registrazione. Non solo, la presenza della toolbar di AllPeers e della sidebar riducono non di poco la dimensione della finestra di browsing.

Soprattutto, AllPeers dichiara che il sistema consente il solo download di un file da parte dell'utente abilitato. Cosa non vera, sostiene Slyck: quando si scarica un file da un sito e lo si passa ad un contatto, di fatto il contatto che passa il file lo carica sulla macchina del proprio interlocutore. Il problema è che il processo non è dichiarato esplicitamente (pur potendosi trattare, ad esempio, di un upload illegale).

L'intero articolo di Slyck, insolitamente aspro verso un nuovo applicativo di sharing, è disponibile a questo indirizzo.
 
IPTV, Coolstreaming è 2.0 PDF Stampa E-mail
Valutazione utente: / 0
Scritto da Ivan Piffer   
martedì 29 agosto 2006

IPTV, Coolstreaming è 2.0

in beta

 

Roma - Da pochi giorni Coolstreaming, il celebre portale IPTV, ha presentato il suo nuovo volto, la release 2.0 del proprio servizio.
"Come Youtube - si legge in una nota - ogni utente puo' inserire la propria tv/radio/video tramite un un pannello di controllo da dove puo' aggiungere canali, video, ricercare, avere uno schedule personalizzato".

L'idea è quella di aprire il sito a tutti gli utenti ed è "dettata - dicono i promotori di Coolstreaming - dalla precisa volontà di far capire la vera natura di Coolstreaming, cioè aggregatore streaming dove da oggi l'utente partecipa attivamente e sceglie lui quando e cosa vedere quando vuole".

Mediacenter: www.coolstreaming.it
V2.0: www.coolstreaming.us
 
<< Inizio < Prec. 51 52 53 54 55 56 57 58 59 60 Pross. > Fine >>

Risultati 523 - 531 di 535