Tag: command line

  • Initial steps on a new Ubuntu 14.04 server

    Initial steps on a new Ubuntu 14.04 server

    Ubuntu 14.04 If you just logged in to a fresh installation of Ubuntu 14.04 (Trusty Tahr), there are a few steps you’ll want to take immediately to help secure your new server. The IP blocks used by the various VPS providers are constantly being scanned, and brute force attacks will begin even if you’re deploying […]

  • Update Bash on Linux and Mac machines to protect against ShellShock vulnerability

    Update Bash on Linux and Mac machines to protect against ShellShock vulnerability

    If you have any Linux or Mac machines, you’ll want to update Bash due to a vulnerability announced by RedHat called ShellShock. This vulnerability allows an attacker to inject their own code into Bash using environment variable assignment. You can check if your machine is vulnerable by running the following at a Bash prompt: env…

  • Google Drive direct download link creation for shared files

    Google Drive direct download link creation for shared files

    When sharing files on Google Drive the link provided isn’t a direct link to download the file. Instead, it’s link to a view page for the file where you are then provided with the option of downloading the file. This isn’t great if you’re using the command line. Google Drive File ID After digging around…

  • Resolving /bin/bash^M: bad interpreter error

    Resolving /bin/bash^M: bad interpreter error

    Bash Error When running shell scripts, you may run into this bash error: /bin/bash^M: bad interpreter: No such file or directory This error occurs when the file you’re trying to execute contains DOS/Windows line endings. Unix uses just a line feed to end a line, but DOS actually uses a carriage return (^M) with a…