Xserver on Windows7 - linux

I have been using X11 with windows Maker provided with cygwin package for multi windows in windows Xp. Currently I am moving to windows 7 but unable to install cygwin.
Is there any other multi windowing system like windows maker for cygwin on windows ?
Thanks for your help in advance.
~ JJA

I really like to use MobaXterm as nice ssh client, but more importantly as very lightweight and fast X server for Windows.
Typical usage on Windows: start MobaXterm, then from its console ssh user#linux-box. Now, you can simply execute any GUI program on your Linux box, like gedit, eclipse, etc., and it simply works! This is because MobaXterm automatically supports forwarding of you graphical DISPLAY from Linux to Windows.
This method for remote access works much faster than VNC. Performance is actually similar to Remote Desktop, if not even faster.

Related

How do I run Internet Explorer on a Windows computer from a Linux VM based on the same computer?

I'm working on a Linux virtual machine on a Windows computer and doing tests on a website using RobotFramework. I would like to open the Internet Explorer browser on this windows computer from my Linux RobotFramework script.
Do you know a way to do this? Thank you.
Previously, I already tried to use Grid Selenium but that did not suit me because the option "timeout" of "open browser" did not work under ExetendedSelenium2library.
The Internet Explorer on your Windows machine hosting the Linux VM is a Windows-compatible binary, so cannot be executed natively under Linux. You can execute Windows-compatible binaries via Wine however, but compatibility is not very good. It's much more common to run Windows in a virtual machine in order to run Internet Explorer, not the other way around.

Remote development of Visual C++ applications from Linux

Remote development on Linux from Windows is easily doable via SSH.
However, what about the other way? I need to build and debug my Visual C++ application on Windows, but I want to work on a Linux system.
Cross-compiling via MinGW doesn't work because of MSVC-specific libraries
Ubuntu on Windows is a good start, but I'd like to work on a real Linux system
RDP/VNC or something like that doesn't help either, because than I'd work on Windows again
So does a virtual machine
Maybe something like Powershell on Linux + SSH to the Windows Powershell?
I regularly develop Visual C# applications remotely from Linux, not MSVC for the most part, but, like you, I wanted to find a way to build and debug Windows-targeted applications and libraries on remote Windows machines without working directly in the box using RDP, Visual Studio, etc.
It's difficult to answer this question without more information about the development and debugging tools you prefer to use on Linux for the types of applications you develop. I'll try to provide a general overview and update the answer for details you add about your workflow.
Cygwin, similar to MinGW's MSYS, provides a Unix-like environment for Windows. Most importantly, Cygwin, unlike MinGW/MSYS, includes an implementation of the OpenSSH server that enables us to connect to the Windows box over SSH from Linux (or any other device with an SSH client, really). We can install the sshd package using Cygwin's setup utility. After connecting, Cygwin drops us into a Bash shell by default. With this capability, we can:
Execute remote commands and scripts over SSH.
Edit files using our favorite *nix command-line text editor (Vim, Emacs, etc.)
Mount remote filesystems locally using SSHFS (if Windows shares are unavailable).
Forward or tunnel ports if needed.
The availability of a general-purpose shell makes almost anything possible. We can execute batch files, PowerShell scripts, and native Windows executables from Cygwin's shell environment in addition to Linux scripts and Cygwin programs.
For example, we could run msbuild from the SSH session command line to build our VC++ application or we could configure our local GUI editor or IDE running in Linux to execute msbuild over SSH when we click the "build" button.
We could set up a similar environment in recent versions of Windows using the Windows Subsystem for Linux ("WSL", Bash on Windows). I personally prefer Cygwin for greater portability and ease of configuration. Cygwin's sshd can run as a Windows service, and, as an established project, Cygwin integrates very well with Windows systems (user accounts, filesystems, Windows APIs, etc.).
Working with Code
We can choose from several workflows depending on our tools and comfort-level with the command-line:
Completely text-based—all work performed through the SSH session
Use local tools on files mounted in a remote filesystem
Use local tools and synchronize files
I use the first approach. I'm a heavy Vim user, so I connect to Windows machines over SSH to do my work on the command-line using the tools and environment provided by Cygwin. The availability of tools typically found on Linux simplifies many tasks that are hard to do from the default Windows console. We can write shell scripts to automate tasks that Visual Studio might normally do for us. For example, I wrote a wrapper script around mstest that reads the XML test results and outputs them in a format that's easy to read in a terminal.
If we prefer to use a GUI editor or IDE, we can mount the remote code locally so tools can read and write files as if they were part of the Linux machine's local filesystem. We likely still need to use SSH to execute commands needed to build the projects, but many editors allow us to configure this command as the project's "build" action.
Sometimes a remote filesystem is too slow for effective editing. In these cases, we can synchronize files between the Linux development machine and the Windows host using a tool like rsync or the editor's "upload on save" feature (over SFTP, for example), if available.
Debugging
Everything works pretty well until we try to find a way to debug our applications. As of now, there is no reasonable substitute for Visual Studio's debugger when working with Visual C++ projects. We can debug managed C# applications running on the CLR using MDbg, but no comparable tool exists for C++ programs.
We can try to use gdb (from MinGW, Cygwin, etc.) for basic, low-level debugging of native binaries, like reading memory addresses, but the debugger does not yet support reading Microsoft's debugging symbols, so the debugging experience is very limited. Microsoft began documenting the PDB format a couple years ago, so we may see some compatibility in the future. Even so, it will take a long time to produce a satisfactory alternative to Visual Studio's excellent debugging tools.
For debugging, RDP is currently our best—and probably, only—option. For a more native-feeling experience, we can run Visual Studio using rdesktop (or other RDP client) and seamlessrdp to create a single-window RDP session of the Visual Studio IDE instead of a full desktop which integrates with whatever window manager we're using on Linux.
Sometimes we can get around launching a full Visual Studio debugging session for simple debugging scenarios by adding tracing to our application that outputs values to the console or to a log file. In many cases, this is faster than starting the debugger anyway.
We can also try to use Eclipse's CDT debugger configured for the Visual C++ toolchain. This may enable us to perform remote debugging using an Eclipse instance on the Linux machine. I have never tried this approach, and I expect there may be some issues when the application is linked against Microsoft's libraries.
I don't know all your requirements, but maybe you could use a gdbserver on Windows (from MinGW) and remote debug from VSCode on Linux - or any other environment you like. You can find more details in this post here. (Watch out, VSCode prevents you from running gdb unless it’s signed as mentioned in the first link.)
There is also a Native Debug VSCode extension that could be helpful.
Another solution I can think of is to use Visual Studio Online (free for small teams up to 5 persons) as build server.
As you have said, the other way around is pretty easy and nowadays even officially supported by Visual Studio 2017.
Most probably, the VS remote debugging tools for Windows wont be helpful for you.

How can I mimic my OS X workflow on Windows 7?

I initially switched from Windows to OS X because I didn't understand SSH enough to reliably solve that problem in my Windows env.
Since then, I've come to prefer the following from OS X:
Keyboard mapping
oh-my-zsh CLI
Alfred
I'd like to replicate my OS X development environment on my Windows 7 PC as closely as possible, preferably to include the advantages offered by the above preferences.
My workflow includes the use of VirtualBox + Vagrant (Linux boxes) Git, and CLI > GUI.
Thanks in advance.
It seems like mainly you want a *nix style command line on Windows. You should give Cygwin a try then. It (basically) gives you just that (plus the ability to compile POSIX source to run on a Windows machine).
If you use Git more than anything else on the command line, you can just use Git-Bash (http://msysgit.github.io/).
You can use Launchy as a direct replacement for Alfred.
Keyboard mapping... I'm not sure. You can just search for a keyboard mapper for Windows (I found this http://msdn.microsoft.com/en-us/goglobal/bb964665.aspx with a quick search).

Setting up Rsync to pull from Windows to Linux Box using cwrsync

I have a set of machines, a mixture of Linux and Windows Boxes.
I hav set up rsync to pull from the Linux Machines to a Linux Server box.
I am trying to accomplish the same using cwRsync, to pull to the Linux box from the windows machines. I have downloaded the free version from https://www.itefix.no/i2/content/cwrsync-free-edition and also I have downloaded CopSSH. I have managed to install CopSSH fine and I am able to SSH between the Linux and Windows hosts no problem using keys rather than passwords.
However, for the life of me I can't get this cwRsync working, I've googled the matter to death, and your meant to unzip the directory, configure the environment settings in the batch file then install it. However, there is nothing to install it with! and the reason it isn't working is because it needs to install a windows service for it to run.
Any help would be much appreciated!
As described at itefix web page for the free edition, it allows to initiate rsync from your Windows machine, i.e. client functionality only (push data). Server functionality allowing you to set up an rsync server on Windows to pull data from it is not a part of the free edition.

Effiecient Windows to Linux desktop sharing solution that support multiple screens

I am looking for an efficient Windows to Linux desktop sharing software that support multiple screen.
As of now my team develops (mustly Scala) code on our local windows machines (laptops).
For various reasons the data we are working on can't usually be copied to our local machines.
Currently we quite frequently need to exports our code/jars to a different environment that is also connected to an Hadoop cluster containing the data.
We are looking for a desktop sharing solution that will enable us to develop and execute code on remote, strong, stable Linux machines, that are connected via broadband connection to our data clusters.
Its crucial for us that the solution above will be able to run remote GUI based developing tools such as IntelliJ on the Linux machines and display them on our local Windows machine multiple screens smoothly.
Any recommendation?
Thanks in advance,
Mishael
One of the options is to use Cygwin - this will allow you to run UI applications from a remote server on your Windows environment
In order to that you should do the following:
A. On Windows side:
Download and install Cygwin/X from : http://x.cygwin.com/
In the Cygwin/X installer make sure the following packages are chosen:
xorg-server (required, the Cygwin/X X Server)
xinit (required, scripts for starting the X server: xinit, startx,
startwin)
X-start-menu-icons (optional, adds icons for X Clients to the Start menu)
xorg-docs (optional, man pages)
font-bh-ttf
font-bitstream-vera-ttf
Setup X Launcher
Create a new shortcut on your desktop which points to the following (assume your cygwin was installed in c:\software):
C:\software\cygwin\bin\run.exe C:\software\cygwin\bin\XWin.exe -multiwindow -clipboard -ac
Double click the shortcut you just created :) this will start small icon on the left side of windows taskbar.
B. On Linux side
login to your remote server for the same windows machine (use any terminal - e.g Putty)
set the DISPLAY parameter your server:
export DISPLAY=<windows-host-name>:0.0
now you can run any application that requires GUI and it will open up on your windows machine
:)

Resources