Changing your DNS Settings on Ubuntu

Changing your Domain Name Server (DNS) settings from those provided by your broadband provider can improve your internet speed, security and can give you more control. The best way to do this is to change your DNS settings on your router, but some internet providers no longer although this. This is a quick guide to show you how to change the settings on Ubuntu.

wifi

You will need to confiure th DNS settings for a wired ethernet connection and each of your Wifi connections seperately. Note that if you use a VPN the VPN settings will override the DNS settings that you have inputed. So if you use more than one wifi connection you'll edit each one. To edit the ethernet connection seach for the 'Network' window in settings and click on the cog next to the wired section.

wifi

Changing Your IPv4 Settings

Then select the iPv4 tab abd enter the information for your selected DNS.

Ipv4 Settings

Google
            8.8.8.8, 8.8.4.4
Cloudflare
            1.1.1.1, 1.0.0.1

Changing Your Ipv6 Settings

The majority of broadband providers are still using Ivp4 settings, but just in case they are using Ipv6 here are the settings

Google
            2001:4860:4860::8888, 2001:4860:4860::8844
Cloudflare
            2606:4700:4700::1111 and 2606:4700:4700::1001

Clearing your DNS Cache

Once you have changed over to your new DNS server you may need to check that it is working by by visiting this site. You may find that it hasn't changed over because linux as cached the last DNS settings, so try clearing the cache.

You can do this by typing the following in the terminal.

            sudo /etc/init.d/dns-clean restart
            sudo /etc/init.d/networking force-reload

Then check that the DNS cache is 0 by typing the following command.

            ps ax | grep dnsmasq

Finally check that your DNS settings have taken effect by returning to What's my DNS

Translating

Traduzione di una pagina web.

Ciao, sto imparando l’italiano, ma non parlo molto. Mi Chiamo Neil sono inglesse. Faccio Colazione alle sette e un quartro. Mangio dello yoghurt e un cornetto con burro e della marmellata, bevo del latte.

Pranzo all'una, per primo mangio della pasta, per secondo meangio del pollo con delle carote e dei piselle. Per dolce mangio delle fragole con della panna. Bevo della limonata.

Ceno alle sei. Mangio della carne, con delle patate arroste e dei broccoli, bevo del vino rosso.

Il giorno di Natale

Per primo mangiamo della zuppa e beviamo dello spumante. Per secondo mangiamo del tacchino, del ripieno, dei pisella, delle carote, Il sugo dell' arrosto, e beviamo vino rosso. Per dolce mangiamo dei tortini natalizi e beviamo il caffè.

Buon Natale

Gli appunti

Per creare una traduzione in Nikola è necessario modificare il file conf.py per specificare la lingua in cui è disponibile il tuo post. È quindi possibile creare un file duplicato del post del blog con il prefisso per la lingua. Per esempio. se il post originale era post.rst, la traduzione in italiano sarebbe post.it.rst. Quindi, quando costruisci il tuo sito, Nikola creerà automaticamente un collegamento di traduzione, oltre a tradurre qualsiasi menu ecc.

How to create a multiple language post.

Hello, I am learning to speak Italian, but I don't speak much. My name is Neil and I am English. I have breakfast at a quarter past six. I eat yoghurt and a croissant with butter and jam, I drink milk.

I have lunch at 1pm. First, I eat pasta, second I eat chicken with carrots and peas. For dessert I eat strawberries and cream. I drink lemonade.

I have dinner at six. I eat meat with roast potatoes and brocolli, I drink some red wine.

Christmas Day

To start we have soup and drink sparkling wine. For the main course, we eat turkey, stuffing, peas, carrots, gravy and we drink red wine. For dessert we eat Christmas cake and drink coffee.

Happy Christmas

Notes

To create a translation in Nikola you need to edit the conf.py file to specify the languague that your post is available in. You then create a duplicate file of your blog post with the prefix for the language. E.g. if the original post was post.rst, the translation for italian would be post.it.rst. Then when you build your site Nikola will create a translation link automatically, as well as translating any menus etc.

File Sharing On Ubuntu

How to share file in Ubuntu 19.04

It is easy enough to shares files on Ubuntu with either a Linux or a windows machine, but it doesn't quite work straight out of the box and it does require a little bit of tweaking.

USB drive

First Install Samba

sudo apt install samba

Then you need to enable the Samba user account, so you can securely login from another PC.

sudo smbpasswd -a username

Then set the password you want to use to login. After that, type the following command to enable the user.

smbpasswd -e username

Next, add the following to to the smb.conf file. Before you do this it is a good idea to backup your configuration file by typing the following command.

sudo cp /etc/samba/smb.conf{,.backup}

You'll need to open the configuration file in a text editor such as nano. For example you could type: sudo nano /etc/samba/smb.conf then add the following line. Then alter any configurations, such as restricting to your local nextwork by uncommenting the following lines

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
interfaces = 127.0.0.0/8 eth0
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.

# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
bind interfaces only = yes
name resolve order = lmhosts bcast host wins

To check that the samba server is running tpe the following command

sudo systemctl status smbd

Then ensure that your filewall is configured correctly by running the following command

sudo ufw allow 'Samba'

finally run the testparm command to check that there are no errors in the smb.conf file.

Two share a folder on the network, you need to change the file permissions. Right click on a folder and click on 'Local Network Share'. Then click on 'Share this folder' and select the relevant permissions you want, finally click on create share. This folder will now be discoverable on other Windows & Linux machines.

The default samba permissions to select

If you are sharing between two Linux machines, a more secure and versatile way of sharing files is using SSH.



Preview image by Artturi Mäntysaari from pixabay.com

Growing your own

Why should you have the hassle of having a vegetable garden?

Why bother to grow a vegetable garden? It takes a considerable amount of time; food is considerably cheaper in the shops than it was 60 years ago; it's a nightmare when you go on holiday, but I have grown a vegetable garden at home for the last two years. It may not be the biggest, it may have more weeds than most, but I still persevere and here's why.

Have you ever heard of the Blue Zones? They are small regions around the world where people live traditional lives and they live considerably longer than the rest of us, I mean over 100 years. Yes, and part of the secret to their success is that they all seem to grow their own vegetables even though they are entirely separate communities all over the world. Their gardens are a cornerstone of their healthy lifestyle.

Read more…

My Ubuntu 19.04 Setup

After spending some time distro hopping between different Linux desktops, I eventually did a full-circle and ended up back on Ubuntu the very first distribution I installed. I like it as it is a large distribution, I know it is secure and kept up to dates and it has a large amount of packages available and the best online support. I find it easy enough to tweak to get a good look and although some alternatives might be faster, I find it ticks all of the boxes fairly well.

I really like gnome. I find it easy to customise so it has a good luck and I enjoy the keyboard shortcuts, which make it functional and easy to use. I'm fairly pragmatic about open source. I try and use more open products like Firefox where possible, but I also do install Google chrome and I still use Gmail. I find that Ubuntu Gnome fits that pragmatic outlook well, It integrates well with Google Services, which at the moment are far more reliable than the open source alternatives.

Read more…