發表文章

目前顯示的是 7月, 2021的文章

[Ubuntu] eclipse 開始第一個專案

圖片
接下來紀錄一下,在Ubuntu環境下用eclipse如何新增與Build一個專案: 1.開啟eclipse 2.eclipse會詢問workspace,沒特殊需求就預設吧 3.新增一個專案,File->New->C/C++ Project->選擇C Managed Build 4.選擇empty project   LinuxGCC 由於目前在Ubuntu上開發與執行,所以選Linux GCC  ,如果此專案市要在embedded linux上執行,要選擇Cross GCC  之後在講解 5.Finish ,可以看到左側的Project Explorer中出現HelloWorld的專案 這邊要注意一下,專案中的includes點開,裡面是否有gnu,如果沒有表示你還沒有裝GCC 這樣會無法進行編譯,GCC安裝參考這篇 6.新增一個.c,右鍵->New->Source File->取名main.c 7.在main.c中心曾簡單的程式 8.Build,右鍵->Build Project 9.用terminal打開專案位置/Debug ,執行HelloWorld

[Ubuntu] Ubuntu安裝chrome (command line)

版本:20.04  --------------------------------------------------------- 用不習慣fireFOX,這邊紀錄一下用command Line下載並安裝chrome步驟 1.下載: $ wget - c https : //dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 2.安裝: $ sudo dpkg - i google - chrome - stable_current_amd64.deb 如果沒辦法安裝,安裝相依套件指令: sudo apt - get install - f

[Ubuntu] 安裝eclipse 新增icon至applications中

圖片
 版本:20.04 --------------------------------------------------- 最近在玩embedded linx,工欲善其事,必先利其器 用eclipse開發比較方便,這邊紀錄一下安裝過程 1.下載eclipse c/c++版本: 連結 2.解壓縮到/opt: $ sudo tar - zxvf eclipse - cpp - YYYY - MM - R - linux - gtk - x86_64.tar.gz - C / opt YYY-MM按照下載的檔名做修改 3.這個步驟可有可無,我是都會執行 $ sudo chown - R root : root / opt / eclipse 4.安裝 OpenJDK-8: $ sudo apt - get install openjdk - 8 - jdk ------------------------------------------------------------------------ 將eclipse加到程式集 1. 讓terminal回到home    $ cd ~ 2.新增一個檔案   eclipse.desktop :   3.將下面的文字複製進去 [Desktop Entry] Name = Eclipse Type = Application Exec =/ opt / eclipse / eclipse Terminal = false Icon = eclipse Comment = Integrated Development Environment NoDisplay = false Categories = Development;IDE; Name[en] = Eclipse 4.save file 5.給予 eclipse.desktop 權限 $ sudo chmod + x eclipse.desktop   6.install eclipse.desktop $ sudo desktop - file - install eclipse.desktop    7.建立連結到 /usr/local/bin: $ sudo ln - s / opt / eclipse / eclipse / us

[Ubuntu] 筆記 - 安裝中文輸入 [新酷音]

圖片
 版本:20.04 -------------------------------------------- Ubuntu 新酷音安裝步驟: 1.安裝chewing sudo apt - get install ibus ibus - chewing    安裝完成後重新登入! 2.開啟設定->Region & Language 3.點選"+"->Other,找到Chinese(Chewing)->Add 可以看到以新增新酷音輸入法 4.Manage Installed Languages->Keyboard input method system改成iBus 5.完成後 預設切換就是常用鍵盤中的window按鈕+空白