본문 바로가기

관심종목/GNU12

생애 최초 쉘스크립트.. 주기적으로 ping 확인하여 ifconfig로 리셋하기 LCD가 고장난 노트북을 받아 스크린은 때버리고, 본체만 모니터를 붙여 리눅스 머신으로 쓰고 있는데.. 불규칙적으로 NIC가 동작을 멈춰버린다. ifconfig down & up을 해주면 다시 살아나지만.. 얼마 안있다가 또..!! 그래서, 생전 해보지도 관심도 없었던 쉘 스크립트를 짜봤다. 심하게 단촐하지만, 나름 3시간 구글링해가며 성공했다. :) 코드가 부끄럽지만, 과감하게 공개해본다. 나같은 초보도 분명 있을 것이기에.. 조금만 찾아보면 각 라인이 무엇을 의미하는지는 파악할 수 있으리라 보기에 이하 #주석은 생략한다! #!/bin/sh SEC="$1" while [ 1 ];do stat=$(ping -c 1 192.168.0.1|grep -o ttl) if [ "$stat" != "ttl" ];t.. 2013. 6. 16.
CentOS 6 x64 비공식 Repository(ELRepo, EPEL, RepoForge, RPM Fusion, Remi, ATrpms ) 추가하기 CentOS WiKi 내에 Repository 추가 http://wiki.centos.org/AdditionalResources/RepositoriesCentOS 6 Repository 경로 /etc/yum.repos.d/ ** 32bit는 각 경로의 x86_64를 i386으로 변경하면 된다.빠른 미러 자동찾기 yum install yum-plugin-fastestmirror * RPMforge의 새로운 이름이 RepoForge 임.[ELRepo] http://elrepo.org/tiki/tiki-index.php rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://elrepo.org/elrepo-release-6-5.el6.elr.. 2013. 6. 13.
phpmyadmin 설치직후 tracking 에러 $cfg['Servers'][$i]['tracking'] not OK [ Documentation ]“The additional features for working with linked tables have been deactivated. To find out why click here.”If you get above message or $cfg['Servers'][$i]['tracking'] not OK [ Documentation ] message, there may be some errors. I find that many complex solutions exist on the web, and i find a much simple way to solve the problem:Open the con.. 2012. 5. 23.
우분투 서버 배포판 판올림(배포버전 업그레이드) 우분투 배포판 상위버전으로 업그레이드시 사용하는 명령어. 먼저 현재 버전에서 설치된 패키지를 최신으로 업데이트 (이하 명령어는 su 나 sudo 를 해야함) #apt-get update && apt-get upgrade && apt-get dist-upgrade 완료후, 판올림(update-manager-core가 있다면 && 뒷부분만) #apt-get install update-manager-core && do-release-upgrade 버전 자체를 올리는 것은 시간이 좀 걸릴 수 있고, 중간중간 업그레이드에 따른 변경허용요구를 받게 되며 리부팅이 필요하다. 최종 업그레이드 후에~ 첫줄의 명령어를 다시 실행하여 최종적으로 확인을 한번 더 해주도록 하자! ! apt 를 사용할 것이냐, aptitude .. 2010. 10. 12.