导航菜单
Toggle navigation
英文主页
树莓派显示模块
树莓派HDMI
树莓派MHS显示屏
树莓派GPIO显示屏
SPI显示模块
常规SPI模块
Arduino SPI模块
全视角SPI模块
Arduino显示模块
Arduino UNO
Arduino Mega2560
其他显示模块
8/16位并口模块
OLED显示模块
RGB显示模块
开发板
显示屏
IPS彩屏
TN彩屏
OLED屏
查看“如何安装虚拟键盘(CN)”的源代码
←
如何安装虚拟键盘(CN)
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{| class="wikitable" border="1" style=" background-color: white;" |- style="background-color: #f2f2f2;text-align:center" | style="color: #ff0000; font-weight:bold;" align="center" |语言选择(Language): | style=" font-weight:bold;" align="center" |[http://www.lcdwiki.com/zh/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85%E8%99%9A%E6%8B%9F%E9%94%AE%E7%9B%98(CN) 中文] | style=" font-weight:bold;" align="center" |[http://www.lcdwiki.com/How_to_install_Soft_Keyboard EN] |} == <font color="blue">'''How to install Soft Keyboard''':</font> == This installation tutorial uses "2016-05-27-raspbian-jessie" version for testing. If use wheezy or earlier image, then the step5 and step6 have different file paths, please refer to the virtual-keyboard official installation tutorial for specification. Official reference address (English) http://ozzmaker.com/virtual-keyboard-for-the-raspberry-pi/ 1. Install the necessary files <pre style="border: 1px dashed black;color:black;width: 100%"> sudo apt-get update sudo apt-get install libfakekey-dev libpng-dev libxft-dev autoconf libtool </pre> 2.Install the matchbox-keyboard <pre style="border: 1px dashed black;color:black;width: 100%"> git clone https://github.com/mwilliams03/matchbox-keyboard.git cd matchbox-keyboard ./autogen.sh </pre>(Note: "./ autogen.sh" execution takes a few minutes, and would show as follows after running correctly; if it doesn’t show as follows, then need to check to see if there are error Popup Window prompt) [[File:Soft_Keyboard-01.png]] Continue: <pre style="border: 1px dashed black;color:black;width: 50%"> sudo make sudo make install </pre> 3. Install the shared data library for matchbox-keyboard <pre style="border: 1px dashed black;color:black;width: 50%"> sudo apt-get install libmatchbox1 </pre> As following: [[File:Soft_Keyboard-02.png|750px]] 4. Create a virtual keyboard startup script <pre style="border: 1px dashed black;color:black;width: 50%"> sudo nano /usr/bin/toggle-matchbox-keyboard.sh </pre> Paste the following, press Ctrl + X and Y, to save then exit <pre style="border: 1px dashed black;color:black;width: 50%"> #!/bin/bash #This script toggle the virtual keyboard PID=`pidof matchbox-keyboard` if [ ! -e $PID ]; then killall matchbox-keyboard else matchbox-keyboard -s 50 extended& fi </pre> Add executable permission for the script above <pre style="border: 1px dashed black;color:black;width: 50%"> sudo chmod +x /usr/bin/toggle-matchbox-keyboard.sh </pre> 5. Add script above to Start menu <pre style="border: 1px dashed black;color:black;width: 100%"> sudo nano /usr/share/applications/toggle-matchbox-keyboard.desktop </pre> Paste the following content, press Ctrl + X and Y, to save then exit <pre style="border: 1px dashed black;color:black;width: 50%"> [Desktop Entry] Name=Toggle Matchbox Keyboard Comment=Toggle Matchbox Keyboard Exec=toggle-matchbox-keyboard.sh Type=Application Icon=matchbox-keyboard.png Categories=Panel;Utility;MB X-MB-INPUT-MECHANSIM=True </pre> 6. Create an icon on the taskbar (Note that in this step, must be "pi" user privileges, if you use administrator privileges, will not find the file) <pre style="border: 1px dashed black;color:black"> nano ~/.config/lxpanel/LXDE-pi/panels/panel </pre> 7. Find the resembles similar to the following command (default content may be different in different Raspberry Pi versions) <pre style="border: 1px dashed black;color:black;width:100%"> Plugin { type=launchbar Config { Button { id=/usr/share/applications/lxde-x-www-browser.desktop } Button { id=/usr/share/raspi-ui-overrides/applications/pcmanfm.desktop } Button { id=/usr/share/raspi-ui-overrides/applications/lxterminal.desktop } Button { id=/usr/share/applications/wolfram-mathematica.desktop } Button { id=/usr/share/applications/wolfram-language.desktop } } } </pre> Add the following code to add an icon item <pre style="border: 1px dashed black;color:black;width:100%"> Button { id=toggle-matchbox-keyboard.desktop } </pre> After modifying, would show as below: [[File:Soft_Keyboard-03.png|750px]] 8. After modifying, run the following command and re-start the system; you will see a virtual keyboard icon in taskbar on the screen normally. {{code|1=sudo reboot }} P.S. Log into via SSH to see how to change the size of the virtual keyboard {{code|1=DISPLAY=:0.0 matchbox-keyboard -s 50 extended DISPLAY=:0.0 matchbox-keyboard -s 100 extended }}
该页面使用的模板:
模板:Code
(
查看源代码
)
模板:Lan
(
查看源代码
)
返回至
如何安装虚拟键盘(CN)
。