# lepi-gui **Repository Path**: lepi-project/lepi-gui ## Basic Information - **Project Name**: lepi-gui - **Description**: No description available - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-04-02 - **Last Updated**: 2025-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 乐派软件安装 ### 一、基础系统准备 前往[树莓派官网](!https://www.raspberrypi.org/downloads/raspbian/)下载最新Raspbian系统("Raspbian Buster with desktop"版本),推荐通过BT客户端使用Torrent文件进行下载,速度可以比直接网页下载快 下载完成后烧录工具如"Win32DiskImager" "Etcher" "dd"等进行系统烧录,具体细节参考网上相关文档 烧录完成后如需通过网络远程连接树莓派还需在boot分区创建空白的"ssh"文件以打开ssh远程登录权限 通过局域网ssh或键盘显示器连接树莓派进入树莓派系统并打开ssh、vnc、samba等服务的开机启动配置登录权限 ### 二、安装LCD液晶屏及WM8960音频驱动 #### 从github下载最新代码 ``` mkdir ~/workspace && cd workspace git clone https://github.com/wupanhao/lepi-ros-server git clone https://github.com/wupanhao/lepi_gui ``` #### 安装LCD液晶屏驱动 ``` cd ~/workspace/lepi_gui bash install-lcd.sh ``` + 参考如下项目 - https://github.com/goodtft/LCD-show #### 安装WM8960音频驱动 + 参考如下项目 - https://github.com/respeaker/seeed-voicecard - https://github.com/waveshare/WM8960-Audio-HAT ### 三、安装Docker、下载乐派镜像 + 安装Docker `curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh` + 添加当前用户到docker用户组 `sudo usermod -aG docker pi` + 下载乐派镜像 `sudo docker pull wupanhao/lepi_server:melodic` 这一步耗时会较长,建议连接网线进行下载并保证电量充足,可能会耗时近20分钟 ### 四、安装乐派GUI及ROS软件 #### 扩大交换空间,令CONF_SWAPSIZE=1000 ``` sudo nano /etc/dphys-swapfile sudo service dphys-swapfile restart ``` #### 安装、编译ROS软件 + 安装ROS运行环境 ``` sudo apt install -y python-rospy python-rosnode python-roslaunch ``` + 编译ROS工作空间 ``` docker run --rm -t -v /home/pi:/home/pi wupanhao/lepi_server:melodic bash -c "source /ros_entrypoint.sh && cd catkin_ws/ && catkin_make_isolated" ``` #### 安装、编译GUI程序 + 安装nodejs、npm、yarn、electron环境 ``` cd ~/workspace/lepi_gui bash install-nodejs.sh ``` + 安装gui程序 ``` cd ~/workspace/lepi_gui yarn install yarn run build cd ~/workspace/lepi_gui/app yarn install bash auto_start.sh ``` + 添加scratch3.0运行环境 编译scratch-vm环境,将生成的playground目录下的`scratch-render.js scratch-storage.js scratch-svg-renderer.js`和dist/web目录下的`scratch-vm.js`复制到`~/workspace/lepi_gui/app/router/scratch-runner/build`目录下然后重启