安装freenet的freenet python脚本
freenet-installer的Python项目详细描述
Freenet安装程序
启动freenet java软件的python包装器
安装
ubuntu 16:04和18:04
此项目所需的软件包如下:
需要基本软件包:
$ sudo apt-get update
$ sudo apt-get install openjdk-8-jre python3 cron git gnupg2
然后选择以下方法之一安装Freenet_安装程序。
使用git和setuptools安装python包(全局) $sudo apt get install python3 setuptools构建基本python3 dev $git克隆https://github.com/datorrukis/freenet-installer.git $cd freenet安装程序 $cd src&;sudo python3 setup.py安装
使用pip安装python包(全局) $sudo apt get安装-y python3 pip $sudo pip3安装freenet_安装程序
使用git和setuptools安装python包(virtualenv) $sudo apt get install python3 setuptools构建基本python3 dev python3 venv $python3-m venv~/env $source~/env/bin/激活 $git克隆https://github.com/datorrukis/freenet-installer.git $cd freenet安装程序 $cd src&;python3 setup.py安装
使用pip(virtualenv)安装python包 $sudo apt get安装-y python3 pip python3 venv $python3-m venv~/env $source~/env/bin/激活 $pip安装freenet_安装程序
启动
$ freenet_installer OPTIONS
该脚本首先在freenet项目的github.com页面上下载java freenet jar并验证其签名 然后它第一次启动它,让程序生成freenet.ini文件并停止程序。 创建第一个freenet.ini文件后,它会根据提供给freenet安装程序的选项修改它。 最后,它重新启动freenet程序。
卸载
$ freenet_installer -U
卸载freenet安装并删除cron作业。
人
usage: freenet_installer [-h] [--installation-path INSTALLATION_PATH]
[--installer-cache INSTALLER_CACHE] [--download-only]
[--force-download] [--remove-existing-install]
[--bandwidthdata-limit BANDWIDTHDATALIMIT]
[--bandwidth-limit-up BANDWIDTHLIMIT_UP]
[--bandwidth-limit-down BANDWIDTHLIMIT_DOWN]
[--datastore-size DATASTORESIZE]
[--auto-update AUTOUPDATE] [--upnp UPNP]
[--language LANGUAGE] [--node-name NODENAME]
[--physical-security PHYSICAL_SECURITY]
[--network-security NETWORK_SECURITY]
[--set-value SETVALUES] [--run-web-wizard] [-D] [-U]
[-y]
Freenet python runner
optional arguments:
-h, --help show this help message and exit
--installation-path INSTALLATION_PATH
Folder where to install freenet
--installer-cache INSTALLER_CACHE
folder where to save the installer file
--download-only Only donwload the installer, do not perform the
installation
--force-download force the redownload of the installer and store it in
the cache folder
--remove-existing-install
Delete the current installation before any action
--bandwidthdata-limit BANDWIDTHDATALIMIT
bandwidth data limit in GB
--bandwidth-limit-up BANDWIDTHLIMIT_UP
bandwidth rate limit in B
--bandwidth-limit-down BANDWIDTHLIMIT_DOWN
bandwidth rate limit in B
--datastore-size DATASTORESIZE
size of the Datastore in MiB or in percentage (-1 for
autodetect)
--auto-update AUTOUPDATE
autoupdate freenet
--upnp UPNP enable upnp plugin
--language LANGUAGE set the language of the website
--node-name NODENAME set the name of the node
--physical-security PHYSICAL_SECURITY
LOW: Don't encrypt temp files etc etc; NORMAL: Encrypt
temp files, centralise keys for client cache in
master.keys, if that is deleted client cache is
unreadable. Later on will include encrypting node.db4o
as well, which contains tempfile keys; HIGH: Password
master.keys; MAXIMUM: Transient encryption for client
cache, no persistent downloads support, etc.
--network-security NETWORK_SECURITY
LOW: turn off every performance impacting security
measure; NORMAL: normal setting, darknet/opennet
hybrid; HIGH: darknet only, normal settings otherwise;
MAXIMUM: paranoid - darknet only, turn off FOAF etc
etc
--set-value SETVALUES
change values from the config file
--run-web-wizard do not set the variable using this script and run the
web wizard
-D, --use-default-values
do not run the cli wizard and take default values or
values in parameter
-U, --uninstall Uninstall freenet
-y, --yes answer always yes for uninstall removal of folder
verification