setrpp.blogg.se

Geektool sbstittes
Geektool sbstittes











geektool sbstittes
  1. #GEEKTOOL SBSTITTES INSTALL#
  2. #GEEKTOOL SBSTITTES PASSWORD#
geektool sbstittes

From the preferences pane, drag the shell icon onto the desktop, where ever you want it to display.

#GEEKTOOL SBSTITTES INSTALL#

To display the output on your desktop, install GeekTool, go to system preferences and select the GeekTool preferences. > t_password('example_keychain', 'user', 'example_password')

#GEEKTOOL SBSTITTES PASSWORD#

In order for this to work, you need to set the password in the keychain from the python interpreter first: # this will display the output formated for GeekTool # read each line of the free -m command for pretty printing in the next step Stdin, stdout, stderr = ssh.exec_command('free -m') Ssh.connect('', username='your_username', Ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # set the ssh client, and force it to accept new/unknown host keys. # retrieve your ssh credential from your keychain.Ĭredential = keyring.get_password('example_keychain', 'user') (Easiest way to do this is with easy_install or pip.) Paramiko is a python ssh client, and keyring allows python programs to interact with the built-in keychain of your OS. For this script to work, you need the paramiko and keyring python libraries installed. I did this with a simple python script that is called by GeekTool on a regular schedule. In order to show memory usage, you just need a script to ssh to your server, run a quick shell script to check free -m, and then return the results as standard output. I use it to monitor my server’s memory load, and also to show my todo list using Todo.txt, a lightweight CLI todo list manager: GeekTool is a nifty little program that allows one to run shell scripts and have the output display on your OSX desktop. Once I figured out the minimum ram I could get away with on my setup (turned out to be 600MB), I wanted to keep track of memory usage at a glance without having to ssh from the terminal.Įnter GeekTool. In the process of moving everything onto the virtual machine, and nailing down my resource needs, I spent a lot of time on a secure shell monitoring the server with top for memory spikes. I use a multisite wordpress installation to manage all of my courses, and a number of other virtual presences, hosted on a VPS at dreamhost.













Geektool sbstittes