diff --git a/.obsidian/app.json b/.obsidian/app.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.obsidian/app.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.obsidian/appearance.json b/.obsidian/appearance.json new file mode 100644 index 0000000..c8c365d --- /dev/null +++ b/.obsidian/appearance.json @@ -0,0 +1,3 @@ +{ + "accentColor": "" +} \ No newline at end of file diff --git a/.obsidian/core-plugins-migration.json b/.obsidian/core-plugins-migration.json new file mode 100644 index 0000000..5c13490 --- /dev/null +++ b/.obsidian/core-plugins-migration.json @@ -0,0 +1,29 @@ +{ + "file-explorer": true, + "global-search": true, + "switcher": true, + "graph": true, + "backlink": true, + "canvas": true, + "outgoing-link": true, + "tag-pane": true, + "page-preview": true, + "daily-notes": true, + "templates": true, + "note-composer": true, + "command-palette": true, + "slash-command": false, + "editor-status": true, + "bookmarks": true, + "markdown-importer": false, + "zk-prefixer": false, + "random-note": false, + "outline": true, + "word-count": true, + "slides": false, + "audio-recorder": false, + "workspaces": false, + "file-recovery": true, + "publish": false, + "sync": false +} \ No newline at end of file diff --git a/.obsidian/core-plugins.json b/.obsidian/core-plugins.json new file mode 100644 index 0000000..9405bfd --- /dev/null +++ b/.obsidian/core-plugins.json @@ -0,0 +1,20 @@ +[ + "file-explorer", + "global-search", + "switcher", + "graph", + "backlink", + "canvas", + "outgoing-link", + "tag-pane", + "page-preview", + "daily-notes", + "templates", + "note-composer", + "command-palette", + "editor-status", + "bookmarks", + "outline", + "word-count", + "file-recovery" +] \ No newline at end of file diff --git a/.obsidian/hotkeys.json b/.obsidian/hotkeys.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.obsidian/hotkeys.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json new file mode 100644 index 0000000..87ee816 --- /dev/null +++ b/.obsidian/workspace.json @@ -0,0 +1,167 @@ +{ + "main": { + "id": "683db9948478d0f5", + "type": "split", + "children": [ + { + "id": "a905c00f12ba46a8", + "type": "tabs", + "children": [ + { + "id": "9dc0c2825057834f", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "README.md", + "mode": "source", + "source": false + } + } + } + ] + } + ], + "direction": "vertical" + }, + "left": { + "id": "7e868bf1b448074e", + "type": "split", + "children": [ + { + "id": "8fca1960ef31b421", + "type": "tabs", + "children": [ + { + "id": "25fbe0fcd9c25fd0", + "type": "leaf", + "state": { + "type": "file-explorer", + "state": { + "sortOrder": "alphabetical" + } + } + }, + { + "id": "dff4013cf8dfedc3", + "type": "leaf", + "state": { + "type": "search", + "state": { + "query": "", + "matchingCase": false, + "explainSearch": false, + "collapseAll": false, + "extraContext": false, + "sortOrder": "alphabetical" + } + } + }, + { + "id": "83bfd13d38d5b76d", + "type": "leaf", + "state": { + "type": "bookmarks", + "state": {} + } + } + ] + } + ], + "direction": "horizontal", + "width": 300 + }, + "right": { + "id": "d0b0379d5ff97957", + "type": "split", + "children": [ + { + "id": "2f341c12d53e65aa", + "type": "tabs", + "children": [ + { + "id": "b32b580e05d21b5c", + "type": "leaf", + "state": { + "type": "backlink", + "state": { + "file": "README.md", + "collapseAll": false, + "extraContext": false, + "sortOrder": "alphabetical", + "showSearch": false, + "searchQuery": "", + "backlinkCollapsed": false, + "unlinkedCollapsed": true + } + } + }, + { + "id": "bbfc208669b9169d", + "type": "leaf", + "state": { + "type": "outgoing-link", + "state": { + "file": "README.md", + "linksCollapsed": false, + "unlinkedCollapsed": true + } + } + }, + { + "id": "621cfddeb8f85c0a", + "type": "leaf", + "state": { + "type": "tag", + "state": { + "sortOrder": "frequency", + "useHierarchy": true + } + } + }, + { + "id": "4d5cce8fb3df8ab2", + "type": "leaf", + "state": { + "type": "outline", + "state": { + "file": "README.md" + } + } + } + ] + } + ], + "direction": "horizontal", + "width": 300, + "collapsed": true + }, + "left-ribbon": { + "hiddenItems": { + "switcher:Open quick switcher": false, + "graph:Open graph view": false, + "canvas:Create new canvas": false, + "daily-notes:Open today's daily note": false, + "templates:Insert template": false, + "command-palette:Open command palette": false + } + }, + "active": "9dc0c2825057834f", + "lastOpenFiles": [ + "Pasted image 20230516121302.png", + "README.md", + "img/img.vi.png", + "Pasted image 20230516120949.png", + "img/img_v.png", + "img/img_iv.png", + "example.png.md", + "img/img_iii.png", + "img/img_ii.png", + "img/img_i.png", + "img/logo.png", + "img", + "db.sqlite3-journal", + "logo.png.md", + "logo.png" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index db7c7ed..697a37e 100644 --- a/README.md +++ b/README.md @@ -1 +1,43 @@ -# danixfs \ No newline at end of file + +
+ + +* Author: Vinicius F. da Silva +* Version 0.1 +* Released: 2023 + +A very simple subsystem builder! + +The Danixfs is a root filesystem management! Build a Alpine subsystem and pre install +essentials packages and compiers from languanges choice by user: + +Avaliable system arguments: + +* "clike" : Build a C/C++ environment, installing from template with cpp, g++ and clang compilers + + +# Image: + +#### Building a clike environment + +![](./img/img_i.png) +![](./img/img_ii.png) +![](./img/img_iii.png) +### System Environments + +![[img_iv.png]] +### Environments Snapthots + +![[img_v.png]] + +# Run Danix + +```shell +$ sudo make config +``` + +```shell +$ sudo python main.py -h +``` + +![[img.vi.png]] \ No newline at end of file diff --git a/danix/db/models.py b/danix/db/models.py index 3f598fc..686d103 100644 --- a/danix/db/models.py +++ b/danix/db/models.py @@ -111,7 +111,7 @@ class Environment(models.Model): repeat_template = (6-len(template)) * ' ' - print(f" {name[0:11]}{repeat} {template}{repeat_template} {environment.created} {environment.filesystem_name} Alpine {status_icon} 11 GB") + print(f" {name[0:11]}{repeat} {template}{repeat_template} {environment.created} {environment.filesystem_name} Alpine {status_icon} 211 MB") print("=============================================================================================================================================") @@ -217,9 +217,9 @@ class Snapshot(models.Model): snapshots = Snapshot.objects.all() - print("=========================================================================================================================================") + print("==========================================================================================================================================") print("| SNAPSHOT NAME | ENVIRONMENT NAME | CREATED | LAST SNAPSHOT | SIZE |") - print("=========================================================================================================================================") + print("==========================================================================================================================================") if snapshots.count() > 0: for snapshot in snapshots: @@ -233,7 +233,7 @@ class Snapshot(models.Model): repeated = 14*' ' environment_name = f'Environment Removed 🔴{repeated}' - print(f" {name} {environment_name} {snapshot.created} {lastsnapshot_icon} 11 GB") + print(f" {name} {environment_name} {snapshot.created} {lastsnapshot_icon} 73,5 MB ") print("==========================================================================================================================================") class Meta: diff --git a/img/img.vi.png b/img/img.vi.png new file mode 100644 index 0000000..dbbdd48 Binary files /dev/null and b/img/img.vi.png differ diff --git a/img/img_i.png b/img/img_i.png new file mode 100644 index 0000000..1deba5d Binary files /dev/null and b/img/img_i.png differ diff --git a/img/img_ii.png b/img/img_ii.png new file mode 100644 index 0000000..74a075e Binary files /dev/null and b/img/img_ii.png differ diff --git a/img/img_iii.png b/img/img_iii.png new file mode 100644 index 0000000..85c5e40 Binary files /dev/null and b/img/img_iii.png differ diff --git a/img/img_iv.png b/img/img_iv.png new file mode 100644 index 0000000..fd669e4 Binary files /dev/null and b/img/img_iv.png differ diff --git a/img/img_v.png b/img/img_v.png new file mode 100644 index 0000000..431cc17 Binary files /dev/null and b/img/img_v.png differ diff --git a/img/logo.png b/img/logo.png new file mode 100644 index 0000000..d64712f Binary files /dev/null and b/img/logo.png differ