본문 바로가기

Linux

리눅스에서 GUI 환경으로 원격제어 (VNC) 리눅스를 VNC를 이용하여 GUI 환경으로 원격제어 리눅스의 원격을 생각하면 일반적으로 Putty나 SecureCRT 등 SSH나 telnet 등을 이용한 CLI 환경만을 생각하기 쉽습니다.(실제로도 그렇게 많이 사용합니다.) 하지만 Oracle 설치 등 리눅스에서도 GUI 환경이 필요한 경우가 있는데 그런 경우에 사용할 수 있는 것이 VNC입니다. 설치환경 대상 : CentOS 6.7 (192.168.0.123)원격 : Windows 7 설치 [root@localhost ~]# yum -y install tigervnc-server [root@localhost ~]# vi /etc/sysconfig/vncservers...## 최하단에 다음과 같이 추가VNCSERVERS="1:root"VNCSERVER.. 더보기
CentOS에서 NTP 서버 구축하기 (타임서버) CentOS에서 NTP 서버 구축하기 공통 CentOS 6.8에서 구축Server : 192.168.0.127Client : 192.168.0.124 ##NTP 관련 패키지 설치 여부 확인[root@localhost ~]# rpm -qa | grep ntp ##NTP 관련 패키지 설치[root@localhost ~]# yum -y install ntp 설정(Server) [root@localhost ~]# vi /etc/ntp.conf# Hosts on local network are less restricted.#restrict 192.168.1.0 mask 255.255.255.0 nomodify notraprestrict 192.168.0.0 mask 255.255.255.0 nomodify not.. 더보기
CentOS에서 USB 사용하기 (FAT32, NTFS) CentOS에서 USB Memory 사용하기 FAT32 [root@localhost ~]# fdisk -l...Disk /dev/sdc: 8054 MB, 8054112256 bytes255 heads, 63 sectors/track, 979 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x01f4b100 Device Boot Start End Blocks Id System/dev/sdc1 * 1 980 7864320 b W95 FAT32P.. 더보기
fdisk를 통해 파티션 생성하기 fdisk를 통해 파티션 구성하기 /dev/sdc를 구성할 시 (기본값 설정) [root@localhost ~]# fdisk /dev/sdcCommand (m for help): nCommand action e extended p primary partition (1-4)p Partition number (1-4): 1First cylinder (1-652, default 1):Using default value 1Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652): (Enter)Using default value 652 ##타입 변경 (lvm)Command (m for help): tSelected partition 1Hex code (typ.. 더보기
CentOS에서 LVM 설정하기 LVM 설정하기 CentOS 6.8 기준 [root@localhost ~]# fdisk -l...Disk /dev/sdc: 19.3 GB, 19321150464 bytes64 heads, 32 sectors/track, 18426 cylindersUnits = cylinders of 2048 * 512 = 1048576 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000 ## 위와 같이 sdc를 lvm으로 설정fdisk 명령어나, parted 명령어를 통해 파티션 생성Parted를 통한 구축 ## 구축을 끝내고 나면 .. 더보기
MySQL 원격 접속 허용하기 MySQL 원격 접속 허용하기 [root@localhost ~]# mysql -u root -p mysql> use mysql mysql> grant all privileges on *.* to 'root'@'%' identified by '비밀번호';mysql> flush privileges; 위에서 %는 모두 허용을 뜻하고 IP정보를 입력하여 특정 IP 또는 대역을 설정할 수 있다.설정이 끝났다면 재접속한다. 더보기
MySQL 로그인 시 ERROR 1045 (28000) 관련 오류 MySQL 로그인 시 ERROR 1045 (28000) 관련 오류 오류 발생MySQL 로그인 시[root@localhost data]# mysql -u root -pEnter password:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 위와 같은 오류 발생 해결방법 1.비밀번호 변경시mysql> flush privileges;명령어를 통한 적용이 되지 않아서인 경우[root@localhost ~]# /usr/local/mysql/bin/mysqladmin -u root -p shutdown비밀번호 입력[root@localhost ~]# /usr/local/mysql/bin/mysqladmin -u r.. 더보기
MySQL 시작시 PID 에러 해결 MySQL 시작시 PID 에러 해결 [root@localhost ~]# service mysql startStarting MySQL............ ERROR! The server quit without updating PID file (/mydata/localhost.localdomain.pid). MySQL 시작 시 위와 같은 오류 발생[root@localhost ~]# ps -ef | grep mysql* 위 명령어를 통해 프로세스 실행 중인지를 확인대개 mysql이 이미 실행중이어서 발생하는 경우가 많다.[root@localhost ~]# kill -9 숫자위 명령어를 ps -ef 를 통해 알아낸 PID로 강제종료 시킨다.[root@localhost ~]# service mysql stop명.. 더보기
특정 계정에만 su 권한 주기 특정 계정에만 su 권한 주기 특정계정을 wheel그룹에 속하게 한 후, wheel 그룹에만 su 권한을 부여한다. su 파일 수정 [root@localhost ~]# vi /etc/pam.d/su#%PAM-1.0auth sufficient pam_rootok.so# Uncomment the following line to implicitly trust users in the "wheel" group.#auth sufficient pam_wheel.so trust use_uid# Uncomment the following line to require a user to be in the "wheel" group.#auth required pam_wheel.so use_uidauth include syste.. 더보기
Eclipse 설치 Eclipse 설치 (이클립스 설치) 사전작업CentOS 6.8JDK 1.8.0_112JDK설치를 진행해야 한다. 아래 링크를 통해 설치http://itgameworld.tistory.com/85 이클립스 다운https://www.eclipse.org Eclipse 설치 [root@localhost ~]# cd /data[root@localhost ~]# tar zxvf eclipse-inst-linux64.tar.gz[root@localhost ~]# cd eclipse-installer/[root@localhost ~]# ./eclipse-inst 환경에 맞게 설치실행파일 경로[root@localhost ~]# cd /root/eclipse/java-neon/eclipse/[root@localhost.. 더보기