Saturday, July 6, 2024

Mobile data without using hotpot through V2rayNG

 `{
  "log": {
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": 10808,
      "listen": "0.0.0.0",
      "protocol": "socks",
      "settings": {
        "auth": "noauth",
        "udp": false,
        "ip": "0.0.0.0"
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "direct",
        "domain": [
          "geosite:cn",
          "geosite:geolocation-!cn"
        ],
        "ip": [
          "geoip:cn",
          "geoip:!cn"
        ]
      }
    ]
  }
}`


Note that you need to switch from a profile that connects to a remote server to prevent the auto-shutdown of the above profile, because if it is activated first, V2rayNG will still try to connect to a server(null) that doesn't exist and report errors. 

The intermediate WIFI need to be connected with auto-reconnect feature on. Forget the WIFI and manually reconnect it until mobile data can be used when the internet of WIFI is not available.


Sunday, August 6, 2023

Ubuntu 22.04 boots to a black screen

`Ctrl+Alt+F2` -> login

1.  `cd /etc/gdm3`
     `sudo nano custom.config` -> Uncomment this line: `WaylandEnable=false`
     `reboot` or `sudo systemctl reboot`

2.  Try `sudo apt-get autoremove` or `lspci -nn | grep -E 'VGA|Display'`
     `sudo ubuntu-drivers autoinstall`

3. `sudo apt install --reinstall gdm3 ubuntu-desktop gnome-shell`