public:computer:setting_up_ubuntu_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:computer:setting_up_ubuntu_server [2025/05/16 21:46] alexpublic:computer:setting_up_ubuntu_server [2025/05/17 00:14] (current) – [Set Timezone (타임 존 세팅)] alex
Line 18: Line 18:
  
 ===== Set Timezone (타임 존 세팅) ===== ===== Set Timezone (타임 존 세팅) =====
-<code bash>sudo dpkg-reconfigure tzdata</code> +  * 타임 존 설정 <code bash>sudo dpkg-reconfigure tzdata</code>  
 +  * 시간 설정 <code bash>sudo timedatectl set-local-rtc yes</code>
  
 ===== net-tools, openssh server 설치 ===== ===== net-tools, openssh server 설치 =====
Line 34: Line 34:
  
 ===== rsync 서버 설정 ===== ===== rsync 서버 설정 =====
 +  - <code bash>sudo apt install rsync -y</code> 
 +  - <code bash>sudo systemctl start rsync</code> 
 +  - <code bash>sudo vi /etc/rsync.conf</code> 
 +    * <code>[web]            -> 사용할 rsync 서비스 이름 
 +path = /home/web  -> 데이터원본 경로 
 +comment = rsync_test    -> 코멘트 
 +uid = root              -> 권한 사용자 
 +gid = root              -> 권한 그룹 
 +use chroot = yes 
 +read only = yes 
 +hosts allow = 192.168.10.10 -> rsync 클라이언트IP, localhost일 경우 입력하지 않아도 된다 
 +max connections = 10 
 +timeout = 30 
 +</code> 
 +  - <code bash>sudo systemctl restart rsync</code>
 ===== cron 설정 ===== ===== cron 설정 =====
   - cron 설정 실행 <code bash>crontab -e</code>   - cron 설정 실행 <code bash>crontab -e</code>
Line 40: Line 54:
     * 예제1) rsync 매일 오전 3시에 실행 <code>0 3 * * * rsync -avrzp --delete {user}@{url}::{rsync section name} {destination directory}</code>     * 예제1) rsync 매일 오전 3시에 실행 <code>0 3 * * * rsync -avrzp --delete {user}@{url}::{rsync section name} {destination directory}</code>
     * 예제2) ddns 업데이트 실행 <code>*/5 * * * * /usr/local/bin/curl -s 'https://ddns.dnszi.com/set.html?user={user id}&auth={auth key}&domain={domain}&record='</code>     * 예제2) ddns 업데이트 실행 <code>*/5 * * * * /usr/local/bin/curl -s 'https://ddns.dnszi.com/set.html?user={user id}&auth={auth key}&domain={domain}&record='</code>
 +    * 예제3) <code>0 5 1 * * tar zcfp /{dest dir}/archive-$(date +\%Y\%m\%d).tar.gz /{source dir}</code>
   - sudo 없이 cron 실행 설정 <code bash>   - sudo 없이 cron 실행 설정 <code bash>
 sudo ALL=NOPASSWD: /usr/sbin/service cron start sudo ALL=NOPASSWD: /usr/sbin/service cron start
Line 65: Line 80:
   - xrdp 사용자 추가 <code bash>sudo adduser xrdp ssl-cert</code>   - xrdp 사용자 추가 <code bash>sudo adduser xrdp ssl-cert</code>
  
 +
 +===== 기타 참고 =====
 +  * 버전 정보
 +    * <code bash>lsb_release -a</code>
 +    * <code bash>uname -a</code>
 +    * <code bash>cat /etc/issue</code>
 +    * <code bash>cat /etc/*release</code>
 +  * motd ''/etc/default/motd-news''
  
  • public/computer/setting_up_ubuntu_server.1747399562.txt.gz
  • Last modified: 2025/05/16 21:46
  • by alex