7 – Migrating the Drupal site from FreeBSD 12 to Ubuntu 18.04 Unknown behavior of the SQL database

I am currently trying to migrate the Drupal site from FreeBSD 12 to Ubuntu 18.04. All configurations are copied and moved to Ubuntu 18.04. Everything seems to be fine and I was able to create the Drupal site with Ubuntu 18.04, but each time I clear the cache on the new site, it seems that the page settings have disappeared and the content goes everywhere . In addition, the most recent content is also deleted. I usually use the mysqldump command line to empty the mysql database and restore the backup with the mysql command line. I have also tried to download phpmyadmin to empty and restore the mysql database, but the problem is still present. This is a critical problem on the site, because installing a new module automatically clears the cache.

Drupal version: 7.59

I assume that when the mysql database is emptied, the most recent content and the page parameters go into the cache ..? I don't really know how mysql saves the database. Any help would be of great help to me to continue the migration. Thank you!

virtualization – The Virsh command does not work to install the Centos 8 virtual machine on Ubuntu 18.04 via qemu / kvm

I am trying to install centos 8 on Ubuntu 18.04 as a virtual machine. I have a wireless connection. When I execute the following command:

chh2@chh2-cpu:~$ sudo virt-install  --name=chris_centos  --ram=2048  --vcpus=2  --cdrom=/var/lib/libvirt/images/CentOS-8.1.1911-x86_64-dvd1.iso --os-type=linux --os-variant=rhel7  --network network=default --graphics=spice  --disk path=/var/lib/libvirt/images/chris_centos.dsk,size=10

I get the following error message:

Starting install...
Allocating 'chris_centos.dsk'                         |  10 GB  00:00     
No protocol specified
Unable to init server: Could not connect: Connection refused

(virt-viewer:16144): Gtk-WARNING **: 16:41:23.769: cannot open display: :0
Domain installation still in progress. You can reconnect to 
the console to complete the installation process.

I don't know why it doesn't work. I'm a bit new to this, so it would be great to get help.

bash – Command works on the terminal but does not work as a server system service Ubuntu 18.04

I checked again and again on the terminal and ./go.sh both running but not able to start as a service.
I know I'm wrong but I don't know what.


cd / root / goweb / bin
echoip -t = / root / goweb / bin / index.html


Description = goweb

[A service]
Type = fork
Restart = always
RestartSec = 5s
ExecStart = / root / go.sh

WantedBy = multi-user.target


– The goweb.service unit has started to start.
January 19 7:07:40 p.m. ip go.sh [13346]: /root/go.sh: line 3: echoip: command not found
January 19 7:07:40 p.m. ip systemd [1]: goweb.service: Control process completed, code = exite
January 19 7:07:40 p.m. ip systemd [1]: goweb.service: failure with result & # 39; exit code & # 39 ;.
January 19 7:07:40 PM ip systemd [1]: Unable to start goweb.
– Subject: goweb.service unit failed
– Defined by: systemd

virtualhost – Cannot run Sendmail on Ubuntu 18.04.3 (LTS) x64 on DigitalOcean Droplet

I took these steps (from many posts on this forum and others) to install and configure SendMail on my DigitalOcean droplet, running Ubuntu 18.04.3 (LTS) x64, but I couldn't get it to work.

1. sendmail installed:

sudo apt-get install sendmail

2. changed the host name:

# sudo hostnamectl set-hostname coffee

# sudo nano /etc/hostname

# hostname

3. modified the hosts file:

# sudo nano /etc/hosts localhost.localdomain localhost coffee.barismo.com coffee

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

4. Modified the local host names file:

# sudo nano /etc/mail/local-host-names

5. created a generic table:

sudo nano /etc/mail/genericstable
www-data       webmaster@barismo.com
root           server@barismo.com

6. created a generic domain file:

sudo nano /etc/mail/generics-domains

7. added the following to sendmail.mc:

sudo nano /etc/mail/sendmail.mc
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl

8. and finally reconfigured sendmail and restarted the services and the server:

sudo sendmailconfig
sudo systemctl restart sendmail
sudo service apache2 restart
sudo systemctl restart apache2

After all that, it still doesn't work.

When I tried to send a test email:

# echo "Subject: test" | /usr/lib/sendmail -v isofia666@gmail.com

I get this error in email:

Jan 19 08:13:07 barismo sm-mta(25919): 00J837P9025919: to=, 
ctladdr= (0/0), delay=00:10:00, xdelay=00:10:00, 
mailer=esmtp, pri=30295, relay=alt4.gmail-smtp-in.l.google.com. (, 
dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.

And when I tried to send me an email in my PHP script, I got this error:

Jan 19 08:10:43 barismo sm-mta(26115): 00J81emc025911: to=, 
ctladdr= (33/33), delay=00:09:03, xdelay=00:04:22, 
mailer=esmtp, pri=210494, relay=shared18.accountservergroup.com. (, 
dsn=4.0.0, stat=Deferred: Connection timed out with shared18.accountservergroup.com.

Where relevant, it should be noted that my domain DNS is hosted with Site5 and that I have only changed the record “ A & # 39; & # 39; to point to my Digital Ocean droplet, while keeping the “ MX & # 39; & # 39; with Site5 to manage mail.

I can still send and receive emails from my Site5 mailbox and the domain name itself (barismo.com and www.barismo.com) resolves correctly to my Digital Ocean droplet without problem.

Any direction will be greatly appreciated. Thank you.

Help on the Ubuntu Server SSH configuration file

Here are my sshd_config file settings
I can log in to my server with my PC using a public key but I can also log in from another PC with the password of the sudo user account. How to make connection possible only with a public key in SSH and SFTP?
thank you so much

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

LoginGraceTime 1m
PermitRootLogin without-password
#StrictModes yes
MaxAuthTries 3
#MaxSessions 10

PubkeyAuthentication yes

# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM no

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystem   sftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#   X11Forwarding no
#   AllowTcpForwarding no
#   PermitTTY no
#   ForceCommand cvs server

PostgreSQL 10: pg_ctl status does not work on Ubuntu 18.04

I want to be able to use pg_ctl to manage my crewdb database.
However, when I use pg_ctl status, I get the following error:

chh1@chh1:~$ pg_ctl status
pg_ctl: could not open PID file "/var/lib/postgresql/10/main/postmaster.pid": Permission denied

I don't know why this is the case or how to fix it because when I do:

chh1@chh1:~$ which pg_ctl

chh1@chh1:~$ which initdb

chh1@chh1:~$ whoami

crewdb=# du
                                   List of roles
 Role name |                         Attributes                         | Member of
 chh1      | Superuser                                                  | {}
 postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

chh1@chh1:~$ cat .profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if ( -n "$BASH_VERSION" ); then
    # include .bashrc if it exists
    if ( -f "$HOME/.bashrc" ); then
        . "$HOME/.bashrc"

# set PATH so it includes user's private bin if it exists
if ( -d "$HOME/bin" ) ; then

# set PATH so it includes user's private bin if it exists
if ( -d "$HOME/.local/bin" ) ; then



I tried PGUSER = chh1 instead of PGUSER = postgres in .profile but I still get the same error message when I issue the status of the pg_ctl command.
Can anyone help me? I have the following postgresql cluster:

chh1@chh1:~$ ps -ef | grep postgres
postgres  2094     1  0 11:08 ?        00:00:01 /usr/lib/postgresql/10/bin/postgres -D /var/lib/postgresql/10/main -c config_file=/etc/postgresql/10/main/postgresql.conf
postgres  2114  2094  0 11:08 ?        00:00:00 postgres: 10/main: logger process
postgres  2123  2094  0 11:08 ?        00:00:00 postgres: 10/main: checkpointer process
postgres  2124  2094  0 11:08 ?        00:00:00 postgres: 10/main: writer process
postgres  2125  2094  0 11:08 ?        00:00:00 postgres: 10/main: wal writer process
postgres  2126  2094  0 11:08 ?        00:00:01 postgres: 10/main: autovacuum launcher process
postgres  2127  2094  0 11:08 ?        00:00:01 postgres: 10/main: stats collector process
postgres  2128  2094  0 11:08 ?        00:00:00 postgres: 10/main: bgworker: logical replication launcher
chh1      6401 17468  0 17:47 pts/1    00:00:00 grep --color=auto postgres

It also seems unusual that I have to be root to open the data directory, like in:

chh1@chh1:~$ cd /var/lib/postgresql/10/main
bash: cd: /var/lib/postgresql/10/main: Permission denied

root@chh1:/var/lib/postgresql/10/main# ls -l
total 100
drwx------ 20 postgres postgres 4096 Jan 13 11:08 ./
drwxr-xr-x  3 postgres postgres 4096 Jul 24 19:12 ../
drwx------  6 postgres postgres 4096 Aug 10 23:04 base/
-rw-------  1 postgres postgres   44 Jan 13 11:08 current_logfiles
drwx------  2 postgres postgres 4096 Jan 13 11:08 global/
drwx------  2 postgres postgres 4096 Jan 13 11:08 log/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_commit_ts/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_dynshmem/
drwx------  4 postgres postgres 4096 Jan 13 11:13 pg_logical/
drwx------  4 postgres postgres 4096 Jul 24 19:12 pg_multixact/
drwx------  2 postgres postgres 4096 Jan 13 11:08 pg_notify/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_replslot/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_serial/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_snapshots/
drwx------  2 postgres postgres 4096 Jan 13 11:08 pg_stat/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_stat_tmp/
drwx------  2 postgres postgres 4096 Jan  3 06:12 pg_subtrans/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_tblspc/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_twophase/
-rw-------  1 postgres postgres    3 Jul 24 19:12 PG_VERSION
drwx------  3 postgres postgres 4096 Jan  3 06:12 pg_wal/
drwx------  2 postgres postgres 4096 Jul 24 19:12 pg_xact/
-rw-------  1 postgres postgres   88 Jul 24 19:12 postgresql.auto.conf
-rw-------  1 postgres postgres  130 Jan 13 11:08 postmaster.opts
-rw-------  1 postgres postgres  108 Jan 13 11:08 postmaster.pid

My thought is to change the permissions of the files in /var/lib/postgresql/10/main/ to chh1: chh1 but i don't know if it is safe to do so without endangering my data.
please let me know if you need further information.

apache2 – Uninstall apache completely on ubuntu

I am trying to remove Apache2 on Ubuntu, but I cannot, I am using

~ $ sudo apt-get remove apache2

~ $ sudo apt-get autoremove apache2

~ $ sudo apt-get autoremove –purge apache2

~ $ sudo apt-get purge apache2

I have tried all of these commands but I cannot delete the apache2, and the repositories and directories remain intact. Can you help me please?

Windows 10 – Without making any changes to partitions in Windows 10 Home, what will happen if I choose "Install Ubuntu with Windows 10" in the Ubuntu installation

I searched the Internet for 10 Home and Ubuntu 18.04 LTS dual boot windows. Most installation guides have stated that the first step is to free up space in the disk partitions, to create a bootable USB key, then choose "Install Ubuntu with Windows 10" in the Ubuntu installation.
During installation, will ubuntu automatically choose the free space created using disk management?
What will happen if I do not create free space and I continue to create a bootable USB key, start the USB key, choose "Install Ubuntu with Windows 10"? will it work

ubuntu – What is the difference between a channel and the definition of mailbox_command

I'm fairly new to Postfix and I'm starting to read documentation, books, blogs and everything else I can find.

What I need to do is send all received emails to a script. I have read and found that there are two ways to do this, one using a channel and the other defining the script that will process emails in mailbox_command.

My main problem is that I cannot understand the difference between using one or the other. When should I use them? A good source for more information?