Ubuntu 管理心得

搜尋此網誌

2020年11月21日 星期六

remove snap

  1. Run 'snap list', e.g.
    Name                 Version    Rev    Tracking       Publisher   Notes
    canonical-livepatch  9.5.5      95     latest/stable  canonical✓  -
    core                 16-2.47.1  10185  latest/stable  canonical✓  core
    core18               20200929   1932   latest/stable  canonical✓  base
    kde-frameworks-5     5.47.0     27     latest/stable  kde✓        -
    pdftk                2.02-4     9      latest/stable  smoser      -
  2. sudo snap remove  canonical-livepatch
  3. umount /snap/core/xxxxxx, e.g. df -h shows
    /dev/loop2       98M   98M     0  100% /snap/core/10577
    /dev/loop3       98M   98M     0  100% /snap/core/10583
    Then, issue the lines:
    sudo umount /snap/core/10577
    sudo umount /snap/core/10583
     
  4. snap list --all
    Name  Version    Rev    Tracking       Publisher   Notes
    core             10577  latest/stable  canonical✓  disabled,broken
    core  16-2.48.2  10583  latest/stable  canonical✓  core
    sudo snap remove core --revision 10577
    If  sudo snap remove core --revision 10583 not work, then stop snap service by
    sudo systemctl stop snapd
    then
    sudo snap remove core --revision 10583
    should work.
  5. sudo snap remove core
  6. Run 'snap list' again to see if anything left. e.g.
    No snaps are installed yet. Try 'snap install hello-world'.
  7. sudo apt purge snapd
  8. done.

2020年11月12日 星期四

Select compiz profile unity

  1. Run ccsm,click Preference, change Profile to unity. Then change some settings. If this not work, then follow the steps below.
  2. Open dconf, go to /org/compiz/profiles/,
  3.  To see what  the current-profile is. If the current-profile is Default, then
  4.  run the command:
    dconf dump /org/compiz/profiles/Default/ > my-compiz_Default.ini
    less my-compiz_Default.ini
  5. If the contents of  my-compiz_Default.ini are not the settings as used now, then run this command again:
    dconf dump /org/compiz/profiles/unity/ > my-compiz_unity.ini
    less my-compiz_unity.ini
  6.  If the contents of  my-compiz_unity.ini are all the settings as used now, then go to dconf editor and change the current-profile to unity.
  7. logout, then login.

2020年11月11日 星期三

2020年11月1日 星期日

Create Reference and citations in word

  1. Use JabRef to export MS word xml from bib file, say 110year.xml
  2. Inside word, click 參考資料 -> 管理來源 -> 瀏覽,select 110year.xml
    select all on the left, 複製 to the right panel

    click 關閉
  3.  Click 書目,