1. 程式人生 > >樹莓派安裝ubuntu16.04

樹莓派安裝ubuntu16.04

1.https://wiki.ubuntu.com/ARM/RaspberryPi下載ubuntu-16.04-preinstalled-server-armhf+raspi3.img.xz


2.解壓縮ubuntu-16.04-preinstalled-server-armhf+raspi3.img.xz為ubuntu-16.04-preinstalled-server-armhf+raspi3.img


3.SDFormatter.exe格式化T卡


4.Win32DiskImager.exe選擇ubuntu-16.04-preinstalled-server-armhf+raspi3.img,T卡碟符,開始寫入


5.T卡插入卡槽,啟動系統,使用者名稱:ubuntu 密碼:ubuntu  修改原始密碼。自動安裝ssh/擴充套件分割槽。


6.更新ubuntu源
  sudo vim /etc/apt/sources.list
  deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
  deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
  deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
  deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
  deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
  deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
  deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
  deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
  deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
  deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse


7.sudo apt-get update


8.ifconfig 檢視IP地址遠端連線


9.windows secureCRT,新建連線ssh2,172.16.1.103,進入ubuntu


10.Optional PPA sudo add-apt-repository ppa:ubuntu-raspi2/ppa   sudo apt-get update


11.設定網路檔案共享
   安裝Samba
    sudo apt-get install samba
    sudo apt-get install smbclient
   配置Samba
    sudo nano /etc/samba/smb.conf
    在檔案尾新增:
      [share]
      comment=this is Linux share directory
      path=/home/
      public=yes
      writable=yes
   啟動Samba服務:
      sudo /etc/init.d/samba restart


   在Windows下訪問共享目錄:
      \\192.168.1.102\share


12.設定Windows遠端桌面  sudo apt-get install xrdp


13.安裝桌面sudo apt-get install xubuntu-desktop 


14.X加速驅動
  sudo apt-get install xserver-xorg-video-fbturbo
  Then add this to /etc/X11/xorg.conf
Section "Device"
    Identifier "Raspberry Pi FBDEV"
    Driver "fbturbo"
    Option "fbdev" "/dev/fb0"
    Option "SwapbuffersWait" "true"
EndSection


15.VideoCore
 sudo apt-get install libraspberrypi-bin libraspberrypi-dev
 sudo ln -s /usr /opt/vc
 sudo apt-get install libraspberrypi-bin-nonfree