상세 컨텐츠

본문 제목

035. Raspberry Pi 라즈베리 파이 - GUI 크롬 가상키보드 설치 (install UI, chromium, virtual keyboard)

raspberrypi/raspbian

by ZelKun 2018. 11. 7. 00:19

본문

반응형

 

pi@raspberry:~ $ startx

-bash: startx: command not found

pi@raspberry:~ $

 

raspbian Lite 사용하면 GUI 빠져있어 startx 명령이 안먹는데요

GUI 사용하려면 별도로 설치해야합니다

 

일전에 RetroPie LXDE 설치했었는데 이번에는 raspbian 기본으로 설치되는 패키지로 보이네요

 

아주 간단하게 설치됩니다

sudo apt-get install -y raspberrypi-ui-mods xinit

 

설치하는김에 chromium (크롬) 같이 설치했습니다

rpi-chromium-mods

 

sudo apt-get install -y raspberrypi-ui-mods rpi-chromium-mods xinit

pi@raspberry:~ $ sudo apt-get install -y raspberrypi-ui-mods rpi-chromium-mods xinit

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following additional packages will be installed:

  alsa-base bluealsa chromium-browser chromium-browser-l10n

  chromium-codecs-ffmpeg-extra enchant fontconfig-infinality fonts-piboto

  gconf-service gconf2 gconf2-common giblib1 gksu gnome-accessibility-themes

  gnome-icon-theme gnome-mime-data gnome-screenshot gnome-themes-standard

  gnome-themes-standard-data gstreamer0.10-alsa gstreamer0.10-plugins-base

  gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x

  gtk2-engines-clearlookspix gtk2-engines-pixbuf gvfs-fuse hunspell-en-us

  libaa1 libart-2.0-2 libbluetooth3 libbonobo2-0 libbonobo2-common

  libbonoboui2-0 libbonoboui2-common libcanberra-gtk3-0

  libcanberra-gtk3-module libcanberra0 libcdparanoia0 libdbus-glib-1-2

  libdouble-conversion1 libdv4 libenchant1c2a libevdev2 libfm-data

  libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm4 libgconf-2-4

  libgif7 libgksu2-0 libglade2-0 libgles2-mesa libglib2.0-bin libgnome-2-0

  libgnome-keyring-common libgnome-keyring0 libgnome2-common libgnomecanvas2-0

  libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0

  libgnomevfs2-common libgnomevfs2-extra libgstreamer-plugins-base0.10-0

  libgstreamer-plugins-base1.0-0 libgstreamer0.10-0 libgstreamer1.0-0

  libgtop-2.0-10 libgtop2-common libharfbuzz-icu0 libhunspell-1.4-0 libhyphen0

  libid3tag0 libimlib2 libinput-bin libinput10 libjavascriptcoregtk-4.0-18

  libjpeg-turbo-progs libkeybinder0 libkf5windowsystem-data

  libkf5windowsystem5 liblightdm-gobject-1-0 liblxqt-l10n liblxqt0

  libmenu-cache-bin libmenu-cache3 libmtdev1 libnotify4 libobrender32v5

  libobt2v5 liborbit-2-0 liborc-0.4-0 libpciaccess0 libpcre16-3

  libpolkit-qt5-1-1 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5

  libqt5svg5 libqt5widgets5 libqt5x11extras5 libqt5xdg2 libqt5xdgiconloader2

  libqt5xml5 libsbc1 libshout3 libstartup-notification0 libtag1v5

  libtag1v5-vanilla libturbojpeg0 libunique-1.0-0 libvisual-0.4-0 libwacom-bin

  libwacom-common libwacom2 libwebkit2gtk-4.0-37 libwnck-common libwnck22

  libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0

  libxcb-render-util0 libxcb-util0 libxcb-xinerama0 libxcb-xkb1

  libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-2 libxfont1

  libxfont2 libxkbcommon-x11-0 libxkbfile1 libxklavier16 libxres1 libxslt1.1

  lightdm lightdm-gtk-greeter lxde-common lxde-core lxde-icon-theme lxinput

  lxlock lxmenu-data lxpanel lxpanel-data lxplug-bluetooth lxplug-ejecter

  lxplug-network lxplug-ptbatt lxplug-volume lxqt-policykit

  lxqt-policykit-l10n lxrandr lxsession lxsession-data lxsession-default-apps

  lxsession-logout lxtask notification-daemon obconf openbox

  openbox-lxde-session pcmanfm pi-greeter pimixer pipanel pishutdown

  plymouth-themes point-rpi python-xdg qt5-gtk-platformtheme

  qttranslations5-l10n raspberrypi-artwork rc-gui rpd-icons rpd-plym-splash

  rpd-wallpaper scrot x11-xkb-utils xfconf xfonts-base xfonts-encodings

  xfonts-utils xinput xscreensaver xscreensaver-data xserver-common

  xserver-xorg xserver-xorg-core xserver-xorg-input-all

  xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-legacy

  xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati

  xserver-xorg-video-fbdev xserver-xorg-video-fbturbo

  xserver-xorg-video-nouveau xserver-xorg-video-radeon xserver-xorg-video-vesa

  zenity zenity-common

Suggested packages:

 

 . . .

Setting up gksu (2.0.2-9) ...

Processing triggers for libc-bin (2.24-11+deb9u3) ...

Processing triggers for initramfs-tools (0.130) ...

Processing triggers for dbus (1.10.26-0+deb9u1) ...

Processing triggers for systemd (232-25+deb9u4) ...

pi@raspberry:~ $ 

재부팅을 해줍니다

 


재부팅을 하면 GUI 넘어오는데 키보드를 연결하지 않을건데

로그인창이 나오니 설정에서 자동로그인으로 변경해줍니다

 

sudo raspi-config

pi@octopi:~ $ sudo raspi-config 

[sudo] password for pi: 

Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.

 

Boot Options

  • 부팅옵션으로 3가지를 지원

 

 

┌─────────┤ Raspberry Pi Software Configuration Tool (raspi-config) ├──────────┐

                                                                             

    B1 Desktop / CLI                 Choose whether to boot into a des        │

    B2 Wait for Network at Boot      Choose whether to wait for networ       

    B3 Splash Screen                 Choose graphical splash screen or       

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                    <Select>                     <Back>                     

                                                                             

└──────────────────────────────────────────────────────────────────────────────┘

 

 

B1. Desktop / CLI

  • 부팅방식으로 Console / Desktop 옵션으로 구분되는데
  • 자동으로 pi계정로그인 할건지 직접 계정 입력할건지 선택할 수 있네요

 

 

┌─────────┤ Raspberry Pi Software Configuration Tool (raspi-config) ├──────────┐

                                                                             

    B1 Console           Text console, requiring user to login                │

    B2 Console Autologin Text console, automatically logged in as 'pi' user  

    B3 Desktop           Desktop GUI, requiring user to login                

    B4 Desktop Autologin Desktop GUI, automatically logged in as 'pi' user   

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                                                                             

                    <Ok>                         <Cancel>                   

                                                                             

└──────────────────────────────────────────────────────────────────────────────┘

 

B4 Desktop Autologin 설정하고 재부팅해줍니다

 


pi계정으로 자동로그인

 

근데 키보드를 연결을 해주려니 아깝네요 가상키보드를 사용하기로 합니다

pi@raspberry:~ $ sudo apt-get install matchbox-keyboard

Reading package lists... Done

Building dependency tree        

Reading state information... Done

The following additional packages will be installed:

  libfakekey0 libpng12-0 matchbox-keyboard-im

The following NEW packages will be installed:

  libfakekey0 libpng12-0 matchbox-keyboard matchbox-keyboard-im

0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.

Need to get 204 kB of archives.

After this operation, 419 kB of additional disk space will be used.

Do you want to continue? [Y/n]  y

Get:1 http://ftp.harukasan.org/raspbian/raspbian stretch/main armhf libfakekey0 armhf 0.1-9 [5,674 B]

Get:2 http://ftp.harukasan.org/raspbian/raspbian stretch/main armhf libpng12-0 armhf 1.2.54-6 [160 kB]

Get:3 http://ftp.harukasan.org/raspbian/raspbian stretch/main armhf matchbox-keyboard armhf 0.1+svn20080916-11 [28.4 kB]

Get:4 http://ftp.harukasan.org/raspbian/raspbian stretch/main armhf matchbox-keyboard-im armhf 0.1+svn20080916-11 [10.0 kB]

Fetched 204 kB in 3s (63.2 kB/s)                 

Selecting previously unselected package libfakekey0:armhf.

(Reading database ... 83591 files and directories currently installed.)

Preparing to unpack .../libfakekey0_0.1-9_armhf.deb ...

Unpacking libfakekey0:armhf (0.1-9) ...

Selecting previously unselected package libpng12-0:armhf.

Preparing to unpack .../libpng12-0_1.2.54-6_armhf.deb ...

Unpacking libpng12-0:armhf (1.2.54-6) ...

Selecting previously unselected package matchbox-keyboard.

Preparing to unpack .../matchbox-keyboard_0.1+svn20080916-11_armhf.deb ...

Unpacking matchbox-keyboard (0.1+svn20080916-11) ...

Selecting previously unselected package matchbox-keyboard-im.

Preparing to unpack .../matchbox-keyboard-im_0.1+svn20080916-11_armhf.deb ...

Unpacking matchbox-keyboard-im (0.1+svn20080916-11) ...

Processing triggers for libgtk2.0-0:armhf (2.24.31-2) ...

Processing triggers for mime-support (3.60) ...

Processing triggers for desktop-file-utils (0.23-1) ...

Setting up libpng12-0:armhf (1.2.54-6) ...

Processing triggers for libc-bin (2.24-11+deb9u3) ...

Setting up libfakekey0:armhf (0.1-9) ...

Processing triggers for man-db (2.7.6.1-2) ...

Setting up matchbox-keyboard-im (0.1+svn20080916-11) ...

Setting up matchbox-keyboard (0.1+svn20080916-11) ...

Processing triggers for libc-bin (2.24-11+deb9u3) ...

pi@raspberry:~ $ 

설치가 끝나면 GUI 다시 띄우기 위해 재부팅을 해줍니다

 

메뉴->Accessories->keyboard


키보드가 무지 작지만 입력이 가능해졌네요

 

 

참고:


반응형

관련글 더보기

댓글 영역