Posts

How To Enable Hotspot in Ubuntu Via Terminal

Image
Hello Guys, I am using my Ubuntu 18.04 laptops hotspot to share the network with mobile and other devices. for that everytime, I need to go to settings then select WiFi and then need to turn on hotspot hush😰. So I thought that can I start this via terminal instead of this process. I searched for it but didn't get a good solution and after searching for an hour I am able to start it using terminal only so I decided to share this simple command to start hotspot in Ubuntu. $ nmcli device wifi hotspot con-name my-hotspot ssid my-hotspot band bg password P@ss123456 when you run this command you will see the following output. So your WiFi Hotspot is enabled, enjoy your surfing on your mobile as well. :) Edit 1:  Some of my colleagues asked me to do with windows machine so I created 1 BAT file to start hotspot as well, so here is the process to start hotspot on windows 10 laptop. For Windows we need to create BAT file so when we click on it then it can ...

Install Ethereum Mist on Ubuntu

Image
Installing Ethereum Mist On Ubuntu The Mist browser is the tool of choice to browse and use Ðapps or blockchain apps. So you are a beginner at ethereum development then you will require to install Mist for better development view. So let's start with installing Mist. Go to  Mist Github Release link You can select any mist as per your OS is, and download it. Now I will show it on Ubuntu installation. Go to Download folder and run following command. $ sudo dpkg --install Mist-linux32-0-11-1.deb  if this will not work then run the same command with force as follow. $ sudo dpkg --install --force-all Mist-linux64-0-11-1.deb Now when you run mist command then it will open the mist browser. Thanks if you have any queries please comment it out.   

Install Java JDK 10 on ubuntu 18.04

Image
Java JDK is the essential part of developer life to run & develop applications. In this tutorial, we are going to see how to install Java JDK on Ubuntu 18.04. Open Terminal by pressing Ctrl+ Alt+ T   or directly searching from the search bar. Run following commands vikas@machine:~$ sudo add-apt-repository ppa:linuxuprising/java vikas@machine:~$ sudo apt-get update vikas@machine:~$ sudo apt-get install oracle-java10-installer It will ask you to accept the License Agreement  After this, you will see the following type of message on the terminal. Now we need to run a command to set JDK 10 as default JDK, run the following command for it. vikas@machine:~$ sudo apt-get install oracle-java10-set-default Now run java --version on the terminal you will see the following message when you have configured JDK successfully. Here your JDK is ready...

Upgrade Ubuntu 16.04 to 18.04

Image
Following are the steps to  Upgrade Ubuntu 16.04 to 18.04 : If you are planning to  upgrade to Ubuntu 18.04 and you don't know  how to upgrade ubuntu 16.04 to 18.04 then you are the perfect place. I will show you how to do it,  follow the following steps to install it. Search Software Updater & Select Software Updater. Go to Software Updater Select Setting from Software Updater. Go to Updates tab and Then select the following version selection as we are going for LTS(Long Term Support) select Long term Support . After that close this window and click on Install Now. The installation will start we have to wait to complete this installation.   After this click on Restart Now Button. You will think that after restart it will finish but not we have just updated the packages, We have to install it. To install it open the terminal and run following command mymac...

Flutter fails on `flutter` command : Invalid version constraint

Image
Image Source: Wikipedia As you have started to learning flutter and you have tried to install their dependencies from flutter official document. And when you tried to install it and if you get the following error. you can fix it easily. flutter init - o my_app Resolving dependencies ... Error on line 17 , column 16 of pubspec . yaml : Invalid version constraint : Could not parse version "^1.4.0" . Unknown text at "^1.4.0" . stack_trace : ^ 1.4 .0 you will get Invalid version contraint error then the following are the possibilities. Your Dart version can be outdated so you can install it using following command brew install dart@ 2 sudo apt-get install dart Set your path properly: export PATH =[ PATH_TO_FLUTTER_GIT_DIRECTORY ]/ flutter / bin : $PATH Thats it... I hope this will fix your issue.

IONIC Build: Failed to find 'ANDROID_HOME' environment variable

Image
Hello All, When we are creating a build at that time, we may face the following issue: $ ionic cordova build android Running command:  /demoApp/hooks/after_prepare/010_add_platform_class.js /demoApp   add to body class: platform-android   ERROR building one of the platforms: Failed to find 'ANDROID_HOME'  environment variable. Try setting it manually.   Failed to find 'android' command in your 'PATH'. Try to update your 'PATH' to include a path to valid SDK directory. You may not have the required environment or OS to build this project Error: Failed to find 'ANDROID_HOME' environment variable. Try setting it manually. Failed to find 'android' command in your 'PATH'. Try to update your 'PATH' to include the path to valid SDK directory. Let us try to fix this issue: First, check whether you have installed Android SDK or not, Install or check to do following steps: Download & unzip the correc...

MacOS Downgrade or Upgrade MongoDB Versions

Image
By Source, https://en.wikipedia.org/w/index.php?curid=48498452 As we are working on different projects, it may happen that we require the two different mongodb versions to run on same machine or you may get following type of error which I get today only: name: 'MongoError',   message: 'The \'cursor\' option is required, except for aggregate with the explain argument',   operationTime: Timestamp { _bsontype: 'Timestamp', low_: 24, high_: 1527143887 },   ok: 0,   errmsg: 'The \'cursor\' option is required, except for aggregate with the explain argument',   code: 9,   codeName: 'FailedToParse',   '$clusterTime':    { clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 24, high_: 1527143887 },      signature: { hash: [Object], keyId: [Object] } } } (node:65062) UnhandledPromiseRejectionWarning: MongoError: The 'cursor' option is required, except for aggregate with the explain argument     ...