樹莓派3 安裝ubuntu-mate


1、系統安裝

1.1、下載ubuntu-mate鏡像:https://ubuntu-mate.org/raspberry-pi/

    下載SDFormatterv4:https://www.sdcard.org/downloads/formatter_4/

    下載Win32DiskImager:https://sourceforge.net/projects/win32diskimager/

1.2、准備一張大於8GB的TF卡,使用SDFormatterv4格式化TF卡

1.3、用Win32DiskImager將ubuntu-mate鏡像(ubuntu-mate-16.04-desktop-armhf-raspberry-pi.img)寫入TF卡中

2、系統配置

2.1、修改文件系統大小

輸入sudo fdisk /dev/mmcblk0

輸入d 回車

輸入2 回車

輸入n 回車

輸入p 回車

輸入2 回車

輸入 回車 回車 w 回車

然后重啟系統后輸入sudo resize2fs /dev/mmcblk0p2

再重啟系統

2.2、設置網絡文件共享

2.2.1、安裝Samba

sudo apt-get install samba
sudo apt-get install smbclient

2.2.2、配置Samba

sudo nano /etc/samba/smb.conf

在文件尾添加:

[share]
comment=this is Linux share directory
path=/home/
public=yes
writable=yes

保存Ctrl+o退出Ctrl+x

2.2.3、啟動Samba服務:

sudo /etc/init.d/samba restart

在Windows下訪問共享目錄:

\\192.168.1.102\share

2.3、設置VNC遠程控制

2.3.1、安裝tightvncserver

sudo apt-get install tightvncserver

2.3.2、設置密碼

vncpasswd

2.3.3、設置開機自啟動

sudo nano /etc/init.d/tightvncserver

輸入:

#!/bin/sh
### BEGIN INIT INFO
# Provides:          tightvncserver
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop tightvncserver
### END INIT INFO
 
# More details see:
# http://www.penguintutor.com/linux/tightvnc
 
### Customize this entry
# Set the USER variable to the name of the user to start tightvncserver under
export USER='pi'
### End customization required
 
eval cd ~$USER
 
case "$1" in
  start)
    # 啟動命令行。此處自定義分辨率、控制台號碼或其它參數。
    su $USER -c '/usr/bin/tightvncserver -depth 16 -geometry 960x600 :1'
    echo "Starting TightVNC server for $USER "
    ;;
  stop)
    # 終止命令行。此處控制台號碼與啟動一致。
    su $USER -c '/usr/bin/tightvncserver -kill :1'
    echo "Tightvncserver stopped"
    ;;
  *)
    echo "Usage: /etc/init.d/tightvncserver {start|stop}"
    exit 1
    ;;
esac
exit 0

保存Ctrl+o退出Ctrl+x

2.3.4、設置文件權限,更新開機自啟動列表

sudo chmod 777 /etc/init.d/tightvncserver
sudo update-rc.d tightvncserver defaults

2.3.5、在Windows或Android VNC客戶端連接:192.168.1.102:5901即可

2.4、設置Windows遠程桌面

2.4.1、安裝xrdp

sudo apt-get install xrdp

2.4.2、Windows端使用mstsc.exe連接即可

2.5、安裝輸入法

2.5.1、安裝ibus

sudo apt-get install ibus
sudo apt-get install ibus-pinyin

2.5.2、設置ibus輸入法:系統設置->語言支持->鍵盤輸入方式系統 改為 IBus

2.6、更新

sudo apt-get update
sudo apt-get upgrade
sudo rpi-update

 2.7 設置分辨率

sudo nano /boot/config.txt

輸入:

hdmi_force_edid_audio=1
hdmi_group=2
hdmi_mode=28
hdmi_drive=2
hdmi_ignore_edid=0xa5000080

注:hdmi_mode=28   1280x800  60Hz

3 常見問題

3.1 火狐瀏覽器文本框中不能選擇文字

解決辦法:控制中心->IBus首選項->常規->取消 在應用程序窗口中啟用內嵌編輯模式 的選項

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM