Wednesday, January 28, 2015

Keep http_proxy environment variable when using sudo

Add this in visudo

Defaults env_keep +="http_proxy"
Defaults env_keep +="https_proxy"
Defaults env_keep +="ftp_proxy"

Tuesday, January 20, 2015

Adding a proxy to maven3

Create the file ~/.m2/settings.xml with the contents


<settings>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>fw1</host>
      <port>3128</port>
    </proxy>
  </proxies>
</settings>

Thursday, January 15, 2015

Use synapse to search in Lubuntu


First install Synapse


sudo add-apt-repository ppa:synapse-core/ppa
sudo apt-get update
sudo apt-get install synapse


Now bind Synapse to the Super_L key alone

First remove any super key bindings e.g. <super>+p is a common one for screen settings
Then close Synapse
In ~/.config/hotkeys/synapse.hotkeys
change
Signature=<Control>space
to
Signature=Super_L
Relaunch Synapse