Start Synergy BEFORE logging in

For 16.04 create the following file (it doesn’t exist)


with the contents:


greeter-setup-script=/usr/bin/synergyc <hostname>


IEEE-xpress: font not embedded error

Do not use ps2pdf.exe, use the following command:

gswin32c -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dCOMPatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=%.pdf

Then the problem will be solved.


WiFi Tethering in Windows

1. Run command prompt with administrator privileges.
2. Execute the below command to verify that your network interface support virtualization:

netsh wlan show drivers

If the “Hosted network supported” says “Yes“, then you’re ready to share the internet via Wi-Fi. Otherwise, you need to upgrade your hardware, if the software update doesn’t fix it.

3. Set up the ssid and key.

netsh wlan set hostednetwork mode=allow ssid=abc key=12345678

ssid is nothing but your desired Wi-Fi name, you can give your own.

Key is nothing but your Wi-Fi password. It should be Minimum 8 characters long

4. Until now, your hosted network has been created. Now, you need to start it.
Use the command below to start your Wi-Fi Network:

netsh wlan start hostednetwork

5. Share  the Internet Connection with the created WiFi.


Install CUDA on AWS GPU Instance

1. Install build-essential
$ apt-get update && apt-get install build-essential

2. Install linux-image-extra-virtual
$ sudo apt-get install linux-image-extra-virtual
This step is important for virtual system.
If this package is not installed, the error “Unable to load the kernel module ‘nvidia.ko’. ” will appear.

3. Download CUDA and install the package.
This step is same as installing on a normal PC.

4. Set LD_LIBRARY_PATH and test sample code.

Main reference:

Run a 32-bit binary on a 64-bit Ubuntu

If the output of file file-name shows,

file-name: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.x.x, not stripped

To run 32bit executable file in a 64 bit multi-arch Ubuntu system, we have to add i386 architecture and also we have to install 




these three library packages.

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo ./file-name

How to create a MATLAB launcher/shortcut

1. Get an icon:

sudo wget -O /usr/share/icons/matlab.png

2. Create the launcher file /usr/share/applications/matlab.desktop

[Desktop Entry]
Name=MATLAB R2014a
Comment=Start MATLAB - The Language of Technical Computing
#Uncomment the following line and comment the line after to
#force matlab to use the 32 bits architecture
#Exec=matlab -arch=glnx86 -desktop
#please replace the following line with the path where matlab installed Exec=/media/Program/MATLAB_linux/R2014a/bin/matlab -desktop Categories=Development;