본문 바로가기

Linux

LXC 설치 후 cgroup namespace 요구할 때 lxc를 설치후 lxc-chkconfig를 실행해보면 아래와 같이 cgroup namespace가 required로 나오는 경우가 있다.# lxc-checkconfig--- Namespaces ---Namespaces: enabledUtsname namespace: enabledIpc namespace: enabledPid namespace: enabledUser namespace: enabledNetwork namespace: enabledMultiple /dev/pts instances: enabled --- Control groups ---Cgroup: enabledCgroup namespace: requiredCgroup device: enabledCgroup sched: enabledCgroup.. 더보기
add-apt-repository 설치 [출처] http://lifeonubuntu.com/ubuntu-missing-add-apt-repository-command/ 아래와 같이 설치한다.$ sudo apt-get install software-properties-common python-software-properties 더보기
Fedora kernel source install # uname -r4.2.3-300.fc23.x86_64# yum install kernel-devel-4.2.3-300.fc23 더보기
Numix theme, source code pro 폰트, docky 설치 및 적용 1. 테마 설치참고: http://www.noobslab.com/2014/04/install-numix-icon-packs-in-ubuntulinux.htmlsudo apt-add-repository ppa:numix/ppasudo apt-get updatesudo apt-get install numix-gtk-theme numix-icon-theme numix-icon-theme-circle 2. 테마 적용 (우분투 트윅이 설치되어 있지 않은 경우)sudo apt-add-repository ppa:tualatrix/ppa sudo apt-get updatesudo apt-get install ubuntu-tweak3. adobe의 source code pro 폰트 적용 (그러나 개인적으로는 이 폰트 별.. 더보기
/etc/init.d/rc.local이 실행되지 않는다? ubuntu 15.10에서 /etc/init.d/rc.local이 실행되지 않음을 발견.아마도 부팅 초기화 과정이 예전과는 달라졌기 때문인 듯 하다. (systemd 때문인듯. 자세히 추적하는건 귀찮..)결론부터 이야기하면, 따로 추가해야할 초기화 과정이 있다면 /etc/rc.local에 추가해 주면 된다. 더보기
우분투 서버에 수동으로 DNS 설정하기 /etc/network/interfaces에 아래와 같이 dns 목록을 추가해도 되지만, dns-nameservers 168.126.63.1 8.8.8.8 위 방법으로 dns 설정이 적용 되지 않는 경우 아래와 같이 /etc/resolvconf/resolv.conf.d/base에 추가해 주면 된다.nameserver 168.126.63.1 만약 위와 같이 해도 안된다면 route 명령으로 gateway가 정상적으로 추가되어 있는지 확인 후, 안되어 있다면 아래와 같이 추가해 줘야 한다. (gateway가 192.168.0.1일 경우)sudo route add default gw 192.168.0.1 eth0 더보기
SSH 연결 유지 /etc/ssh/sshd_config 파일에 아래 내용을 추가한다.ClientAliveInterval 0 더보기
우분투 리눅스 WIFI 설정 추가 1. iwlist scan 명령으로 wlan0 등의 무선랜 인터페이스명을 확인한다.2. wpa_passphrase 명령으로 접속할 ssid의 암호화된 키 값을 확인한다.$ wpa_passphrase testssid testpw1234 network={ssid="testssid"#psk="testpw1234"psk=c25e9856c9680ae89c4326109344948c2c8bdc205371ca888dd016410ac62161}3. /etc/network/interfaces에 아래와 같이 추가한다.auto wlan0iface wlan0 inet dhcpwpa-ssid testssid wpa-psk c25e9856c9680ae89c4326109344948c2c8bdc205371ca888dd016410ac6.. 더보기
Finding a process that is using specific network port If you want to find a process that is using specific network port - for example, udp 123 -, you can use 'fuser' command as following: # fuser -n udp 123 end. 더보기
redmine 관리자 암호를 잃어버렸을 때 redmine 관리자 암호 설정 방법.bitnami로 설치했으며, redmine버전은 2.5.1이다. 1. redmine 설치 폴더로 이동.2. 환경변수를 설정한다.source scripts/setenv.sh 3. apps/redmine/htdocs로 이동.4. 관리자 id를 확인한다.script/rails runner -e production 'puts User.find(:first, :conditions => {:admin => true}).name' 5. 관리자 암호를 설정한다.script/rails runner -e production 'user = User.find(:first, :conditions => {:admin => true}) ; user.password, user.password_c.. 더보기