歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Ubuntu Linux >> 樹莓派3 安裝ubuntu-mate,樹莓派3ubuntu-mate

樹莓派3 安裝ubuntu-mate,樹莓派3ubuntu-mate

日期:2017/3/3 18:09:55   编辑:Ubuntu Linux

樹莓派3 安裝ubuntu-mate,樹莓派3ubuntu-mate

樹莓派3 安裝ubuntu-mate,樹莓派3ubuntu-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

http://xxxxxx/Linuxjc/1168203.html TechArticle

Copyright © Linux教程網 All Rights Reserved