Tamer Youssef

Just another site

By - Tamer

Run bat files in Linux

You have to create a file with the extension .sh put this as the first line Code: #!/bin/sh and then just write the rest like writing a .bat file except with the new syntax after that, save and run Code: chmod +x (filename).sh to run the script, just type in Code: ./(filename).sh

By - Tamer

Install Cpanel / WHM

1- Disabling NetworkManager CentOs 7 The following steps will disable NetworkManager service and allows the interface to be managed only by network service. 1. To check which are the interfaces managed by NetworkManager # nmcli device status This displays a table that lists all network interfaces along with their STATE. If Network Manager is not controlling an interface, its STATE

By - Tamer

Default username and passwords for most of the VMware products

Here is a comprehensive list of default username and passwords for most of the VMware products. If you’re like me, you tend to get alot of these confused. If I left any off, please let me know in the comments. Horizon Application Manager http://IPorDNS/SAAS/login/0 http://IPorDNS Horizon Connector https://IPorDNS:8443/ vCenter Appliance Configuration https://IPorDNS_of_Server:5480 username: root password: vmware vCenter Application Discovery Manager

By - Tamer

cPanel: How to Limit Maximum Email Size or Email Attachment

Default max file size limit that can be sent and received in cPanel (Exim Mail Server) is 50 MB, and How to Limit Maximum Email Size or Email Attachment ? To Limit Maximum Email Size do the following, Login to cPanel/WHM as root Under Service Configuration, Click “exim Configuration Manager” Click “Advanced Editor” Scroll down and Click “Add additional Configuration

By - Tamer

backscatter.

 If you’re receiving messages saying an email has bounced, or is “undeliverable”, and you’re sure that the email could not have come from you (or malware on your computer/server), then you’re receiving backscatter. If you’re using Exim, you can make the following change to cut down the amount of backscatter you receive: Go to WHM »Service Configuration »Exim Configuration Manager

By - Tamer

How to Display (List) All Jobs in Cron / Crontab

ervers can automatically perform tasks that you would otherwise have to perform yourself, such as running scripts. On Linux servers, the cron utility is the preferred way to automate the running of scripts. In this article we’ll cover how to view the jobs scheduled in the crontab list. For an introduction to Cron check-out our KB: How To: Automate Server

By - Tamer

Scheduling Tasks with Cron Jobs

Cron Jobs are used for scheduling tasks to run on the server. They’re most commonly used for automating system maintenance or administration. However, they are also relevant to web application development. There are many situations when a web application may need certain tasks to run periodically. Today we are going to explore the fundamentals of Cron Jobs. Definitions First let’s

By - Tamer

How to Block or Allow Specific Ports by Country in the CSF Firewall

How to Back up and Restore the CSF Firewall Configuration How to Block Traffic by Country in the CSF Firewall How to Allow Traffic by Country in the CSF Firewall How to Block or Allow Specific Ports by Country in the CSF Firewall Basic DoS/DDoS Mitigation with the CSF Firewall In addition to being able to manage traffic from a

By - Tamer

Retrieving the ID of the last inserted record

When you add a new record to a SQL Server table that has an identity column, you usually want to read back the auto-generated ID, for example to use it as a foreign key in another table. If you use stored procedures this is easy to do: just use an output parameter that you set as follows: SET @NewID =