在Radxa上安装Seafile

#

什么是Seafile?

Seafile是下一代的开源云存储,可以更好的文件同步,隐私保护和团队协作功能。要了解更多信息,请访问其[官网](http://seafile.com)

#

安装前置条件

sudo apt-get update

sudo apt-get install python2.7 python-setuptools python-simplejson python-imaging sqlite3

more

#

下载Seafile

假定Seafile根目录为"/mnt/sd/cloud/seafile"

从Seafile官网(http://seafile.com/en/download/)下载最新版的“Server for Raspberry Pi”(为什么下载这个版本?因为Radxa是ARM板,而这个版本正是为了同为ARM板的Raspberry Pi而开发,所以是适配的。PS:Radxa这是粘了Raspberry Pi的光)

cd /mnt/sd/cloud/seafile

mkdir installed

cd installed

wget https://bitbucket.org/haiwen/seafile/downloads/seafile-server_3.0.4_pi.tar.gz

tar xvzf seafile-server_3.0.4_pi.tar.gz -C ../

cd ../seafile-server-3.0.4

#

安装Seafile

./setup-seafile.sh


This script will guide you to config and setup your seafile server.

Make sure you have read seafile server manual at

https://github.com/haiwen/seafile/wiki

Note: This script will guide your to setup seafile server using sqlite3,

which may have problems if your disk is on a NFS/CIFS/USB.

In these cases, we sugguest you setup seafile server using MySQL.

Press [ENTER] to continue


Checking packages needed by seafile …

Checking python on this machine …

Find python: python2.7

Checking python module: setuptools … Done.

Checking python module: python-simplejson … Done.

Checking python module: python-imaging … Done.

Checking python module: python-sqlite3 … Done.

Checking for sqlite3 …Done.

Checking Done.

What would you like to use as the name of this seafile server?

Your seafile users will be able to see the name in their seafile client.

You can use a-z, A-Z, 0-9, _ and -, and the length should be 3 ~ 15

What is the ip or domain of this server?

For example, www.mycompany.com, or, 192.168.1.101

What tcp port do you want to use for ccnet server?

10001 is the recommended port.

[default: 10001 ]

Where would you like to store your seafile data?

Note: Please use a volume with enough free space.

[default: /mnt/sd/cloud/seafile/seafile-data ]

What tcp port would you like to use for seafile server?

12001 is the recommended port.

[default: 12001 ]

What tcp port do you want to use for seafile httpserver?

8082 is the recommended port.

[default: 8082 ]

This is your config information:

server name: seafile

server ip/domain: 192.168.1.22

server port: 10001

seafile data dir: /mnt/sd/cloud/seafile/seafile-data

seafile port: 12001

httpserver port: 8082

If you are OK with the configuration, press [ENTER] to continue.

Generating ccnet configuration in /mnt/sd/cloud/seafile/ccnet…

done

Successly create configuration dir /mnt/sd/cloud/seafile/ccnet.

Generating seafile configuration in /mnt/sd/cloud/seafile/seafile-data …

Done.


Seahub is the web interface for seafile server.

Now let's setup seahub configuration. Press [ENTER] to continue


Creating seahub database now…

Done.

creating seafile-server-latest symbolic link … done


Your seafile server configuration has been completed successfully.


run seafile server: ./seafile.sh { start | stop | restart }

run seahub server: ./seahub.sh { start <port> | stop | restart <port> }


If the server is behind a firewall, remember to open these tcp ports:


port of ccnet server: 10001

port of seafile server: 12001

port of seafile httpserver: 8082

port of seahub: 8000

#

启动Seafile

./seafile.sh start

./seahub.sh start

Starting seahub at port 8000 …


It's the first time you start the seafile server. Now let's create the admin account


What is the email for the admin account?

[ admin email ] your email

What is the password for the admin account?

[ admin password ]

Enter the password again:

[ admin password again ]


Successfully created seafile admin


Loading ccnet config from /mnt/sd/cloud/seafile/ccnet

Loading seafile config from /mnt/sd/cloud/seafile/seafile-data

Seahub is started

Done.

#

测试

打开http://IP:8000/,使用刚才创建的管理员账户登陆即可。更进一步,可以结合Seafile的免费Windows/Mac/Android/iOS客户端进行测试

EndFragment