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.

Ref: http://www.techtolead.com/how-to-make-wi-fi-tethering-in-windows-8-1/

Advertisement

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:

http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html
http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/

(Updated for 18.04)To show the same display session in Ubuntu by Chrome Remote Desktop

The default configuration of Chrome Remote Desktop in Ubuntu opens a new session instead the same desktop currently running.

To fix this, please follow these steps:

Stop it:
/opt/google/chrome-remote-desktop/chrome-remote-desktop –stop

Back it up:
cp /opt/google/chrome-remote-desktop/chrome-remote-desktop /opt/google/chrome-remote-desktop/chrome-remote-desktop.orig

Edit: /opt/google/chrome-remote-desktop/chrome-remote-desktop

Change this to the size I wanted.
DEFAULT_SIZES = “1920×1080”

Set the X display number to the current display number (obtain it with echo $DISPLAY from any terminal).

FIRST_X_DISPLAY_NUMBER = 0

Comment out sections that look for additional displays:

#while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
Reuse the existing X session instead of launching a new one. Alter launch_session() by commenting out launch_x_server() and launch_x_session() and instead setting the display environment variable, so that the function definition ultimately looks like the following:

def launch_session(self, x_args):
self._init_child_env()
self._setup_pulseaudio()
self._setup_gnubby()
#self._launch_x_server(x_args)
#self._launch_x_session()
display = self.get_unused_display_number()
self.child_env[“DISPLAY”] = “:%d” % display #Pls change the quotes to plain quotes

Start it:
/opt/google/chrome-remote-desktop/chrome-remote-desktop –start

DONE. Now it attaches to Unity’s existing X Server on display :0.

Credit to the discussion of these post  https://productforums.google.com/forum/#!topic/chrome/LJgIh-IJ9Lk

https://superuser.com/questions/778028/configuring-chrome-remote-desktop-with-ubuntu-gnome-14-04

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 

libc6:i386,

libncurses5:i386,

libstdc++6:i386

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 http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png

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

[Desktop Entry]
Type=Application
Icon=/usr/share/icons/matlab.png
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;

Compile Bundler in Ubuntu 12.04

1. Download the bundler-v0.4-source and install all  the required dependencies.

2. After make, we can see such error,

BundlerApp.h:620:32: error: cannot call constructor ‘SkeletalApp::BundlerApp’

3. The solution is to change “BundlerApp::BundlerApp();” to “BundlerApp();” in line 620 of the file of BundlerApp.h

Then we can make it successfully.