Browsed by
Tag: Linux

Pushbullet: How to Send a message from Bash

Pushbullet: How to Send a message from Bash

With this simple one line of code it is possible to send a message to your Pushbullet account from the Linux terminal. This is great if you want your BASH script to message you when a specific task completes or fails. All that is required is a Pushbullet token that you can obtain from the settings within your PushBullet Account. This can be found here https://www.pushbullet.com/#settings Now paste the code to your terminal replacing the pushbullettoken with your own token and changing…

Read More Read More

Garrys Mod Linux server GLIBC_2.15 fix

Garrys Mod Linux server GLIBC_2.15 fix

Problem Facepunch Studio have released an update for Garrys Mod server that may cause the following error. Failed to open dedicated_srv.so (/lib/libm.so.6: version `GLIBC_2.15′ not found (required by bin/dedicated_srv.so)) or Failed to open dedicated_srv.so (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15′ not found (required by bin/dedicated_srv.so)) Facepunch have needed to update Garry’s Mod to use GLIBC_2.15.  because of this you will have the issue if GLIBC is older than GLIBC_2.15. This effects the following distros: CentOS 6 Debian 7 Ubuntu 12.10 or lower To…

Read More Read More

Parallels Plesk Panel Maillog location Linux

Parallels Plesk Panel Maillog location Linux

When trying to find the email logs on my Plesk server I struggled to find them at first. Parallels Plesk Panel maillog is in a non standard location compared to you standard Linux system. On most Linux systems you will find the mail log in /var/log. However Plesk Panel stores the logs in usr/local/psa/var/log. If you want to see the servers mail log use the following command. tail -f /usr/local/psa/var/log/maillog I recommend creating a symbolic link to plesk logs within…

Read More Read More

How to Install and Use SteamCMD

How to Install and Use SteamCMD

This is a brief tutorial on the basics of installation and usage of SteamCMD. Windows Create a folder for SteamCMD. C:/steamcmd Download the SteamCMD (Windows) Update Tool. http://media.steampowered.com/installer/steamcmd.zip Extract the contents of the zip to the folder. Linux Create a user for SteamCMD and login. Note: For security best practice, do not run SteamCMD a root. adduser steam su – steam Create a directory for SteamCMD. mkdir /home/steam/steamcmd cd /home/steam/steamcmd Download the SteamCMD (Linux) Update Tool. wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz Extract the contents…

Read More Read More

SteamCMD Dedicated Server List

SteamCMD Dedicated Server List

I decided to put together a list of all the Dedicated servers available on Steam. This will hopefully be useful to server administrators. I have also put the results on the Valve Wiki page. Here are my results. They are accurate as of April 2015. This is a list of dedicated servers available on Steam/SteamCMD. Key Server – Server Name ID – Server AppID SteamCMD – If available via SteamCMD Steam Client – If available via the Steam Client Anonymous Login –…

Read More Read More

Linux Game Server Scripts Update

Linux Game Server Scripts Update

I have been working on updating my existing game server scripts and also adding a new one to the line up. This applies to csgoserver cssserver hl2dmserver kfserver ut2k4server Introducing tf2server New Feature Debug mode Fixes Changed download location of steamCMD Simplified start parameters for the servers Modified installer to give more details about ports Updated documentation on the site Debug Mode Use debug mode to help you if you are having issues with the server. Debug outputs what the…

Read More Read More

WinSCP: Simply copy to remote Linux server

WinSCP: Simply copy to remote Linux server

Overview I wanted a simple method to regularly copy some files from my Windows PC to my file server via SSH. I already used WinSCP to manage files on file server, so just wanted a way to automate a backup similar to rsync. This is a brief tutorial on how to create a simple Winscp script to copy files from a Windows PC to a remote Linux server Solution 1. First download and install WinSCP. 2. Create a new text…

Read More Read More

How to Detect Linux Distribution with Bash

How to Detect Linux Distribution with Bash

This is a simple bash function to get Linux dIstro information such as distribution, architecture and Kernel version. I have managed to use this function in many of my scripts when sending monitoring emails. The Basic Function The function simply queries lsb-release for the distribution information and adds it to  a variable. lsb-release is not in all distributions, however if that is missing it will check other areas that this information might be.

sysstat: No such file or directory

sysstat: No such file or directory

Problem When you run sysstat you might get the error Cannot open /var/log/sysstat/sa20: No such file or directory This is because sar logging is not enabled on the server yet. Solution Enable logging by running the following command dpkg-reconfigure sysstat Select <Yes> and press return. Manual Method If this does not work change the config file manually edit the file vi /etc/default/sysstat alter the line ENABLED from false to true ENABLED=”false” ENABLED=”true” Restart sysstat /etc/init.d/sysstat restart Wait 10 minutes and…

Read More Read More