CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 9640|回复: 8

samba+vsftp+Apache2+PHP+Mysql + phpMyAdmin+Sendmail+clamav+mplayer让你一...

[复制链接]
发表于 2014-5-19 16:18:45 | 显示全部楼层 |阅读模式
本帖最后由 unix_ch 于 2014-5-29 12:06 编辑

目的:通过shell脚本一次性安装完samba+vsftp+Apache2+PHP+Mysql + phpMyAdmin+Sendmail+clamav+mplayer
一、系统和硬件: debian或者lubuntu +ct2
二、主要安装的是:samba+vsftp+Apache2+PHP+Mysql + phpMyAdmin+Sendmail+clamav+mplayer
三、安装前需要注意的是:
1、ct可以上网,有一定shell经验,要不然爱莫能助。
2、更改ct的用户名 在hostname和resolv.conf,要不然sendmail无法用。
3、更改ct 的时间:

(1).Set time zone

  $sudo tzselect

Select the Asia , press Enter and chose China ,at last selet Beijing.

(2) Cope file to /etc directory

  $sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

(3) Update time

  $sudo ntpdate time.windows.com

(4)加上定时计划
*/15 * * * * ntpdate time.windows.com

四、安装shell代码,自己下载存为XX.sh,同时chmod 777  XX.sh

代码见附件!

五、安装之后的部分问题解决
1、重启apache2出现
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for 解决的方法是:
sudo vim /etc/apache2/sites-available/default
打开default文件后,在default文件顶端加入:
ServerName 127.0.0.1
2、phpmyadmin登陆就不用我说了吧
3、Samb我本人是挂载硬盘的,设置的在/share/下,还有就是自己增加用户 smbpasswd -a 用户。要是想自动挂载的话更改fstab,增加一条 /dev/sda1    /share/        ntfs    defaults    0    0   就OK了
4、肯定有人问为什么没有下载的,下载的我没有安装是因为我用迅雷的下载固件,具体参照http://forum.cubietech.com/forum.php?mod=viewthread&tid=272,这样就能实现远程下载的梦想了,NAS
5、暂时没有想到,欢迎拍砖!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

发表于 2014-5-21 12:40:09 | 显示全部楼层
不错啊,把一些常用的环境做成脚本,,必要的时候运行下就好了。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-5-22 08:35:43 | 显示全部楼层
leyiwo 发表于 2014-5-21 12:40
不错啊,把一些常用的环境做成脚本,,必要的时候运行下就好了。。

是这样的,解决一步步安装的烦恼。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-5-28 14:56:32 | 显示全部楼层
调整了下载权限,大家尽情下载附件安装吧,欢迎优化shell代码
回复 支持 反对

使用道具 举报

发表于 2014-6-4 09:26:38 | 显示全部楼层
unix_ch 发表于 2014-5-28 14:56
调整了下载权限,大家尽情下载附件安装吧,欢迎优化shell代码

这个要顶啊。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-6-4 13:18:39 | 显示全部楼层
sunbeyond 发表于 2014-6-4 09:26
这个要顶啊。

谢谢!系统安装好,环境的搭建的方便性也是很有必要的!
回复 支持 反对

使用道具 举报

发表于 2014-6-5 17:20:40 | 显示全部楼层
真心顶,现在这么好心人很少了!
回复 支持 反对

使用道具 举报

发表于 2015-12-11 18:08:03 | 显示全部楼层
咨询一个问题,在升级 apt-get update 包的时候,提示有很多文件找不到,该如何处理?
我用的源是这个
deb http://debian.ustc.edu.cn/debian proposed-updates main contrib non-free
deb http://debian.ustc.edu.cn/debian-security stable/updates main
deb http://security.debian.org/ sarge/updates main contrib non-free
deb http://debian.cn99.com/debian-security/ etch/updates main contrib
deb-src http://debian.cn99.com/debian-security/ etch/updates main contrib
提示信息如下:
root@cb4-test:/etc# apt-get update
Ign http://debian.cn99.com etch/updates InRelease
Ign http://debian.cn99.com etch/updates Release.gpg
Hit http://debian.ustc.edu.cn proposed-updates InRelease
Hit http://debian.ustc.edu.cn stable/updates InRelease
Get:1 http://debian.ustc.edu.cn proposed-updates/main armhf Packages/DiffIndex [4,645 B]
Get:2 http://debian.ustc.edu.cn proposed-updates/contrib armhf Packages/DiffIndex [505 B]
Get:3 http://debian.ustc.edu.cn proposed-updates/non-free armhf Packages/DiffIndex [367 B]
Get:4 http://debian.ustc.edu.cn proposed-updates/contrib Translation-en/DiffIndex [367 B]
Get:5 http://debian.ustc.edu.cn proposed-updates/main Translation-en/DiffIndex [3,679 B]
Get:6 http://debian.ustc.edu.cn proposed-updates/non-free Translation-en/DiffIndex [643 B]
Ign http://debian.cn99.com etch/updates Release
Get:7 http://debian.ustc.edu.cn stable/updates/main armhf Packages [160 kB]
Get:8 http://debian.ustc.edu.cn stable/updates/main Translation-en [87.5 kB]
Err http://debian.ustc.edu.cn proposed-updates/contrib armhf Packages

Get:9 http://debian.ustc.edu.cn proposed-updates/contrib armhf Packages [1,500 B]
Err http://debian.cn99.com etch/updates/main Sources
  404  Not Found [IP: 123.58.173.186 80]
Err http://debian.cn99.com etch/updates/contrib Sources
  404  Not Found [IP: 123.58.173.186 80]
Err http://debian.cn99.com etch/updates/main armhf Packages
  404  Not Found [IP: 123.58.173.186 80]
Err http://debian.cn99.com etch/updates/contrib armhf Packages
  404  Not Found [IP: 123.58.173.186 80]
Ign http://debian.cn99.com etch/updates/contrib Translation-en_US
Ign http://debian.cn99.com etch/updates/contrib Translation-en
Ign http://debian.cn99.com etch/updates/main Translation-en_US
Ign http://debian.cn99.com etch/updates/main Translation-en
Ign http://security.debian.org sarge/updates InRelease
Ign http://security.debian.org sarge/updates Release.gpg
Ign http://security.debian.org sarge/updates Release
Err http://security.debian.org sarge/updates/main armhf Packages
  404  Not Found
Err http://security.debian.org sarge/updates/contrib armhf Packages
  404  Not Found
Err http://security.debian.org sarge/updates/non-free armhf Packages
  404  Not Found
Ign http://security.debian.org sarge/updates/contrib Translation-en_US
Ign http://security.debian.org sarge/updates/contrib Translation-en
Ign http://security.debian.org sarge/updates/main Translation-en_US
Ign http://security.debian.org sarge/updates/main Translation-en
Ign http://security.debian.org sarge/updates/non-free Translation-en_US
Ign http://security.debian.org sarge/updates/non-free Translation-en
Fetched 10.2 kB in 11s (865 B/s)
W: Failed to fetch http://debian.cn99.com/debian-se ... main/source/Sources  404  Not Found [IP: 123.58.173.186 80]

W: Failed to fetch http://debian.cn99.com/debian-se ... trib/source/Sources  404  Not Found [IP: 123.58.173.186 80]

W: Failed to fetch http://debian.cn99.com/debian-se ... nary-armhf/Packages  404  Not Found [IP: 123.58.173.186 80]

W: Failed to fetch http://debian.cn99.com/debian-se ... nary-armhf/Packages  404  Not Found [IP: 123.58.173.186 80]

W: Failed to fetch http://security.debian.org/dists ... nary-armhf/Packages  404  Not Found

W: Failed to fetch http://security.debian.org/dists ... nary-armhf/Packages  404  Not Found

W: Failed to fetch http://security.debian.org/dists ... nary-armhf/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-4 22:11 , Processed in 0.026184 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部