Ubuntu 管理心得

搜尋此網誌

2023年4月26日 星期三

dlinkrouter Warning: AdvRDNSSLifetime <= 2*MaxRtrAdvInterval would allow stale DNS servers to be deleted faster

A lot of such warnings in /var/log/syslog from DLINK DIR-842 router log. 

Disabling the ipv6 address can solve this.



2023年4月21日 星期五

Resolve the error while making octave: uic: Unknown option 'qt'.

Make sure the shell is not within the Anaconda environment. For example:

(base) chiao@kpchiao9600k-2204:/download/Octave/octave-8.2.0$ make

It gets the error:

...

uic: Unknown option 'qt'.

Being inside the Anaconda environment can lead to a make error as Anaconda has multiple "uic" options. These include:

./anaconda3/pkgs/pyqt-5.15.7-py310h6a678d5_1/lib/python3.10/site-packages/PyQt5/uic

./anaconda3/pkgs/qt-main-5.15.2-h327a75a_7/bin/uic

./anaconda3/lib/python3.10/site-packages/PyQt5/uic

./anaconda3/bin/uic

To resolve this error, make sure you are in a regular shell, outside of the Anaconda environment, before running the "make" command. For example

chiao@kpchiao9600k-2204:/download/Octave/octave-8.2.0$ make


2023年4月6日 星期四

ibus table not work

 If the original table is liu-LA.db, then change it into another name, e.g. liu-L.db and cp it into /usr/share/ibus-table. Or edit the makedb.sh file as:

#!/bin/bash
ibus-table-createdb -s liu_LA.txt -n liu_L.db
sudo cp -f liu_L.db /usr/share/ibus-table/tables/
declare -a fname=(".local/share/ibus-table" ".config/ibus" ".cache/ibus" ".cache/ibus-table")
arraylength=${#fname[@]}
for (( i=0; i<${arraylength}; i++ ));do
        /bin/rm -rf /home/chiao/${fname[$i]}
done