set nocompatible                      "오리지널 vi와 호환하지 않음


set autoindent                        "자동 들여쓰기 설정 

set cindent                           "C 프로그래밍용 자동 들여쓰기 설정

set smartindent                       "스마트한 들여쓰기 설정

set foldmethod=indent                 "최대 깊이는 1개로 고정, 접은 것을 열려면 zo, 다시 접으려면 zc 누름

set foldnestmax=1                     "최대 깊이는 1개로 고정



set wrap                              "자동 줄바꿈 설정

set nowrap                            "자동 줄바꿈 해제

set nowrapscan                        "검색시 문서의 끝에서 처음으로 돌아가지 않음

set nobackup                          "백업 파일을 만들지 않도록 설정

set visualbell                        "키를 잘못 눌렀을 때 화면 프레시 설정

set ruler                             "화면 우측 하단에 현재 커서의 위치(줄,칸) 표시

set shiftwidth=[n]                    "자동 들여쓰기 설정 ex) set shiftwidth=4

set number                            "행번호 표시 (set nu 설정과 동일)

set fencs=[enc-type]                  "문서 인코딩 타입 설정 ex) set fencs=utf-8

set fencs=ucs-bom,utf-8,euc-kr.latin1 "한글 파일은 euc-kr로, 유니코드는 유니코드로

set fileencoding=[enc-type]           "파일 저장 인코딩 타입 설정 ex) set fileencoding=utf-8


set tenc=[enc-type]                   "터미널 인코딩 설정 ex) set tenc=utf-8 " syntax에 따라 접어두기


set expandtab                         "탭 대신 스페이스 설정

set hlsearch                          "검색어 강조 설정 (set his 설정과 동일)

set ignorecase                        "검색시 대소문자 무시 (set ic 설정과 동일)

set tabstop=[n]                       "탭 칸 설정 ex) set tabstop=4

set incsearch                         "키워드 입력시 점진적 검색 설정

filetype indent on                    "파일 종류에 따른 구문 강조 설정

set background=[light/dark]           "하이라이팅 설정 ex) set background=dark

colorscheme desert                    "vi 색상 테마 설정

set backspace=[eol/start/indent]      "백스페이스 동작시 이전줄 위치 설정 ex) set backspace=[eol/start/indent]

set history=[n]                       "vi 편집 히스토리 저장 개수 설정 ex) set history=1000


syntax on                             "구문 강조 사용 설정

colorscheme [colorscheme 이름]        "구문강조 테마




반응형

□ COMODO 백신 패치 

아래와 같이 COMODO에서 일부 문제 ( Filesystem filter driver is not loaded )가 발생할 경우 해결 방법은 아래와 같다.

 

□ 문제 해결 1 - 권한 확인

위 이미지에서 Run Dianostics 버튼을 클릭할 경우 아래와 같이 표시된다면

1) COMODO를 종료한다.

/opt/COMODO/load_cav.sh stop

2) 메세지 창의 내용을 얌전히... 그리고 저항없이 실행해 본다.

sudo /opt/COMODO/cavdiagnostic

필시 아래와 같은 메세지 창이 출력된다. Yes 버튼 클릭~

3) cmdavd 재실행

해당 메세지 창이 나타나면 /etc/init.d/cmdavd restart를 실행해야 한다.

sudo /etc/init.d/cmdavd restart

4) 아래와 같이 나타난다면 우울하게도 "실패"한 경우이다.

다만, 이 경우 시스템 리부팅한 후 다시 COMODO 백신을 수행하면 해결이 되는 경우가 있다.

그러나 시스템 리부팅 후에도 적용이 안된다면 아래 "문제해결 2"를 수행한다.

 

□ 문제 해결 2 - 패치 수행

1) driver 다운로드 "redirfs,avflt,dazuko -- kernel 3.18 or lower" 

 

다운로드 사이트 : http://www.bondoffamily-net.com/~kinta-chan/techknow/DownLoad/DownLoad.html

 

해당 사이트로 이동하거나 아래 표에서 STABLE 항목의 drivier.tar와 fix_rebuild_driver.sh을 다운받는다.

Support Kernel

Status

Driver

Diff

kernel 2.6.37 or lower

 -

-

-

kernel 4.1 or lower 

STABLE 

redirfs 0.11E12A

Mar 7,2015

driver.tar

fix_rebuild_driver.sh

diff

avflt 0.6F

dazuko 2.3.9B

If post-setup.sh is build error, execute "sudo fix_rebuild_driver.sh".
But d_child error only
.   

kernel 4.2 or lower

BETA

redirfs 0.11E12A

Mar 7,2015

driver.tar

fix_rebuild_driver.sh

diff

avflt 0.6F

dazuko 2.3.9B

If post-setup.sh is build error, execute "sudo fix_rebuild_driver.sh".
But d_child error only
.

2) 다운받은 파일을 모두 COMODE 디렉토리로 이동시킨다.

sudo mv driver.tar /opt/COMODO/
sudo mv fix_rebuild_driver.sh /opt/COMODO/

 

3) 다운로드 파일 Install

tar 파일을 압축해제할 필요가 없으며 아래 명령을 수행한다.

cd /opt/COMODO
source ./fix_rebuild_driver.sh

경우에 따라 언어 선택을 다시 물어보는데 이때 역시 해당 driver가 영문 버전과 호환되므로 반드시 언어 선택은 Language 8 - English 로 선택해야 한다.

 

4) cmdavd를 재실행한다.

sudo /etc/init.d/cmdavd restart

 

5) 필요시 시스템 Reboot 할 수도 있다.

 

6) COMODO vaccine을 재실행한다.

/opt/COMODO/load_cav.sh restart

 

□ 참고 - COMODO 백신 설치

COMODO 백신 설치는 아래 블로그 내용을 참고한다.

관련 URL → driz2le.tistory.com/226

 

Ubuntu COMODO Vaccine Install

□ COMODO 백신 설치 COMODO 백신 설치를 위해 아래와 같이 수행한다. sudo dpkg --install cav-linux_x64.deb 아마도 대부분 COMODO 백신을 설치하면 아래와 같은 라이브러리 의존성 문제가 종종 발생한다. $ sud..

driz2le.tistory.com

 

반응형

 COMODO 백신 설치

COMODO 백신 설치를 위해 아래와 같이 수행한다.

sudo dpkg --install cav-linux_x64.deb

 

아마도 대부분 COMODO 백신을 설치하면 아래와 같은 라이브러리 의존성 문제가 종종 발생한다.

$ sudo dpkg -i cav-linux_x64.deb

(Reading database ... 246463 files and directories currently installed.)

Preparing to unpack cav-linux_x64.deb ...

Unpacking cav-linux (1.1.268025-1) over (1.1.268025-1) ...

 

Uninstallation succeed!

 

dpkg: dependency problems prevent configuration of cav-linux:

 cav-linux depends on libssl0.9.8 (>= 0.9.8m-1); however:

  Package libssl0.9.8 is not installed.

 

dpkg: error processing package cav-linux (--install):

 dependency problems - leaving unconfigured

Errors were encountered while processing:

 cav-linux

 

 COMODO 백신 설치 에서 발생하는 의존성 문제 해결방법

 

해당 문제는 보이는 그대로 libssl0.9.8 를 설치해야하며 해결 방법은 아래와 같다.

 

1) libssl0.9.8 다운로드 - 아래 링크를 이용하거나 해당 포스트에 첨부파일을 다운로드한다.

- 다운로드 URL → http://mirrors.kernel.org/ubuntu/pool/universe/o/openssl098/libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb

 

- 첨부파일

 

libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb
다운로드

 

2) libssl0.9.8 설치 - 아래 명령어를 이용해서 설치한다.

sudo dpkg --install libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb

 

3) COMODO 백신 다운로드 - COMODO 사이트에서 신규 버전을 받거나 아래 링크를 이용한다.

COMODO 사이트 URL → https://www.comodo.com/

 

Comodo | Global Leader in Cyber Security Solutions

Comodo, the leading Cybersecurity Platform offers best Antivirus, Internet Security, Endpoint Security and Website Security for Customers and Enterprise.

www.comodo.com

COMODE 백업 사이트 URL → http://cdn.download.comodo.com/cis/download/installs/linux/cav-linux_x64.deb

 

4) COMODO 백신 설치    

sudo dpkg --install cav-linux_x64.deb

 

5) COMODO 초기 환경 설정 및 첫 실행

sudo /opt/COMODO/post_setup.sh

 

post_setup이 끝나면 바탕화면에 아이콘이 생성되어 있다. 향후 해당 아이콘을 수행하면 된다.

 

기타 - 자세한 설치 방법

위 5)번 이후를 좀 더 자세히 설명하면 아래와 같다. 리눅스 패키지 설치 울렁증이 있으신 분들은 보시면서 설치하길 바란다.

sudo /opt/COMODO/post_setup.sh

을 실행하면 아래와 같이 출력되며 이후 장문의 라이센스 동의에 대한 내용이 출력된다.

# sudo /opt/COMODO/post_setup.sh

 

COMODO Antivirus for Linux 1.1

 

 

End User License Agreement

 

 

Please review the end user license agreement.

 

 

Press Enter to display it.

 

 

END USER LICENSE AND SUBSCRIBER AGREEMENT 

COMODO SECURITY SOFTWARE AND REMOTE PERSONAL COMPUTER SERVICE 

IMPORTANT – PLEASE READ THESE TERMS CAREFULLY BEFORE DOWNLOADING, INSTALLING, OR 

USING COMODO’S ANTIVIRUS, FIREWALL OR INTERNET SECURITY SOFTWARE AND REMOTE PERSO

... 중략 ...

Do you agree with this license?[Y/n]: 

 

이때 당연히 Y를 입력하면

/opt/COMODO/post_setup.sh: line 52: uuidgen: command not found

 

Free Registration

 

 

Receive the latest COMODO products news, updates and offers 

COMODO will NOT share your information with any third parties.

Please input your email address(optional): 

1. Arabic, Saudi Arabia

2. Bulgarian, Bulgaria

3. Chinese, People's Republic of China

4. Chinese, Taiwan

5. Croatian, Croatia

6. Czech, Czech Republic

7. Dutch, Netherlands

8. English, United States

9. Estonian, Estonia

10. French, France

11. German, Germany

12. Greek, Greece

13. Hungarian, Hungary

14. Italian, Italy

15. Polish, Poland

16. Portuguese, Brazil

17. Russian, Russia

18. Serbian, Serbia and Montenegro

19. Slovak, Slovakia

20. Spanish, Spain

21. Swedish, Sweden

22. Turkish, Turkey

23. Ukrainian, Ukraine

Please select the language[number,default:8]:

 

아쉽게도 한글은 안보이며 8번 English, United States을 선택한다. 

 Build the RedirFS kernel modules for real-time protection...

 

 

Then linux kernel source or linux kernel headers for your current kernel version 4.15.0-91-generic can not be found.

Please install the kernel source or kernel headers for 4.15.0-91-generic, then run this script again.

make -C /lib/modules/`uname -r`/build M=/tmp/driver/redirfs modules

make[1]: *** /lib/modules/4.15.0-91-generic/build: No such file or directory.  Stop.

Makefile:3: recipe for target 'all' failed

make: *** [all] Error 2

make -C /lib/modules/`uname -r`/build M=/tmp/driver/redirfs modules_install

make[1]: *** /lib/modules/4.15.0-91-generic/build: No such file or directory.  Stop.

Makefile:8: recipe for target 'install' failed

make: *** [install] Error 2

/opt/COMODO/post_setup.sh: line 417: /sbin/depmod: No such file or directory

/opt/COMODO/post_setup.sh: line 419: /sbin/modprobe: No such file or directory

 

RedirFS kernel modules installation failed.

 

$Stopping cmdagent: The cmdagent stopped successfully!

$Starting cmdagent: The cmdagent started successfully!

The cmgdaemon is not running!

$Starting cmgdaemon: The cmgdaemon started successfully!

 

COMODO Antivirus is successfully configured, you can start it from Menu or Desktop.

 

경우에 따라 failed... 등 여러가지 우울한 로그가 출력되기도 하지만 

COMODO Antivirus is successfully configured, you can start it from Menu or Desktop. 

문구가 확인되면 설치가 완료된 것이다.

 

 

□ COMODO 백신 실행

데스크탑 바탕화면에 아이콘을 클릭하거나 (만약 아이콘이 보이지 않는다면) 아래 를 수행한다.

 /opt/COMODO# ./load_cav.sh start

 

아래와 같이 윈도우가 나타나면 일단 성공한 것이다.

□ 오류 패치

아래와 같은 오류 패치를 위해서는 다음과 같은 절차를 따른다.

관련 URL →driz2le.tistory.com/227

 

COMODO vaccine - Filesystem filter driver is not loaded 패치

sudo /etc/init.d/cmdavd restart □ COMODO 백신 패치 아래와 같이 COMODO에서 일부 문제 ( Filesystem filter driver is not loaded )가 발생할 경우 해결 방법은 아래와 같다. □ 문제 해결 1 - 권한 확인 위..

driz2le.tistory.com

 

반응형

백신을 돈주고 사기에 망설여질 때가 있다. 특히, 나처럼 PC와 노트북을 포함해서 여러 대인 경우는 ...

무엇보다 우분투를 설치한 PC는 백신 정보도 거의 없어서 항상 구글링을 하게 된다. 

아래는 대표적 운영체제에 대한 무료 백신을 정리한 글이다. 



원문URL → https://www.geckoandfly.com/6731/microsoft-windows-7-virus-protection-free-virus-and-trojan-removal-security-software/


기록일자 →  2018.01.03



25 [ Complete List ] Free Antivirus for Microsoft Windows 10, Apple Mac OS X and Linux Ubuntu RedHat


Updated: January 3, 2018


13 Free Antivirus for Microsoft Windows 7, 8, 8.1 and 10

  1. avast! Free Antivirus 2015
  2. AVG Free edition
  3. Moon Secure Antivirus
  4. Avira Free Antivir 2015
  5. BitDefender Antivirus Free Edition
  6. IObit Malware Fighter 3 Free
  7. ClamWin Free Antivirus
  8. Comodo Free Anti-Virus 8
  9. Malwarebytes’ Anti-Malware Free
  10. Immunet Protect Free Antivirus
  11. Panda Cloud Antivirus Free
  12. Microsoft Security Essentials
  13. Cysec Antivirus

7 Free Antivirus for Linux, Ubuntu and RedHat

  1. Clam AV 0.98.6.
  2. Comodo Antivirus for Linux
  3. F-PROT Antivirus for Linux Workstations 6
  4. eScan for Linux Desktop
  5. Kaspersky Anti-Virus for Linux File Server 32 bit and 64 bit
  6. Panda Antivirus for Linux 7

5 Free Antivirus for Apple Max OS X

  1. avast! antivirus free
  2. Avira Free Antivirus for Mac
  3. Sophos Anti-Virus for Mac
  4. AVG Free Antivirus for Mac
  5. ClamXav – Free Anti-Virus Solution for Mac OS X


반응형

'Linux' 카테고리의 다른 글

conda vs. pip vs. virtualenv  (0) 2018.02.03
VIM 에디터 VIMRC 세팅  (0) 2018.02.03
COMODO vaccine - Filesystem filter driver is not loaded 패치  (0) 2018.01.21
Ubuntu COMODO Vaccine Install  (0) 2018.01.21
Ubuntu 16.04에서 dev c++ 설치하기  (0) 2017.07.22

리눅스 환경에서 c++을 쓰기 위해 많은 삽질을 하곤 합니다.

좀 더 좋은 개발환경(IDE)는 개발자들 모두가 원하는 것이고 이런 욕망이 무수한 삽질을 불러들입니다.

그러나, 만만치 않은 작업이고... 대개의 경우 삽질에 지친 많은 개발자들이 eclipse를 택하고 맙니다.


사실 우분투에서 c++을 특수 목적이 아닌 일반 개발 용도나 study 목적으로 사용하려고 한다면 eclipse는 좋은 방법은 아닙니다. eclipse는 훌륭한 IDE이긴 합니다만,  제대로 입맛에 맞게 하려면 정말 손볼 것이 너무 많고 그렇다고 그냥 쓰기엔 상성이 맞지 않는다고 할까요? 너무 젠틀해서 누구에게나 무난하게 친절한 도련님이나 숙녀분처럼 별로 재미없다고나 할까?


이럴 때 가장 좋은 대안은 wine을 이용해서 window용 c++ 도구를 사용하는 것입니다.

속도 문제를 걱정하시는 분들이 계신데, 전혀 차이 없고요~ 걱정하실 필요가 절대 없습니다.


현재 기준으로 권할 만한 IDE는 단연 dev c++이 좋습니다.


dev C++ version 5 이상 쓰시면 무난합니다. 설치도 깔끔히 잘 됩니다.

WINE 홈페이지에서도 WINE hq 호환성 리스트에 플래티넘으로 인증되어 있고요.


■ 표- dev C++ wine hg 호환성

VersionDescriptionLatest RatingLatest Wine version testedTest resultsComments
4Dev-C++ is an IDE for developing C/C++ programs (for windows).Platinum1.1.1440
4.9.9.2Last version from Bloodshed Software.Silver1.6.210
5Dev-C++ is an IDE for developing C/C++ programs (for windows).Platinum1.9.620



Wine HQ를 이용한 dev C++설치

■ Wine HQ 설치

Wine 설치는 간단합니다 아래는 Ubuntu에서 설치방법입니다. Ubuntu 16.04에서 설치가 잘 됩니다.


$ sudo apt-get install software-properties-common  

$ sudo dpkg --add-architecture i386   ## 중요. 64비트 시스템이라면 32bit도 활성화 ##

$ sudo add-apt-repository ppa:wine/wine-builds

$ sudo apt-get update

$ sudo apt-get install --install-recommends winehq-staging

$ which wine

$ wine --version


 dev C++ 다운로드


다운로드 url https://sourceforge.net/projects/orwelldevcpp/


현재 가장 최신 버전은 Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup.exe 네요.

다운로드가 끝나면 이제 마지막 피날레입니다.


■ dev C++ 설치

~/Downloads$ wine Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup.exe


이후부터는 윈도우 설치와 동일한 화면을 볼 수 있습니다.


■ 기타

다음 대안으로는 visual studio 2110 express 버전이 골드 등급이라고 되어 있는데요.. 

믿지마세요. 사실 상 아래 나와있는 다른 visual studio 형제들처럼 그냥 쓰레기입니다.

굳이 설치하려 하면 web install 버전은 설치가 안되고 full install 버전을 따로 받으셔야 합니다.

그런데 요즘 2010의 경우 full install 버전 찾기가 하늘에 별따기입니다.


■ 표- Visual Studio wine hg 호환성

VersionDescriptionLatest RatingLatest Wine version testedTest resultsComments
2010 (10.0)On April 12, 2010, Microsoft released Visual Studio 2010, codenamed Dev10, and .NET Framework 4.Garbage1.7.44100
2010 (10.0) Express EditionThe free version of Microsoft Visual Studio 2010.Gold1.8.2113
2012 (11.0)This is the commercially released version of Visual Studio 2012 Professional. It uses the .NET framework version 4.5Garbage1.9.240
2012 (11.0) Express EditionThe free version of Microsoft Visual Studio 2012.Garbage1.6.221
2013 (12.0) Express EditionYou can use the tools in Visual Studio Express 2013 for Windows toGarbage1.7.4010
2015 (14.0) Community EditionVisual Studio Community is a free, fully-featured, and extensible IDE for creating modern applications for Windows, Android, and iOS, as well as web applications and cloud services.Garbage1.9.1952




반응형

+ Recent posts