mount -t cifs -o user=user,pass=password //user.your-storeboxtld/backup /storebox/
Just make sure Samba is enabled and user password is correct.
Monthly Archives: June 2020
kde connect lock screen
Lock screen: loginctl lock-session
Unlock screen: loginctl unlock-session
die [Internal Death while parsing ./webmail/paper_lantern/index.html 2429281] Template::Exception:
[TYPE]=[file]
[INFO]=[mail_clients/mail_clients.tt: not found]
[TEXT]=[]
at cpanel.pl line 1126.
cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/webmail/paper_lantern/index.auto.tmpl", 1) called at cpanel.pl line 4606
cpanel::cpanel::run_standard_mode() called at cpanel.pl line 930
cpanel::cpanel::script("cpanel::cpanel", "-webmail", "./webmail/paper_lantern/index.html") called at cpanel.pl line 32
info [webmaild] show_template.stor lacked output with exit code: 127 at /usr/local/cpanel/Cpanel/Server.pm line 1381.
Cpanel::Server::process_login_template(Cpanel::Server=HASH(0x29ce220), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, undef, __CPANEL_HIDDEN__, 1, ...) called at /usr/local/cpanel/Cpanel/Server.pm line 2085
Cpanel::Server::process_and_send_login_template(Cpanel::Server=HASH(0x29ce220), "login", "HTTP/1.1 200 OK\x{d}\x{a}Set-Cookie: webmailrelogin=no; HttpOnly; exp"..., HASH(0x2cb1658)) called at /usr/local/cpanel/Cpanel/Server.pm line 926
Cpanel::Server::badpass(Cpanel::Server=HASH(0x29ce220), __CPANEL_HIDDEN__, 1, __CPANEL_HIDDEN__, 1) called at cpsrvd.pl line 5402
cpanel::cpsrvd::handle_auth() called at cpsrvd.pl line 1332
cpanel::cpsrvd::handle_one_connection(11) called at cpsrvd.pl line 1114
cpanel::cpsrvd::script() called at cpsrvd.pl line 434
Failed to show template “login” in login theme “cpanel” (); falling back to legacy login. at /usr/local/cpanel/Cpanel/Server.pm line 2089.
Solution cloud be:
cd /usr/local/cpanel/base/frontend
mv -v paper_lantern paper_lantern_backup
/usr/local/cpanel/scripts/upcp --force
mod_fcgid: read data timeout in 31 seconds on Virtualmin/Webmin
mod_fcgid: read data timeout in 31 seconds
End of script output before headers: index.php, referer:
vi /etc/httpd/conf/httpd.conf
IPCCommTimeout 300
FcgidIOTimeout 300
vi home/username/etc/php5/php.ini
max_execution_time = 300
php mail from address not working
If local mail server accepted email, but your email was frozen and not delivered:
mail($to,$subject,$message,$headers,"-f [email protected]");
mounted filesystem discovery exclude zabbix
If you want to exclude all cagefs-skeleton or some other virtfs, bind mounts and etc
zabbix_get -s xx.xx.xx.xx -k vfs.fs.discovery
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/dev\/pts”,
“{#FSTYPE}”:”devpts”},
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/dev\/shm”,
“{#FSTYPE}”:”tmpfs”},
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/lib”,
“{#FSTYPE}”:”ext4″},
Administration -> General -> Regular expressions -> New regular expression
Name: File systems for discovery – exclude cagefs
Expressions
Expression type: [Result is FALSE]
Expression: /cagefs-skeleton
Configuration -> Templates -> Template OS Linux -> Discovery rules -> Mounted filesystem discovery -> Filters -> Add
Type of calculation: A and B
A: {#FSNAME} matches @File systems for discovery – exclude cagefs
b: {#FSTYPE} matches @File systems for discovery
Also you need readd host to rediscover all mounted filesystems
error was [Errno 14] HTTPS Error 404 – Not Found
Error downloading packages:
gc-7.2d-7.el7.x86_64: failed to retrieve getPackage/gc-7.2d-7.el7.x86_64.rpm from cloudlinux-x86_64-server-7
error was [Errno 14] HTTPS Error 404 – Not Found
yum clean all --enablerepo=*
rrdtool 3 years in 5-minute resolution
A data base with one data source holding three years in 5-minute resolution is only 2.5 MB size:
rrdtool create save.rrd \
--step 300 \
DS:inet_down_total:DERIVE:600:0:U \
DS:inet_down_comp1:DERIVE:600:0:U \
DS:inet_down_comp2:DERIVE:600:0:U \
DS:inet_down_other:DERIVE:600:0:U \
RRA:AVERAGE:0.5:1:315360
systemd[1]: Can’t open PID file /var/run/pure-ftpd.pid (yet?) after start: Too many levels of symbolic links
systemd[1]: Can’t open PID file /var/run/pure-ftpd.pid (yet?) after start: Too many levels of symbolic links
systemd[1]: pure-ftpd.service start operation timed out. Terminating.
systemd[1]: Failed to start Pure-FTPd FTP server.
systemd[1]: Unit pure-ftpd.service entered failed state.
systemd[1]: pure-ftpd.service failed.
vi /usr/lib/systemd/system/pure-ftpd.service
[Service]
Type=forking
#PIDFile=/var/run/pure-ftpd.pid
PIDFile=/run/pure-ftpd.pid
ExecStart=/usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf –daemonize
systemctl daemon-reload
systemctl start pure-ftpd
client_loop: send disconnect: Broken pipe
vi ~/.ssh/config
Host * USER root AddKeysToAgent yes TcpKeepAlive yes ServerAliveInterval 60 ServerAliveCountMax 60
sshd[]: Authentication refused: bad ownership or modes for directory /root
If file and folder permissions are fine but you still have this error:
chown -R root.root /root/
cloudlinux get user php version
Selectorctl find user PHP version:
for user in $(\ls -A /var/cpanel/users) ; do version=$(selectorctl -c -u $user | awk '{print $1}') ; echo $user $version ; done