How to check who is currently logged on to windows workstation from command line?

WMIC /NODE: COMPUTERSYSTEM GET USERNAME Will return the username currently logged into

or WMIC /NODE: “workstation_name” COMPUTERSYSTEM GET USERNAME will return the username currently logged into “workstation_name”


How To Downgrade Firefox?

If you still want to downgrade to Firefox 9, follow these steps:

1> Firefox 9 is not available directly on the website of Mozilla (the company behind this software). But, you can get installer of Firefox 9 from Mozilla’s FTP servers.

2> Run the installer file, and it will downgrade the Firefox 10 to Firefox 9.

3> If you want a “clean” installation:

a> Take proper backup of your bookmarks, saved passwords etc. You can use Mozbackup for this.
b> Uninstall the Firefox completely. Select to delete browsing data when asked during uninstallation. To uninstall Firefox, visit “Control Panel” in Windows.
c> Install the Firefox 9 now.
d> After installation, run Mozbackup again to restore the backup data.

Kad “laikam” aizbrauc jumts…. lietojam citu NTP!

Windows server 2008 / 2008 R2 AD sync with external NTP server

As AD servers provide time to machines in a domain it is important to have AD servers synchronized with an realyable time source. If you know the project you can find NTP servers that are part of this “cluster” and are near to you. As I live in Slovenia we have a pool called in which you can find Slovenian NTP servers that are accurate enough to provide exact time (for those more familiar with NTP protocol in pool there you can find also most accurate stratum1 and stratum2 time servers…).

On AD server that is running Windows server 2008 / 2008 R2 you should run command prompt with administrative rights (right click / run as administrator).

First check difference between your server and external time source (in my example

Command: w32tm /stripchart / /samples:5 /dataonly

C:\>w32tm /stripchart / /samples:5 /dataonly
Tracking [].
Collecting 5 samples.
The current time is 24.6.2011 13:29:08.
13:29:08, +08.8351541s
13:29:10, +08.7976694s
13:29:12, +08.8065559s
13:29:14, +08.7534768s
13:29:16, +08.7956427s

Confiure your server to use external NTP time source for sync:

Command: w32tm /config /,0×8, /syncfromflags:manual /update

C:\>w32tm /config /,0×8, /syncfromflags:manual /update
The command completed successfully.

Force sync immediately:
Command: w32tm /resync

C:\>w32tm /resync
Sending resync command to local computer
The command completed successfully.

I will now retry the first command to see the results:

C:\>w32tm /stripchart / /samples:5 /dataonly
Tracking [].
Collecting 5 samples.
The current time is 24.6.2011 13:19:20.
13:19:20, +00.0485657s
13:19:22, +00.0415741s
13:19:24, +00.0380984s
13:19:26, +00.0342493s
13:19:28, +00.0310221s



Synchronize time with external NTP server on Windows Server 2008 (R2).

16 November 2009 by Marek.Z

Time synchronization is an important aspect for all computers on the network. By default, the clients computers get their time from a Domain Controller and the Domain Controller gets his time from the domain’s PDC Operation Master. Therefore the PDC must synchronize his time from an external source. I usually use the servers listed at the NTP Pool Project website. Before you begin, don’t forget to open the default UDP 123 port (in- and outbound) on your firewall.

  1. First, locate your PDC Server. Open the command prompt and type: C:\>netdom /query fsmo
  2. Log in to your PDC Server and open the command prompt.
  3. Stop the W32Time service: C:\>net stop w32time
  4. Configure the external time sources, type: C:\> w32tm /config /syncfromflags:manual /manualpeerlist:”,,”
  5. Make your PDC a reliable time source for the clients. Type: C:\>w32tm /config /reliable:yes
  6. Start the w32time service: C:\>net start w32time
  7. The windows time service should begin synchronizing the time. You can check the external NTP servers in the time configuration by typing: C:\>w32tm /query /configuration
  8. Check the Event Viewer for any errors.

Tested on Windows Server 2008 R2 (Build 7600).

15 Remote Desktop Solutions for Linux

There are a wide range of remote desktop applications that are available that can be used to connect to Windows environment but there aren’t too many that can be used to remote desktop from Linux to Linux or Windows to Linux. With this I mean, getting entire desktop of remote Linux environment on your local workstation.

Most people who are used to a Unix-style environment know that a machine can be reached over the network at the shell level using utilities like telnet or ssh. And some people realize that X Windows output can be redirected back to the client workstation. But many people don’t realize that it is easy to use an entire desktop over the network. There are a several of open source applications that can be used to achieve this.

1)  VNC (Virtual Network Computing) is a remote display system which allows the user to view the desktop of a remote machine anywhere on the internet. It can also be directed through SSH for security.

Basically you install VNC server on the server and install client on your local PC. Setup is extremely easy and server is very stable. On client side, you can set the resolution and connect to IP of VNC server. It can be a bit slow compared to Windows remote desktop and also has the tendency to take more time refreshing over low-bandwidth links. All in all VNC is an amazing piece of free software that gets the job done.

There is RealVNC , TightVNC and UltraVNC. Each has it’s advantages and disadvantages. Most popular one is RealVNC but if you’re upto it, experiment with all three and choose the one that works for you best. By default, communication between client and server is in clear text on port 5900. However, you can easily route all traffic via SSH tunnel. Here is a quick way of setting it up if you have access to command line shell:

ssh -ND 5900 <user>

When you get prompted, enter your password. Pop open VNC client and connect to ‘localhost’. This’ll route your connection to VNC server on remote machine.

You can download VNC from:

2)  Then there is FreeNX. FreeNX is a system that allows you to access your desktop from another machine over the internet. You can use this to login graphically to your desktop from a remote location. One example of its use would be to have a FreeNX server set up on your home computer, and graphically logging in to the home computer from your work computer, using a FreeNX client. It provides near local speed application responsiveness over high latency, low bandwidth links.


FreeNX can be configured to run via SSH without any tunneling. It binds to your existing SSH install. Instead of guiding you through the installation of FreeNX in this article, you can visit the following URLs that’ll guide you through the installation on Ubuntu:

3) The third free application is 2X Terminal Server for Linux. 2X TerminalServer for Linux is an Open Source project, licensed under the GPL and is free of charge. As far as performance goes, NoMachine’s technology is on par with Windows’ own Remote Desktop Protocol (RDP) suite, better than VNC. Both X2 and FreeNX is based on NoMachine technology.

Here are some quick links if you’re interested in using this software:

4) Then there is is XDMCP. The X Display Manager Control Protocol uses UDP port 177. Compared to the list above, it’s not as easy to setup for remote desktop but it’s the original way of doing this on Linux. You can get setup instructions and other tips in the following URL:

5) CygwinX. A complete Linux emulation on Windows. You’ll find every tool and app that you have on Linux on Cygwin.

6) XRDP. RDP server that runs on Linux, thus allowing you to use Windows Remote Desktop Client or rdesktop to connect.

7) x2vnc – great little utility that allows you to tie a linux and windows (or anything that can run the vncserver) together with a ingle keyboard/mouse, avoiding the need for a switcher box. Mousing cross screens transparently switches between machines, and cut and aste works.

8 ) Xming – t’s a great and lightweight implementation of X11 for Windows that allows you to connect to a Linux box.

9) KDE Desktop Sharing (formerly krfb) – part of KDE since version 3.1. It is located in the kdenetwork package. If your distribution splits the KDE applications into separate packets, you may find the client as ‘krdc’ and the server as ‘krfb’. Also uses VNC technology.

10) X-Win32 – Top rated PC X server solutions for Windows PCs connecting to remote Unix and Linux host systems. Works well over SSH.

11) Single Click UltraVNC – In case you would like to remote control without any software installed on the target computer you need UltraVNC SC. The user on the to be controlled computer needs to simply click on a web page and remote controlling begins.

12) CrossLoop – CrossLoop is a FREE secure screen sharing utility designed for people of all technical skill levels. CrossLoop extends the boundaries of VNC’s traditional screen sharing by enabling non-technical users to get connected from anywhere on the Internet in seconds without changing any firewall or router settings.

13) Thinstation – Although not a remote desktop app but worth mentioning here. Thin client linux distro for terminals using std. x86 hw. It can boot from network, pxe, syslinux,loadlin, CD, floppy or flash-disk and connect to servers using VNC, RDP, XDM, SSH and etc.

14) rdesktop – an open source client for Windows NT Terminal Server and Windows 2000/2003 Terminal Services, capable of natively speaking Remote Desktop Protocol (RDP) in order to present the user’s NT desktop. rdesktop currently runs on most UNIX based platforms with the X Window System, and other ports should be fairly straightforward.

While you’re at it, get grdesktop from ( It is a GNOME frontend, for rdesktop. It can save several connections (including their options), and browse the network for available terminal servers.

15) ssh -X – You can check out this great article written by a slashdot user sometime ago.

Windows to Mac / Mac to Windows

1) RDP Client for Mac allows you to connect to a Windows-based computer and work with programs and files on that computer from your Macintosh computer.

2) OSXVnc – Vine Server is a full featured VNC server for Mac OS X providing remote access to the GUI, keyboard and mouse using Vine Viewer or any other VNC client.

3) Chicken of the VNC – A VNC client allows one to display and interact with a remote computer screen. In other words, you can use Chicken of the VNC to interact with a remote computer as though it’s right next to you.

Unfortunately I was not able to find too many available to connect to Mac from Windows other than VNC. I think Windows need to support RDP into Mac. Many people would benefit from this.



Ten Reasons To *NOT* Use ZFS

1. The License (CDDL) "has some complex restrictions that make it
incompatible with the GNU GPL"

2 . ZFS does not support the necessary extended attributes and ACLs to
enable the implementation of SELinux security. Instead Sun prefers the
deployment of its own security software "Trusted Solaris", which is
not FOSS and runs at a cost of "$995 per seat for the Standard Edition
Desktop System to $79,495 for the Certified Edition Data Center

3. This is primarily a Solaris product, and has nothing whatsoever to
do with Linux. The possibility of future Linux support cannot be ruled
out, however - at what cost - both in financial *and* license terms?

4. This is a product for the server room, not the desktop. The main
bottleneck on a desktop system is the underlying storage hardware
itself, not the filesystem. If you have the budget and requirements
for a Solaris server, then buy a Solaris server, otherwise there are a
myriad of other (IMHO) better solutions. Remember, Trusted Solaris is
not Open Solaris.

5. Linux already has a (arguably) superior filesystem in the form of
Reiser4, which is much more extensible and uses a dancing trees
system, which in itself is a great improvement over the old block tree
method employed by ZFS. Yes Reiser4 does not currently support SELinux
extensions either, but then the book's not closed on Reiser4
development, and it *is* Free, after all.

6. ZFS is a product of Sun Microsystems, developers of Sun Java. The
distribution license for Sun Java has caused so much controversy over
at Debian that they're threatening to pull the package from non-free
and even dissociate with Sun's legal team, the SPI. Sun Java is
subject to draconian export restrictions imposed by the US government,
against any country not favoured by the US, and its SDL dictates that
"you do not combine, configure or distribute the Software to run in
conjunction with any additional software that implements the same or
similar functionality or APIs as the Software"

This would preclude distributing GNU GCJ and Sun Java on the same
system. Do you really want Sun dictating to you what software you have
on your computer?

Do you really want software from this company on your system? Frankly
you might just as well install Microsoft Windows and be done with it.

7. Sun is claiming all kinds of performance benchmarks, but the
"blazing performance" has yet to be independently verified, and few
comparisons exist between ZFS and any other high performance
filesystem. Ultimately Sun are motivated by money, not integrity, so
if their motivations are questionable, then so are their claims.

8. Despite their rivalry and even previous court battles, Sun is
rather too close to Microsoft for comfort.

"A year ago you could say we were moving from the courtroom and
entering the computer lab," Ballmer said, summing up the rivals'
progress. "Twelve months later I think we're poised, thanks to the
work of hundreds of engineers on both sides, to leave the computer lab
and enter the market place together."

9. After SCO made ridiculous claims about being the owner of Linux IP,
Sun apparently agreed with them, since they entered into a business
agreement to license Unix from SCO.

10. 64 bit architectures have been around for years, and are in fact
virtually mainstream these days, and yet Sun (having released a 64 bit
version of Java) have yet to release a 64 bit Mozilla plugin for it, to
enable Java Applets on Gecko based browsers. The Linux AMD64
self-extracting file of Sun Java JDK (jdk-1_5_0_07-linux-amd64.bin) is
some 41.76 MB ... the missing plugin ( is only
*77 bytes* !!!

And *why* does Sun refuse to include a tiny 77 byte Mozilla plugin
with their 64bit Java? Because, apparently, they think that there are
no 64bit versions of any Gecko browsers available, or to be more
precise, because Mozilla does not distribute a 64bit binary

A company that employs such retarded logic, and has such a slow
response to technological change, cannot be trusted to keep pace with
changing hardware trends in other sectors of the market, such as
storage hardware for example. Imagine that you had paid a considerable
amount for new storage solutions, either at home or at work, only to
discover that Sun's "blazingly fast" filesystem was completely
unsupported on that hardware. How long might you have to wait for your
($995 - $79,495) Trusted Solaris with ZFS to be redeployed?

I used to be under the impression (or at least ever hopeful) that Sun
might one day wake up to the FOSS trends in the industry, and
reconsider their licensing and methods, but with each new announcement
from Santa Carla they just get worse.

So to anyone considering posting here, on a Fedora mailing list of all
places, announcements from Sun Microsystems, I say that IMHO any news
from Sun is unwelcome, unless that news is the wholesale GPL
re-licensing of their entire product catalogue.


Ja nepatīk synergy – ir no kā izvēlēties!

Ir un labas 🙂 Šī ir ok!

Input Director is a Windows application that lets you control multiple Windows systems using the keyboard/mouse attached to one computer. It is designed for folks who have two (or more) computers set up at home and find themselves regularly sliding from one system to the other (and wearing out the carpet in the process!). With Input Director, you can share a single keyboard/mouse across a set of systems. You switch which system receives the input either by hotkey or by moving the cursor so that it transitions from one screen to the other (in a very similar fashion to a multi-monitor setup).