Thursday, March 17, 2016

Fixing failed Update when using a Launchpad PPA (Geany)

I use the Geany Text Editor as my programing/txt file editor.  I installed it from a Launchpad PPA. When updating I kept getting the error "This requires installing packages from unauthenticated sources".  A quick Google search for this found this fix which worked.

Open a terminal window and type the following three steps;

Step 1.
sudo apt-get update
This will give you your KEYNUMBER that is giving you problems.
your failed KEYNUMBER will look something like 71240B8FB3641876.

Step 2.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEYNUMBER 
Substitute KEYNUMBER with the your failed keys.

Step 3.
sudo apt-get update
click on OK when the Update Window appears.


That's it you should be good to go.  Sorry I fixed mine before I could get screen shots.




Tuesday, March 15, 2016

Kill All Wine Processes (Command Line)

Sometimes Wine programs crash and leave some processes running making it hard to restart them. Here's a nice command line program that kills ALL Wine processes and reports what it killed.  This command lets me just restart whatever Wine program crashed without doing a reboot of my computer.

wineserver -k; killall -9 wine wineserver; for i in `ps ax|egrep "*\.exe"|grep -v 'egrep'|awk '{print $1 }'`;do kill -9 $i;done

I made this command into a Bash Script so I could use it without having to retype or copy/paste it every time I want to use it.

Here's the video where I found this command and it tells you how to make this command into a Bash Script.