From 88ad431d4bef94a816b4a1031fb5a62d4bd8a0d7 Mon Sep 17 00:00:00 2001
From: Silvino Silva
- This is part of the Tribu System Documentation.
- Copyright (C) 2020
- Tribu Team.
+ This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
See the file Gnu Free Documentation License
for copying conditions.
-
-
diff --git a/dev/c/src/basic/Makefile b/dev/c/src/basic/Makefile
index f165c15..88f7890 100644
--- a/dev/c/src/basic/Makefile
+++ b/dev/c/src/basic/Makefile
@@ -1,7 +1,7 @@
CC=gcc
CFLAGS=-Wall
-basic-c: main.o basic.o
+shell: shell.c
clean:
- rm -f *.o basic-c
+ rm -f *.o shell
diff --git a/dev/c/src/basic/shell.c b/dev/c/src/basic/shell.c
new file mode 100644
index 0000000..addc8a7
--- /dev/null
+++ b/dev/c/src/basic/shell.c
@@ -0,0 +1,57 @@
+#include
- $ tar xf linux-4.9.48.tar.xz - $ cd linux-4.9.48 + $ tar xf linux-4.9.258.tar.xz + $ cd linux-4.9.258
Default configuration disable some security configurations that allow us to debug (random memory - layout).
+ layout KALSR), CONFIG_COMPAT_BRK don't randomize + position of the programs (randomize_va_space) useful when + debugging a program (tracing). + Configuration flags to enable; + +And to disable;
+ +This changes can be achieved by creating a config-fragment and then + merge it with the configuration.
- $ make x86_64_defconfig + $ cat <<EOF >.config-fragment + CONFIG_64BIT=y + CONFIG_DEBUG_KERNEL=y + CONFIG_HAVE_ARCH_KGDB=y + CONFIG_COMPAT_BRK=y + CONFIG_FTRACE=y + CONFIG_PRINTK=y + CONFIG_BLK_DEV_INITRD=y + CONFIG_BINFMT_ELF=y + CONFIG_TTY=y + CONFIG_DEBUG_INFO=y + CONFIG_DEBUG_INFO_DWARF4=y + CONFIG_GDB_SCRIPTS=y + CONFIG_READABLE_ASM=y + CONFIG_FRAME_POINTER=y + CONFIG_KGDB=y + CONFIG_KGDB_LOW_LEVEL_TRAP=y + CONFIG_EARLY_PRINTK=y + CONFIG_CC_OPTIMIZE_FOR_SIZE=n + EOF-
Enable CONFIG_DEBUG_INFO, CONFIG_DEBUG_INFO_DWARF4 - and CONFIG_GDB_SCRIPTS in the kernel;
+Create a tiny config;
- make x86_64_defconfig - cat <<EOF >.config-fragment - CONFIG_DEBUG_INFO=y - CONFIG_DEBUG_KERNEL=y - CONFIG_GDB_SCRIPTS=y - EOF - ./scripts/kconfig/merge_config.sh .config .config-fragment + $ make ARCH=x86_64 tinyconfig-
Check or change to your needs the configuration;
+Merge config with the following script;
+ ++ $ ./scripts/kconfig/merge_config.sh .config .config-fragment ++ +
Check or change the configuration according to your needs;
+$ make nconfig@@ -138,7 +190,7 @@ -ex "file vmlinux" \ -ex 'set arch i386:x86-64:intel' \ -ex 'target remote localhost:1234' \ - -ex 'break start_kernel' \ + -ex 'hbreak start_kernel' \ -ex 'continue' \ -ex 'disconnect' \ -ex 'set arch i386:x86-64' \ @@ -169,6 +221,23 @@ (gdb) +
lx-symbols allows to debug kernel modules, after starting the vm and loading + the module use lx-symbols to load the symbols from all the modules loaded in + the kernel.
+ ++ (gdb) apropos lx + (gdb) lx-symbols ++ +
It's useful to set conditional breakpoints or a break point can be trigger + by unrelated tasks, example of a break point on do_exit function but only by + the process with pid 1;
+ ++ (gdb) br do_exit if $lx_current()->pid == 1 ++ C Index
This is part of the LeetIO System Documentation.
diff --git a/openbsd/conf/skel/.Xdefaults b/openbsd/conf/skel/.Xdefaults
index 8594a7c..2f7b5bc 100644
--- a/openbsd/conf/skel/.Xdefaults
+++ b/openbsd/conf/skel/.Xdefaults
@@ -1,6 +1,2 @@
! $OpenBSD: dot.Xdefaults,v 1.3 2014/07/10 10:22:59 jasper Exp $
XTerm*loginShell:true
-XTerm*vt100.faceName: terminus:pixelsize=14
-XTerm*vt100.scrollBar: false
-*.foreground: #bbbbbb
-*.background: #222222
diff --git a/openbsd/conf/skel/.Xresources b/openbsd/conf/skel/.Xresources
new file mode 100644
index 0000000..46b58d2
--- /dev/null
+++ b/openbsd/conf/skel/.Xresources
@@ -0,0 +1,25 @@
+XTerm*faceName:DeJavuMono
+XTerm*faceSize:11
+XTerm*allowBoldFonts:false
+XTerm*scrollBar:false
+XTerm*loginShell:true
+XTerm*eightBitInput:false
+XTerm*internalBorder:2
+XTerm*foreground:white
+XTerm*background:black
+XTerm*color0:#2e3436
+XTerm*color8:#888A85
+XTerm*color1:#cc0000
+XTerm*color9:#ef2929
+XTerm*color2:#4e9a06
+XTerm*color10:#8ae234
+XTerm*color3:#edd400
+XTerm*color11:#fce94f
+XTerm*color4:#3465a4
+XTerm*color12:#729fcf
+XTerm*color5:#92659a
+XTerm*color13:#c19fbe
+XTerm*color6:#07c7ca
+XTerm*color14:#63e9e9
+XTerm*color7:#d3d7cf
+XTerm*color15:#eeeeee
diff --git a/openbsd/conf/skel/.kshrc b/openbsd/conf/skel/.kshrc
index 9c83cd7..7ce4d45 100644
--- a/openbsd/conf/skel/.kshrc
+++ b/openbsd/conf/skel/.kshrc
@@ -2,4 +2,5 @@
alias glog='git log --stat --decorate'; export glog
alias gloga='git log --graph --abbrev-commit --decorate --date=relative --all'; export gloga
-
+# When dealing with CVS in ports
+export CVSROOT="anoncvs@anoncvs.fr.openbsd.org:/cvs"
diff --git a/openbsd/conf/skel/.lynx.cfg b/openbsd/conf/skel/.lynx.cfg
new file mode 100644
index 0000000..35e51bb
--- /dev/null
+++ b/openbsd/conf/skel/.lynx.cfg
@@ -0,0 +1,5 @@
+#INCLUDE:~./lynx.cfg for COLOR VIEWER KEYMAP STARTFILE DEFAULT_INDEX_FILE
+STARTFILE:gopher://localhost
+#HELPFILE:https://lynx.invisible-island.net/lynx_help/lynx_help_main.html
+#.ex
+#DEFAULT_INDEX_FILE:http://scout.wisc.edu/
diff --git a/openbsd/conf/skel/.lynxrc b/openbsd/conf/skel/.lynxrc
new file mode 100644
index 0000000..a28eaa1
--- /dev/null
+++ b/openbsd/conf/skel/.lynxrc
@@ -0,0 +1,333 @@
+# Lynx User Defaults File
+#
+# This file contains options saved from the Lynx Options Screen (normally
+# with the 'o' key). To save options with that screen, you must select the
+# checkbox:
+# Save options to disk
+#
+# You must then save the settings using the link on the line above the
+# checkbox:
+# Accept Changes
+#
+# You may also use the command-line option "-forms_options", which displays
+# the simpler Options Menu instead. Save options with that using the '>' key.
+#
+# There is normally no need to edit this file manually, since the defaults
+# here can be controlled from the Options Screen, and the next time options
+# are saved from the Options Screen this file will be completely rewritten.
+# You have been warned...
+#
+# If you are looking for the general configuration file - it is normally
+# called "lynx.cfg". It has different content and a different format.
+# It is not this file.
+
+# accept_all_cookies allows the user to tell Lynx to automatically
+# accept all cookies if desired. The default is "FALSE" which will
+# prompt for each cookie. Set accept_all_cookies to "TRUE" to accept
+# all cookies.
+accept_all_cookies=off
+
+# anonftp_password allows the user to tell Lynx to use the personal
+# email address as the password for anonymous ftp. If no value is given,
+# Lynx will use the personal email address. Set anonftp_password
+# to a different value if you choose.
+anonftp_password=
+
+# bookmark_file specifies the name and location of the default bookmark
+# file into which the user can paste links for easy access at a later
+# date.
+bookmark_file=lynx_bookmarks.html
+
+# If case_sensitive_searching is "on" then when the user invokes a search
+# using the 's' or '/' keys, the search performed will be case sensitive
+# instead of case INsensitive. The default is usually "off".
+case_sensitive_searching=off
+
+# The character_set definition controls the representation of 8 bit
+# characters for your terminal. If 8 bit characters do not show up
+# correctly on your screen you may try changing to a different 8 bit
+# set or using the 7 bit character approximations.
+# Current valid characters sets are:
+# Western (ISO-8859-1)
+# 7 bit approximations (US-ASCII)
+# Western (ISO-8859-15)
+# Western (cp850)
+# Western (windows-1252)
+# IBM PC US codepage (cp437)
+# DEC Multinational
+# Macintosh (8 bit)
+# NeXT character set
+# HP Roman8
+# Chinese
+# Japanese (EUC-JP)
+# Japanese (Shift_JIS)
+# Korean
+# Taipei (Big5)
+# Vietnamese (VISCII)
+# Transparent
+# Eastern European (ISO-8859-2)
+# Eastern European (cp852)
+# Eastern European (windows-1250)
+# Latin 3 (ISO-8859-3)
+# Latin 4 (ISO-8859-4)
+# Baltic Rim (ISO-8859-13)
+# Baltic Rim (cp775)
+# Baltic Rim (windows-1257)
+# Cyrillic (ISO-8859-5)
+# Cyrillic (cp866)
+# Cyrillic (windows-1251)
+# Cyrillic (KOI8-R)
+# Arabic (ISO-8859-6)
+# Arabic (cp864)
+# Arabic (windows-1256)
+# Celtic (ISO-8859-14)
+# Greek (ISO-8859-7)
+# Greek (cp737)
+# Greek2 (cp869)
+# Greek (windows-1253)
+# Hebrew (ISO-8859-8)
+# Hebrew (cp862)
+# Hebrew (windows-1255)
+# Turkish (ISO-8859-9)
+# Turkish (cp857)
+# North European (ISO-8859-10)
+# UNICODE (UTF-8)
+# RFC 1345 w/o Intro
+# RFC 1345 Mnemonic
+# Ukrainian Cyrillic (cp866u)
+# Ukrainian Cyrillic (KOI8-U)
+# Cyrillic-Asian (PT154)
+character_set=Western (ISO-8859-1)
+
+# cookie_accept_domains and cookie_reject_domains are comma-delimited
+# lists of domains from which Lynx should automatically accept or reject
+# all cookies. If a domain is specified in both options, rejection will
+# take precedence. The accept_all_cookies parameter will override any
+# settings made here.
+cookie_accept_domains=
+
+# cookie_file specifies the file from which to read persistent cookies.
+# The default is ~/.lynx_cookies.
+cookie_file=
+
+# cookie_loose_invalid_domains, cookie_strict_invalid_domains, and
+# cookie_query_invalid_domains are comma-delimited lists of which domains
+# should be subjected to varying degrees of validity checking. If a
+# domain is set to strict checking, strict conformance to RFC2109 will
+# be applied. A domain with loose checking will be allowed to set cookies
+# with an invalid path or domain attribute. All domains will default to
+# querying the user for an invalid path or domain.
+cookie_loose_invalid_domains=
+
+cookie_query_invalid_domains=
+
+cookie_reject_domains=
+
+cookie_strict_invalid_domains=
+
+# If emacs_keys is to "on" then the normal EMACS movement keys:
+# ^N = down ^P = up
+# ^B = left ^F = right
+# will be enabled.
+emacs_keys=off
+
+# file_editor specifies the editor to be invoked when editing local files
+# or sending mail. If no editor is specified, then file editing is disabled
+# unless it is activated from the command line, and the built-in line editor
+# will be used for sending mail.
+file_editor=vim
+
+# The file_sorting_method specifies which value to sort on when viewing
+# file lists such as FTP directories. The options are:
+# BY_FILENAME -- sorts on the name of the file
+# BY_TYPE -- sorts on the type of the file
+# BY_SIZE -- sorts on the size of the file
+# BY_DATE -- sorts on the date of the file
+file_sorting_method=BY_FILENAME
+
+# If keypad_mode is set to "NUMBERS_AS_ARROWS", then the numbers on
+# your keypad when the numlock is on will act as arrow keys:
+# 8 = Up Arrow
+# 4 = Left Arrow 6 = Right Arrow
+# 2 = Down Arrow
+# and the corresponding keyboard numbers will act as arrow keys,
+# regardless of whether numlock is on.
+# If keypad_mode is set to "LINKS_ARE_NUMBERED", then numbers will
+# appear next to each link and numbers are used to select links.
+# If keypad_mode is set to "LINKS_AND_FORM_FIELDS_ARE_NUMBERED", then
+# numbers will appear next to each link and visible form input field.
+# Numbers are used to select links, or to move the "current link" to a
+# form input field or button. In addition, options in popup menus are
+# indexed so that the user may type an option number to select an option in
+# a popup menu, even if the option isn't visible on the screen. Reference
+# lists and output from the list command also enumerate form inputs.
+# NOTE: Some fixed format documents may look disfigured when
+# "LINKS_ARE_NUMBERED" or "LINKS_AND_FORM_FIELDS_ARE_NUMBERED" are
+# enabled.
+keypad_mode=LINKS_ARE_NOT_NUMBERED
+
+# lineedit_mode specifies the key binding used for inputting strings in
+# prompts and forms. If lineedit_mode is set to "Default Binding" then
+# the following control characters are used for moving and deleting:
+#
+# Prev Next Enter = Accept input
+# Move char: <- -> ^G = Cancel input
+# Move word: ^P ^N ^U = Erase line
+# Delete char: ^H ^R ^A = Beginning of line
+# Delete word: ^B ^F ^E = End of line
+#
+# Current lineedit modes are:
+# Default Binding
+# Alternate Bindings
+# Bash-like Bindings
+lineedit_mode=Default Binding
+
+# The following allow you to define sub-bookmark files and descriptions.
+# The format is multi_bookmark OpenBSD is a Unix system forked from NetBSD with the highest coding standards, as such there is no space for deprecated code, code is constantly audited, and, all the procedures that goes along with high software quality project such as documentation.
+ This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
+ See the file Gnu Free Documentation License
+ for copying conditions. OpenBSD bsd.rd is ram file system meant for installation or recovery procedures; Reboot machine and press c on grub menu, and set partition root, kernel location and boot, example; Press enter and follow the instructions, OpenBSD installation is known to be one of the most easy of all operating systems. Read OpenBSD documentation. Don't enable xenodm, enable after install and post install procedures. Don't skip network configuration, it will need to fetch updates and synchronize clock. Don't skip user creation, will be default administrator When formatting the disk select auto and then resize of auto created partitions that shrink the last one (home). After install it will run syspatch and fw_update. After install reboot, by default it will run syspatch and fw_updateo to check and install updates. Install your favorite tools, example of a minimal setup; User created during install is part of wheel group by default, copy /etc/example/doas.conf to /etc/ to enable doas command; Copy skeleton files; Add regular user not part of wheel group This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
+ See the file Gnu Free Documentation License
+ for copying conditions. This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
+ See the file Gnu Free Documentation License
+ for copying conditions. This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
+ See the file Gnu Free Documentation License
+ for copying conditions. Quick introduction to Packet Filter Packet filter or pf is the system that controls the flow of packets, read more about it on OpenBSD faq and it's man page. As a service can be enable or disable with rcctl or by pfctl program. PF uses /etc/pf.conf as it's main configuration file, after boot can load more rules from other files if needed. To setup a simple firewall edit /etc/pf.conf, default comes with very simple rules; This configuration allows incoming connections and outgoing connections except for was is commented such as X11 or user that port system runs under when building. After boot PF operation can be managed using pfctl; Documentation tells that when logging a packet a copy of it's header is sent to pflog interface with additional data such as the interface, action pf took, etc. pflog interface allows user space applications to receive this data from the kernel. At boot when pf is enabled pflogd is also started and by default listens on pflog0 and writes to /var/log/pflog file. To read log file; To read log in real time; Simplified syntax for filter rules is; Start changing default configuration by setting "default policy to deny" and to log all packets. Change configuration file to contain first filter rule; To reload configuration file; See what ports are open; Check rules; This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
+ See the file Gnu Free Documentation License
+ for copying conditions. Allows to fetch sources; Allows to build from ports; Create directory xenocara and ports Group wobj should have rwx Repeat above to the other sources, to update the ports tree later: This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
+ See the file Gnu Free Documentation License
+ for copying conditions.OpenBSD
+
+ 1. Install notes
+
+
+
+ 2. System administration
+
+ Documentation Index
+
+ 1.1. Install OpenBSD notes
+
+
+
+ # mount -o loop /srv/qemu/iso/install68.iso /media/
+ # cp /media/6.8/amd64/bsd.rd /boot
+
+
+
+ grub> set root=(hd0,gpt3)
+ grub> kopenbsd /bsd.rd
+ grub> boot
+
+
+ Post-Install
+
+
+ # pkg_add vim git lynx irssi
+ # pkg_add xsel spectrwm
+
+
+
+ # cp /etc/examples/doas.conf /etc/
+
+
+
+ # cp -r ~/doc/openbsd/conf/skel /etc/skel
+
+
+
+ # useradd -m user_name
+
+
+ X
+
+
+ ~/.Xresources
+ XTerm*faceName:DeJavuMono
+ XTerm*faceSize:11
+ XTerm*allowBoldFonts:false
+ XTerm*scrollBar:false
+ XTerm*loginShell:true
+ XTerm*eightBitInput:false
+ XTerm*internalBorder:2
+ XTerm*foreground:white
+ XTerm*background:black
+ XTerm*color0:#2e3436
+ XTerm*color8:#888A85
+ XTerm*color1:#cc0000
+ XTerm*color9:#ef2929
+ XTerm*color2:#4e9a06
+ XTerm*color10:#8ae234
+ XTerm*color3:#edd400
+ XTerm*color11:#fce94f
+ XTerm*color4:#3465a4
+ XTerm*color12:#729fcf
+ XTerm*color5:#92659a
+ XTerm*color13:#c19fbe
+ XTerm*color6:#07c7ca
+ XTerm*color14:#63e9e9
+ XTerm*color7:#d3d7cf
+ XTerm*color15:#eeeeee
+
+
+
+ ~/.xsession
+ export ENV=$HOME/.kshrc
+ xrdb -merge "$HOME/.Xresources"
+ spectrwm
+
+
+ Mouse tap
+
+
+ libernaut# wsconsctl mouse.tp.tapping=1
+ mouse.tp.tapping -> 1
+ libernaut# cat /etc/wsconsctl.conf
+ mouse.tp.tapping=1
+ libernaut#
+
+
+ OpenBSD Index
+ 2.0. Network
+
+
+ # ifconfig iwn0 nwid ID wpakey pass
+
+
+ OpenBSD Index
+ Partitions
+
+
+ fdisk
+ dislabel
+ newfs
+ sysctl hw.disknames
+
+
+ OpenBSD Index
+ 1.1. Install OpenBSD notes
+
+ Packet filter
+
+ Configuration
+
+
+ # $OpenBSD: pf.conf,v 1.55 2017/12/03 20:40:04 sthen Exp $
+ #
+ # See pf.conf(5) and /etc/examples/pf.conf
+
+ set skip on lo
+
+ block return # block stateless traffic
+ pass # establish keep-state
+
+ # By default, do not permit remote connections to X11
+ block return in on ! lo0 proto tcp to port 6000:6010
+
+ # Port build user does not need network
+ block return out log proto {tcp udp} user _pbuild
+
+
+ Control
+
+
+ pfctl -f /etc/pf.conf Load the pf.conf file
+ pfctl -nf /etc/pf.conf Parse the file, but don't load it
+ pfctl -sr Show the current ruleset
+ pfctl -ss Show the current state table
+ pfctl -si Show filter stats and counters
+ pfctl -sa Show EVERYTHING it can show
+
+
+ Logs
+
+
+ # tcpdum -n -e -ttt -r /var/log/pflog
+
+
+
+ # tcpdump -n -e -ttt -i pflog0
+
+
+
+ Simple firewall
+
+
+ action [direction] [log] [quick] [on interface] [af]
+ [proto protocol] [from src_addr [port src_port]]
+ [to dst_addr [port dst_port]] [flags tcp_flags] [state]
+
+
+
+ int_if = "re0"
+ lan_net = "10.0.0.0/24"
+
+ set skip on lo
+
+ # scrub incoming packets
+ match in all scrub (no-df)
+
+ set block-policy drop # block silenty
+ block drop log all # block and log everything
+
+ # activate spoofing protection for all interfaces
+ block in quick from urpf-failed
+
+ # allow out dns
+ pass out on $int_if proto udp to 10.0.0.254 port domain
+
+ # allow out ntp
+ pass out on $int_if proto udp to any port ntp
+
+ # allow out https
+ pass out on $int_if proto tcp to any port 443
+
+ # allow out ssh
+ pass out on $int_if proto tcp to any port { 22, 2222 }
+
+ # allow in ssh
+ pass in log on $int_if proto tcp from any to 10.0.0.10 port 22
+
+ # do not permit remote connections to X11
+ block in on ! lo0 proto tcp to port 6000:6010
+
+ # port build user does not need network
+ block out log proto {tcp udp} user _pbuild
+
+
+
+ # pfctl -f /etc/pf.conf
+
+
+
+ # netstat -na -f inet | grep LISTEN
+
+
+
+ # pfctl -sr
+
+
+ OpenBSD Index
+ 2.1. Sources
+
+
+ # usermod -G wsrc exampleuser
+
+
+
+ # usermod -G wobj exampleuser
+
+
+
+ cd /usr
+ mkdir -p xenocara ports
+ chgrp wsrc xenocara ports
+ chmod 775 xenocara ports
+
+
+
+ /usr/obj
+
+
+ Get sources
+
+
+ ftp https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/{ports.tar.gz,SHA256.sig}
+
+signify -Cp /etc/signify/openbsd-$(uname -r | cut -c 1,3)-base.pub -x SHA256.sig ports.tar.gz
+
+
+
+ $ cd /usr/src
+ $ tar xzf ~/src.tar.gz
+ $ tar xzf ~/sys.tar.gz
+ $ cd /usr
+ $ tar xzf ~/ports.tar.gz
+ $ cd /usr/xenocara
+ $ tar xzf ~/xenocara.tar.gz
+
+
+
+
+ echo 'export CVSROOT="anoncvs@anoncvs.fr.openbsd.org:/cvs"' >> .kshrc
+ $ cd /usr/ports
+ $ cvs -d anoncvs@anoncvs.fr.openbsd.org:/cvs -q up -Pd -rOPENBSD_6_8
+
+
+
+ $ cd /usr/ports
+ $ cvs -q up -Pd -rOPENBSD_6_8
+
+
+ OpenBSD Index
+
- $ qemu-img create -f qcow2 crux-img.qcow2 15G + $ qemu-img create -f qcow2 crux-img.qcow2 20G
@@ -89,12 +85,20 @@Use /dev/mapper/$(name_of_device) to assign correct blocks;
++ pvcreate /dev/mapper/${DEV_NAME}p4 + vgcreate vg_system /dev/mapper/${DEV_NAME}p4 + lvcreate -L 15G -n lv_root vg_system + lvcreate -L 2G -n lv_var vg_system + lvcreate -l 100%FREE -n lv_home vg_system ++mkfs.fat -F 32 /dev/mapper/${DEV_NAME}p2 mkfs.ext4 /dev/mapper/${DEV_NAME}p3 - mkfs.ext4 /dev/mapper/${DEV_NAME}p4 - mkfs.ext4 /dev/mapper/${DEV_NAME}p5 - pvcreate /dev/mapper/${DEV_NAME}p6 + mkfs.ext4 /dev/vg_system/lv_root + mkfs.ext4 /dev/vg_system/lv_var + mkfs.ext4 /dev/vg_system/lv_homeRead lvm documentation on how to setup @@ -103,7 +107,7 @@
Mount partition;
- mount /dev/mapper/${DEV_NAME}p4 $CHROOT + mount /dev/vg_system/ mkdir -p $CHROOT/proc mkdir -p $CHROOT/sys mkdir -p $CHROOT/dev diff --git a/tools/tar.html b/tools/tar.html index 32fe945..02c7c73 100644 --- a/tools/tar.html +++ b/tools/tar.html @@ -15,7 +15,7 @@To create a simple compressed tar;
- $ tar -czvf tar_name.tar.gz /path/to/archive + $ tar -czpvf tar_name.tar.gz /path/to/archiveScript -- cgit 1.4.1-2-gfad0