New answers tagged

0

Unfortunately, I could not find my gpg.conf file anywhere. So in order to get a hardened gpg configuration file, I downloaded a Hardened gpg.conf file from Dr.Duh's github page at github.com/drduh/config/blob/master/gpg.conf Then I modified it to include the keyservers of my desire, in the order I want Mac OS to read them, with the keyserver at the top, ...


0

These routes are created automatically because you have declared the following in your netplan yaml: addresses: - 192.168.10.11/24 - aaaa:bbbb:cccc:10::11/64 If you don't want there to be routes to these networks on the vlan10 interface, you can simply not declare them.


0

In my service file, also was these lines: PrivateDevices=true ProtectHome=true Those parameters don't allow manipulation with home folder. It should be commented or deleted from the service file.


0

Hmmm. Do you have physical access to the server? If so I'd hook up a monitor and keyboard, and boot into emergency mode if possible. (Add a "1" no quotes to the end of the kernel line.) This should allow you to enter the password of any user with sudo permissions, even if the root user password is disabled. Then, you can edit the firewall config ...


2

There is no tested and supported path from 20.04 to 21.04 nor to 21.10. There are a lot of hacks of varying quality. Recommended: The simplest, safest, and fastest path is to back up your data and services, then install 21.10 Server over the older Desktop system. The backup is in case you select the wrong option during install; if you select the correct ...


0

To login psql with new created user role, you’ll need a Linux user with the same name as your new Postgres role. To add the newly created user as linux user sudo adduser <new_user_role>


0

If you have a shared space, then the directory will be visible to other users. But you can give users read, write, and executable access exclusively using chmod. Which will essentially not let them read the contents of the files. I suggest you read this, it will give you an idea of how permissions work in Linux. Click Me.


-1

The correct answer is: / 500 gb (which is used by /tmp, /var, and /home. /Home is your long term storage whereas /tmp and /Var are short term; it stores almost everything so make it big. By also making it big, you Enable your computer to work with say a 498 gb file, so you could download afike that huge. /Boot (1gb) /Usr (20gb) /Root (5gb) /Swap (2gb ...


0

Removed ACL from the directory and its sub directories, and that helps, pretty much it. setfacl -b -R ./AFORWARD


2

You can [install and] run iotop, sudo apt update sudo apt install iotop I often run the following command, sudo iotop -od2


0

NOTE: This assumes that you use the convention of adding the ~ suffix to backups. If you use something else, you need to change the find argument accordingly. For example, if you use, If you instead of something like .bak, the *~ should instead be .bak. Try this: First, run sudo find /sites -type f -name '*~' and look through the output. If you are ...


3

sudo passwd changes the admin password (that is the user used to create the system with) not the password for root. Anything related to root does not require sudo and will mess things up (as Ubuntu expects you meant the admin user when using sudo). change the root password. You change to root using sudo -i (requires the admin password) and then change ...


1

From the comments... Changing the SMTP server security from SSL/TLS to STARTTLS solved the problem.


0

In my case, therefor I install mongodb 4.0 so when I remove it but not data then mongodb 5 can not use this. These is my steps: 1. sudo tail -40 /var/log/mongodb/mongod.log and read somes log relative to mongodb "This version of MongoDB is too recent to start up on the existing data files. Try MongoDB 4.2 or earlier." 2. cd /var/lib/mongodb and ...


0

I am satisfied that my question...my problem...has been answered and solved. heynnema's solution, to use STARTTLS is working for me. Thank you to all who responded and worked on this, for me. – tom koehler


1

A partition boundary introduced with UEFI. It aligns the partitions. You did not find this one? #: ../subiquity/common/filesystem/labels.py:81 msgid "BIOS grub spacer" msgstr "" It is partition type 81.


1

It says you don't have permission to connect to the socket unix:///var/run/docker.sock Simply, to provide permission you can do: sudo chown $USER /var/run/docker.sock Then continue with your other docker commands like docker pull hello-world If you want don't want to type sudo before every docker command, you might want to add the currently logged-in ...


0

I figured it out, this answer is just to help anyone who may have the same problem. This way is probably not so secure, with 3306 open, but a) I only have homework b) you still need the user name and password. When you create a user on mysql it looks something like this, also when you do it via ssh on the server: CREATE USER 'peter'@'localhost' IDENTIFIED ...


0

Try vi /etc/resolv.conf and add nameserver 1.1.1.1 I was having the same issue with Ubuntu server VMs and that fixed it. I'm not sure how to make it persistent after a reboot though.


0

Unless you are uploading files via the command line interface (CLI), this may not be the file you’re looking for. Apache uses the php.ini file found in /etc/php/7.4/apache2. SSH into to your server (if you’re not already connected) Edit the file with your preferred text editor and sudo: sudo vi /etc/php/7.4/apache2/php.ini If you choose to use vi like in ...


0

You should edit this file as root user. From terminal: sudoedit /etc/php/7.4/cli/php.ini


0

In the file 01-network-manager-all.yaml remove all except this lines: network: version: 2 renderer: NetworkManager and execute sudo netplan generate sudo netplan try This should revert your changes until reboot.


1

This was a local issue on the MacOS device. I was using ProtonVPN via Wireguard, and when this is on, MacOS canont resolve the hostname. With VPN turned off, it can.


3

I removed Windows from a dual boot setup and I also had this lingering Windows entry in the grub menu. What finally worked to get rid of it was either one of these two things, or the combination of them: going into /boot/efi/EFI/Microsoft/Boot and renaming bootmgfw.efi to just bootmgfw using efibootmgr to remove the Windows entry I did them on the same ...


1

I don't have definitive confirmation, but I do have quite a bit of observational confirmation that this was a result of the Ubunut 151 kernel release. I was able to easily reproduce the issue while running 151 but after downgrading to any previous version I could not. One unfortunate side affect was the persistence of the damage. The kernel crash itself was ...


0

Hi all I found the answer to this: " *.cvpn-endpoint-xxxxxxxxxxxxxxxx.prod.clientvpn.us-xxxx-1.amazonaws.com " The asterisk (*) represents "[random-string-here]" I put: " vpn.cvpn-endpoint-xxxxxxxxxxxxxxxx.prod.clientvpn.us-xxxx-1.amazonaws.com " Then I referenced that target in my CNAME registration. It resolves perfectly. I'm ...


1

Use the following method to install Poppler in Ubuntu 20.04 Download Poppler wget https://poppler.freedesktop.org/poppler-21.09.0.tar.xz tar -xvf poppler-21.09.0.tar.xz Install some dependencies(if missing) sudo apt-get install libnss3 libnss3-dev sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev sudo apt-get install cmake libblkid-dev e2fslibs-dev ...


0

I had a similar problem and now I see that the problem is with the udp6:[::1]:161 (I assume an ipv6 address). Remove this and then restart service snmpd and the error should go and you get an active state. J


0

I figured it out. I looked through the documentation on on Apache.org to follow through what was supposed to happen when Apache starts. There is a script located in /usr/sbin/ called apachectl. In the 2.4.48 version, line 78 looks like this: HTTPD=${APACHE_HTTPD:-usr/sbin/apache2} In the 2.4.49 and later versions, this line looks like this: HTTPD=${...


3

As this is an EC2 question, the short answer is “No, you do not need to delete the default user”. There are two primary reasons for this: Port 22 should be limited via the security policy that the EC2 instance(s) are using. If SSH is open to 0.0.0.0 then something needs to be changed. Immediately. Even if people know the account name, they will need the ....


0

I needed to redo permissions on the zfs datasets, something like: chown -R me:me /tank/dataset1


0

TL;DR On Ubuntu Server, without guest additions, manually mount the shared folder on the guest, e.g.: mkdir /mnt/sharedfolder sudo mount -t vboxsf FolderNameInVBoxSettings /mnt/sharedfolder If the above works fine, add a corresponding entry in /etc/fstab to make it permanent. Detailed Intructions Let me share what has worked for me in two different setups, ...


1

I used to be a storage engineer working for a storage vendor; if you were a storage admin with my company's storage array hardware, I'm the guy my company would send to fix any problems that stumped the storage admin. Link down means no FC protocol. There may be light going back and forth, but the two sides are not talking. If you have a loopback adapter, ...


0

After implementing everything mentioned above, I finally found that a server reboot works for me. I am assuming this was cache? But it was weird for me at least.


6

Ubuntu 20.04 is reported to be not vulnerable: https://ubuntu.com/security/cve-2021-41773 This is also true for 20.04.03


0

The path to the shared directory needs to allow "read access". so if the path the samba shared directory is /dir1/shared_dir then do this sudo chmod o+rx /dir1 In linux, a user needs Execute permission (+x) on a directory to traverse it on the way to the final directory.


0

I added the Java repository with sudo add-apt-repository ppa:linuxuprising/java, then used sudo apt-get update, and finally used sudo apt install openjdk-17-jdk to get the newest version of Java. I then proceeded to run the server and the status shows that it is working. I also am able to connect from my Minecraft client.


0

Tho the question looks fairly different the answer is the same as http://digitalocean.com/community/questions/sendmail-is-slow-to-send-mail in my case it's working fine after changing these lines in /etc/hosts: 127.0.0.1 localhost 127.0.1.1 myserver to 127.0.0.1 myserver localhost localhost.localdomain 127.0.1.1 myserver localhost localhost.localdomain


0

This is how I fixed this problem. At first you need to stop the Apache2 service and uninstall it completely : sudo service apache2 stop sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common sudo apt-get autoremove --purge After that restart your machine and only then install Apache2 again : sudo apt install apache2


0

I ran into into a similar issue. At the moment it doesn't look like netplan supports can interfaces, which is a bit of a bummer. I did find, though, that systemd-networkd does support can and vcan interfaces. The following is untested - I'm waiting for CAN hardware to arrive - but should work. Add the can modules to /etc/modules so that they get loaded ...


1

If I want to create a private enviroment for each one of them, so that everything that they install will not be shared... This looks like the classic use cases for Containers and Virtual Machines. Both LXD containers and Virtual Machines look --to the remote user-- like an independent system. They do not have access to software on the host system. They can ...


2

I would not try to install other versions of software on a server - too often you need to change dependencies as well. But you could provide a docker image that has the right "version" of ubuntu and configure the appropriate software your user needs. Thats one of the main advantages of docker - install any software version without spoiling your ...


0

The OTRS group discontinued their open source activities. You will find the old packages and the packages for Znuny, a fork, at https://download.znuny.org/releases More details at www.znuny.org


0

Regardless of Virtualization, "Ubuntu Server" and "Ubuntu Desktop", both have a difference. The core system is same, but Server version is optimized for server usage such as Web server ,DB server and etc. And most important thing is Server version has no Desktop Environment installed. This makes computer use less resource. Desktop version,...


0

Documentation for autoinstall file is not great EITHER: use layout: direct and let it automatically try to figure out what your partitioning should be OR do a config: section with your desired setup If you do both layout and config in the storage section... it will only use the layout and ignore the config section


0

There can be a scenario where your apache service is stopped but even then what you are seeing is the /var/www/html directory as root and apache webpage. This is because of the directories in nginx - /etc/nginx/sites-enabled/ (consists of enabled virtual hosted servers) and /etc/nginx/sites-available/ (consists of available virtual hosted servers). One ...


0

Not sure I understood clearly what you mean by 'open multiple shared folders ' but I suppose you mean that if user1 is working on project1, he should have access rights to folder 'project1' and to all other project having other subfolders. I would use the unix groups for that. Create a group and put all required users in that group: sudo groupadd ...


4

Portable Ubuntu Server Network I applied the method by N0rbert to Ubuntu Server installed from the file ubuntu-20.04.3-live-server-amd64.iso The following method makes the installed server's network portable between computers. I installed it in a Toshiba laptop and tested it in a Dell Latitude E7240 and a Lenovo V130. The main difference compared to the ...


0

Try sudo DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade --y, it should prevent any of these prompts


0

Short answer: Yes you can, but no you shouldn't. Long answer: It depends :) Most SAN LUNs are RAID protected on the storage array. Check with your storage team. If your SAN LUNs are not RAID protected on the storage array, this answer doesn't apply. RAID (other than RAID-0 striping, server side) on RAID (storage array side) is never a good thing. ...


Top 50 recent answers are included