How do not pass locale through ssh
It sounds like your SSH client is configured to forward the locale settings. You can prevent this by altering your configuration (the global file is typically /etc/ssh/ssh_config):
# comment out / remove the following line
SendEnv LANG LC_*
Alternatively you can change the configuration of the server, by editing /etc/ssh/sshd_config on the remote machine (note the d in sshd_config):
# comment out / remove the following line
AcceptEnv LANG LC_*
original post/page here
find which service is using a SWAP
one line search:
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less
source: cyberciti.biz
CSF advanced rules for outgoing connections for the local users
tcp/udp|in/out|s/d=port|s/d=ip|u=uid
good article and overview located here: Configserver Firewall and Security (CSF and LFD)
how to add the DNS record on cPanel based server from the command line
Media Server for the local network or how to share your media to your devices
Installation:
apt-get -y install minidlna
Configure:
echo "USER="root"" >> /etc/default/minidlna
in the file /etc/minidlna.conf replce
user=minidlna to user=root
Then need to update the path to directory with your media:
media_dir=/home/someuser/somemedia
and past the following lines in end of the config files:
friendly_name=SomeStorage # Optional
db_dir=/var/cache/minidlna # Needs to be un-commented
log_dir=/var/log # Needs to be un-commented
inotify=yes # 'no' for less resources, restart required for new media
Now time to start the service:
service minidlna restart
Short manual about the Cron
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
*/1 * * * * /usr/local/rtm/bin/rtm 23 > /dev/null 2> /dev/null
Helpful WP plugins
Samba on Ubuntu/Debian
Updating software and installing Samba:
apt update; apt upgrade -y; apt install samba -y
Time to add the Samba user. It should be a real user in your system.
smbpasswd -a user_name
Create a directory to be shared
mkdir -pv /home/user_name/folder_name
Make a backup copy of the smb.conf file
cp -pv /etc/samba/smb.conf /etc/samba/smb.conf.bak
Update the /etc/samba/smb.conf file
nano /etc/samba/smb.conf
[folder_name]
path = /home/user_name/folder_name
valid users = user_name
read only = no
Restart the samba:
service smbd restart
Enable touch screen on Ubuntu/Debian
Get information about xserver-xorg-input. The result there should not be evdev configuration file.
dpkg -l | grep xserver-xorg-input
Now install evdev driver, xinput-calibrator and libs
apt-get install -y xserver-xorg-input-evdev build-essential xinput-calibrator libts-bin libts0
Check if configuration files are in /usr/share/X11/xorg.conf.d directory.
ls -alh /usr/share/X11/xorg.conf.d/
Result:
10-amdgpu.conf 10-evdev.conf 10-quirks.conf 40-libinput.conf 70-wacom.conf
We can remove libinput driver:
apt-get remove --auto-remove xserver-xorg-input-libinput
Run calibrator to get correct x,y positions.
xinput_calibrator --output-type xinput