디버그모드 부팅

 

mkdir /boot
mount /dev/sda1 /boot
vi /boot/grub/menu.lst

 

-x86 9.0.-r2

l /android-9.0-r2/kernel quiet root=/dev/ram0 SRC=/android-9.0-r2 

d /android-9.0-r2/initrd.img

 

-x86 9.0.-r2 (800x600)

l /android-9.0-r2/kernel quiet root=/dev/ram0 SRC=/android-9.0-r2 video=800x600

d /android-9.0-r2/initrd.img

 

'OS' 카테고리의 다른 글

윈도우] 사용자계정 자동로그인 체크박스 없을때  (0) 2022.05.31
vmware 에서 hyper-v 활성화  (0) 2022.05.26
[윈도우] 항상 NumLock 키 켜기  (0) 2022.04.19
[mysql] 시간 더하기, 빼기  (0) 2022.03.21
duckdns 무료 ddns  (0) 2022.01.08
Posted by 꼬장e
,

레지스트리

HKEY_USERS\.DEFAULT\Control Panel\Keyboard

InitialKeyboardIndicators 값을 2로 수정

Posted by 꼬장e
,

SELECT * FROM 테이블 WHERE CHAR_LENGTH(컬럼) > 갯수;
SELECT * FROM 테이블 WHERE LENGTH(컬럼) > 갯수;

Posted by 꼬장e
,

시간 더하기
DATE_ADD(기준 날짜, INTERVAL)
시간 빼기
DATE_SUB(기준 날짜, INTERVAL)

● DATE_ADD


현재 시간에 1초 더하기
SELECT DATE_ADD(NOW(), INTERVAL 1 SECOND);

현재 시간에 1분 더하기
SELECT DATE_ADD(NOW(), INTERVAL 1 MINUTE);

현재 시간에 1시간 더하기
SELECT DATE_ADD(NOW(), INTERVAL 1 HOUR);

현재 시간에 1일 더하기
SELECT DATE_ADD(NOW(), INTERVAL 1 DAY);

현재 시간에 1달 더하기
SELECT DATE_ADD(NOW(), INTERVAL 1 MONTH);

현재 시간에 1년 더하기
SELECT DATE_ADD(NOW(), INTERVAL 1 YEAR);

현재 시간에 1년 빼기
SELECT DATE_ADD(NOW(), INTERVAL -1 YEAR);

 


● DATE_SUB


현재 시간에 1초 빼기
SELECT DATE_SUB(NOW(), INTERVAL 1 SECOND);

현재 시간에 1분 빼기
SELECT DATE_SUB(NOW(), INTERVAL 1 MINUTE);

현재 시간에 1시간 빼기
SELECT DATE_SUB(NOW(), INTERVAL 1 HOUR);

현재 시간에 1일 빼기
SELECT DATE_SUB(NOW(), INTERVAL 1 DAY);

현재 시간에 1달 더하기
SELECT DATE_SUB(NOW(), INTERVAL 1 MONTH);

현재 시간에 1년 빼기
SELECT DATE_SUB(NOW(), INTERVAL 1 YEAR);

현재 시간에 1년 더하기 (DATE_SUB)
SELECT DATE_SUB(NOW(), INTERVAL -1 YEAR);

 

● FLOOR

  소수점 버리기

 

 

● TIME_TO_SEC

  초로 변환

 

● 현재 시간 초로 환산하여 컬럼 시간을 빼기

  FLOOR(TIME_TO_SEC(DATE_SUB(NOW(), INTERVAL 1 SECOND)) - TIME_TO_SEC(vcUpDate))

Posted by 꼬장e
,

해상도별 도트피치

1920 x 1080  /  27인치  /  0.311
1920 x 1080  /  32인치  /  0.369
2560 x 1440  /  27인치  /  0.233
2560 x 1440  /  32인치  /  0.277
3840 x 2160  /  27인치  /  0.156
3840 x 2160  /  32인치  /  0.184

 

보통 사람이 느끼는 수치는 문자(0.25) 사진(0.19) 전후가 이상적인 도트피치

일반 사용은 44인치 그래픽은 33인치 정도에서 QHD(2560x1440) 와 UHD(3840 x 2160) 차이를 느낌

 

https://pxcalc.com       간편 도트피치 계산

https://www.sven.de/dpi         간편 ppi 계산

 

출처
https://lucycle.tistory.com/58
https://blog.naver.com/PostView.naver?blogId=corinet&logNo=222199690430&parentCategoryNo=&categoryNo=8&viewDate=&isShowPopularPosts=true&from=search

Posted by 꼬장e
,

duckdns 무료 ddns

OS 2022. 1. 8. 23:53

https://www.duckdns.org/

Posted by 꼬장e
,

Windows 시스템 - 설정 - netplwiz 혹은 cmd -> control userpasswords2 했을시 안나올때

 

regedit 실행

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device
DevicePasswordLessBuildVersion 값 0

Posted by 꼬장e
,

현재 상태 확인 

locale

 

수동벼경

vi /etc/locale.conf

LANG="ko_KR.원하는문자셋"

 

명령어로변경

localectl set-locale LANG=ko_KR.utf8

 

이후 재접속하면 변경되어있다

Posted by 꼬장e
,

메인보드 교체후 존재하지 않는 어댑터의 고정ip 구성을 제거 라는 에러가 남

 

cmd 실행후 

set devmgr_show_nonpresent_devices=1 입력

장치관리자 보기에서 숨김 장치 표시

네트워크 어댑터 트리에서 희미한장치 삭제

 

완료수 아이피 입력시 에러 안남

Posted by 꼬장e
,

● 버전 확인
  openssl version

 

● 개인키 생성
  openssl genrsa -des3 -out server.key 2048

● 인증요청서 생성
  openssl req -new -key server.key -out server.csr

 

  Country Name (2 letter code) [XX]: 국가코드(kr)

  State or Province Name (full name) []: 시 이름(Seoul)

  Locality Name (eg, city) [Default City]: 시/군/구(Ansan)

  Organization Name (eg, company) [Default Company Ltd]:회사명(jcompany)

  Organizational Unit Name (eg, section) []: 부서명(mod)

  Common Name (eg, your name or your server's hostname) []: 서비스 도메인명 ( sample.com )

  Email Address []:이메일 주소 (sample@naver.com)

 

● (Optional) 개인키에서 패스워드 제거
  cp server.key server.key.origin
  openssl rsa -in server.key.origin -out server.key
 

  writing RSA key 라고 나오면 완료됨

● 인증서 생성
  openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

● 확인
  ▶개인키
    cat server.key | head -3

  ▶사설인증서
    cat server.crt | head -3

● 개인키와 인증서 설치
  cp server.key /etc/httpd/ssl/
  cp server.crt /etc/httpd/ssl/

● httpd.conf 설정
  # SSL Virtual host add
  NameVirtualHost *:443

  # SSL Virtual host add
  <VirtualHost sample.com:443>
      SSLEngine on
      SSLCertificateFile /etc/httpd/ssl/server.crt
      SSLCertificateKeyFile /etc/httpd/ssl/server.key
      ServerAdmin  master@host.sample.com
      DocumentRoot /home/sample/public_html
      ServerName sample.com
      ErrorLog logs/ssl_sample.com-error_log
      CustomLog logs/ssl_sample.com-access_log common
  </VirtualHost>

  #Redirect
  <VirtualHost *:80>
      ServerAdmin master@host.sample.com
      DocumentRoot /home/sample/public_html
      ServerName sample.com
      ServerAlias www.sample.com

      RewriteEngine On
      RewriteCond %{HTTPS} !on
      RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L]
      ErrorLog logs/host.sample.com-error_log
      CustomLog logs/host.sample.com-access_log common
  </VirtualHost>

Posted by 꼬장e
,