馃捇 Mounting Samba share on Ubuntu

I鈥檓 mainly noting this here for myself, but perhaps someone else will find this information handy. Install package cifs-utils sudo apt-get install cifs-utils Create a folder to mount the share into sudo mkdir /media/Share Create a file with user credentials in your home directory. touch ~/.smbcredentials Edit the smbcredentials file username=smb_username password=smb_password Edit /etc/fstab sudo nano /etc/fstab Add the following line ( edit where necessary) //NASIP/shares/ /mnt/nas cifs iocharset=utf8,credentials=/home/USER/.smbcredentials,vers=3.0,iocharset=utf8,rw,sec=ntlmssp,file_mode=0644,dir_mode=0755,uid=1000,gid=1000 0 0 You can now mount the samba share with the command below ...

February 13, 2024 路 1 min 路 85 words 路 shelby

How to set up DNS on Ubuntu 22.04 without a netplan config.

I finally found the solution here:聽https://serverok.in/systemd-resolved ( Archive.org cache) In case the link dies in the future, Create a file: sudo mkdir /etc/systemd/resolved.conf.d/ sudo nano /etc/systemd/resolved.conf.d/dns_servers.conf Add my DNS in this file: [Resolve] DNS=8.8.8.8 1.1.1.1 Then restart systemd-resolved sudo systemctl restart systemd-resolved It works even after reboot :-) PS : No idea why my DNS configuration was lost during the upgrade from 20.04 to 22.04.

January 11, 2024 路 1 min 路 66 words 路 shelby