ffmpeg CentOS 7

https://gist.github.com/mustafaturan/7053900   To send videos with WhatsApp run ffmpeg with following codecs: ffmpeg –i “original–file.mp4” –vcodec libx264 –acodec aac “output–file.mp4”

Read More

IBM’s launchpad doesn’t start, Firefox version

Firefox starts with a chrome://*.xul URL, which is a reference to a Add-On extension in Mozilla-derivative browsers. Firefox as of version 43 blocks automated installation of unsigned extensions. IBM’s commonlaunchpad xpi extension (found in the extensions directory of the new Profile being used by launchpad.sh) is unsigned. To workaround this downgrade Firefox with a version […]

Read More

log sftp authentication

vim /etc/ssh/sshd_config Subsystem sftp internal-sftp -l INFO -f AUTH vim /etc/rsyslog.conf auth.* /var/log/sftp.log   https://access.redhat.com/articles/1374633

Read More

CentOS 7 postfix, dovecot mail server; forwarder

postfix https://www.server-world.info/en/note?os=CentOS_7&p=mail #virtual_alias_domains = hensler.net virtual_alias_maps = hash:/etc/postfix/virtual ADD forwarder addresses vi /etc/postfix/virtual postmap /etc/postfix/virtual service postfix restart dovecot https://www.server-world.info/en/note?os=CentOS_7&p=mail&f=2 DNS hensler.net. A xxx.xxx.xxx.xxx hensler.net. MX 10 mail.hensler.net mail.hensler.net. CNAME hensler.net wordpress.hensler.net. A xxx.xxx.xxx.xxx ROUTER 25,110,143,80,443 FIREWALL https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7 systemctl stop firewalld.service firewall-cmd –zone=public –permanent –add-service=http firewall-cmd –zone=public –permanent –add-service=https firewall-cmd –add-service=smtp –permanent firewall-cmd –add-port={110/tcp,143/tcp} –permanent […]

Read More

visudo

  sudo visudo # User privilege specification root    ALL=(ALL) ALL %admin  ALL=(ALL) ALL bernhardhensler ALL=(ALL) NOPASSWD: ALL

Read More

Clipboard between Mac OS, Centos

Clipboard between Mac OS, Centos 64 7 CentOS yum install epel-release yum install xclip cat somefile.txt | xclip -selection clipboard In Mac OS use preinstalled pbcopy/pbpaste cat /etc/passwd | pbcopy   http://tedhagos.com/linux/clipboard-copy-paste-terminal.html

Read More

copy your ssh public key using cat

Generate new ssh key ssh-keygen -t rsa -C “bernhard.hensle@timetoact.ch” add private key to keychain ssh-add -K ~/.ssh/bhensler_id_rsa copy ssh key cat ~/.ssh/bhensler_id_rsa.pub | ssh bhr@media.hensler.net “cat >> ~/.ssh/authorized_keys”  

Read More