Reno5Aの初期設定

※自分用のメモ

googleログインやアプリのアプデはしておく

adguard,gcam(googlecamera)のインストール

gcam adgurd

アプリの削除(調整中) adbの使い方

adb shell pm uninstall -k –user 0 com.agoda.mobile.consumer
adb shell pm uninstall -k –user 0 com.facebook.system
adb shell pm uninstall -k –user 0 com.facebook.appmanager
adb shell pm uninstall -k –user 0 com.facebook.services
adb shell pm uninstall -k –user 0 com.facebook.katana
adb shell pm uninstall -k –user 0 com.google.android.youtube
adb shell pm uninstall -k –user 0 com.google.android.apps.youtube.music
adb shell pm uninstall -k –user 0 com.google.android.videos
adb shell pm uninstall -k –user 0 com.google.android.apps.podcasts
adb shell pm uninstall -k –user 0 com.google.android.keep
adb shell pm uninstall -k –user 0 com.google.android.apps.photos
adb shell pm uninstall -k –user 0 com.google.android.apps.googleassistant
adb shell pm uninstall -k –user 0 com.google.android.googlequicksearchbox
adb shell pm uninstall -k –user 0 com.google.android.apps.nbu.files
adb shell pm uninstall -k –user 0 com.coloros.backuprestore
adb shell pm uninstall -k –user 0 com.coloros.gamespaceui
adb shell pm uninstall -k –user 0 com.coloros.childrenspace
adb shell pm uninstall -k –user 0 com.coloros.soundrecorder
adb shell pm uninstall -k –user 0 com.coloros.videoeditor
adb shell pm uninstall -k –user 0 com.coloros.karaoke

adb shell pm uninstall -k –user 0 com.google.android.apps.wellbeing
adb shell pm uninstall -k –user 0 com.google.android.apps.docs
adb shell pm uninstall -k –user 0 com.google.android.gms.location.history
adb shell pm uninstall -k –user 0 com.google.android.apps.magazines
adb shell pm uninstall -k –user 0 com.google.android.apps.subscriptions.red
adb shell pm uninstall -k –user 0 com.google.ar.core
adb shell pm uninstall -k –user 0 com.heytap.cloud
adb shell pm uninstall -k –user 0 com.heytap.pictorial
adb shell pm uninstall -k –user 0 com.heytap.music
adb shell pm uninstall -k –user 0 com.coloros.musiclink
adb shell pm uninstall -k –user 0 com.coloros.relax
adb shell pm uninstall -k –user 0 com.coloros.weather2
:adb shell pm uninstall -k –user 0 com.coloros.weather.service 消すと再起動を繰り返すので生かす
adb shell pm uninstall -k –user 0 com.coloros.athena
adb shell pm uninstall -k –user 0 com.coloros.phonemanager
adb shell pm uninstall -k –user 0 com.caf.fmradio

adb shell pm uninstall -k –user 0 com.felicanetworks.mfm.main

adb shell pm uninstall -k –user 0 com.oppo.usercenter
adb shell pm uninstall -k –user 0 com.oppo.sos

UbuntuにOpenVPNを構築しWindowsとAndroidから接続

Server

参考
Qiita

$  cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"

install

openvpn install

$ sudo apt  install openvpn

easy-rsaのclone

$ git clone https://github.com/OpenVPN/easy-rsa.git

サーバー用秘密鍵の作成は上記参考
鍵の有効期限を伸ばしておく

./easy-rsa/easyrsa3/easyrsa
#set_var EASYRSA_CRL_DAYS           180
set_var EASYRSA_CRL_DAYS           3650

config

$ cat /etc/openvpn/server.conf
port   1194
proto  udp
dev    tun

ca          ca.crt
cert        server.crt
key         server.key
dh          dh.pem
crl-verify  crl.pem

ifconfig-pool-persist ipp.txt

server 10.8.0.0 255.255.255.0

push "redirect-gateway def1 bypass-dhcp"
push "route 10.8.0.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"

client-to-client
keepalive 10 120
comp-lzo

user  nobody
group nogroup

persist-key
persist-tun

status      /var/log/openvpn-status.log
log         /var/log/openvpn.log
log-append  /var/log/openvpn.log

verb 3
$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
1194/udp                   ALLOW       Anywhere
80/tcp                     ALLOW       Anywhere
443/tcp                    ALLOW       Anywhere
1194/udp (v6)              ALLOW       Anywhere (v6)
80/tcp (v6)                ALLOW       Anywhere (v6)
443/tcp (v6)               ALLOW       Anywhere (v6)

client

クライアント用秘密鍵の作成は上記参考

クライアントで必要なのは以下3ファイル
CA証明書 :ca.crt
pki証明書:[ユーザー名].crt
pki秘密鍵:[ユーザー名].key

Windows

クライアントソフト
vpnux

Android

qiita
クライアントソフト
OpenVPN for Android
注意点

  • 基本設定:[種別]は[証明書]を選択してください。(初期状態は[Androidの証明書管理]となっています)
  • IPとDNS:[設定情報を取得する]をON
  • 認証/暗号化:[証明書のホスト名を確認する]をOFF