*. 보안업데이트
apt-get install unattended-upgrades
unattended-upgrade
*. SSH 접속시 지동실행 스크립트 저장 위치
cd /etc/update-motd.d/
*. LAN IP 설정
vi /etc/network/interfaces
=======================================================================
/etc/network/interfaces
———————————————————————–
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s3
iface enp0s3 inet dhcp
# The host-only network interface
auto enp0s8
iface enp0s8 inet static
address 192.168.56.102
netmask 255.255.255.0
network 192.168.56.0
boradcast 192.168.56.255
———————————————————————–
systemctl restart networking
*. 특정 폴더 및 하위 파일 중 txt 파일만 한정하여 인코딩 변환
find / -name *.txt -execdir iconv -f EUC-KE -t UTF-8 {} -o {}.tmp \; -execdir mv -f {}.tmp {} \;
*. 오래된 Linux 커널 삭제
> 현재 사용중인 커널 버전을 확인한다.
$ uname -r
3.2.0-38-generic
> 현재 설치된 커널 이미지를 확인한다.
$ dpkg –list | grep linux-image
ii linux-image-3.2.0-31-generic 3.2.0-31.50 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-32-generic 3.2.0-32.51 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-33-generic 3.2.0-33.52 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-34-generic 3.2.0-34.53 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-35-generic 3.2.0-35.55 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-36-generic 3.2.0-36.57 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-37-generic 3.2.0-37.58 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-38-generic 3.2.0-38.61 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-generic 3.2.0.38.46 Generic Linux kernel image
> 구 버전의 커널 이미지를 삭제한다.
$ sudo apt-get purge linux-image-3.2.0-31-generic
> grub2 를 업데이트 한다.
$ sudo update-grub2
*. 우분투 서버를 우분투 데스크탑으로 변경
apt-get install –no-install-recommends ubuntu-desktop
*. owncloud source 바탕화면에 backup
tar czfp /media/sf_desktop/oc-file-backup.tar.gz /var/www/owncloud