Fix windows search not working

I cannot use windows search from the task or the file window.

Spend much time in searching the solutions online and tried to fix the problem. However, most of them are not working for me.

Finally, I tried the following script in the Powershell with admin right:
Add-AppxPackage -Register "C:\Windows\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\AppxManifest.xml" -DisableDevelopmentMode

The problem is solved!

Advertisement

Start Synergy BEFORE logging in

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

/etc/lightdm/lightdm.conf

with the contents:

[Seat:*]
autologin-user=

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

Ref: https://askubuntu.com/questions/918137/start-synergy-or-any-application-before-logging-in-ubuntu-16-04-2-lts

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 %.ps

Then the problem will be solved.

Ref: http://bbs.ctex.org/forum.php?mod=viewthread&tid=57382&extra=&page=1

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/

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/

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;