Permalink
Browse files

V.2-06/04/2012

  • Loading branch information...
1 parent 101f08a commit b1744ffa9ae897ef73a19474883a99ed1a7b0842 @ngasiproj committed Jun 5, 2012
Showing with 16,443 additions and 16,368 deletions.
  1. +1,049 −1,049 LICENSE
  2. +36 −36 NOTICE
  3. +111 −111 README
  4. +228 −228 RELEASE-NOTES
  5. +289 −289 RUNNING.txt
  6. BIN bin/bootstrap.jar
  7. +61 −61 bin/catalina-tasks.xml
  8. +323 −323 bin/catalina.bat
  9. 0 bin/catalina.sh
  10. 0 bin/catalina2.sh
  11. BIN bin/commons-daemon-native.tar.gz
  12. BIN bin/commons-daemon.jar
  13. +59 −59 bin/configtest.bat
  14. 0 bin/configtest.sh
  15. +35 −35 bin/cpappend.bat
  16. 0 bin/demon.sh
  17. +5 −5 bin/derby.log
  18. +59 −59 bin/digest.bat
  19. 0 bin/digest.sh
  20. +88 −88 bin/setclasspath.bat
  21. 0 bin/setclasspath.sh
  22. 0 bin/setenv.bat
  23. +1 −0 bin/setenv.sh
  24. +59 −59 bin/shutdown.bat
  25. 0 bin/shutdown.sh
  26. 0 bin/startup.bat
  27. 0 bin/startup.sh
  28. BIN bin/tomcat-juli.jar
  29. BIN bin/tomcat-native.tar.gz
  30. +97 −97 bin/tool-wrapper.bat
  31. 0 bin/tool-wrapper.sh
  32. +59 −59 bin/version.bat
  33. 0 bin/version.sh
  34. 0 conf/Catalina/localhost/ROOT.xml.sample
  35. +246 −246 conf/catalina.policy
  36. +119 −119 conf/catalina.properties
  37. +34 −34 conf/context.xml
  38. +64 −64 conf/logging.properties
  39. +142 −142 conf/server.xml
  40. +36 −36 conf/tomcat-users.xml
  41. +4,283 −4,283 conf/web.xml
  42. 0 jdk/bin/ControlPanel
  43. 0 jdk/bin/HtmlConverter
  44. BIN jdk/bin/appletviewer
  45. BIN jdk/bin/apt
  46. BIN jdk/bin/extcheck
  47. BIN jdk/bin/idlj
  48. BIN jdk/bin/jar
  49. BIN jdk/bin/jarsigner
  50. BIN jdk/bin/java
  51. 0 jdk/bin/java-rmi.cgi
  52. BIN jdk/bin/javac
  53. BIN jdk/bin/javadoc
  54. BIN jdk/bin/javah
  55. BIN jdk/bin/javap
  56. BIN jdk/bin/javaws
  57. BIN jdk/bin/jconsole
  58. 0 jdk/bin/jcontrol
  59. BIN jdk/bin/jdb
  60. BIN jdk/bin/jhat
  61. BIN jdk/bin/jinfo
  62. BIN jdk/bin/jmap
  63. BIN jdk/bin/jps
  64. BIN jdk/bin/jrunscript
  65. BIN jdk/bin/jsadebugd
  66. BIN jdk/bin/jstack
  67. BIN jdk/bin/jstat
  68. BIN jdk/bin/jstatd
  69. 0 jdk/bin/jvisualvm
  70. BIN jdk/bin/keytool
  71. BIN jdk/bin/native2ascii
  72. BIN jdk/bin/orbd
  73. BIN jdk/bin/pack200
  74. BIN jdk/bin/policytool
  75. BIN jdk/bin/rmic
  76. BIN jdk/bin/rmid
  77. BIN jdk/bin/rmiregistry
  78. BIN jdk/bin/schemagen
  79. BIN jdk/bin/serialver
  80. BIN jdk/bin/servertool
  81. BIN jdk/bin/tnameserv
  82. BIN jdk/bin/unpack200
  83. BIN jdk/bin/wsgen
  84. BIN jdk/bin/wsimport
  85. BIN jdk/bin/xjc
  86. 0 jdk/jre/bin/ControlPanel
  87. BIN jdk/jre/bin/java
  88. BIN jdk/jre/bin/java_vm
  89. BIN jdk/jre/bin/javaws
  90. 0 jdk/jre/bin/jcontrol
  91. BIN jdk/jre/bin/keytool
  92. BIN jdk/jre/bin/orbd
  93. BIN jdk/jre/bin/pack200
  94. BIN jdk/jre/bin/policytool
  95. BIN jdk/jre/bin/rmid
  96. BIN jdk/jre/bin/rmiregistry
  97. BIN jdk/jre/bin/servertool
  98. BIN jdk/jre/bin/tnameserv
  99. BIN jdk/jre/bin/unpack200
  100. BIN jdk/jre/javaws/javaws
  101. 0 jdk/jre/lib/deploy/messages_zh_HK.properties
  102. BIN jdk/jre/lib/i386/client/libjsig.so
  103. BIN jdk/jre/lib/i386/client/libjvm.so
  104. BIN jdk/jre/lib/i386/headless/libmawt.so
  105. BIN jdk/jre/lib/i386/jli/libjli.so
  106. BIN jdk/jre/lib/i386/libJdbcOdbc.so
  107. BIN jdk/jre/lib/i386/libattach.so
  108. BIN jdk/jre/lib/i386/libawt.so
  109. BIN jdk/jre/lib/i386/libcmm.so
  110. BIN jdk/jre/lib/i386/libdcpr.so
  111. BIN jdk/jre/lib/i386/libdeploy.so
  112. BIN jdk/jre/lib/i386/libdt_socket.so
  113. BIN jdk/jre/lib/i386/libfontmanager.so
  114. BIN jdk/jre/lib/i386/libhprof.so
  115. BIN jdk/jre/lib/i386/libinstrument.so
  116. BIN jdk/jre/lib/i386/libioser12.so
  117. BIN jdk/jre/lib/i386/libj2gss.so
  118. BIN jdk/jre/lib/i386/libj2pcsc.so
  119. BIN jdk/jre/lib/i386/libj2pkcs11.so
  120. BIN jdk/jre/lib/i386/libjaas_unix.so
  121. BIN jdk/jre/lib/i386/libjava.so
  122. BIN jdk/jre/lib/i386/libjava_crw_demo.so
  123. BIN jdk/jre/lib/i386/libjavaplugin_jni.so
  124. BIN jdk/jre/lib/i386/libjavaplugin_nscp.so
  125. BIN jdk/jre/lib/i386/libjavaplugin_nscp_gcc29.so
  126. BIN jdk/jre/lib/i386/libjawt.so
  127. BIN jdk/jre/lib/i386/libjdwp.so
  128. BIN jdk/jre/lib/i386/libjpeg.so
  129. BIN jdk/jre/lib/i386/libjsig.so
  130. BIN jdk/jre/lib/i386/libjsound.so
  131. BIN jdk/jre/lib/i386/libjsoundalsa.so
  132. BIN jdk/jre/lib/i386/libmanagement.so
  133. BIN jdk/jre/lib/i386/libmlib_image.so
  134. BIN jdk/jre/lib/i386/libnet.so
  135. BIN jdk/jre/lib/i386/libnio.so
  136. BIN jdk/jre/lib/i386/libnpjp2.so
  137. BIN jdk/jre/lib/i386/libnpt.so
  138. BIN jdk/jre/lib/i386/librmi.so
  139. BIN jdk/jre/lib/i386/libsaproc.so
  140. BIN jdk/jre/lib/i386/libsplashscreen.so
  141. BIN jdk/jre/lib/i386/libunpack.so
  142. BIN jdk/jre/lib/i386/libverify.so
  143. BIN jdk/jre/lib/i386/libzip.so
  144. BIN jdk/jre/lib/i386/motif21/libmawt.so
  145. BIN jdk/jre/lib/i386/native_threads/libhpi.so
  146. BIN jdk/jre/lib/i386/server/libjsig.so
  147. BIN jdk/jre/lib/i386/server/libjvm.so
  148. BIN jdk/jre/lib/i386/xawt/libmawt.so
  149. BIN jdk/jre/lib/jexec
  150. BIN jdk/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so
  151. BIN jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so
  152. BIN jdk/lib/jexec
  153. BIN lib/activation.jar
  154. BIN lib/annotations-api.jar
  155. BIN lib/catalina-ant.jar
  156. BIN lib/catalina-ha.jar
  157. BIN lib/catalina-tribes.jar
  158. BIN lib/catalina.jar
  159. BIN lib/derby.jar
  160. BIN lib/ecj-3.7.2.jar
  161. BIN lib/el-api.jar
  162. BIN lib/jasper-el.jar
  163. BIN lib/jasper.jar
  164. BIN lib/jcr-2.0.jar
  165. BIN lib/jsp-api.jar
  166. BIN lib/mail.jar
  167. BIN lib/mysql-connector-java-5.0.4-bin.jar
  168. BIN lib/postgresql.jar
  169. BIN lib/servlet-api.jar
  170. BIN lib/tomcat-api.jar
  171. BIN lib/tomcat-coyote.jar
  172. BIN lib/tomcat-dbcp.jar
  173. BIN lib/tomcat-i18n-es.jar
  174. BIN lib/tomcat-i18n-fr.jar
  175. BIN lib/tomcat-i18n-ja.jar
  176. BIN lib/tomcat-jdbc.jar
  177. BIN lib/tomcat-util.jar
  178. +1 −0 source/ngasi/caimito/CaimitoConfig.java
  179. +2,246 −2,246 source/ngasi/caimito/CaimitoDefaultServlet.java
  180. +1 −1 source/ngasi/caimito/CaimitoException.java
  181. 0 source/ngasi/caimito/CaimitoUtil.java
  182. +3,457 −3,458 source/ngasi/caimito/CaimitoWebdavServlet.java
  183. +104 −104 source/ngasi/caimito/resource/CacheMgr.java
  184. +120 −120 source/ngasi/caimito/resource/CloudResourceObj.java
  185. +197 −197 source/ngasi/caimito/resource/FileResourceObj.java
  186. +787 −716 source/ngasi/caimito/resource/OpenStackResourceObj.java
  187. +186 −186 source/ngasi/caimito/resource/ResourceObj.java
  188. +733 −733 source/ngasi/caimito/resource/ResourceStore.java
  189. +52 −52 source/ngasi/caimito/resource/ShaftAppMgr.java
  190. +57 −57 source/ngasi/caimito/resource/ShaftResourceObj.java
  191. +228 −228 webapps/RELEASE-NOTES.txt
  192. +38 −35 webapps/WEB-INF/caimito/config.properties.sample
  193. BIN webapps/WEB-INF/classes/ngasi/caimito/CaimitoConfig.class
  194. BIN webapps/WEB-INF/classes/ngasi/caimito/CaimitoDefaultServlet$Range.class
  195. BIN webapps/WEB-INF/classes/ngasi/caimito/CaimitoDefaultServlet.class
  196. BIN webapps/WEB-INF/classes/ngasi/caimito/CaimitoException.class
  197. BIN webapps/WEB-INF/classes/ngasi/caimito/CaimitoUtil.class
  198. BIN webapps/WEB-INF/classes/ngasi/caimito/CaimitoWebdavServlet$LockInfo.class
  199. BIN webapps/WEB-INF/classes/ngasi/caimito/CaimitoWebdavServlet$WebdavResolver.class
  200. BIN webapps/WEB-INF/classes/ngasi/caimito/CaimitoWebdavServlet.class
  201. BIN webapps/WEB-INF/classes/ngasi/caimito/WebdavServletStatus.class
  202. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/CacheMgr.class
  203. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/CaimitoBooleanHolder.class
  204. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/CloudResourceObj.class
  205. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/FileResourceObj.class
  206. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/OSRAttribute.class
  207. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/OpenStackResourceObj$1.class
  208. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/OpenStackResourceObj.class
  209. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/ResourceObj.class
  210. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/ResourceStore.class
  211. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/ShaftAppMgr.class
  212. BIN webapps/WEB-INF/classes/ngasi/caimito/resource/ShaftResourceObj.class
  213. BIN webapps/WEB-INF/lib/ac.jar
  214. BIN webapps/WEB-INF/lib/asm-3.1.jar
  215. BIN webapps/WEB-INF/lib/gson.jar
  216. BIN webapps/WEB-INF/lib/jackson-core-asl-1.8.3.jar
  217. BIN webapps/WEB-INF/lib/jackson-jaxrs-1.8.3.jar
  218. BIN webapps/WEB-INF/lib/jackson-mapper-asl-1.8.3.jar
  219. BIN webapps/WEB-INF/lib/jackson-xc-1.8.3.jar
  220. BIN webapps/WEB-INF/lib/jersey-client-1.10.jar
  221. BIN webapps/WEB-INF/lib/jersey-core-1.10.jar
  222. BIN webapps/WEB-INF/lib/jersey-json-1.10.jar
  223. BIN webapps/WEB-INF/lib/jersey-server-1.10.jar
  224. BIN webapps/WEB-INF/lib/jersey-servlet-1.10.jar
  225. BIN webapps/WEB-INF/lib/jettison-1.1.jar
  226. BIN webapps/WEB-INF/lib/jsr311-api-1.1.1.jar
  227. BIN webapps/WEB-INF/lib/tools.jar
  228. 0 webapps/WEB-INF/shaft/app.properties
  229. 0 webapps/WEB-INF/shaft/load_db.sql
  230. 0 webapps/WEB-INF/shaft/server.properties
  231. +88 −88 webapps/WEB-INF/web.xml
  232. +93 −93 webapps/build.xml
  233. 0 webapps/ca/public/.gitattributes
  234. 0 webapps/ca/public/.gitignore
  235. 0 webapps/ca/public/.htaccess
  236. 0 webapps/ca/public/401.html
  237. 0 webapps/ca/public/404.html
  238. 0 webapps/ca/public/500.html
  239. BIN webapps/ca/public/apple-touch-icon-114x114-precomposed.png
  240. BIN webapps/ca/public/apple-touch-icon-57x57-precomposed.png
  241. BIN webapps/ca/public/apple-touch-icon-72x72-precomposed.png
  242. BIN webapps/ca/public/apple-touch-icon-precomposed.png
  243. BIN webapps/ca/public/apple-touch-icon.png
  244. 0 webapps/ca/public/crossdomain.xml
  245. 0 webapps/ca/public/css/style.css
  246. BIN webapps/ca/public/favicon.ico
  247. 0 webapps/ca/public/humans.txt
  248. 0 webapps/ca/public/img/.gitignore
  249. 0 webapps/ca/public/index.html
  250. 0 webapps/ca/public/js/libs/jquery-1.7.1.js
  251. 0 webapps/ca/public/js/libs/jquery-1.7.1.min.js
  252. 0 webapps/ca/public/js/libs/modernizr-2.5.3.min.js
  253. 0 webapps/ca/public/js/plugins.js
  254. 0 webapps/ca/public/js/script.js
  255. BIN webapps/ca/public/logo.png
  256. 0 webapps/ca/public/readme.md
  257. 0 webapps/ca/public/robots.txt
  258. BIN webapps/ca/public/symbol.png
  259. 0 webapps/ca/server/pathprivileges.db
  260. 0 webapps/ca/server/publicpaths.db
  261. BIN webapps/favicon.ico
  262. +222 −222 webapps/index.jsp
  263. +350 −350 webapps/tomcat.css
View
2,098 LICENSE 100644 → 100755

Large diffs are not rendered by default.

Oops, something went wrong.
View
72 NOTICE 100644 → 100755
@@ -1,36 +1,36 @@
-Apache Tomcat
-Copyright 1999-2012 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org/).
-
-The Windows Installer is built with the Nullsoft
-Scriptable Install System (NSIS), which is
-open source software. The original software and
-related information is available at
-http://nsis.sourceforge.net.
-
-Java compilation software for JSP pages is provided by Eclipse,
-which is open source software. The original software and
-related information is available at
-http://www.eclipse.org.
-
-For the bayeux implementation
-The org.apache.cometd.bayeux API is derivative work originating at the Dojo Foundation
-* Copyright 2007-2008 Guy Molinari
-* Copyright 2007-2008 Filip Hanik
-* Copyright 2007 Dojo Foundation
-* Copyright 2007 Mort Bay Consulting Pty. Ltd.
-
-The original XML Schemas for Java EE Deployment Descriptors:
- - javaee_5.xsd
- - javaee_web_services_1_2.xsd
- - javaee_web_services_client_1_2.xsd
- - javaee_6.xsd
- - javaee_web_services_1_3.xsd
- - javaee_web_services_client_1_3.xsd
- - web-app_3_0.xsd
- - web-common_3_0.xsd
- - web-fragment_3_0.xsd
- - jsp_2_2.xsd
-may be obtained from http://java.sun.com/xml/ns/javaee/
+Apache Tomcat
+Copyright 1999-2012 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
+The Windows Installer is built with the Nullsoft
+Scriptable Install System (NSIS), which is
+open source software. The original software and
+related information is available at
+http://nsis.sourceforge.net.
+
+Java compilation software for JSP pages is provided by Eclipse,
+which is open source software. The original software and
+related information is available at
+http://www.eclipse.org.
+
+For the bayeux implementation
+The org.apache.cometd.bayeux API is derivative work originating at the Dojo Foundation
+* Copyright 2007-2008 Guy Molinari
+* Copyright 2007-2008 Filip Hanik
+* Copyright 2007 Dojo Foundation
+* Copyright 2007 Mort Bay Consulting Pty. Ltd.
+
+The original XML Schemas for Java EE Deployment Descriptors:
+ - javaee_5.xsd
+ - javaee_web_services_1_2.xsd
+ - javaee_web_services_client_1_2.xsd
+ - javaee_6.xsd
+ - javaee_web_services_1_3.xsd
+ - javaee_web_services_client_1_3.xsd
+ - web-app_3_0.xsd
+ - web-common_3_0.xsd
+ - web-fragment_3_0.xsd
+ - jsp_2_2.xsd
+may be obtained from http://java.sun.com/xml/ns/javaee/
View
222 README 100644 → 100755
@@ -1,111 +1,111 @@
-Caimito is an open source (Apache Software License 2.0) WebDAV,caching, and content-delivery server frontend for cloud storage. Caimito supports Softlayer Object Storage, Open Stack Storage, and Amazon S3. Caimito also features a REST interface for configuring user access. Caimito is ideal for Hosting and Reseller environments.
-
-Requirements
-Requires any Linux distro.
-
-Download
-http://cloud-drive.ngasi.com/s1/f1/caimito/public/caimito.zip
-
-Install
-cd to /usr directory
-unzip caimito contents to directory then copy 2 configuration files.
-cd /usr unzip -q -o -a caimito.zip cp /usr/caimito/conf/Catalina/localhost/ROOT.xml.sample /usr/caimito/conf/Catalina/localhost/ROOT.xml cp /usr/caimito/webapps/WEB-INF/caimito/config.properties.sample /usr/caimito/webapps/WEB-INF/caimito/config.properties
-
-Configure
-Database
-Caimito is installed with a default Derby Database.
-To change the database, edit the following file:
-/usr/caimito/conf/Catalina/localhost/ROOT.xml
-Resource Storage
-The resource storage type and access info is set in the following file:
-/usr/caimito/webapps/WEB-INF/caimito/config.properties
-The default storage type is "file". To change to a Cloud storage, edit the value for "resource". The value for Open Stack and Softlayer Object Storage would be "openstack" (Amazon S3 support coming soon). The values for "cloud.username", "cloud.api.key_password", "cloud.url", and "cloud.store" should be populated with the appropriate information. "cloud.store" is populated with the name of an already created "container" or "bucket".
-
-Run
-cd /usr/caimito/bin
-./startup.sh
-
-To run as a Deamon:
-./demon.sh
-
-To Stop:
-./shutdown.sh
-
-Access:
-Point any HTTP enabled client to:
-http://hostname:8619/
-NOTE: Make sure access to port 8619 is enabled through any firewall.
-
-By default access is restricted so you would be prompted to login. Login with the following information:
-User: caimitoadmin Password: caimito
-The above is the default Super Admin user. Follow the instructions below to change the password.
-
-Configuring Users:
-There are 4 default levels of Users. They are listed below in hierarchical order:
-Super Admin
-is the single user that has overriding control over all other users. The Super Admin has the privilege to create one or more Directory Admin and assign access to the Directory Admin to a sub directory.
-Directory Admin
-A Directory Admin has the privilege to create one or more Client and assign access to the client to a directory owned by the Directory Admin.
-Client
-A Client has the privilege to create one or more End User and assign access to the End User to a directory owned by the Client.
-End User
-Although the End User may have directory access, the End User has no administrative privilege.
-Configuring User access is a 2 step process. First the User is created, then the specific directory access is granted.
-Below is the steps to do so with the REST API. (The REST API is based on Shaftwork framework.)
-Create User
-http://hostname:8619/ca/shaftrest/shaftusermgr/add?shaftuser.new=user1&shaftpassword.new=tiger&shaftuser=caimitoadmin&shaftpassword=caimito
-Here a Directory Admin, user1, was created with the password tiger.
-Set Directory Privilege
-http://hostname:8619/ca/shaftrest/pathprivileges/add?shaftuser=caimitoadmin&shaftpassword=caimito&resourceuser=user1&path=dirpath1&privilege=2&maxspace=20
-Here user1, was assigned access to dirpath1 with a max space of 20GB. The directory path is an absolute path relative to the root directory path of the User (the root path for the Super Admin is /). So the newly protected path would look like:
-http://hostname:8619/dirpath1
-In the above example, the privilege was set with a value of 2. A privilege of 2 signifies READ/WRITE access. A privilege of 1 signifies READ only access.
-Privileges:
-1
-READ only
-2
-READ/WRITE
-Public Paths
-Authentication may not be required for all directory paths. In these situations, you set public path access - which means world read access to the directory.
-http://hostname:8619/ca/shaftrest/publicpaths/add?shaftuser=user1&shaftpassword=tiger&path=dirpath1/public&listing=false
-In the above example, the path, dirpath1/public, was set to world readable access. So the public path would look like:
-http://hostname:8619/dirpath1/public
-Also in this example, the optional "listing" attribute was set to false. If "listing" is set the true, users would be able to see a list of the contents contained in the directory.
-Change Password
-http://hostname:8619/ca/shaftrest/shaftusermgr/update?shaftpassword.new=lion&shaftuser=user1&shaftpassword=tiger
-The above example changes the password for user1 to lion.
-Delete User
-http://hostname:8619/ca/shaftrest/shaftusermgr/delete?shaftuser.eq=user1&shaftuser=caimitoadmin&shaftpassword=caimito
-The above example removes user1.
-Delete Directory Privilege
-http://hostname:8619/ca/shaftrest/pathprivileges/delete?shaftuser=caimitoadmin&shaftpassword=caimito&resourceuser.eq=user1&path.eq=dirpath1
-Here user1's privilege to dirpath1 was removed.
-Delete Public Paths
-http://hostname:8619/ca/shaftrest/publicpaths/delete?shaftuser=user1&shaftpassword=tiger&path.eq=dirpath1/public
-In the above example, world readable access to dirpath1/public, was removed.
-
-Mounting Caimito as a File System
-Windows
-Right Click "Computer"
-Click "Add a network location"
-Enter the appropriate Caimito URL and login credentials.
-Linux
-Download and install one of the packages at the following link:
-http://pkgs.repoforge.org/davfs2/
-Add Caimito access info like so
-echo "http://hostname:8619 caimitoadmin caimito" >> /etc/davfs2/secrets
-Create a directory to map the mounted file system
-mkdir /clouddrive
-Mount Caimito like so:
-mount -t davfs http://hostname:8619 /clouddrive
-Virtuozzo and OpenVZ
-Install fuse on the Host system like so:
-yum -y install fuse
-Then set the following for the VPS like so:
-vzctl set 227 --devnodes fuse:rw --save
-
-Web Interface
-COMING SOON!
-
-Community
-Contact: support(AT)ngasi.com
+Caimito is an open source (Apache Software License 2.0) WebDAV,caching, and content-delivery server frontend for cloud storage. Caimito supports Softlayer Object Storage, Open Stack Storage, and Amazon S3. Caimito also features a REST interface for configuring user access. Caimito is ideal for Hosting and Reseller environments.
+
+Requirements
+Requires any Linux distro.
+
+Download
+http://cloud-drive.ngasi.com/s1/f1/caimito/public/caimito.zip
+
+Install
+cd to /usr directory
+unzip caimito contents to directory then copy 2 configuration files.
+cd /usr unzip -q -o -a caimito.zip cp /usr/caimito/conf/Catalina/localhost/ROOT.xml.sample /usr/caimito/conf/Catalina/localhost/ROOT.xml cp /usr/caimito/webapps/WEB-INF/caimito/config.properties.sample /usr/caimito/webapps/WEB-INF/caimito/config.properties
+
+Configure
+Database
+Caimito is installed with a default Derby Database.
+To change the database, edit the following file:
+/usr/caimito/conf/Catalina/localhost/ROOT.xml
+Resource Storage
+The resource storage type and access info is set in the following file:
+/usr/caimito/webapps/WEB-INF/caimito/config.properties
+The default storage type is "file". To change to a Cloud storage, edit the value for "resource". The value for Open Stack and Softlayer Object Storage would be "openstack" (Amazon S3 support coming soon). The values for "cloud.username", "cloud.api.key_password", "cloud.url", and "cloud.store" should be populated with the appropriate information. "cloud.store" is populated with the name of an already created "container" or "bucket".
+
+Run
+cd /usr/caimito/bin
+./startup.sh
+
+To run as a Deamon:
+./demon.sh
+
+To Stop:
+./shutdown.sh
+
+Access:
+Point any HTTP enabled client to:
+http://hostname:8619/
+NOTE: Make sure access to port 8619 is enabled through any firewall.
+
+By default access is restricted so you would be prompted to login. Login with the following information:
+User: caimitoadmin Password: caimito
+The above is the default Super Admin user. Follow the instructions below to change the password.
+
+Configuring Users:
+There are 4 default levels of Users. They are listed below in hierarchical order:
+Super Admin
+is the single user that has overriding control over all other users. The Super Admin has the privilege to create one or more Directory Admin and assign access to the Directory Admin to a sub directory.
+Directory Admin
+A Directory Admin has the privilege to create one or more Client and assign access to the client to a directory owned by the Directory Admin.
+Client
+A Client has the privilege to create one or more End User and assign access to the End User to a directory owned by the Client.
+End User
+Although the End User may have directory access, the End User has no administrative privilege.
+Configuring User access is a 2 step process. First the User is created, then the specific directory access is granted.
+Below is the steps to do so with the REST API. (The REST API is based on Shaftwork framework.)
+Create User
+http://hostname:8619/ca/shaftrest/shaftusermgr/add?shaftuser.new=user1&shaftpassword.new=tiger&shaftuser=caimitoadmin&shaftpassword=caimito
+Here a Directory Admin, user1, was created with the password tiger.
+Set Directory Privilege
+http://hostname:8619/ca/shaftrest/pathprivileges/add?shaftuser=caimitoadmin&shaftpassword=caimito&resourceuser=user1&path=dirpath1&privilege=2&maxspace=20
+Here user1, was assigned access to dirpath1 with a max space of 20GB. The directory path is an absolute path relative to the root directory path of the User (the root path for the Super Admin is /). So the newly protected path would look like:
+http://hostname:8619/dirpath1
+In the above example, the privilege was set with a value of 2. A privilege of 2 signifies READ/WRITE access. A privilege of 1 signifies READ only access.
+Privileges:
+1
+READ only
+2
+READ/WRITE
+Public Paths
+Authentication may not be required for all directory paths. In these situations, you set public path access - which means world read access to the directory.
+http://hostname:8619/ca/shaftrest/publicpaths/add?shaftuser=user1&shaftpassword=tiger&path=dirpath1/public&listing=false
+In the above example, the path, dirpath1/public, was set to world readable access. So the public path would look like:
+http://hostname:8619/dirpath1/public
+Also in this example, the optional "listing" attribute was set to false. If "listing" is set the true, users would be able to see a list of the contents contained in the directory.
+Change Password
+http://hostname:8619/ca/shaftrest/shaftusermgr/update?shaftpassword.new=lion&shaftuser=user1&shaftpassword=tiger
+The above example changes the password for user1 to lion.
+Delete User
+http://hostname:8619/ca/shaftrest/shaftusermgr/delete?shaftuser.eq=user1&shaftuser=caimitoadmin&shaftpassword=caimito
+The above example removes user1.
+Delete Directory Privilege
+http://hostname:8619/ca/shaftrest/pathprivileges/delete?shaftuser=caimitoadmin&shaftpassword=caimito&resourceuser.eq=user1&path.eq=dirpath1
+Here user1's privilege to dirpath1 was removed.
+Delete Public Paths
+http://hostname:8619/ca/shaftrest/publicpaths/delete?shaftuser=user1&shaftpassword=tiger&path.eq=dirpath1/public
+In the above example, world readable access to dirpath1/public, was removed.
+
+Mounting Caimito as a File System
+Windows
+Right Click "Computer"
+Click "Add a network location"
+Enter the appropriate Caimito URL and login credentials.
+Linux
+Download and install one of the packages at the following link:
+http://pkgs.repoforge.org/davfs2/
+Add Caimito access info like so
+echo "http://hostname:8619 caimitoadmin caimito" >> /etc/davfs2/secrets
+Create a directory to map the mounted file system
+mkdir /clouddrive
+Mount Caimito like so:
+mount -t davfs http://hostname:8619 /clouddrive
+Virtuozzo and OpenVZ
+Install fuse on the Host system like so:
+yum -y install fuse
+Then set the following for the VPS like so:
+vzctl set 227 --devnodes fuse:rw --save
+
+Web Interface
+COMING SOON!
+
+Community
+Contact: support(AT)ngasi.com
Oops, something went wrong.

0 comments on commit b1744ff

Please sign in to comment.