Live development environment in windows when project is on Linux server - linux

Maybe this question is not so proffesional, but still, maybe someone has got into this issue as well. I am using windows os. And the project i am working on is on Linux servers. I am using Netbeans IDE and WAMP. The problem i ran into is that i cannot make the development environment configured via ALIAS or something similar. I want to DEBUG and run tests but the folder structure is different and it gives me errors, like in windows it is C:/wamp and on the Linux server it is /var/www . How can i make windows machine to get to understand the different file structure ? Maybe there are some guides ? I do not want to switch to Linux. I have everything configured and the only thing i need is like redirect from c:/wamp/myProject to /var/www/myProject

I'm afraid that might not be possible.
You are trying to get one OS to read data from another OS
This is not a problem. However, your issue is that your files are located in directories of different structures, and you are trying to get Windows to read from /var/www directly.
Am I right?

Related

linux live kit not working on ubuntu 20.04 access denied when making new directory

Does anyone know how to get Linux live kit to work on Ubuntu 20.04? I found a website that showed me how, but when I tried to build it, the file would not show up. I tried rebooting but it did nothing. I know that Tmp empties on reboot, but when I try to make a directory like /build it says access denied.
Does anyone know how to get a bootable ISO using Linux live kit on Ubuntu 20.04?
I know how to use systemback and other tools. Also when I asked on askubuntu they did not answer my question. I am trying to make a working linux distro.
I tried to put it in /srv but it did not work. also when i tried to put it in /tmp. It would not show up in /tmp. One issue I had was also making a new directory like /bluespace. Can anyone please help. Maby even go through the steps. Thanks! This distro is for education. It comes with website blocking its own search engine and so much more. P.s I am only in highschool. I am done customizing it but I need the file with linux live kit. I tried every option and it wont work. I tried pinguy, but it only makes a backup. I want linux live kit to work but it wont.

Setting up Windows Pycharm to use Git on my linux server

So I'm trying to do something probably pretty simple but can't figure it out of course. I have a VM on my network running CentOS and I installed Git using the guide. Now I'm on my Windows PC using Pycharm trying to setup Git but the setup asks for where the git.exe file is and can't seem to navigate to my CentOS VM within pycharm to point it anywhere. I tried \IP Address but that didn't work. Is there somewhere on the Linux vm I need to do to allow the windows Pycharm to reach it? I'm new to this on both sides lol.
If I understand your question correctly, you want to access a Git-Repository in your local Linux network. In that case you need to be able to access these files with your Windows machine in order to push/fetch your changes from/to it. A simple way to do it, could be set up file sharing as explained here link and then clone and handle it as any local Git-Repository (see e.g. link - with local Repos the file path is used instead of the URL).
An even simpler way could be to create a hosted online Git-Repository (e.g. on Github) even if you are a sole contributor, maybe make it a private one, if you don't want to make the contents public.

Using Git with a Samba shared folder

I am new to Git, and trying to determine how to best implement it.
I have the following four machines:
Linux server running GitLabs which stores my main repository.
Linux production server running Apache, etc. I am not currently concerned about this part.
Linux development server running Apache, etc. It also runs Samba and maps /var/www to Windows. It is located in my home and is on a LAN.
Windows 7 PC running a PHP IDE (happens to be PhpED). It is located in my home and is on the same LAN as the Linux development server. It directly edits the files in the Samba
folder on the Linux development server, as well as uses this folder for debugging, and does not have code directly on it. The IDE has some basic Git functionality via TortoiseGit, however, I don't yet know how strong it is.
I am currently not concerned about sharing files, but only version control.
I've read that Git is all about being local. Giving my configuration, does that mean Git is run on the Windows PC even though my working directory is not located on it? Or is it handled just using Linux between /var/www/ and the GitLab repository? How do you envision I implement Git under this configuration?
Thank you
Git works on files. With the way you describe it, you will be running git on your windows pc - the fact the files are actually being accessed via the network rather than directly is something git probably won't even be aware of. As long as that is the only machine accessing that share, it should be fine.
But it's not really how you should use git. It has it's own mechanism for pushing/pulling changes between machines; so unless you are running an interesting driveless setup, you should probably consider storing the working directory on the machine that it is being edited on. Especially if there is a chance the files could be accessed from the linux machine as well (mixing version control accesses to the same working directory between multiple machines is always a bad idea, let alone between multiple OSes.

How do I install wkhtml2pdf?

I've been looking for a solution to this for about a year, still haven't found one.
I'm trying to get a website snapshot script that I can host on my server and use freely that works well on 99% of webpages.
So far I've been using html2canvas but it doesn't really display images.
I looked into wkhtml2pdf before but I tried installing every single binary and executing from PHP. None of them worked!
All I know about my server is that it is Linux (so I only tested Linux static binaries). Even the basic --help command didn't work.
Please help me out. Thanks!
If you are using a hosting service, it is possible that it is impossible to execute binary programs stored in users' directories. (noexec flag on specific partition). You should first contact system administrator and ask if it is possible to put your own binary executables there. Perhaps, you can ask system administrator to install wkhtmltopdf for you in a global directory /usr/local/bin.
You'll need more then a simple shared hosting, and more then "it is Linux". PHP could be in safemod and lots and lots of other limitations. I would choose a minimal VPS (like digitalocean or similar), root access, install wkhtml2pdf with dnf, yum or what's on you Linux distro, because it brings lots of dependencies to your machine. A minimal LAMP server should not have what's needed on it. You need to be able to allow Apache (or other user) to exec the binary.

How to add remote includes to a synchronized eclipse project for correct indexing?

I have created a synchronized project in Eclipse so that I can develop on my Windows workstation without the overhead caused by running eclipse on our company's build server. However, the problem I'm having is that the indexer is using my Cygwin includes for things such as the stdlib which aren't the ones I wanted to include. Is there a way to include remote includes from the linux build server for things like the std lib? The only idea I have right now would be to create a mapped cifs mount to my windows machine that has access to the header files, however I don't know if that would work.
Look at "Remote Include Paths" (bottom of page). Let us know on the ptp-users mailing-list if it doesn't work.

Resources