Tuesday, September 1, 2020

Reconfigure upgrade on Ubuntu

 

auto upgrade can be configured on or off by reconfiguring the package

 sudo dpkg-reconfigure unattended-upgrades

 https://i.stack.imgur.com/N8LXx.png

 

 Specify NO and save, the python program will be reconfigured off.

https://askubuntu.com/questions/851444/configuring-unattended-upgrades-which-option-to-select 


--30--

Tuesday, August 4, 2020

download and build driver (RTL wifi) example video


https://www.youtube.com/watch?v=dokG4bCF4GQ

http://gdanstum.net/-12AEHO/DN2D?rndad=2891595163-1596553568

18.04.3 instructions

https://askubuntu.com/questions/1156167/unable-to-get-wifi-adapter-working-clean-19-04-install-network-unclaimed/1156246#1156246

handy summary of commands
https://bbs.archlinux.org/viewtopic.php?id=245864

apt install  -y iw
apt install -y rfkill

from bbs.archlinux.org post above

lsusb

lsusb

b

dmesg

dmesg | grep rtl8812au

0

iw

iw dev

phy#1
    Interface wlp0s20u10
        ifindex 4
        wdev 0x100000001
        addr 00:e0:4c:88:12:00
        type managed
        txpower 12.00 dBm

rfkill

rfkill list

1: phy1: Wireless LAN
    Soft blocked: no
    Hard blocked: no

uname

uname -r

5.0.8-arch1-1-ARCH



--30--

Wednesday, July 1, 2020

recursive extract from an Apache presented file structure via wget

when one finds a directory on the web which has such as

<parent dir>
directory
file1
file2

etc., it's desirable to extract the entire structure, recursing into the directory structure, duplicating the structure in some fashion locally

This example shows how to produce a local structure


https://stackoverflow.com/questions/23446635/how-to-download-http-directory-with-all-files-and-sub-directories-as-they-appear

wget -r -np -nH --cut-dirs=3 -R index.html http://hostname/aaa/bbb/ccc/ddd/
Explanation:
  • It will download all files and subfolders in ddd directory
  • -r : recursively
  • -np : not going to upper directories, like ccc/…
  • -nH : not saving files to hostname folder
  • --cut-dirs=3 : but saving it to ddd by omitting first 3 folders aaa, bbb, ccc
  • -R index.html : excluding index.html files
Reference: http://bmwieczorek.wordpress.com/2008/10/01/wget-recursively-download-all-files-from-certain-directory-listed-by-apache/

wget – recursively download all files from certain directory listed by apache

Case: recursively download all the files that are in the ‘ddd’  folder for the url ‘http://hostname/aaa/bbb/ccc/ddd/&#8217;
Solution:
wget -r -np -nH –cut-dirs=3 -R index.html http://hostname/aaa/bbb/ccc/ddd/
Explanation:
It will download all files and subfolders in ddd directory:
recursively (-r),
not going to upper directories, like ccc/… (-np),
not saving files to hostname folder (-nH),
but to ddd by omitting first 3 folders aaa, bbb, ccc (–cut-dirs=3),
excluding index.html files (-R index.html)

******************************
windows visual version
https://sites.google.com/site/visualwget/a-download-manager-gui-based-on-wget-for-windows


--30--

Tuesday, June 23, 2020

enable port forwarding on ubuntu


check current value
sysctl net.ipv4.ip_forward
set to enabled
sudo sysctl net.ipv4.ip_forward=1
Persist across boots
sudo nano /etc/sysctl.conf
# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1



reference:

--30--

Friday, June 5, 2020

Jacobs Coat Salad


"Jacobs Coat Salad" 

20 oz frozen mixed vegetables, cooked, drained and cooled. 

Add: 
1/2 cup chopped celery, 
1/2 cup chopped onion, 
1/2 cup chopped green pepper 
1 can red kidney beans rinsed and drained. 

For the dressing:
1/2 cup cider vinegar, 
3/4 cup sugar,
2 tbls. flour, 
2 tsp. dry mustard.
salt and pepper to taste.

 Mix and cook until thicken. 
Cool slightly and add to veggie/ bean mixture. 

Refrigerate. 

Best made and cooled several hours or overnite before serving.

--30--