Posts tagged with "How To"

GPG signed commits in PHPStorm on CentOS 7

Having the functionality of automatically being prompted to sign your commits while still using PHPStorms Git GUI means you’ll never forget to sign commits again.

To start with, the version of Git installed needs to be > 2.0, otherwise certain options we are using will not work.

On CentOS 7 you’ll need to either build from source, or use a 3rd-party repository such as the IUS Community Project in order to do that. I prefer using repositories over building from source, as it’s easier to update the packages later on.

To use the 3rd-party repository method run the following:

yum install epel-release
yum remove git
rpm -U https://centos7.iuscommunity.org/ius-release.rpm
yum install git2u

Next, if you don’t have a GPG key yet, you’re going to need to generate one, GitHub have a nice guide on this already.

Next we need to add some options to our git config, I’ve went with adding to my global configuration here, however you can set this on a project by project basis by just omitting the --global tag.

git config --global commit.gpgsign true
git config --global user.signingkey ENTER_YOUR_KEY

If you’re confused on how to get your signing key for above, again Github have a guide on that.

At this point, running git commit -S -m "Example commit" will prompt you to enter the password for your secret key.

The last part is to add the following configuration to ~/.gnupg/gpg.conf

no-tty

Now when you make a commit in PHPStorm, you’ll be prompted for the password for your secret key, and the commit will be signed.


Posted on January 23, 2019

Control Your Windows PC with an Xbox Controller

Xbox 360 Controller

Today I’m going to walk you through setting up an xbox controller to work on your computer and control the mouse / keyboard.

First your going to need an Xbox Controller that works on Windows . If you already have an Xbox controller you can just pick up one of these receivers . (Both links to Amazon, you can find on eBay cheaper).

Next you’ll need to install the drivers for the controller. You can find them on Microsoft’s website here .

Now you should be able to connect your controller to the computer and play any games using it. However you can’t use it to control the mouse yet. What we will need to do next is download JoyToKey from here . I went with the latest Beta version however you can also download the stable (v 4.6 at time of writing).

Now you can edit the configuration of what you’d like each button to do using the JoyToKey GUI.


Posted on January 25, 2012

Earcandy in Ubuntu Jaunty

EarCandy is a volume manager for PulseAudio that fades applications in and out based on your current activity. Meaning it can do handy things like muting your music playing when you decide to turn on a youtube video. EarCandy can sniff out applications to tell what kind of application they are

Screenshots:

earcandy.png

earcandy2.png

How to install Earcandy on Ubuntu Jaunty

You can do this by using the following command:

sudo kate /etc/apt/sources.list

Then add the following to the end of the file:

deb http://ppa.launchpad.net/earcandy-devel/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/earcandy-devel/ppa/ubuntu jaunty main
``
Then you can install earcandy by using the following command!
```bash
sudo apt-get install earcandy

Posted on September 28, 2009

Create a URL Shortener With Your Domain

If you use URL shortening services like TinyURL , it may be worth your while to setup a domain shortening service on your own domain. This is quiet easily done with a WordPress plugin now.

YOURLS is a free PHP script created by Lester Chan and Ozh Richard that allow you to create something similar to TinyURL.

  • It is easy to install.
  • It has a statistic side that allows you to keep track of all the URLs you are currently using.
  • It also easily allows you to choose between making your service open for all or just for you.
  • It lets you have customizable links instead of random characters.
  • Lastly it has a bookmarklet that allows you to make TinyURLs on the fly!

Download it and try it out!


Posted on September 24, 2009

Autoinstalling .Debs on Firefox

I was trying to use a get .debs website the other day and with a lot of frustration of firefox saying Firefox does not have the correct protocol to open this file [.apt] I finally figured out that I did not have apt-url installed on kUbuntu.

This can be fixed by simply opening a terminal window and typing:

sudo apt-get install apturl

Then restart firefox. Go to download another .deb / .apt file and when it asks you what you would like to use to open the file browse to /usr/bin and pick whatever installs your programs.


Posted on September 17, 2009

MoBlock - Peerguardian for Linux

log1.png

MoBlock is now deprecated. It’s official successor is PeerGuardian Linux (pgl). It is highly recommended to use pgl instead of MoBlock. You can found out more on the official wiki of the peerguardian project.

With all the recent activity in Ireland with the MPAA you can’t be too safe anymore, you no longer know if someone from the MPAA is lurking in your computer watching everything you download and just waiting for the perfect time to send you that court summons.

Program’s can be installed to prevent people like this getting access to your computer, on Windows you have PeerGuardian, for Linux you have MoBlock. We can’t really tell how effective these peer blocking tools are but in this day and age it’s better to have some security rather than no security!

I’m going to just focus a little more on the power of MoBlock though, which is rumoured to soon be the official PeerGuardian for windows.

Installation is a breeze if your using Ubuntu Jaunty, for other .deb users read here.

First open up a terminal and edit your sources.list you can do this by typing the following:

sudo kate /etc/apt/sources.list

This opens “kate” for you using admin privilages. Add the following to the bottom of the file.

deb http://ppa.launchpad.net/jre-phoenix/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/jre-phoenix/ppa/ubuntu jaunty main

You will also have to enable the universe module, this should already be enabled just look for:

deb http://archive.ubuntu.com jaunty main universe

Next you’ll want to add the gpkg key of the program. To make it trusted, do this by typing the following into a terminal

gpg --keyserver keyserver.ubuntu.com --recv 9C0042C8
gpg --export --armor 9C0042C8 | sudo apt-key add -

Then it’s a walk in the park:

sudo aptitude update
sudo aptitude install moblock blockcontrol mobloquer

After it’s installed you will be guided through configuring moblock! Good luck! :D


Posted on August 26, 2009

Eyetoy as a Webcam on Ubuntu

EyeToy.png

People say using linux is complicated. That just isn’t true anymore. Back when I first started using Ubuntu there was not much support for using the Eyetoy as a webcam. Now however using the eyetoy as a webcam is a walk in the park!

Just open up a terminal window and copy the following into it:

sudo apt-get update
sudo apt-get install ov51x-jpeg-source module-assistant
module-assistant a-i ov51x-jpeg

And as easy as that, your webcam is working!


Posted on August 21, 2009