遇到这样的问题。
于是想ubuntu访问远程服务器,代码下载到ubuntu上。ubuntu呢,有个文件夹是共享的另一个服务器的,所以这样就可以用ubuntu把代码下载到这个服务器上了。
先解决
======================ubuntu访问svn服务器==========================================
不用在乎ubuntu在我自己的局域网里头。
http://askubuntu.com/questions/206604/svn-and-gnome-keyring
zhangbin@Ubuntu64:~$ cd .subversion/
zhangbin@Ubuntu64:~/.subversion$ ls
auth config config~ README.txt servers
zhangbin@Ubuntu64:~/.subversion$ gedit config
zhangbin@Ubuntu64:~/.subversion$
要去掉前面的那个#。
=============
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m$ svn co svn://192.168.0.***********************************************************
Authentication realm: <svn://192.168.0.246:3690> e82ffc21-0ac6-4226-85ef-6d743bfeda67
Password for 'zhangbin':
-----------------------------------------------------------------------
ATTENTION! Your password for authentication realm:
<svn://192.168.0.246:3690> e82ffc21-0ac6-4226-85ef-6d743bfeda67
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/zhangbin/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
svn: The path '.' appears to be part of a Subversion 1.7 or greater
working copy. Please upgrade your Subversion client to use this
working copy.
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m$
root@Ubuntu64:/home/zhangbin# apt-get install subver*1.7*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package subver*1.7*
E: Couldn't find any package by regex 'subver*1.7*'
root@Ubuntu64:/home/zhangbin# apt-get install subversion
Reading package lists... Done
Building dependency tree
Reading state information... Done
subversion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@Ubuntu64:/home/zhangbin# svn -version
svn: invalid option character: e
Type 'svn help' for usage.
root@Ubuntu64:/home/zhangbin# svn --version
svn, version 1.6.17 (r1128011)
compiled Dec 17 2011, 16:12:52
Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
root@Ubuntu64:/home/zhangbin#
这个是装还是不装???
apt-get install libapache2-svn
root@Ubuntu64:/home/zhangbin# apt-get install libapache2-svn 装不装呢???? Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-utils apache2.2-bin apache2.2-common libaprutil1-dbd-sqlite3 libaprutil1-ldap Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom db4.8-util The following NEW packages will be installed: apache2-utils apache2.2-bin apache2.2-common libapache2-svn libaprutil1-dbd-sqlite3 libaprutil1-ldap 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 1,756 kB of archives. After this operation, 5,335 kB of additional disk space will be used. Do you want to continue [Y/n]?
======================windows使用securecrt访问ubutnu虚拟机================================
root@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m# sudo apt-get install openssh-server openssh-clientReading package lists... Done
Building dependency tree
Reading state information... Done
openssh-client is already the newest version.
openssh-client set to manually installed.
Suggested packages:
rssh molly-guard openssh-blacklist openssh-blacklist-extra monkeysphere
The following NEW packages will be installed:
openssh-server ssh-import-id
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 345 kB of archives.
After this operation, 881 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu/ precise/main openssh-server amd64 1:5.9p1-5ubuntu1 [339 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu/ precise/main ssh-import-id all 2.10-0ubuntu1 [6,598 B]
Fetched 345 kB in 0s (492 kB/s)
Preconfiguring packages ...
Selecting previously unselected package openssh-server.
(Reading database ... 186799 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_1%3a5.9p1-5ubuntu1_amd64.deb) ...
Selecting previously unselected package ssh-import-id.
Unpacking ssh-import-id (from .../ssh-import-id_2.10-0ubuntu1_all.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Processing triggers for man-db ...
Setting up openssh-server (1:5.9p1-5ubuntu1) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
ssh start/running, process 3947
Setting up ssh-import-id (2.10-0ubuntu1) ...
root@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m#
参考 http://blog.youkuaiyun.com/simplebird/article/details/3461448
可以访问我的ubutnu了。
同理,putty也可以访问 编译服务器,一样一样的,哪怕我的ubuntu和我的windows7 都在我自己的路由器的局域网里头。
=======================================