Ubuntu 管理心得

搜尋此網誌

2020年1月19日 星期日

Catalina on Virtualbox installation

cf: https://techsviewer.com/install-macos-10-15-catalina-on-virtualbox-on-windows-pc/

These codes are critical. Issue  these lines in user account (chiao) not sudo.
Code for VirtualBox (New): 
Note: replace "Your VM Name" in this commands line with your Virtual Machine Name in step 3, then type in the following code:
  • cd "C:\Program Files\Oracle\VirtualBox\"
  • VBoxManage modifyvm "Your VM Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

Change the screen size (e.g. 1440x900):
VBoxManage setextradata  "Your VM Name" VBoxInternal2/EfiGraphicsResolution 1440x900

2020年1月11日 星期六

screen useful commands

Screen commands

 create new window C-a c
rename current window C-a A
see window list C-a " (allows you to select a window to change to)  

split display horizontally C-a S
split display vertically C-a | or C-a V (for the vanilla vertical screen patch)
jump to next display region C-a tab
remove current region C-a X
remove all regions but the current one C-a Q


Scrollback-buffer

In copy mode, one can navigate the scrollback buffer in various ways:
half page up C-u half page down C-d
back C-b forward C-f
cursor left/down/up/right h/j/k/l

2020年1月3日 星期五

vmware mac OS Catalina installation

cf from: https://techsviewer.com/how-to-install-macos-10-15-catalina-on-vmware-on-windows-pc/

  1. update vmware wordkstation to 15.5.1
  2. download unlocker 3.0.3, VERY IMPORTANT!, Edit lnx-install.sh,
    Change the lines inside of lnx-install.sh from 'python gettools.py' to 'python3.7  gettools.py
  3.  Create new guest : Select Guest Operation System: Apple OS X -> macOS 10.15
  4.  After get into guest, then power off, close vmware workstation
  5.  Edit vmx file: insert smc.version = "0" 
  6. Open guest and click Options tab, Guest Operating System  change  to Microsoft Windows and Version to Windows 10 x64
  7.  Power on guest, get into the page: macOS 工具程式,select:
  8. click it, then
  9. Then erase it and format as Mac OS 擴充格式 (日誌式)
    click 清除.

  10. Back into macOS 工具程式,then 安裝 macOS
  11. Wait ... couple of hours !
  12. After installation is ok, change Guest OS back to "macOS 10.15"

2020年1月2日 星期四

clone grade database

Clone from  kpci7:
mysqldump -u chiao -h localhost  -p grade_108_1 > grade_108_1_20200103.sql

to kpchiaoi5:
mysql -u chiao -p grade_108_1 < grade_108_1_20200103.sql