Saturday, June 29, 2024

install chrome web browser on Ubuntu 18.04 Linux OS

 Today,i have installed Chrome web browser on my laptop. It contains Ubuntu 18.04 Linux Operating System.This OS has Firefox web browser as the default web browser.

I have to refer a web site ,which is not working properly on firefox web browser.So i have to install Chrome web browser.In order to install chrome web browser, I have to do a small workaround.

For the benefits of this blog readers ,i have decide to share this workaround. i have follow below steps to  install chrome web browser.

1.open Ubuntu Terminal

2. In the Terminal i enter below command

sudo nano /etc/apt/sources.list.d/google-chrome.list

 It ask your root password

3.After that  nano text editor will open and from the Editor we have to enter below command

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
 

4.Next save Nano text editor using ctrl + 0 command . Then press enter to confirm. Next press ctrl + x to exit from Nano text editor.

5. After that in  terminal enter below command

wget https://dl.google.com/linux/linux_signing_key.pub

6. After that enter below command in the Terminal to update apt.

sudo apt update 


7.Next run below command in the terminal

sudo apt install google-chrome-stable

8.Now chrome browser successfully installed to your machine.

9. to open the chrome browser you may need to run the below command in the terminal.

google-chrome-stable
 
 
 

Please follow the above steps and please install chrome browser on your Ubuntu OS environment.

Thank you.

 

 

 


 

 


 

 

 

Sunday, June 4, 2023

Motor bike battery - Kajie


 KAJIE is the motor bike battery i used in my Honda Active bike.It's one of the good motorbike battery you can find in Sri Lanka.KAJIE motor bike battery manufacture in Sri Lanka and it's export to lot of countries with in the Asia.


It's really good battery to used for motor bikes. you can buy the battery in Sri Lanka nearly 7000- 8000 LKR price ranges.It can be used nearly  2 to 3 years with out any issue.you do not need to put battery water for this battery.

Wednesday, May 18, 2022

Camunda BPM engine

My Motor bike

 2020 March I brought a new motorbike.It was made in India.It's Honda brand.It is the last motor bike available in Stafford Company.Stafford Motors is the Sri Lankan agent for Honda brand.


This motorbike is small and easy to travel in the colombo city traffic time.It run with 35 km - 40 km per petrol one liter.



Monday, May 2, 2022

Coconut shell charcoal cooker

 In 2022 March ,when our house gas finish,we were unable to buy new gas,due to Sri Lanka economy failure after covid 19 pandamic situation.Then I search for other options.

Then I found this Coconut shell charcoal cooker.

It need 8 kg of cocount shell every week for my home.My home there are 5 members.

It's main row material is coconut shell.

 

We need to create all the curry and once.

Then start the cooker.

It's best option for cooking with out gas.





Friday, December 10, 2021

First Angular Program

 first check whether machine has Angularjs install

 ng --version



ng new hello-world
this will create new project

 

load this web site

ng serve

 

 




Tuesday, September 14, 2021

react js ui and Microsoft Rest api connection

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.app</groupId>
<artifactId>highmaturity</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>highmaturity</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-active-directory-spring-boot-starter</artifactId>
<version>2.1.5</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20180813</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>

<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz-jobs</artifactId>
<version>2.2.1</version>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.3</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.15</version>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-core</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>ui/build/**</include>
<include>static/**</include>
<include>application.properties</include>
<include>logback.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>

<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.6</version>

<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v14.16.0</nodeVersion>
<npmVersion>6.14.11</npmVersion>
<!--<npmDownloadRoot>http://registry.npmjs.org/npm/-/</npmDownloadRoot>-->
<!--<npmRegistryURL>http://registry.npmjs.org/</npmRegistryURL>-->
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
<configuration>
<workingDirectory>src/main/resources/ui</workingDirectory>

</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>

<executions>
<execution>
<id>Copy my react frontend to the static folder of my spring application</id>
<phase>process-resources</phase>

<configuration>
<target>
<copy todir="target/classes/static">
<fileset dir="src/main/resources/ui/build"/>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>

</execution>
</executions>
</plugin>


</plugins>
</build>

</project>