Is it possible to use a server running an Rsync daemon to update program files on the client machine? Is there a library for using as a connector when developing the Rsync client ?
I would not do that if the program files you update on the client machine are often or continuously running -in particular if they are server or daemon programs.
On Linux distributions, the package manager (i.e. dpkg on Debian) does a good job for upgrading programs (even for daemons). Can't you use it?
Writing inside a running program binary is error-prone.
There is a librsync on Linux.
Related
Suppose I have a Docker image that runs some fun, but horrendously-complicated-to-compile-on-Mac-OSX-for audio editing application that does specific rendering of audio in realtime.
I have a Docker setup that runs this decently with a Linux image, but the process of getting audio piped to the host system isn't reliable nor performant. I'd really like to just run it directly on the host OS.
I'd like to run this desktop application nicely on Mac, but not have dependencies on Docker, Wine, etc.
Is there a way to make a single binary out of a Docker image that runs natively on Mac OSX?
I assume it would have to depend on some dynamic libs that Docker has, but that's fine.
No, this isn't possible.
Consider that even the "native" Docker Desktop for Mac application actually works with a hidden virtual machine. (Compare the outputs of uname -a and docker run --rm busybox uname -a, for example.) That's why you're able to run Linux containers on a MacOS host. But that also means that, if you were able to package up a Linux container into something that could run directly, it'd have to bring the rest of the Linux VM with it.
There are tools like Packer that can help with the process of building a VM, but you'll hit the same issues you're already encountering on connecting the VM's display/audio to the host's. Simplifying or automating the native-application build process is probably a better time investment.
I've been developing a c++ project on linux remote server these days, however, I'd like to do all the coding things on my windows machine using VS2017. So I need some kind of synchronization tool to synchronize the codes such that whenever I save the file in VS2017 the changes can be synchronized to the linux server immediately. Is there any tool or VS2017 extension can help me?
I don't want to use git as it may cause a lot meaningless commits.
Several ideas:
Cygwin. Compile your code on the emulated Linux/Unix environment for local testing and use Visual Studio as your IDE. Do final testing on the Linux box with less frequency. Can be combined with any of the ideas below.
Git, but with a different branch for commits. Do a squashed merged for all meaningful commits or pull requests to master.
Samba. Mount your Linux file system on your Windows PC or vice versa. Copy files between Windows and Linux as if was a network drive.
Local VM. Run Linux in a local Virtual Machine with VMWare or VirtualBox. Drag and drop files between Windows host and Linux guest OS using the host/guest extensions stuff. Then you can dink around with deploying to the real Linux machine later.
Personally, for my open source projects where I'm too lazy to boot into Linux locally to test code before deploying to AWS, I basically do some combination with the above.
And #5 of course is: Dropbox. :( I use OneDrive and a Python script on Linux to pull down files.
I have developed a small web server based on Crow, link.
I'm pretty new to developing in C++ so all advices are greatly appreciated.
I'm developing the application on my Mac and intend to deploy it to a Ubuntu server.
I use Make to build the application so that I can run it on the Mac. The application is depending on two libraries, pqxx and png++. None of those are installed on the server.
I'd like to know how to run this application on the Ubuntu server. Mainly I guess the issue is, can I make a specific build on the Mac that is targeted for running on the Ubuntu server? Or do I have to build the application on the server?
Easiest way is to install Ubuntu on a VM on your Mac and deploy there your application.
Less easy solution: move source files on server, deploy the application, delete the sources from server.
Theoretically, both system are linux, so as long as you are using standard c++ libraries the code should run anyway.
In any case, the dependencies on Linux and Mac for Crown are different, so (most probabily) you have to install some libraries on your server.
Hi I have scenario that needs to upload a file in a webpage. Actually I know that selenium will not support file upload scenario. But this can be done in python with external libraries such as AUTOIT, PYWINAUTO. But the challenge is i have to run my code in a linux server that is going to call a windows remote machine.
When i tried installing pywinauto in linux server i got an error in importing winreg library. Hence i dont know how to proceed further. Please help me out to solve this scenario.
Both AutoIt and pywinauto are Windows-only libraries (at least for now). If you need to automate file upload on Linux, consider using AT-SPI accessibility (say pyatspi2 package).
If it's a server without X and DBus, I think the question is about remote code execution from Linux to Windows. Good option for the SSH remote execution is Fabric (very pythonic & nice), but using Cygwin or OpenSSH might be an additional challenge for you. There are many other tools like Ansible etc.
Here is the scenario.
I have a C++ application using CMake that has been setup on Ubuntu server machine. I have setup a remote development interface to it using Netbeans 6.9 on client machine, and I have been able to build it.
The problem is that (as per the setup of CMake script) the executables from the program are going to another directory in the server. When I try to run the program, Netbeans asks me for executables which I can't spot out on client machine (as they are residing on server machine).
Is there a way I can get the executables on local machine OR have a way to give their location to my Netbeans application.
Thanks for your help.