Tuesday, September 26, 2017

How to Install ESP32 Board in Arduino IDE ( Ubuntu /Debian )

How to Install  ESP32 Board in Arduino IDE ( Ubuntu /Debian )

Now a days ESP32 become more popular than NodeMCU.

ESP32 board is not available in Arduino IDE.

For Adding ESP32 Board in Arduino IDE

First you have to install the latest Arduino IDE from arduino.cc

Run the following commands in a terminal

sudo usermod -a -G dialout $USER && \
sudo apt-get install git && \
wget https://bootstrap.pypa.io/get-pip.py && \
sudo python get-pip.py && \
sudo pip install pyserial 
 
 
 Now make a folder espressif in your arduino/hardware folder and change to that directory
 
 
 
 mkdir -p ~/Arduino/hardware/espressif 
cd ~/Arduino/hardware/espressif  
 
 
now run the following command
 
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32/tools/ && \
python get.py
 
 
Copy and paste the above all commands in a terminal. 
It will download and install all the required files and settings.


Restart Arduino IDE.


Thursday, September 21, 2017

How to Run 720p and 1080p mkv files Raspberry pi

VLC and other common video players  in Raspberry pi not support GPU.

You can use Omxplayer a text based video player for running 720p and 1080p mkv and almost all other video formats.

for installing omxplayer

sudo apt-get install omxplayer

omxplayer is a textbased player , so it is very difficult to use.

you can provide a graphical front end by using tboplayer

https://github.com/KenT2/tboplayer

Download the zip file from above site

run the following commands
sudo su
unzip tboplayer-master.zip
cd tboplayer-master
./setup.sh

This will take some time to complete

now run the following
python /opt/tboplayer/tboplayer.py

if any python module missing issue

pip install

Example:

raceback (most recent call last):
  File "/opt/tboplayer/tboplayer.py", line 65, in
    import pexpect
ImportError: No module named pexpect

Solution :  pip install pexpect






Tuesday, August 22, 2017

How to Install Edup Wifi Adapter in Ubuntu

How to Install Edup Wifi Adapter in Ubuntu

USB ID  148f:7601 Ralink Technology, Corp.

Chip :  Ralink MT7601u

Open a Terminal and Run the following commands

sudo apt-get install linux-headers-generic build-essential 

sudo apt-get install git

git clone https://github.com/art567/mt7601usta.git 

cd mt7601usta/src 

make 

sudo make install 

sudo mkdir -p /etc/Wireless/RT2870STA/ 

sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/ 

sudo modprobe mt7601Usta

 

Now Check your Wifi 

Monday, July 24, 2017

How to cut a field from csv file using bash

How to cut a field from csv file using bash 

Example :
cat mycsv.csv | cut -d ',' -f3


cat mycsv.csv | cut -d "," -f3 | sort | uniq -c | sort -rn | head

 


Monday, May 15, 2017

How to Disable Ports 445, 139 and 3389 , Protect your system from wannacy attack

How to Disable Ports 445, 139 and 3389 , Protect your system from wannacy attack


 Run the following  command in cmd (run as administrator).


netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=135 name="Block_TCP-135"
 
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=445 name="Block_TCP-445" 


netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=3389 name="Block_TCP-3389"
 
 
 

How to Disable SMB Service in Windows and Protect your system from wannacry virus

How to Disable  SMB Service in Windows and Protect your system from wannacry virus


How to Disable SMBv1 support

The wannacry vulnerability can  be closed by completely disabling SMBv1 support. Run the following  command in cmd (run as administrator).

dism /online /norestart /disable-feature /featurename:SMB1Protocol

This will permanently disable SMBv1


For enabling just change the disable-future to enable-future

Tuesday, March 14, 2017

How to Install GUI in Ubuntu Server

How to install GUI in Ubuntu Server

You can install the default Ubuntu desktop by executing the following:

sudo apt-get install ubuntu-desktop

There are many desktop alternatives which you may install and use, like:

    Gnome 3 installation: sudo apt-get install gnome-shell
    XFCE installation: sudo apt-get install xfce4
    LXDE installation: sudo apt-get install lxde

    KDE see Kubuntu installation: sudo apt-get install kubuntu-desktop
    Openbox installation: sudo apt-get install openbox
 
    Another good GUI : sudo apt-get install gnome-session-fallback

Monday, October 24, 2016

How to install Richo SP 111 Printer in Ubuntu


Install the following files

sudo apt-get install jbigkit-bin inotify-tools

 

Download the git files or clone form here https://github.com/madlynx/ricoh-sp100


Extract the zip file in a folder

Copy the following file

sudo cp pstoricohddst-gdi /usr/lib/cups/filter/

Now change the permissions

sudo chown root:root /usr/lib/cups/filter/pstoricohddst-gdi

 

Add Printer > Choose Ricoh SP 111 > Model > Provide ppd file (RICOH_Aficio_SP_111.ppd)

Another method

To add printer from the ppd file: In your web browser, navigate to http://localhost:631/

CUPS for Administrators > Adding Printers and Classes Printers > Add a printer Enter your root username and password

 


Thursday, September 8, 2016

How to Move Unity Launcher to Bottom in ubuntu 16.04

How to Move Unity Launcher to Bottom in ubuntu 16.04

Now you can move your unity launcher to bottom in Ubuntu 16.04.
Move unity launcher to bottom

use the following command

$ gsettings set com.canonical.Unity.Launcher launcher-position Bottom


Move unity Launcher to left

$ gsettings set com.canonical.Unity.Launcher launcher-position Left


Monday, July 4, 2016

Features of Serial Wifi Module Esp8266





Main features of ESP8266 are:
  • Integrated low-power 32-bit MCU
  • 802.11 b/g/n protocol
  • UART/SPI/I2C/GPIO/ADC/PWM
  • Infrastructure BSS Station mode / P2P mode / softAP mode support
  • Integrated TCP/IP protocol stack
  • WPA/WPA2 PSK, and WPS driver
  • built-in AT Command firmware
  • Integrated PLL, regulators and power-management units
  • +19.5dBm output power in 802.11b mode
  • Antenna diversity and selection (software managed hardware)
  • SDIO 2.0, SPI, UART
  • Maximum frequency is 80MHz
  • 64k bytes of instruction RAM
  • 96k bytes of data RAM
  • 64k bytes of boot RAM
  • RISC architecture