디스크 정리 압축 체크 문제.
윈도우 설치 cd 부팅
왼쪽 하단-> 시스템 복구(R) 선택
시스템 복구 옵션 -> 아니요 선택
드라이버로드(L) -> 확인 버튼
로컬 디스크(C:) -> 오른쪽 마우스 선택 -> 속성
이 드라이브를 압축하여 디스크 공간 절약(C) 해제, 하위 폴더 및 파일에 변경 사항 적용 확인 선택
재부팅
2019/01/18
booting cd command line
공통 사항
메모리 스틱 언 마운트
마운트 확인 명령어
df -aTh
언마운트 해제 명령어
umount /dev/sdc1
umount /dev/sdc2
fdisk /dev/sdx
파티션 포맷
윈도우 ntfs
리눅스 ext4
부팅 플래그 추가 a
파티션 포맷 mkfs.사용할 파일 시시템(mkfs.ext4, mkfs.ntfs)
디스크 덤프 사용.
사용법
sudo dd bs=4M if=windows7.iso of=/dev/sdc
예제.
dd bs=4M if=Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso of=/dev/sdx
dd bs=4M if=Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso of=/dev/sdx
우분투 12.04
sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update; sudo apt-get install winusb
14.04 패키지 없음 수동으로 설치
32bit
wget https://launchpad.net/~colingille/+archive/freshlight/+files/winusb_1.0.11+saucy1_i386.deb
sudo dpkg -i winusb_1.0.11+saucy1*
sudo apt-get install -f
64bit
wget https://launchpad.net/~colingille/+archive/freshlight/+files/winusb_1.0.11+saucy1_amd64.deb
sudo dpkg -i winusb_1.0.11+saucy1*
sudo apt-get install -f
사용방법(파티션을 사용할 수 도 있지만 전체 디스크로 사용 하는게 정신 건강해 좋음)
ntfs 파일 포맷 이후 윈도우 7 설치 프로그램 작성
winusb --format Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso /dev/sdf
ntfs 파티션에 windows ISO 설치 후 MBR(마스터 부트 레코드) 편집 하려면 다음 명령어 실행.
winusb --install Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso /dev/sdf
우분투 14.04 이상(winusb, woeusb 두 버전 사용 가능)
윈도우 10
sudo apt install woeusb
사용법
sudo woeusb --device </path/to/windows.iso> <device>
예제.
sudo woeusb --device /home/andrei/Downloads/win10.iso /dev/sdc
7z 방식
블록 디바이스 usb 검색 명령어
lsblk
파티션 포맷
sudo mkfs.fat -F32 /dev/sdXY
마운트
sudo mount /dev/sdXY /mnt
7z 패키지 설치
sudo apt install p7zip-full 또는 apt-get install p7zip-full
파일 복사.
sudo 7z x /pth/to/windowsfile.iso -o/mnt
usb 마운트 해제
umount /mount_point
메모리 스틱 언 마운트
마운트 확인 명령어
df -aTh
언마운트 해제 명령어
umount /dev/sdc1
umount /dev/sdc2
fdisk /dev/sdx
파티션 포맷
윈도우 ntfs
리눅스 ext4
부팅 플래그 추가 a
파티션 포맷 mkfs.사용할 파일 시시템(mkfs.ext4, mkfs.ntfs)
디스크 덤프 사용.
사용법
sudo dd bs=4M if=windows7.iso of=/dev/sdc
예제.
dd bs=4M if=Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso of=/dev/sdx
dd bs=4M if=Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso of=/dev/sdx
우분투 12.04
sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update; sudo apt-get install winusb
14.04 패키지 없음 수동으로 설치
32bit
wget https://launchpad.net/~colingille/+archive/freshlight/+files/winusb_1.0.11+saucy1_i386.deb
sudo dpkg -i winusb_1.0.11+saucy1*
sudo apt-get install -f
64bit
wget https://launchpad.net/~colingille/+archive/freshlight/+files/winusb_1.0.11+saucy1_amd64.deb
sudo dpkg -i winusb_1.0.11+saucy1*
sudo apt-get install -f
사용방법(파티션을 사용할 수 도 있지만 전체 디스크로 사용 하는게 정신 건강해 좋음)
ntfs 파일 포맷 이후 윈도우 7 설치 프로그램 작성
winusb --format Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso /dev/sdf
ntfs 파티션에 windows ISO 설치 후 MBR(마스터 부트 레코드) 편집 하려면 다음 명령어 실행.
winusb --install Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso /dev/sdf
우분투 14.04 이상(winusb, woeusb 두 버전 사용 가능)
윈도우 10
sudo apt install woeusb
사용법
sudo woeusb --device </path/to/windows.iso> <device>
예제.
sudo woeusb --device /home/andrei/Downloads/win10.iso /dev/sdc
7z 방식
블록 디바이스 usb 검색 명령어
lsblk
파티션 포맷
sudo mkfs.fat -F32 /dev/sdXY
마운트
sudo mount /dev/sdXY /mnt
7z 패키지 설치
sudo apt install p7zip-full 또는 apt-get install p7zip-full
파일 복사.
sudo 7z x /pth/to/windowsfile.iso -o/mnt
usb 마운트 해제
umount /mount_point
booting cd command line ubuntu
공통 사항
메모리 스틱 언 마운트
마운트 확인 명령어
df -aTh
언마운트 해제 명령어
umount /dev/sdc1
umount /dev/sdc2
디스크 덤프 사용.
사용법
sudo dd bs=4M if=windows7.iso of=/dev/sdc
예제.
dd bs=4M if=Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso of=/dev/sdf
dd bs=4M if=Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso of=/dev/sdf1
우분투 14.04 이상
sudo apt install woeusb
사용법
sudo woeusb --device </path/to/windows.iso> <device>
예제.
sudo woeusb --device /home/andrei/Downloads/win10.iso /dev/sdc
메모리 스틱 언 마운트
마운트 확인 명령어
df -aTh
언마운트 해제 명령어
umount /dev/sdc1
umount /dev/sdc2
디스크 덤프 사용.
사용법
sudo dd bs=4M if=windows7.iso of=/dev/sdc
예제.
dd bs=4M if=Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso of=/dev/sdf
dd bs=4M if=Windows_7_Ultimate_K_x64_with_IE11_hotfix_2018-06-13.iso of=/dev/sdf1
우분투 14.04 이상
sudo apt install woeusb
사용법
sudo woeusb --device </path/to/windows.iso> <device>
예제.
sudo woeusb --device /home/andrei/Downloads/win10.iso /dev/sdc
삼바 마운트
samba_mount.sh
#!/bin/sh
sudo mount.cifs -o username=jangho,passwd=userpasswd 패키징서버_파일공 /home/linuxlee/work/samba_share/
#!/bin/sh
sudo mount.cifs -o username=jangho,passwd=userpasswd 패키징서버_파일공 /home/linuxlee/work/samba_share/
2019/01/16
gpg 서명키 생성
gpg 서명 파일 생성 및 적용.
sudo apt-get install gnupg
gpg --gen-key
#입력 문자 길이 문제 해결
sudo apt-get install rng-tools
sudo rngd -r /dev/urandom
gpg --gen-key
# 키 목록 확인
/root/.gnupg/pubring.gpg
------------------------
pub 4096R/D9559104 2016-04-15
uid haenam_kernel <linuxleejang@gmail.com>
sub 4096R/64F8C92D 2016-04-15
#D9559104 내 서명 키
sudo apt-get install gnupg
gpg --gen-key
#입력 문자 길이 문제 해결
sudo apt-get install rng-tools
sudo rngd -r /dev/urandom
gpg --gen-key
# 키 목록 확인
/root/.gnupg/pubring.gpg
------------------------
pub 4096R/D9559104 2016-04-15
uid haenam_kernel <linuxleejang@gmail.com>
sub 4096R/64F8C92D 2016-04-15
#D9559104 내 서명 키
cento selinux pxe boot
1. dhcp 설정
yum -y install dhcp
ddns-update-style interim; :
subnet 192.168.0.0 netmask 255.255.255.0 { : 아이피와 서브넷 지정 옵션
option routers 192.168.0.1; : 게이트웨이 설정 옵션
option subnet-mask 255.255.255.0; 넷마스크 설정 옵션
range dynamic-bootp 192.168.0.10 192.168.0.100; : 시작 IP와 끝 IP 설정
option domain-name-servers 164.124.101.2; 네임서버 설정
default-lease-time 10000; : 임대시간(s)
max-lease-time 50000; 최대 임대시간(s)
#pxe setting
allow booting; : DHCP로 부팅을 허용
allow bootp; : 부팅 프로토콜 허용
next-server 192.168.0.1; : 부팅 파일이 있는 서버의 주소
filename "pxelinux.0"; : 부팅 파일 이름(syslinux)
설정
vi /etc/dhcp/dhcpd.conf
ddns-update-style interim;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.0.10 192.168.0.100;
option domain-name-servers 164.124.101.2;
default-lease-time 10000;
max-lease-time 50000;
#pxe setting
allow booting;
allow bootp;
next-server 192.168.0.1;
filename "pxelinux.0";
}
2. tftp 설정
yum -y install syslinux tftp-server
yum -y install xinetd : tftp경로 변경 xinetd 설치.
vi /etc/xinetd.d/tftp
파일의 옵션 변경
disable = no,
server_args= -s /var/lib/tftpboot (원하는 디렉터리 지정)
3. ISO 마운트, syslinux 부팅파일 복사
mkdir -p /var/www/html/pxe/CentOS7
mkdir -p /tftpboot/CentOS7
mount /dev/cdrom /var/www/html/pxe/CentOS7
iso 파일 마운트
mount -o loop CentOS7.iso /var/www/html/pxe/CentOS7
커널 및 설치 rootfs 복사
cp -a /var/www/html/pxe/CentOS7/images/pxeboot/vmlinuz /var/lib/tftpboot/CentOS7/
cp -a /var/www/html/pxe/CentOS7/images/pxeboot/initrd.img /var/lib/tftpboot/CentOS7/
pxe 부팅 파일 및 설정 메뉴 복사
cp -a /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
cp -a /usr/share/syslinux/menu.c32 /var/lib/tftpboot/
4. 부팅 디렉토리 생성
mkdir /var/lib/tftpboot/pxelinux.cfg
vi /var/lib/tftpboot/pxelinux.cfg/default
DEFAULT menu.c32
timeout 100
menu title ### OS Installer Boot Menu ###
LABEL CentOS7
menu label CentOS7
kernel CentOS7/vmlinuz
append initrd=CentOS7/initrd.img repo=http://192.168.0.1/pxe/CentOS7
5. 아파치 설정
yum -y install httpd
vi /etc/httpd/conf/httpd.conf
<Directory "/var/www/html/pxe">
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.0
</Directory>
7. 서비스 적용
systemctl restart dhcpd
systemctl restart httpd
systemctl restart xinetd
systemctl enable dhcpd
systemctl enable httpd
systemctl enable xinetd
yum -y install dhcp
ddns-update-style interim; :
subnet 192.168.0.0 netmask 255.255.255.0 { : 아이피와 서브넷 지정 옵션
option routers 192.168.0.1; : 게이트웨이 설정 옵션
option subnet-mask 255.255.255.0; 넷마스크 설정 옵션
range dynamic-bootp 192.168.0.10 192.168.0.100; : 시작 IP와 끝 IP 설정
option domain-name-servers 164.124.101.2; 네임서버 설정
default-lease-time 10000; : 임대시간(s)
max-lease-time 50000; 최대 임대시간(s)
#pxe setting
allow booting; : DHCP로 부팅을 허용
allow bootp; : 부팅 프로토콜 허용
next-server 192.168.0.1; : 부팅 파일이 있는 서버의 주소
filename "pxelinux.0"; : 부팅 파일 이름(syslinux)
설정
vi /etc/dhcp/dhcpd.conf
ddns-update-style interim;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.0.10 192.168.0.100;
option domain-name-servers 164.124.101.2;
default-lease-time 10000;
max-lease-time 50000;
#pxe setting
allow booting;
allow bootp;
next-server 192.168.0.1;
filename "pxelinux.0";
}
2. tftp 설정
yum -y install syslinux tftp-server
yum -y install xinetd : tftp경로 변경 xinetd 설치.
vi /etc/xinetd.d/tftp
파일의 옵션 변경
disable = no,
server_args= -s /var/lib/tftpboot (원하는 디렉터리 지정)
3. ISO 마운트, syslinux 부팅파일 복사
mkdir -p /var/www/html/pxe/CentOS7
mkdir -p /tftpboot/CentOS7
mount /dev/cdrom /var/www/html/pxe/CentOS7
iso 파일 마운트
mount -o loop CentOS7.iso /var/www/html/pxe/CentOS7
커널 및 설치 rootfs 복사
cp -a /var/www/html/pxe/CentOS7/images/pxeboot/vmlinuz /var/lib/tftpboot/CentOS7/
cp -a /var/www/html/pxe/CentOS7/images/pxeboot/initrd.img /var/lib/tftpboot/CentOS7/
pxe 부팅 파일 및 설정 메뉴 복사
cp -a /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
cp -a /usr/share/syslinux/menu.c32 /var/lib/tftpboot/
4. 부팅 디렉토리 생성
mkdir /var/lib/tftpboot/pxelinux.cfg
vi /var/lib/tftpboot/pxelinux.cfg/default
DEFAULT menu.c32
timeout 100
menu title ### OS Installer Boot Menu ###
LABEL CentOS7
menu label CentOS7
kernel CentOS7/vmlinuz
append initrd=CentOS7/initrd.img repo=http://192.168.0.1/pxe/CentOS7
5. 아파치 설정
yum -y install httpd
vi /etc/httpd/conf/httpd.conf
<Directory "/var/www/html/pxe">
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.0
</Directory>
7. 서비스 적용
systemctl restart dhcpd
systemctl restart httpd
systemctl restart xinetd
systemctl enable dhcpd
systemctl enable httpd
systemctl enable xinetd
2019/01/14
ssh 클러스터 설정 및 접근 관리(PAC) 사용
SSH(Secure Shell): 보안 소켓
로컬 시스템에서 원격 시스템을 접근 하기 위한 암호화 프로토콜.
모든 트랙픽 암호화.
ssh(slogin, scp, ssh) 유틸 세트.
이 세가지 유틸리티는 이전 UNIX 유틸리티에서 포크됨.
즉 rlogin, rsh 및 rcp 방법을 보안을 확장해 나온게 ssh이다.
여러 ssh 세션관리.
1. 클러스터 SSH
2. PAC 관리자.
공통 준비
sudo apt-get install openssh-server
1.1 클러스터 SSH
sudo apt-get install clusterssh
1.2 호스트 추가
두개의 원격 호스트 관리.
하나는 우분투 방화벽 전용 12.04, 172.16.1.1, 다른 하나는 패키징 서버 전용 12.04, 172.16.1.97
windows 키: clusterssh
원격 호스트 추가
hosts -> Add Host(s) or Cluster(s)
원격 호스트 아이피 주소 추가
Host: 172.16.1.1
SSH 키 추가.
Running: ssh -x -o ConnectTimeout=10 172.16.1.1 ; echo Sleeping for 5 seconds; sleep 5
The authenticity of host '172.16.1.1 (172.16.1.1)' can't be established.
ECDSA key fingerprint is SHA256:kVRGo3VO32SrWdNJMoMetoXv+peccF3FJYxRlQlwf6o.
Are you sure you want to continue connecting (yes/no)? yes
암호 입력
연결
동일한 방법으로 172.16.1.97 추가
1.3 클러스터 추가
testcluster 구성
1.3.1 구성 파일 설정
vi !/.clusterssh/config
#원하는 위치에 파일을 추가해 한번 선언
ssh_args= -x -o ConnectTimeout=10 -l ubuntu -p22
#키로 연결할 경우 다음과 같이 입력
ssh_args= -x -o ConnectTimeout=10 -i <path/to/your/key> -l ubuntu -p22
vi /etc/clusters
다음 내용 추가
testcluster 172.16.1.1 172.16.1.97
:wq
1.3.2 터미널 열고 다음 명령어 실행(현재 clusters 설정 파일 문제)
정의한 그룹을 접근
cssh testcluster
cssh -l linuxlee testcluster
명령어로 접근
cssh -l linuxlee 172.16.1.1 172.16.1.97
cssh linuxlee@172.16.1.1 root@172.16.1.97
linuxlee 계정 이름.
1.4 사용방법
clusterssh gui Send 입력창에 명령어 입력시 연결된 클라이언트 메세지 전달.
2. PAC 관리자.
Perl Auto Connector, perl/GTK 버전.
다운로드: https://sourceforge.net/projects/pacmanager/files/pac-4.0/
wget https://sourceforge.net/projects/pacmanager/files/pac-4.0/pac-4.5.5.6-all.deb
sudo apt-get install gdebi
sudo gdebi pac-4.5.5.6-all.deb
2.2 원격 호스트 추가
PAC 실행 후 기본 메뉴 새 연결 아이콘 선택
Enter New NAME: 서버 특정 이름 입력
설정이 완료 되면 사이드 창에 노드 생성 확인
2.2.1 클러스터 생성
연결 노드 실행
왼쪽 패널 창 아랫 -> Clusters 클릭
노드 선택 -> Add to Cluster 추가
ADD(추가) 클릭 -> 특징적 이름 입력
결과
어떤하 콘솔 창에서 명령어 입력시, 동일하게 동작
2.2.2 그룹 생성
왼쪽 상단 모서러에 있는 그룹 아이콘 선택
그룹 이름 입력
새로 생성된 그룹에 오른쪽 마우스 클릭 -> 연결 추가 선택
새 노드 이름 입력
노드 추가
새로 생성된 그룹에 오른쪽 마우스 클릭 -> 연결 추가 선택
추가 노드 이름 입력
클러스터 접근
그룹 아이콘 오른쪽 마우스 클릭 -> Execute in New Cluster...
클럭스터 이릅 입력
클러스터 접근 확인
2.3 ssh 그룹 접근
다중 SSH 최대 9개 지원
여러 인스턴스 시작 방법
노드 마우스 오른쪽 클릭 -> start -> 열려 있는 하위 인스턴스 목록 선택
2.4 멀티 프로토콜 지원
FTP, SFTP, redesktop, MOSH, VNC, WEBDAV
로컬 시스템에서 원격 시스템을 접근 하기 위한 암호화 프로토콜.
모든 트랙픽 암호화.
ssh(slogin, scp, ssh) 유틸 세트.
이 세가지 유틸리티는 이전 UNIX 유틸리티에서 포크됨.
즉 rlogin, rsh 및 rcp 방법을 보안을 확장해 나온게 ssh이다.
여러 ssh 세션관리.
1. 클러스터 SSH
2. PAC 관리자.
공통 준비
sudo apt-get install openssh-server
1.1 클러스터 SSH
sudo apt-get install clusterssh
1.2 호스트 추가
두개의 원격 호스트 관리.
하나는 우분투 방화벽 전용 12.04, 172.16.1.1, 다른 하나는 패키징 서버 전용 12.04, 172.16.1.97
windows 키: clusterssh
원격 호스트 추가
hosts -> Add Host(s) or Cluster(s)
원격 호스트 아이피 주소 추가
Host: 172.16.1.1
SSH 키 추가.
Running: ssh -x -o ConnectTimeout=10 172.16.1.1 ; echo Sleeping for 5 seconds; sleep 5
The authenticity of host '172.16.1.1 (172.16.1.1)' can't be established.
ECDSA key fingerprint is SHA256:kVRGo3VO32SrWdNJMoMetoXv+peccF3FJYxRlQlwf6o.
Are you sure you want to continue connecting (yes/no)? yes
암호 입력
연결
동일한 방법으로 172.16.1.97 추가
1.3 클러스터 추가
testcluster 구성
1.3.1 구성 파일 설정
vi !/.clusterssh/config
#원하는 위치에 파일을 추가해 한번 선언
ssh_args= -x -o ConnectTimeout=10 -l ubuntu -p22
#키로 연결할 경우 다음과 같이 입력
ssh_args= -x -o ConnectTimeout=10 -i <path/to/your/key> -l ubuntu -p22
vi /etc/clusters
다음 내용 추가
testcluster 172.16.1.1 172.16.1.97
:wq
1.3.2 터미널 열고 다음 명령어 실행(현재 clusters 설정 파일 문제)
정의한 그룹을 접근
cssh testcluster
cssh -l linuxlee testcluster
명령어로 접근
cssh -l linuxlee 172.16.1.1 172.16.1.97
cssh linuxlee@172.16.1.1 root@172.16.1.97
linuxlee 계정 이름.
1.4 사용방법
clusterssh gui Send 입력창에 명령어 입력시 연결된 클라이언트 메세지 전달.
2. PAC 관리자.
Perl Auto Connector, perl/GTK 버전.
다운로드: https://sourceforge.net/projects/pacmanager/files/pac-4.0/
wget https://sourceforge.net/projects/pacmanager/files/pac-4.0/pac-4.5.5.6-all.deb
sudo apt-get install gdebi
sudo gdebi pac-4.5.5.6-all.deb
2.2 원격 호스트 추가
PAC 실행 후 기본 메뉴 새 연결 아이콘 선택
Enter New NAME: 서버 특정 이름 입력
설정이 완료 되면 사이드 창에 노드 생성 확인
2.2.1 클러스터 생성
연결 노드 실행
왼쪽 패널 창 아랫 -> Clusters 클릭
노드 선택 -> Add to Cluster 추가
ADD(추가) 클릭 -> 특징적 이름 입력
결과
어떤하 콘솔 창에서 명령어 입력시, 동일하게 동작
2.2.2 그룹 생성
왼쪽 상단 모서러에 있는 그룹 아이콘 선택
그룹 이름 입력
새로 생성된 그룹에 오른쪽 마우스 클릭 -> 연결 추가 선택
새 노드 이름 입력
노드 추가
새로 생성된 그룹에 오른쪽 마우스 클릭 -> 연결 추가 선택
추가 노드 이름 입력
클러스터 접근
그룹 아이콘 오른쪽 마우스 클릭 -> Execute in New Cluster...
클럭스터 이릅 입력
클러스터 접근 확인
2.3 ssh 그룹 접근
다중 SSH 최대 9개 지원
여러 인스턴스 시작 방법
노드 마우스 오른쪽 클릭 -> start -> 열려 있는 하위 인스턴스 목록 선택
2.4 멀티 프로토콜 지원
FTP, SFTP, redesktop, MOSH, VNC, WEBDAV
2019/01/11
한글 입력기
리눅스에 존재하는 대표 한글 입력기
- ibus
- fcitx
- uim-byerou
- nimf
- nabi
ubuntu 12.04 기본 한글 입력기 ibus
현재 기본 입력기 fcitx
ibus 문제점: 강제 개행시 마지막 문자 자동 인식 문제.
이러한 문제 때문에 16.04 fcitx 입력기 사용.
하지만 fcitx 입력기 또한 특정 프로그램에서 한글 입력 동작을 하지 않음.
nimf 입력기
다솜 입력기 nimf 프로젝트 이름 변경 후 진행.
한국어 엔진, 중국어 엔진, 한/중/영어 선택 가능
프로젝트 사이트: https://github.com/cogniti/nimf
설정 및 구상 개발 방향
https://cogniti-works.blogspot.com/2016/04/nimf-settings.html
키도드 한글, 한자 키가 없는 경우 해결 방법.
https://cogniti-works.blogspot.com/2016/04/blog-post.html
설치
sudo apt-add-repository ppa:hodong/nimf
sudo apt update
sudo apt install nimf nimf-libhangul
im-config -n nimf
deb 파일 패키징 하기
http://bagjunggyu.blogspot.kr/2017/03/nimf-deb.html
compile
git clone https://github.com/cogniti/nimf.git
dpkg-checkbuilddeps
./autogen.sh
make
sudo make install
sudo ldconfig
캐시 생성
sudo make update-gtk-im-cache
아이콘 캐시 생성
sudo make update-gtk-icon-cache
데몬실행
nimf-daemon
데몬 패널 아이콘 생성
nimf-indicator
모든 프로그램 입력기 nimf 지정
export GTK_IM_MODULE="nimf"
export QT4_IM_MODULE="nimf"
export QT_IM_MODULE="nimf"
export XMODIFIERS="@im=nimf"
nimf 자동 등록
우분투 16.04 x-window 위에 unity 사용하고 있음. xprofile에 저장을 한 후 X 가 실행 됐을 때, 자동 실행하게 스크립트 작성.
x-window unity가 아니라 gnome 또는 KDE, Xfce 일 때는 .xprofile이 아니라 사용자 인터페이스가 인식 할 수 있는 시작 스크립트 명으로 작성 해야 함.
vi ~/.xprofile
nimf-daemon
nimf-indicator
export GTK_IM_MODULE="nimf"
export QT4_IM_MODULE="nimf"
export QT_IM_MODULE="nimf"
export SDL_IM_MODULE="nimf"
export XMODIFIERS="@im=nimf"
- ibus
- fcitx
- uim-byerou
- nimf
- nabi
ubuntu 12.04 기본 한글 입력기 ibus
현재 기본 입력기 fcitx
ibus 문제점: 강제 개행시 마지막 문자 자동 인식 문제.
이러한 문제 때문에 16.04 fcitx 입력기 사용.
하지만 fcitx 입력기 또한 특정 프로그램에서 한글 입력 동작을 하지 않음.
nimf 입력기
다솜 입력기 nimf 프로젝트 이름 변경 후 진행.
한국어 엔진, 중국어 엔진, 한/중/영어 선택 가능
프로젝트 사이트: https://github.com/cogniti/nimf
설정 및 구상 개발 방향
https://cogniti-works.blogspot.com/2016/04/nimf-settings.html
키도드 한글, 한자 키가 없는 경우 해결 방법.
https://cogniti-works.blogspot.com/2016/04/blog-post.html
설치
sudo apt-add-repository ppa:hodong/nimf
sudo apt update
sudo apt install nimf nimf-libhangul
im-config -n nimf
deb 파일 패키징 하기
http://bagjunggyu.blogspot.kr/2017/03/nimf-deb.html
compile
git clone https://github.com/cogniti/nimf.git
dpkg-checkbuilddeps
./autogen.sh
make
sudo make install
sudo ldconfig
캐시 생성
sudo make update-gtk-im-cache
아이콘 캐시 생성
sudo make update-gtk-icon-cache
데몬실행
nimf-daemon
데몬 패널 아이콘 생성
nimf-indicator
모든 프로그램 입력기 nimf 지정
export GTK_IM_MODULE="nimf"
export QT4_IM_MODULE="nimf"
export QT_IM_MODULE="nimf"
export XMODIFIERS="@im=nimf"
nimf 자동 등록
우분투 16.04 x-window 위에 unity 사용하고 있음. xprofile에 저장을 한 후 X 가 실행 됐을 때, 자동 실행하게 스크립트 작성.
x-window unity가 아니라 gnome 또는 KDE, Xfce 일 때는 .xprofile이 아니라 사용자 인터페이스가 인식 할 수 있는 시작 스크립트 명으로 작성 해야 함.
vi ~/.xprofile
nimf-daemon
nimf-indicator
export GTK_IM_MODULE="nimf"
export QT4_IM_MODULE="nimf"
export QT_IM_MODULE="nimf"
export SDL_IM_MODULE="nimf"
export XMODIFIERS="@im=nimf"
화면 녹화
1. simple screen recorder
빠른 속도
원하는 영역만 캡쳐할 수 있다.
OpenGL 녹화
오디오/비디오 동기화
멀티쓰레딩 지원
일시정지/다시시작 지원
다양한 코덱 지원
프리뷰 지원
sudo add-apt-repository ppa:maarten-sudo baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder
apt-get install simplescreenrecorder-lib:i386
OpenGL 녹화 기능을 사용해 게임 녹화.
일반적 비디오 포맷 mp4, h.264, WebM(VP8) 구글 적극적으로 참여한 프로젝트.
오디오 포맷: mp3, ogg(vorbis), ACC
녹화 시작: ctrl + r
2. ScreenStudio (자바 기반)
sudo add-apt-repository ppa:soylent-tv/screenstudio
sudo apt-get update
sudo apt-get install screenstudio
3. recordMyDesktop
apt-get install gtk-recordMyDesktop
grub2 부트로더 이미지 추가
grub2 부트로더 이미치 추가
===================
sudo apt-get install grub2-splashimages
테마 파일 위치
sudo nautilus /usr/share/images/grub
이 파일에 해상도는 640X480
vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
이미지 지원확장자
jpg, JPG, jpeg, JPEG, png, PNG, tga, TGA
이미지 그키 지정
GRUB_GFXMODE=640x480
제일 마지막에 추가.
GRUB_BACKGROUND=/path/filename
sudo update-grub
프로그래스바.
==========
apt-get install plymouth-themes
다운로드
usr/share/plymouth/themes/
sudo update-alternatives —install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/glow/glow.plymouth 100
sudo update-alternatives —config default.plymouth
manual mode 선택: 1 ---> 수동모드.
적용.
sudo update-initramfs -u
===================
sudo apt-get install grub2-splashimages
테마 파일 위치
sudo nautilus /usr/share/images/grub
이 파일에 해상도는 640X480
vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
이미지 지원확장자
jpg, JPG, jpeg, JPEG, png, PNG, tga, TGA
이미지 그키 지정
GRUB_GFXMODE=640x480
제일 마지막에 추가.
GRUB_BACKGROUND=/path/filename
sudo update-grub
프로그래스바.
==========
apt-get install plymouth-themes
다운로드
usr/share/plymouth/themes/
sudo update-alternatives —install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/glow/glow.plymouth 100
sudo update-alternatives —config default.plymouth
manual mode 선택: 1 ---> 수동모드.
적용.
sudo update-initramfs -u
유용한 응용 프로그램.
sudo apt-get install ubuntu-restricted-extras gdebi dcfldd gparted htop unetbootin deborphan bleachbit tilda clementine moc audacity smplayer smtube darktable xbmc vokoscreen scribus focuswriter geary
gdebi : 데비안 패키지 설치/제거 도구
dcfldd : 로웃포맷 , 부팅 USB 등을 만들때 남은 용량을 표시하면서 만들게 해주는 도구입니다.
gparted : 파티션을 만들거나 조절할때 사용하는 도구
htop : 시스템 관리 도구
unetbootin : 시동 디스크 , 부팅 usb 만드는 도구
deborphan : 파일간의 상호 연결이 끊어져서, 더 이상 이용되지 않은채 버려진 파일들을 찾아서 지워주는 프로그램 입니다.
bleachbit : 블리치비트는 모든 작업활동의 캐시 (저장된 사용자 사용 경험 )들을 찾아서 지워줍니다.
tilda : 투명터미널 입니다.
clementine : 음악 플레이어, 라디오
moc : 터미널용 음악 플레이어
audacity : 음악 편집 도구
banshee : 음악, 동영상 플레이어
radiotray : 라디오
smplayer : 멀티미디어 도구
smtube : smplayer 로 youtube를 쉽게 찾아 볼수 있게 해주는 도구입니다.
darktable : 사진 도구
xbmc : 멀티미디어 허브
vokoscreen : 화면녹화도구 (소리도 같이 녹음됩니다.)
minitube : Youtube를 TV 채널 이용하듯 보게 해주는 도구
scribus : 퍼플리싱 및 명함 관리 제작
focuswriter : 이미지 문서 작성
geary : e-mail 클라이언트
아래의 프로그램들은 해당 사이트에서 deb 파일을 다운받아서 설치해야 합니다.
covergloobus : 여러가지 음악 플레이어 스킨 , 테마사이트에서 우분투용 1.7.3 버전을 이용하시면 됩니다.
draftsight : Autocad를 대신 할 만한 무료 캐드 프로그램 (라이선스를 확인하세요)
다운로드 : http://www.3ds.com/ko/products-services/draftsight/download-draftsight/
Variety : 바탕화면 슬라이드 도구, 홈페이지 중간쯤에 Debian용 deb 파일 다운링크가 있습니다.
http://peterlevi.com/variety/how-to-install/
Format Junkie : 다양한 기능을 가진 포맷 변환프로그램입니다.
calendar-indicator : 구글 캘린더용 패널 어플리케이션 입니다.
syncdrive : 리눅스용 Google Drive 동기화 프로그램입니다.
my-weather-indicator : 날씨 알리미 - 환경설정에서 영어로 동네 이름을 찾으세요.(온양 = onyang)
sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install my-weather-indicator
gdebi : 데비안 패키지 설치/제거 도구
dcfldd : 로웃포맷 , 부팅 USB 등을 만들때 남은 용량을 표시하면서 만들게 해주는 도구입니다.
gparted : 파티션을 만들거나 조절할때 사용하는 도구
htop : 시스템 관리 도구
unetbootin : 시동 디스크 , 부팅 usb 만드는 도구
deborphan : 파일간의 상호 연결이 끊어져서, 더 이상 이용되지 않은채 버려진 파일들을 찾아서 지워주는 프로그램 입니다.
bleachbit : 블리치비트는 모든 작업활동의 캐시 (저장된 사용자 사용 경험 )들을 찾아서 지워줍니다.
tilda : 투명터미널 입니다.
clementine : 음악 플레이어, 라디오
moc : 터미널용 음악 플레이어
audacity : 음악 편집 도구
banshee : 음악, 동영상 플레이어
radiotray : 라디오
smplayer : 멀티미디어 도구
smtube : smplayer 로 youtube를 쉽게 찾아 볼수 있게 해주는 도구입니다.
darktable : 사진 도구
xbmc : 멀티미디어 허브
vokoscreen : 화면녹화도구 (소리도 같이 녹음됩니다.)
minitube : Youtube를 TV 채널 이용하듯 보게 해주는 도구
scribus : 퍼플리싱 및 명함 관리 제작
focuswriter : 이미지 문서 작성
geary : e-mail 클라이언트
아래의 프로그램들은 해당 사이트에서 deb 파일을 다운받아서 설치해야 합니다.
covergloobus : 여러가지 음악 플레이어 스킨 , 테마사이트에서 우분투용 1.7.3 버전을 이용하시면 됩니다.
draftsight : Autocad를 대신 할 만한 무료 캐드 프로그램 (라이선스를 확인하세요)
다운로드 : http://www.3ds.com/ko/products-services/draftsight/download-draftsight/
Variety : 바탕화면 슬라이드 도구, 홈페이지 중간쯤에 Debian용 deb 파일 다운링크가 있습니다.
http://peterlevi.com/variety/how-to-install/
Format Junkie : 다양한 기능을 가진 포맷 변환프로그램입니다.
calendar-indicator : 구글 캘린더용 패널 어플리케이션 입니다.
syncdrive : 리눅스용 Google Drive 동기화 프로그램입니다.
my-weather-indicator : 날씨 알리미 - 환경설정에서 영어로 동네 이름을 찾으세요.(온양 = onyang)
sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install my-weather-indicator
systemback
시스템 백업 프로그램으로 복원을 할때 클릭만으로 특정 날짜로 복원가능.
윈도우나 다른 운영체제에 있는 기능과 한 가지 다른 점은 현재 사용중인 리눅스를 통째로 윈도우 PE 처럼 라이브 시스템으로 만드는게 가능.
USB 메모리에 넣고 부팅하면 언제 어디서나 작업하던 환경을 그대로 사용할 수 있음
휴대 가능한 이동형 작업 공간이 될 겁니다.
sudo add-apt-repository ppa:nemh/systemback
sudo apt-get update
sudo apt-get install systemback
윈도우나 다른 운영체제에 있는 기능과 한 가지 다른 점은 현재 사용중인 리눅스를 통째로 윈도우 PE 처럼 라이브 시스템으로 만드는게 가능.
USB 메모리에 넣고 부팅하면 언제 어디서나 작업하던 환경을 그대로 사용할 수 있음
휴대 가능한 이동형 작업 공간이 될 겁니다.
sudo add-apt-repository ppa:nemh/systemback
sudo apt-get update
sudo apt-get install systemback
ubuntu 16.10 vmware install
# sudo -
# cd /usr/lib/vmware/modules/source
# tar xf vmmon.tar
# mv vmmon.tar vmmon.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmmon-only/linux/hostif.c
# tar cf vmmon.tar vmmon-only
# rm -r vmmon-only
# tar xf vmnet.tar
# mv vmnet.tar vmnet.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmnet-only/userif.c
# sed -i -e 's/dev->trans_start = jiffies/netif_trans_update\(dev\)/g' vmnet-only/netif.c
# tar cf vmnet.tar vmnet-only
# rm -r vmnet-only
cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
vi ./vmmon-only/linux/driver.c
소스 수정
#ifdef VMX86_DEVEL
unregister_chrdev(linuxState.major, linuxState.deviceName);
#else
- if (misc_deregister(&linuxState.misc)) {
- Warning("Module %s: error unregistering\n", linuxState.deviceName);
- }
+ misc_deregister(&linuxState.misc);
mv vmmon.tar vmmon.tarbackup
tar cf vmmon.tar ./vmmon-only
sudo vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
cd /usr/lib/vmware/modules/source
tar xf vmnet.tar
tar xf vmmon.tar
mv vmnet.tar vmnet.old.tar
mv vmmon.tar vmmon.old.tar
sed -i -e 's/dev->trans_start = jiffies/netif_trans_update(dev)/g' vmnet-only/netif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/hostif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/linux/hostif.c
tar cf vmnet.tar vmnet-only
tar cf vmmon.tar vmmon-only
rm -r vmnet-only
rm -r vmmon-only
업데이트 금지
시스템 적용
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
echo /usr/lib/vmware/lib/libglibmm-2.4.so.1 | sudo tee -a /etc/ld.so.conf.d/LD_LIBRARY_PATH.conf
sudo ldconfig
실행파일 적용
/usr/bin/vmware
/usr/bin/vmware-netcf
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
실행시 에러
"Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)
$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
$ mokutil --import MOK.der
다른 해결 방법.
[VMWARE] Could not open # sudo -
# cd /usr/lib/vmware/modules/source
# tar xf vmmon.tar
# mv vmmon.tar vmmon.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmmon-only/linux/hostif.c
# tar cf vmmon.tar vmmon-only
# rm -r vmmon-only
# tar xf vmnet.tar
# mv vmnet.tar vmnet.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmnet-only/userif.c
# sed -i -e 's/dev->trans_start = jiffies/netif_trans_update\(dev\)/g' vmnet-only/netif.c
# tar cf vmnet.tar vmnet-only
# rm -r vmnet-only
cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
vi ./vmmon-only/linux/driver.c
소스 수정
#ifdef VMX86_DEVEL
unregister_chrdev(linuxState.major, linuxState.deviceName);
#else
- if (misc_deregister(&linuxState.misc)) {
- Warning("Module %s: error unregistering\n", linuxState.deviceName);
- }
+ misc_deregister(&linuxState.misc);
mv vmmon.tar vmmon.tarbackup
tar cf vmmon.tar ./vmmon-only
sudo vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
cd /usr/lib/vmware/modules/source
tar xf vmnet.tar
tar xf vmmon.tar
mv vmnet.tar vmnet.old.tar
mv vmmon.tar vmmon.old.tar
sed -i -e 's/dev->trans_start = jiffies/netif_trans_update(dev)/g' vmnet-only/netif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/hostif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/linux/hostif.c
tar cf vmnet.tar vmnet-only
tar cf vmmon.tar vmmon-only
rm -r vmnet-only
rm -r vmmon-only
업데이트 금지
시스템 적용
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
echo /usr/lib/vmware/lib/libglibmm-2.4.so.1 | sudo tee -a /etc/ld.so.conf.d/LD_LIBRARY_PATH.conf
sudo ldconfig
실행파일 적용
/usr/bin/vmware
/usr/bin/vmware-netcf
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
실행시 에러
"Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)
$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
$ mokutil --import MOK.der
다른 해결 방법.
[VMWARE] Could not open /dev/vmmon 오류발생 해결법 Admin
출처: http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-
한마디로 그냥 재컴파일해서 수동으로 vmmon.ko을 심어줍시다T_T
(1) mkdir ~/vmsrc ; cd ~/vmsrc
(2) tar xvf /usr/lib/vmware/modules/source/vmmon.tar
(3) cd vmmon-only
(4) make [Note: this builds vmmon.ko]
(5) strip --strip-debug vmmon.ko [This is optional. Note the two dashes]
(6) su -
(7) cd /lib/modules/`uname -r`/misc
(8) mv vmmon.o vmmon.o.dist [Note: save the original just in case]
(9) cp /(path to user's home)/vmsrc/vmmon-only/vmmon.ko vmmon.o
다른 방법 Admin
출처: https://communities.vmware.com/message/2305657
아래와 같은 방법으로도 해결됨(root로...)
mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.bkp
vmware-modconfig --console --install-all
sudo service vmware stop
sudo rm /lib/modules/$(uname -r)/misc/vmmon.ko
sudo vmware-modconfig --console --build-mod vmmon /usr/bin/gcc /lib/modules/$(uname -r)/build/include/
sudo depmod -a
sudo service vmware start
삭제
sudo vmware-installer --uninstall-product vmware-workstation /dev/vmmon 오류발생 해결법 Admin
출처: http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-
한마디로 그냥 재컴파일해서 수동으로 vmmon.ko을 심어줍시다T_T
(1) mkdir ~/vmsrc ; cd ~/vmsrc
(2) tar xvf /usr/lib/vmware/modules/source/vmmon.tar
(3) cd vmmon-only
(4) make [Note: this builds vmmon.ko]
(5) strip --strip-debug vmmon.ko [This is optional. Note the two dashes]
(6) su -
(7) cd /lib/modules/`uname -r`/misc
(8) mv vmmon.o vmmon.o.dist [Note: save the original just in case]
(9) cp /(path to user's home)/vmsrc/vmmon-only/vmmon.ko vmmon.o
다른 방법 Admin
출처: https://communities.vmware.com/message/2305657
아래와 같은 방법으로도 해결됨(root로...)
mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.bkp
vmware-modconfig --console --install-all
sudo service vmware stop
sudo rm /lib/modules/$(uname -r)/misc/vmmon.ko
sudo vmware-modconfig --console --build-mod vmmon /usr/bin/gcc /lib/modules/$(uname -r)/build/include/
sudo depmod -a
sudo service vmware start
삭제
sudo vmware-installer --uninstall-product vmware-workstation
# cd /usr/lib/vmware/modules/source
# tar xf vmmon.tar
# mv vmmon.tar vmmon.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmmon-only/linux/hostif.c
# tar cf vmmon.tar vmmon-only
# rm -r vmmon-only
# tar xf vmnet.tar
# mv vmnet.tar vmnet.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmnet-only/userif.c
# sed -i -e 's/dev->trans_start = jiffies/netif_trans_update\(dev\)/g' vmnet-only/netif.c
# tar cf vmnet.tar vmnet-only
# rm -r vmnet-only
cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
vi ./vmmon-only/linux/driver.c
소스 수정
#ifdef VMX86_DEVEL
unregister_chrdev(linuxState.major, linuxState.deviceName);
#else
- if (misc_deregister(&linuxState.misc)) {
- Warning("Module %s: error unregistering\n", linuxState.deviceName);
- }
+ misc_deregister(&linuxState.misc);
mv vmmon.tar vmmon.tarbackup
tar cf vmmon.tar ./vmmon-only
sudo vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
cd /usr/lib/vmware/modules/source
tar xf vmnet.tar
tar xf vmmon.tar
mv vmnet.tar vmnet.old.tar
mv vmmon.tar vmmon.old.tar
sed -i -e 's/dev->trans_start = jiffies/netif_trans_update(dev)/g' vmnet-only/netif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/hostif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/linux/hostif.c
tar cf vmnet.tar vmnet-only
tar cf vmmon.tar vmmon-only
rm -r vmnet-only
rm -r vmmon-only
업데이트 금지
시스템 적용
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
echo /usr/lib/vmware/lib/libglibmm-2.4.so.1 | sudo tee -a /etc/ld.so.conf.d/LD_LIBRARY_PATH.conf
sudo ldconfig
실행파일 적용
/usr/bin/vmware
/usr/bin/vmware-netcf
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
실행시 에러
"Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)
$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
$ mokutil --import MOK.der
다른 해결 방법.
[VMWARE] Could not open # sudo -
# cd /usr/lib/vmware/modules/source
# tar xf vmmon.tar
# mv vmmon.tar vmmon.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmmon-only/linux/hostif.c
# tar cf vmmon.tar vmmon-only
# rm -r vmmon-only
# tar xf vmnet.tar
# mv vmnet.tar vmnet.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmnet-only/userif.c
# sed -i -e 's/dev->trans_start = jiffies/netif_trans_update\(dev\)/g' vmnet-only/netif.c
# tar cf vmnet.tar vmnet-only
# rm -r vmnet-only
cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
vi ./vmmon-only/linux/driver.c
소스 수정
#ifdef VMX86_DEVEL
unregister_chrdev(linuxState.major, linuxState.deviceName);
#else
- if (misc_deregister(&linuxState.misc)) {
- Warning("Module %s: error unregistering\n", linuxState.deviceName);
- }
+ misc_deregister(&linuxState.misc);
mv vmmon.tar vmmon.tarbackup
tar cf vmmon.tar ./vmmon-only
sudo vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
cd /usr/lib/vmware/modules/source
tar xf vmnet.tar
tar xf vmmon.tar
mv vmnet.tar vmnet.old.tar
mv vmmon.tar vmmon.old.tar
sed -i -e 's/dev->trans_start = jiffies/netif_trans_update(dev)/g' vmnet-only/netif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/hostif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/linux/hostif.c
tar cf vmnet.tar vmnet-only
tar cf vmmon.tar vmmon-only
rm -r vmnet-only
rm -r vmmon-only
업데이트 금지
시스템 적용
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
echo /usr/lib/vmware/lib/libglibmm-2.4.so.1 | sudo tee -a /etc/ld.so.conf.d/LD_LIBRARY_PATH.conf
sudo ldconfig
실행파일 적용
/usr/bin/vmware
/usr/bin/vmware-netcf
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
실행시 에러
"Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)
$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
$ mokutil --import MOK.der
다른 해결 방법.
[VMWARE] Could not open /dev/vmmon 오류발생 해결법 Admin
출처: http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-
한마디로 그냥 재컴파일해서 수동으로 vmmon.ko을 심어줍시다T_T
(1) mkdir ~/vmsrc ; cd ~/vmsrc
(2) tar xvf /usr/lib/vmware/modules/source/vmmon.tar
(3) cd vmmon-only
(4) make [Note: this builds vmmon.ko]
(5) strip --strip-debug vmmon.ko [This is optional. Note the two dashes]
(6) su -
(7) cd /lib/modules/`uname -r`/misc
(8) mv vmmon.o vmmon.o.dist [Note: save the original just in case]
(9) cp /(path to user's home)/vmsrc/vmmon-only/vmmon.ko vmmon.o
다른 방법 Admin
출처: https://communities.vmware.com/message/2305657
아래와 같은 방법으로도 해결됨(root로...)
mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.bkp
vmware-modconfig --console --install-all
sudo service vmware stop
sudo rm /lib/modules/$(uname -r)/misc/vmmon.ko
sudo vmware-modconfig --console --build-mod vmmon /usr/bin/gcc /lib/modules/$(uname -r)/build/include/
sudo depmod -a
sudo service vmware start
삭제
sudo vmware-installer --uninstall-product vmware-workstation /dev/vmmon 오류발생 해결법 Admin
출처: http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-
한마디로 그냥 재컴파일해서 수동으로 vmmon.ko을 심어줍시다T_T
(1) mkdir ~/vmsrc ; cd ~/vmsrc
(2) tar xvf /usr/lib/vmware/modules/source/vmmon.tar
(3) cd vmmon-only
(4) make [Note: this builds vmmon.ko]
(5) strip --strip-debug vmmon.ko [This is optional. Note the two dashes]
(6) su -
(7) cd /lib/modules/`uname -r`/misc
(8) mv vmmon.o vmmon.o.dist [Note: save the original just in case]
(9) cp /(path to user's home)/vmsrc/vmmon-only/vmmon.ko vmmon.o
다른 방법 Admin
출처: https://communities.vmware.com/message/2305657
아래와 같은 방법으로도 해결됨(root로...)
mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.bkp
vmware-modconfig --console --install-all
sudo service vmware stop
sudo rm /lib/modules/$(uname -r)/misc/vmmon.ko
sudo vmware-modconfig --console --build-mod vmmon /usr/bin/gcc /lib/modules/$(uname -r)/build/include/
sudo depmod -a
sudo service vmware start
삭제
sudo vmware-installer --uninstall-product vmware-workstation
gpu 라데온 mesa 드라이버 적용.
https://askubuntu.com/questions/862879/how-do-i-install-the-open-source-radeon-vulkan-driver/862881
sudo add-apt-repository ppa:paulo-miguel-dias/mesa
sudo apt-get update
sudo apt-get upgrade
sudo reboot now
https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install mesa-vdpau-drivers
mpv --hwdec=vdpau
sudo apt-cache search fglrx
apt-get install fglrx-pxpress ubuntu-drivers-common boinc-client-fglrx
sudo apt-get install xserver-xorg-video-amdgpu xserver-xorg-video-amdgpu-dbg xserver-xorg-video-vesa xserver-xorg-video-radeon xserver-xorg-video-ati xserver-xorg-video-ati-dbg xserver-xorg-video-radeon-dbg
glxinfo
리얼 밴치마킹 테스트
sudo apt-get install glmark2
http://wiki.cchtml.com/index.php/Glxgears_is_not_a_Benchmark
http://www.phoronix-test-suite.com/
sudo add-apt-repository ppa:paulo-miguel-dias/mesa
sudo apt-get update
sudo apt-get upgrade
sudo reboot now
https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install mesa-vdpau-drivers
mpv --hwdec=vdpau
sudo apt-cache search fglrx
apt-get install fglrx-pxpress ubuntu-drivers-common boinc-client-fglrx
sudo apt-get install xserver-xorg-video-amdgpu xserver-xorg-video-amdgpu-dbg xserver-xorg-video-vesa xserver-xorg-video-radeon xserver-xorg-video-ati xserver-xorg-video-ati-dbg xserver-xorg-video-radeon-dbg
glxinfo
리얼 밴치마킹 테스트
sudo apt-get install glmark2
http://wiki.cchtml.com/index.php/Glxgears_is_not_a_Benchmark
http://www.phoronix-test-suite.com/
APM 설치 스크립트
#!/bin/sh
tar zxvf httpd-2*.tar.gz
# 아파치 경로가 절대경로로 지정되었기 때문에 버전이 변경되면 다시 변경
./chg httpd-2.0.59/server/mpm/prefork/prefork.c "define DEFAULT_SERVER_LIMIT 256" "define DEFAULT_SERVER_LIMIT 2048"
cd httpd-2*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local/apache2 \
--enable-access=shared \
--enable-actions=shared \
--enable-alias=shared \
--enable-auth=shared \
--enable-auth-dbm=shared \
--enable-auth-digest=shared \
--enable-autoindex=shared \
--enable-cern-meta=shared \
--enable-cgi=shared \
--enable-dav=shared \
--enable-dav-fs=shared \
--enable-dir=shared \
--enable-env=shared \
--enable-expires=shared \
--enable-file-cache=shared \
--enable-headers=shared \
--enable-include=shared \
--enable-log-config=shared \
--enable-mime=shared \
--enable-mime-magic=shared \
--enable-negotiation=shared \
--enable-rewrite=shared \
--enable-setenvif=shared \
--enable-speling=shared \
--enable-ssl=shared \
--enable-unique-id=shared \
--enable-usertrack=shared \
--enable-vhost-alias=shared \
--disable-auth-anon \
--disable-charset-lite \
--disable-disk-cache \
--disable-mem-cache \
--disable-cache \
--disable-deflate \
--disable-ext-filter \
--disable-case-filter \
--disable-case-filter-in \
--disable-example \
--disable-proxy \
--disable-proxy-connect \
--disable-proxy-ftp \
--disable-proxy-http \
--disable-status \
--disable-asis \
--disable-info \
--disable-suexec \
--disable-cgid \
--with-z \
--with-ssl \
--with-mpm=prefork
make;make install
echo "Apache2 install done"
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.local
sleep 1
cd ../
echo " PHP and Etc INstall "
sleep 2
tar zxvf zlib-1.2.1.tar.gz
cd zlib-1.2.1
./configure
make
make install
cp -f *.h /usr/local/include/
cd ..
tar zxvf freetype-2.1.5.tar.gz
cd freetype-2.1.5
./configure
make
make install
cd ..
tar zxvf libpng-1.2.5.tar.gz
cd libpng-1.2.5
make -f scripts/makefile.linux
cp -f *.h /usr/local/include/
cp -f lib* /usr/local/lib/
cd ../
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure
make
make install
cp -f libjpeg.a /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf gd-2.0.34.tar.gz
cd gd-2.0.34
./configure
make
make install
cp -f libgd* /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf php-5.*.*.tar.*
cd php-5.*.*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mod_charset \
--with-charset=euc_kr \
--with-language=korean \
--with-openssl \
--with-zlib \
--with-iconv \
--with-gd=/usr/local \
--with-ttf \
--with-png \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-gmp \
--with-xml \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/tmp/mysql.sock \
--disable-posix \
--disable-rpath \
--enable-safe-mode \
--enable-magic-quotes \
--enable-bcmath \
--enable-dio \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-ftp \
--enable-socket \
--enable-pear \
--enable-shmop \
--enable-mbstring
make;make install
sed -i '867iAddType application/x-httpd-php .html .htm .php .php4' /usr/local/apache2/conf/httpd.conf
sed -e '426d' /usr/local/apache2/conf/httpd.conf > httpd.conf
sed -i '426iDirectoryIndex index.html index.htm index.cgi index.php index.php3 index.php4' /usr/local/apache2/conf/httpd.conf
touch /usr/local/apache2/htdocs/apm_ver.php;chmod 755 /usr/local/apache2/htdocs/apm_ver.php
echo "<?
phpinfo();
?>" >> /usr/local/apache2/htdocs/apm_ver.php
cp php.ini-dist /usr/local/lib/php.ini
cd ../
./chg /usr/local/lib/php.ini "register_globals = Off" "register_globals = On"
./chg /usr/local/lib/php.ini "upload_max_filesize = 2M" "upload_max_filesize = 8M"
./chg /usr/local/lib/php.ini "allow_url_fopen = On" "allow_url_fopen = Off"
echo " Zend install"
sleep 2
tar xvfz ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
cd ZendOptimizer*
mkdir -p /usr/local/Zend
cp data/5_1_x_comp/ZendOptimizer.so /usr/local/Zend
echo "[Zend]" >> /usr/local/lib/php.ini
echo "zend_optimizer.optimization_level=1023" >> /usr/local/lib/php.ini
echo "zend_extension=/usr/local/Zend/ZendOptimizer.so" >> /usr/local/lib/php.ini
chmod 700 /usr/local/apache2/conf
/usr/local/apache2/bin/httpd -t
sleep 2
/usr/local/apache2/bin/apachectl start
echo "All Done' View This Site *** http://your ip/apm_ver.php
Have a nice day!!"
exit 0
tar zxvf httpd-2*.tar.gz
# 아파치 경로가 절대경로로 지정되었기 때문에 버전이 변경되면 다시 변경
./chg httpd-2.0.59/server/mpm/prefork/prefork.c "define DEFAULT_SERVER_LIMIT 256" "define DEFAULT_SERVER_LIMIT 2048"
cd httpd-2*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local/apache2 \
--enable-access=shared \
--enable-actions=shared \
--enable-alias=shared \
--enable-auth=shared \
--enable-auth-dbm=shared \
--enable-auth-digest=shared \
--enable-autoindex=shared \
--enable-cern-meta=shared \
--enable-cgi=shared \
--enable-dav=shared \
--enable-dav-fs=shared \
--enable-dir=shared \
--enable-env=shared \
--enable-expires=shared \
--enable-file-cache=shared \
--enable-headers=shared \
--enable-include=shared \
--enable-log-config=shared \
--enable-mime=shared \
--enable-mime-magic=shared \
--enable-negotiation=shared \
--enable-rewrite=shared \
--enable-setenvif=shared \
--enable-speling=shared \
--enable-ssl=shared \
--enable-unique-id=shared \
--enable-usertrack=shared \
--enable-vhost-alias=shared \
--disable-auth-anon \
--disable-charset-lite \
--disable-disk-cache \
--disable-mem-cache \
--disable-cache \
--disable-deflate \
--disable-ext-filter \
--disable-case-filter \
--disable-case-filter-in \
--disable-example \
--disable-proxy \
--disable-proxy-connect \
--disable-proxy-ftp \
--disable-proxy-http \
--disable-status \
--disable-asis \
--disable-info \
--disable-suexec \
--disable-cgid \
--with-z \
--with-ssl \
--with-mpm=prefork
make;make install
echo "Apache2 install done"
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.local
sleep 1
cd ../
echo " PHP and Etc INstall "
sleep 2
tar zxvf zlib-1.2.1.tar.gz
cd zlib-1.2.1
./configure
make
make install
cp -f *.h /usr/local/include/
cd ..
tar zxvf freetype-2.1.5.tar.gz
cd freetype-2.1.5
./configure
make
make install
cd ..
tar zxvf libpng-1.2.5.tar.gz
cd libpng-1.2.5
make -f scripts/makefile.linux
cp -f *.h /usr/local/include/
cp -f lib* /usr/local/lib/
cd ../
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure
make
make install
cp -f libjpeg.a /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf gd-2.0.34.tar.gz
cd gd-2.0.34
./configure
make
make install
cp -f libgd* /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf php-5.*.*.tar.*
cd php-5.*.*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mod_charset \
--with-charset=euc_kr \
--with-language=korean \
--with-openssl \
--with-zlib \
--with-iconv \
--with-gd=/usr/local \
--with-ttf \
--with-png \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-gmp \
--with-xml \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/tmp/mysql.sock \
--disable-posix \
--disable-rpath \
--enable-safe-mode \
--enable-magic-quotes \
--enable-bcmath \
--enable-dio \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-ftp \
--enable-socket \
--enable-pear \
--enable-shmop \
--enable-mbstring
make;make install
sed -i '867iAddType application/x-httpd-php .html .htm .php .php4' /usr/local/apache2/conf/httpd.conf
sed -e '426d' /usr/local/apache2/conf/httpd.conf > httpd.conf
sed -i '426iDirectoryIndex index.html index.htm index.cgi index.php index.php3 index.php4' /usr/local/apache2/conf/httpd.conf
touch /usr/local/apache2/htdocs/apm_ver.php;chmod 755 /usr/local/apache2/htdocs/apm_ver.php
echo "<?
phpinfo();
?>" >> /usr/local/apache2/htdocs/apm_ver.php
cp php.ini-dist /usr/local/lib/php.ini
cd ../
./chg /usr/local/lib/php.ini "register_globals = Off" "register_globals = On"
./chg /usr/local/lib/php.ini "upload_max_filesize = 2M" "upload_max_filesize = 8M"
./chg /usr/local/lib/php.ini "allow_url_fopen = On" "allow_url_fopen = Off"
echo " Zend install"
sleep 2
tar xvfz ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
cd ZendOptimizer*
mkdir -p /usr/local/Zend
cp data/5_1_x_comp/ZendOptimizer.so /usr/local/Zend
echo "[Zend]" >> /usr/local/lib/php.ini
echo "zend_optimizer.optimization_level=1023" >> /usr/local/lib/php.ini
echo "zend_extension=/usr/local/Zend/ZendOptimizer.so" >> /usr/local/lib/php.ini
chmod 700 /usr/local/apache2/conf
/usr/local/apache2/bin/httpd -t
sleep 2
/usr/local/apache2/bin/apachectl start
echo "All Done' View This Site *** http://your ip/apm_ver.php
Have a nice day!!"
exit 0
APO 아파치, php, 오라클 설치 스크립트
#!/bin/sh
tar zxvf httpd-2*.tar.gz
# 아파치 경로가 절대경로로 지정되었기 때문에 버전이 변경되면 다시 변경.
./chg httpd-2.0.59/server/mpm/prefork/prefork.c "define DEFAULT_SERVER_LIMIT 256" "define DEFAULT_SERVER_LIMIT 2048"
cd httpd-2*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local/apache2 \
--enable-access=shared \
--enable-actions=shared \
--enable-alias=shared \
--enable-auth=shared \
--enable-auth-dbm=shared \
--enable-auth-digest=shared \
--enable-autoindex=shared \
--enable-cern-meta=shared \
--enable-cgi=shared \
--enable-dav=shared \
--enable-dav-fs=shared \
--enable-dir=shared \
--enable-env=shared \
--enable-expires=shared \
--enable-file-cache=shared \
--enable-headers=shared \
--enable-include=shared \
--enable-log-config=shared \
--enable-mime=shared \
--enable-mime-magic=shared \
--enable-negotiation=shared \
--enable-rewrite=shared \
--enable-setenvif=shared \
--enable-speling=shared \
--enable-ssl=shared \
--enable-unique-id=shared \
--enable-usertrack=shared \
--enable-vhost-alias=shared \
--disable-auth-anon \
--disable-charset-lite \
--disable-disk-cache \
--disable-mem-cache \
--disable-cache \
--disable-deflate \
--disable-ext-filter \
--disable-case-filter \
--disable-case-filter-in \
--disable-example \
--disable-proxy \
--disable-proxy-connect \
--disable-proxy-ftp \
--disable-proxy-http \
--disable-status \
--disable-asis \
--disable-info \
--disable-suexec \
--disable-cgid \
--with-z \
--with-ssl \
--with-mpm=prefork
make;make install
echo "Apache2 install done"
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.local
sleep 1
cd ../
echo " PHP and Etc INstall "
sleep 2
tar zxvf zlib-1.2.1.tar.gz
cd zlib-1.2.1
./configure
make
make install
cp -f *.h /usr/local/include/
cd ..
tar zxvf freetype-2.1.5.tar.gz
cd freetype-2.1.5
./configure
make
make install
cd ..
tar zxvf libpng-1.2.5.tar.gz
cd libpng-1.2.5
make -f scripts/makefile.linux
cp -f *.h /usr/local/include/
cp -f lib* /usr/local/lib/
cd ../
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure
make
make install
cp -f libjpeg.a /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf gd-2.0.34.tar.gz
cd gd-2.0.34
./configure
make
make install
cp -f libgd* /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf php-5.*.*.tar.*
cd php-5.*.*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mod_charset \
--with-charset=euc_kr \
--with-language=korean \
--with-openssl \
--with-zlib \
--with-iconv \
--with-gd=/usr/local \
--with-ttf \
--with-png \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-gmp \
--with-xml \
--with-oci8=instantclient,/usr/lib/oracle \
--disable-posix \
--disable-rpath \
--enable-safe-mode \
--enable-magic-quotes \
--enable-bcmath \
--enable-dio \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-ftp \
--enable-socket \
--enable-pear \
--enable-shmop \
--enable-mbstring
make;make install
sed -i '867iAddType application/x-httpd-php .html .htm .php .php4' /usr/local/apache2/conf/httpd.conf
sed -e '426d' /usr/local/apache2/conf/httpd.conf > httpd.conf
sed -i '426iDirectoryIndex index.html index.htm index.cgi index.php index.php3 index.php4' /usr/local/apache2/conf/httpd.conf
touch /usr/local/apache2/htdocs/apm_ver.php;chmod 755 /usr/local/apache2/htdocs/apm_ver.php
echo "<?
phpinfo();
?>" >> /usr/local/apache2/htdocs/apm_ver.php
cp php.ini-dist /usr/local/lib/php.ini
cd ../
./chg /usr/local/lib/php.ini "register_globals = Off" "register_globals = On"
./chg /usr/local/lib/php.ini "upload_max_filesize = 2M" "upload_max_filesize = 8M"
./chg /usr/local/lib/php.ini "allow_url_fopen = On" "allow_url_fopen = Off"
echo " Zend install"
sleep 2
tar xvfz ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
cd ZendOptimizer*
mkdir -p /usr/local/Zend
cp data/5_1_x_comp/ZendOptimizer.so /usr/local/Zend
echo "[Zend]" >> /usr/local/lib/php.ini
echo "zend_optimizer.optimization_level=1023" >> /usr/local/lib/php.ini
echo "zend_extension=/usr/local/Zend/ZendOptimizer.so" >> /usr/local/lib/php.ini
chmod 700 /usr/local/apache2/conf
/usr/local/apache2/bin/httpd -t
sleep 2
/usr/local/apache2/bin/apachectl start
echo "All Done' View This Site *** http://your ip/apm_ver.php
Have a nice day!!"
exit 0
tar zxvf httpd-2*.tar.gz
# 아파치 경로가 절대경로로 지정되었기 때문에 버전이 변경되면 다시 변경.
./chg httpd-2.0.59/server/mpm/prefork/prefork.c "define DEFAULT_SERVER_LIMIT 256" "define DEFAULT_SERVER_LIMIT 2048"
cd httpd-2*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local/apache2 \
--enable-access=shared \
--enable-actions=shared \
--enable-alias=shared \
--enable-auth=shared \
--enable-auth-dbm=shared \
--enable-auth-digest=shared \
--enable-autoindex=shared \
--enable-cern-meta=shared \
--enable-cgi=shared \
--enable-dav=shared \
--enable-dav-fs=shared \
--enable-dir=shared \
--enable-env=shared \
--enable-expires=shared \
--enable-file-cache=shared \
--enable-headers=shared \
--enable-include=shared \
--enable-log-config=shared \
--enable-mime=shared \
--enable-mime-magic=shared \
--enable-negotiation=shared \
--enable-rewrite=shared \
--enable-setenvif=shared \
--enable-speling=shared \
--enable-ssl=shared \
--enable-unique-id=shared \
--enable-usertrack=shared \
--enable-vhost-alias=shared \
--disable-auth-anon \
--disable-charset-lite \
--disable-disk-cache \
--disable-mem-cache \
--disable-cache \
--disable-deflate \
--disable-ext-filter \
--disable-case-filter \
--disable-case-filter-in \
--disable-example \
--disable-proxy \
--disable-proxy-connect \
--disable-proxy-ftp \
--disable-proxy-http \
--disable-status \
--disable-asis \
--disable-info \
--disable-suexec \
--disable-cgid \
--with-z \
--with-ssl \
--with-mpm=prefork
make;make install
echo "Apache2 install done"
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.local
sleep 1
cd ../
echo " PHP and Etc INstall "
sleep 2
tar zxvf zlib-1.2.1.tar.gz
cd zlib-1.2.1
./configure
make
make install
cp -f *.h /usr/local/include/
cd ..
tar zxvf freetype-2.1.5.tar.gz
cd freetype-2.1.5
./configure
make
make install
cd ..
tar zxvf libpng-1.2.5.tar.gz
cd libpng-1.2.5
make -f scripts/makefile.linux
cp -f *.h /usr/local/include/
cp -f lib* /usr/local/lib/
cd ../
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure
make
make install
cp -f libjpeg.a /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf gd-2.0.34.tar.gz
cd gd-2.0.34
./configure
make
make install
cp -f libgd* /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf php-5.*.*.tar.*
cd php-5.*.*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mod_charset \
--with-charset=euc_kr \
--with-language=korean \
--with-openssl \
--with-zlib \
--with-iconv \
--with-gd=/usr/local \
--with-ttf \
--with-png \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-gmp \
--with-xml \
--with-oci8=instantclient,/usr/lib/oracle \
--disable-posix \
--disable-rpath \
--enable-safe-mode \
--enable-magic-quotes \
--enable-bcmath \
--enable-dio \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-ftp \
--enable-socket \
--enable-pear \
--enable-shmop \
--enable-mbstring
make;make install
sed -i '867iAddType application/x-httpd-php .html .htm .php .php4' /usr/local/apache2/conf/httpd.conf
sed -e '426d' /usr/local/apache2/conf/httpd.conf > httpd.conf
sed -i '426iDirectoryIndex index.html index.htm index.cgi index.php index.php3 index.php4' /usr/local/apache2/conf/httpd.conf
touch /usr/local/apache2/htdocs/apm_ver.php;chmod 755 /usr/local/apache2/htdocs/apm_ver.php
echo "<?
phpinfo();
?>" >> /usr/local/apache2/htdocs/apm_ver.php
cp php.ini-dist /usr/local/lib/php.ini
cd ../
./chg /usr/local/lib/php.ini "register_globals = Off" "register_globals = On"
./chg /usr/local/lib/php.ini "upload_max_filesize = 2M" "upload_max_filesize = 8M"
./chg /usr/local/lib/php.ini "allow_url_fopen = On" "allow_url_fopen = Off"
echo " Zend install"
sleep 2
tar xvfz ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
cd ZendOptimizer*
mkdir -p /usr/local/Zend
cp data/5_1_x_comp/ZendOptimizer.so /usr/local/Zend
echo "[Zend]" >> /usr/local/lib/php.ini
echo "zend_optimizer.optimization_level=1023" >> /usr/local/lib/php.ini
echo "zend_extension=/usr/local/Zend/ZendOptimizer.so" >> /usr/local/lib/php.ini
chmod 700 /usr/local/apache2/conf
/usr/local/apache2/bin/httpd -t
sleep 2
/usr/local/apache2/bin/apachectl start
echo "All Done' View This Site *** http://your ip/apm_ver.php
Have a nice day!!"
exit 0
APM All install script
APM 설치 최초 스크립트
#!/bin/sh
#make:05/09/07
#edit:07/6/07
echo "Commnad condition"
sleep 1
chgrp wheel /usr/bin/finger
chgrp wheel /usr/bin/nslookup
chgrp wheel /usr/bin/gcc
chgrp wheel /usr/bin/whereis
chgrp wheel /usr/bin/cc
chgrp wheel /usr/bin/c++
chgrp wheel /usr/bin/make
chgrp wheel /usr/bin/pstree
chgrp wheel /usr/bin/rlog
chgrp wheel /usr/bin/rlogin
chgrp wheel /usr/bin/which
chgrp wheel /usr/bin/who
chgrp wheel /usr/bin/w
chgrp wheel /bin/mail
chgrp wheel /usr/sbin/sendmail
chgrp wheel /usr/lib/sendmail
chgrp wheel /usr/bin/top
chgrp wheel /usr/bin/free
chgrp wheel /usr/bin/last
chgrp wheel /usr/bin/wget
chgrp wheel /etc/hosts
chgrp wheel /etc/hosts.deny
chgrp wheel /etc/hosts.allow
chgrp wheel /etc/named.conf
chgrp wheel /bin/df
chgrp wheel /bin/grep
chgrp wheel /bin/egrep
chgrp wheel /bin/ping
chgrp wheel /bin/netstat
chgrp wheel /usr/bin/ftp
chgrp wheel /usr/bin/whereis
chgrp wheel /usr/bin/rz
chgrp wheel /usr/bin/sz
chgrp wheel /bin/ps
chgrp wheel /bin/dmesg
chgrp wheel /usr/bin/finger
chgrp wheel /usr/bin/last
chmod 750 /usr/bin/finger
chmod 750 /usr/bin/nslookup
chmod 750 /usr/bin/gcc
chmod 750 /usr/bin/whereis
chmod 750 /usr/bin/cc
chmod 750 /usr/bin/c++
chmod 750 /usr/bin/make
chmod 750 /usr/bin/pstree
chmod 750 /usr/bin/rlog
chmod 750 /usr/bin/rlogin
chmod 750 /usr/bin/which
chmod 750 /usr/bin/who
chmod 750 /usr/bin/w
chmod 750 /bin/mail
chmod 750 /usr/sbin/sendmail
chmod 750 /usr/lib/sendmail
chmod 750 /usr/bin/top
chmod 750 /usr/bin/free
chmod 750 /usr/bin/last
chmod 750 /usr/bin/wget
chmod 750 /etc/hosts
chmod 750 /bin/ps
sleep 1
echo "Done"
echo "Commnad condition"
sleep 1
userdel adm
userdel lp
userdel shutdown
userdel halt
userdel news
userdel uucp
userdel operator
userdel game
userdel gopher
userdel sync
groupdel adm
groupdel lp
groupdel games
groupdel gopher
groupdel ftp
groupdel dip
groupdel news
groupdel uucp
groupdel games
groupdel dip
chkconfig --level 345 acpid off
chkconfig --level 345 anacron off
chkconfig --level 345 apmd off
chkconfig --level 345 atd off
chkconfig --level 345 autofs off
chkconfig --level 345 cpuspeed off
chkconfig --level 345 cups off
chkconfig --level 345 dovecot on
chkconfig --level 345 gpm off
chkconfig --level 345 haldaemon off
chkconfig --level 345 iiim off
chkconfig --level 345 irqbalance off
chkconfig --level 345 isdn off
chkconfig --level 345 kudzu off
chkconfig --level 345 mdmonitor off
chkconfig --level 345 messagebus off
chkconfig --level 345 microcode_ctl off
chkconfig --level 345 netfs off
chkconfig --level 345 nfslock off
chkconfig --level 345 openibd off
chkconfig --level 345 pcmcia off
chkconfig --level 345 portmap off
chkconfig --level 345 rawdevices off
chkconfig --level 345 readahead off
chkconfig --level 345 readahead_early off
chkconfig --level 345 rpcgssd off
chkconfig --level 345 rpcidmapd off
chkconfig --level 345 saslauthd on
chkconfig --level 345 smartd off
chkconfig --level 345 vsftpd on
chkconfig --level 345 xfs off
chmod -R 700 /etc/rc.d/init.d/*
chmod 600 /etc/xinetd.conf
mv services /etc/services
sleep 1
echo " mysql install "
sleep 2
tar zxvf mysql-4.*.*
cd mysql-4.*.*
CFLAGS="-static -O2 -march=i686 -funroll-loops" \
CXXFLAGS="-static -O2 -march=i686 -funroll-loops -felide-constructors -fno-exceptions -fno-rtti" \
./configure --prefix=/usr/local/mysql \
--with-charset=euckr \
--disable-shared \
--enable-assembler \
--with-thread-safe-client \
--with-mysqld-user="mysql" \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--with-readline \
--without-debug \
--without-docs
sleep 2
make;make install
rm -rf /etc/my.cnf
cp /usr/local/mysql/share/mysql/my-huge.cnf /etc/my.cnf
/usr/local/mysql/bin/mysql_install_db
/usr/sbin/useradd mysql -M -s /bin/false
chown -R root /usr/local/mysql
chown -R mysql.mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
echo "/usr/local/mysql/bin/mysqld_safe --language=korean --user=mysql -O max_connections=500 -O max_connect_error=999999999 &" >> /etc/rc.d/rc.local
ps -auxwww | grep mysqld
sleep 2
echo "PATH=\$PATH:.:/usr/local/mysql/bin" >> /etc/profile
source /etc/profile
echo "mysql install done!"
cd ../
tar zxvf httpd-2*.tar.gz
# 아파치 경로가 절대경로로 지정되었기 때문에 버전이 변경되면 다시 변경해야함.
./change httpd-2.0.59/server/mpm/prefork/prefork.c "define DEFAULT_SERVER_LIMIT 256" "define DEFAULT_SERVER_LIMIT 2048"
cd httpd-2*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local/apache2 \
--enable-access=shared \
--enable-actions=shared \
--enable-alias=shared \
--enable-auth=shared \
--enable-auth-dbm=shared \
--enable-auth-digest=shared \
--enable-autoindex=shared \
--enable-cern-meta=shared \
--enable-cgi=shared \
--enable-dav=shared \
--enable-dav-fs=shared \
--enable-dir=shared \
--enable-env=shared \
--enable-expires=shared \
--enable-file-cache=shared \
--enable-headers=shared \
--enable-include=shared \
--enable-log-config=shared \
--enable-mime=shared \
--enable-mime-magic=shared \
--enable-negotiation=shared \
--enable-rewrite=shared \
--enable-setenvif=shared \
--enable-speling=shared \
--enable-ssl=shared \
--enable-unique-id=shared \
--enable-usertrack=shared \
--enable-vhost-alias=shared \
--disable-auth-anon \
--disable-charset-lite \
--disable-disk-cache \
--disable-mem-cache \
--disable-cache \
--disable-deflate \
--disable-ext-filter \
--disable-case-filter \
--disable-case-filter-in \
--disable-example \
--disable-proxy \
--disable-proxy-connect \
--disable-proxy-ftp \
--disable-proxy-http \
--disable-status \
--disable-asis \
--disable-info \
--disable-suexec \
--disable-cgid \
--with-z \
--with-ssl \
--with-mpm=prefork
make;make install
echo "Apache2 install done"
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.local
sleep 1
cd ../
echo " PHP and Etc INstall "
sleep 2
tar zxvf zlib-1.2.1.tar.gz
cd zlib-1.2.1
./configure
make
make install
cp -f *.h /usr/local/include/
cd ..
tar zxvf freetype-2.1.5.tar.gz
cd freetype-2.1.5
./configure
make
make install
cd ..
tar zxvf libpng-1.2.5.tar.gz
cd libpng-1.2.5
make -f scripts/makefile.linux
cp -f *.h /usr/local/include/
cp -f lib* /usr/local/lib/
cd ../
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure
make
make install
cp -f libjpeg.a /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf gd-2.0.34.tar.gz
cd gd-2.0.34
./configure
make
make install
cp -f libgd* /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf php-5.*.*.tar.*
cd php-5.*.*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-openssl \
--with-zlib \
--with-iconv \
--with-gd=/usr/local \
--with-ttf \
--with-png \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-gmp \
--with-xml \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/tmp/mysql.sock \
--disable-debug \
--disable-posix \
--disable-rpath \
--enable-safe-mode \
--enable-magic-quotes \
--enable-bcmath \
--enable-dio \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-ftp \
--enable-socket \
--enable-mbstring
make;make install
sed -i '867iAddType application/x-httpd-php .html .htm .php .php4' /usr/local/apache2/conf/httpd.conf
sed -e '426d' /usr/local/apache2/conf/httpd.conf > httpd.conf
sed -i '426iDirectoryIndex index.html index.htm index.cgi index.php index.php3 index.php4' /usr/local/apache2/conf/httpd.conf
touch /usr/local/apache2/htdocs/apm_ver.php;chmod 755 /usr/local/apache2/htdocs/apm_ver.php
echo "<?
phpinfo();
?>" >> /usr/local/apache2/htdocs/apm_ver.php
cp php.ini-dist /usr/local/lib/php.ini
cd ../
./change.sh /usr/local/lib/php.ini "register_globals = Off" "register_globals = On"
./change.sh /usr/local/lib/php.ini "upload_max_filesize = 2M" "upload_max_filesize = 8M"
./change.sh /usr/local/lib/php.ini "allow_url_fopen = On" "allow_url_fopen = Off"
echo " Zend install"
sleep 2
tar xvfz ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
cd ZendOptimizer*
mkdir -p /usr/local/Zend
cp data/5_1_x_comp/ZendOptimizer.so /usr/local/Zend
echo "[Zend]" >> /usr/local/lib/php.ini
echo "zend_optimizer.optimization_level=1023" >> /usr/local/lib/php.ini
echo "zend_extension=/usr/local/Zend/ZendOptimizer.so" >> /usr/local/lib/php.ini
chmod 700 /usr/local/apache2/conf
/usr/local/apache2/bin/httpd -t
sleep 2
/usr/local/apache2/bin/apachectl start
/usr/local/mysql/bin/mysqld_safe --language=korean --user=mysql -O max_connections=500 -O max_connect_error=999999999 &
ps -auxwww | grep httpd
cd ../
echo " SSH & VSFTPD Work! "
sleep 2
./change.sh /etc/ssh/sshd_config "#PermitRootLogin yes" "PermitRootLogin no"
./change.sh /etc/vsftpd/vsftpd.conf "#enable for standalone mode" "chroot_local_user=YES"
./change.sh /etc/vsftpd/vsftpd.conf "anonymous_enable=YES" "anonymous_enable=NO"
/sbin/service xinetd restart
echo "All Done' View This Site *** http://your ip/apm_ver.php
Have a nice day!!"
exit 0
#!/bin/sh
#make:05/09/07
#edit:07/6/07
echo "Commnad condition"
sleep 1
chgrp wheel /usr/bin/finger
chgrp wheel /usr/bin/nslookup
chgrp wheel /usr/bin/gcc
chgrp wheel /usr/bin/whereis
chgrp wheel /usr/bin/cc
chgrp wheel /usr/bin/c++
chgrp wheel /usr/bin/make
chgrp wheel /usr/bin/pstree
chgrp wheel /usr/bin/rlog
chgrp wheel /usr/bin/rlogin
chgrp wheel /usr/bin/which
chgrp wheel /usr/bin/who
chgrp wheel /usr/bin/w
chgrp wheel /bin/mail
chgrp wheel /usr/sbin/sendmail
chgrp wheel /usr/lib/sendmail
chgrp wheel /usr/bin/top
chgrp wheel /usr/bin/free
chgrp wheel /usr/bin/last
chgrp wheel /usr/bin/wget
chgrp wheel /etc/hosts
chgrp wheel /etc/hosts.deny
chgrp wheel /etc/hosts.allow
chgrp wheel /etc/named.conf
chgrp wheel /bin/df
chgrp wheel /bin/grep
chgrp wheel /bin/egrep
chgrp wheel /bin/ping
chgrp wheel /bin/netstat
chgrp wheel /usr/bin/ftp
chgrp wheel /usr/bin/whereis
chgrp wheel /usr/bin/rz
chgrp wheel /usr/bin/sz
chgrp wheel /bin/ps
chgrp wheel /bin/dmesg
chgrp wheel /usr/bin/finger
chgrp wheel /usr/bin/last
chmod 750 /usr/bin/finger
chmod 750 /usr/bin/nslookup
chmod 750 /usr/bin/gcc
chmod 750 /usr/bin/whereis
chmod 750 /usr/bin/cc
chmod 750 /usr/bin/c++
chmod 750 /usr/bin/make
chmod 750 /usr/bin/pstree
chmod 750 /usr/bin/rlog
chmod 750 /usr/bin/rlogin
chmod 750 /usr/bin/which
chmod 750 /usr/bin/who
chmod 750 /usr/bin/w
chmod 750 /bin/mail
chmod 750 /usr/sbin/sendmail
chmod 750 /usr/lib/sendmail
chmod 750 /usr/bin/top
chmod 750 /usr/bin/free
chmod 750 /usr/bin/last
chmod 750 /usr/bin/wget
chmod 750 /etc/hosts
chmod 750 /bin/ps
sleep 1
echo "Done"
echo "Commnad condition"
sleep 1
userdel adm
userdel lp
userdel shutdown
userdel halt
userdel news
userdel uucp
userdel operator
userdel game
userdel gopher
userdel sync
groupdel adm
groupdel lp
groupdel games
groupdel gopher
groupdel ftp
groupdel dip
groupdel news
groupdel uucp
groupdel games
groupdel dip
chkconfig --level 345 acpid off
chkconfig --level 345 anacron off
chkconfig --level 345 apmd off
chkconfig --level 345 atd off
chkconfig --level 345 autofs off
chkconfig --level 345 cpuspeed off
chkconfig --level 345 cups off
chkconfig --level 345 dovecot on
chkconfig --level 345 gpm off
chkconfig --level 345 haldaemon off
chkconfig --level 345 iiim off
chkconfig --level 345 irqbalance off
chkconfig --level 345 isdn off
chkconfig --level 345 kudzu off
chkconfig --level 345 mdmonitor off
chkconfig --level 345 messagebus off
chkconfig --level 345 microcode_ctl off
chkconfig --level 345 netfs off
chkconfig --level 345 nfslock off
chkconfig --level 345 openibd off
chkconfig --level 345 pcmcia off
chkconfig --level 345 portmap off
chkconfig --level 345 rawdevices off
chkconfig --level 345 readahead off
chkconfig --level 345 readahead_early off
chkconfig --level 345 rpcgssd off
chkconfig --level 345 rpcidmapd off
chkconfig --level 345 saslauthd on
chkconfig --level 345 smartd off
chkconfig --level 345 vsftpd on
chkconfig --level 345 xfs off
chmod -R 700 /etc/rc.d/init.d/*
chmod 600 /etc/xinetd.conf
mv services /etc/services
sleep 1
echo " mysql install "
sleep 2
tar zxvf mysql-4.*.*
cd mysql-4.*.*
CFLAGS="-static -O2 -march=i686 -funroll-loops" \
CXXFLAGS="-static -O2 -march=i686 -funroll-loops -felide-constructors -fno-exceptions -fno-rtti" \
./configure --prefix=/usr/local/mysql \
--with-charset=euckr \
--disable-shared \
--enable-assembler \
--with-thread-safe-client \
--with-mysqld-user="mysql" \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--with-readline \
--without-debug \
--without-docs
sleep 2
make;make install
rm -rf /etc/my.cnf
cp /usr/local/mysql/share/mysql/my-huge.cnf /etc/my.cnf
/usr/local/mysql/bin/mysql_install_db
/usr/sbin/useradd mysql -M -s /bin/false
chown -R root /usr/local/mysql
chown -R mysql.mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
echo "/usr/local/mysql/bin/mysqld_safe --language=korean --user=mysql -O max_connections=500 -O max_connect_error=999999999 &" >> /etc/rc.d/rc.local
ps -auxwww | grep mysqld
sleep 2
echo "PATH=\$PATH:.:/usr/local/mysql/bin" >> /etc/profile
source /etc/profile
echo "mysql install done!"
cd ../
tar zxvf httpd-2*.tar.gz
# 아파치 경로가 절대경로로 지정되었기 때문에 버전이 변경되면 다시 변경해야함.
./change httpd-2.0.59/server/mpm/prefork/prefork.c "define DEFAULT_SERVER_LIMIT 256" "define DEFAULT_SERVER_LIMIT 2048"
cd httpd-2*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local/apache2 \
--enable-access=shared \
--enable-actions=shared \
--enable-alias=shared \
--enable-auth=shared \
--enable-auth-dbm=shared \
--enable-auth-digest=shared \
--enable-autoindex=shared \
--enable-cern-meta=shared \
--enable-cgi=shared \
--enable-dav=shared \
--enable-dav-fs=shared \
--enable-dir=shared \
--enable-env=shared \
--enable-expires=shared \
--enable-file-cache=shared \
--enable-headers=shared \
--enable-include=shared \
--enable-log-config=shared \
--enable-mime=shared \
--enable-mime-magic=shared \
--enable-negotiation=shared \
--enable-rewrite=shared \
--enable-setenvif=shared \
--enable-speling=shared \
--enable-ssl=shared \
--enable-unique-id=shared \
--enable-usertrack=shared \
--enable-vhost-alias=shared \
--disable-auth-anon \
--disable-charset-lite \
--disable-disk-cache \
--disable-mem-cache \
--disable-cache \
--disable-deflate \
--disable-ext-filter \
--disable-case-filter \
--disable-case-filter-in \
--disable-example \
--disable-proxy \
--disable-proxy-connect \
--disable-proxy-ftp \
--disable-proxy-http \
--disable-status \
--disable-asis \
--disable-info \
--disable-suexec \
--disable-cgid \
--with-z \
--with-ssl \
--with-mpm=prefork
make;make install
echo "Apache2 install done"
echo "/usr/local/apache2/bin/apachectl start" >> /etc/rc.local
sleep 1
cd ../
echo " PHP and Etc INstall "
sleep 2
tar zxvf zlib-1.2.1.tar.gz
cd zlib-1.2.1
./configure
make
make install
cp -f *.h /usr/local/include/
cd ..
tar zxvf freetype-2.1.5.tar.gz
cd freetype-2.1.5
./configure
make
make install
cd ..
tar zxvf libpng-1.2.5.tar.gz
cd libpng-1.2.5
make -f scripts/makefile.linux
cp -f *.h /usr/local/include/
cp -f lib* /usr/local/lib/
cd ../
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure
make
make install
cp -f libjpeg.a /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf gd-2.0.34.tar.gz
cd gd-2.0.34
./configure
make
make install
cp -f libgd* /usr/lib/
cp -f *.h /usr/local/include/
cd ../
tar zxvf php-5.*.*.tar.*
cd php-5.*.*
CFLAGS="-O2 -march=i686 -funroll-loops -fPIC"; export CFLAGS
./configure \
--prefix=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-openssl \
--with-zlib \
--with-iconv \
--with-gd=/usr/local \
--with-ttf \
--with-png \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-gmp \
--with-xml \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/tmp/mysql.sock \
--disable-debug \
--disable-posix \
--disable-rpath \
--enable-safe-mode \
--enable-magic-quotes \
--enable-bcmath \
--enable-dio \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-ftp \
--enable-socket \
--enable-mbstring
make;make install
sed -i '867iAddType application/x-httpd-php .html .htm .php .php4' /usr/local/apache2/conf/httpd.conf
sed -e '426d' /usr/local/apache2/conf/httpd.conf > httpd.conf
sed -i '426iDirectoryIndex index.html index.htm index.cgi index.php index.php3 index.php4' /usr/local/apache2/conf/httpd.conf
touch /usr/local/apache2/htdocs/apm_ver.php;chmod 755 /usr/local/apache2/htdocs/apm_ver.php
echo "<?
phpinfo();
?>" >> /usr/local/apache2/htdocs/apm_ver.php
cp php.ini-dist /usr/local/lib/php.ini
cd ../
./change.sh /usr/local/lib/php.ini "register_globals = Off" "register_globals = On"
./change.sh /usr/local/lib/php.ini "upload_max_filesize = 2M" "upload_max_filesize = 8M"
./change.sh /usr/local/lib/php.ini "allow_url_fopen = On" "allow_url_fopen = Off"
echo " Zend install"
sleep 2
tar xvfz ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
cd ZendOptimizer*
mkdir -p /usr/local/Zend
cp data/5_1_x_comp/ZendOptimizer.so /usr/local/Zend
echo "[Zend]" >> /usr/local/lib/php.ini
echo "zend_optimizer.optimization_level=1023" >> /usr/local/lib/php.ini
echo "zend_extension=/usr/local/Zend/ZendOptimizer.so" >> /usr/local/lib/php.ini
chmod 700 /usr/local/apache2/conf
/usr/local/apache2/bin/httpd -t
sleep 2
/usr/local/apache2/bin/apachectl start
/usr/local/mysql/bin/mysqld_safe --language=korean --user=mysql -O max_connections=500 -O max_connect_error=999999999 &
ps -auxwww | grep httpd
cd ../
echo " SSH & VSFTPD Work! "
sleep 2
./change.sh /etc/ssh/sshd_config "#PermitRootLogin yes" "PermitRootLogin no"
./change.sh /etc/vsftpd/vsftpd.conf "#enable for standalone mode" "chroot_local_user=YES"
./change.sh /etc/vsftpd/vsftpd.conf "anonymous_enable=YES" "anonymous_enable=NO"
/sbin/service xinetd restart
echo "All Done' View This Site *** http://your ip/apm_ver.php
Have a nice day!!"
exit 0
피드 구독하기:
글 (Atom)