13.9. 단일 애플리케이션 모드


단일 애플리케이션 모드는 쉘을 대화형 VMs로 재구성하는 수정된 쉘입니다. 관리자는 사용자에게 표준 데스크탑을 보다 제한적으로 만들기 위해 일부 동작을 잠금 해제하여 선택한 기능에 집중할 수 있습니다.
다양한 분야에 있는 다양한 기능에 대한 단일 애플리케이션 모드를 설정하고 (신뢰할 때 까지) 자체 서비스 머신, 이벤트 관리자, 등록 점 등으로 사용하십시오.

절차 13.9. 단일 애플리케이션 모드 설정

  1. 다음 콘텐츠를 사용하여 다음 파일을 생성합니다.
    • /usr/bin/redhat-kiosk
      #!/bin/sh
      
      if [ ! -e ~/.local/bin/redhat-kiosk ]; then
          mkdir -p ~/.local/bin ~/.config
          cat > ~/.local/bin/redhat-kiosk << EOF
      #!/bin/sh
      # This script is located in ~/.local/bin.
      # It's provided as an example script to show how
      # the kiosk session works.  At the moment, the script
      # just starts a text editor open to itself, but it
      # should get customized to instead start a full screen
      # application designed for the kiosk deployment.
      # The "while true" bit just makes sure the application gets
      # restarted if it dies for whatever reason.
      
      while true; do
          gedit ~/.local/bin/redhat-kiosk
      done
      
      EOF
      
          chmod +x ~/.local/bin/redhat-kiosk
          touch ~/.config/gnome-initial-setup-done
      fi
      
      exec ~/.local/bin/redhat-kiosk "$@"
      
      Copy to Clipboard Toggle word wrap
      중요
      /usr/bin/redhat-kiosk 파일은 실행 가능해야 합니다.
      Net Namespace ~/.local/bin/redhat-kiosk 코드를 sosreport 세션에서 실행하려는 명령으로 교체합니다. 이 예제에서는 http://mine-kios-web-app 이라는ki 배포를 위해 설계된 전체 화면 애플리케이션을 시작합니다.
      [...]
      while true; do
          firefox --kiosk http://mine-kios-web-app
      done
      [...]
      
      Copy to Clipboard Toggle word wrap
    • /usr/share/applications/com.redhat.Kiosk.Script.desktop
      [Desktop Entry]
      Name=Kiosk
      Type=Application
      Exec=redhat-kiosk
      
      Copy to Clipboard Toggle word wrap
    • /usr/share/applications/com.redhat.Kiosk.WindowManager.desktop
      [Desktop Entry]
      Type=Application
      Name=Mutter
      Comment=Window manager
      Exec=/usr/bin/mutter
      Categories=GNOME;GTK;Core;
      OnlyShowIn=GNOME;
      NoDisplay=true
      X-GNOME-Autostart-Phase=DisplayServer
      X-GNOME-Provides=windowmanager;
      X-GNOME-Autostart-Notify=true
      X-GNOME-AutoRestart=false
      X-GNOME-HiddenUnderSystemd=true
      
      Copy to Clipboard Toggle word wrap
    • /usr/share/gnome-session/sessions/redhat-kiosk.session
      [GNOME Session]
      Name=Kiosk
      RequiredComponents=com.redhat.Kiosk.WindowManager;com.redhat.Kiosk.Script;
      
      Copy to Clipboard Toggle word wrap
    • /usr/share/xsessions/com.redhat.Kiosk.desktop
      [Desktop Entry]
      Name=Kiosk
      Comment=Kiosk mode
      Exec=/usr/bin/gnome-session --session=redhat-kiosk
      DesktopNames=Red-Hat-Kiosk;GNOME;
      
      Copy to Clipboard Toggle word wrap
  2. GDM 서비스를 다시 시작하십시오.
    systemctl restart gdm.service
    Copy to Clipboard Toggle word wrap
  3. kisk에 대한 별도의 사용자를 생성한 후,kisk 세션의 사용자 세션 유형으로 Kiosk 를 선택합니다.

    그림 13.1. kiosk 세션 선택

Kiosk 세션을 시작하면 사용자는 kiosk 배포용으로 설계된 전체 화면 애플리케이션을 시작합니다.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat