Linux 490

리눅스 mac address 변경

리눅스 mac을 자유롭게 변경할수 있다#ifconfig eth0 down#ifconfig eth0 hw ether 00:00:00:00:00:00#ifconfig eth0 up하면 에러가 들것이다#vi /etc/sysconfig/network-scripts/ifcfg-eth0HWADDR=11:11:11:11:11:11위 부분을 00:00:00:00:00:00 으로 변경하면 된다.재부팅 마다 mac 에러가 뜬다#vi /etc/rc.localifconfig eth0 downifconfig eth0 hw ether 00:00:00:00:00:00 ifconfig eth0 up 추가 해주면 된다 다 복잡하다!!http://www.alobbs.com/macchanger/위 사이트가 사라졌다.. 최신버전 소스 다운..

Linux 2012.12.11

redhat 에서 yum 사용하기

redhat 에서 yum 사용이 안된다. 상용 프로그램이니 돈내고 사용을 해야 지원을 해준다.그렇지만 쌍둥이 centos 가 있다 이를 이용해서 yum을 사용하자#cd /etc/yum.repos.d#vi rhel-debuginfo.repo 수정후 안에 있는 데이터 삭제 아래내용으로 대체 [base]name=CentOS-$releasever - Basebaseurl=http://mirror.centos.org/centos/5/os/$basearch/gpgcheck=1 #released updates[update]name=CentOS-$releasever - Updatesbaseurl=http://mirror.centos.org/centos/5/updates/$basearch/gpgcheck=1 사용할 버전..

Linux 2012.11.22

openvas centos 설치

openvas 설치유부투 계열에서는atp-get openvas 를 하면 자동으로 설치가 된다하지만 centos 계열은 yum install openvas 해도 설치가 안된다 선행 작업이 필요하다wget -q -O - http://www.atomicorp.com/installers/atomic |sh이후 yum install openvas 하면 설치가 된다. yum 설치후openvas-check-setup 하면 설치상에 문제가 있다면/tmp/openvas-check-setup.log 을 참조해서 문제해결하면 된다. 모든 문제를 해결했다면openvas-setup으로 프로그램 설치를 한다.

Linux 2012.11.06

samba 설치

- yum으로 설치#yum -y install samba*#yum -y install system-config-samba* (Centos 6.2 설치불가) ※ Yum 설치 방법 외 방법은 귀찮아서.. pass google 찾아보세요 설치 완료후- 계정생성#useradd username#smbpasswd -a pass - 환경설정#system-config-samba (cetnos 6.2 없음) gui 화면으로 설정 가능 수동방법#vi /etc/samba/smb.conf 수정맨밑[share](폴더명)comment = share(폴더설명)path = path(경로)writable = yes(쓰기권한)valid users = username(접근 가능ID)create mode = 0777(생성파일 권한)dire..

Linux 2012.08.23

svn 폴더 권한 주기

SVN 서버에서 특정 폴더 별로 계정권한을 부여할 수 있다.예 ) 디자이너(이미지, 데이터 파일)작업물과 Source 와의 접근 차단을 위해. 폴더 구성/repo/source/design/*/repo/source/source/* designer 는 design 폴더에만 접근을 할 수 있고 개발자는 source 폴더에만 접근을 할 수 있다고 가정 하자. 우선 conf/passwd 파일에 각 인원 별 계정을 추가한다.designer 계정 : happy개발자 계정 : smile conf/authz 파일이 있는데 우선 svn 서버가 이파일을 사용하도록 설정을 해줘야 한다.conf/svnserve.conf 파일을 열어보면 ### authz-db = authz 이것이 주석 처리 되어 있는데 주석을 풀고 저장하면au..

Linux 2012.08.03

autofs 구동시 net 연결이 안될때

autofs 정상적으로 구동중인데 /net/디렉토리 안보일경우 system-config-service 상에 autofs 항목을 보면 Configured Mount Points: ------------------------ /usr/sbin/automount --timeout=60 /home yp auto.home Active Mount Points: -------------------- /usr/sbin/automount --timeout=60 /home yp auto.home 위와 같이 화면이 출력되면 #/usr/sbin/automount --timeout=60 /net program /etc/auto.net 입력후 service autofs restart 하고 시도 해보면 정상적으로 net 이 연결이..

Linux 2012.07.03

yum 설치시 에러

yum 으로 설치하다보면 참 많은 에러들이 나온다. publick key for 어쩌구 저쩌구 is not installed 가 나온다면 #rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5(사용하고 있는버전) 을 하면 정상적으로 yum 설치가 된다 yum-complete-transaction 에러The program yum-complete-transaction is found in the yum-utils package.이와 같이 yum-complete-transaction 에러가 뜬다면#yum install yum-utils한후에#yum-complete-transaction Error: database disk image is molformed뜬다면# yum c..

Linux 2012.06.04

Centos 에 ffmpeg 설치하기

일일이 설치하기 귀찮으니 yum을 이용해서 설치한다.기본 repo로 yum설치가 안되니 #vi /etc/yum.repos.d/Centos-DAG.repo[dag]name=Dag RPM Repository for Red Hat Enterprise Linuxbaseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck=1enabled=1등록 #vi /etc/php.ini[ffmpeg]extension=ffmpeg.so추가 #yum -y install ffmpeg* 혹시Public key for faac-1.26-1.el5.rf.x86_64.rpm is not installed이와 같이 에러가 뜬다면 rpm --import http://apt.s..

Linux 2012.04.20
728x90
반응형