How to run my executable file on VNC tight viewer? [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am using an embedded PC which contains VNC server. I am able to access the contents of the embedded PC on my laptop using VNC tight viewer via ethernet cable. I want to run the executable file generated by the Linux operating system on this embedded PC or on VNC tight viewer. Could anyone suggest me some ideas?

your pc runnig windows, and you run Linux on virtual machine, and you want to run the binary build from virtual machine on your target board, the one you called embedded PC. Is my understanding right?
If in that case, you should try to use nfs. Run nfs server in your virtual machine, mount the shared folder from you embedded PC. So you can immediately see all changed in the shared folder from you embedded PC, as well as run any generated binary file.
A reference here: http://www.rt-embedded.com/blog/archives/how-to-setup-an-nfs-client-on-the-target/

You can use sftp/scp for copiying your binary to your embedded PC and then you can run that binary using vnc viewer,execute below command from your linux machine
scp binary username#embeddedPC:/home/username/

Related

Compile a C program developed in Linux for Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I developed a program in Linux because of the libcurl library and a few other libraries that I needed for the project.
I have now finished the project but I need to send it to my client that uses a Windows 10 system. What is the best method of getting the program to them without sending the code over to be recompiled?
What is the best method of getting the program to them without sending the code over to be recompiled?
I see two solutions for this:
Download Windows trial/preview and compile it here
Download mingw and cross-compile with it for Windows.
Probably you're not a fan of first solution, me neither. I found another answer [1] where is stated how to do it (with link to tutorial on Code::Blocks forum [2])
[1] How to compile for Windows on Linux with gcc/g++?
[2] http://forums.codeblocks.org/index.php?topic=3343.0
Please follow answer at [1].
If your client has Windows 10, I strongly suggest you to look at WSL: Windows Services for Linux. You can install a Linux distro from the Windows Store, for example Ubuntu.
The Linux running with WSL is not inside a virtual machine, but it is tightly coupled with Windows.
Examples:
from Windows task manager, I can see the Linux running processes
inside Ubuntu, I can work with my personal files under %appdata% without network (don't need Samba)
from the Windows shell you can execute any Linux command, just prepend them with wsl
There are many features, you can play and discover them in half a day.
You can discover your program, without recompiling, will work in windows with WSL.
Actually the official windows 10 has wsl 1.
The next windows 10 upgrade will deploy wsl 2, that can run - parallel to windows - a full Linux kernel.
Microsoft sees the uprising of Linux and Android, and the loss of market share. They came up with a ingenious idea: buy Windows and you have both Windows and Linux, cooperating together as easy as possible.

AT91SAM7X-EK Evaluation Board [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I just recentely started working with a new board: a AT91SAM7X-EK. I would like to get more information about the board's processor (AT91SAM7X256) and the board's flash. So I looked at a pretty detailed data sheet and a summary of the data sheet, but have been unsucessfull (so far) of finding the information I want. I would appreciate if anyone could help me on the following aspects of the board:
How do I connect to the board? Is it through ssh? If so, how is it possible to recuperate the board's IP address. I have an ethernet cable for the connection.
How do I load an application onto the board's flash? For example, I would like to cross compile (using a toolchain I've already installed - arm-none-eabi) a simple hello world program in C to load onto my board. How would I go about doing so?
I would appreciate any help on this issue.
The board is supplied "bare-metal" - no code, no OS. You will not be able to run Linux on an AT91SAM7X-EK - it has insufficient memory resources and rins at 30MHz tops (and has no MMU).
You need a hardware JTAG or DBGU interface device and a tool-chain that will work with it.
You should probably also be looking at the datasheet for the board itself. From the Getting Started section of that:
The AT91SAM7X-EK evaluation board is delivered with a DVD-ROM containing all necessary
information and step-by-step procedures for working with the most common
development tool chains. Please refer to this DVD-ROM, or to the AT91 web site,
http://www.atmel.com/products/AT91/, for the most up-to-date information on getting
started with the evaluation kit.
So start there.

How to make executables work on OSX Mavericks [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I've been working on a school project, in C, and I plan to distribute it to students and anyone interested...
The problem here is the executable file won't run on OS X Mavericks...
is there any way they can do this without getting a simulator, or an application like wine.
( Like how you have to install Visual C/C++ & DirectX for games? )
Since C compiled code is not platform agnostic like Java, you need to compile the code for the target platform(s) you are interested in.
If you have access to OSX Mavericks, you can compile on that OS to get the executable and test. (Copy your C source code to the mac OS, or better use a source control system like git)
If you do not have access to OSX, you can look up how to build/use cross compiler. (Links to related SO questions below that address this)
The effort needed for cross-compile and test would likely be non-trivial, so if you can get access to OSX that will be your best bet.
In either case, you will have to make sure the code written is platform-agnostic.
Several similar questions on stack overflow that talk about the various cross compiling options:
Way Cross Compile C/C++ code to run on Windows, Linux, and Mac OS?
How to Compile for OS X in Linux or Windows?
Porting C++ code from Windows to the Mac

Complete uninstall of Postgresql from Mac OSX problems [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Initially I wanted to uninstall PSQL from my system and switch to postgres app, version 9.2.
Followed this guide closely, but still have problems with postgresql being active on my system.
psql gives me
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
When I got to
rm /usr/bin/psql
I get
override rwxr-xr-x root/wheel compressed for /usr/bin/psql?
Since this is out of my competencies, and I have no idea what it does, I am asking you guys.
The files in /usr/bin are a part of your operating system, and among the numerous suppliers of PostgreSQL installers or packages for Mac OS X, I think none of them ever suggests to delete /usr/bin/psql.
In fact there are quite a few more files that you would delete, should you want to wipe out the PostgreSQL client layer as shipped by Apple. And when you'll upgrade that system to 10.8.X+1 or whatever, the Apple installer may well put them back again with newer versions.
If you're in uncharted territory when playing admin with your operating system, it's better to just follow the procedure suggested on postgres.app, which boils down to changing your program's search path, so that their psql and other tools (pg_dump, pg_restore,...) come first.
Also, related answer: How to fix pg_dump version mismatch errors?

Best way to instantly mirror/sync files from Windows to Linux server [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a directory on a Windows machine with a large number of files and folders that I need to watch and have the files mirrored/synced instantly (or as near to as possible), to a Linux machine over the local network.
I've investigated:
- Rsync, not realtime enough
- WinSCP 'Keep directories up to date' feature, which was OK but limited to 500 directories and the performance was pretty slow.
There are a bunch of results of shareware-style apps that claim to do this, but they are all pretty dubious looking. It seems there must be a good FOSS solution somewhere?
UPDATE: I'd be happy with a one-way transfer rather than a full sync, as long as it's instant and automatic.
I second eneset's proposal of the Unison software. Also if you care of looking for some alternatives Lifehacker has an interesting article on this subject http://lifehacker.com/372175/free-ways-to-synchronize-folders-between-computers
titel
It seems that what you want is to actually deal with the files on the linux server as if they were local files on your computer.
Did you consider looking for a tool to mount a remote ssh folder as a local drive?
Have a look at Unison (http://www.cis.upenn.edu/~bcpierce/unison/). I successfully used it for Linux/Windows home directory mirroring.
Have you considered using Samba? It will let you mount windows shares under linux as well as accessing linux directorys from windows if you set them up as shares.

Resources