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"

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>

Installing Node.js on Linux from Binaries

  1. Download Node.js binaries

    Node.js binaries are available at nodejs.org. You can download the more stable LTS version or Current version with the latest features.

  2. Extract the download binary files

    You can either first extract the binary files to a temporary directory, then copy them to the /usr/local directory; or extract the files right into the /usr/local directory.

    1. Extract to temporary folder, and then copy the files to /usr/local folder.

      # cd temp
      # tar -xvJf ~/downloads/node-v7.2.0-linux-x64.tar.xz
      # cd node-v7.2.0-linux-x64
      # sudo cp -R . /usr/local
      
    2. Extract directly into the /usr/local folder. First change directory to /usr/local, and then issue the tar command.

      # sudo tar --strip-components=1 -xvJf ~/downloads/node-v7.2.0-linux-x64.tar.xz
      
  3. Check Node.js installation
    # node -v
    v7.2.0
    
  4. Check npm installation
    # npm version
    { npm: '3.10.9',
      ares: '1.10.1-DEV',
      cldr: '30.0.2',
      http_parser: '2.7.0',
      icu: '58.1',
      modules: '51',
      node: '7.2.0',
      openssl: '1.0.2j',
      tz: '2016g',
      unicode: '9.0',
      uv: '1.10.1',
      v8: '5.4.500.43'
      zlib: '1.2.8' }
    

apt-get Behind a proxy server that requires authentication

Create a new file in the /etc/apt/apt.conf.d

for example: create the file 80proxy with

sudo nano /etc/apt/apt.conf.d/80proxy

and add the following lines to configure the proxy setting:

Acquire::http::Proxy "http://<username>:<password>@<proxy IP>:<port>";
Acquire::https::Proxy "http://<username>:<password>@<proxy IP>:<port>";
Acquire::ftp::Proxy "http://<username>:<password>@<proxy IP>:<port>";