Getting pacman to work through proxy with Wget

  1. Configure pacman to use Wget

    Edit pacman.conf

    $ sudo nano /etc/pacman.conf

    Uncomment or add the following line

    XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

    Save and exit.

  2. Set Wget proxies and set Wget to use proxy

    Edit wgetrc

    sudo nano /etc/wgetrc

    Find the following section in wgetrc regarding proxy settings.

    # You can set the default proxies for Wget to use for http, https, and ftp.
    # They will override the value in the environment.
    #https_proxy = http://proxy.yoyodyne.com:18023/
    #http_proxy = http://proxy.yoyodyne.com:18023/
    #ftp_proxy = http://proxy.yoyodyne.com:18023/
    
    # If you do not want to use proxy at all, set this to off.
    #use_proxy = on
    

    Uncomment and edit the default proxies, or add your own default proxies for Wget. For example,

    https_proxy = http://10.0.2.2:3128
    http_proxy = http://10.0.2.2:3128
    ftp_proxy = http://10.0.2.2:3128
    

    Uncomment, or add the following line to set Wget use_proxy on.

    use_proxy = on

Give /tmp more room

Sometimes when I do an update, or build an AUR install with yaourt, I get a “no space left on device” error.

I can temporarily increase the size of /tmp with:

sudo mount -o remount,exec,suid,size=2G,noatime /tmp

That will set /tmp to 2 Gb

Or, for a more long term solution, set the yaourt temporary directory to another location. For example, the following steps set the TMPDIR to the temp directory in my home directory.

$ cd ~
$ mkdir temp
$ sudo nano /etc/yaourtrc

Edit the line

#TMPDIR="/tmp"

to

TMPDIR="/home/<my user name>/temp"

Useful Unicodes

I often need to input Unicode symbols into documents.

  • In Linux, Ctrl + Shift + U following by the Unicode number.
  • In Microsoft Word, Unicode number then Alt + X.

Here are a few of my favorite Unicodes:

Name Symbol Number
Plus + 002B
Copyright sign © 00A9
Registered sign ® 00AE
Inverted Question Mark ¿ 00BF
Em Dash 2014
Dagger 2020
Bullet 2022
Therefore 2234
Because 2235
Black square 25A0
White square 25A1
White square with rounded corners 25A2
White square with black small square 25A3
Large circle 25EF
Eighth Note 266A
Beamed Eighth Note 266B
Warning sign 26A0
Check mark 2713
Heavy check mark 2714
Ballot X 2717
Cross 271D
Shadowed White Cross 271E
Heavy ballot X 2718
Long Right Double Arrow 27F9
Black large circle 2B24
Eye 👁 1F441

Using Multiple Desktops in Raspbian Jessie

To set up multiple desktops:

  1. Click Menu
  2. Click Preferences
  3. Click Openbox Configuration Manager
    menu to Openbox Configuration Manager
    Menu to obconf

     

    If you do not see the Openbox Configuration Manager, install it by running:
    sudo apt-get install -y obconf

  4. Click on the Desktops tab, and select the desired Number of desktops.

    Desktop Settings
    Desktop Settings

You now have multiple desktops, use the keyboard shortcuts Ctrl + Alt + ⇨ or Ctrl + Alt + ⇦ to switch between the next and previous desktop.

If the shortcuts keys do not work, refer to the following post for Raspbian keyboard shortcuts to change your key-binding in Openbox.

Location of Raspbian Jessie keyboard shortcuts

The default keyboard shortcut setting is in the file
/etc/xdg/openbox/lxde-pi-rc.xml
under the <keyboard> section.

There may also be an rc.xml setting file in the same folder for your reference

Your personal shortcuts, if they exists, is in
~/.config/openbox/lxde-pi-rc.xml

For examle, add the following in the <keyboard> section to move to adjacent desktop workspace

<keybind key="C-A-Left">
  <action name="DesktopLeft"/>
</keybind>
<keybind key="C-A-Right">
  <action name="DesktopRight"/>
</keybind>