ntsok56893
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ###### tags: `Raspberry Pi` `Raspbian` `系統安裝` `軟體安裝` `Java` `IoT` # **在Raspberry Pi上安裝RASPBIAN JESSIE LITE** ## 硬體 Raspberry Pi 3 | | Raspberry Pi 3| |:---:|:-------| |SoC|Broadcom BCM2837(CPU,GPU DSP和SDRAM、USB) |CPU|ARM Cortex-A53 64位元 (ARMv8系列) 1.2GHz (四核心) |GPU|Broadcom VideoCore IV[43], OpenGL ES 2.0, 1080p 30 h.264/MPEG-4 AVC高畫質解碼器 |記憶體|1024 MB (LPDDR2) |影像輸出|畫面用RCA端子(PAL & NTSC)、HDMI,HDMI介面可使用14種解析度,分別從640×350到1920×1200之間 |板載儲存|MicroSD卡插槽 |網路介面|10/100Mbps 乙太網介面(RJ45介面),支援802.11n無線網路及藍牙4.1 --- ## 安裝作業系統(利用Windows安裝) 1. 官方連結下載OS: [下載連結](https://www.raspberrypi.org/downloads/raspbian/) ![](http://i.imgur.com/91av24T.png) 2. 解壓縮下載下來的壓縮檔,得到一個img映像檔 ![](http://i.imgur.com/QVVgg1Q.png) 3. 利用讀卡機將SD卡讀入電腦中 4. 使用[SD卡格式化工具SDFormatter](https://www.sdcard.org/cht/downloads/formatter_4/)將SD卡格式化。 此處使用SDFormatter V4.0 ![](http://i.imgur.com/ILPuO0q.png) 5. 使用[Win32 Disk Imager](https://sourceforge.net/projects/win32diskimager/)將img映像檔燒錄到SD卡中 此處使用Win32 Disk Imager V0.9.5 ![](http://i.imgur.com/oRKKVU5.png) 6. 將SD卡安全拔出,並插入PI 3中,接上HDML線 **PI3沒有開機鍵,接上電源線就開機** --- ## 設定RASPBIAN JESSIE LITE ### 一般設定 --- + 開啟設定介面 ``` sudo raspi-config ``` + 選擇1 Change User Password 更改密碼 + 選擇2 Hostname 更改host名稱(本次不做變動) + 選擇4 Localisation Options + 選擇I2 Change Timezone + 選擇Asia + 選擇Taipei + 選擇I3 Change Keyboard Layout + 選擇Generic 105-key (Intl) PC + 選擇English (US),沒有請去Other找 + 選擇No AltGr key + 選擇No compose key + 選擇I4 Change Wi-fi Country + 選擇TW Taiwan + 選擇5 Interfacing Options + 選擇P2 SSH + 選擇Yes打開SSH + 選擇7 Advanced Options + 選擇A1 Expand Filesystem --- ### 藍芽設定 --- + 關閉藍芽(此次將預設設定關閉) 在安裝時的config.txt裡加上一行(PI裡為/boot資料夾) ``` dtoverlay=pi3-disable-bt ``` + 看藍芽有沒有關閉 ``` service hciuart status ``` ****NOTE*** 使用藍芽方式 + 掃描藍芽設備 ``` sudo hcitool scan ``` + 選擇配對 ``` sudo bluez-simple-agent hci0 xx:xx:xx:xx:xx:xx ``` + 輸入PIN碼 --- ### 網路設定 --- + 打開WIFI設定檔 ``` sudo nano /etc/wpa_supplicant/wpa_supplicant.conf ``` + 加入以下內容(其餘加密等設定若有需要請至參考文章) ``` network={ ssid="yourSSID" psk="yourPasswork" } ``` + 打開網路設定檔,關閉WIFI省電模式 ``` sudo nano /etc/network/interfaces ``` + 加入以下內容 ``` wireless-power off ``` + 進入kbd設定檔,關閉螢幕黑屏及PI省電 ``` sudo nano /etc/kbd/config ``` + 將這兩行改成0 ``` BLANK_TIME=0 POWERDOWN_TIME=0 ``` + 重新開機 ``` reboot ``` --- ### JAVA安裝 --- + 更新 ``` sudo apt-get update ``` + 看有什麼java可以裝 ``` apt-cache search oracle-java ``` + 安裝java(本次安裝8) ``` sudo apt-get install oracle-java8-jdk ``` + 測試是否成功(java) ``` java -version ``` **成功:** ==java version "1.8.0_65"== + 測試是否成功(javac) ``` javac -version ``` **成功:** ==javac 1.8.0_65== **通常安裝版本較舊,安裝較新版本可參考** [在RASPBIAN JESSIE LITE上安裝repository和較新版Oracle Java](https://hackmd.io/s/B1uVqhvO-) + 多版本java切換,如果有設定多個java ``` sudo update-alternatives --config java ``` --- ## 參考文章 [Disable power on Wifi and Bluetooth interfaces during boot?](https://raspberrypi.stackexchange.com/questions/53149/disable-power-on-wifi-and-bluetooth-interfaces-during-boot) [Raspberry pi 記錄2-設定wifi、藍芽](https://dotblogs.com.tw/bowwowxx/2014/04/17/144774) [[基礎] 命令列設置無線網路](https://www.raspberrypi.com.tw/2152/setting-up-wifi-with-the-command-line/)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully