宝塔面板安装易用性补充
Tofloor
poster avatar
bt_hy
deepin
2017-09-09 18:58
Author
本帖最后由 bt_hy 于 2017-9-15 09:59 编辑

Hello,大家好,我是宝塔官方技术河妖
感谢Deepin将宝塔面板添加进应用商城,我们测试了安装,在使用过程中发现因之前我们的安装脚本并未针对桌面环境开发,对用户体验不太友好,现特针对Deepin系统进行体验优化。建议deepin将以下脚本添加进宝塔安装脚本的头部,以增强用户体验。
  1. #判断宝塔是否已安装
  2. if [ -f "/etc/init.d/bt" ] && [ -d "/www/server/panel" ]; then
  3.     #启动宝塔服务
  4.     /etc/init.d/bt start
  5.     #获取宝塔默认密码
  6.     password=`cat /www/server/panel/default.pl`
  7.     #获取宝塔面板当前端口
  8.     port=`cat /www/server/panel/data/port.pl`
  9.     echo -e "=================================================================="
  10.     echo -e "Bt-Panel: http://localhost:$port"
  11.     echo -e "默认账户: admin"
  12.     echo -e "默认密码: $password"
  13.     echo -e "=================================================================="
  14.     echo -e "正在尝试打开浏览器..."
  15.     #判断是否安装chrome
  16.     if [ -f "/opt/google/chrome/chrome" ]; then
  17.         /opt/google/chrome/chrome --no-sandbox http://localhost:$port
  18.         exit;
  19.     fi
  20.     #判断是否安装firefox
  21.     if [ -f "/usr/lib/firefox/firefox" ]; then
  22.         /usr/lib/firefox/firefox http://localhost:$port
  23.         exit;
  24.     fi
  25.     echo -e "找不到chrome/firefox浏览器,请自行打开浏览器访问宝塔面板: http://localhost:$port"
  26.     exit;
  27. fi
Copy the Code







Reply Favorite View the author
All Replies
1 / 2
To page
avatar
BG7ZAG
deepin
2017-09-09 19:15
#1
哟,宝塔官方的来啦,https://bbs.deepin.org/user/48640
Reply View the author
avatar
aName
deepin
2017-09-09 19:19
#2
想起来v2的 全球工单系统
Reply View the author
avatar
jingle
deepin
2017-09-09 19:48
#3
谢谢对我们的支持,这个建议我们会处理的,我测试安装过,没有遇到卸载桌面环境的问题,谢谢对我们的桌面专门优化。
Reply View the author
avatar
comzhong
deepin
2017-09-09 20:25
#4
支持一个
Reply View the author
avatar
imq
deepin
2017-09-09 22:24
#5
支持我家宝塔!
Reply View the author
avatar
deepin
2017-09-10 00:40
#6
牛逼了,之前还想装一下,但是怕一装之后桌面就挂了
Reply View the author
avatar
deepin
2017-09-10 00:45
#7
https://bbs.deepin.org/user/92331 请问能不能添加phalcon框架的扩展?
Reply View the author
avatar
何来
deepin
2017-09-12 01:21
#8
刚想试试镇河妖
Reply View the author
avatar
jingle
deepin
2017-09-12 23:20
#9
https://bbs.deepin.org/user/92331  你们的依赖ntp  这个会导致deepin下自动同步失效。

  1. jingle@jingle:~$ apt-cache show baota-installer
  2. Package: baota-installer
  3. Version: 5.1
  4. Architecture: amd64
  5. Maintainer: Deepin Packages Builder
  6. Installed-Size: 35
  7. Depends: ruby, ntp, ntpdate, wget, curl, python, python-dev, python-imaging, zip, unzip, openssl, libssl-dev, gcc, libxml2, libxml2-dev, libxslt1-dev, zlib1g, zlib1g-dev, libjpeg-dev, libpng-dev, lsof, libpcre3, libpcre3-dev, cron, python-pip
  8. Homepage: http://www.bt.cn/
  9. Priority: optional
  10. Section: utils
  11. Filename: pool/main/b/baota-installer/baota-installer_5.1_amd64.deb
  12. Size: 8042
  13. SHA256: 4485dcc46274061ab6f2e40e05e6e1aad6765bc633449abcdbe73f5befb9d79d
  14. SHA1: 49efd14bfdb18528eb2d53b42ab2188f11378913
  15. MD5sum: 52533d97d96b23d821e4f683f91d790a
  16. Description: baota linux system utils
  17. Description-md5: 7f5b5ba04dea15e9ea41827a864a2bde

Copy the Code


Reply View the author
avatar
要讲武德
deepin
2017-09-13 01:37
#10
宝...宝塔镇河妖?
Reply View the author
avatar
bt_hy
deepin
2017-09-14 02:49
#11
https://bbs.deepin.org/post/145279
@bt_hy  你们的依赖ntp  这个会导致deepin下自动同步失效。

ntp可以不安装的 安装它的目的只是为了同步时间 防止因为时间不对安装不上nginx
另外 apt-get update也可以不用执行
Reply View the author
avatar
sinux
deepin
2017-09-14 17:49
#12
你们的脚本不卸载桌面,但是绝对不安全,很可能破坏原有的软件环境。而且,一上来就把/bin/sh软链到了bash!
然而深度的sh原本是什么
  1. ls -l /bin|grep sh
  2. -rwxr-xr-x 1 root root 1099016 1月  24  2017 bash
  3. -rwxr-xr-x 1 root root  117208 1月  24  2017 dash
  4. lrwxrwxrwx 1 root root       4 1月  24  2017 rbash -> bash
  5. lrwxrwxrwx 1 root root       4 1月  24  2017 sh -> dash
  6. lrwxrwxrwx 1 root root       4 6月  30 14:32 sh.distrib -> dash
Copy the Code


尤其是软件装了一大堆的小白用户根本不会修改脚本,也意识不到里面的风险。
Reply View the author
avatar
152******80
Advanced Packager
2017-09-14 18:09
#13
然而,我装不起,一直提示失败,请重试。https://bbs.deepin.org/user/48640
Reply View the author
avatar
jingle
deepin
2017-09-14 18:14
#14
https://bbs.deepin.org/post/145279
然而,我装不起,一直提示失败,请重试。@jingle

sudo apt-get install baota-installer
提示什么
Reply View the author
avatar
152******80
Advanced Packager
2017-09-14 20:40
#15
https://bbs.deepin.org/post/145279
sudo apt-get install baota-installer
提示什么

下列软件包有未满足的依赖关系:
baota-installer : 依赖: libssl-dev 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
Reply View the author
avatar
jingle
deepin
2017-09-14 20:57
#16
https://bbs.deepin.org/post/145279
下列软件包有未满足的依赖关系:
baota-installer : 依赖: libssl-dev 但是它将不会被安装
E: 无法修正 ...

https://bbs.deepin.org/post/145483
Reply View the author
avatar
152******80
Advanced Packager
2017-09-14 22:14
#17
https://bbs.deepin.org/post/145279
https://bbs.deepin.org/post/145483#

是这个问题,我把为知笔记删了,试用了宝塔,我想把它删了怎么搞,现在是删了baota-installer然后依然127.0.0.1:8888打得开。
Reply View the author
avatar
sinux
deepin
2017-09-14 22:24
#18
https://bbs.deepin.org/post/145279
是这个问题,我把为知笔记删了,试用了宝塔,我想把它删了怎么搞,现在是删了baota-installer然后依然127. ...

没用的,你删除的只是installer,去他们官网找文档吧
Reply View the author
avatar
pikachuhy
deepin
2017-09-14 22:53
#19
装完了 不知道干嘛
Reply View the author
avatar
134******40
deepin
2017-09-14 23:08
#20
就冲这认真的态度,我也要试试了。
Reply View the author
1 / 2
To page