Firewall. Serbian Latin keyboard layout. youtube-dl

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
por01
White ninja
White ninja
Posts: 18
Joined: 19 Apr 2018, 14:17
Distribution: Porteus LXDE 4.0 x86_64

Firewall. Serbian Latin keyboard layout. youtube-dl

Post#1 by por01 » 19 Apr 2018, 23:09

OS: Porteus LXDE 4.0rc4 64bit

Firewall

When I activeted Porteus firewall (Menu > System Tools > Porteus Settings Centre > Security >Firewall: on | Mode: normal), it failed ping command and mpv's access to some online streams, like:

Code: Select all

http://stream2.srr.ro:8006/listen.pls
http://www.streamlicensing.com/stations/blueheron/BlueHeronRadio.pls

So, I don't use Porteus firewall, but execute firewall file at system start. This ensures security and allows ping and all online streams.

The content of firewall file:

Code: Select all

#!/bin/sh
# A very basic IPtables / Netfilter script
# https://wiki.debian.org/DebianFirewall

# Flush the tables to apply changes
iptables -F

# Default policy to drop 'everything' but our output to internet
iptables -P FORWARD DROP
iptables -P INPUT   DROP
iptables -P OUTPUT  ACCEPT

# Allow established connections (the responses to our outgoing traffic)
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# Allow local programs that use loopback (Unix sockets)
iptables -A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT

# Uncomment this line to allow incoming SSH/SCP conections to this machine,
# for traffic from 10.20.0.2 (you can use also use a network definition as
# source like 10.20.0.0/22).
# iptables -A INPUT -s 10.20.0.2 -p tcp --dport 22 -m state --state NEW -j ACCEPT

In persistence mode, we can execute firewall in /etc/rc.d/rc-local file:

Code: Select all

/mnt/sda1/../../firewall
Check /../../changes/etc/rc.d directory, and delete Porteus firewall files (rc.FireWall, rc4.d/S-firewall.sh) if exist.

Serbian Latin keyboard layout

Until now I found only Portues live system with working boot option for setting Serbian Latin keyboard layout. In other distros I get only Serbian Cyrillic layout. Unfortunately, if I set Serbian Latin, I can set only this layout.

Code: Select all

kmap=rs:latin
I tried any possible combinations: kmap=rs:latin,hu; kmap=hu,rs:latin; kmap=hu:standard,rs:latin; kmap=hu kmap=rs:latin... But I got only Serbian Cyrillic or I did not get at all Serbian layout.

youtube-dl

Code: Select all

$ youtube-dl 
bash: /usr/bin/youtube-dl: /usr/bin/python3: bad interpreter: No such file or directory

Solution:

Code: Select all

# curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/bin/youtube-dl