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

@ -9,7 +9,7 @@
<version>2.1.5.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>webshell</groupId>
<groupId>web-console</groupId>
<artifactId>app</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>app</name>
@ -172,7 +172,7 @@
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<finalName>cloud-shell</finalName>
<finalName>web-console</finalName>
</build>
</project>

View File

@ -8,17 +8,11 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
@SpringBootTest(classes = AppApplicationTests.class)
public class AppApplicationTests {
@Autowired
private BCryptPasswordEncoder passwordEncoder;
@Test
public void contextLoads() {
System.out.println("Password match: " + passwordEncoder.matches("Starscream@64",
"$2a$10$greBvSdJwMfmrz7Fof0mB.i2oiBNypVeGa9KCBOZ2BPMxXBa3xJUK"));
}
}

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",

View File

@ -452,14 +452,16 @@ export class FilesComponent implements OnInit, OnDestroy {
openInNewTab() {
for (let i = 0; i < this.service.tabs[this.service.selectedTab].files.length; i++) {
if (this.service.tabs[this.service.selectedTab].files[i].selected) {
let path = this.service.tabs[this.service.selectedTab].files[i].path;
let name = this.service.tabs[this.service.selectedTab].files[i].name;
let tab: FolderTab = new FolderTab();
tab.currentDirectory = path;
tab.folderName = name;
tab.files = null;
this.service.newTabListener.next(tab);
break;
if (this.service.tabs[this.service.selectedTab].files[i].type === "Directory") {
let path = this.service.tabs[this.service.selectedTab].files[i].path;
let name = this.service.tabs[this.service.selectedTab].files[i].name;
let tab: FolderTab = new FolderTab();
tab.currentDirectory = path;
tab.folderName = name;
tab.files = null;
this.service.newTabListener.next(tab);
break;
}
}
}
}