Create windows bootable USB from Ubuntu (or derived distro)

Follow instructions here:

http://onetransistor.blogspot.it/2014/09/make-bootable-windows-usb-from-ubuntu.html

I succesfully followed these instructions to create a Windows 10 USB bootable drive from Linux Mint 17.3.

See also this answer at AskUbuntu.SE from same author:

http://askubuntu.com/a/487970/234374

Linux Mint 17.3 doesn’t recognize wireless adapter of HP Pavilion Gaming laptop

We are talking about the HP Pavilion Gaming Notebook – 15-ak102nl. But in general, the problematic device is the Intel Wireless adapter 3165.

Linux Mint 17.3 won’t recognize this device, and the Driver Manager won’t offer any proprietary drivers. The problem is that the linux driver for this device is only available in newer versions of the Linux kernel, which Linux Mint 17.3 doesn’t have.

To fix this,

wget https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-7265-ucode-25.30.13.0.tgz
 tar zxvf iwlwifi-7265-ucode-25.30.13.0.tgz
 cd iwlwifi-7265-ucode-25.30.13.0
 sudo cp iwlwifi-7265-13.ucode /lib/firmware/iwlwifi-3165-13.ucode
 cd
 sudo apt-get install build-essential linux-headers-generic
 wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/20/backports-20151120.tar.gz
 tar zxvf backports-20151120.tar.gz
 cd backports-20151120
 make defconfig-wifi
 make
 sudo make install

Credits to JeremyB (original discussion here).

If the Linux kernel gets an upgrade, you have to recompile the backport, so repeat these steps:

wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/20/backports-20151120.tar.gz
tar zxvf backports-20151120.tar.gz
cd backports-20151120
make defconfig-wifi
make
sudo make install

Additionally, the newer kernel will look for a different firmware name, so:

sudo cp /lib/firmware/iwlwifi-3165-13.ucode /lib/firmware/iwlwifi-7265-13.ucode

Thanks to JeremyB.

Ubuntu PPAs I usually add

These are the PPAs I usually add to my Ubuntu system. To add each of them, execute

sudo add-apt-repository

followed by one of the following PPAs:

  1. ppa:andreas-boettger/gmusicbrowser-daily
  2. ppa:lyx-devel/release
  3. ppa:staticfloat/julia-deps
  4. ppa:staticfloat/juliareleases
  5. ppa:ubuntu-toolchain-r/test
  6. ppa:libreoffice/ppa

The (5.) contains latest GCC compilers.

Optional:

  • ppa:alex-wv/pulseaudio-equalizer-ppa
    • contains an equalizer for pulse audio

Fix Julia Pkg.update() and related functions

julia> Pkg.update()
 INFO: Initializing package repository /home/[user]/.julia/v0.3
 INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
 fatal: unable to connect to github.com:
 github.com[0: 192.30.252.128]: errno=Connection timed out

If you have seen the error above, then Julia is probably having trouble accessing github. The following command fixes the issue:

git config --global url."https://".insteadOf git://

Source: reddit

How to use latest GCC with CLion in Linux-Mint

The default GCC in Linux-Mint is not up to date. To install the latest version, follow these steps:

  1. sudo add-apt-repository ppa:ubuntu-toolchain-r/test
  2. sudo apt-get update
  3. sudo apt-get install gcc-5 g++-5

Now if you execute in a terminal

g++-5 –version

You should get the correct version.

Next, in CLion, go to Settings -> Build, Execution, Deployment -> CMake. Under CMake options, add

-D CMAKE_CXX_COMPILER=g++-5

That should do it.

In general, note that CLion just uses CMake to do the compiling, so its really CMake that you have to configure to use a different compiler. More details on how to do this can be found here:

https://cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F