unix_ch 发表于 2014-5-19 16:18:45

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

本帖最后由 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 777XX.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、暂时没有想到,欢迎拍砖!

leyiwo 发表于 2014-5-21 12:40:09

不错啊,把一些常用的环境做成脚本,,必要的时候运行下就好了。。

unix_ch 发表于 2014-5-22 08:35:43

leyiwo 发表于 2014-5-21 12:40 static/image/common/back.gif
不错啊,把一些常用的环境做成脚本,,必要的时候运行下就好了。。

是这样的,解决一步步安装的烦恼。

unix_ch 发表于 2014-5-28 14:56:32

调整了下载权限,大家尽情下载附件安装吧,欢迎优化shell代码

sunbeyond 发表于 2014-6-4 09:26:38

unix_ch 发表于 2014-5-28 14:56 static/image/common/back.gif
调整了下载权限,大家尽情下载附件安装吧,欢迎优化shell代码

这个要顶啊。

unix_ch 发表于 2014-6-4 13:18:39

sunbeyond 发表于 2014-6-4 09:26 static/image/common/back.gif
这个要顶啊。

谢谢!系统安装好,环境的搭建的方便性也是很有必要的!

Vinsone 发表于 2014-6-5 17:20:40

真心顶,现在这么好心人很少了!

jerryli 发表于 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
Get:2 http://debian.ustc.edu.cn proposed-updates/contrib armhf Packages/DiffIndex
Get:3 http://debian.ustc.edu.cn proposed-updates/non-free armhf Packages/DiffIndex
Get:4 http://debian.ustc.edu.cn proposed-updates/contrib Translation-en/DiffIndex
Get:5 http://debian.ustc.edu.cn proposed-updates/main Translation-en/DiffIndex
Get:6 http://debian.ustc.edu.cn proposed-updates/non-free Translation-en/DiffIndex
Ign http://debian.cn99.com etch/updates Release
Get:7 http://debian.ustc.edu.cn stable/updates/main armhf Packages
Get:8 http://debian.ustc.edu.cn stable/updates/main Translation-en
Err http://debian.ustc.edu.cn proposed-updates/contrib armhf Packages

Get:9 http://debian.ustc.edu.cn proposed-updates/contrib armhf Packages
Err http://debian.cn99.com etch/updates/main Sources
404Not Found
Err http://debian.cn99.com etch/updates/contrib Sources
404Not Found
Err http://debian.cn99.com etch/updates/main armhf Packages
404Not Found
Err http://debian.cn99.com etch/updates/contrib armhf Packages
404Not Found
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
404Not Found
Err http://security.debian.org sarge/updates/contrib armhf Packages
404Not Found
Err http://security.debian.org sarge/updates/non-free armhf Packages
404Not 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-security/dists/etch/updates/main/source/Sources404Not Found

W: Failed to fetch http://debian.cn99.com/debian-security/dists/etch/updates/contrib/source/Sources404Not Found

W: Failed to fetch http://debian.cn99.com/debian-security/dists/etch/updates/main/binary-armhf/Packages404Not Found

W: Failed to fetch http://debian.cn99.com/debian-security/dists/etch/updates/contrib/binary-armhf/Packages404Not Found

W: Failed to fetch http://security.debian.org/dists/sarge/updates/main/binary-armhf/Packages404Not Found

W: Failed to fetch http://security.debian.org/dists/sarge/updates/contrib/binary-armhf/Packages404Not Found

W: Failed to fetch http://security.debian.org/dists/sarge/updates/non-free/binary-armhf/Packages404Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
页: [1]
查看完整版本: samba+vsftp+Apache2+PHP+Mysql + phpMyAdmin+Sendmail+clamav+mplayer让你一...