RaspberryPI2에 RASPBIAN JESSIE로 웹min,virtualmin 환경 구축(로컬 WEB 개발 환경)(예정)

5387 단어 RaspberryPi
절차를 구축하고 있기 때문에 일부 순서가 잘못된 부분이 있을 수 있다.
RASPBIAN JESSIE는 처음부터 X WINDOW를 시작합니다.
디스크 파티션의 영역을 자동으로 확장할 수 있습니까?
참조:
http://qiita.com/rasp_karu/items/188fcf1116c9de4279bb

1. 설치


1-1.다운로드


1-2.초기 설정


ssh로 로그인
user:pi
pass:raspberry
루트 암호 설정
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
공간을 넓히다
sudo raspi-config




1-3 필요한 패키지 설치 (bash)


조작이 번거로울 때 bash로 흘러나와요.
하는 일은 설치(수동)와 같이 필요한 포장이다.
브러시 실행
설치(수동)에 필요한 패키지를 참조하십시오.
#!/bin/bash

echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list
echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" >> /etc/apt/sources.list

wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc


apt-get update

echo "mysql-server-5.5 mysql-server/root_password password PASSWORD" | debconf-set-selections
echo "mysql-server-5.5 mysql-server/root_password_again password PASSWORD" | debconf-set-selections

apt-get install libapt-pkg-perl libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions apache2 apache2-suexec-custom libnet-ssleay-perl libauthen-pam-perl libio-pty-perl samba bind9 webalizer locate mysql-server postfix subversion quota php-pear php5 php5-cgi

sed -i 's/\/var\/www/\/home/g' /etc/apache2/suexec/www-data

a2enmod suexec
a2enmod actions
service apache2 restart

echo "sender_dependent_default_transport_maps = hash:/etc/postfix/dependent" >> /etc/postfix/main.cf
touch /etc/postfix/dependent
postmap hash:/etc/postfix/dependent

1-3 필요한 패키지 설치(수동)


/etc/apt/sources.list에 다음 두 줄을 추가합니다.
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
키 다운로드
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
패키지 정보 업데이트
apt-get update
dpkg --configure -a
필요한 패키지 설치
apt-get install libapt-pkg-perl libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions apache2 apache2-suexec-custom libnet-ssleay-perl libauthen-pam-perl libio-pty-perl samba bind9 webalizer locate mysql-server postfix subversion quota php-pear php5 php5-cgi


다음 파일의/var/www를/home으로 바꾸기
/etc/apache2/suexec/www-data
다음 명령 실행
a2enmod suexec
a2enmod actions
service apache2 restart
/etc/postfix/main.cf 파일에 추가
sender_dependent_default_transport_maps = hash:/etc/postfix/dependent
다음 명령 실행
touch/etc/postfix/dependent
postmap hash:/etc/postfix/dependent

1.4 웹min 설치


apt-get install webmin
10분 정도 걸린 것 같아요.
참조: http://projpi.com/diy-home-projects-with-a-raspberry-pi/raspberry-pi-2-webmin-sever/

1-3-2.웹min 실행 확인


https://ip:10000/를 방문하여 표시 여부를 확인합니다.
표시된 후 루트를 넣을지 확인합니다.

1-5 가상 설치


install.sh로 설치할 수 있는지 확인 중
wget http://software.virtualmin.com/gpl/scripts/install.sh
chmod +x install.sh
sh ./install.sh
wget http://download.webmin.com/download/virtualmin/webmin-virtual-server_5.0.gpl_all.deb
sudo dpkg --install webmin-virtual-server_5.0.gpl_all.deb

좋은 웹페이지 즐겨찾기