常用 Ubuntu 指令

應該是常用又記不住的指令集.

Embedded System, 會出現錯誤訊息而安裝不完(錯誤)

Processing triggers for flash-kernel (3.0~rc.4ubuntu62.2) ...
Unsupported platform.
dpkg: error processing package flash-kernel (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 flash-kernel
E: Sub-process /usr/bin/dpkg returned an error code (1)

加上 FLASH_KERNEL_SKIP=yes 就可以了, ex:

$ export FLASH_KERNEL_SKIP=yes apt install linux-image

User Account 可以使用 Minicom

 # sudo adduser youracct dialout
 $ su - youracct
 $ minicom -D /dev/ttyUSB0

dpkg-reconfigure 部份

dpkg-reconfigure dash

現在 Ubuntu 發行版本預設都使用 dash 作為 shell,但若像筆者用 bash 習慣的人必定要執行此指令,將預設 shell 改為 bash!

dpkg-reconfigure locales

本土化語言設定。

dpkg-reconfigure console-setup

設定 console 的字型、編碼等

dpkg-reconfigure wireshark

安裝 wireshark 完成後,必須要使用 root 才可以順利擷取到網路介面封包,透過此命令可以設定一般使用者也可以正常操作

更改 editor

sudo update-alternatives –config editor

安裝 hwe Kernel

sudo apt-get install –install-recommends linux-generic-hwe-16.04

ref.
常用 dpkg-reconfigure 記錄
LTSEnablementStack
=== 備份用 ===
ARM64 出現

debconf: unable to initialize frontend: Dialog                                                                                                        
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm lin
e 76.)                                                                                                                                                
debconf: falling back to frontend: Readline

open-vm module 重新 compile

$ dpkg-reconfigure open-vm-tools-dkms

http://askubuntu.com/questions/344962/how-do-i-correct-this-error-with-debootstrap-in-ubuntu-server-12-04-3

Ubuntu 16.04 Install File URL
http://ports.ubuntu.com/dists/xenial/main/installer-arm64/current/images/netboot/ubuntu-installer/arm64/

On this day..

Share and Enjoy:
  • Print
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Plurk
Related Posts

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>