본문 바로가기

Engineering

(97)
관리자 계정으로 프로그램 실행 시 네트워크 드라이브가 보이지 않는 문제 특정 프로그램의 경우에만 네트워크 드라이브가 보이지 않는 문제로 고민하고 있었다. 나중에 생각해보니 해당 프로그램만 관리자 계정으로 실행하고 있었는데 다른 프로그램도 관리자 계정으로 실행하니 네트워크 드라이브가 보이지 않더라. 뭔가 설정이 있을 거라 생각하고 찾아보니 방법이 있었다. 물론 보안성을 이유로 기본 설정이 그리되어 있을 것 같긴 한데, 아무튼 관리자 계정으로도 네트워크드 드라이브를 사용하려면 1. regedit 실행 2. 컴퓨터\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System 3. DWORD(32) 로 다음 항목 생성 "EnableLinkedConnections", 값은 1 저장 후 PC rebooting
evtest - Input device event monitor and query tool Sample 1.In the file /etc/system/logind.conf HandlePowerKey=poweroff or HandlePowerKey section is none? (It is set to handlepowerkey=power off or not at all. Also, after configuration change, it should be tested after rebooing.) 2.Please check the evtest result. # sudo evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Power Button /dev/inpu..
vshpere guest os 강제 종료 등 관리 1. GUI 등으로 Guest OS 를 종료할 수 없을 때 명령어로 실행 # esxcli vm process list (현재 로딩된 Guest OS 를 확인한다.) # esxcli vm process kill --type=hard --world-id=123456 [root@localhost:~] esxcli vm process kill Error: Missing required parameter -w|--world-id Missing required parameter -t|--type Usage: esxcli vm process kill [cmd options] Description: kill Used to forcibly kill Virtual Machines that are stuck and not ..
nc - arbitrary TCP and UDP connections and listens (출처) https://linux.die.net/man/1/nc nc(1) - Linux man page Name nc - arbitrary TCP and UDP connections and listens Synopsis nc [-46DdhklnrStUuvzC] [-i interval] [-p source_port] [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol] [ -x proxy_address[ :port]] [hostname] [port[s]] Description The nc (or netcat) utility is used for just about anything under the sun involving TCP or UDP...
DISK 검사와 read only mount 조치 법 mount 상태가 아래와 같이 ro (read only)로 자주 변경 되는 경우나 ata, I/O error 같은 메시지가 자주 발생하는 경우 등 Storage 문제로 추정되는 상황이 발생하는 경우가 있다. ex 1) # mount rootfs on / type rootfs (rw) /dev/root on / type ext2 (rw) /dev/sda1 on /mnt/kernel type msdos (rw,fmask=0022,dmask=0022,codepage=cp437) /dev/sda2 on /xxx/conf type ext3 (rw,data=ordered) /dev/sda3 on /usr/local type ext3 (rw,data=ordered) none on /proc type proc (rw)..
[터미널 단축기] Ctrl + u : 커서 왼쪽 문자 삭제 (그리고 버퍼 저장) Ctrl + k : 커서 오른쪽 문자 삭제 Ctrl + b : 커서를 왼쪽으로 이동 (왼쪽 화살표 키와 동일) Ctrl + e : 커서를 문자열 끝으로 이동 (END 키와 동일) Ctrl + a : 커서를 문자열 처음으로 이동 (HOME 키와 동일) Ctrl + xx : 커서를 이전 위치로 이동 Ctrl + y : 버퍼 저장내용 붙이기 (삭제된 문자열 삽입) Ctrl + l : clear 명령과 동일 Ctrl + m : enter키 Ctrl + d : 글자 없을 땐 로그아웃, 커서 위치 다음 문자 지움 Alt + d : 커서 위치의 다음 단어 지움 Ctrl + s : 키보드 lock Ctrl + q : 키보드 unlock Ctrl + p : ..
[TIP] 1. 내용 추가 시 자동으로 index 가 증가되는 것을 초기화 하기 ex) mysql> ALTER TABLE mantis_bug_table AUTO_INCREMENT=1; (1부터 시작) Query OK, 0 rows affected (0.03 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> ALTER TABLE mantis_bug_table AUTO_INCREMENT=30001; (30001부터 시작) Query OK, 0 rows affected (0.03 sec) Records: 0 Duplicates: 0 Warnings: 0
OVF Export/Import 에러 관련 1. Export 된 .ovf 등을 import 할 때 아래와 같이 vmdk 파일을 읽지 못하는 에러가 나는 경우가 있다. 이는 VM name 에 공백이 있을 경우 % 와 같은 내용이 추가되는 때 윈도우에서는 이를 인식하지 못한다. .ovf 파일을 열면 와 같은 파일명이 지정된 곳이 있는데 파일이름을 공백포함 실제 이름으로 변경해 준다. 2. Export 를 수행한 ESXi 서버 등이 상위 버전이고 Import 를 수행할 곳이 하위 버전일 경우, 호환성(compatibiltiry) 에러가 발생할 수 있다. Import 할 하위 버전에서 지원하는 VM 버전으로 변경 후 Import 를 수행해야 한다. 마땅히 변경을 수행하는 방법을 찾지 못하면 "VMware vCenter Converter Standalon..
open 된 서비스 찾기 (lsof) (펌) https://devconnected.com/how-to-flush-dns-cache-on-linux/ Finding your local DNS resolver On most Linux systems, the DNS resolver is either “systemd-resolved” or dnsmasq. In order to know if you are dealing with one or another, you can execute the following command $ sudo lsof -i :53 -S Note : so why are we running this command? As DNS runs on port 53, we are looking for the commands associa..
시작프로그램 등록 1. C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp 에 바로가기 등록 (모든 사용자) 2. WindowsKey+R (실행) -> shell:startup 실행 -> 바로가기 등록 (해당 사용자) 작업관리자 -> 시작프로그램에서 등록 확인
[Sendmail/Postfix] [메일서버 도메인 적용] 1. /etc/hosts/hosts /etc/hosts 127.0.0.1 localhost.localdomain localhost test.qahuni.kr test 127.0.1.1 test 125.140.117.5 test.qahuni.kr 2. # hostnamectl set-hostname # hostnamectl set-hostname test.qahuni.kr # hostnamectl Static hostname: root@mail:~# hostnamectl Static hostname: test.qahuni.kr Icon name: computer-vm Chassis: vm Machine ID: 4b8545291b5e497d8c3652bf559f9ba2 Boot ID..
MS Remote Desktop 연결 후 마우스 드래그 시 'c' 문자가 입력되는 문제 (펌) https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/dragging-mouse-in-remote-desktop-results-in/f9591c46-5469-4420-9a9c-46819ae399b0 Gaurav V Replied on July 14, 2012 Hi, 1. Did you make any software or hardware changes on your machine prior to this issue? 2. Have you updated the mouse drivers in the remote computer? 3. Is it working fine in your computer? 4. What is..
CSV 파일 import 1. csv 파일을 해당 DB 폴더에 복사하고 파일 소유를 mysql 로 변경한다. 2. mysql 에서 해당 DB를 선택한 후 다음 명령을 수행한다. LOAD DATA INFILE 'data.csv' INTO TABLE MA_PARTNER FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
Query Log 조회 하기 SELECT TOP 100 creation_time, last_execution_time, total_clr_time, total_clr_time/execution_count AS [Avg CLR Time], last_clr_time, execution_count, SUBSTRING(st.TEXT, (qs.statement_start_offset/2) + 1, ((CASE statement_end_offset WHEN -1 THEN DATALENGTH(st.TEXT) ELSE qs.statement_end_offset END - qs.statement_start_offset)/2) + 1) AS statement_text FROM sys.dm_exec_query_stats AS qs CROSS APPLY..
삭제된 파일 복구하기 파티션A 에 있던 삭제된 파일을 복구하기 위해서는 파티션A에 더 이상의 파일은 생성되지 않은 상태여야 한다. 파티션A 에서 지워진 파일은 파티션B 로 복구한다. apt-get install testdisk testdisk [CREATE] 실행 복구하고자 하는 (삭제된 파티션A) 원본 파티션 선택 [None] 선택 [Advanced] 보여지는 해당 파티션 선택 [List] 적색으로 표시된 삭제된 폴더 또는 파일을 선택 후 c (소문자) 복구할 위치 (파티션B) 선택 후 C (대문자)
Ubuntu apt 패키지 의존성 문제 Ubuntu 에서 apt 로 install 하려는데 다음과 같이 패키지 의존성 문제로 실패하는 경우가 종종 생긴다. (모든 명령은 root 계정이 아니라 사용자 계정에서 sudo 명령으로 수행하는 것이 좋다. 여기서 설명은 편의상 root 계정으로 한다.) root@ubuntu:/opt/test# apt-get install testdisk 패키지 목록을 읽는 중입니다... 완료 의존성 트리를 만드는 중입니다 상태 정보를 읽는 중입니다... 완료 다음을 바로잡으려면 'apt-get -f install'을 실행해 보십시오: 다음 패키지의 의존성이 맞지 않습니다: libperl5.22 : 의존: perl-modules-5.22 (>= 5.22.1-9ubuntu0.5) 하지만 5.22.1-9ubuntu0.3 ..
[Sendmail] dsn=4.0.0, stat=Deferred: Transport endpoint is not connected 특정 도메인으로 메일 발송 시 다음과 같이 문제가 발생하고 메일이 발송되지 않음 Mar 5 11:36:31 mail sendmail[29292]: 0252aV8h029290: to=, ctladdr= (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120336, relay=a.b.c.d. [1.2.3.4], dsn=4.0.0, stat=Deferred: Transport endpoint is not connected deferred 처리되고 발송되지 않다가 sendmail 서비스를 다시 실행하거나 QUEUE 처리가 다시 되는 시점에서야 메일 발송됨. 메일을 발송하는 로컬 서버에서는 패킷 자체가 나가지 않음. telnet으로 a.b.c.d [1.2.3..
[단위] 계약서 등에서 표기하는 수량 단위 참고 BG 가방(BAG) DZ 타스(DOZEN), EA 낱개(EACH) HD 백(HUNDRED) KG 킬로그램(1,000그램)(KILOGRAM) LO 롯트(LOT) MR 미터(METER) PG 포장꾸러미(PACKAGE) RO 로울(두루마리)(ROLL) SE 세트(SET) SH 쉬트매(종이)장폭(SHEET) UN 낱개(UNIT) YD 야드(YARD)
[Office] Outlook 2016/2019 단순 로그인 해제 외 * Outlook 2016, Outlook 2019 및 Office 365 Outlook에서 단순화 된 계정 만들기를 해제하는 방법 (클릭) 레지스트리 편집기 실행 HKEY_CURRENT_USER \ SOFTWARE \ Microsoft \ Office \ 16.0 \ Outlook \ setup 키로 이동 새로만들기 - Dwrod(32비트) 값 추가 후 DisableOffice365SimplifiedAccountCreation 이름 설정 및 값 데이터 1로 설정 레지스트리편집기 종료 후 Outlook 계정 설정 진행 * Office 2019 설치 후 onenote 2016 추가 하기 1. http://www.onenote.com/download 하다의 기타다운드로 설치 2. ms 로그인 후 로그아웃
[POWER] AC power plugs and sockets (펌) https://en.wikipedia.org/wiki/AC_power_plugs_and_sockets AC power plugs and sockets - Wikipedia AC power plugs and sockets connect electric equipment to the alternating current (AC) power supply in buildings and at other sites. Electrical plugs and sockets differ from one another in voltage and current rating, shape, size, and connector type. Differe en.wikipedia.org [TYPE A] https://en.wiki..
[Apache] Status Code HTTP 1.1 status codes [TOP] 100 : Continue 101 : Switching protocols 200 : OK, 에러없이 전송 성공 201 : Created, POST 명령 실행 및 성공 202 : Accepted, 서버가 클라이언트 명령을 받음 203 : Non-authoritative information, 서버가 클라이언트 요구 중 일부만 전송 204 : No content, 클라언트 요구을 처리했으나 전송할 데이터가 없음 205 : Reset content 206 : Partial content 300 : Multiple choices, 최근에 옮겨진 데이터를 요청 301 : Moved permanently, 요구한 데이터를 변경된 임시 URL에서..
[VMWARE] [VMRC] Failed to install hcmon driver 오류 (펌) http://www.befok.net/2018/02/03/vsphere-client-installation-fails-with-failed-to-install-hcmon/ kb2130850 – Uninstall all vSphere clients and start overkb2006486 – Uninstall hcmon and rename hcmon.syskb2053281 – Install .NET 3.5.1
[ufw] 출처 : https://help.ubuntu.com/community/UFW UFW차례IntroductionUFW - Uncomplicated FirewallBasic Syntax and ExamplesDefault rules are fine for the average home userEnable and DisableAllow and Deny (specific rules)Delete Existing RuleServicesStatusLoggingAdvanced SyntaxAllow AccessDeny AccessWorking with numbered rulesEditing numbered rulesAdvanced ExampleInterpreting Log EntriesOther ResourcesIntro..
[service] ubuntu service 등록 관리 16.04 기준 1. 파일 생성 /lib/systemd/system/teamspeak.service /etc/systemd/system/multi-user.target.wants/teamspeak.service -> /lib/systemd/system/teamspeak.service [Unit]Description=TeamSpeak 3 ServerAfter=network.target [Service]WorkingDirectory=/home/teamspeak/User=teamspeakGroup=teamspeakType=forkingExecStart=/home/teamspeak/ts3server_startscript.sh startExecStop=/home/teamspeak/ts3server_startscr..
[Terminal] Serial Terminal Size 변경 Linux Serial 을 사용할 경우 row 수가 기본 24 line 으로 되어 있어 불편하다.이를 조정하는 방법 중 하나. $ sudo stty size 24 80 $ sudo stty rows 80 cols 80 $ sudo stty size 80 80 바로 동작하지 않는데 이 경우 다음 명령 입력 $ sudo screen (특이사항, su - user01 등으로 계정을 바꾸거나 해서 다시 실행하면 안되는 경우가 있다.)
[SAMBA] smb.conf * 기타 보안 이슈를 해결하고 samba 를 이용한 파일 공유 시 conf 예제 [abc] (공유이름) comment = abc folder path = /storage/abc writable = yes valid users = user01, user02 (그룹인 경우 @user) create mask = 0775 directory mask = 0775 browseable = no public = no guest ok = no * 그룹 권한을 관리하기 위해 /storage/a, /storage/b 폴더가 있다고 가정하자. 사용자 계정은 user01, user02 ... user10 까지 있다. user01 ~ user05 는 a 폴더만 samba 접근을 허용하고 user06 ~ user10 은 b 폴더만..
errorcode[1292]\n errormsg:Incorrect datetime value: \'0000-00-00 00:00:00\' for column \ MYSQL 5.7 이전 버전부터 사용하다가 5.7 버전으로 업그레이드 한 경우 발생한다고 한다.INSERT 를 수행할 경우 PHP 에서는 다음과 같은 에러를 발생한다. ============================================================================== DB Access Error - debug_print_backtrace() OUTPUT START ATTENTION: Enabling more debug info will produce path disclosure weakness (CWE-200) Having this additional Information could be useful for reporting issue to development ..
[파일권한] getfacl, setfacl, chacl chmod 로의 권한은 문제가 없는데 읽기 전용 등으로 파일 권한이 이상한 경우가 있다.이 경우 file acl 을 확인한다. getfacl 로 확인하고 setfacl 로 설정한다.기본 설정으로 변경하려면 # chacl -R file명 명령을 수행한다.
[VMWare]VMware® vCenter™ Converter™ 실제 머신을 Virtualization Station용 가상 머신으로 변환 Download VMware® vCenter™ Converter™ from VMware: http://www.vmware.com/products/converter . Before downloading, you must have a VMware account or register a new one * 다음과 같은 에러가 발생할 경우 "A general system error occurred: Network error: HOST 1.1.1.1 key can't be retrieved" Source Machine 이 Linux 인 경우로 SSH key 문제. /etc/hosts.allow 에 ALL:ALL (또는 'ALL:LOCAL, ..
AES-NI OpenSSL 에서 AES-NI를 사용하고 있는 지의 확인을 성능으로 확인하는 방법 (펌) http://ask.xmodulo.com/check-aes-ni-enabled-openssl.html How to check if AES-NI is enabled for OpenSSL on LinuxPosted on November 30, 2016 by Dan Nanni2 CommentsQuestion: I have a Linux server which has Intel AES-NI hardware capability. I would like to check whether currently installed OpenSSL can use AES-NI acceleration.Intel Advanced Encryptio..