Category Archives: Tips

How to connect your Raspberry Pi to your internet router with a standard Ethernet cable and setup a static IP

Suppose we have a Raspberry Pi connected to the TV with an HDMI cable and that uses the internet connection via Wifi. In this example, the operating system is Ubuntu Mate. What we want to get is to connect the Raspberry Pi directly to the home router using an Ethernet cable and set up a static IP address so that we can connect it later using SSH.

First of all, while we are connected to Wifi, we enable Raspberry to get a dynamic IP from the Ethernet cable. To enable this feature we will have to edit the file

/etc/network/interfaces

and add these 2 lines if they are not present

auto eth0
iface eth0 inet dhcp

the result file should be similar to this

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

Connect the Raspberry Pi to your router with the Ethernet cable and do a reboot.

From command line do: ifconfig

You should see a result similar to the one up. To find your Ethernet IP you have to look at the interface Eth0 and then look at the inet (IPv4) section, in the example is : 192.168.1.48

Use the route -n command and mark the values you get

raspberry@raspberry:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    1024   0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0

My example values are

Gateway 192.168.1.1
Newtwork 192.168.1.0
NetMask 255.255.255.0

Now we have all informations we need to proceed

sudo nano /etc/network/interfaces

Comment the line about dynamic IP address and Eth0 interface by using #
add the line to obtain the static IP and the lines of your configuration as the example. This sets your static IP, and the appropriate settings for your resolv.conf. You'll notice it uses your local DNS, a Google DNS (8.8.8.8 and 8.8.4.4)  the final result must be similar to the follow.

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.48
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8 8.8.4.4

All done! The Raspberry static IP via Ethernet cable will be 192.168.1.48 in our exmple. Last thing to do is to reboot the system.

sudo reboot


Source: How to connect your Raspberry Pi to your internet router with a standard Ethernet cable and setup a static IP

How to setup desktop access to Raspberry Pi using your Windows Remote Desktop Connection

All versions of Windows PCs come with a Remote Desktop Connection (RDP) pre-installed. There are several different implementations of the same protocol for Linux, in this example we will use xrdp

To install xrdp on a Raspberry Pi running Raspbian or Ubuntu use in the command line shell:

sudo apt-get install xrdp

xrdp will be installed as a service and will be started automatically.
On a Windows PC, launch Remote Desktop Connection, you must use MSTSC.exe to open a remote desktop connection to your RaspberryPi. You’ll be prompted for a username and password. This will be the same information you’ve entered when you logged into your RaspberryPi to setup XRDP. 

If you use a Windows 10 PC: In the search box on the taskbar, type Remote Desktop Connection, and then select Remote Desktop Connection. In Remote Desktop Connection, type the full name or IP of the remote RaspberryPi , and select Connect.

To setup a static IP for your Raspberry Pi via an Ethernet cable, read the tutorial 

http://awesomeprojectsxyz.blogspot.it/2017/09/how-to-connect-your-raspberry-pi-to.html


Source: How to setup desktop access to Raspberry Pi using your Windows Remote Desktop Connection

Windows 10 initial setup stuck at onedrive page. | Windows10 |

Today all of the sudden Windows 10 started causing issues at the time of initial setup, where it is trying to setup Onedrive cloud service as a backup option at the time of initial Windows setup for first time user and there is no option to pass through it.

Windows 10 Intial setup stuck here

Reason: Onedrive is not able to sync with Microsoft server and next button on above image is not responding.

Resolution for this issue is to restart the computer, and it will restart the first time setup process again.

Just simply select “Skip this step” by clicking it. As illustrated in above image. Do not use Microsoft email account for now and complete the setup with local account.

If you want to use Microsoft account you can set it later inside the Windows using “Sign in options”.

Hope I helped with today’s hottest issue.

In addition I will provide you one more tip here as you restart the computer and login to local account you will find one more user account there from initial failed attempt, you can delete it from netplwiz.exe if you find it difficult feel free to contact.

Issue Resolved.

  • #ReAndoid


Source: Windows 10 initial setup stuck at onedrive page. | Windows10 |

How to get rid of "SIM tool kit" pop up ? |Android|

Recently started getting issue with a small box poping up with some text advertisement on my Android device.

Thought that it could be another adware causing issue and also tried currently my best McAfee for mobile, scanned everything but nothing found.

So as per the title of that popup “SIM Tool Kit” I guessed and tried below steps which really fixed the problem.

Go to settings > Apps > All Apps > Notifications > Enable Notifications, here Simply move the radio button and turn it off.

Try above if you are facing same issue then it resolve for sure.

  • If above step did not work for you in that case go to Sim Toolkit and open you sim and now check different options in there some of them must have Stop/Start options select it and it will resolve the issue.

#Reandroid.


Source: How to get rid of “SIM tool kit” pop up ? |Android|

Compile Beaker Browser to run on Windows 10

Beaker Browser is a peer-to-peer browser with tools to create and host websites. 

https://beakerbrowser.com/docs/install/ 

At the moment, there is no simple setup for Windows 10.

This blog post is a step by step simple guide that will help you to build Beaker Browser from source code in a Windows 10 environment

System requirements


Install Python 2.7 in c:
https://www.python.org/downloads/release/python-2711/

Install Visual Studio 2015 or 2017
https://www.visualstudio.com/it/downloads/

Install Node JS
https://nodejs.org/it/download/

Open PowerShell with Admin power and start in C:

git clone https://github.com/beakerbrowser/beaker.git
cd beaker
npm i -g npm

npm config set python c:/python27
npm config set msvs_version 2015

npm install -g node-gyp

npm unistall gulp

npm install gulp

npm install hyperdrive

npm install electron-rebuild

npm install

After npm install wait and you will have this error message

Error: `C:Program Files (x86)MSBuild.0binmsbuild.exe` failed with exit code: 1

The problem depends on syntax of some C files related to the DAT PROJECT that use the C99 dialect

[C:beakerappnode_modulesutp-nativebuildutp.vcxproj]

C99 is a past version of the C programming language standard.  Microsoft Visual Studio’s C compiler is not C99-compliant, so it will not be able to compile that code. The solution could be to convert the code to use C89 or C++ (for example see this https://github.com/libav/c99-to-c89/ ), or use a different compiler which supports C99.

The utp-native module isn’t strictly required for anything to work. So we are still be able to run and continue the installation. To continue the installation, you must be inside C:beaker and open the ‘app’ dir and ignore the errors

cd app

(put this all in one line)

npm rebuild --runtime=electron --target=1.5.0 --disturl=https://atom.io/download/atom-shell --build-from-source

gulp build

cd node_modules/sqlite3

npm run prepublish

(put this all in one line)

node-gyp configure --module_name=node_sqlite3 --module_path=../lib/binding/electron-v1.7-win32-x64

(put this all in one line)

node-gyp rebuild --target=1.7.0 --arch=x64 --target_platform=win32 --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/electron-v1.7-win32-x64 cd.. cd.. cd.. npm start Beaker Browser will start without utp-native but with success!

> beakerbrowser@ start C:beaker
> gulp start

[12:28:47] Using gulpfile C:beakergulpfile.js
[12:28:47] Starting ‘start’…
Spawning electron C:beakernode_moduleselectrondistelectron.exe
[12:28:48] Finished ‘start’ after 7.89 ms

Failed to load utp-native. Peer-to-peer connectivity may be degraded. { Error: Cannot find module ‘utp-native’
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (C:beakernode_moduleselectrondistresourceselectron.asarcommonreset-searc
h-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at C:beakerappbackground-process.build.js:5059:3
    at Object.<anonymous> (C:beakerappbackground-process.build.js:5458:2)
    at Object.<anonymous> (C:beakerappbackground-process.build.js:5459:3)

    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10) code: ‘MODULE_NOT_FOUND’ }

You are ready to use it!

https://beakerbrowser.com/docs/using-beaker/

https://beakerbrowser.com/docs/tutorials/

Watch some examples

Learn more

Read more
https://medium.com/@taravancil
Source: Compile Beaker Browser to run on Windows 10

Msbuild.exe upgrade. Howto install the VS2017 version of msbuild by command line instructions

Visual Studio Build tools are a different download than the IDE

click here and download the setup vs_buildtools

https://aka.ms/vs/15/release/vs_buildtools.exe

Go in command line shell and write

vs_buildtools.exe --add Microsoft.VisualStudio.Workload.MSBuildTools

After installation is completed, you will have a new msbuild

C:Program Files (x86)Microsoft Visual Studio17BuildToolsMSBuild.0BinMSBuild.exe

Try yourlsef, go in the shell and write

C:>”C:Program Files (x86)Microsoft Visual Studio17BuildToolsMSBuild.0BinMSBuild.exe”

You have as result:

Microsoft (R) Build Engine versione 15.3.409.57025 per .NET Framework
Copyright (C) Microsoft Corporation. Tutti i diritti sono riservati.
Source: Msbuild.exe upgrade. Howto install the VS2017 version of msbuild by command line instructions

Driver_irql_not_less_or_equal – Netwtw04.sys | Windows 10 Blue Screen |

BSOD Netwtw04.sys.

Lots of the windows 10 users reported this issue after Windows 10 Creator’s update.
Issue identied during internet browsing and especially after opening edge browser.
After multiple troubleshooting attempts we identified it to be issue with Intel Dual band wireless card’s drivers and Windows 10 Creator update (In some cases combination with Nvidia graphics card.).
To get the issue resolve simply go to Intel website and get the driver updated and it will fix this issue.
Additional Tips: 
If not able to download as system is crashing you can try to disable graphic card from Display Adapter in Device Manager and it will give you temporary relief from that BSOD.


Source: Driver_irql_not_less_or_equal – Netwtw04.sys | Windows 10 Blue Screen |

| Added Resolution to 100% Disk usage |Create a Data Collector Set to Monitor Performance Counters | Windows 10

Found helpful article which can be useful step in resolving 100% Disk usage issue :

Before trying below steps I believe you have already tried 9 other steps in my previous post to resolve 100% Disk usage issue if not to check click here.

|Windows 10|
Create a custom Data Collector Set and control your system’s performance.


How to create Data Collector Set to monitor Performance counters:

  1. Go to  Windows Performance Monitor, check left navigation pane, expand Data Collector Sets , right-click User Defined , point to New , and click Data Collector Set . It will start  New Data Collector Set Wizard.
  2. Set a name.
  3. Don’t forget to select the Create manually option and clickNext .
  4. Select the Performance Counter Alert option and then click Next .
  5. Now click Add which will bring up Add Counters popup box. Add counter and click finish.
  6. You can also define alerts as per  the values of performance counts.
    1. From the list of Performance counters, select the counter to monitor and trigger an alert.
    2. From the Alert when drop-down, choose whether to alert when the performance counter value is above or below the limit.
    3. In the Limit box, enter the threshold value.
  7. When you are finished defining alerts, clickNext to continue configuration or Finish to exit and save the current configuration.
  8. After clicking Next , you can configure the Data Collector Set to run as a particular user. Click the Change button to enter the user name and password for a different user than the default listed.
  9. Set the Interval to 1 second if collecting a small dataset (approx 24 hours) or 5 seconds if collecting a larger data set (approx 1 week). Click Add to add a counter.
  10. Locate Processor, expand processor and select % Processor Time. Choose _Total for the Instances, then Add the counter.
  11. Click OK, Click Finish to save. 
  12. Select the newly created counter, then click the green Play button to start the counter. After the test duration has completed.
  13. Repeat step 10, 11 & 12 for Network Interface. Locate Network Interface under Available counters, expand, and add a counter for Bytes Received/Sec and Bytes Sent/Sec.
Thanks and credits to my friend  Mr. Raaj Pathak to bring this method into light.


Source: | Added Resolution to 100% Disk usage |Create a Data Collector Set to Monitor Performance Counters | Windows 10

How to perform Operating System Reinstall on EMMC HDD – Windows 10

Hello Friends,

While performing Operating System on EMMC HDD identied issue that it reports problem installing Operating System on selected drive and reports OS could not be installed. (Steps given are for Windows 10 and Windows 8). We have found a workaround to get it fixed.

What we have to do is need to go to “Repair My Computer” option, which you find underneath Install now option if you have “Operating System Reinstallation media” you must be knowing how to do it.

Now from here select command prompt and type in below “diskpart” commands:

  • diskpart.
  • list disk.
  • select disk {number for your EMMC HDD}
  • clean
  • Exit

Now restart the computer and boot to OS Media, Select install now, then select custom install, then select new, create 22GB partition, select that 22GB partition and click on next. Issue Resolved.

Later once the system will load into Windows go to Disk management and activate the inactive partition.


Source: How to perform Operating System Reinstall on EMMC HDD – Windows 10

Windows creator update installation issues |Windows 10| #ReAndroid

Sometime Windows updates does not work properly, recently I had issues doing the windows 10 creator update myself. However resolved the situation using below listed method.

Open command prompt opens (hold Windows key and press R, the type CMD in open box then click run), in Command box type “net stop wuauserv” and hit enter. This will temporarily disable your Windows Update. Next, navigate to C:WindowsSoftwareDistribution and delete the contents of this folder but not the folder itself. These are the files Windows Update is trying to use to update your Windows install.

Finally, go back to your command prompt and type “net start wuauserv” and hit enter. This will restart the Windows Update service. Now, fire up Windows Update, and re-download the Creators Update. It  should work now.


Source: Windows creator update installation issues |Windows 10| #ReAndroid