【环境配置】Popush工程在Linux下的配置

本文详细介绍了在Linux Mint 17 Qiana Cinnamon 64位系统上部署Popush的过程,包括安装必要软件、配置环境、安装所需依赖、部署Popush及验证部署结果等步骤。同时提供了常见问题解决方案。

Popush Deployment (Linux)

Deploy Result


Environment

Operating System: Linux Mint 17 (Qiana)Cinnamon 64bit

Cinnamon Version: 2.2.16

Linux Kernel: 3.13.0-24-generic

If You Don't Have a Linux yet

1.        First of all, choose a Linuxdistribution (Linux发行版), instruction:http://en.wikipedia.org/wiki/Linux_distribution

·Linux Mint is currently the most popular one, and particularly convenient forprogrammers. You can download it fromhttp://www.linuxmint.com/download.php


Linux Mint 17Qiana

*If you want to getthe most beautiful Linux, and do not care whether convenient, we suppose you touseElementary OS: http://elementaryos.org/

2.        After getting the iso file of Linux distribution, we'dstrongly recommand that you install it on aVirtual Machine instead of instantly on your computer. For VirtualMachines,VMware workstation is agood choice. Download it and add a Virtual Machine, and install your linux onit.

Downloads

Item

Version

Website

Remarks

gdb

7.8*

http://www.gnu.org/software/gdb/

 

python

2.7.8/3.4.1

https://www.python.org/downloads/

2.7's already contained

jdk

8u20

http://www.oracle.com/technetwork/java/javase/downloads/index.html

 

lua

5.2.3

http://www.lua.org/download.html

 

mongodb

2.6.4

http://www.mongodb.org/downloads

 

ncurses

5.9

ftp://invisible-island.net/ncurses/

 

gcc & g++

 

 

use apt-get install**

nginx

1.7.6

http://nginx.org/

 

node.js

v0.10.32

http://nodejs.org/download/

 

PCRE

8.36

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

 

perl

5.20.1

https://www.perl.org/get.html

already contained

readline

6.3

ftp://ftp.gnu.org/gnu/readline/

 

ruby

2.1.3

https://www.ruby-lang.org/ja/downloads/

 

termcap

1.3.1

http://ftp.gnu.org/gnu/termcap/

 

zlib

1.2.8

http://www.zlib.net/

 

Popush

 

https://github.com/liuq880077/popush

 

*All these sources are .tar.gz files, extract them under Linux.

**Ctrl+Alt+T to open the Terminal, input these commands:

su
apt-get install g++

 "su" is the abbreviation of "super user", and youshould enter your password. After this, please follow the instructions on thescreen.

Installation

0. How to install a usual .tar.gz pack under Linux

         ·Extract thepack ("在此处展开")

         ·Open theterminal under the new folder ("在终端中打开")

         ·Type thesecommands:

su
./configure
make
make install

             
1.   Install g++
su
apt-get install g++

2. Install Nginx

         ·Copy thefolder of zlib-1.2.8 and pcre-8.36 to nginx-1.7.6

         ·Open theterminal

su
./configure -with-pcre=pcre-8.36 -with-zlib=zlib-1.2.8
make
make install

         ·Test: OpenFirefor/Chrome and turn to http://127.0.0.1, like this:

su
apt-get install g++

3. Install Node.js

         ·Test:

node
console.log("helloworld!");

4. Install GDB

         ·Installtermcap first

         ·Install GDB


         ·Test:

gdb -v

5. Install Ruby

         ·Test:

ruby -v

6. Install Lua

         ·Installreadline first

         ·Then installncurses

         ·Open thepath: lua-5.2.3/src , edit the file Makefile:

                   line105, 106:

linux:
	$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"

         ·Open theTerminal:

make linux

         ·Back to thefolder lua-5.2.3 , type:

sudo make install

         ·Test:

lua -v

7. Install JDK

         ·Extract (andrename) to /usr/local/jdk

         ·Open theTerminal and type the commands:

sudo gedit ~/.bashrc

        ·(In thegedit) Add these text after the file:

export JAVA_HOME=/usr/local/jdk
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

         ·Open theTerminal:

source ~/.bashrc

         ·Test:

java -version

8. Install Mongodb

         ·It's adatebase

         ·Extract mongodb-linux-x86_64-2.6.4.tgz , and changethe new folder's name intomongodb

         ·Here openthe Terminal:

su
mv mongodb /usr/local/mongodb2
cd /usr/local/mongodb2/bin
mkdir -p /data/db/journal
chmod -R 777 /data/db/

         ·To start the Mongodb:

./mongod --quiet -journal -maxConns=1000 -rest --logpath /data/db/journal/mongodb.log

9. POPUSH!

         ·Move thefolder to /popush, open it

         ·In theTerminal:

sudo make deploy

         ·Change thefiles:

Run

1. Start the Mongodb

2. Start the Popush

3. Open the website of Popush

         ·Type localhost in your browser

         ·Test:

                   1.Register

                   2.Login

                   3.Add file "hello world.js"

                   4.Type console.log("Helloworld!"); and run

         ·Test otherprogramming languages like this

Problems

1. Cannot connect the server (无法连接至服务器)

         ·Restart allservices

2. Internal Error (内部错误)

         ·CheckMongodb

3. (In the Popush)Cannot create new file

         ·Replace thefolder mongojs and the file socket.io.js

4. (While running a code)Return error EACCES

         ·I couldn'tfind where the mistake is. After I restarted the Linux, the error fixed.

【SCI复现】含可再生能源与储能的区域微电网最优运行:应对不确定性的解鲁棒性与非预见性研究(Matlab代码实现)内容概要:本文围绕含可再生能源与储能的区域微电网最优运行展开研究,重点探讨应对不确定性的解鲁棒性与非预见性策略,通过Matlab代码实现SCI论文复现。研究涵盖多阶段鲁棒调度模型、机会约束规划、需求响应机制及储能系统优化配置,结合风电、光伏等可再生能源出力的不确定性建模,提出兼顾系统经济性与鲁棒性的优化运行方案。文中详细展示了模型构建、算法设计(如C&CG算法、大M法)及仿真验证全过程,适用于微电网能量管理、电力系统优化调度等领域的科研与工程实践。; 适合人群:具备一定电力系统、优化理论和Matlab编程基础的研究生、科研人员及从事微电网、能源管理相关工作的工程技术人员。; 使用场景及目标:①复现SCI级微电网鲁棒优化研究成果,掌握应对风光负荷不确定性的建模与求解方法;②深入理解两阶段鲁棒优化、分布鲁棒优化、机会约束规划等先进优化方法在能源系统中的实际应用;③为撰写高水平学术论文或开展相关课题研究提供代码参考和技术支持。; 阅读建议:建议读者结合文档提供的Matlab代码逐模块学习,重点关注不确定性建模、鲁棒优化模型构建与求解流程,并尝试在不同场景下调试与扩展代码,以深化对微电网优化运行机制的理解。
个人防护装备实例分割数据集 一、基础信息 数据集名称:个人防护装备实例分割数据集 图片数量: 训练集:4,524张图片 分类类别: - Gloves(手套):工作人员佩戴的手部防护装备。 - Helmet(安全帽):头部防护装备。 - No-Gloves(未戴手套):未佩戴手部防护的状态。 - No-Helmet(未戴安全帽):未佩戴头部防护的状态。 - No-Shoes(未穿安全鞋):未佩戴足部防护的状态。 - No-Vest(未穿安全背心):未佩戴身体防护的状态。 - Shoes(安全鞋):足部防护装备。 - Vest(安全背心):身体防护装备。 标注格式:YOLO格式,包含实例分割的多边形坐标和类别标签,适用于实例分割任务。 数据格式:来源于实际场景图像,适用于计算机视觉模型训练。 二、适用场景 工作场所安全监控系统开发:数据集支持实例分割任务,帮助构建能够自动识别工作人员个人防护装备穿戴状态的AI模型,提升工作环境安全性。 建筑与工业安全检查:集成至监控系统,实时检测PPE穿戴情况,预防安全事故,确保合规性。 学术研究与创新:支持计算机视觉在职业安全领域的应用研究,促进AI与安全工程的结合。 培训与教育:可用于安全培训课程,演示PPE识别技术,增强员工安全意识。 三、数据集优势 精准标注与多样性:每个实例均用多边形精确标注,确保分割边界准确;覆盖多种PPE物品及未穿戴状态,增加模型鲁棒性。 场景丰富:数据来源于多样环境,提升模型在不同场景下的泛化能力。 任务适配性强:标注兼容主流深度学习框架(如YOLO),可直接用于实例分割模型开发,支持目标检测和分割任务。 实用价值高:专注于工作场所安全,为自动化的PPE检测提供可靠数据支撑,有助于减少工伤事故。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值