• Home
  • Scripts
  • About
  • Contact

    Custom Scripts & ArchivesQuicklist

  • Methods for mounting Samba SharesAndrew Mallett

    This protocol is sometimes also referred to as the Common Internet File System (CIFS) and allows other systems such as Windows and Android to connect to shared directories. View

  • Mount Samba Shares Without a password Prompt Andrew Mallett

    Mount a Samba share using the mount_smbfs command without being prompted for a password, for use in an automated shell script. View

  • Fix Ubuntu & Mint apt-get 404 Not Found Package Repository Errors Andrew Mallett

    If you have an older install then you know how utterly frustrating it can be when this system stops working with 404 Not Found errors.. View

  • Display DHCP Leases On-Screen Andrew Mallett

    Monitor IP Address leases from your DHCP server in real time on-screen.. View

  • Log File Change Script Andrew Mallett

    Monitor changes to a log such as Apache web server access by testing for a change in the file's size.. View

  • Samba logs and Windows browsing Andrew Mallett

    Browsing shared files from a Windows system causes Samba to falsely log files as 'opened' - even following a simple file listing.. View

  • Pull useful information out of your Samba log Andrew Mallett

    This script reveals who has been using Samba network shares and what files they have been accessing. My own requirement was simply to have a list of what music I have listened to.. View

  • Display text from another website using PHP and CURL Andrew Mallett

    Sometimes it's useful to grab some text and to replicate it in other places. For instance you might have a body of frequently-changing information for dissemination over several websites.. View

  • Remotely Power on and Ping a system Andrew Mallett

    This script is a development of the Remote Power On script which uses Wake-on-LAN. It keeps pinging the activated system, alerting when it comes on-line.. View

  • Controlling Samba shares remotely Andrew Mallett

    Change Samba shares from read-only to writable and back again, using shell-scripts. This task can be performed directly at the console or using remote ssh from another system. View

  • Running shell scripts from Windows Andrew Mallett

    If you use both Linux and Windows systems, you may be interested in running scripts on the server without having to manually ssh all the time.. View

  • Modifying the system PATH variable Andrew Mallett

    When you run a command, the system will look in the $PATH statement to find the location of that command. If it can't find the executable (and you haven't typed in its full path), then you will get a message.. View

  • Log File Archive Script Andrew Mallett

    This script copies the day's logs to a backup directory and renames them based on the date.. View

  • Remotely Power on Linux from your Mobile Andrew Mallett

    In these days of increasing power bills I don't need my server to be on all the time. This script will demonstrate how to remotely power on/off a Unix/Linux system from another device. View

  • Remotely Power off Linux from your Mobile Andrew Mallett

    The method uses SSH (Secure Shell) to log into the system and the Unix shutdown command to power down the server. In a nutshell, SSH into the target system and run the following command.. View

  • User Online Monitor Script Andrew Mallett

    Using the ping command, this script will check if a system is on-line. You can ping either the hostname or IP Address directly. The frequency that the script runs is set by running it via cron. View

  • Send an SMS from your Unix system Andrew Mallett

    This script will send an SMS (and email) alert from a Unix/Linux box, based on any predefined event. This is very useful for busy sysadmins who (regrettably) can't spend all their time at the console.. View

  • Linux Config Backup Script Andrew Mallett

    Data should always be kept separate (slice, partition) from system files and should be backed up regularly. Additionally server configuration files for the operating system and various applications also need to be backed up, in case the server goes belly-up or a new server... View

  • DHCP Alerter Script Andrew Mallett

    I want my DHCP Server to notify me if it allocates an IP to an unknown node on the network. This means a system with a MAC Address which is not listed.. View

  • Sysadmin Menu Script Andrew Mallett

    I often perform routine tasks on my Unix systems. When I was a newb, I forced myself to type commands manually until I learned them. These days typing long .. View

  • Shell script basicsAndrew Mallett

    FreeBSD is a fully fledged programming environment in its own right, with its own compiler (gcc). Shell scripts are executable files containing a number of commands to perform various functions, very similar to DOS batch files but much more powerful.. View

  • Log DHCP under FreeBSD Nick Fratangelo & Andrew Mallett

    Following plans for getting a lot more functionality out of the DHCP service, Nick developed some brilliant logging extensions which took the DHCPD beyond the original install specifications.. View

  • External IP Address Monitor Script Andrew Mallett

    This simple script will monitor the external IP Address of a system connected to the internet. It can be used for a stand-alone workstation or as in this case, from inside a LAN. Your IP Address is 3.239.33.139.. View

  • External IP Address Recording Script Andrew Mallett

    Following on from the External IP Address Monitor, the following script will record changes to a user's external IP Address into a clear text file. View

  • External IP Address Notify Script Andrew Mallett

    This script...checks the external IP at two minutes past midnight, logs it as before, then compares it to the previous day's IP. If the external IP Address has changed, the script sends an administrative alert via email. View

  • HiFiPi.net

  • Sudo on FreeBSD

    Install and configure the sudo command on Unix systems.

  • Map a Network Share

    Mount a network share using the smbmount command.

  • Common Commands

    A list of commonly-used Unix commands, from which your custom scripts will bloom..

  • Schedule with Cron

    Configure the cron service to schedule scripts.

  • Install DHCP Service

    Install the ISC DHCPD service under FreeBSD systems for use with DHCPD based scripts.

  • Install DHCP Service

    Install the ISC DHCPD service under Ubuntu-based Linux systems.

  • File Permissions

    Change permissions on files and directories using the chmod command..

  • Date command

    How should you use the date within your shell scripts..?

© 2017-2020 Shell-scripts.com | All Rights Reserved.
Web design by PaddedCell | Hosting by VirtualHost