데비안 한글설정데비안 한글설정

Posted at 2012.10.15 09:10 | Posted in Debain 설치.셋팅

 

 

한글 디렉토리가 아래처럼 깨질때가 있습니다. 디렉토리 이동도 불가능하죠. 문제를 해결을 해보도록 하겠습니다. 

 

 

apt-get install language-env 또는 apt-get install locales 설치해줍니다.

 

dpkg-reconfigure locales 실행해주면 locale 을 선택할수 있는 화면이 나옵니다.

 

 

 

엔터를 쭈욱 치다보면 마지막에 선택하라고 나옵니다.

en_US.UTF-8 UTF-8 , ko_KR.UTF-8 UTF-8 의 번호를 기억해둡니다.

 

locale 번호를 아래처럼 138 276 입력을 하고 엔터~

 

그리고 1. none (없음) 을 선택해 줍니다.

 

 

자 이제 한글설정이 완료되었습니다.

 

putty (utf-8 설정후) 로 접속해 보면 한글이 깨지지 않고 정상적으로 출력되는것을 확인할수 있습니다.

 

 

 

'Debain 설치.셋팅' 카테고리의 다른 글

데비안 한글설정  (0) 2012.10.15
Debain nginx+php+mysql  (2) 2012.09.28
Debian 설치하기  (3) 2012.09.24
Debian 기본설정  (0) 2012.09.24

Name __

Password __

Link (Your Website)

Comment

SECRET | 비밀글로 남기기

Apple Time Machine and NetatalkApple Time Machine and Netatalk

Posted at 2012.10.10 14:44 | Posted in Pogoplug 활용하기

Apple Time Machine and Netatalk

There are many guides on the Internet that deal with getting Apple’s Time Machine to back up to a network disk, however all of those that I managed to find rely on setting a hidden system preference to show unsupported disks – and hence don’t help with the problem of restoring from backup should the worst happen.

There is a way, though, to get Time Machine backing up to a Linux server without jumping through any hoops on the client. The backup volume just appears in the Time Machine preference pane, and the Mac OS X Install DVD’s restore mode also can see and restore from the network volume.

What you will need

I am basing these instructions on Debian Squeeze and Mac OS X Snow Leopard as that is what I’m running, however it looks like Netatalk 2.1 onwards has the necessary patches to support Time Machine (these implement the afp_syncdir and afp_syncfork commands in AFP 3.2).

You have to use AFP for Time Machine to be “supported”. It works with Samba but only in its unsupported configuration, and I ran into many issues when I used Samba – especially with backups becoming corrupted. I can only really recommend the use of Netatalk 2.1 or above for Time Machine.

You will also require avahi-daemon to be installed and running, as mDNS / Bonjour is required for the volumes to show up in the Time Machine preference pane.

Installing packages

Pull in the required packages:

aptitude install netatalk avahi-daemon

I prefer aptitude due to its dependency handling, but you can easily use apt-get or synaptic or whatever you wish.

Setting up Netatalk

Change your /etc/netatalk/AppleVolumes.default file to export the Time Machine volume. At the end of the file you’ll find a line that reads:

~/                     "Home Directory"

 

Change this to look a bit like this:

 

/srv/timemachine       "Time Machine"         options:tm

 

It’s very important to add the options:tm at the end of the line so that Netatalk enables various special options for Time Machine. I also recommend dedicating a filesystem entirely to Time Machine (e.g. /srv/timemachine should be its own mountpoint). Additionally, Apple recommends not to use the volume for anything but Time Machine due to the way locks are used (see TMNIS, below).

Finally, restart Netatalk:

/etc/init.d/netatalk restart

Configuring Avahi

By default Avahi advertises your server’s name as its hostname, which by convention on Linux is all lowercase. If you wish to alter the name of the server as advertised, you can edit /etc/avahi/avahi-daemon.conf and change the host-name= line in the [server] section to whatever you desire. This name will show up in the Finder’s list of Bonjour shared servers in the sidebar. Don’t forget to restart Avahi if you do this.

Next we need to set up an Avahi service file to advertise our Time Machine disk. Create /etc/avahi/services/afpd.service and paste in:

 

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>

<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>

<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>

<service>
<type>_adisk._tcp</type>
<port>9</port>
<txt-record>sys=waMA=«MAC Address»,adVF=0x100</txt-record>
<txt-record>dk0=adVF=0x83,adVN=Time Machine</txt-record>
</service>

</service-group>

 

Note: You must replace «MAC Address» above with your server’s MAC address. You can find this out using ifconfig eth0 or ip link list dev eth0. You should also replace whatever volume name you used in AppleVolumes.default for the adVN= field if you didn’t use “Time Machine”.

The service definition advertises 3 capabilities: AFP over TCP, which is required for Time Machine and which Netatalk provides, a Device Info virtual service which in this case tells Mac OS X that the device is in fact an Xserve (optional, but gives your server a pretty icon in the Finder) and the all-important AirDisk service with Time Machine flags.

The adVF=0x83 field are the AirDisk flags which tell Mac OS X that Time Machine is supported on this volume. If you wish to expose additional volumes, duplicate the dk0= line but call it dk1=, dk2=, etc…

Avahi automatically reloads the contents of the services file each time it changes, so you should not need to restart Avahi for this to take effect.

Setting up Time Machine

The above should be enough for the volume to appear in the Time Machine control panel. However, as my Time Machine backups have evolved over time I don’t know if this is enough to create a new backup from scratch. If this doesn’t work for you please let me know so I can update the instructions as necessary!

출처 : http://www.bootc.net/archives/2010/11/07/apple-time-machine-and-netatalk/

'Pogoplug 활용하기' 카테고리의 다른 글

Apple Time Machine and Netatalk  (0) 2012.10.10
아이폰,아이패드와 transmission 연동하기  (0) 2012.09.19
안드로이드 transmission 연동  (0) 2012.09.19
Wake On Lan (WOL)  (0) 2012.09.17
XBMC  (0) 2012.09.17
optware 설치  (0) 2012.09.17

Name __

Password __

Link (Your Website)

Comment

SECRET | 비밀글로 남기기

Debain nginx+php+mysqlDebain nginx+php+mysql

Posted at 2012.09.28 05:49 | Posted in Debain 설치.셋팅

 

 

먼저 nginx 을 설치합니다.

 

apt-get install nginx

 

설치완료 후

 

apt-get install php5-cli php5-suhosin php5-fpm php5-cgi php5-mysql

 

패키지 설치가 모두 끝났다면 웹설정을 시작합니다.

 

cd /etc/nginx/sites-enabled

 

rm default

 

vi mydomain.conf

 

location ~ \.php$ {
      fastcgi_pass 127.0.0.1:9090;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
      include fastcgi_params;
}

 

 

conf 설정이 끝나면 데몬들 재시작해줍니다.

 

/etc/init.d/php5-fpm start

/etc/init.d/nginx restart

 

자세한 내용은 아래 링크 참조

 

http://fak3r.com/2011/09/27/howto-install-php5-fpm-on-debian-squeeze/

 

http://www.clearfinity.com/blog/linux/bootstrap-nginxphp-fpm/

 

'Debain 설치.셋팅' 카테고리의 다른 글

데비안 한글설정  (0) 2012.10.15
Debain nginx+php+mysql  (2) 2012.09.28
Debian 설치하기  (3) 2012.09.24
Debian 기본설정  (0) 2012.09.24
  1. 에러가 뜹니다. 데비안 스퀴즈입니다.
    포고플러그를 mpd 전용 이미지로 설치한 뒤에
    소스리스트를 조금 열서서 패키지 설치하고 있는데..
    강좌 따라했더니 이렇게 뜹니다.

    root@pogoplug:~# apt-get install php5-cli php5-suhosin php5-fpm php5-cgi php5-mysql
    패키지 목록을 읽는 중입니다... 완료
    의존성 트리를 만드는 중입니다
    상태 정보를 읽는 중입니다... 완료
    php5-fpm 패키지는 이미 최신 버전입니다.
    php5-cli 패키지는 이미 최신 버전입니다.
    몇몇 패키지를 설치할 수 없습니다. 요청한 상황이 불가능할 수도 있고,
    불안정 배포판을 사용해서 일부 필요한 패키지를 아직 만들지 않았거나,
    아직 Incoming에서 나오지 않은 경우일 수도 있습니다.
    이 상황을 해결하는데 다음 정보가 도움이 될 수도 있습니다:

    다음 패키지의 의존성이 맞지 않습니다:
    php5-cgi : 의존: php5-common (= 5.3.3-7+squeeze14) 하지만 %s 패키지를 설치하지 않을 것입니다
    php5-cli : 의존: php5-common (= 5.4.4-13) 하지만 %s 패키지를 설치하지 않을 것입니다
    php5-fpm : 의존: php5-common (= 5.4.4-13) 하지만 %s 패키지를 설치하지 않을 것입니다
    php5-mysql : 의존: php5-common (= 5.3.3-7+squeeze14) 하지만 %s 패키지를 설치하지 않을 것입니다
    E: 문제를 바로잡을 수 없습니다. 망가진 고정 패키지가 있습니다.
    root@pogoplug:~#


    무엇을 고쳐야 할까요??
  2. 이렇게 뜨는데 어떻게 해야 할까요??

    제 소스리스트는

    # Default Repositories
    deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
    deb-src http://packages.dotdeb.org squeeze all
    deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
    deb http://security.debian.org/ squeeze/updates main contrib non-free

    # Webmin Repository
    deb http://download.webmin.com/download/repository sarge contrib
    deb http://ftp.us.debian.org/debian wheezy main

    --------------

    이고 업데이트 한번 해 봤습니다.

    이상태에서 php5-common 을 dpkg 하고 다시 처음줄 다시 실행했더니..

    apt-get install php5-cli php5-suhosin php5-fpm php5-cgi php5-mysql
    패키지 목록을 읽는 중입니다... 완료
    의존성 트리를 만드는 중입니다
    상태 정보를 읽는 중입니다... 완료
    E: php5-fpm 패키지를 찾을 수 없습니다

    이렇게 나옵니다. 휴.. 왜 이럴까요?

Name __

Password __

Link (Your Website)

Comment

SECRET | 비밀글로 남기기