December 11

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

December 3

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

December 3

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

December 3

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