Tag Archives: linux tutorials

How To Set Up a Firewall with PF on FreeBSD to Protect a Web Server

How To Set Up a Firewall with PF on FreeBSD to Protect a Web Server

I am a new FreeBSD server user and moved from netfilter on Linux. How do I setup a firewall with PF on FreeBSD server to protect a web server with single public IP address and interface?
Halal Vitamins

Powered by WPeMatico

The Librem 5: Your Ultimate GNU/Linux FLOSS Smartphone

The Librem 5: Your Ultimate GNU/Linux FLOSS Smartphone
Purism is well known for Linux based laptop with Coreboot. Now they started a crowdfunding campaign today for its smartphone called Purism Librem 5. What is so special about this phone? It is 100% powered by GNU/Linux. You can run any Linux distro on it. The phone provides high security and privacy features, i.e., it does not track you. This seems like an excellent device. One that I would certainly purchase or recommend to a privacy-conscious person.
Halal Vitamins

Powered by WPeMatico

I put a cronjob in /etc/cron.{hourly,daily,weekly,monthly} and it does not run and how can I troubleshoot it?

I put a cronjob in /etc/cron.{hourly,daily,weekly,monthly} and it does not run and how can I troubleshoot it?

Recently I created a simple shell script called backup.sh in /root/scripts directory to just backup MySQL database and dumped it to /nfs/mysql/ directory. I put a file (more like used the ln command to create a soft link ) in /etc/cron.hourly/ and it doesn’t run. There was no error in systemd log or cron log. Why is my cron job was not working, and here is how I troubleshoot it.
Halal Vitamins

Powered by WPeMatico

How to delete files containing a character or number/digit in their filename on Linux or Unix

How to delete files containing a character or number/digit in their filename on Linux or Unix

I am a new Linux system user. How do I delete file containing a character ‘a’ or ‘z’ in their filename or digit such as ‘4’ or ‘2’ in their filename on Linux or Unix bash shell prompt?
Halal Vitamins

Powered by WPeMatico

40 Linux Server Hardening Security Tips [2017 edition]

40 Linux Server Hardening Security Tips [2017 edition]
Securing your Linux server is important to protect your data, intellectual property, and time, from the hands of crackers (hackers). The system administrator is responsible for security Linux box. In this first part of a Linux server security series, I will provide 40 hardening tips for default installation of Linux system.
Halal Vitamins

Powered by WPeMatico

Linux/Unix desktop fun: Bastet Tetris(r) clone with block-choosing AI for console

Linux/Unix desktop fun: Bastet Tetris(r) clone with block-choosing AI for console
Xkcd - hell
Do you love the puzzle and Linux/Unix-like system? Command line? Try ncurses based Tetris clone which is harder than every other Tetris out there. From the project home page:

Have you ever thought Tetris(R) was evil because it wouldn’t send you that straight “I” brick you needed in order to clear four rows at the same time? Well Tetris(R) probably isn’t evil, but Bastet certainly is. >:-) Bastet stands for “bastard tetris”, and is a simple ncurses-based Tetris(R) clone for Linux. Unlike normal Tetris(R), however, Bastet does not choose your next brick at random. Instead, Bastet uses a special algorithm designed to choose the worst brick possible. As you can imagine, playing Bastet can be a very frustrating experience!

Halal Vitamins

Powered by WPeMatico