This repository was archived by the owner on Sep 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +61
-16
lines changed Expand file tree Collapse file tree 9 files changed +61
-16
lines changed Original file line number Diff line number Diff line change 8
8
1 . Run ` npx serve ` and go to ` http://localhost:3000 `
9
9
2 . There is no step 2
10
10
11
+ ## :hammer_and_wrench : Update the filesystem
12
+
13
+ 1 . Run the build process in the [ buildroot] ( /packages/buildroot/README.md#getting-started ) package
14
+
15
+ 2 . Synchronize the new filesystem using:
16
+
17
+ ``` bash
18
+ ./scritps/sync.sh
19
+ ```
20
+
21
+ 3 . [ Cold boot and save a new snapshot] ( #cold-boot-and-saving-a-new-snapshot )
22
+
11
23
## :snowflake : Cold boot and saving a new snapshot
12
24
13
25
1 . Go the ` http://localhost:3000?boot=true `
16
28
17
29
3 . Save the state to a file clicking the ` Save state to file ` button
18
30
19
- 4 . Put the state file into the ` state ` folder and compress it:
31
+ 4 . Put the state file into the ` state ` folder and compress it using [ zstd ] ( https://github.com/facebook/zstd ) :
20
32
21
33
``` bash
22
- zstd --ultra -22 state/state .bin && rm state/state .bin
34
+ zstd --ultra -22 state/v86state .bin && rm state/v86state .bin
23
35
```
24
36
25
37
5 . Go to ` http://localhost:3000 ` , instant boot!
26
38
27
- ## :hammer_and_wrench : Update the filesystem
28
-
29
- 1 . Run the build process in the [ buildroot] ( /packages/buildroot/README.md#getting-started ) package
30
-
31
- 2 . Synchronize the new filesystem using:
32
-
33
- ``` bash
34
- ./scritps/sync.sh
35
- ```
36
-
37
- 3 . [ Cold boot and save a new snapshot] ( #cold-boot-and-saving-a-new-snapshot )
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # start postgresql
4
+ #
5
+
6
+ umask 077
7
+
8
+ if [ ! -f /var/lib/pgsql/PG_VERSION ]; then
9
+ echo " Initializing postgresql data base..."
10
+ su - postgres -c ' /usr/bin/pg_ctl initdb -D /var/lib/pgsql'
11
+ echo " done"
12
+ fi
13
+
14
+ start () {
15
+ printf " Starting postgresql: "
16
+ su - postgres -c ' /usr/bin/pg_ctl start -w -D /var/lib/pgsql -l logfile'
17
+ echo " OK"
18
+ }
19
+ stop () {
20
+ printf " Stopping postgresql: "
21
+ su - postgres -c ' /usr/bin/pg_ctl stop -D /var/lib/pgsql -m fast'
22
+ echo " OK"
23
+ }
24
+ restart () {
25
+ stop
26
+ start
27
+ }
28
+
29
+ case " $1 " in
30
+ start)
31
+ start
32
+ ;;
33
+ stop)
34
+ stop
35
+ ;;
36
+ restart|reload)
37
+ restart
38
+ ;;
39
+ * )
40
+ echo " Usage: $0 {start|stop|restart}"
41
+ exit 1
42
+ esac
43
+
44
+ exit $?
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 32
32
document . getElementById ( "terminal" ) . style = '' ;
33
33
}
34
34
35
- const bzimageUrl = "./filesystem/919db13e .bin" ;
35
+ const bzimageUrl = "./filesystem/123ccf58 .bin" ;
36
36
const options = {
37
37
...baseOptions ,
38
38
...( boot ? {
49
49
vga_bios : {
50
50
url : "./bios/vgabios.bin" ,
51
51
} ,
52
- } : { initial_state : { url : "./state/state .bin.zst" } } )
52
+ } : { initial_state : { url : "./state/v86state .bin.zst" } } )
53
53
} ;
54
54
55
55
var emulator = new V86Starter ( options ) ;
You can’t perform that action at this time.
0 commit comments