서버 등 운영체제(OS)/Linux (38) 썸네일형 리스트형 error: insufficient permission for adding an object to repository database .git/objects 해결방법 1. Repair Permissions After you have identified and fixed the underlying cause (see below), you'll want to repair the permissions: cd /path/to/repo.git sudo chgrp -R groupname . sudo chmod -R g+rwX . find . -type d -exec chmod g+s '{}' + Note if you want everyone to be able to modify the repository, you don't need the chgrp and you will want to change the chmod to sudo chmod -R a+rwX . If y.. [Ubuntu] socat 을 사용한 포트 포워딩 Port forwarding 회사에서 22포트로 외부로 나가는게 불가능해서, 내 서버의 ssh 는 22002로 변경을 해둔 상태인데, b 서버에 접근할일이 생겼다. 근데 곧장 sftp 를 쓰고자 하는데 ... 그럼 패킷을 포워딩 하면 어떨까 해서 방법을 찾아보니 iptables 로 하는방법이 있긴 하지만 매우 복잡, 비권장이라는 것에 정보를 더 찾아보니 socat 이라는게 존재했다. 사용법은 매우 간단하다. Redirect TCP port 443 in localhost to checkwebcam.com port 80.socat TCP-LISTEN:443,fork TCP:checkwebcam.com:80 fork parameter is required so that socat fork a new process for every con.. history 명령 재 실행 리눅스는 이전에 명령들을 기억합니다. shell > history 를 치면 이전에 입력했던 명령어들이 나타납니다. 실행했던 명령어 리스트중 어떤 명령어를 실행시키고 싶으면 다음과 같이 합니다. shell > !번호 를 입력하면 그 번호의 명령어를 실행합니다. SSL 웹서버 시작시 암호 입력 안하기 SSL인증서를 적용한 이후 웹서버 시작시에 암호를 묻는 경우가 있다. 아래처럼 진행해서 nokey 처리를 하면 된다. # openssl rsa -in 기존KEY -out 생성KEY 물론 기존 key 파일은 백업을 먼저 해두자. [Ubuntu] W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: The link above provides detailed explanation with screenshots. It also has some other simple methods that could be tried before doing this manually. Since it is not accessible from some regions let me describe the method that worked for me. Go to the OpenPGP Public Key Server. There you can enter your key into the Search String field, leaving everything else as is, then click "Search!". When sea.. -bash: ./test.sh: /bin/bash^M: bad interpreter: 그런 파일이나 디렉토리가 없음 vim 에서 vim에서는 dos mode의 화일을 읽어도 화면에 ^M을 표시하지 않습니다. 대신 밑에 [dos] 라고 나타납니다. 다음과 같이 해서 unix mode로.. 즉 ^M을 빼는것입니다. :set fileformat=unix 반대로 unix mode에서 dos mode로 바꾸고 싶다면 :set fileformat=dos CentOS 7 로케일 변경 CentOS 7 에서 로케일 변경하는 방법입니다. 현재 사용가능한 한글관련 로케일# localectl list-locales | grep -i ko ko_KR ko_KR.euckr ko_KR.utf8 kok_IN kok_IN.utf8 korean korean.euc ru_RU.koi8r ru_UA.koi8u tg_TJ.koi8t uk_UA.koi8u utf8 로 변경 # localectl set-locale LANG=ko_KR.utf8 수동으로 변경시는 /etc/locale.conf 파일을 만들어 아래 내용 추가LANG=ko_KR.utf8 서버 부팅 후 로케일 설정 확인# locale LANG=ko_KR.utf8 LC_CTYPE="ko_KR.utf8" LC_NUMERIC="ko_KR.utf8" LC_TI.. CentOS7 MRTG Install [1] Install Apache HTTP Server, refer to here. [2] Install MRTG, SNMP. [root@dlp ~]# yum -y install net-snmp net-snmp-utils mrtg [3] Configure SNMP (Simple Network Management Protocol). [root@dlp ~]# vi /etc/snmp/snmpd.conf # line 41: comment out #com2sec notConfigUser default public # line 74,75: uncomment and change # change to your local network for "mynetwork" section # change comunity name .. 이전 1 2 3 4 5 다음