Category: Helpful Stuff

Just some things I have learned over the years, which you might find helpful.

  • Cpanel DDNS Update On CentOS Boot

    I needed to update a Cpanel Dynamic Domain Name Service (DDNS) entry automatically for a virtual machine (VM) that I manage, to allow a simple address to type rather than obtaining the new dynamic host configuration protocol (DHCP) from the VM’s command-line interface (CLI).

    Our first step is to log on to the hosting domain’s Cpanel interface and select “Dynamic DNS” under the domains section. Then select “Create”. Here you will create the subdomain prefix for the new address you wish to be updated. Leave the “manually enter an IP address blank” as we will use this for testing later.

    Create Dynamic DNS Domain

    After the subdomain is created, you will be taken to the list page showing the new entry. Leave this page open, as you will need to copy the URL that is shown to copy into CentOS later and will use it to verify the updates are taking place.

    Cpanel entry for DDNS subdomain and update URL

    Now log in to your CentOS server using an SSH interface. If you don’t have an SSH client, PuTTY has been around for ages and works quite well. The steps that follow next are for CentOS 7 or 8, using the systemd unit and nano editor. Every Linux admin has their preference for editors, mine happens to be nano.

    sudo su - root
    sudo nano /etc/systemd/system/updateddns.service

    You will need to enter the URL from the Cpanel DDNS page we left open before under the [Service] section. You can copy and paste the data below to save time.

    [Unit]
    Description=Update Cpanel DDNS
    Requires=network-online.target
    After=network-online.target
    
    [Service]
    ExecStart=/usr/bin/curl https://gorss.us/restoftheurlhere
    
    [Install]
    WantedBy=multi-user.target

    After the creation of the service and entering your Cpanel DDNS update URL, you will need to create the startup.

    sudo systemctl enable updateddns.service

    Now, this should start the service automatically upon server reboot. However, depending on your server’s security setup, your user account may not have permission to start services without entering a password. We can test this by trying to start the service manually.

    sudo systemctl start updateddns

    If you receive a prompt for a password, you will need to edit another file and give your sudo user account the NOPASSWD switch for this service. In the directions which follow, the “sudouser” is the name of the account you use for the sudo account; typically this means root is disabled at the command line and is a good security practice.

    sudo visudo

    Scroll to the end of the file and enter the following, using your sudo user account; again sudouser here is just a place setter and not the actual user.

    sudouser ALL=NOPASSWD: /bin/systemctl start updateddns, /bin/systemctl stop updateddns, /bin/systemctl restart updateddns, /bin/systemctl status updateddns

    Save the file, then switch to your sudouser account and test the commands again. You should no longer receive a prompt for a password, this will now let the updateddns service run on server reboot/startup.

    su - sudouser
    
    sudo systemctl start updateddns
    sudo systemctl stop updateddns
    sudo systemctl restart updateddns
    sudo systemctl stop updateddns

    You can now check the Cpanel DDNS interface page we left open earlier, refreshing the page, and it should indicate the last update to the record.

    Last update time entries

    You could also ping the new subdomain to validate the change also. If your primary domain name has been live for over 48-hours, the new subdomain should resolve immediately.

  • Getting your site ready for mobile-friendly indexing.

    Mobile searches are just as important as the desktop search. If you are selling a service or marketing a client who sells locally, your mobile search is even more important. People will often search on their phone to find something nearby, why not make sure you’re taking advantage of it?

    You can read more about Google’s mobile-first indexing via the link below, or you can check your site for mobile-friendliness now via this link.

    Official news on crawling and indexing sites for the Google index

    Source: Official Google Webmaster Central Blog: Getting your site ready for mobile-first indexing

  • Top 32 Nmap Command Examples For Sys/Network Admins – nixCraft

    Using NMAP can help identify vulnerable points on your network. One of the more effective tools out there, and as usual, the best are the command line. – AG

     

    Nmap command examples and tutorials to scan a host/network, so to find out the possible vulnerable points in the hosts and secure the system.

    Source: Top 32 Nmap Command Examples For Sys/Network Admins – nixCraft

  • CCleaner’s August 2017 Release Infected

    Alert

    Back in August a version of CCleaner was released that was infected. More information is available around the web, but the direct release from Piriform is here. Recently Piriform was acquired by Avast.

    For the full technical details, you can read this post, which contains all the information for hashes, registry entries, etc.

  • Best tutorials for bash beginners

    Even just a small amount of coding, or having reference materials, can go a long way when troubleshooting. Reverse engineering code also has it’s merits and these beginner bash tutorials and reference materials compiled by nixCraft are one to bookmark.

    A list of online tutorials and resources to help you learn bash shell, the default OS X and Linux shell.

    Source: How to Learn bash shell and scripting – The best tutorials for bash beginners

  • Setting up a NGINX RTMP Streaming Server

    ESports, or non-technically the broadcasting of computer games for others to watch, has moved to the spotlight recently and is gathering a larger following than expected. Who would have thought that just watching video games would be more popular than actually playing them? As I have been playing Internet multiplayer games since purchasing Quake as a pre-release, the notion that others might be interested in my game was somewhat fascinating. I began streaming a few months ago on Twitch, but began to see more networks pop up and wondered how I could stream to more than one.

    (more…)
  • Sandboxie – Sandbox Your Applications

    Sometimes you may question a download, or just want to browse the web a bit safer, sandboxing can provide help with this. Sandboxes are like their name implies, a child’s playbox, and the term has been in use by IT people for decades. (more…)

  • Making Private and Anonymous Cellular Calls

    People have always been tracked and calls always monitored, including cellular calls. For most people this is not an issue, but for some it’s a real problem due to the nature of their actions. This article breaks down some simple steps to anonymity if you really need it. (more…)

  • 7 Awesome Open Source Cloud Storage Software For Your Privacy and Security

    Cloud storage is nothing but an enterprise-level cloud data storage model to store the digital data in logical pools, across the multiple servers. You can use a hosting company such as Amazon, Google, Rackspace, Dropbox and others for keeping your data available and accessible 24×7. You can access data stored on cloud storage via API or desktop/mobile apps or web based systems.

    7 Awesome Open Source Cloud Storage Software For Your Privacy and Security.

  • Public Relations Strategies for Volunteers

    Public Relations Strategies for Volunteers

    As a volunteer Public Affairs Officer it is my responsibility to make sure the word gets out about our unit activities. Having been out of the loop for a couple of years, with exception of Public Information Officer during missions, I needed to create a groundwork and outline for my unit’s public relations strategies for 2013.

    Public relations have changed a bit in the past few years, with social media taking a stronger hold on distribution. (more…)