Remote SubversionSVN connection to Unix Server - delphi

Having installed TurtoiseSVN locally (local repository, no server) for my Delphi projects, i now want to share my updates via internet. To make it possible i did install Subversion (version 1.6) on an Apache Unix server (RedHat, VDS Hosting plan with Sphera) and created a repository folder at that place. The server is running well but i'm a bit lost at that point:
What are my best options to import the projects to the Unix repository, the easiest will be to clone the local repository to the one on the Unix machine? - ideally i would like them both synchro. What is the best tool to manage the Unix Subversion server and its repository (right now i'm using SSH Explorer) and best tool to checkout/import/export files on the repository of that server?
Tx

To copy the local repository to the server, you can use svnadmin dump to backup the local repo including all revisions to a portable backup file. On the target server, use svnadmin load to install the backup.
See 'Repository Maintenance - Migrating Repository Data Elsewhere' in the documentation.
If you have the server running, there is no need for the local repository anymore. If you really want to keep and synchronize a local repository with the server, you can use the svnadmin hotcopy command.

I have found a solution to my problem.
General remote connection script from a Windows SubversionSVN to a unix Subversion server:
svn+ssh://<username>#<hostname>:<port>/<location of the SVN repository>
Better, lets have username and password parameters added to TortoisePlink.exe, Open Explorer file window, right-click in the file section (get a pop-up), choose: TortoiseSVN -> Settings -> "Network" Pane-> SSH Client.
exemple: 'TortoiseSVN\bin\TortoisePlink.exe -l username -pw password'
now the connection will be:
svn+ssh://#<hostname>:<port>/<location of the SVN repository> ... no need to add username and no password asked for.

Related

TFS (On-premises) - Deploy: Windows Machine File Copy

My question is - to copy files to remote machines from the Drop folder, do I need that remote machine registered as an agent?
My remote machine is in the same network but still, I'm getting an ERROR to copy files.
No, it is not required to have a TFS Agent on the target server in order to copy files over to it, but you do need to have permission to write to it. See the screenshot of what I did. Notice that I am storing the credentials as variables in the build definition. The password is "locked" so no one can see the clear text password. I have the Build Agent running under the same service account that has Admin privileges on the target server, but leaving them off did not help. To test this out, try to log into the build server via RDP and then try to open file explorer and connect to the Target Server using the network path (\SomeServer\C$\SomePath\dir) and using the credentails (domain\login or just login) and see if it works, along with the password.

Configure Proxy Server

I've installed the latest Team Explorer Everywhere (14.0.1) onto my machine, but am having issues configuring the Proxy server.
Previous versions to TE, installed a VS 2010 shell onto the machine, and I could either open it and configure it normally within there, or I could use the following command to configure it:
tf proxy /configure [url]
However, this version appears to just be a command line file, and it doesn't appear to accept the tf proxy command.
Looking at the help file, it looks like the individual commands do take a /proxy:[url] switch, but this means adding it to every call I wish to make.
Is there a way in the new Team Explorer Everywhere to configure a proxy server to be used on all calls?
Could you please try setup the proxy via environment variables:
http_proxy
https_proxy
and try again?
EDIT: The environment variables only setup HTTP proxies, not TFS proxy which caches files from remote TFS to a local TFS proxy server.
The latest version of TEE doesn't permit a proxy being set in the same way that the TEE 2010 version does (i.e. via tf proxy /configure [url])
Instead, this can either (as noted in the question) be indicated on each call by adding the /proxy [url] switch to the command, or by setting the TFSPROXY environment variable.
Below is an example of how this is done via powershell:
$env:TFSPROXY = "[url]"

Saving changes in Chrome Dev tools to remote server

I see here that it's possible to map your dev tools to a file on your local machine. If I'm hosting a website(or Rails application) on an Amazon EC2 instance, is it possible to do the same thing? Will I have to map to a local file, and then somehow map that file to the same one on the server? If so, how and what tools need I use?

Running an Ant script to prepare a Database in Bluemix

I have an Ant script that I use to populate/prepare a database. All I need is to set the host, port and credentials for the database. It works fine for MySQL and DB2, the DB just need to be reachable from were the script is executed.
The DB service in Bluemix gives me a DB with an IP (75.x.x.x) that is only reachable from the internal network of Bluemix, it is not accessible externally.
My understanding is that my ant script needs to be executed from inside the Bluemix network/servers.
How can I do that?
What would be the alternatives?
I'm considering to create a NodeJS script to trigger that ant internally, but I'm not sure if it will work properly.
dashDB always had the ability for local clients (outside of Bluemix) to connect to the cloud database, and SQL Database later added the feature as well. So you should be able to populate a database as long as you have the correct driver client installed on your local machine.
Can you provide more details on how you tested that the IP is not reachable? Is there a firewall put in place between your local machine and Bluemix? Note that ping is not a good test because the port is blocked for security reasons. You may try the JDBC port indicated on the connection page from the console.
See link for instructions on how to make a connection:
https://www.ng.bluemix.net/docs/#services/SQLDB/index.html#connecting-to-sqldb
You might be able to use a simple custom buildpack. You can start with a sample like this one:
https://github.com/dmikusa-pivotal/cf-test-buildpack
fork it and modify the bin/compile script to run your ant task instead. Then put your ant script (and probably executable as I expect it is not installed in the Bluemix environment) in a directory and run
cf push <appname> -b <your forked git url>
To push it to Bluemix and run it. If you're just using it once you can probably get away with hard-coding the address and credentials, or else you can bind to the same service instance and get the info from VCAP_SERVICES.

copy file from unix system to windows using ant

can any one help me
how to copy file from unix Windoes system to windows UNIX using ant?
Thanks in advance
EDIT
Let me explain in detail what I am looking for I want to copy file from windows to unix machine (correcting my previous question not from unix to windows) using ANT. I thought of using ftp task.
Before that as a check I tried to ftp unix sever from windows but it gave connection refused error(Do I need to provide my username and password,if that is the case what is the syntax).
But I am able to connect through putty which asks for my user name and password. Does putty uses a different protocol.
So if that is the case does ftp task works for me in ANT?. If not what task I need to use?
You have a couple of options.
If you have a windows shared drive mounted on your windows you can simply use the task.
<copy>
http://ant.apache.org/manual/Tasks/copy.html
If you don't you'll need to set up some service in the Windows side, probably FTP, if that's the case you'll need to use the task:
<ftp>
http://ant.apache.org/manual/Tasks/ftp.html
EDIT
As per your comment, this is all you need:
http://ant.apache.org/manual/Tasks/ftp.html
Take a look at your server ( UNIX ) FTP configuration, compare it with the one you're using in putty.
The protocol should be the same, but unless you give us your FTP server IP + User/Password we won't be able to test it for you.
The link I posted has the needed configuration and examples on how to connect to an UNIX server using FTP. Just, try it.
Probably the simplest option (if you are going from Windows -> Unix) is the Ant SCP task (which will use the same underlying type of connection PuTTY uses -- SSH). See the Ant SCP Task for details. Note that this will require that you have JSch here.
ant scp task can be set up to use passwordless ssh if you set it up with an appropriate key file.
So first make sure you can ssh to the windos server without putting your password into the shell. here is a good set of tutorial for doing it unix to unix http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html . Haven't tried setting up a windows machine, so not too sure how that would work though.
<scp file="file.zip" dir="${userid}#${server}:${remotedir}" keyfile="${env.HOME}/.ssh/id_rsa" passphrase=""/>

Resources