8월, 2022의 게시물 표시

ubuntu increase swapfile

## change setting (base) min@min-MS-7C94:~$ sudo fallocate -l 8G /swapfile [sudo] min 암호: fallocate: fallocate failed: 실행 파일 사용 중 (base) min@min-MS-7C94:~$ su 암호: root@min-MS-7C94:/home/min# swapoff -v /swapfile swapoff /swapfile root@min-MS-7C94:/home/min# fallocate -l 8G /swapfile root@min-MS-7C94:/home/min# ll -h /swapfile -rw------- 1 root root 8.0G 8월 29 12:48 /swapfile root@min-MS-7C94:/home/min# chmod 600 /swapfile root@min-MS-7C94:/home/min# mkswap /swapfile mkswap: /swapfile: warning: wiping old swap signature. Setting up swapspace version 1, size = 8 GiB (8589930496 bytes) no label, UUID=817e481c-66db-452e-9ed1-4cbaebaaab53 root@min-MS-7C94:/home/min# swapon /swapfile root@min-MS-7C94:/home/min# vi /etc/fstab root@min-MS-7C94:/home/min# free -m total used free shared buff/cache available Mem: 64232 11352 433 49616 52446 2555 스왑: 8191 18 8173 root@mi

terminal font width is unusually wide on ubuntu

이미지
## font width ## change setting { "editor.fontFamily": "Ubuntu Regular", "terminal.integrated.inheritEnv": false, "terminal.integrated.fontWeight": "normal", "terminal.integrated.defaultProfile.osx": "zsh", "terminal.external.osxExec": "iTerm.app", "terminal.integrated.fontFamily": "'Ubuntu Mono', 'PowerlineSymbols'", "git.confirmSync": false, "git.autofetch": true, "explorer.confirmDragAndDrop": false, "editor.fontLigatures": false, "terminal.integrated.fontWeightBold": "bold" } ## Result

kubeadm init error

## kubeadm init error [root@k8s-master min]# sudo kubeadm init --pod-network-cidr=10.224.0.0/16 [init] Using Kubernetes version: v1.25.0 [preflight] Running pre-flight checks error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR CRI]: container runtime is not running: output: E0825 18:33:00.899302 10491 remote_runtime.go:925] "Status from runtime service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService" time="2022-08-25T18:33:00+09:00" level=fatal msg="getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService" , error: exit status 1 [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` To see the stack trace of this error execute with --v=5 or higher ## fix error [root@k8s-master min]# sudo rm /etc/containerd/config.toml [root@k8s-master min]# sudo

linux mint install xrdp

이미지
## install xrdp $ sudo apt install xrdp $ sudo adduser xrdp ssl-cert $ sudo ufw allow from 192.168.2.0/24 to any port 3389 $ sudo ufw reload $ sudo ufw status ## xrdp connection closes immediately? $ sudo vim /etc/xrdp/startwm.sh unset DBUS_SESSION_BUS_ADDRESS unset XDG_RUNTIME_DIR $ sudo systemctl restart xrdp ## xrdp connection closes immediately? $ sudo vim /etc/xrdp/startwm.sh #!/bin/sh # xrdp X session start script (c) 2015, 2017 mirabilos # published under The MirOS Licence if test -r /etc/profile; then . /etc/profile fi if test -r /etc/default/locale; then . /etc/default/locale test -z "${LANG+x}" || export LANG test -z "${LANGUAGE+x}" || export LANGUAGE test -z "${LC_ADDRESS+x}" || export LC_ADDRESS test -z "${LC_ALL+x}" || export LC_ALL test -z "${LC_COLLATE+x}" || export LC_COLLATE test -z "${LC_CTYPE+x}" || export LC_CTYPE test -z "${LC_IDENTIFICATION+x}" || export L

error apt update with ubuntu 21.04

   ## set git root@kube1-KVM:/home/kube1/Desktop# sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list root@kube1-KVM:/home/kube1/Desktop# sudo apt-get update && sudo apt-get dist-upgrade Get:1 http://old-releases.ubuntu.com/ubuntu impish InRelease [270 kB] Get:2 http://old-releases.ubuntu.com/ubuntu impish-updates InRelease [115 kB] Get:3 http://old-releases.ubuntu.com/ubuntu impish-backports InRelease [101 kB] Get:4 http://old-releases.ubuntu.com/ubuntu impish-security InRelease [110 kB] Get:5 http://old-releases.ubuntu.com/ubuntu impish/main amd64 Packages [1,396 kB] Get:6 http://old-releases.ubuntu.com/ubuntu impish/main i386 Packages [1,037 kB] Get:7 http://old-releases.ubuntu.com/ubuntu impish/main Translation-en [511 kB]  

git autologin with vscode

  ## set git $ git config credential.helper store