projects
/
grml-tips.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added tag 0.3.30 for changeset ffd28a4544e2
[grml-tips.git]
/
grml_tips
diff --git
a/grml_tips
b/grml_tips
index
1ed3439
..
529b289
100644
(file)
--- a/
grml_tips
+++ b/
grml_tips
@@
-704,9
+704,9
@@
Write back the guessed table:
Develop, test and use exploit code with the Metasploit Framework:
cd /tmp
Develop, test and use exploit code with the Metasploit Framework:
cd /tmp
-wget http://
www.metasploit.com/tools/framework-2.7-snapshot
.tar.gz
-unp framework-
2.7-snapshot
.tar.gz
-cd framework
*
+wget http://
framework-mirrors.metasploit.com/msf/downloader/framework-3.0
.tar.gz
+unp framework-
3.0
.tar.gz
+cd framework
-3.0
./msfcli
--
Useful documentation:
./msfcli
--
Useful documentation:
@@
-2077,10
+2077,13
@@
xfs without vol_id:
# xfs_admin -l /dev/sda1
reiserfs without vol_id:
# xfs_admin -l /dev/sda1
reiserfs without vol_id:
-# debugreiserfs /dev/sda1 | grep UUID
+# debugreiserfs /dev/sda1 | grep -i label
+
+jfs without vol_id:
+# jfs_tune -l /dev/sda1 | grep -i label
reiser4 without vol_id:
reiser4 without vol_id:
-# debugfs.reiser4 /dev/sda1 | grep
uuid
+# debugfs.reiser4 /dev/sda1 | grep
-i label
--
Check filesystem's UUID:
--
Check filesystem's UUID:
@@
-2088,24
+2091,25
@@
generic way:
# vol_id -u /dev/sda1
ext2/3 without vol_id:
# vol_id -u /dev/sda1
ext2/3 without vol_id:
-# dumpe2fs /dev/sda1 | grep UUID
+# dumpe2fs /dev/sda1 | grep
-i
UUID
xfs without vol_id:
# xfs_admin -u /dev/sda1
reiserfs without vol_id:
xfs without vol_id:
# xfs_admin -u /dev/sda1
reiserfs without vol_id:
-# debugreiserfs /dev/sda1 | grep
LABEL
+# debugreiserfs /dev/sda1 | grep
-i UUID
reiser4 without vol_id:
reiser4 without vol_id:
-# debugfs.reiser4 /dev/sda1 | grep
label
+# debugfs.reiser4 /dev/sda1 | grep
-i UUID
--
--
-Change a
FS-
LABEL:
+Change a
filesystem's
LABEL:
swap:
# mkswap -L $LABEL /dev/sda1
ext2/ext3:
# e2label /dev/sda1 $LABEL
swap:
# mkswap -L $LABEL /dev/sda1
ext2/ext3:
# e2label /dev/sda1 $LABEL
+# tune2fs -L $LABEL /dev/sda1
reiserfs:
# reiserfstune -l $LABEL /dev/sda1
reiserfs:
# reiserfstune -l $LABEL /dev/sda1
@@
-2121,7
+2125,7
@@
fat/vfat:
# mlabel -s i:$LABEL
ntfs:
# mlabel -s i:$LABEL
ntfs:
-# ntfslabel
/dev/sda1
/dev/sda1
+# ntfslabel
$LABEL
/dev/sda1
--
Disable pdiffs feature of APT:
--
Disable pdiffs feature of APT:
@@
-2496,7
+2500,11
@@
Configuration options relevant on harddisk installation:
# tzconfig
which adjusts /etc/timezone and /etc/localtime according
# tzconfig
which adjusts /etc/timezone and /etc/localtime according
- to the provided information.
+ to the provided information. Running:
+
+ # dpkg-reconfigure tzdata
+
+ might be useful as well.
* /etc/default/rcS: set variable UTC according to your needs,
whether your system clock is set to UTC (UTC='yes') or
* /etc/default/rcS: set variable UTC according to your needs,
whether your system clock is set to UTC (UTC='yes') or
@@
-2542,3
+2550,8
@@
Further information:
http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html
http://wiki.debian.org/TimeZoneChanges
--
http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html
http://wiki.debian.org/TimeZoneChanges
--
+Recorder shellscript session using script:
+
+% script -t 2>~/upgrade.time -a ~/upgrade.script
+% scriptreplay ~/upgrade.time ~/upgrade.script
+--