OpenSSH server best security practices – protect your server from brute force attack on a UNIX / Linux / *BSD / Mac OS X operating systems.
— Read on www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
Kategori: Linux
Tools for my Linux terminal
Terminal tools that I want to use at work
Shell
Plugins for ohmyz
https://github.com/zsh-users/zsh-syntax-highlighting
https://github.com/zsh-users/zsh-autosuggestions
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/oc
Programming
Get started using Git on WSL | Microsoft Docs
Learn how to set up Git for version control on the Windows Subsystem for Linux.
— Read on docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-git
Running Desktop Apps in Docker. Learn how to run desktop apps, such as… | by Nassos Michas | Better Programming | Medium
Docker is the de facto standard when running containerised applications these days. From simple Hello Worlds to complex, multi-container setups, your application’s deployment could never be simpler…
— Read on medium.com/better-programming/running-desktop-apps-in-docker-43a70a5265c4
How To Quickly Serve Files And Folders Over HTTP In Linux – OSTechNix
How to easily and quickly serve files and folders with other systems in your local area network in Unix-like operating systems.
— Read on ostechnix.com/how-to-quickly-serve-files-and-folders-over-http-in-linux/
Windows Subsystem for Linux: The Ultimate Guide
Dive deep into the features of Windows Subsystem for Linux (WSL) in this Ultimate Guide!
— Read on adamtheautomator.com/windows-subsystem-for-linux/
Install IntelliJ IDEA – Help | IntelliJ IDEA
System requirements and how to install IntelliJ IDEA.
— Read on www.jetbrains.com/help/idea/installation-guide.html
How to run graphical Linux applications on Windows 10 using the Windows Subsystem for Linux (WSL) – seanthegeek.net
A step-by-step guide on installing Bash on Ubuntu on Windows, with additional steps for running graphical Linux applications.
— Read on seanthegeek.net/234/graphical-linux-applications-bash-ubuntu-windows/
Notes
- Start xlaunch in Windows
- Linux environment must contain variable DISPLAY=:0
- starting the Linux GUI application
Example on adding a few common files to host with ansible
– hosts: all
vars:
user: maca
tasks:
– template:
src: ./templates/settings.xml
dest: /home/{{user}}/.m2/settings.xml
owner: “{{user}}”
group: “{{user}}”
mode: 0644– template:
src: ./templates/.bash_aliases
dest: /home/{{user}}/.bash_aliases
owner: “{{user}}”
group: “{{user}}”
mode: 0644– template:
src: ./templates/client.ovpn
dest: /etc/openvpn/client.opvn
owner: “{{user}}”
group: “{{user}}”
mode: 0644– template:
src: ./templates/hosts
dest: /etc/hosts
owner: “{{user}}”
group: “{{user}}”
mode: 0644– name: autoremove unused packages
apt:
autoremove: true
Download missing file in bash script
#!/usr/bin/env bash function downloadIfMissing { if [ -f $1 ]; then echo "File $1 exists." else wget $2 fi }