Linux / Unix: Use rsync Command Over FTP

To use the rsync command over FTP, you need to use a wrapper such as lftp. Here’s how: Install lftp: sudo apt-get update sudo apt-get install lftp Connect to the FTP server: lftp ftp://<user>:<password>@<hostname>:<port> Replace <user>, <password>, <hostname>, and <port> with the appropriate values for your FTP server. Run the rsync command: mirror -R –no-perms … Read more

Linux: Turn On TCP SYN Cookie Protection

To turn on TCP SYN cookie protection in Linux, you need to modify the kernel parameters. You can do this by adding the following line to the /etc/sysctl.conf file: net.ipv4.tcp_syncookies = 1 After adding this line, run the following command to apply the changes: sysctl -p This will activate TCP SYN cookie protection, which helps … Read more

Nginx: Block URL Access (wp-admin/wp-login.php) To All Except One IP Address

To block access to the URL wp-admin/wp-login.php for all IP addresses except one in nginx, you can use the following configuration in the server block for the website: location /wp-admin/wp-login.php { allow 192.168.1.100; deny all; } This configuration uses the location directive to specify the URL to be restricted. The allow directive allows access to … Read more

Debian Linux Install Eclipse Java / C / C++ IDE

You can install Eclipse on Debian-based systems, such as Debian or Ubuntu, by using the following steps: Download the latest version of Eclipse from the official Eclipse website (https://www.eclipse.org/downloads/). Extract the downloaded archive to your preferred location using the following command: tar -zxvf eclipse-*.tar.gz Launch Eclipse by running the eclipse executable located in the extracted … Read more