Skip to content

Commit ebe5f09

Browse files
committed
sync
1 parent d4c6e12 commit ebe5f09

File tree

11 files changed

+71
-20
lines changed

11 files changed

+71
-20
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Includes Linux concepts and utilities that work on Linux, not necessarily in the
5454
1. [blkid](blkid.md)
5555
1. [fdisk](fdisk.md)
5656
1. [FUSE](FUSE.md)
57+
1. [Forensic rm](forensic-rm.md)
5758
1. [fuser](fuser.md)
5859
1. [lsblk](lsblk.md)
5960
1. [fstab](fstab.md)

alternatives.md

+4
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ Strict real time:
2121
Dedicated OSes / firmware:
2222

2323
- <https://en.wikipedia.org/wiki/Rockbox> , music players
24+
25+
Microcontrollers: seems like Linux requires a MMU:
26+
27+
- <https://en.wikipedia.org/wiki/ΜClinux>

font.md

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ TODO what is it.
9595

9696
- <https://www.google.com/fonts> `woff2`.
9797
- <https://fontlibrary.org/> `otf`
98+
- <https://www.gnu.org/software/freefont/>
9899

99100
## Concepts
100101

forensic-rm.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Forensic rm
2+
3+
`rm` only removes files from filesystem indexes, but the data remains in place until the event that another file is written on it, which may take several minutes or hours.
4+
5+
Even after the file data overwritten few times, it is still possible to recover the data using expensive forensic methods (only viable for organizations).
6+
7+
To permanently remove data from hard disk, you must use a tool like shred, which writes certain sequences to the hard disk, making it impossible to recover the data even with forensic methods.
8+
9+
Such operations take a very long time, and are not viable on entire hard disks, so if you serious about clearing a hard disk, mechanical destruction is a better option (open the hard disk case and destroy the disk).
10+
11+
This is specially important for data-centers that are reusing / throwing away data.
12+
13+
- <http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner>
14+
- <http://security.stackexchange.com/questions/5662/is-it-enough-to-only-wipe-a-flash-drive-once/5665#5665>
15+
- <http://security.stackexchange.com/questions/89404/how-do-i-prevent-ssd-file-recovery>
16+
17+
Tools:
18+
19+
- full-disk encryption
20+
- `wipe`
21+
- `shred`
22+
- `sfill`
23+
24+
Physical methods:
25+
26+
- <http://askubuntu.com/a/58697/52975>
27+
28+
## Recover data removed with rm like tools

gimp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ Shortcuts:
115115

116116
- `Ctrl + A + drag`: move the selection elsewhere
117117

118-
- `Ctrl + Shift + V`: open selection as new image
118+
- `Ctrl + Shift + V`: open selection / clipboard as a new image
119119

120120
- `Ctrl + R`: add new rectangle to existing selection

kdevelop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ C / C++ focused, but other languages also supported: <http://developer.kde.org/~
1010

1111
- Vi input mode: Settings > Editing > Vi input mode > Use
1212

13-
## Navigate souce
13+
## Navigate source
1414

1515
- Import existing source: File > Import > CMake. Done. Just works!
1616
- Jump to definition: Ctrl + click.

kernel/code-paths/cow.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# COW
2+
3+
<http://stackoverflow.com/questions/37565750/how-did-linux-implements-cow>:
4+
5+
- `/home/ciro/git/linux/src/arch/x86/mm/fault.c:__do_page_fault` x86 page handling
6+
- major effect: calls the arch agnostic `mm/memory.c:handle_mm_fault`

kernel/source-tree.md

+2
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ Sound code.
227227

228228
Memory management.
229229

230+
`mm/memory.c`: centerpiece of memory management
231+
230232
## IPC
231233

232234
IPC stuff such as semaphores under `sem.c` or message queues under `mqueue.c`.

libreoffice/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ WYSIWYG text editor, tables, image editor, database management.
88

99
How to add new spell checking language: <http://askubuntu.com/questions/72099/how-to-install-a-libreoffice-dictionary-spelling-check-thesaurus>
1010

11+
## Write
12+
13+
How to end a list??
14+
1115
## Calc
1216

1317
Table /spreadsheet editor like Excel.

qemu.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ QEMU has a specific disk format called *qcow2* which allows for further capabili
175175

176176
Boot from given floppy image.
177177

178-
https://github.com/dcloues/os_tutorial can only be run with it.
178+
<https://github.com/dcloues/os_tutorial> can only be run with it.
179179

180180
Must be used when `grub.cfg` uses:
181181

@@ -269,7 +269,7 @@ Pass kernel boot parameters (command line arguments):
269269

270270
-append "init=/dev/sbin panic=1"
271271

272-
## driver
272+
## drive
273273

274274
QEMU 2.3.0 complains with a warning if we don't set `format`, so in this version we have to use:
275275

@@ -288,3 +288,24 @@ Nope, QEMU is just designed to be fast, and performance is not well documented b
288288
- <http://stackoverflow.com/questions/17454955/can-you-check-performance-of-a-program-running-with-qemu-simulator>
289289
- <http://stackoverflow.com/questions/14259542/cycle-accurate-simulation-of-x86-hardware>
290290
- <https://en.wikipedia.org/wiki/Computer_architecture_simulator>
291+
292+
## GPU
293+
294+
- <http://stackoverflow.com/questions/5789418/how-do-i-add-a-virtual-gpu-into-qemu>
295+
- <http://stackoverflow.com/questions/5762039/create-virtual-hardware-kernel-qemu-for-android-emulator-in-order-to-produce-o/5763466#5763466>
296+
297+
## static
298+
299+
Ubuntu 16.04:
300+
301+
sudo apt-get intall qemu-user-static
302+
303+
Usermode emulation. E.g., get a Linux ARM statically linked executable on an x86 machine, then you can run it with:
304+
305+
qemu-arm-static ./executable
306+
307+
QEMU emulates the ISA, and converts system calls to the host arch! Amazing.
308+
309+
`-L` can be used to run with dynamic libraries: <http://stackoverflow.com/questions/16158994/qemu-arm-cant-run-arm-compiled-binary>
310+
311+
qemu-arm-static -L /usr/arm-linux-gnueabihf ./executable

utils.sh

-16
Original file line numberDiff line numberDiff line change
@@ -657,22 +657,6 @@
657657

658658
# -r: recursive. Mandatory for directories. Potentially dangerous.
659659

660-
## recover data removed with rm like tools
661-
662-
# `rm` only removes files from filesystem indexes, but the data remains in place
663-
# until the event that another file is writen on it, which may take severl minutes or hours.
664-
665-
# Even after the file data overwritten few times, it is still possible to recover
666-
# the data using expensive forensic methods (only viable for organizations).
667-
668-
# To permanently remove data from hard disk, you must use a tool like shred,
669-
# which writes certain sequences to the hard disk, making it impossible to
670-
# recover the data even with forensic methods.
671-
672-
# Such operations take a very long time, and are not viable on entire hard disks,
673-
# so if you serious about clearing a hard disk, mechanical desctruction is a better option
674-
# (open the hard disk case and destroy the disk).
675-
676660
## rename
677661

678662
# Mass file regex renaming.

0 commit comments

Comments
 (0)