Mouse pointer jumps to the corner of screen when start drag selection of files in 7-zip

PROBLEM: Mouse pointer jumps to the corner of screen when start drag selection of files in 7-zip

Steps To Reproduce:
1. Open zip file(which contains many files so that scrollbar will appear)
2. Scroll to middle in vertically
3. Try to select files by mouse dragging
Actual Results:
List pane unexpectedly scroll when drag start.
And mouse pointer jumps to the corner of screen.

SOLUTIONS:
1. change to any view other than “Details” view.
2. unstick any unneeded detail column(like comment, folders,files, method,HostOS) so that the horizonal scrollbar is invisible.
3. Or just simply Resize/Maximize the window.
4. install this utility
Advertisements

Public DNS

Unfiltered DNS + Optional Blocking of malicious domains:
Cloudflare:
1.0.0.1
1.1.1.1
2606:4700:4700::1001
2606:4700:4700::1111

Google:
8.8.4.4
8.8.8.8
2001:4860:4860::8844
2001:4860:4860::8888

Quad9:
9.9.9.9
2620:fe::fe

OpenDNS:
208.67.220.220
208.67.222.222
2620:0:ccc::2
2620:0:ccd::2

Yandex DNS: 77.88.8.7

Filtered / Safe DNS — Blocking Adult content for families / children:
CleanBrowsing: 185.228.168.168
Norton ConnectSafe: 199.85.126.20
OpenDNS Family Shield: 208.67.222.123

Speed Test:

Change default network name (ens33) to old “eth0” on Ubuntu

# ifconfig
ens33     Link encap:Ethernet  HWaddr 00:0c:29:bb:8b:8e
          inet addr:10.0.10.131  Bcast:10.0.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:febb:8b8e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:150 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20532 (20.5 KB)  TX bytes:10858 (10.8 KB)

# dmesg | grep -i eth
[    2.196929] e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:bb:8b:8e
[    2.196938] e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
[    2.204129] e1000 0000:02:01.0 ens33: renamed from eth0

# nano /etc/default/grub
add this
GRUB_CMDLINE_LINUX=”net.ifnames=0 biosdevname=0″

# grub-mkconfig -o /boot/grub/grub.cfg

# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
        address 10.0.10.131
        netmask 255.255.255.0
        dns-nameservers 8.8.8.8
        gateway 10.0.10.1
# reboot

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:bb:8b:8e
          inet addr:10.0.1.11  Bcast:10.0.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:febb:8b8e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:230 errors:0 dropped:0 overruns:0 frame:0
          TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:29638 (29.6 KB)  TX bytes:19317 (19.3 KB)

Unbound DNS Server Installation

update and upgrade
# apt-get update
# apt-get upgrade -y

-disable firewall
# ufw disable
-set correct date and timezone
# rm /etc/localtime
# ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime

-disable dnsmasq
# cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
#dns=dnsmasq
[ifupdown]
managed=false

-install unbound dns
# apt-get install unbound
-set cronjob to download named.root automatically
# wget https://www.internic.net/domain/named.root -o /etc/unbound/root.hints
# cat /etc/cron.d/named-root
0 * * * * root wget -c http wget -c http://www.internic.net/domain/named.root -O /etc/unbound/root.hints
# crontab /etc/cron.d/named-root

# cat unbound.conf
server:
    interface: 0.0.0.0
    interface: ::0
    access-control: 0.0.0.0/0 allow
#    access-control: 127.0.0.0 allow
#    access-control: 2001:db8:dead:beef::/48 allow
    # unbound optimisation
    num-threads: 4
    msg-cache-slabs: 16
    rrset-cache-slabs: 16
    infra-cache-slabs: 16
    key-cache-slabs: 16
    outgoing-range: 206
    so-rcvbuf: 4m
    so-sndbuf: 4m
    so-reuseport: yes
    rrset-cache-size: 100m
    msg-cache-size: 50m
    # unbound security
    do-ip4: yes
    do-ip6: yes
    do-udp: yes
    do-tcp: yes
    cache-max-ttl: 86400
    cache-min-ttl: 3600
    hide-identity: yes
    hide-version: yes
    minimal-responses: yes
    prefetch: yes
    use-caps-for-id: yes
    verbosity: 1
    harden-glue: yes
    harden-dnssec-stripped: yes
    root-hints: “/etc/unbound/root.hints”
    private-domain: “ngtrain.com
    private-address: 10.0.10.0/24
#  private-address: 2001:db8:dead:beef::/48
    local-data: “vc.ngtrain.com.  IN A 10.0.10.80″
    local-data-ptr: “10.0.10.80  vc.ngtrain.com
forward-zone:
    name: “.”
    forward-addr: 1.1.1.1
    forward-addr: 9.9.9.9
include: “/etc/unbound/unbound.conf.d/*.conf”

# reboot

Installing Mvance/Unbound Docker

-download unbound docker
-remove unneeded files
# rm -rf 1.5*
# rm -rf 1.6*
# cd 1.7.0
-modify A and PTR records
# cat a-records.conf
# A Record
local-data: “wwwngtrain.com. A 10.0.10.80″
# PTR Record
local-data-ptr: “10.0.10.80 www.ngtrain.com.”

-run unbound docker
# docker run –name unbound -d -p 53:53/udp -v $(pwd)/a-records.conf:/opt/unbound/etc/unbound/a-records.conf:ro –restart=always mvance/unbound:latest

# ifconfig
docker0   Link encap:Ethernet  HWaddr 02:42:4c:11:0b:8e
          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:4cff:fe11:b8e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:71 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7296 (7.2 KB)  TX bytes:32517 (32.5 KB)
eth0      Link encap:Ethernet  HWaddr 00:0c:29:bb:8b:8e
          inet addr:10.0.10.131  Bcast:10.0.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:febb:8b8e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:104709 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:138032839 (138.0 MB)  TX bytes:4026802 (4.0 MB)

# nslookup
> server 10.0.10.131
Default server: 10.0.10.131
Address: 10.0.10.131#53
Server:         10.0.10.131
Address:        10.0.10.131#53
Name:   vc.ngtrain.com
Address: 10.0.10.80
> exit

Docker Installation

LINUX:
Ubuntu
# apt-get update
# apt-get install apt-transport-https ca-certificates curl software-properties-common
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
Verify that you now have the key with the fingerprint9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
# apt-key fingerprint 0EBFCD88
pub   4096R/0EBFCD88 2017-02-22
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid                  Docker Release (CE deb) <docker@docker.com>
sub   4096R/F273FCD8 2017-02-22
# add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge”
# apt-get update
# apt-get install docker-ce

Note:
https://askubuntu.com/questions/505506/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode
From the security standpoint better using sudo than docker group

-add your current user to docker group
$ sudo usermod -aG docker $USER
-test docker can run
# docker info
# docker version
# docker ps

# docker run hello-world

MAC:
I choose Edge because it has Kubernetes
-click 2x Docker.img

drag Docker into Applications

-open Terminal
$ docker ps

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 18.03.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.87-linuxkit-aufs
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952GiB
Name: linuxkit-025000000001
ID: 7S3J:6MMM:ZCYZ:W2FP:Q5ER:WLAC:IN4J:C5IP:3ADB:OIIC:BDPX:U5DS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 21
 Goroutines: 39
 System Time: 2018-04-15T09:00:17.847990624Z
 EventsListeners: 2
HTTP Proxy: docker.for.mac.http.internal:3128
HTTPS Proxy: docker.for.mac.http.internal:3129
Labels:
Experimental: true
Insecure Registries:
 127.0.0.0/8

Live Restore Enabled: false

$ docker version
Client:
 Version:     18.04.0-ce
 API version:        1.37
 Go version:         go1.9.4
 Git commit:        3d479c0
 Built:Tue Apr 10 18:13:16 2018
 OS/Arch:   darwin/amd64
 Experimental:     false
 Orchestrator:     swarm
Server:
 Engine:
  Version:    18.03.0-ce
  API version:       1.37 (minimum version 1.12)
  Go version:        go1.9.4
  Git commit:       0520e24
  Built:         Wed Mar 21 23:14:32 2018
  OS/Arch:  linux/amd64

  Experimental:    true

WINDOWS:
NOTE:

-VMware Workstation vm won’t run if Hyper-V installed on Windows

click 2x Docker for Windows Installer.exe
-on Configuration prompt
tick Add shortcut to desktop

click OK

click Close and Logout
Login back
-on “Hyper-V and Containers features are not enabled. Do you want to enable them for Docker to be able to work properly? Your computer will restart automatically. Note: VirtualBox will no longer work.” prompt
click OK
-run Powershell ISE
> docker version
> docker info
> docker ps

Change Shell Prompt color

for example you want to change username and hostname like this

mario@mycomputer

add into /etc/skel/.bashrc
# If root then red text prompt otherwise green
CURRENTUSER=`whoami`
if [ “$CURRENTUSER” = “root” ]; then
PS1=’\[\033[38;5;1m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;22m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;4m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]#\[$(tput sgr0)\]’
else
PS1=’\[\033[38;5;2m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;1m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;4m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\\$\[$(tput sgr0)\]’
fi