VM 빈공간 삭제 및 이미지 최적화
■ Windowshttps://docs.microsoft.com/ko-kr/sysinternals/downloads/sdeletesdelete64 -z C:■ Linux, MacOS# swap 파티션 또는 파일 초기화swapoff -aswapon -srm -rf /swap.imgcat /dev/zero > /zerossyncrm -f /zeros■ 이미지 최적화 (VMware)”%ProgramFiles(x86)%\VMware\VMware Workstation\vmware-vdiskmanager.exe” -k image.vmdk■ 이미지 최적화 (Hyper-V)PowerShell -Command “optimize-vhd -mode full -path ‘c:\hyper-v\vm_images\image.vhdx'”
polkit error
“unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files” 오류 발생 시… 퍼미션 점검cd /chown root:root .chmod 755 . 실행 후 ls -al / 하여 .과 ..의 퍼미션 확인
[MySQL] Export schema without data
mysqldump –single-transaction –no-data -u root -p’passwd88′ -d MODOOS > gate1z_schema.sql
[MySQL] Export schema without data 더 읽기"
MariaDB 10.4 이상 Replication 방법
[Replication] ==> MariaDB 10.4 이상버전용 (1호기)1. my.cnf 수정vim /etc/my.cnf.d/server.cnf(수정내역)server_id=1log-basename=master1log_bin 2. 서비스 재기동systemctl restart mysql 3. repl 사용자추가 및 권한부여use mysqlcreate user ‘repl’@’%’ identified by ‘gateone12!@’;grant replication slave on *.* to repl;(확인)show variables like ‘server_id’; 4. Replication 적용change master to master_host=’10.10.10.61′, master_user=’repl’, master_password=’gateone12!@’, master_port=3306, master_log_file=’master1-bin.xxxxx’, master_log_pos=xxxx, master_connect_retry=10;==>log_file 및 log_pos 는 slave 서버에서 “show master status;” 로
MariaDB 10.4 이상 Replication 방법 더 읽기"
[OpenWRT] dhcp & DNS Server 끄기
/etc/init.d/dnsmasq disable서비스에 대한 “시작 링크” 제거 합니다. 또는 /etc/config/dhcp 구성 파일을 편집하고 모든 인터페이스에 “ignore 1″을 추가합니다. 그러면 dnsmasq가 실행되지만 해당 인터페이스에는 영향을 주지 않습니다.
[OpenWRT] dhcp & DNS Server 끄기 더 읽기"
내 텍스트 에디터 단축키 바인딩
▶ 기본 편집 키 바인딩 (VSCode 호환)줄 삭제 (Delete Line) Ctrl+Shift+K줄 복사 (Clone Caret Above/Below) Alt+Shift+Up,Down특정 줄 번호로 이동 (Go to Line) Ctrl+G심볼 이동 (Go to Symbol) Ctrl+Shift+O이전 함수 Ctrl+Alt+Up다음 함수 Ctrl+Alt+Down검색 (Find) Ctrl+F치환 (Replace) Ctrl+H다음 찾기 (Find Next) F3앞으로 찾기 (Find Previous) Shift+F3천체 파일 검색 Ctrl+Shift+F천체 파일 치환 Ctrl+Shift+H이전 탭 Ctrl+Tab다음 탭 Ctrl+Shift+Tab전체화면 토글
Windows Store 수동 설치 스크립트
https://github.com/kkkgo/LTSC-Add-MicrosoftStore/releases REM 윈도우 업데이트 시작 (MS Store 사용시 필수!!)SC CONFIG “WUAUSERV” START= AUTOSC START “WUAUSERV” REM 윈도우 업데이트 중지SC STOP “WUAUSERV”SC CONFIG “WUAUSERV” START= DISABLED
Windows Store 수동 설치 스크립트 더 읽기"
rpm 옵션 정리
1. 설치 모드 -i : 패키지 최초설치 시 사용, 이전버전 있으면 설치안됨 -U : 패키지가 설치되어 있지 않다면 설치, 설치되어 있다면 업그레이드 -v : 설치과정을 출력 -h : 설치진행과정을 특수문자”#”으로 표시 -F : 이전 버전이 설치된 경우에만 설치, 업데이트라고 볼 수 있음 –force : 기존에 설치된 패키지와 그 파일을 강제로 다시 설치하도록 함 –nodeps :
