Ubuntu Unity – How to replace the functions of Alt with Super key, for window move and resize.

Replacing windows movement functions (move, resize) in Ubuntu Unity (from Alt+mouse_click to Super+mouse_click) is useful for me because when using Blender I need the Alt key to be dedicated for the specific blender functions and I don’t want any overlap of functionalities between Blender and Unity.

To perform this key replacement, you need to install the dconf-editor package first, then change the settings from it.

sudo apt-get install dconf-editor

Next, run dconf editor (find it in the Unity search bar). When it opens, go to the items tree: org►gnome►desktop►wm►preferences and change the value of the field mouse-button-modifier from <Alt> to <Super>

screenshot of dconf editorThat’s it! :)   /Saverio

Useful PPAs that I frequently use on Ubuntu linux (or its derivative).

Web links to the PPAs. Check their description, then you can add them to the system using (sudo) apt-add-repository command:

  1. Audio apps (LMMS ecc.), latest – KXStudio-Debian Applications PPA
  2. Blender, latest and edge – Thomas Schiex ppa
  3. Gimp and Gmic, latest – otto06217 ppa
  4. Grub Customizer, latest – Daniel Richter ppa
  5. Inkscape stable, latest – “Inkscape Developers” team ppa
  6. Krita, latest – Krita Lime by Dmitry Kazakov ppa
  7. Nvidia drivers, latest – xorg-edgers ppa
  8. Nvidia drivers, stable – “Ubuntu-X” team ppa

Installing Nvidia drivers and CUDA in Linux – Ubuntu and its derivatives

After a fresh install of Ubuntu – or one of its derivatives, I use a quick way to install Nvidia drivers and CUDA (used for GPU computing like blender cycles, etc.). It consists of two simple steps, open a terminal and…

  1. Add a PPA that contains latest stable drivers and install them:
    sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
    sudo apt-get update
    sudo apt-get install nvidia-current nvidia-settings
  2. Install binary packages of CUDA:
    sudo apt-get install nvidia-cuda-toolkit

Now it’s possible to benefit of the Nvidia computing performance in your Linux!🙂

Anyway, if you just need to let Blender to work with GPU computing, I advice to just install nvidia proprietary drivers and the package nvidia-modprobe:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings nvidia-modprobe

An easy way to upgrade or install new software on an offline Linux PC

This is a procedure I sometime use to update several offline desktop computers with Linux Ubuntu (and derivatives).

OVERVIEW:

  1. With the offline PC, you must have the possibility to periodically connect to the internet with a low-speed connection, using for example an EDGE/UMTS cell phone, 56k modem or other. This is needed just to download a small amount of data like the list of packages to update/install.
  2. You must also have the possibility to periodically use an online PC with a high-speed internet connection (DSL, wi-fi or other) to download all packages needed to update the offline PC.
  3. A mobile storage unit like a USB pen drive or a USB hard disk drive, used to move packages between online/offline PCs.
  4. Availability of the Firefox web browser with DownThemAll addon on the online PC. It’s easy to install Firefox from its web page then the addon can be easily installed after launching Firefox and searching for DownThemAll in “Add-ons” menu item.

1-firefox add-on menu2-ricerca downthemall

GUIDE:

  1. Connect offline PC to the internet with the low-speed connection.
  2. Open a shell (bash terminal), go to your home folder and give these two commands to update the system and generate a text file containing the list of packages to update / install:
    sudo apt-get update
    sudo apt-get -qq --print-uris dist-upgrade > uris
  3. Next, give this command to create a list of packages to download (wget-script.txt):
    sudo awk '{print "wget -O " $2 " " $1}' < uris > wget-script.txt
  4. Now, save wget-script.txt on your USB pen drive and let’s go on the online PC where you can download the packages.
  5. On online PC insert your pen drive containing wget-script.txt
  6. Open Firefox and DownThemAll! plugin (dTA! manager), right-click with mouse in dTA! manager window and choose the menu “Advanced”->”Import from file…”. Here select the wget-script.txt previously created.DTA Manager context menu
  7. The download links will be imported in DownThemAll!… Now, filter *.deb files and give a target folder where the packages will be downloaded. Start the download.4-bis_donloading_path_n_filter5-aggiornamento
  8. At the end of download, you can copy this folder of new packages on your USB pen drive and put them on the offline PC.
  9. On offline PC insert the USB pen drive and copy the new packages folder to your home.
  10. Now give the following command to install these updates on your offline PC:
    sudo apt-get -o dir::cache::archives="/home-folder-path/package-folder" dist-upgrade
    

That’s all folks!

Don’t hesitate to send me feedbacks, I can improve the guide with your suggestions.
Thanks a lot. /Saverio