라이온 서버는 아이폰이나 아이패드로 관리할 수 있다.
출처 : Mac Lion Server에서 WebDav 연결

I. 서버 설정
    1. Lion Server app를 앱스토어에서 다운받는다.
    2. 서버를  인스톨한다.
    3. 서버를 실행시킨다.
    4. Configure Network에서 네트워크 설정한다.
    5. File Sharing을 On으로 작동시킨다.
    6. Web을 On으로 작동시킨다.


II. Client 설정
 1. Iphone or ipad
    가. ezshare pro나 webdav nav+의 클라이언트를 다운받는다.
    나. 위 앱에서 설정한 부분은 크게 네가지 이다.
    (1) 이름           : 블라블라
    (2) 서버 URL : http://yourdomainname/webdav/
    (3) 아이디       :
    (4) 패스워드   :
2. keynote 앱에서 설정 : 위와 동일하다.

Posted by solarview

2012/01/16 22:17 2012/01/16 22:17
, , , , , , , ,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/374

Downgrade php / installing php5.2 next to php 5.3

다운그레이드를 위해서 아래의 내용을 스크립트로 만들었다.
출처 : http://ubuntuforums.org/archive/index.php/t-1459163.html
#!/bin/bash
# by Ruben Barkow (rubo77) http://www.entikey.z11.de/

# Originally Posted by Bachstelze http://ubuntuforums.org/showthread.php?p=9080474#post9080474
# OK, here's how to do the Apt magic to get PHP packages from the karmic repositories:

echo "Am I root? "
if [ "$(whoami &2>/dev/null)" != "root" ] && [ "$(id -un &2>/dev/null)" != "root" ] ; then
echo " NO!

Error: You must be root to run this script.
Enter
sudo su
"
exit 1
fi
echo " OK";


#install aptitude before, if you don`t have it:
apt-get install aptitude
# or if you prefer apt-get use:
# alias aptitude='apt-get'

# finish all apt-problems:
aptitude update
aptitude -f install
#apt-get -f install

# remove all your existing PHP packages. You can list them with dpkg -l| grep php
PHPLIST=$(for i in $(dpkg -l | grep php|awk '{ print $2 }' ); do echo $i; done)
echo these pachets will be removed: $PHPLIST
# you need not to purge, if you have upgraded from karmic:
aptitude remove $PHPLIST
# on a fresh install, you need purge:
# aptitude remove --purge $PHPLIST


#Create a file each in /etc/apt/preferences.d like this (call it for example /etc/apt/preferences.d/php5_2);
#
#Package: php5
#Pin: release a=karmic
#Pin-Priority: 991
#
#The big problem is that wildcards don't work, so you will need one such stanza for each PHP package you want to pull from karmic:

echo ''>/etc/apt/preferences.d/php5_2
for i in $PHPLIST ; do echo "Package: $i
Pin: release a=karmic
Pin-Priority: 991
">>/etc/apt/preferences.d/php5_2; done

# duplicate your existing sources.list replacing lucid with karmic and save it in sources.list.d:
#sed s/lucid/karmic/g /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/karmic.list

# better exactly only the needed sources, cause otherwise you can get a cachsize problem:
echo "# needed sources vor php5.2:
deb http://de.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic main restricted

deb http://de.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic-updates main restricted

deb http://de.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic universe
deb http://de.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic-updates universe

deb http://de.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://de.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ karmic-updates multiverse

deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
" >> /etc/apt/sources.list.d/karmic.list

aptitude update

apache2ctl restart

echo install new from karmic:
aptitude -t karmic install $PHPLIST

# at the end retry the modul libapache2-mod-php5 in case it didn't work the first time:
aptitude -t karmic install libapache2-mod-php5

apache2ctl restart
Thanks to "avrcan10"

Posted by solarview

2011/11/01 15:46 2011/11/01 15:46
, , ,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/358

PHP and Zend Optimizer

옛날 강의게시판이 technote(ver. 6.9로 되어 있다.
최근에 xe(1.4.5.10)로 모두 바꾸었다. 그러나, 옛 강의게시판을 그대로 유지하고 있었다.
문제는 운영체제(ubuntu)를 최신으로(9.04에서 11.10으로) 변경하면서 발생했다. 상황을 요약하면 다음과 같다.

사용자 삽입 이미지

- 테크노트는 zend optimizer가 있어야 작동한다.
- zend optimizer는 php 5.2 이하에서 작동한다.
- ubuntu 11.10에는 php 5.3.6이 설치되어 있다.
- 고로 ubuntu 11.10에서는 테크노트가 전혀 작동이 되지 않는다.
- php 버전을 내려야 문제가 해결된다.

위 사항을 알아내는 데에 많은 시간이 걸렸다.(ㅠ.ㅠ)
- php 다운그레이드를 위해 ubuntu 포럼 페이지를 참고했다.

Posted by solarview

2011/11/01 14:53 2011/11/01 14:53
, , , , ,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/357

Ubuntu 업그레이드

서버의 운영체제를 업그레이드했다.
- 기존의 운영체제 : Ubuntu 9.04 (일명 Jaunty)
- 보안문제가 대두됨 (전산원)
- 운영체제를 업그레이드하기로 함
[code]sudo aptitude install update-manager-core
sudo do-release-upgrade[/code]
- /boot 파티션의 공간이 부족하다는 오류 메시지가 뜸
- 현재 파티션 상황
[code]/dev/sda1   /boot
/dev/sda2    /
/dev/sda3    swap
/dev/sda4    Extended
/dev/sda5    /home[/code]
- /boot내용 옮기기
[code]sudo mkdir /boot-new
sudo rsync -axS --exclude='/*/.gvfs' /boot/. /boot-new/.[/code]
- 기존의 /boot파티션을 /파티션으로 옮기기로 함
- 부팅가능한 파티션을 /boot파티션에서 /로 변경함 (->여기서 bootable 여부를 설정함)
[code]sudo fdisk /dev/sda[/code]
- /etc/fstab의 내용을 변경함(-> /boot 부분을 주석처리함)
[code]sudo vi /etc/fstab [/code]
- 새로운 파티션으로 부팅함

- 9.04에서 9.10으로 업그레이드는 네트워크로 바로 안 되기 때문에 "Upgrades via alternate CD"방법을 사용함 (Jaunty to Karmic)
- 9.10은 이제 오래된 버전이어서 Ubuntu 9.10 (Karmic Koala) 페이지에서 이미지를 내려 받았음
[code]wget http://old-releases.ubuntu.com/releases/karmic/ubuntu-9.10-server-i386.iso[/code]
- 내려받은 이미지를 이용해서 업그레이드를 실시함( Server/Command line Upgrade)
[code]mkdir /mnt/alternate
sudo mount -o loop /home/archer/ubuntu-9.10-server-i386.iso /mnt/alternate
cd /mnt/alternate
sudo ./cdromupgrade --frontend=DistUpgradeViewText[/code]

- 9.10에서 10.XX로 업그레이드도 실시함(Network upgrades)
[code]sudo aptitude install update-manager-core
sudo do-release-upgrade[/code]

-위와 같은 네트워크 업그레이드가 안 되는 경우에는 Upgrade via alternate CD를 통해서 진행함.
- 최종적으로 현재 Ubuntu 11.10까지 업그레이드를 실시함.

Posted by solarview

2011/10/21 13:31 2011/10/21 13:31
, ,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/356