Ubuntu 管理心得

搜尋此網誌

2022年6月28日 星期二

Set mail.au.edu.tw as email server

 The username should be au4051 or au4051@mail.au.edu rather than chiao@mail.au.edu.tw.

drupal smtp server settings

 


2022年6月22日 星期三

2022年6月19日 星期日

firefox desktop icon

 /snap/firefox/current/default256.png

2022年6月17日 星期五

dynamic wallpaper background

  1. sudo apt install mcron
  2. Create a script, say /home/chiao/scripts/dynwall:
    #!/bin/bash
    sleep 3
    IMG=`find  /home/chiao/圖片/wallpaper/dawn/*.jpg | shuf -n 1`
    gsettings set org.gnome.desktop.background picture-options 'stretched'
    /usr/bin/gsettings set org.gnome.desktop.background picture-uri file:///${IMG}
  3. Create /home/chiao/.config/cron/job.vixie
    5 * * * * /home/chiao/scripts/dynwall
  4. Create /home/chiao/.config/autostart/mcron.desktop
    [Desktop Entry]
    Type=Application
    Exec=/usr/bin/mcron -d
    Hidden=false
    NoDisplay=false
    X-GNOME-Autostart-enabled=true
    Name[zh_TW]=mcron
    Name=mcron
    Comment[zh_TW]=
    Comment=
  5. Reboot

2022年6月12日 星期日

Disable motion service

sudo update-rc.d motion disable
 

Missing figure caption

 While making pdf inside kile for book_chapterxx.tex for my /home/chiao/QuantitativeProgramming/LectureNotes/chapter11/ lecture note. The LaTeX src file exported from Jupyter cannot show the figure title.

 To fix this: comment out (put %) the 36th and 37th lines in book_chapter11.tex, e.g.

 %\DeclareCaptionFormat{nocaption}{}
 %\captionsetup{format=nocaption,aboveskip=0pt,belowskip=0pt}

The figure cation shows up now.

2022年6月8日 星期三

Add utf-8 in case of Chinese cannot be read by Python IDLE

Put the lines at the first:

#!/usr/bin/env python
# coding: utf-8

網誌存檔