If you really want to ssh at root;
edit /etc/ssh/sshd_config
Heisenberg - Digital Alchemist, Software Architect, Automation Specialist and Mechanical Engineer.
edit /etc/ssh/sshd_config
apt-get install net-tools
This was carried out on my Mac, yet to be tested under Linux.
ln -s sourceFile linkFile (soft link or symbolic link)
ln sourceFile linkFile (hard link)
Mostly from here
When launched, this will live for 20 seconds and then terminate, logging startup and exit messages to /var/log/messages not syslog as expected on Slackware 14.2 but verified to write to /var/log/syslog on Debian 10.5
This can be pulled from: https://github.com/plisken1/daemon_template.git
See my other blog post here
The following is an example of writing to the message log in Linux with C
from here, maybe here and also here if you are feeling brave.
#include <syslog.h>
#include <stdio.h>
int main()
{
setlogmask (LOG_UPTO (LOG_NOTICE));
openlog ("myprogramlog", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1);
for (int x=0;x<10;x++)
{
syslog (LOG_NOTICE, "Program started, count = %d",x);
syslog (LOG_INFO, "A tree falls in a forest");
}
closelog ();
return 0;
}
The following is a copy of the document from here
In this case, we are using Debian 10 (also works on Slackware 14.2)
We are building an application (example can be found here, albeit slightly modified but importantly includes mysql.h). Also on GitHub here
To install mysql server on Debian
apt-get install mariadb-server
To start, run;
service mysql start
I also found mysql_config not to be found on Debian 10
likely due to the development stuff not being installed as I could also not find /usr/include/mysql
so, installing and resolving is as follows;
sudo apt-get install libmariadb-dev-compat
also worthwhile maybe;
alp-get install libmysqlcppconn-dev
apt-get install libmysql++