기본 콘텐츠로 건너뛰기

GNOME Display Manager 49 (gdm-49)

원문 보기:  https://dawoum.duckdns.org/wiki/GNOME_Display_Manager   그놈 버전 49가 출시되면서, GDM-49가 같이 출시되었습니다.  몇 가지 문제에 부딪힐 수 있습니다. 버전 49.0.1을 설치 후에, 부팅 자체가 완료되지 않고 다른 tty로 접근도 되지 않습니다. 리커버리로 부팅 후에, lightdm으로는 부팅이 됩니다. 이와 관련된 버그는 다음에서 볼 수 있습니다: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2121017 결론적으로, 오래 전에 설치된 시스템에서 /etc/nsswitch.conf 파일에서 문제가 발생합니다.  따라서, shadow:         files systemd와 같이 수정해서 GDM 로긴 화면을 만날 수 있습니다.  다른 문제는 Xsession이 목록화되지만, 해당 세션으로 접근되지 않는다는 것입니다. 게다가, Xsession으로 접근 후에, GDM이 오동작해서 다른 Wayland 세션으로 로그인할 수도 없습니다. 이때, 다른 tty로 접근해서 GDM을 재시작하면 제대로 동작합니다. 만약 Xsession으로 로그인하고 싶을 때에는 lightdm과 같은 다른 로긴 관리기를 사용해야 합니다.    덧, 만약 GDM에서 Xsession으로 정상적으로 로긴하기 위해, GDM 패키지를 다시 컴파일해야 합니다.  데비안 패키지에서 GDM-49.0.1 파일을 받아서 debian/rules 파일에서 -Dgdm-xsession=true 구성 옵션을 추가해야 합니다.     

WezTerm

원문 보기: https://dawoum.duckdns.org/wiki/WezTerm

WezTermAlacrittyKitty (terminal emulator)와 함께 자주 언급되는 GPU-가속 터미널 에뮬레이터입니다.

Installation

데비안 저장소에서 제공하지 않기 때문에, 홈페이지의 안내에 따라 설치할 수 있습니다.

개발자가 제공하는 저장소로부터 직접 설치할 수 있습니다:

  • curl -fsSL https://apt.fury.io/wez/gpg.key | sudo gpg --yes --dearmor -o /usr/share/keyrings/wezterm-fury.gpg
  • echo 'deb [signed-by=/usr/share/keyrings/wezterm-fury.gpg] https://apt.fury.io/wez/ * *' | sudo tee /etc/apt/sources.list.d/wezterm.list
  • sudo apt update
  • sudo apt install wezterm

또는

  • sudo apt install wezterm-nightly

또는 다른 방법, 예를 들어, Flatpak, AppImage, 등을 이용해서 설치할 수 있습니다.

latest development version

홈페이지의 정보에 따라 진행할 수 있습니다. 여기서는 git 저장소에서 소스를 받아서 설치할 예정입니다.

  • git clone --depth=1 --branch=main --recursive https://github.com/wez/wezterm.git
  • cd wezterm
  • git submodule update --init --recursive
  • ./get-deps
  • cargo build --release
  • cargo run --release --bin wezterm -- start

Building debian package using cargo-deb

데비안 deb 패키지를 만들기 위해, wezterm/Cargo.toml 파일의 마지막에 다음을 추가하십시오:

[package.metadata.deb]
name = "wezterm"
maintainer = "Wez Furlong <wez@wezfurlong.org>"
copyright = "Wez Furlong <wez@wezfurlong.org>"
extended-description = """\
Wez's Terminal Emulator."""
depends = "$auto"
section = "utils"
priority = "optional"
assets = [
    ["target/release/wezterm", "usr/bin/", "755"],
    ["target/release/wezterm-gui", "usr/bin/", "755"],
    ["target/release/wezterm-mux-server", "usr/bin/", "755"],
    ["target/release/strip-ansi-escapes", "usr/bin/", "755"],
    ["../assets/open-wezterm-here", "usr/bin/open-wezterm-here", "755"],
    ["../assets/shell-integration/wezterm.sh", "etc/profile.d/wezterm.sh", "644"],
    ["../assets/icon/terminal.png", "usr/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png", "644"],
    ["../assets/wezterm.desktop", "usr/share/applications/org.wezfurlong.wezterm.desktop", "644"],
    ["../assets/wezterm.appdata.xml", "usr/share/metainfo/org.wezfurlong.wezterm.appdata.xml", "644"],
    ["../assets/wezterm-nautilus.py", "usr/share/nautilus-python/extensions/wezterm-nautilus.py", "644"],
    ["../LICENSE.md", "usr/share/doc/wezterm/LICENSE", "644"],
    ["../README.md", "usr/share/doc/wezterm/README", "644"],
    ["../assets/shell-completion/bash", "usr/share/bash-completion/completions/wezterm", "644"],
    ["../assets/shell-completion/fish", "usr/share/fish/vendor_completions.d/wezterm.fish", "644"],
    ["../assets/shell-completion/zsh", "usr/share/zsh/site-functions/_wezterm", "644"],
]

위에서 target/release 디렉토리가 아닌 곳에서 파일을 가져올 때에는 파일 이름까지 완전히 적어야 합니다. 디렉토리만 적으면, 오류가 발생합니다.

아래와 같이 패키지를 만들 수 있습니다:

  • cargo deb --no-build --manifest-path wezterm/Cargo.toml --deb-version 20240813

Building debian package using install script

아치 리눅스 패키징 정보로부터 아래와 같이 스크립트를 만듭니다:

#!/bin/bash

pkgname=wezterm
pkgver=20241127
pkgrel=1

pkgdir=wezterm_20241127-1_amd64

LIBSSH2_SYS_USE_PKG_CONFIG=1 cargo build --release --features distro-defaults


install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
install -Dm 755 "target/release/$pkgname-gui" -t "$pkgdir/usr/bin"
install -Dm 755 "target/release/$pkgname-mux-server" -t "$pkgdir/usr/bin"
install -Dm 755 "target/release/strip-ansi-escapes" -t "$pkgdir/usr/bin"
install -Dm 644 "assets/icon/terminal.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.$pkgname.png"
install -Dm 644 "assets/$pkgname.desktop" "$pkgdir/usr/share/applications/org.wezfurlong.$pkgname.desktop"
install -Dm 644 "assets/$pkgname.appdata.xml" "$pkgdir/usr/share/metainfo/org.wezfurlong.$pkgname.appdata.xml"
install -dm 644 "assets/$pkgname-nautilus.py" "$pkgdir/usr/share/nautilus-python/extensions/$pkgname-nautilus.py"
install -dm 755 "assets/open-$pkgname-here" -t "$pkgdir/usr/bin"
install -dm 644 license.md -t "$pkgdir/usr/share/licenses/$pkgname"
install -dm 644 readme.md -t "$pkgdir/usr/share/doc/$pkgname"
install -dm 644 assets/shell-completion/bash "$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -dm 644 assets/shell-completion/fish "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
install -dm 644 assets/shell-completion/zsh "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
install -dm 644 assets/shell-integration/$pkgname.sh -t "$pkgdir/etc/profile.d"

mkdir -p "$pkgdir/DEBIAN/"

그런-다음 Building binary deb packages를 읽고 control 파일을 만듭니다:

Package: wezterm
Version: 20241127-1
Architecture: amd64
Maintainer: user_id <email>
Description: Wezterm terminal amulator.
  The minimal, blazing-fast, and infinitely customizable prompt for any shell!

이제 패키지로 묶고 설치합니다:

  • dpkg-deb --build --root-owner-group wezterm_20241127-1_amd64
  • sudo dpkg -i wezterm_20241127-1_amd64.deb

Configuration

설정이 lua 파일을 직접 수정해야 하기 때문에, 생각보다는 어렵습니다.

어쨌든, 여기저기서 제공하는 설정이 있으니, 참고해서 설정할 수 있습니다.

  • mkdir -p ~/.config/wezterm
  • touch ~/.config/wezterm/wezterm.lua
local wezterm = require 'wezterm';

return {
  -- option	= value	, [default] comment
  enable_wayland = false, -- 창 모양새를 유지하기 위해, 그리고, 한글 입력기를 사용하기 위해, 

  -- Fonts
  font     	= wezterm.font("D2CodingLigature Nerd Font")                             	
  -- font  	= wezterm.font("JetBrains Mono", {weight="Bold",italic=true})
  font_size	= 13.5                                                      

  -- Colors
  color_scheme     	= "nord"   	, -- full list @ wezfurlong.org/wezterm/colorschemes/index.html
  colors           	= {        	  -- color_scheme takes precedence over these
    foreground     	= "silver" 	, -- [silver] The default text color
    background     	= "black"  	, -- [black]  The default background color
    cursor_bg      	= "#52ad70"	, -- [#52ad70] Overrides the cell background color when the current cell is occupied by the cursor and the cursor style is set to Block
    cursor_fg      	= "black"  	, -- [black]   Overrides the text color when the current cell is occupied by the cursor
    cursor_border  	= "#52ad70"	, -- [#52ad70] Specifies the border color of the cursor when the cursor style is set to Block, of the color of the vertical or horizontal bar when the cursor style is set to Bar or Underline.
    selection_fg   	= "black"  	, -- [black]   The foreground color of selected text
    selection_bg   	= "#fffacd"	, -- [#fffacd] The background color of selected text
    scrollbar_thumb	= "#222222"	, -- [#222222] The color of the scrollbar "thumb"; the portion that represents the current viewport
    split          	= "#444444"	, -- [#444444] The color of the split lines between panes
  --   ansi        	= {"black", "maroon", "green", "olive", "navy", "purple", "teal", "silver"},
  --   brights     	= {"grey", "red", "lime", "yellow", "blue", "fuchsia", "aqua", "white"},
  --   indexed     	= {[136]="#af8700"} , -- Arbitrary colors of the palette in the range from 16 to 255
  },

  -- Appearance
  window_background_opacity   	= 0.9  	, -- [1.0] alpha channel value with floating point numbers in the range 0.0 (meaning completely translucent/transparent) through to 1.0 (meaning completely opaque)
  enable_tab_bar              	= false	, -- [true]
  hide_tab_bar_if_only_one_tab	= false	, -- [false] hide the tab bar when there is only a single tab in the window
  initial_rows = 19,
  initial_cols = 80,
  use_ime = true,
  xim_im_name = 'nimf',
}

위 설정은 Wayland 환경에서 사용하지만, 님프 한글입력기를 사용하기 위해, wayland를 비활성화하고, xim의 입력기를 사용하는 설정입니다.

그놈 Wayland에서, 님프 한글 입력기에서는 위 설정으로도 입력이 가능했지만, kime 입력기에서는 GDK_BACKEND=x11이라는 환경 변수를 주어야 한글 입력이 가능합니다.

Features

External Resources

 

 

댓글

이 블로그의 인기 게시물

리눅스 한글 입력기 (Wayland 편)

원문 보기: https://dawoum.duckdns.org/wiki/한글 입력기/On_Wayland 최근 소프트웨어들의 버전 업그레이드로 인해, X11에서도 님프 입력기에서 문제들이 발생하고 있습니다. 따라서 이제는 X11이든, Wayland이든 kime을 사용하는 것이 바람직해 보입니다!! 리눅스 생태계에서 X11에서 Wayland로의 전환은 여러 가지 새로운 장점과 단점을 만들어 냅니다. 일반 사용자들은 이런 전환이 가진 장점에 열광하기도 하지만 기존에 작동하는 메커니즘이 작동하지 않을 때 더욱 불만을 표출합니다. 리눅스에서 가장 큰 문제점은 한글 입력에 있습니다. 그러나, 이 문제는 거의 한국 사람들에 국한된 문제입니다. 물론, 중국과 일본도 비슷한 처지에 있어서 CJK로 묶어서 얘기가 되지만, 한글은 다른 두 언어에 비해 더 고려할 사항이 있어서 한글 입력기 개발에 어려움이 더해진다고 알려져 있습니다. 이런 상황 아래에서, kime과 nimf는 최근에 한국에서 개발된 두 개의 한글 입력기입니다. 먼저, 개인적인 경험을 기반으로 결론부터 얘기하자면, X11에서는 nimf를 추천합니다. Wayland에서는 kime을 추천합니다. 이유는 간단하게도, X11에서는 nimf가 더 많은 프로그램에서 올바르게 동작했지만, Wayland에서는 X11에서 잘 입력되던 프로그램에서 입력이 되지 않거나 잘못 입력되는 경우가 발생합니다. 반면에 kime은 Wayland에서 nimf가 입력하지 못하는 프로그램에서 입력이 되거나 잘못 입력되던 것이 제대로 입력되는 경우가 있기 때문입니다. 예를 들어, 그놈 Wayland에서 적어도 아래의 현상이 있습니다: gnome-calendar : nimf 입력기 전환 안됨. kime 정상 작동. nimf 이 문제는 gooroom에서 제공되는 gtk4 패치를 이용해 보십시오. kakaotalk (bottles: wine) : nimf 마지막 점을 찍으면 마지막 글자 앞에 찍힘. kime 정상 작동. alac...

Btrfs 압축 수준 설정

원문 보기:  https://dawoum.duckdns.org/wiki/Btrfs 보통, 마운트 옵션에서 compress=zstd를 사용할 경우에 압축 레벨 3를 사용하고, HDD와 느린 플래시 스토리지에 적합하다고 알려져 있습니다. 좀 더 빠른 SATA SSD는 압축 레벨 2가 적당하고, NVME는 압축 레벨 1이 적당하다고 합니다: Yup, this is it. On slow storage higher compression levels tend to yield higher total storage throughput because you spend less time bound by slow storage bandwidth, instead you spend CPU time compressing/decompressing that data. The rick is to pick a compression level that yields greater total throughput than storage bandwidth can accommodate on its own. This approach works well on bandwidth limited storage like HDD pools, slow flash nand, flash nand attached to the system via slow USB, etc. On the flip side you don't want to constrain high bandwidth storage by sending data through a compression algorithm that limits throughput so lower compression levels (like zstd:1 on nvme storage, or zstd:2 on fast SATA SSDs) are usually safe choices. —  seaQueue, Btrfs compress level, https://...

Installing hoffice 2022 beta on Debian

원문 보기:  https://dawoum.duckdns.org/wiki/Installing_hoffice_2022_beta_on_Debian 구름 OS 2.0에서 배포되었던 1520 버전은 hwp에서 일부 버그가 있는 것으로 보입니다. 예를 들어, 한글 입력 상태에서 키를 누르고 있으면, 입력이 되지 않다가 키를 풀면 한꺼번에 입력이 됩니다. 반면에, 한글 2020 베타 버전은 이런 현상이 없습니다. 게다가, 구름 OS 3.0이 출시되면서 해당 패키지는 누락되었고, 이전 저장소에서 더 이상 다운로드되지 않는 것으로 보입니다. 또한, 윈도우 버전에 비해 기능 자체가 많지 않아서 편집기로는 크게 쓸모가 없다는 주장이 있지만, 뷰어로서 기능은 가능한 것으로 보입니다. 보통 데비안에서 문서를 만들 때, 여러가지 좋은 도구들이 있습니다. 가장 좋은 가독성을 보이는 것은 LaTeX이겠지만, 프로그램을 설치하고 문서를 만드는 것이 쉽지 않습니다. 어쨌든, 한글과 컴퓨터에서 만든 hwp는 여러 부분에서 쓰이는 경우가 있습니다. 예를 들어, 다른 사람이 만들어 놓은 hwp 파일을 보기 위해서는 hwpviewer 또는 온라인에서 hwp2pdf 등으로 다른 문서로 바꾸어서 볼 수는 있습니다. 그러나, 편집을 하기 위해서는 전용 프로그램이 필요합니다. 물론, 가상 기계 아래에서 윈도우 시스템을 설치하고, 윈도우용 hwp를 설치해서 이 작업을 수행할 수 있습니다. 어쨌든, 가능하다면, 리눅스에서 직접 hwp를 편집하기를 희망할 것입니다. 한글과 컴퓨터에서 구름 OS 를 만들면서, 번들로 제공하는 리눅스용 한컴오피스 2022 베타는 이런 목적으로 설치해서 사용해 볼 필요가 있습니다. Download 2020 beta version 위에서 언급했듯이, 어떤 이유에서든지 서버에서 제거되었기 때문에, 개인적으로 미리 다운로드 받지 않는 분들은 해당 버전을 이용할 수 없습니다. 다행히, 버그가 적을 것으로 기대되는 이전 버전은 여전히 공식 서버에 제공되고 있고, 아...