樹心幽徑

20180727makeUbuntuKernel4.17.0
2018/07/27,22:28

REF:https://jerrynest.io/ubuntu-16-04-compile-linux-kernel/

(1)下載:$ sudo wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.17.10.tar.xz
:
2018-07-27 14:27:47 (1.58 MB/s) - ‘linux-4.17.10.tar.xz’ saved [102182824/102182824]

(2)解開:$ sudo tar -xJf linux-4.17.10.tar.xz

$ ls linux*
linux-4.17.10.tar.xz

linux-4.17.10:
arch   certs    CREDITS  Documentation  firmware  include  ipc     Kconfig  lib       MAINTAINERS  mm   README   scripts   sound  usr
block  COPYING  crypto   drivers        fs        init     Kbuild  kernel   LICENSES  Makefile     net  samples  security  tools  virt
ubuntu@ubuntu:/media/ubuntu/89443b33-e7a5-4a5a-b7c5-f26b698b4886/home/treehrt$

(3)

$ sudo mv linux-4.17.10 ../../usr/src

$ ls ../../usr/src
linux-4.17.10            linux-headers-4.13.0-45-generic  linux-headers-4.15.0-29-generic  linux-headers-4.4.0-130-generic
linux-headers-4.13.0-45  linux-headers-4.15.0-29          linux-headers-4.4.0-130          vboxhost-5.2.14

(4)

$ cd ../../usr/src

$ sudo ln -s linux-4.17.10 linux

$ ls -l
total 28
lrwxrwxrwx  1 root root   13  7月 27 14:42 linux -> linux-4.17.10
drwxrwxr-x 25 root root 4096  7月 25 09:26 linux-4.17.10
drwxr-xr-x 27 root root 4096  6月 15 13:46 linux-headers-4.13.0-45
drwxr-xr-x  7 root root 4096  6月 15 13:46 linux-headers-4.13.0-45-generic
drwxr-xr-x 27 root root 4096  7月 25 09:27 linux-headers-4.15.0-29
drwxr-xr-x  8 root root 4096  7月 25 09:27 linux-headers-4.15.0-29-generic
drwxr-xr-x 27 root root 4096  7月 10 04:53 linux-headers-4.4.0-130
drwxr-xr-x  7 root root 4096  7月 10 04:53 linux-headers-4.4.0-130-generic
lrwxrwxrwx  1 root root   32  6月 29 14:00 vboxhost-5.2.14 -> ../share/virtualbox/src/vboxhost

(5)

$ sudo cp /boot/config-4.4.0-21-generic ./.config

(6)$ sudo make menuconfig
  HOSTCC  scripts/basic/fixdep
 *** Unable to find the ncurses libraries or the
:

make: *** [menuconfig] Error 2

(7)$ sudo apt-get install libncurses-dev
:
設定 libncurses5-dev:i386 (6.0+20160213-1ubuntu1) ...

(8)sudo cp /boot/config-4.4.0-21-generic  .

(9) sudo apt-get install bison

(10) sudo apt-get install flex

(11)$ sudo make menuconfig
(12) sudo make 失敗
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
Makefile:970: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel".  Stop.

(13) sudo apt-get install libelf-dev

(14) sudo make 又失敗

:

scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: 沒有此一檔案或目錄

(15) sudo apt-get install openssl

(16)

sudo apt-get install libssl-dev

sudo apt-get install  kernel-package libncurses5-dev libc6-dev libssl-dev build-essential

(17) sudo make

終於編譯成功

(18)編譯模組: sudo make modules

(19)安裝模組:sudo make modules_install

(20)安裝核心: sudo make install

W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin for module i915

正在產生 grub 設定檔 ...
找到 linux 映像檔:/boot/vmlinuz-4.17.10
找到 initrd 映像檔:/boot/initrd.img-4.17.10
找到 linux 映像檔:/boot/vmlinuz-4.17.10.old
找到 initrd 映像檔:/boot/initrd.img-4.17.10
找到 linux 映像檔:/boot/vmlinuz-4.4.0-21-generic
找到 initrd 映像檔:/boot/initrd.img-4.4.0-21-generic
找到 Ubuntu 16.04.4 LTS (16.04) [於 /dev/sdc2]
完成

21)lspci | grep VGA


00:02.0 VGA compatible controller: Intel Corporation Device 3e92
treehrt@treehrt-System-Product-Name:/boot/grub$

(22) cat /proc/cpuinfo | grep "model name"


model name    : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
model name    : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
model name    : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
model name    : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
model name    : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
model name    : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
model name    : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
model name    : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
treehrt@treehrt-System-Product-Name:/boot/grub$

(23)sudo update-initramfs -u -k all

:

update-initramfs: Generating /boot/initrd.img-4.17.10
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin for module i915
update-initramfs: Generating /boot/initrd.img-4.4.0-21-generic

 

locate i915/skl_

/lib/firmware/i915/skl_dmc_ver1.bin/lib/firmware/i915/skl_dmc_ver1_23.bin/lib/firmware/i915/skl_dmc_ver1_26.bin/lib/firmware/i915/skl_guc_ver1.bin/lib/firmware/i915/skl_guc_ver1_1059.bin/lib/firmware/i915/skl_guc_ver4.bin/lib/firmware/i915/skl_guc_ver4_3.bin/lib/firmware/i915/skl_guc_ver6.bin/lib/firmware/i915/skl_guc_ver6_1.bin/lib/firmware/i915/skl_huc_ver01_07_1398.bintreehrt@treehrt-fire:~$ treehrt@treehrt-fire:~$  locate i915/skl_/lib/firmware/i915/skl_dmc_ver1.bin/lib/firmware/i915/skl_dmc_ver1_23.bin/lib/firmware/i915/skl_dmc_ver1_26.bin/lib/firmware/i915/skl_guc_ver1.bin/lib/firmware/i915/skl_guc_ver1_1059.bin/lib/firmware/i915/skl_guc_ver4.bin/lib/firmware/i915/skl_guc_ver4_3.bin/lib/firmware/i915/skl_guc_ver6.bin/lib/firmware/i915/skl_guc_ver6_1.bin/lib/firmware/i915/skl_huc_ver01_07_1398.bin

(23)ok but cannot X

(24)

 sudo wget https://github.com/wkennington/linux-firmware/raw/master/i915/skl_dmc_ver1_27.bin

sudo wget https://github.com/wkennington/linux-firmware/raw/master/i915/kbl_dmc_ver1_04.bin

 sudo wget https://github.com/wkennington/linux-firmware/raw/master/i915/cnl_dmc_ver1_07.bin

sudo wget https://github.com/wkennington/linux-firmware/raw/master/i915/kbl_guc_ver9_39.bin

 sudo wget https://github.com/wkennington/linux-firmware/raw/master/i915/bxt_guc_ver9_29.bin

treehrt@treehrt-fire:/lib/firmware/i915$ sudo wget https://github.com/wkennington/linux-firmware/raw/master/i915/skl_guc_ver9_33.bin

:2018-07-29 16:12:19 (742 KB/s) - ‘skl_guc_ver9_33.bin’ saved [147520/147520]

 

(25)

treehrt@treehrt-fire:/usr/src/linux$ sudo make installsh ./arch/x86/boot/install.sh 4.17.10 arch/x86/boot/bzImage \        System.map "/boot"run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.17.10 /boot/vmlinuz-4.17.10run-parts: executing /etc/kernel/postinst.d/dkms 4.17.10 /boot/vmlinuz-4.17.10run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.17.10 /boot/vmlinuz-4.17.10update-initramfs: Generating /boot/initrd.img-4.17.10run-parts: executing /etc/kernel/postinst.d/pm-utils 4.17.10 /boot/vmlinuz-4.17.10run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.17.10 /boot/vmlinuz-4.17.10run-parts: executing /etc/kernel/postinst.d/update-notifier 4.17.10 /boot/vmlinuz-4.17.10run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.17.10 /boot/vmlinuz-4.17.10正在產生 grub 設定檔 ...找到 linux 映像檔:/boot/vmlinuz-4.17.10.bak找到 initrd 映像檔:/boot/initrd.img-4.17.10.bak找到 linux 映像檔:/boot/vmlinuz-4.17.10找到 initrd 映像檔:/boot/initrd.img-4.17.10找到 linux 映像檔:/boot/vmlinuz-4.17.10.old找到 initrd 映像檔:/boot/initrd.img-4.17.10找到 linux 映像檔:/boot/vmlinuz-4.15.0-29-generic找到 initrd 映像檔:/boot/initrd.img-4.15.0-29-generic找到 linux 映像檔:/boot/vmlinuz-4.13.0-45-generic找到 initrd 映像檔:/boot/initrd.img-4.13.0-45-generic找到 Ubuntu 16.04.5 LTS (16.04) [於 /dev/sdc5]Adding boot menu entry for EFI firmware configuration完成treehrt@treehrt-fire:/usr/src/linux$

 

(26)

root@treehrt-fire:/home/treehrt# cat /var/log/Xorg.0.log|grep EE        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.[     7.898] (EE)[     7.898] (EE) Backtrace:[     7.899] (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4e) [0x55e8dc5d16ce][     7.899] (EE) 1: /usr/lib/xorg/Xorg (0x55e8dc41f000+0x1b6a69) [0x55e8dc5d5a69][     7.899] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7fa2576e3000+0x354b0) [0x7fa2577184b0][     7.899] (EE) 3: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fa2538a4000+0x75dad) [0x7fa253919dad][     7.899] (EE) 4: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fa2538a4000+0x40d4c) [0x7fa2538e4d4c][     7.899] (EE) 5: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fa2538a4000+0x42cc1) [0x7fa2538e6cc1][     7.899] (EE) 6: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fa2538a4000+0x46179) [0x7fa2538ea179][     7.899] (EE) 7: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fa2538a4000+0x4968e) [0x7fa2538ed68e][     7.899] (EE) 8: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fa2538a4000+0x3a13f) [0x7fa2538de13f][     7.899] (EE) 9: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fa2538a4000+0x3a342) [0x7fa2538de342][     7.899] (EE) 10: /usr/lib/xorg/Xorg (0x55e8dc41f000+0x13d341) [0x55e8dc55c341][     7.899] (EE) 11: /usr/lib/xorg/Xorg (0x55e8dc41f000+0x4fd47) [0x55e8dc46ed47][     7.899] (EE) 12: /usr/lib/xorg/Xorg (0x55e8dc41f000+0x53d9f) [0x55e8dc472d9f][     7.899] (EE) 13: /usr/lib/xorg/Xorg (0x55e8dc41f000+0x57e13) [0x55e8dc476e13][     7.899] (EE) 14: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf0) [0x7fa257703830][     7.899] (EE) 15: /usr/lib/xorg/Xorg (_start+0x29) [0x55e8dc461069][     7.899] (EE)[     7.899] (EE) Segmentation fault at address 0x7c[     7.899] (EE)[     7.899] (EE) Caught signal 11 (Segmentation fault). Server aborting[     7.899] (EE)[     7.899] (EE)[     7.899] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.[     7.899] (EE)[     7.957] (EE) Server terminated with error (1). Closing log file.

 

(27)

sudo apt-get purge xorg "xserver-*"
sudo apt-get purge lightdm plymouth
sudo rm -rf /etc/X11/xorg
sudo apt-get autoremove

(28)
sudo apt-get install xauth xorg openbox lightdm plymouth
sudo apt-get install ubuntu-desktop
sudo reboot
(29)sudo apt purge virtualbox-5.0


20180726rebuild kernel In ubuntu 1604
2018/07/26,07:42

REF:https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

(1) sudo apt install git

(2) git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.git

 

wutingan@WuTingAn:~$ git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.gitCloning into 'ubuntu-precise'...
remote: Counting objects: 3935130, done.
remote: Compressing objects: 100% (574487/574487), done.
remote: Total 3935130 (delta 3338000), reused 3927278 (delta 3330258)
Receiving objects: 100% (3935130/3935130), 955.06 MiB | 1.81 MiB/s, done.
Resolving deltas: 100% (3338000/3338000), done.
Checking out files: 100% (38041/38041), done.

 

(3)

wutingan@WuTingAn:~$ sudo vi /etc/apt/sources.list

:

deb-src http://archive.ubuntu.com/ubuntu trusty main restricted #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties
deb-src http://security.ubuntu.com/ubuntu trusty-security restricted main universe multiverse #Added by software-properties
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-proposed restricted main universe multiverse #Added by software-properties

wutingan@WuTingAn:~$

(4)

wutingan@WuTingAn:~$ sudo apt-get update

 

(5)

wutingan@WuTingAn:~$ sudo apt-get source linux-image-$(uname -r)
:
取得 126 MB 用了 1分19秒 (1,577 kB/s)                                                                                                       
sh: 1: dpkg-source: not found
W: Download is performed unsandboxed as root as file 'linux_3.13.0-153.203.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: 拒絕不符權限的操作)
E: 解開指令 'dpkg-source --no-check -x linux_3.13.0-153.203.dsc' 失敗。
N: 請檢查是否已安裝了 'dpkg-dev' 套件。
wutingan@WuTingAn:~$

(6)

wutingan@WuTingAn:~$ sudo apt-get install dpkg-dev

(7)

wutingan@WuTingAn:~$ sudo apt-get source linux-image-$(uname -r)

 

(8)

wutingan@WuTingAn:~$ sudo apt-get build-dep linux-image-$(uname -r)

(9)

wutingan@WuTingAn:~$ ls -l
總計 123224
-rw-rw-r--  1 wutingan wutingan       427  7月  9 19:43 20180709virtualboxInstall
-rw-r--r--  1 wutingan wutingan      1620 12月 30  2017 a.f95
-rwxr-xr-x  1 wutingan wutingan     13056 12月 30  2017 a.out
-rw-r--r--  1 wutingan wutingan      8980 12月 30  2017 examples.desktop
drwxr-xr-x 26 root     root          4096  7月 26 09:12 linux-3.13.0
-rw-r--r--  1 root     root       9668878  6月 15 15:33 linux_3.13.0-153.203.diff.gz
-rw-r--r--  1 root     root          8127  6月 15 15:33 linux_3.13.0-153.203.dsc
-rw-r--r--  1 root     root     116419243  2月  4  2014 linux_3.13.0.orig.tar.gz
drwxr-xr-x 27 wutingan wutingan      4096  7月 26 08:20 ubuntu-precise
drwxr-xr-x  3 wutingan wutingan      4096  7月  9 17:50 VirtualBox VMs


wutingan@WuTingAn:~$ cd linux-3.13.0/
wutingan@WuTingAn:~/linux-3.13.0$ la
arch     CREDITS  debian.master  dropped.txt  .gitignore  ipc      kernel    MAINTAINERS  net        REPORTING-BUGS  security  ubuntu
block    crypto   Documentation  firmware     include     Kbuild   lib       Makefile     notes.txt  samples         sound     usr
COPYING  debian   drivers        fs           init        Kconfig  .mailmap  mm           README     scripts         tools     virt
wutingan@WuTingAn:~/linux-3.13.0$

 

(9)

wutingan@WuTingAn:~/linux-3.13.0$ sudo chmod a+x debian/rules
[sudo] password for wutingan:


wutingan@WuTingAn:~/linux-3.13.0$ sudo chmod a+x debian/scripts/*


wutingan@WuTingAn:~/linux-3.13.0$ sudo chmod a+x debian/scripts/misc/*


wutingan@WuTingAn:~/linux-3.13.0$ sudo fakeroot debian/rules clean

:

recipe for target 'debian/control' failed
make: *** [debian/control] Error 255

debian/rules:141:

recipe for target 'debian/control' failed

 

(10)

wutingan@WuTingAn:~/linux-3.13.0$ fakeroot debian/rules editconfigs
:


 *** Install ncurses (ncurses-devel) and try again.
 ***

(11)

sudo apt-get install libncurses-dev

(12)


wutingan@WuTingAn:~/linux-3.13.0$ sudo fakeroot debian/rules editconfigs

:

*** ERROR: 10 config-check failures detected

rm -rf build


20180708在ubuntu裝video driver
2018/07/08,05:58

(1)treehrt@treehrt-fire:~/mysqlc$ sudo lshw -C video
[sudo] password for treehrt:
  *-display UNCLAIMED    
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:de000000-deffffff memory:c0000000-cfffffff ioport:f000(size=64) memory:c0000-dffff
treehrt@treehrt-fire:~/mysqlc$

(2)

Download the Intel graphics installer

 

(3)

treehrt@treehrt-fire:~$ sudo dpkg -i intel-graphics-update-tool_2.0.2_amd64.deb
選取了原先未選的套件 intel-graphics-update-tool。
(讀取資料庫 ... 目前共安裝了 460559 個檔案和目錄。)
準備解開 intel-graphics-update-tool_2.0.2_amd64.deb ...
解開 intel-graphics-update-tool (2.0.2) 中...
dpkg: 因相依問題,無法設定 intel-graphics-update-tool:
 intel-graphics-update-tool 相依於 ttf-ancient-fonts﹔然而:
  套件 ttf-ancient-fonts 未安裝。

dpkg: error processing package intel-graphics-update-tool (--install):
 相依問題 - 保留未設定
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
處理時發生錯誤:
 intel-graphics-update-tool
treehrt@treehrt-fire:~$

 

(4)

treehrt@treehrt-fire:~$ sudo apt install ttf-ancient-fonts
正在讀取套件清單... 完成
正在重建相依關係         
正在讀取狀態資料... 完成
您也許得執行 'apt-get -f install' 以修正這些問題:
下列的套件有未滿足的相依關係:
 ttf-ancient-fonts : 相依關係: fonts-ancient-scripts 但它卻將不會被安裝
E: 未能滿足相依關係。請試著不指定套件來執行 'apt-get -f install'(或採取其它的解決方案)。

 

(5)

treehrt@treehrt-fire:~$ sudo apt install fonts-ancient-scripts

:

設定 fonts-ancient-scripts (2.59-1) ...
設定 intel-graphics-update-tool (2.0.2) ...

(6)

treehrt@treehrt-fire:~$ sudo apt install ttf-ancient-fonts

:

解開 ttf-ancient-fonts (2.59-1) 中...
設定 ttf-ancient-fonts (2.59-1) ...

(7)

treehrt@treehrt-fire:~$ sudo dpkg -i intel-graphics-update-tool_2.0.2_amd64.deb
(讀取資料庫 ... 目前共安裝了 460612 個檔案和目錄。)
準備解開 intel-graphics-update-tool_2.0.2_amd64.deb ...
Unpacking intel-graphics-update-tool (2.0.2) over (2.0.2) ...
設定 intel-graphics-update-tool (2.0.2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
treehrt@treehrt-fire:~$

 

(8)

sudo intel-graphics-update-tool &

L:

Checking if Intel graphics card available...
  • checking for i915 module in /sys/module
  • i915 module found
Checking if Intel graphics card available... OK
Retrieving information from 01.org...
  • fetching https://download.01.org/gfx/ilg-config.cfg
  • saving to /home/treehrt/.ilg-config
  • fetched 1626 bytes
  • fetched 9818 bytes
  • fetched 12301 bytes
  • looking up [Ubuntu xenial] configuration
Retrieving information from 01.org... OK
Checking distribution... OK
Checking kernel version... OK
Checking available repositories... OK
Checking package manager status... OK

:

Ensuring consistent system... OK
Listing packages... OK
Setting up repositories... OK
Installing packages...
    Updating package cache...
    Installing packages... OK
Cleaning up... OK
Listing packages... OK

:

Added:
    libegl1-mesa-drivers:amd64 (12.0.6-0ubuntu0.16.04.1)
    libgles1-mesa:all (18.0.5-0ubuntu0~16.04.1)
    libgles2-mesa:amd64 (18.0.5-0ubuntu0~16.04.1)
    libllvm6.0:amd64 (1:6.0-1ubuntu2~16.04.1)
    libllvm6.0:i386 (1:6.0-1ubuntu2~16.04.1)
    libva-drm1:amd64 (1.7.1-0intel1)
    libva-egl1:amd64 (1.7.1-0intel1)
    libva-glx1:amd64 (1.7.1-0intel1)
    libva-tpi1:amd64 (1.7.1-0intel1)
    vainfo:amd64 (1.7.1-0intel1)
    vdpau-va-driver:amd64 (0.7.4-5)
   
Upgraded:
    i965-va-driver:amd64 (from 1.7.0-1 to 1.7.1-0intel1)
    intel-gpu-tools:amd64 (from 1.14-1 to 1.15-1intel1)
    libcairo-gobject2:amd64 (from 1.14.6-1 to 1.15.2-0intel1)
    libcairo-script-interpreter2:amd64 (from 1.14.6-1 to 1.15.2-0intel1)
    libcairo2-dev:amd64 (from 1.14.6-1 to 1.15.2-0intel1)
    libcairo2:amd64 (from 1.14.6-1 to 1.15.2-0intel1)
    libdrm-amdgpu1:amd64 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-amdgpu1:i386 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-common:all (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-dev:amd64 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-intel1:amd64 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-intel1:i386 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-nouveau2:amd64 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-nouveau2:i386 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-radeon1:amd64 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm-radeon1:i386 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm2:amd64 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libdrm2:i386 (from 2.4.83-1~16.04.1 to 2.4.91-2~16.04.1)
    libegl1-mesa-dev:amd64 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libegl1-mesa:amd64 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libgbm1:amd64 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libgl1-mesa-dri:amd64 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libgl1-mesa-dri:i386 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libgl1-mesa-glx:amd64 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libgl1-mesa-glx:i386 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libglapi-mesa:amd64 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libglapi-mesa:i386 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libosmesa6:amd64 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libosmesa6:i386 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libva-wayland1:amd64 (from 1.7.0-1ubuntu0.1 to 1.7.1-0intel1)
    libva-x11-1:amd64 (from 1.7.0-1ubuntu0.1 to 1.7.1-0intel1)
    libva1:amd64 (from 1.7.0-1ubuntu0.1 to 1.7.1-0intel1)
    libwayland-egl1-mesa:amd64 (from 17.2.8-0ubuntu0~16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    libxatracker2:amd64 (from 17.0.7-0ubuntu0.16.04.1 to 18.0.5-0ubuntu0~16.04.1)
    va-driver-all:amd64 (from 1.7.0-1ubuntu0.1 to 1.7.1-0intel1)
  


(9)

reboot

(10)

Note: Please update to the latest Linux Kernel for motherboard chipset and components support.

(11)

treehrt@treehrt-fire:~$ dpkg -l 'nvidia*'
要求=U:未知/I:安裝/R:刪除/P:清除/H:保留
| 狀態=N:未安裝/I:已安裝/C:設定檔/U:已解開/F:半設定/H:半安裝/W:待觸發/T:未觸發
|/ 錯誤?=(無)/R:須重新安裝(狀態,錯誤:大寫=有問題)
||/ 名稱           版本         硬體平台     簡介
+++-==============-============-============-=================================
un  nvidia-common  <無>         <none>       (無相關介紹)
un  nvidia-legacy- <無>         <none>       (無相關介紹)
un  nvidia-libopen <無>         <none>       (無相關介紹)
un  nvidia-prime   <無>         <none>       (無相關介紹)
un  nvidia-vdpau-d <無>         <none>       (無相關介紹)
treehrt@treehrt-fire:~$

(12)下載並安裝nvidia 的CUDA Toolkit 8.0 - Feb 2017

treehrt@treehrt-fire:~$ sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
選取了原先未選的套件 cuda-repo-ubuntu1604-8-0-local-ga2。
(讀取資料庫 ... 目前共安裝了 460682 個檔案和目錄。)
準備解開 cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb ...
解開 cuda-repo-ubuntu1604-8-0-local-ga2 (8.0.61-1) 中...
設定 cuda-repo-ubuntu1604-8-0-local-ga2 (8.0.61-1) ...
OK
treehrt@treeh

 

treehrt@treehrt-fire:~$ sudo apt-get update

 

treehrt@treehrt-fire:~$ sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-cublas-performance-update_8.0.61-1_amd64.deb

 

treehrt@treehrt-fire:~$ sudo vi /etc/modprobe.d/blacklist-nouveau.conf
treehrt@treehrt-fire:~$ cat /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
treehrt@treehrt-fire:~$

 

treehrt@treehrt-fire:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.13.0-45-generic
treehrt@treehrt-fire:~$

 

(13)

treehrt@treehrt-fire:~$ lspci | grep -i nvidia
treehrt@treehrt-fire:~$  uname -m && cat /etc/*release
x86_64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
treehrt@treehrt-fire:~$

treehrt@treehrt-fire:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.10' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)


treehrt@treehrt-fire:~$ uname -r
4.13.0-45-generic

treehrt@treehrt-fire:~$ sudo apt-get install linux-headers-$(uname -r)
正在讀取套件清單... 完成
正在重建相依關係         
正在讀取狀態資料... 完成
linux-headers-4.13.0-45-generic is already the newest version (4.13.0-45.50~16.04.1).
linux-headers-4.13.0-45-generic 被設定為手動安裝。

treehrt@treehrt-fire:~$

 

20180707在ubuntu1604的VitualBox5.2裝windows XP
2018/07/07,07:56

(1)啟動VirtualBox5.2

新增-->選WINDOWS XP(32bit)-->512MB RAM-->建虛擬碟-->選VDI

-->選動態配置-->資料夾XP-->設定值-->存放裝置/加入光碟機

(2)重開機/放入XP原版光碟開始安裝XP作業系統/完成。

(3a)應用程式→系統工具→Oracle VM VirtualBox→啟動→裝置→安裝 Guest Additions

(3b)設定值→共用資料夾/新增Data

 

 

 

 

 

20180707在ubuntu1604裝VitualBox
2018/07/07,05:51

(一)

REF:https://blog.csdn.net/pengjian444/article/details/71775476

https://www.virtualbox.org/

(二)

(1)

treehrt@treehrt-fire:~$ sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list.d/virtualbox.list'

(1b)

treehrt@treehrt-fire:~$ vi /etc/apt/sources.list

 

treehrt@treehrt-fire:~$ cat /etc/apt/sources.list

:

http://download.virtualbox.org/virtualbox/debian xenial contrib

 

(2)

treehrt@treehrt-fire:~$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
OK

 

(3)

treehrt@treehrt-fire:~$ sudo apt update

:

取得 4,666 kB 用了 3秒 (1,389 kB/s)                                  

:

228 packages can be upgraded. Run 'apt list --upgradable' to see them.

(4)

treehrt@treehrt-fire:~$ sudo apt install virtualbox-5.0

:

Consult /var/lib/dkms/vboxhost/5.0.40/build/make.log for more information.
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
Processing triggers for libc-bin (2.23-0ubuntu10) ...

(5)

treehrt@treehrt-fire:~$ sudo apt install virtualbox-5.1

:

設定 virtualbox-5.1 (5.1.38-122592~Ubuntu~xenial) ...
addgroup: 在系統群組中已有 'vboxusers' 這個群組。離開本功能。
Processing triggers for libc-bin (2.23-0ubuntu10) ...
treehrt@treehrt-fire:~$

treehrt@treehrt-fire:~$ virtualbox
 

執行ok, 安裝成功。
(6)

treehrt@treehrt-fire:~$ sudo apt install virtualbox-5.2


treehrt@treehrt-fire:~$ virtualbox
 

執行ok, 安裝昇級也成功。
 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by LifeType