Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
@bathory: the following is the part of the content of sudo nano /etc/cloud/cloud.cfg
Quote:
[
# System and/or distro specific settings
# (not accessible to handlers/transforms)
system_info:
# This will affect which distro class gets used
distro: ubuntu
# Default user name + that default users groups (if added/used)
default_user:
name: ubuntu
lock_passwd: True
gecos: Ubuntu
groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
network:
renderers: ['netplan', 'eni', 'sysconfig']
activators: ['netplan', 'eni', 'network-manager', 'networkd']
# Automatically discover the best ntp_client
ntp_client: auto
# Other config here will be given to the distro class and/or path classes
paths:
cloud_dir: /var/lib/cloud/
templates_dir: /etc/cloud/templates/
package_mirrors:
- arches: [i386, amd64]
failsafe:
primary: http://archive.ubuntu.com/ubuntu
security: http://security.ubuntu.com/ubuntu
search:
primary:
- http://%(ec2_region)s.ec2.archive.ubuntu.com/ubuntu/
- http://%(availability_zone)s.clouds....tu.com/ubuntu/
- http://%(region)s.clouds.archive.ubuntu.com/ubuntu/
Looks like I could set the default user as me, pedro, but I can't see how to set the domain name as mywebpage.com
Looks like I could set the default user as me, pedro, but I can't see how to set the domain name as mywebpage.com
D'oh the /etc/cloud/cloud.cfg is different from the one mentioned here.
Anyway, you can use the other option mentioned in the hosts file, i.e. edit /etc/cloud/templates/hosts.debian.tmpl and add there the entries you want:
I attach a picture of some of the settings for my domain at IONOS. Is that the TXT setting you mean?
The TXT is a DNS record that exists for a domain. For example you can use domain that I use for testing all the time (I hope these guys dont hate me for posting this here) is ackits.com
If you do:
# nslookup -q=TXT ackits.com
you will received:
Non-authoritative answer:
ackits.com text = "google-site-verification=oBOD4LuXiwm0yG6_6juHNtNnIGUhzC1
XUO4a6D1qGvE"
ackits.com text = "v=spf1 +ip4:173.231.204.196 +ip4:173.231.229.11 +ip4:209
.182.203.65 +mx +a +include:_spf.google.com ~all"
What this means is that only 173.231.204.196, 173.231.229.11 and 209.182.203.65 are allowed to be sending email on behalf of the domain ackits.com. Most providers like gmail.com or other giants check for the TXT spf records before they accept email.
Do I need to change the default user in /etc/cloud/cloud.cfg??
Quote:
# System and/or distro specific settings
# (not accessible to handlers/transforms)
system_info:
# This will affect which distro class gets used
distro: ubuntu
# Default user name + that default users groups (if added/used)
default_user:
name: ubuntu
lock_passwd: True
gecos: Ubuntu
groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
@HytronBG
What should I put in TXT??
At the moment there are 2 TXT entries, you can see them in the picture I attached. The lower one is:
Quote:
TXT @ "v=spf1 include: spf-eu.ionos.com + ip4: ~all" MAIL
I think I should put this in the VALUE column if my ip4 address is 123.456.789.123
Do I need to change the default user in /etc/cloud/cloud.cfg??
No you don't. There is already a default user (ubuntu) and it's not relevant to the mail system
If you have setup the hostname, masquerading, relaying etc, you can try to send an email from CLI to your gmail.com or qq.com account and watch the logs to see what happens:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.