Setting up a dns server with a virtualbox vm running Ubuntu and making it accessible via vlans

I have a virtual box vm I want to use as a dns server for my local network. I have a few vlans setup. The vm host is 10.0.50.2 The vm is 10.0.50.4 I want to keep everyone out of the 10.0.50.4 network but I do want to make the vm available across my vlans … Read more

How to force installation of specific mysql server version (5.6) in Ubuntu 18.04

I have installed Ubuntu 18.04. I want to install mysql server version 5.6, but apt-get shows that version 5.7 will be installed: apt-get install mysql-server Reading package lists… Done Building dependency tree Reading state information… Done The following additional packages will be installed: libaio1 libcgi-fast-perl libcgi-pm-perl libedit2 libencode-locale-perl libevent-core-2.1-6 libfcgi-perl libgdbm-compat4 libgdbm5 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl … Read more

Postfix, dovecot . emails work when ssh’ed into server, but cannot connect to thunderbird

I have a droplet on digital ocean with Ubuntu 18. I have followed the following Github Youtube tutorial to get email server up and running . The problem is however when i am logged into the server i can send and receive emails using mutt. But when i try to connect it to thunderbird it … Read more

Database hack on ubuntu server [duplicate]

This question already has answers here: How do I deal with a compromised server? (13 answers) Closed 2 years ago. I have installed mysql to an ubuntu (Digital Ocean) server. There are no any extra security layers. Just basic installations. Recently it was hacked and deleted with only one table which has the following message: … Read more

PHP fsockopen giving error with SSL

I am getting the error while connecting to fsockopen. echo $result = fsockopen(‘ssl://smtp.gmail.com’, 465, $error_no, $error_message, 5); //$result = fsockopen(‘tls://smtp.gmail.com’, 587, $error_no, $error_message, 5); if ($result === false) { echo “error no: $error_no error message: $error_message”; echo print_r($result, true); } else { echo ‘success’; } error no: 0 error message: I checked the manual here … Read more

SPF and DKIM configuration Ubuntu 18.04 fails

I have been following this tutorial from DigitalOcean. I have followed every detail but nothing seems to work as expected. Assuming that my FQDN is the following: mydomain.com. Here are my details: SPF (DNS): ~$ dig mydomain.com txt OUTPUT: ;; ANSWER SECTION: mydomain.com. 600 IN TXT “v=spf1 -all” TESTING: ~$ sudo echo “test email” | … Read more

How to use ssh tags on ssh_config

Hi i’m wondering how to use a previously defined tag in my ssh_config file which looks like this Host myhost Hostname myhost.ddns.net Match user jhonfoo host myhost IdentityFile ~/.ssh/myhost Answer The man page states, in relevant part: The criteria for the host keyword are matched against the target hostname, after any substitution by the Hostname … Read more

How to know the file or the directory which consumes all the space?

I have a server with Ubuntu 20.04 the problem is that disk/dev/vda1 partitiom is full. However, I have almost nothing to install. How do you know which file or directory is consuming all the space ? ubuntu@pv-hdh87 ~ $ df -h Filesystem Size Used Avail Use% Mounted on udev 2.9G 0 2.9G 0% /dev tmpfs … Read more

mysqld: Unable to determine if daemon is running: No such file or directory

I was unable to re/start mysql on Ubuntu 18.04 using systemctl start mysql.service command. It suddenly happened after restarting the server. I see this line on the log file: mysqld: Unable to determine if daemon is running: No such file or directory How to solve this? The result of journalctl -xe -u mysql.service is: Jul … Read more

Why does Samba4 fail with NT_STATUS_INTERNAL_ERROR on Ubuntu 18.04

I am having trouble setting up Samba as an AD DC. At present I have 1 Ubuntu box which I’d like to use to share files with other computers in my home network. At present the same machine which servers as the DC would also serve the files. This is a home setup, meaning that … Read more