BLOG main image
분류 전체보기 (369)
IT (54)
끄적거린수필 (126)
경제의이해 (13)
Wow! (43)
리뷰 (45)
사진과 그 순간 기억 (60)
인상깊은 구절 (21)
자료실 (4)
English (3)
208,455 Visitors up to today!
Today 47 hit, Yesterday 95 hit
daisy rss
tistory 티스토리 가입하기!
'우분투'에 해당되는 글 3건
2008/07/24 19:34

접속하면

Linux green 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Thu Jul 24 19:32:47 2008 from


 이런 메세지가 뜨는데 영 보기 싫었다. 그래서 찾아보니  /etc/motd /etc/motd.tail 라는 파일을 변경하니 바꿔지네. 그래서 다음과 같이 바꾸었다.


================================================================
This computer system is for authorized users only. All activity
is logged and regulary checked by systems personal. Individuals
using this system without authority or in excess of their
authority are subject to having all their services revoked. Any
illegal services run by user or attempts to take down this server
or its services will be reported to local law enforcement, and
said user will be punished to the full extent of the law. Anyone
using this system consents to these terms
=================================================================

 하지만 이는 저작권 위반이 될 수 있으니 /etc/banner를 고치고 /etc/ssh/sshd_config 에서 banner 부분을 enable 해주는 방식으로 고쳐주는 것이 좋을 수도 있을 듯 하다. 다만 혼자 쓰고 배포 안할 거면 괜찮을 거 같은데..흠
이올린에 북마크하기(0) 이올린에 추천하기(0)
Trackback Address :: http://www.coveredjin.com/trackback/364 관련글 쓰기
BlogIcon 지나가다 | 2008/07/26 13:42 | PERMALINK | EDIT/DEL | REPLY
어 /etc/motd 는 심볼릭 파일이고 재부팅하면 다시 복원이 되죠
/etc/init.d/bootmisc.sh 파일 을 보시면
# Update motd
uname -n > /var/run/motd
[ -f /etc/motd.tail ] && cat /etc/motd.tail >> /var/run/motd

부분의 주석처리 또는 다른 파일 참고로 완벽하게 바꿀수 있답니다.

그러나 데비안계열은 그거 고치는것이 저작 위반입니다. ㅠ,.ㅠ
BlogIcon selnip | 2008/07/26 15:36 | PERMALINK | EDIT/DEL
확인해보니 맞네요. /etc/motd.tail을 바꾸면 될 듯 한데.. 저작권 위반이라니 흑흑 근데 배포하지 않고 혼자 쓰면 괜찮을 거 같은데
Name
Password
Homepage
Secret
2008/07/24 15:52

1. apt-get install rsync 명령을 통해 rsync를 설치해준다.

2. apt-get install xinetd 명령을 통해 xinetd를 설치해준다.

3. /etc/xinetd/rsync 파일을 다음과 같이 추가한다.

# default: off
# description: The rsync server is a good addition to an ftp server, as it \
#   allows crc checksumming etc.
service rsync
{
    disable
= no
    socket_type    
= stream
    wait            
= no
    user            
= root
    server          
= /usr/bin/rsync
    server_args    
= --daemon
    log_on_failure  
+= USERID
}

4. /etc/init.d/xinetd restart를 통해 재시작해준다.

5. /etc/rsyncd.conf 파일을 다음과 같이 추가한다.

[Destination]
path
= /home/destination
comment
= server
uid
= nobody
gid
= nobody
use chroot = yes
read only
= yes
host allow
= 192.168.0.3
max connection
= 1
timeout
300

각자의 내용에 맞게 수정한다.

path : 공유할 디렉토리
comment : 설명
uid : 접근할 user id
gid : 접근할 group id
use chroot : chroot를 사용할지 여부, 특별한 이유가 없는 이상 꼭 사용할 것
read only : 읽기만 가능할 것인지, 백업의 피 대상이므로 yes로 설정
host allow : 접근 가능한 호스트 설정. 백업서버만 접근 가능하도록 설정
max connection : 최대 몇개의 커넥션을 연결할 수 있는지 설정
timeout : 타임아웃 시간 설정


6. 다음 명령을 통해 끌어온다.

rsync -avz 서버IP::Destination 백업받을위치

퍼미션 에러가 난다면 적절히 uid와 gid를 수정해서 백업대상 폴더의 권한을 획득할 수 있도록 해준다.

Trackback Address :: http://www.coveredjin.com/trackback/362 관련글 쓰기
Name
Password
Homepage
Secret
2008/07/18 16:13

GUI에서는 아주 손쉽게 툴을 이용해서 설치할 수가 있는데 콘솔모드에서 네트워크를 설정하려고 하니 설정 파일이 어디있는지 찾기 힘들었다. 그렇다고 해서 ifconfig로 할려고 하니깐 다음 부팅할 때가 문제고 해서 찾아보니

/etc/network/interface라는 파일을 통해서 설정을 하였다.

auto lo
iface lo inet loopback

auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
        address x.x.x.x
        netmask 255.255.255.0
        network x.x.x.0
        broadcast x.x.x.x
        gateway x.x.x.x


이런식으로 하고 나서 /etc/init.d/networking restart 하면 성공
이올린에 북마크하기(0) 이올린에 추천하기(0)
Trackback Address :: http://www.coveredjin.com/trackback/351 관련글 쓰기
Name
Password
Homepage
Secret
prev"" #1 next