Engineering/Linux 42

CentOS 6 text 모드에서 GUI 모드로

CentOS 6 가 설치된(설치한지 한참되어서 업그레이드 하기 힘든) 서버에 그래픽 모드와 함께 브라우저가 꼭 필요한 상황이 생겼다. 텍스트 브라우져인 lynx 로는 해결이 안되는 문제(lynx 도 지원하는 사이트만 된다. 우리나라 사이트들은 흠...)라 어쩔 수 없이 그놈(GNOME) 과 파이어폭스가 필요했다. 구글에서 열심히 찾아보니깐 CentOS 6 에서는 다음과 같은 명령어로 바로 설치할 수 있다.# yum groupinstall "Desktop" "Desktop Platfrom" "X Window System" "Fonts"# startx 그외 "Environment" 나오는 구글 게시물들은 무시하고 위에꺼만 하자.

Engineering/Linux 2018.07.19

ffmpeg install on CentOS

FFmpeg install on CentOS 동영상 파일 변환용으로 많이 사용하는 오픈소스 프로그램인 FFmpeg 를 CentOS 에서 설치하기 위해 yum 으로 검색하면 기본 repository 에서는 안나온다. ffmpeg 사이트에서 직접 소스를 다운받아서 컴파일할 수도 있겠지만 바이너리만 설치하고 싶다. 그래서 찾아보니 다음과 같이 하면 yum 으로 설치할 수 있다. CentOS 7.X# rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm# yum install f..

Engineering/Linux 2017.10.19

NodeJS 설치 on CentOS 7

NodeJS 설치 on CentOS 7 CentOS 7 에서 nodejs 를 설치하려면 다음과 같은 오류를 만난다. (설치된 CentOS 버전 : 7.2.X) # yum install nodejs npmLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: ftp.daumkakao.com * epel: mirror.premi.st * extras: ftp.daumkakao.com * updates: ftp.daumkakao.comResolving Dependencies--> Running transaction check---> Package nodejs.x86_64 1:6.11.1-1.el7 wil..

Engineering/Linux 2017.09.12

linux cmd 쉘에서 json 파일 이쁘게 보기

linux cmd 쉘에서 json 파일 이쁘게 보기 화이트 스페이스(tab, space) 문자로 구분안되는 json 파일을 보기 쉽게 하기 위해, 웹을 이용한다거나 tool 을 설치를 할 수도 있겠지만 python 으로 간단하게 볼 수 있다. # more repositories.json {"Repositories":{"docker.io/centos":{"docker.io/centos:latest":"sha256:328edcd84f1bbf868bc88e4ae37afe421ef19be71890f59b4b2d8ba48414b84d","docker.io/centos@sha256:26f74cefad82967f97f3eeee f88c1b6262f9b42bc96f2ad61d6f3fdf544759b8":"sha256:..

Engineering/Linux 2017.08.31

virbr0 인터페이스 비활성화 on CentOS

virbr0 인터페이스 비활성화 CentOS 설치 후 virbr0 라는 인터페이스가 보인다. 어떤 java 프로그램에서 원래 호스트의 인터페이스로 통신을 안하고 이 인터페이스로 연결되는 경우가 있다. NAT 에서 사용하는 거라 네트워크 패킷 관련된 기능이 없는 일반 프로그램 환경에서는 필요없으니, 사용안하도록 다음 명령어로 비활성화한다. # virsh net-list# virsh net-destroy default# virsh net-list# service libvirtd status# service libvirtd stop# chkconfig libvirtd off 도움받은 곳https://www.cyberciti.biz/faq/linux-kvm-disable-virbr0-nat-interface/

Engineering/Linux 2017.03.22

방화벽 설정 on CentOS 7

CentOS 7 은 기존 iptables 를 사용하지않고 firewalld 라는 명령어로 방화벽 설정을 할 수 있다. 새로 추가된 기능을 사용해보면 좋겠지만, 배우는 비용이 있으니 기존 방식대로 설정하는 방법을 사용해보자. 1. firewalld 서비스 비활성화# systemctl stop firewalld# systemctl mask firewalld 2. iptables-services 패키지 설치# yum install iptables-services 3. iptables 서비스 활성화# systemctl enable iptables 4. 방화벽 서비스 시작# systemctl start iptables 5. 방화벽 설정 내용 확인# iptables -L -n 6. 방화벽 설정 변경- outboun..

Engineering/Linux 2015.12.23

Ubuntu 에 bitnami Redmine 및 플러그인 설치하기

Ubuntu 서버에 Redmine 설치하는 방법으로 가장 편한것이 bitnami 에서 지원하는 Redmine 스택을 이용하는 것이다.bitnami 에는 윈도우 용 설치파일도 지원한다. bitnami-redmine 설치- 3.X 대도 있지만, 플러그인들이 테스트가 안된 것들이 많아서 2.6 버전으로 설치함# lsbitnami-redmine-2.6.3-0-linux-x64-installer.run # ./bitnami-redmine-2.6.3-0-linux-x64-installer.runLanguage Selection Please select the installation language[1] English - English[2] Spanish - Español[3] Japanese - 日本語[4] Kor..

Engineering/Linux 2015.04.20

CentOS 7 에서 mariaDB 설치

CentOS 6 과는 아주 약간 달라진 CentOS 7 에서 mariaDB 설치 및 서비스 설정법 mariaDB 서버 설치: "yum install mysql" 명령어로 해도 mariaDB 가 설치된다. 이젠 확실히 mariaDB 로 넘어간듯하다. # yum install mariadbLoading mirror speeds from cached hostfile * base: centos.mirror.cdnetworks.com * epel: epel.mirror.srv.co.ge * extras: centos.mirror.cdnetworks.com * updates: centos.mirror.cdnetworks.comResolving Dependencies--> Running transaction chec..

Engineering/Linux 2015.01.12