Ubuntu 管理心得

搜尋此網誌

2024年6月26日 星期三

id and id $USER show different groups

I set my primary group as root in /etc/passwd, and I always do this when install a new system. I also add myself to other groups,eg. sudo, lp, dialout ... However, the id only shows I am in root group and no other groups shown.

So I change my primary group from root to chiao voila the problem is solved! The id and id chiao show the same groups. Futhermore, I can use thonny directly. 

2024年6月24日 星期一

pico w micropython custom module

 The custom module, say my.py, must be saved in pico w rather than computer. Otherwisr, micropython will complain not find import module.

I think this is due to the runtime module must be imported from pico w device.