2012/07/11

포고(pogoplug)에 아치리눅스(archlinux) 설치하기~

흐음.. 최근에 포고 플러그가 생겨서 한동안 셋팅으로 삽질을 했다~ㅋ

원했던 기능은 http+php+mysql+그누보드+samba+ftp+ssh+wol+dav 정도?ㅋ

아~ transmission도~ㅋ 근데 samba랑 ssh, wol, transmissioin은 쉽게 되었는데~

webdav랑 http+php가 안되었다 ㅠㅠ 아~ ftp도 ㅠㅠ

http를 nginx로 쓰고 php-fpm으로 연동하려고 했더니 자꾸 nginx에서 행이 거리는 거였다~ㅠㅠ

optware에서는 한방에 성공하는 분들이 많은데 ㅠㅠ archlinux-arm 에서는 성공한 분들이 좀 적은듯 해 보였다 ㅠㅠ

결국 한 3주 붙들다가 그것도 설정만 가지고 ㅋ 결국 실패 ㅋ

컴파일 하기에는 내 열정이 부족했다 ㅠㅠ

결국은 포기했지만 그동안 하면서 정리한것을 공유해보려고 한다~ㅋ

혹시나 해서 영어로 써봤는데~ㅋ 영어가 이상해요~ㅋ

아~ ddns로도 쓸수 있지요~ crontab으로 wget으로 갱신하는 코드를 넣으면~ㅋ

나중에 ddns를 안쓰더라도 getmyip에서 자기 ip위치를 변수에 넣고 바뀌면 이메일을 쏴주도록한다면 ddns가 아니더라도 바뀌는 자기 ip를 체크해주지 않을까 생각한다~ㅋ

도메인 만료되면 이 방법 써야지 ㅋㅋ


#!/bin/sh
#this script from
#http://clien.career.co.kr/cs2/bbs/board.php?bo_table=use&wr_id=358338
killall hbwd
sync
cd /tmp
wget http://archlinuxarm.org/os/pogoplug/mke2fs
chmod +x mke2fs
/tmp/mke2fs -j /dev/sda1
wget http://archlinuxarm.org/os/oxnas/oxnas-install.sh
#wget http://192.168.3.2/oxnas-install.sh
#open sh file and set sda or sda
chmod +x oxnas-install.sh
/tmp/oxnas-install.sh
#/sbin/reboot
#after reboot
#plz change password
#default passwd is 'root'
#cmd 'passwd'
#after change passwd, update package list
#-----don't do system update( cmd 'pacman -Syu' )
#update package list
#cmd 'pacman -Syy'
#if you change hostname to others(not 'armlm') edit /etc/rc.local
#insert 'hostname ##new hostname##'
#if you want to change hostname
#make /etc/hostname and input
#'nano /etc/hostname' and input hostname

#if you need search package use 'pacman -Ss <package name>'
#if you need install package use 'pacman -S <package name>'

#if install transmission use 'pacman -S transmission-cli'
#setting path is /root/.config/transmission-daemon/settings.json
#if daemon start, the setting file will create
#setting file have to modify at daemon stop(if not the daemon recovery setting file.)
#/etc/rc.d/transmissiond start
#/etc/rc.d/transmissiond stop
#vim /root/.config/transmission-daemon/settings.json
#edit '"rpc-authentication-required": false,' to '"rpc-authentication-required": true,'
#edit '"rpc-password": "{0c7eadfe834c51a6ab1f87743cc2d7f883c0ed4axaGiZSKz",' to '"rpc-password": "pass",'
#edit '"rpc-port": 9091,' to '"rpc-port": ##port##,'
#edit '"rpc-whitelist-enabled": true,' to '"rpc-whitelist-enabled": false,'
#add '"rpc-username": "user",'
#/etc/rc.d/transmissiond start
#add to rc.local '/etc/rc.d/transmissiond start'

#if install samba use 'pacman -S samba'
#move to /etc/samba
#cp smb.conf.default smb.conf
#vim smb.conf
#edit share setting(refrence at last)
#[down]
#   comment=torrent down
#   path=/down
#   public=no
#   writable=yes
#/usr/bin/smbpasswd -a ##user##
#the user have to exist in system.
#add to rc.local '/etc/rc.d/samba start'

#for sync time zone
#pacman -S ntp (if fail to install, update package list again)
#cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime
#ntpdate -s time.bora.net

#for using dnsever
#get 'wget' link from dnsever
#add crontab
#crontab -e
#*/30 * * * * /root/dnsever.sh
#*/30 * * * * /root/sh/ddns.sh

#download youtube avi
#pacman -S youtube-dl

#to find(search) installed package
#pacman -Qs ##package##


#pacman -S nginx
#pacman -S php-fpm
#change /etc/nginx/html link
#pacman -S mysql
#pacman -S phpmyadmin

0개의 덧글:

댓글 쓰기

에 가입 댓글 [Atom]

<< 홈