根據詢問 Asus 的結果,華碩的 ExpertBook 筆電,以我這台 ExpertBook BM2402來看,是確定 SensePoint 不支援 Linux 環境的 ,其他例如藍芽、網路、音效等,也有可能不支援在 Linux 環境下使用!
我自己的 BM2402 ,不支援 SensePoint 和 藍芽!
老祖宗留下的28件寶貝!
在 Linux Mint 20.3 or Ubuntu 20.04 之前的版本,可以安裝 fcitx 和 fcitx-table-scj6 的方式,就可以安裝 快倉六 的輸入法,但是,在 fcitx5 之後,好像就沒那麼容易了!
處理的方式,參考如下:
sudo apt update
sudo apt install fcitx5 fcitx5-chinese-addons* fcitx5-rime
除了要安裝 fcitx5 之外,還要安裝 中州韻 輸入法,它的輸入法檔案是放在
/usr/share/rime-data
這個目錄裡,所以,我們先到
https://github.com/rime/rime-scj
下載檔案, 主要是 scj6.dict.yaml 和 scj6.schema.yaml 這二個檔案,將這二個檔案下載後,放到 /usr/share/rime-data 目錄下。
接下來,到
~/.local/share/fcitx5/rime
目錄下,建立 default.custom.yaml 檔案,檔案內容如下:
patch:
schema_list:
- schema: scj6
"menu/page_size": 9
若是要使用其他輸入法,也可以參考 /usr/share/rime-data 目錄下的檔案名稱,替換一下。
最後,重啟一下輸入法,應該就可以正常使用了!
參考
https://blog.xuite.net/yh96301/blog/300814859#
https://www.digitaltrends.com/computing/how-to-install-windows-11-in-virtual-machine/
需要注意的地方如下:
Ventoy 這套很好用~
用 Ventoy 做好 USB 開機碟,平常可以當隨身碟使用,可以儲存檔案,或是 ISO 檔,如果用它來開機,就可以選擇要使用那一個 iso 檔案來做開機的動作。
所以,可以將 Linux 不同版本的 iso 檔放進去,也可以放 Windows 11 都沒有問題。
mysqldump -u root -p --all-databases --add-drop-database > all_databases.sql
--all-databases 指全部的資料庫
在比較新的系統裡還原資料庫時,有時會產生 記錄已存在 的訊息,導致還原的動作失敗,可以在備份資料庫時加上 --add-drop-database ,指定在還原時,如果有同名資料庫時,就先刪掉它。
sudo apt update
sudo apt upgrade
sudo apt install apache2 mariadb-server php8.1-fpm php8.1 libapache2-mod-php8.1 php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-intl php8.1-bcmath unzip phpmyadmin python3-certbot-apache
sudo systemctl enable apache2
apache2 -v
sudo systemctl enable mariadb
sudo mysql_secure_installation
mariadb --version
sudo mysql -uroot -p
grant all on *.* to root@localhost identified by '123456';
sudo gedit /etc/php/8.1/apache2/php.ini
upload_max_filesize = 2000M
max_file_uploads = 2000
post_max_size = 2000M
max_execution_time = 600
max_input_time = 1000
max_input_vars = 3000
memory_limit = 1024M
session.gc_maxlifetime = 86400
Dell Precision 3650 tower 的網路卡是 Intel I219-LM 整合型的網路卡,可以參考 https://askubuntu.com/questions/1344156/ubuntu-20-04-2-and-onboard-intel-i219-v 的內容進行。
若系統更新 kernel 的話,還需要重新再執行一次。
參考 https://github.com/telecastr/tp2ctl 的做法,很容易可以設定 外接 Lenovo Trackpoint II Keyboard 的 Trackpoint 。
找來找去,這個版本的 function 最好用,可以正確將 xml 轉成 array.
ref: http://www.bin-co.com/php/scripts/xml2array/
<?php
/**
* xml2array() will convert the given XML text to an array in the XML structure.
* Link: http://www.bin-co.com/php/scripts/xml2array/
* Arguments : $contents - The XML text
* $get_attributes - 1 or 0. If this is 1 the function will get the attributes as well as the tag values - this results in a different array structure in the return value.
* $priority - Can be 'tag' or 'attribute'. This will change the way the resulting array sturcture. For 'tag', the tags are given more importance.
* Return: The parsed XML in an array form. Use print_r() to see the resulting array structure.
* Examples: $array = xml2array(file_get_contents('feed.xml'));
* $array = xml2array(file_get_contents('feed.xml', 1, 'attribute'));
*/
function xml2array($contents, $get_attributes=1, $priority = 'tag') {
if(!$contents) return array();
if(!function_exists('xml_parser_create')) {
//print "'xml_parser_create()' function not found!";
return array();
}
//Get the XML parser of PHP - PHP must have this module for the parser to work
$parser = xml_parser_create('');
xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8"); # http://minutillo.com/steve/weblog/2004/6/17/php-xml-and-character-encodings-a-tale-of-sadness-rage-and-data-loss
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
xml_parse_into_struct($parser, trim($contents), $xml_values);
xml_parser_free($parser);
if(!$xml_values) return;//Hmm...
//Initializations
$xml_array = array();
$parents = array();
$opened_tags = array();
$arr = array();
$current = &$xml_array; //Refference
//Go through the tags.
$repeated_tag_index = array();//Multiple tags with same name will be turned into an array
foreach($xml_values as $data) {
unset($attributes,$value);//Remove existing values, or there will be trouble
//This command will extract these variables into the foreach scope
// tag(string), type(string), level(int), attributes(array).
extract($data);//We could use the array by itself, but this cooler.
$result = array();
$attributes_data = array();
if(isset($value)) {
if($priority == 'tag') $result = $value;
else $result['value'] = $value; //Put the value in a assoc array if we are in the 'Attribute' mode
}
//Set the attributes too.
if(isset($attributes) and $get_attributes) {
foreach($attributes as $attr => $val) {
if($priority == 'tag') $attributes_data[$attr] = $val;
else $result['attr'][$attr] = $val; //Set all the attributes in a array called 'attr'
}
}
//See tag status and do the needed.
if($type == "open") {//The starting of the tag '<tag>'
$parent[$level-1] = &$current;
if(!is_array($current) or (!in_array($tag, array_keys($current)))) { //Insert New tag
$current[$tag] = $result;
if($attributes_data) $current[$tag. '_attr'] = $attributes_data;
$repeated_tag_index[$tag.'_'.$level] = 1;
$current = &$current[$tag];
} else { //There was another element with the same tag name
if(isset($current[$tag][0])) {//If there is a 0th element it is already an array
$current[$tag][$repeated_tag_index[$tag.'_'.$level]] = $result;
$repeated_tag_index[$tag.'_'.$level]++;
} else {//This section will make the value an array if multiple tags with the same name appear together
$current[$tag] = array($current[$tag],$result);//This will combine the existing item and the new item together to make an array
$repeated_tag_index[$tag.'_'.$level] = 2;
if(isset($current[$tag.'_attr'])) { //The attribute of the last(0th) tag must be moved as well
$current[$tag]['0_attr'] = $current[$tag.'_attr'];
unset($current[$tag.'_attr']);
}
}
$last_item_index = $repeated_tag_index[$tag.'_'.$level]-1;
$current = &$current[$tag][$last_item_index];
}
} elseif($type == "complete") { //Tags that ends in 1 line '<tag />'
//See if the key is already taken.
if(!isset($current[$tag])) { //New Key
$current[$tag] = $result;
$repeated_tag_index[$tag.'_'.$level] = 1;
if($priority == 'tag' and $attributes_data) $current[$tag. '_attr'] = $attributes_data;
} else { //If taken, put all things inside a list(array)
if(isset($current[$tag][0]) and is_array($current[$tag])) {//If it is already an array...
// ...push the new element into that array.
$current[$tag][$repeated_tag_index[$tag.'_'.$level]] = $result;
if($priority == 'tag' and $get_attributes and $attributes_data) {
$current[$tag][$repeated_tag_index[$tag.'_'.$level] . '_attr'] = $attributes_data;
}
$repeated_tag_index[$tag.'_'.$level]++;
} else { //If it is not an array...
$current[$tag] = array($current[$tag],$result); //...Make it an array using using the existing value and the new value
$repeated_tag_index[$tag.'_'.$level] = 1;
if($priority == 'tag' and $get_attributes) {
if(isset($current[$tag.'_attr'])) { //The attribute of the last(0th) tag must be moved as well
$current[$tag]['0_attr'] = $current[$tag.'_attr'];
unset($current[$tag.'_attr']);
}
if($attributes_data) {
$current[$tag][$repeated_tag_index[$tag.'_'.$level] . '_attr'] = $attributes_data;
}
}
$repeated_tag_index[$tag.'_'.$level]++; //0 and 1 index is already taken
}
}
} elseif($type == 'close') { //End of tag '</tag>'
$current = &$parent[$level-1];
}
}
return($xml_array);
}