cutefishos / core

System components and backend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On CutefishOS, the DNS and /etc/apt/sources.list are set for China, and don't work well outside China

rdrms opened this issue · comments

commented

Hello, this may be miscategorized, but I couldn't find any issue tracker for the CutefishOS ISO that you released (0.6 Beta)

I just installed a fresh copy in a VM, and when I did, I noticed that the DNS was wrong, while websites would load I could not update using "apt get update" because both the Debian mirror and DNS settings appear to be hard coded for Chinese usage.

Updating the DNS to use a known good Western DNS server (8.8.8.8 and 8.8.4.4), disabling IPv6 (potentially unneeded) and changing the sources.list file to be like in this link fixed it:

/etc/apt/sources.list

deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free

deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free

The commands used for editing the DNS and IPv6 settings were nmcli and are as follows, in case anyone is running into the same issue.

nmcli connection show # find the UUID (long charcter set of letters/numbers) of your connection and copy it, used in next three commands)
nmcli connection modify <uuid> ipv4.dns "8.8.8.8 8.8.4.4" # replace <uuid> with your connection's UUID, this changes the DNS to 8.8.8.8 and 8.8.4.4 which I believe are cloudflare or similar
nmcli connection modify <uuid> ipv6.method "disabled"  #replace <uuid> with your connecctions UUID, this disables IPv6 (potentially uneeded)
nmcli connection up <uuid> #replace <uuid> with your connection's uuid, this brings the connection up with the new settings