2020년 9월 21일 월요일

How to disable annoying Tracker (gathering file index to speed up for file searching)

Tracker tool is one of heavy user of CPU capacity, and do cause read/write operation of SSD, which may reduce the life time of it.

However, if remove Tracker tool, and related, I have to remove some of desktop software in spite of no glue from Tracker.

Therefore, the below is workaround without uninstallation of unwanted desktop software, and Tracker.

(Notice !, these command have to be type in user terminal, not in root privilegeterminal.) 


# systemctl --user mask tracker-store.service tracker-miner-fs.service tracker-miner-rss.service tracker-extract.service tracker-miner-apps.service tracker-writeback.service
 
# tracker reset --hard
 
Reboot the system...

2020년 9월 4일 금요일

How to refresh linux debian system with preserving Home, and installed packages.

 
At first, make the list of installed deb packages.

# apt-mark showmanual > $(backupdir)/installed_packages.txt
# cp /etc/apt/sources.list  $(backupdir)/

In my case, root partition separated with home partition.
So, I do reboot the system with bootable USB flash.
Then, cleaned up the root partition, and install it from USB flash.

Restore sources.list from backed up.

# cp $(backupdir)/sources.list /etc/apt/
# apt update

Finally, restore the packages as installed before.

# cat installed_packages.txt | xargs sudo apt install -y


2020년 9월 1일 화요일

How to connect the internet via wifi on BeagleBone Green Wireless, and update APT package.

* Preparation
Thick and short USB micro cable
Linux host computer with being able to provide USB power as much as possible like usb 3.0 and higher.

* Doing things
Connect USB cable between BBGW, and Linux host. and then, ssh connect to 192.168.7.2

# ssh debian@192.168.7.2

.....


debian@beaglebone:~$
debian@beaglebone:~$ sudo connmanctl
Error getting VPN connections: The name net.connman.vpn was not provided by any connmanctl> enable wifi
Error wifi: Already enabled
connmanctl> scan wifi
Scan completed for wifi
connmanctl> services
    DESKTOP-7MMLAUO 1038 wifi_2cf7f106571a_4445534b544f502d374d4d4c41554f2031303338_managed_psk
    U+zone               wifi_2cf7f106571a_552b7a6f6e65_managed_ieee8021x
    FREE_U+zone          wifi_2cf7f106571a_465245455f552b7a6f6e65_managed_none
    LGU+_POLY            wifi_2cf7f106571a_4c47552b5f504f4c59_managed_psk
connmanctl> agent on
Agent registered
connmanctl> connect wifi_2cf7f106571a_4
wifi_2cf7f106571a_4445534b544f502d374d4d4c41554f2031303338_managed_psk
wifi_2cf7f106571a_465245455f552b7a6f6e65_managed_none
wifi_2cf7f106571a_4c47552b5f504f4c59_managed_psk
connmanctl> connect wifi_2cf7f106571a_4
wifi_2cf7f106571a_4445534b544f502d374d4d4c41554f2031303338_managed_psk
wifi_2cf7f106571a_465245455f552b7a6f6e65_managed_none
wifi_2cf7f106571a_4c47552b5f504f4c59_managed_psk
connmanctl> connect wifi_2cf7f106571a_4445534b544f502d374d4d4c41554f2031303338_managed_psk
Agent RequestInput wifi_2cf7f106571a_4445534b544f502d374d4d4c41554f2031303338_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory, Alternates=[ WPS ] ]
  WPS = [ Type=wpspin, Requirement=alternate ]
Passphrase? $(user_passwd)
Connected wifi_2cf7f106571a_4445534b544f502d374d4d4c41554f2031303338_managed_psk
connmanctl> quit
debian@beaglebone:~$ ifconfig -a
SoftAp0   Link encap:Ethernet  HWaddr a0:f6:fd:8a:04:fb 
          inet addr:192.168.8.1  Bcast:192.168.8.255  Mask:255.255.255.0
          inet6 addr: fe80::a2f6:fdff:fe8a:4fb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:8421 (8.2 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:370 errors:0 dropped:0 overruns:0 frame:0
          TX packets:370 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:29149 (28.4 KiB)  TX bytes:29149 (28.4 KiB)

usb0      Link encap:Ethernet  HWaddr a0:f6:fd:8a:04:f0 
          inet addr:192.168.7.2  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::a2f6:fdff:fe8a:4f0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1516 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:102420 (100.0 KiB)  TX bytes:397352 (388.0 KiB)

wlan0     Link encap:Ethernet  HWaddr 2c:f7:f1:06:57:1a 
          inet addr:192.168.137.71  Bcast:192.168.137.255  Mask:255.255.255.0
          inet6 addr: fe80::2ef7:f1ff:fe06:571a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1911 (1.8 KiB)  TX bytes:16732 (16.3 KiB)

debian@beaglebone:~$ sudo apt update