## configmap
apiVersion: v1
kind: ConfigMap
metadata:
  name: test-cm
data:
  kube.config: |-
    # ~/.kube/config
    apiVersion: v1
    clusters:
...
      name: kubernetes
    contexts:

          command: ncp-iam-authenticator
  ncloud.config: |-
    # ~/.ncloud/configure
    [DEFAULT]
    ncloud_access_key_id = G
    ncloud_secret_access_key = d
    ncloud_api_url = https://n
    
    
    
    ## deployment
    spec:
  replicas: 1
  selector:
    matchLabels:
      app: test-app
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: test-app
    spec:
      containers:
      - env:
      ...
        volumeMounts:
        - mountPath: /home/default/.kube/config
          name: kubeconfigcm
          subPath: kube.config
        - mountPath: /home/default/.ncloud/configure
          name: kubeconfigcm
          subPath: ncloud.config
          restartPolicy: Always
      volumes:
      - configMap:
          defaultMode: 420
          items:
          - key: kube.config
            path: kube.config
          - key: ncloud.config
            path: ncloud.config
          name: test-cm
        name: kubeconfigcm

 

환경

  • Fedora 37
  • GHOME 43.2
  • RDP 서버

현상

GUI 화면이 잠겨 있는 상황에서는 RDP Client 에서 접속 안됨

Failed to start remote desktop session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Session creation inhibited

해결 방법

Gnome Extensions > Allow Locked Remote Desktop 설치

https://extensions.gnome.org/extension/4338/allow-locked-remote-desktop/

 

아래 안 되는듯

Alt+F2, type lg

global.backend.get_remote_access_controller().uninhibit_remote_access = () => {}

 

groupadd -g 200 nexus
useradd -g 200 -u 200 nexus

yum install -y podman java-1.8.0-openjdk-devel.x86_64

mkdir /data/nexus2-data

podman load -i docker_image_nexus_2.15.1-02.tar
podman run -d -p 8088:8081 --name nexus2 -v /data/nexus2-data:/sonatype-work --privileged=true registry.hub.docker.com/sonatype/nexus:2.15.1-02
podman logs -f $(podman ps -a -q -f name=nexus2)
#podman rm --force $(podman ps -a -q -f name=nexus2)

mkdir /root/.m2
cat << EOF > /root/.m2/settings.xml
<settings>
  <mirrors>
    <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>http://localhost:8088/nexus/content/groups/public</url>
    </mirror>
  </mirrors>
</settings>
EOF

인증 정상으로 됐으나 에러 날때 vi ~/.bashrc 에서 실행되는 항목 있는지 체크

우선 agent 설치 전에 주석

 

[] Launch failed - cleaning up connection
[] [SSH] Connection closed.

 

Centos 7

$ sudo podman run -it centos:7 /bin/bash

[root@c0f41f59555f /]# ls
ls: cannot open directory .: Permission denied

/etc/selinux/config

SELINUX=disabled 확인

function maxVersion {
  FILE_FIND=$1
  START_STR=$2
  END_STR=$3

  FILES=$(ls $FILE_FIND)

  MAX_VERSION=-1
  for FILE in $FILES ; do
    FILE="$(basename -- $FILE)"
    VERSION=`echo $FILE | grep -o -P "(?<=$START_STR).*(?=$END_STR)"`
    if [ -n "$VERSION" ] ; then
      IFS='.' read -ra arr <<< "$VERSION"
      VERSION=${arr[2]}
      if [ $VERSION -gt $MAX_VERSION ]; then
        MAX_VERSION=$VERSION
      fi
    fi
  done
  echo $MAX_VERSION

}


CATALINA_HOME=/data/tomcat/apache-tomcat-9.0.7
PATCH_VERSION=$(maxVersion "/data/tomcat/apache-tomcat-*.zip" "tomcat-" ".zip")
echo "PATCH_VERSION: $PATCH_VERSION"

NOW_VERSION=`echo "$CATALINA_HOME" | grep -o -P '(?<=tomcat-).*(?=$)'`
IFS='.' read -ra arr <<< "$NOW_VERSION"
PATCHED_VERSION=${arr[2]}
echo "PATCHED_VERSION: $PATCHED_VERSION"

if [ $PATCH_VERSION -gt $PATCHED_VERSION ]; then
  echo "패치 파일 있음. 현재: $NOW_VERSION, 패치 버전: $PATCH_VERSION"
fi

키맵(단축키) 옵션은 Windows 로 설정했음

GNOME 40

[Konsole 설치]
dnf install konsole
단축키 - 복사 -> Ctrl + Insert 추가

[단축키] - 설정 > 키보드 > 바로가기 사용자 설정
창
	창 옮기기 - Alt + F7 제거
    현재 활동 보이기 - Disable (idea와 충돌)
    
조종
	모든 일반 창 감추가 - Super + D
    창 전환 - Alt-Tab (안 하면 동일 프로그램 합쳐진 기능으로 됨)
    오른쪽 작업 공간으로 옮기기 - Ctrl + Super + -> (idea 와 충돌)
    왼쪽 작업 공간으로 옮기기 - Ctrl + Super + -< (idea 와 충돌)

에플리케이션 메뉴 열기 - Alt + F1
	## 본인 계정에서 실행
	gsettings set org.gnome.shell.extensions.apps-menu apps-menu-toggle-menu "[]"

 ## 명령어 실행 - IBus 기본설정
 $ ibus-setup
  에모지 -> 바로 가기 키
  	에모지 주석 - Ctrl + Shift + e 제거
    유니코드 코드 값 - Ctrl + Shift + u 제거 (idea 대소문자 변경 충돌)

 

Cinnamon

[키보드 단축키 설정]
Alt + F1
	설정 -> 키보드 -> 일반 -> 작업 공간 선택 화면 보기
    재부팅 후 원복 된다면...
    ~/.config/plasma-org.kde.plasma.desktop-appletsrc
    	Alt + F1 부분 주석
Ctrl + Alt + <-
	설정 -> 키보드 -> 작업 공간 -> 왼쪽 작업 공간으로 이동 
Ctrl + Alt + ->
	설정 -> 키보드 -> 작업 공간 -> 오른쪽 작업 공간으로 이동 
Ctrl + Alt + T
	설정 -> 키보드 -> 런처 -> 터미널 실행
    
[창]
Alt + Mouse Drag
	설정 -> 창 -> 동작 -> 창을 이동할 때 사용할 특수 키
Alt + F7
	설정 -> 창 -> 위치 -> 창 이동
    
[한글 설정(IBUS)]
Ctrl + Shift + U
	Emoji -> Unicode code point
    
[터미널]
Copy, Past 단축키 변경
	기본 Ctl + Shift C, V 라서 일반적은 Ctl + Insert, Shift + Insert 로 변경

    

KDE Plasma

1. 터미널 konsole 복사/붙여넣기
	konsole - 키보드 단축키 설정
	복사 - 대체키에 Ctrl + Ins
    
2. 터미널 열기 - konsole
	Ctrl + Alt + t
	단축키 - 전역 단축키 - 시스템 설정 - Launch Konsole
    
3. 잠금
	Ctrl + Alt + l
	단축키 - 전역 단축키 - ksmserver - 세션 잠금
    
4. 메뉴 열기
	Alt + F1
	단축키 - 전역 단축키 - Plasma - 프로그램 위젯 활성화하기
    
5. Alt + Mouse Drag
	창관리 - 창 동작 - 창 내부,제목 표시줄 및 프레임 동작 - 수정자 키(D): Alt - 왼쪽 클릭(E):
    	아무것도 하지 않음
        
6. Ctrl + F9
	단축키 - 전역 단축키 - KWin - 보이는 창 바꾸기(현재 데스크톱)

 

sudo ip link set vboxnet0 up

https://github.com/mitchellh/vagrant/issues/5751

 디렉토리 생성

sudo mkdir -p /mnt/rhel6

sudo mkdir -p /mnt/rhel7

sudo mkdir -p /mnt/centos6

sudo mkdir -p /mnt/centos7트


 ISO 이미지 마운트

sudo mount -t iso9660 -o loop /data/_ISO_/rhel-server-6.9-x86_64-dvd.iso /mnt/rhel6

sudo mount -t iso9660 -o loop /data/_ISO_/rhel-server-7.3-x86_64-dvd.iso /mnt/rhel7

sudo mount -t iso9660 -o loop /data/_ISO_/CentOS-6.9-x86_64-bin-DVD1.iso /mnt/centos6

sudo mount -t iso9660 -o loop /data/_ISO_/CentOS-7-x86_64-DVD-1611.iso /mnt/centos7


 httpd 일때 설정

Alias /rhel6 "/mnt/rhel6"

<Directory /mnt/rhel6/>

    Options +Indexes

    AllowOverride none

    Require all granted

</Directory>


Alias /rhel7 "/mnt/rhel7"

<Directory /mnt/rhel7/>

    Options +Indexes

    AllowOverride none

    Require all granted

</Directory>


Alias /centos6 "/mnt/centos6"

<Directory /mnt/centos6/>

    Options +Indexes

    AllowOverride none

    Require all granted

</Directory>


Alias /centos7 "/mnt/centos7"

<Directory /mnt/centos7/>

    Options +Indexes

    AllowOverride none

    Require all granted

</Directory>


NGINX 일때 설정

server {

location /rhel7/ {

            alias   D:/data/yum/rhel7/;

autoindex       on;

allow all;

        }

location /rhel6/ {

            alias   D:/data/yum/rhel6/;

autoindex       on;

allow all;

        }

location /centos6/ {

            alias   D:/data/yum/centos6/;

autoindex       on;

allow all;

        }

location /centos7/ {

            alias   D:/data/yum/centos7/;

autoindex       on;

allow all;

        }

}


yum repo 설정

# /etc/yum.repos.d/local-rhel6.repo

[local-rhel6]

name=local-rhel6

baseurl=http://192.168.56.1/rhel6/Server/

enabled=1

gpgcheck=0


# /etc/yum.repos.d/local-rhel7.repo

[local-rhel7]

name=local-rhel7

baseurl=http://192.168.56.1/rhel7/

enabled=1

gpgcheck=0


# /etc/yum.repos.d/local-centos6.repo

[local-centos6]

name=local-centos6

baseurl=http://192.168.56.1/centos6/

enabled=1

gpgcheck=0


# /etc/yum.repos.d/local-centos7.repo

[local-centos7]

name=local-centos7

baseurl=http://192.168.56.1/centos7/

enabled=1

gpgcheck=0



Fedora Linux 에서 동영상 캡쳐 시 별도의 소프트웨어를 설치 하지 않고도, 캡쳐 가능

Ctrl + Alt + Shift + R


+ Recent posts