'우분투'에 해당되는 글 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 해주는 방식으로 고쳐주는 것이 좋을 수도 있을 듯 하다. 다만 혼자 쓰고 배포 안할 거면 괜찮을 거 같은데..흠
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 : 공유할 디렉토리
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
각자의 내용에 맞게 수정한다.
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를 수정해서 백업대상 폴더의 권한을 획득할 수 있도록 해준다.
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
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 하면 성공



이올린에 북마크하기
이올린에 추천하기