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  

RuntimeError: CUDA error: no kernel image is available for execution on the device

이미지
  ## pytorch remove pip uninstall torch Found existing installation: torch 1.9.0 Uninstalling torch-1.9.0: Would remove: /home/min/anaconda3/envs/easy/lib/python3.8/site-packages/caffe2/proto/caffe2_legacy_pb2.py /home/min/anaconda3/envs/easy/lib/python3.8/site-packages/caffe2/proto/hsm_pb2.py /home/min/anaconda3/envs/easy/lib/python3.8/site-packages/caffe2/proto/metanet_pb2.py      check torch  version   ## pytroch install https://pytorch.org/get-started/previous-versions/ ## pytorch reinstall (easy) [min@ai deep-text-recognition-benchmark]$ conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=10.2 -c pytorch Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.10.3 latest version: 4.13.0 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## ...

CUDA error: no kernel image is available for execution on the device

  ## pytorch reinstall (keras) [min@ai grecognition]$ conda uninstall pytorch Collecting package metadata (repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.10.3 latest version: 4.13.0 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: /home/min/anaconda3/envs/keras removed specs: - pytorch The following packages will be downloaded: package | build ---------------------------|----------------- debugpy-1.5.1 | py37h295c915_0 1.7 MB entrypoints-0.4 | py37h06a4308_0 16 KB ipython-7.31.1 | py37h06a4308_0 1013 KB jedi-0.18.1 | py37h06a4308_1 980 KB jupyter_client-7.2.2 | py37h06a4308_0 190 KB jupyter_core-4.10.0 | py37h06a4308_0 75 KB nest-...

Setting up git auto-login in Visual Studio Code

   ## setting command git config --global credential.helper store  

mp4, H.264 play error on rocky linux

   ## download H.264 dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm dnf config-manager --enable powertools dnf groupupdate core dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin dnf groupupdate sound-and-video