Ubuntu 管理心得

搜尋此網誌

2023年2月27日 星期一

After certbot installed and renew

cf: https://pimylifeup.com/raspberry-pi-ssl-lets-encrypt/

Some settings about firewall:

  1. sudo vim /etc/arno-iptables-firewall/conf.d/00debconf.conf,
    add 443 for OPEN_TCP and OPEN_UDP
  2. Add 443 port forward in wifi web page
  3. Two more things:
    sudo a2enmod ssl
    sudo a2ensite default-ssl
  4. If it can be connected but shows secure error try this again:
    sudo certbot --apache

 IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/kpchiao9600k.sino.tw/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/kpchiao9600k.sino.tw/privkey.pem
   Your cert will expire on 2023-05-29. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

Run this to update certificaion:

sudo certbot certonly --standalone -d example.com -d www.example.com

耳鳴、蟬鳴聲

 cf: https://tw.news.yahoo.com/%E8%80%B3%E9%B3%B4%E7%BA%8F%E8%BA%AB-%E9%A2%A8%E8%81%B2-%E8%9F%AC%E9%B3%B4%E8%81%B2%E5%A4%A7%E4%B8%8D%E5%90%8C-%E4%B8%AD%E9%86%AB%E5%B8%AB%E6%95%99%E4%BD%A0%E5%B0%8D%E7%97%87%E8%AA%BF%E7%90%86-4%E7%A9%B4%E4%BD%8Dko%E4%B8%8D%E9%81%A9-014000988.html

《虛證—蟬鳴聲型耳鳴》

若耳鳴聲屬於「蟬鳴聲」,則應與年老精衰、腎元虧乏,以致耳竅失養,發為耳鳴、耳聾有關。中醫典籍《靈樞經•脈度》中就提到,「腎氣通於耳,腎和則耳能聞五音矣」之說,以及「髓海不足則腦轉耳鳴」的紀錄。

治療方針:所以調理上,會以滋補腎陰、益氣活血為主。

推薦茶飲:

★核桃黑米粥

材料:核桃仁7顆、黑豆5公克、黑芝麻5公克、黑米5公克、白米5公克、枸杞20顆、山藥2片。

做法:製作前一天先把食材用冷水泡軟,第二天加入適量的水熬粥,以中火熬煮大概15分鐘,至水變黏稠的時候關火,用蓋子悶1小時後就可以使用。

作用:核桃、黑豆、黑芝麻、黑米、枸杞、山藥等食材有滋陰補腎、益氣活血的作用,適合年老精衰、腎元虧乏的耳鳴患者食用。

減緩耳鳴發作這樣做!時刻揉按4穴位,自我保健不求人

除了針對造成耳鳴發生的2大類型加以解說,郭祐睿中醫師也推薦經常有耳鳴困擾民眾,不妨可以養成時時扣擊耳門、聽宮、聽會及翳風4個保健穴位的習慣,每次搓揉1分鐘,到有酸脹感為止,就是很好的居家自我保養方式:

聽宮穴位於面部、耳屏前,下頜骨髁狀突的後方,張口時呈凹陷處。主治耳鳴、耳聾。

耳門穴位於頭部側面耳前,耳珠上方稍前的缺口,在聽宮穴上0.5寸,是治療多種耳疾重要的首選穴位之一。

★聽會穴:位於面部,在聽宮下方,張口有凹陷處。《百症賦》中「耳聾氣閉、全憑聽會、翳風」的記載,也是治療耳鳴的重要穴道。

★翳風穴:位於耳垂1後方,當乳突與下頜角之間的凹陷處。《扁鵲神應針灸玉龍經》日:「若人患耳即成聾,下手先須覓翳風。」所以搭配耳門、聽宮、聽會,四穴一體按摩,適度刺激能輔助改善耳鳴現象。


2023年2月24日 星期五

2023年2月23日 星期四

Remove mayo from drupal9

cf: https://www.drupal.org/docs/theming-drupal/defining-a-theme-with-an-infoyml-file
  1. mkdir ~/public_html/drupal9/web/themes/contrib/mayo
  2. cd ~/public_html/drupal9/web/themes/contrib/mayo
  3. vim mayo.info.yml with the following lines:
    name: Mayo
    type: theme
    description: 'remove mayo'
    core_version_requirement: ^9
    libraries:
      - mayo/l
    base theme: stable9
    regions:
      header: 'Header'
      content: 'Content'
      sidebar_first: 'Sidebar first'
    footer: 'Footer'
  4. touch mayo.l
  5. Go into admin/appearance 首頁-> 管理-> 外觀
    There sould be a Myao theme. Delete it. Done!
  6. If Mayo theme not appear, then this method not work.

2023年2月3日 星期五

libGL error: MESA-LOADER: failed to open iris

 cf: https://stackoverflow.com/questions/72110384/libgl-error-mesa-loader-failed-to-open-iris

 

$ cd /home/chiao/anaconda3/lib
$ mkdir libstd_orig  # Create a new folder to keep the original libstdc++
$ mv libstd* libstd_orig  # Put all libstdc++ files into the folder, including soft links
$ cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6  ./ # Copy the c++ dynamic link library of the system here
$ ln -s libstdc++.so.6 libstdc++.so
$ ln -s libstdc++.so.6 libstdc++.so.6.0.29

 

網誌存檔