Fix "firefox is already running" error in Linux

## fix error (base) min@min-MS-7C94:~/.mozilla/firefox$ pidof firefox 741821 (base) min@min-MS-7C94:~/.mozilla/firefox$ kill -9 741821 kill $(pidof firefox)  

mac 한글 자소분리 입력되는 현상 (remote desktop)

이미지
## 한글 자소 분리입력됨. ## Microsoft Remote Desktop의 메뉴-connnections-KeyboardMode-scan mode로 변경  

install cuda, tensorflow-gpu and check available gpu in mint linux

이미지
## check current cuda ver 11.6 ## install cudatoolkit 11.6 (p1) min@min-MS-7C94:~/바탕화면$ conda install -c deepmodeling cudatoolkit Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: /home/min/anaconda3/envs/p1 added / updated specs: - cudatoolkit The following packages will be downloaded: package | build ---------------------------|----------------- cudatoolkit-11.6.0 | hd754f66_10 821.0 MB deepmodeling ------------------------------------------------------------ Total: 821.0 MB The following NEW packages will be INSTALLED: cudatoolkit deepmodeling/linux-64::cudatoolkit-11.6.0-hd754f66_10 None Proceed ([y]/n)? y Downloading and Extracting Packages cudatoolkit-11.6.0 | 821.0 MB | ###########################################################################################...

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...