Add root certificate to Android system

2019-08-07 12:01:16 Using Computers Android

Starting from Android 7 Nougat, applications must explicitly trust user-installed certificates for them to be effective. To bypass this, we can install our own root certificate in the system certificate store.

Requirements: the phone must be rooted.

(more…)


Change when Windows turns the monitor off in lockscreen

2018-05-30 17:31:33 Using Computers Windows

Find the following registry key: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Power/PowerSettings/7516b95f-f776-4464-8c53-06167f40cc99/8EC4B3A5-6868-48c2-BE75-4F3044BE88A7 and change Attributes to 2.

Now change the time in Power Options (advanced options).


Set RDP certificate

2018-03-07 10:53:19 Using Computers Windows

After installing the certificate and grating read to NETWORK SERVICES, regedit:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Set value of SSLCertificateSHA1Hash


Windows 10 “Open command window here”

2017-12-19 08:46:42 Using Computers Windows

Powershell is nice, but too slow.

Edit with regedit:

HKCR\Directory\shell\cmd
HKCR\Directory\Background\shell\cmd
  1. Change owner
  2. Add permission
  3. Rename HideBasedOnVelocityId to anything (e.g. ShowBasedOnVelocityId)

Ubuntu systemd start-up script

2017-12-07 13:39:31 Using Computers Ubuntu
  1. Create a script, e.g. /root/startup.sh.
  2. Create a service in `/etc/systemd/system’, e.g. ‘/etc/systemd/system/startup.service’
  3. Edit the service:
[Unit]
Description=Startup Script

[Service]
Type=oneshot
ExecStart=/root/startup.sh
WorkingDirectory=/root

[Install]
WantedBy=multi-user.target

Lastly, run systemctl enable startup.service

Reboot and test.

Tips:

  1. Before adding the service, run the script to confirm that it works
  2. Before reboot, use service [name] start to confirm that it works