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

GNOME 40

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

[단축키] - 설정 > 키보드 > 바로가기 사용자 설정
창
	창 옮기기 - Alt + F7 제거
    현재 활동 보이기 - Disable (idea와 충돌)
    창 전환 - Alt + Tab (프로그램 전환이 되어 있으면 동일 애플리케이션이 그룹핑됨)
      -> AATWS(advanced alt tab window switcher) 함께 사용 - 듀얼 모니터
    
조종
	모든 일반 창 감추가 - Super + D
    창 전환 - Alt-Tab (안 하면 동일 프로그램 합쳐진 기능으로 됨)
    오른쪽 작업 공간으로 옮기기 - Ctrl + Super + -> (idea 와 충돌)
    왼쪽 작업 공간으로 옮기기 - Ctrl + Super + -< (idea 와 충돌)

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

설정 -> 다중작업 -> 구석 누르기(Hot Corner) -> OFF

 ## 명령어 실행 - 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 - 프로그램 위젯 활성화하기    
    Plasma 6: 단축키 -> plasmashell -> Activate Application Launcher
    
5. Alt + Mouse Drag
	창관리 - 창 동작 - 창 내부,제목 표시줄 및 프레임 동작 - 수정자 키(D): Alt - 왼쪽 클릭(E):
    	아무것도 하지 않음
        
6. Ctrl + F9
	단축키 - 전역 단축키 - KWin - 보이는 창 바꾸기(현재 데스크톱)

KDE Plasma 6 한글 전환 이슈

오른쪽 Alt 키 누르면 프로그램 파일 메뉴 열리는 이슈

시스템 설정 -> 키보드 -> 오른쪽 위  Key Bindings -> Configure keyboard options -> 한국어 한/영,한자 키 -> 오른쪽 Alt 키를 한/영 키로 만들기 체크


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


Fedora 31 - cinnamon

PC에 로그인된 원래 세션으로 원격 접속 하기

sudo dnf install xrdp x11vnc

sudo vi /etc/xrdp/xrdp.ini
[Xvnc]
name=Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=5900

sudo vi /usr/lib/systemd/system/x11vnc.service
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
#ExecStart=/usr/sbin/runuser -l ddakker `/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/ddakker/.vnc/passwd -rfbport 5900 -shared`
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/ddakker/.vnc/passwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service

sudo systemctl enable xrdp.service

윈도우 컴퓨터에서 "원격 데스크톱 연결" 프로그램으로 연결

---------------------------------------------------------------------
  • VNC Server
    • Fedora 24 GUI
      • TightVNC version 1.3.10
  • VNC Viewer
    • Windows 10
      • TigerVNC
Viewer 는 Tiger 이 내 상황에서는 가장 최적인듯.
창 사이즈 늘림/줄임 및 최대화면에 따라 Fedora 해상도가 자동으로 변경


Gradle 3.2.1



위 "test-ear-dir" 디렉토리와 같이 ear 구조로 배치되어 있는 상태에서 gradle + ant 를 활용해 패키징 한다. 


task dirEar {
doLast {
println 'aa'
ant.ear(destfile: 'build/test.ear',
appxml: 'build/test-ear-dir/META-INF/application.xml') {
fileset (dir: 'build/test-ear-dir')
}
}
}


VirtualBox 5.0.30

Fedora 23/24/25 모두 해봄 (VirtualBox 4 버전에서 Fedora 25 버전은 잘 안되서 VirtualBox 5 버전으로 업그레이드 함)


yum update    
yum install kernel-devel-$(uname -r)
yum install gcc make

shutdown -r now

cd /var/run/media/root/VBOXADDITIONS_4.3.40_110317/
./VBoxLinuxAdditions.run 

shutdown -r now

Plugin

  1. Lombok - Settings > Build, Excuting, Deployment > Compiler > Annotaton Processors > Enable annotation processing 체크
  2. Grep Console
  3. Jrebel
  4. Presentation Assistant
  5. Lombok
  6. AsciiDoc
  7. CamelCase
  8. Docusaurus
  9. GitToolBox
  10. Korean Language Pack
  11. Power Mode II
  12. Translation (https://plugins.jetbrains.com/plugin/8579-translation)

 

Live Templates 설정

  1. addlog - Applicable in Java: declaration
    Edit Template Variables - Name=CLASSNAME, Expression=className()
  2. private static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger($CLASSNAME$.class);
  3. dlog - Applicable in Java: expression
    Edit Template Variables - Name=VAR, Expression=completeSmart()
  4. logger.debug("===== $END$: {}", $VAR$);
  5. addtest - use static import if posible 체크
  6. @org.junit.Test
    public void test$EXPR$() {
    $END$
    org.junit.Assert.assertThat("업무", 1, org.hamcrest.Matchers.is(1));
    }

Editor

  • Editor -> Inspections -> Java -> Javadoc
    • - Javadoc declaration problems
  • Editor -> Inspections -> Java -> Java language leve migration aids -> Java 7
    • -> Indetical 'catch' branches in 'try'
  • Editor -> Inspections -> Java -> Code style issues
    • -> C-Style array declaration
  • Editor -> Inspections -> Java -> Compiler issues
    • -> Unchecked warning
  • Editor -> Inspections -> Intgernalionalization
    • -> Non-ASCII characters

Windows Batch Script 심오하군...


특정 Tomcat Instance 찾아 KILL

@echo off
setlocal enableDelayedExpansion

# Command 에서는...
wmic process where "Name='java.exe' AND commandLine like '%test-app%'" delete

# Batch Script 에서는 "%" 변수에대한 접두사라서 LIKE 검색이 안되니 두개로... 그 안에 변수라면 아래와 같이 
wmic process where "Name='java.exe' AND commandLine like '%%%HTTPD_WORKER_NM%%%'" delete

Tomcat 기동여부 확인 - 해당 포트가 떠 있나 확인 후 있으면 PID 및 실행 문자열 출력

@echo off
setlocal enableDelayedExpansion

netstat -na | find "LISTENING" | find /C ":%AJP_PORT%" > tmpFile
set /P result=<tmpFile
del tmpFile

REM echo !result!
if !result!==0 (
	echo ===== TOMCAT IS STOPED =====
) else (
	echo ===== TOMCAT IS RUNNING =====
	wmic process where "Name='java.exe' AND commandLine like '%%%HTTPD_WORKER_NM%%%'" get commandLine, processid
)


+ Recent posts