2019年11月14日 星期四

WSL常用指令 (編輯中)

 

更新

    sudo apt-get update
    sudo apt-get upgrade


          列出所有已安裝套件

            sudo dpkg -l


                sudo apt list –installed


                    如果安裝的套件有很多, 最好使用 pipe 將結果輸出到 head 或 less 指令顯示:

                      sudo apt list –installed | head


                          sudo apt list –installed | less


                              快速配置軟體環境

                                sudo apt install tasksel

                                  安裝完成後直接輸入

                                    tasksel


                                        安裝桌面環境

                                          mate:

                                            sudo apt-get install mate-desktop-environment


                                                xfce4:

                                                  sudo apt-get install xfce4

                                                    sudo apt install xfce4-session


                                                        gnome:

                                                          sudo apt-get install ubuntu-desktop unity compizconfig-settings-manager


                                                              設定輸出位址:

                                                                export DISPLAY=localhost:0

                                                                  確認輸出位址

                                                                    echo $DISPLAY


                                                                        遠端連線

                                                                          sudo apt-get install xrdp

                                                                            啟動xrdp,並設定開機自動啟動

                                                                              /etc/rc.d/init.d/xrdp_control.sh start


                                                                                  安裝瀏覽器

                                                                                    Firefox:

                                                                                    sudo apt-get install firefox
                                                                                      Chromium:
                                                                                      sudo apt-get install chromium-browser

                                                                                      安裝fcitx輸入法

                                                                                      sudo apt-get install fcitx fcitx-chewing

                                                                                      2019年11月12日 星期二

                                                                                      常用數學單位符號碼表


                                                                                      Ø    unicode = ~U+00D8    ASCII = ALT+0216


                                                                                      .©    unicode = ~U+00A9    ASCII = ALT+0169
                                                                                      ª    unicode = ~U+00AA    ASCII = ALT+0170
                                                                                      «    unicode = ~U+00AB    ASCII = ALT+0171
                                                                                      ®    unicode = ~U+00AE    ASCII = ALT+0174
                                                                                      .°     unicode = ~U+00B0    ASCII = ALT+0176
                                                                                      ±     unicode = ~U+00B1    ASCII = ALT+0177
                                                                                      ²      unicode = ~U+00B2    ASCII = ALT+0178 
                                                                                      ³      unicode = ~U+00B3    ASCII = ALT+0179
                                                                                      µ     unicode = ~U+00B5    ASCII = ALT+0181
                                                                                      ¹      unicode = ~U+00B9    ASCII = ALT+0185
                                                                                      º      unicode = ~U+00BA    ASCII = ALT+0186
                                                                                      »     unicode = ~U+00BB    ASCII = ALT+0187
                                                                                      ¼    unicode = ~U+00BC    ASCII = ALT+0188
                                                                                      ½    unicode = ~U+00BD    ASCII = ALT+0189
                                                                                      ¾    unicode = ~U+00BE    ASCII = ALT+0190

                                                                                      ­

                                                                                          unicode = ~U+3358
                                                                                          unicode = ~U+3359
                                                                                          unicode = ~U+335A
                                                                                          unicode = ~U+335B
                                                                                          unicode = ~U+335C
                                                                                          unicode = ~U+335D
                                                                                      ㍞    unicode = ~U+335E
                                                                                          unicode = ~U+335F
                                                                                          unicode = ~U+3360
                                                                                          unicode = ~U+3361
                                                                                          unicode = ~U+3362
                                                                                          unicode = ~U+3363
                                                                                          unicode = ~U+3364
                                                                                          unicode = ~U+3365
                                                                                          unicode = ~U+3366
                                                                                          unicode = ~U+3367
                                                                                          unicode = ~U+3368
                                                                                          unicode = ~U+3369
                                                                                          unicode = ~U+336A
                                                                                          unicode = ~U+336B
                                                                                          unicode = ~U+336C
                                                                                          unicode = ~U+336D
                                                                                          unicode = ~U+336E
                                                                                          unicode = ~U+336F
                                                                                          unicode = ~U+3370

                                                                                          unicode = ~U+3371
                                                                                          unicode = ~U+3372
                                                                                          unicode = ~U+3373
                                                                                          unicode = ~U+3374
                                                                                          unicode = ~U+3375
                                                                                          unicode = ~U+3376
                                                                                          unicode = ~U+3377
                                                                                          unicode = ~U+3378
                                                                                          unicode = ~U+3379

                                                                                          unicode = ~U+337A
                                                                                          unicode = ~U+337B
                                                                                          unicode = ~U+337C
                                                                                          unicode = ~U+337D
                                                                                          unicode = ~U+337E
                                                                                          unicode = ~U+337F

                                                                                          unicode = ~U+3380
                                                                                          unicode = ~U+3381
                                                                                          unicode = ~U+3382
                                                                                          unicode = ~U+3383
                                                                                          unicode = ~U+3384
                                                                                          unicode = ~U+3385
                                                                                          unicode = ~U+3386
                                                                                          unicode = ~U+3387
                                                                                          unicode = ~U+3388
                                                                                          unicode = ~U+3389
                                                                                          unicode = ~U+338A
                                                                                          unicode = ~U+338B
                                                                                          unicode = ~U+338C
                                                                                          unicode = ~U+338D
                                                                                          unicode = ~U+338E
                                                                                          unicode = ~U+338F
                                                                                          unicode = ~U+3390
                                                                                          unicode = ~U+3391
                                                                                          unicode = ~U+3392
                                                                                          unicode = ~U+3393
                                                                                          unicode = ~U+3394
                                                                                          unicode = ~U+3395
                                                                                          unicode = ~U+3396
                                                                                          unicode = ~U+3397
                                                                                          unicode = ~U+3398
                                                                                          unicode = ~U+3399
                                                                                      ㎚    unicode = ~U+339A
                                                                                      ㎛    unicode = ~U+339B
                                                                                      ㎜    unicode = ~U+339C
                                                                                          unicode = ~U+339D
                                                                                          unicode = ~U+339E
                                                                                      ㎟    unicode = ~U+339F
                                                                                      ㎠    unicode = ~U+33A0
                                                                                          unicode = ~U+33A1
                                                                                          unicode = ~U+33A2
                                                                                      ㎣    unicode = ~U+33A3
                                                                                          unicode = ~U+33A4
                                                                                          unicode = ~U+33A5
                                                                                          unicode = ~U+33A6
                                                                                          unicode = ~U+33A7
                                                                                          unicode = ~U+33A8
                                                                                      ㎩    unicode = ~U+33A9
                                                                                      ㎪    unicode = ~U+33AA
                                                                                          unicode = ~U+33AB
                                                                                          unicode = ~U+33AC
                                                                                          unicode = ~U+33AD
                                                                                          unicode = ~U+33AE
                                                                                          unicode = ~U+33AF
                                                                                          unicode = ~U+33B0
                                                                                          unicode = ~U+33B1
                                                                                          unicode = ~U+33B2
                                                                                          unicode = ~U+33B3
                                                                                          unicode = ~U+33B4
                                                                                          unicode = ~U+33B5
                                                                                          unicode = ~U+33B6
                                                                                          unicode = ~U+33B7
                                                                                          unicode = ~U+33B8
                                                                                          unicode = ~U+33B9
                                                                                          unicode = ~U+33BA
                                                                                          unicode = ~U+33BB
                                                                                          unicode = ~U+33BC
                                                                                          unicode = ~U+33BD
                                                                                          unicode = ~U+33BE
                                                                                          unicode = ~U+33BF
                                                                                          unicode = ~U+33C0
                                                                                          unicode = ~U+33C1
                                                                                          unicode = ~U+33C2
                                                                                          unicode = ~U+33C3
                                                                                          unicode = ~U+33C4
                                                                                          unicode = ~U+33C5
                                                                                          unicode = ~U+33C6

                                                                                      2019年10月14日 星期一

                                                                                      無法產生日誌檔案訊息



                                                                                      在僅開啟一個SolidWorks程式出現該訊息

                                                                                      解決方法1:確認SolidWorks Corp資料夾寫入權限

                                                                                      解決方法2:重設系統選項



                                                                                      解決方法3:確認安裝路徑中的swxJRNL.swj位置
                                                                                      預設應為C:\Users\tungf\AppData\Roaming\SOLIDWORKS\SOLIDWORKS <版本>\
                                                                                      開啟登錄編輯程式尋找
                                                                                      HKEY_CURRENT_USER > Software > SolidWorks > SolidWorks <版本> > ExtReferences 
                                                                                      找到SolidWorks Journal Folders
                                                                                      將值修改為swxJRNL.swj路徑位置

                                                                                      解決方法4:若登錄檔有1個以上SolidWorks Journal Folders,將依序修改為
                                                                                      SolidWorks Journal Folders1、SolidWorks Journal Folders2...

                                                                                      2019年4月30日 星期二

                                                                                      LAKKA 研究紀錄(x86)


                                                                                      準備
                                                                                      LAKKA 官網

                                                                                      balenaEtcher 映像檔燒錄軟體

                                                                                      winSCP SSH/SFPT連線工具

                                                                                      PuTTY 遠端虛擬終端工具

                                                                                      中文字型檔,副檔名ttf

                                                                                      準備4G以上隨身碟
                                                                                      下載對應設備Lakka映像檔
                                                                                      使用balenaEtcher燒錄至隨身碟


                                                                                      進入系統並設中文介面
                                                                                      插入電腦後進入bios調整開機選項
                                                                                      選擇USB隨身碟開機
                                                                                      進入系統後設定開啟SSH服務 
                                                                                      Settings -> Services
                                                                                      SSH Enable -> ON
                                                                                      SAMBA Enable -> ON
                                                                                      Bluetooth Enable -> ON

                                                                                      設定網路
                                                                                      若是由WiFi連線
                                                                                      Settings -> Wi-Fi
                                                                                      連線至指定SSID

                                                                                      接著到主選單查看IP
                                                                                      Main Menu -> Information -> Network Information
                                                                                      接著在電腦端開啟WinSCP程式
                                                                                      輸入IP,用戶名和密碼都是root  (recalbox則是root / recalboxroot)
                                                                                      連線後到 /tmp/assets/xmb/monochrome 目錄
                                                                                      將中文字型font.ttf複製進去替換
                                                                                      /xmb 目錄下有其他各式主題目錄亦可替換相關字型檔案
                                                                                      回到Lakka畫面到Settings -> User -> Language ->繁體中文
                                                                                      重啟Lakka後完成中文設定


                                                                                      系統設定...
                                                                                      待整理
                                                                                      資料來源


                                                                                      recalbox

                                                                                      2019年2月16日 星期六

                                                                                      PCem ─ PC模擬器

                                                                                       

                                                                                      https://pcem-emulator.co.uk/


                                                                                      PCem 是一款能夠模擬 IBM PC 的模擬器。 從 XT 8088 到 Pentium I MMX 的機器都能夠支援模擬

                                                                                      2019年2月15日 星期五

                                                                                      復古遊戲操作系統batocera.linux

                                                                                       

                                                                                      http://batocera-linux.xorhub.com/

                                                                                      batocera.linux is an operating system (like Windows 10 and Mac OS) specialized in retrogaming available for your pc and different nano computers like the Raspberry and the Odroids. On PC, it is available on a usb key and can boot without altering your existing hard drive. Note that you must own games you play in order to respect legality.


                                                                                      懷舊模擬器RetroArch

                                                                                       

                                                                                      https://retroarch.com/?page=platforms


                                                                                      Cross Platform
                                                                                      RetroArch can run on the usual platforms like Windows, Mac OS X and Linux, but it stands alone in that it can support far more platforms beyond just that.

                                                                                      We support operating systems that not even Microsoft and Apple themselves support anymore, such as macOS X on PowerPC Macs, and RetroArch being available on Windows OSes as far back as Windows 95.

                                                                                      On top of all that, RetroArch also runs on iOS and Android for tablets and phones, as well as on game consoles like PS3, PSP, PS Vita, Wii, Wii U, Switch, and more!