master
subhra74 2019-07-21 09:49:36 +02:00
parent 1784d8abdc
commit 0591902de1
7 changed files with 997 additions and 1004 deletions

View File

@ -1,10 +1,10 @@
1. Install java and make sure java is in PATH
2. Download the binary archive from https://github.com/subhra74/easy-cloud-shell/releases
2. Download the binary archive from https://github.com/subhra74/linux-web-console/releases
3. Extract the archive to a suitable location and switch to that directory
4. Make file executable with chmod if required
5. Run ./start-cloud-shell.sh (For security reasons do not use root user)
5. Run ./start-web-console.sh (For security reasons do not use root user)
6. Open recent version on Chrome or Firefox and visit https://[your ip address]:8055/ or, on local machine use https://localhost:8055/
7. Ignore any certificate error, appeared due to newly created self signed certificate by easy cloud shell.
7. Ignore any certificate error, appeared due to newly created self signed certificate by the app.
8. Initial credential: admin/admin
Please change default username and password from Settings tab in the app.
Also you can change default port by setting environment variable server.port=<any port number>

View File

@ -1,178 +1,178 @@
<?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 http://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.5.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>webshell</groupId>
<artifactId>app</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>app</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-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.pty4j</groupId>
<artifactId>pty4j</artifactId>
<version>0.9.3</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.jetbrains.pty4j</groupId> -->
<!-- <artifactId>purejavacomm</artifactId> -->
<!-- <version>0.0.11.1</version> -->
<!-- </dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.10.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.10.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.10.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.54</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>5.3.1</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.3.1</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>log4j</groupId> -->
<!-- <artifactId>log4j</artifactId> -->
<!-- <version>1.2.17</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.google.guava</groupId> -->
<!-- <artifactId>guava</artifactId> -->
<!-- <version>27.0-jre</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>log4j</groupId> -->
<!-- <artifactId>log4j</artifactId> -->
<!-- <version>1.2.17</version> -->
<!-- </dependency> -->
<!-- https://mvnrepository.com/artifact/org.jetbrains/annotations -->
<!-- <dependency> -->
<!-- <groupId>org.jetbrains</groupId> -->
<!-- <artifactId>annotations</artifactId> -->
<!-- <version>16.0.3</version> -->
<!-- </dependency> -->
<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.62</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.62</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>1.21</version>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-dist</artifactId>
<version>3.13.3</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-core</artifactId>
<version>3.13.3</version>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-json</artifactId>
<version>3.13.3</version>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-parent</artifactId>
<version>3.13.3</version>
<type>pom</type>
</dependency>
</dependencies>
<repositories>
<repository>
<id>bintray-jetbrains-pty4j</id>
<name>bintray</name>
<url>https://jetbrains.bintray.com/pty4j</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<finalName>cloud-shell</finalName>
</build>
</project>
<?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 http://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.5.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>web-console</groupId>
<artifactId>app</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>app</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-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.pty4j</groupId>
<artifactId>pty4j</artifactId>
<version>0.9.3</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.jetbrains.pty4j</groupId> -->
<!-- <artifactId>purejavacomm</artifactId> -->
<!-- <version>0.0.11.1</version> -->
<!-- </dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.10.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.10.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.10.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.54</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>5.3.1</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.3.1</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>log4j</groupId> -->
<!-- <artifactId>log4j</artifactId> -->
<!-- <version>1.2.17</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.google.guava</groupId> -->
<!-- <artifactId>guava</artifactId> -->
<!-- <version>27.0-jre</version> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>log4j</groupId> -->
<!-- <artifactId>log4j</artifactId> -->
<!-- <version>1.2.17</version> -->
<!-- </dependency> -->
<!-- https://mvnrepository.com/artifact/org.jetbrains/annotations -->
<!-- <dependency> -->
<!-- <groupId>org.jetbrains</groupId> -->
<!-- <artifactId>annotations</artifactId> -->
<!-- <version>16.0.3</version> -->
<!-- </dependency> -->
<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.62</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.62</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>1.21</version>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-dist</artifactId>
<version>3.13.3</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-core</artifactId>
<version>3.13.3</version>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-json</artifactId>
<version>3.13.3</version>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-parent</artifactId>
<version>3.13.3</version>
<type>pom</type>
</dependency>
</dependencies>
<repositories>
<repository>
<id>bintray-jetbrains-pty4j</id>
<name>bintray</name>
<url>https://jetbrains.bintray.com/pty4j</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<finalName>web-console</finalName>
</build>
</project>

View File

@ -1,24 +1,18 @@
package cloudshell.app;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class AppApplicationTests {
@Autowired
private BCryptPasswordEncoder passwordEncoder;
@Test
public void contextLoads() {
System.out.println("Password match: " + passwordEncoder.matches("Starscream@64",
"$2a$10$greBvSdJwMfmrz7Fof0mB.i2oiBNypVeGa9KCBOZ2BPMxXBa3xJUK"));
}
}
package cloudshell.app;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = AppApplicationTests.class)
public class AppApplicationTests {
@Test
public void contextLoads() {
}
}

View File

@ -1,7 +0,0 @@
#/bin/sh
mkdir ~/.easy-cloud-shell
nohup java -jar cloud-shell.jar >$HOME/.easy-cloud-shell/log.txt 2>&1&

4
app/start-web-console.sh Normal file
View File

@ -0,0 +1,4 @@
#/bin/sh
mkdir ~/.linux-web-console
nohup java -jar web-console.jar >$HOME/.linux-web-console/log.txt 2>&1&

View File

@ -23,14 +23,14 @@
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"zone.js": "~0.8.26",
"@ng-bootstrap/ng-bootstrap": "^4.2.0",
"@ng-bootstrap/ng-bootstrap": "^4.2.0",
"@swimlane/ngx-charts": "^12.0.1",
"bootstrap": "^4.3.1",
"chart.js": "^2.8.0",
"font-awesome": "^4.7.0",
"font-awesome": "^4.7.0",
"ng2-ace-editor": "^0.3.9",
"ng2-charts": "2.2.5",
"xterm": "^3.14.5"
"xterm": "^3.14.5"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.12.0",
@ -53,4 +53,4 @@
"tslint": "~5.11.0",
"typescript": "~3.2.2"
}
}
}

File diff suppressed because it is too large Load Diff