[LINUX] f9: oberfläche pro7 + dual boot (elementar os)

.

/ 2020/05/12 a part of explanation has changed / / not for the core changing, it means devided command line part and the result part for more clearly view /

/ 2020/05/23 added confirmation of type cover connected /

surface pro7 + dual boot (elementary os)

\* thanks for the following greater reference pages

================================================ [ contents ]

 00) summaries  01) specs  02) uefi bios  03) windows10 settings  04) windows / linux backup  05) partitions (256gb ssd)  06) install linux testing  07) after installed elementary os 01 (sources.list)  08) after installed elementary os 02 (grub and kernel update)  09) after installed elementary os 03 (other apps)  10) windows10 (other settings)

================================================


00) [ summaries ]

* surface pro7 dual boot / grub    windows10 home    elementary os 5.1

[ ok ]  * wlan / touch screen / battery percentage  * shutdown / reboot  * battery charging limit 50%  * any action of type cover connected also grub menu select

[ still ng or unstable ]  * some process is ng after wake up from suspend     (shutdown / reboot / touch screen is dead)

[ not yet check ]  * change grub boot selector (advanced sub menu to main menu)  * battery charging limit up to 80%  * battery lifetime test running on linux  * any bluetooth action


01) [ specs ]

core i7 / 16gb ram / 256gb ssd win10 home english ver.


02) [ uefi bios ]

  1. secure boot -> off
  2. camera -> off
  3. tpm -> off
  4. battery charging limit (50% default) -> on

external cd boot true image 2017 -> boot is NG Video mode setup error: Error 0x1400006: Invalid video framebuffer parameters. -> it guess needed ti 2020 ver


03) [ windows10 settings ]

  1. bitlocker function is none -> win10 home
  2. device encryption -> off

04) [ windows / linux backup ]

"""""""""""""""""""""""""""" (before dual 1)

  1. win10 / inner image backup to usb hdd

https://pc-karuma.net/windows-10-create-a-system-image-backup/ http://faq3.dospara.co.jp/faq/show/4062?site_domain=default

"""""""""""""""""""""""""""" (before dual 2) 02. surface pro7 (model 1866) / microsoft usb recovery image (factory image to usb mem)

Surface recovery image download (7.2gb) https://support.microsoft.com/ja-jp/surfacerecoveryimage -> select model: surface pro7 + type serial no.

-> make a usb recovery image https://pine-app1e.com/windows/ts-of-windows/surface-recovery-image/ https://taccuma.com/cleaninstall-win10-of-surfacepro5_via-usb/ http://www.taosoftware.co.jp/blog/2013/06/surface_pro_1.html

""""""""""""""""""""""""""""

(after each process then) 03. clonezilla image backup (iso / burn / cd boot)

clonezilla live / alternative testing - 20200224-focal https://clonezilla.org/downloads.php

""""""""""""""""""""""""""""


05) [ partitions ] (256gb ssd)

* using windows diskmgmt.msc * using elementary os partition tool or gparted with live cd boot

  /dev/nvme0n1p1 - fat - efi 273 mb   /dev/nvme0n1p2 - unknown - microsoft reserved 134 mb

  /dev/nvme0n1p3 - ntfs - win c 96 gb   /dev/nvme0n1p4 - ntfs - win d 96 gb

  /dev/nvme0n1p6 - ext4 - / 30 gb   /dev/nvme0n1p7 - ext4 - /home 30 gb   /dev/nvme0n1p8 - swap 3 gb

  /dev/nvme0n1p9 - ntfs - microsoft windows recovery environment 839 mb


06) [ install linux testing ]

tried to install some live cd distribution for dual boot

""""""""""""""""""""""""""""

  1. linix mint / linuxmint-19.3-mate-64bit -> boot is NG as mint logo freeze (no boot option typing)

"""""""""""""""""""""""""""" 02. zorin os core / Zorin-OS-15.1-Core-64-bit-r2 -> boot is NG as keeping black (no boot option typing)

"""""""""""""""""""""""""""" 03. elementary os / elementaryos-5.1-stable.20200204 ( elementary OS 5.1.2 Hera ) -> live boot ok, install ok, grub dual boot ok, wlan ok reboot is ng, shutdown is ok, touch screen is ng

"""""""""""""""""""""""""""" 04. ubuntu / ubuntu-18.04.4-desktop-amd64 -> boot ok, install ok, wlan ok, without touch

"""""""""""""""""""""""""""" finally i chose "03. elementary os (5.1)" above


07) [ after installed elementary os 01 ] (sources.list)

wlan enabled then

sudo apt-get update
sudo apt-get dist-upgrade

""""""""""""""""""""""""""""

  1. nautilus (filer)
sudo apt install nautilus

or

sudo apt-get update && sudo apt-get install nautilus-elementary

or

sudo apt install software-properties-common
sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa
sudo apt-get update && sudo apt-get upgrade

"""""""""""""""""""""""""""" 02. leafpad (text editor)

apt install leafpad

"""""""""""""""""""""""""""" 03. /etc/apt/sources.list

sudo nautilus

+ open sources.list with leafpad then fixed /etc/apt/sources.list as the following

like this

cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
sudo apt-get update
sudo apt-get upgrade

""""""""""""""""""""""""""""


08) [ after installed elementary os 02 ] (grub and kernel update)

""""""""""""""""""""""""""""

  1. /etc/default/grub

mod grub menu option for stable reboot / shutdown (nautilus + leafpad)

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force reboot=b"
sudo update-grub

then reboot

(  testing another menu options are in the middle  )

"""""""""""""""""""""""""""" 02. linux-surface kernel

linux-surface - supported surface pro 7 https://github.com/linux-surface/linux-surface

  1. Debian Repository
    https://github.com/linux-surface/linux-surface/wiki/Package-Repositories
sudo wget -qO - https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc \ | sudo apt-key add -

-> OK

echo "deb [arch=amd64] https://pkg.surfacelinux.com/debian release main" | sudo tee /etc/apt/sources.list.d/linux-surface.list

sudo apt-get update
  1. Surface Kernel Installation

Installation and Setup https://github.com/linux-surface/linux-surface/wiki/Installation-and-Setup

For Debian:

sudo apt-get install linux-headers-surface linux-image-surface linux-libc-dev-surface surface-ipts-firmware linux-surface-secureboot-mok libwacom-surface

-> E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

sudo apt update --fix-missing

uname -a
Linux XXXXX 5.5.10-surface #1 SMP Thu Mar 19 11:12:58 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

  1. after reboot

grub menu -> select: Advanced options for elementary -> select: elementary, with Linux 5.5.10-surface

-> touch screen is ok, task bar battery display is ok

if unstable to run grub menu above, do kick as the following

/var/cache/apt/archives$
sudo dpkg -i linux-image-surface_5.5.10-1_amd64.deb

-> Adding boot menu entry for EFI firmware configuration done



09) [ after installed elementary os 03 ] (other apps)

""""""""""""""""""""""""""""

  1. fcitx (japanese input method) http://note.kurodigi.com/elementary-os-japanese/
$ sudo apt-get install fcitx fcitx-mozc --install-recommends
$ im-config

-> check fcitx then press ok button

$ fcitx-config-gtk3 &

-> confirm select mozc then reboot

"""""""""""""""""""""""""""" 02. python3

apt install python3.8

python --version
-> 2.7.17
python3 --version
-> 3.6.9
python3.8 --version
-> 3.8.0

"""""""""""""""""""""""""""" 03. pip

sudo apt install python3-pip
pip3 list
python3.8 -m pip install --upgrade pip

"""""""""""""""""""""""""""" 04. filezilla / firefox

filezilla - from elementary os / app center firefox - from elementary os / app center

"""""""""""""""""""""""""""" 05. chrome

https://www.google.com/chrome/ download .deb then

sudo dpkg -i google-chrome-stable_current_amd64.deb
apt --fix-broken install

"""""""""""""""""""""""""""" 06. code editor

  1. sublime-text https://snapcraft.io/install/sublime-text/elementary
sudo apt update
sudo apt install snapd
sudo snap install sublime-text --classic
  1. atom https://fossbytes.com/9-best-text-editors-linux-programming-2017/
sudo snap install atom --classic

"""""""""""""""""""""""""""" 07. Dock customize

plank --preferences

"""""""""""""""""""""""""""" 08. desktop app

add「AppCenter」-「desktop folder」

"""""""""""""""""""""""""""" 09. add n/w command

sudo apt install net-tools

"""""""""""""""""""""""""""" 10. git

sudo apt-get install git

then reboot

"""""""""""""""""""""""""""" 11. gnome-terminal

sudo apt install gnome-terminal

vim /usr/share/applications/gnome-terminal.desktop
# OnlyShowIn=GNOME;Unity;

commented above line as # then reboot

remove elementary os default terminal

sudo apt remove pantheon-terminal

"""""""""""""""""""""""""""" 12. GDebi

sudo apt install gdebi

"""""""""""""""""""""""""""" 13. Docker

sudo apt-get install apt-transport-https ca-certificates software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt-get install docker-ce
sudo systemctl start docker

# docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

sudo docker version
sudo docker system info
sudo docker system df -a
sudo docker image ls

then reboot

""""""""""""""""""""""""""""


10) [ windows10 ] (other settings)

""""""""""""""""""""""""""""

  1. check bitlocker status
cmd admin> manage-bde -status

Volume C: [c_local] [OS Volume] BitLocker Version: None Conversion Status: Fully Decrypted

Volume D: [d_local] [Data Volume] BitLocker Version: None Conversion Status: Fully Decrypted

"""""""""""""""""""""""""""" 02. japanese input method - download

windows10 - settings - time & language - language - add a preferred language then windows update

for os apps japanese menu windows10 - control panel -> region -> administrative -> locale -> japanese(japan) then reboot

""""""""""""""""""""""""""""


.

Recommended Posts

f9: oberfläche pro7 + dual boot (elementar os)
Übliches Dual-Boot-Ubuntu