From 01e8745e4084c06fd2e8abb645b5c92c0f1bb27b Mon Sep 17 00:00:00 2001
From: Silvino Silva Give it a name, this example we will call it c9; Give it a name, this example we will call it machine; Edit /etc/hosts to contain your hostname and FQDN,
- this example uses c9.core and hive.gnu.systems sub-domain from
+ this example uses machine.example and machine.example.org sub-domain from
afraid.org pointing
to 10.0.0.1 ip; Exim creates a key for you if you just copy exim.conf and start daemon; Create c9 ports; Create port collection; Copy ports from c9-doc/core/ports; Copy ports from doc/core/ports; Copy skeletons from c9-doc/core/conf; Copy skeletons from doc/core/conf; Install collections later documented; Edit /etc/prt-get.conf to activate new collections; Get new ports; If you don't have the port binary package build it; Install dracut;1.2.1. Set hostname and hosts
-
- # hostname c9
+ # hostname machine
# IPv4
127.0.0.1 localhost.localdomain localhost
- 127.0.0.1 c9.core c9
+ 127.0.0.1 machine.example machine
#<ip-address> <hostname.domain.org> <aliases>
- 10.0.0.1 hive.gnu.systems
+ 10.0.0.1 machine.example.org
# IPv6
#::1 ip6-localhost ip6-loopback
@@ -79,9 +79,9 @@
@@ -76,7 +76,7 @@
# The following alias is required by the mail RFCs 2821 and 2822.
# Set it to the address of a HUMAN who deals with this system's mail problems.
- postmaster: c9admin
+ postmaster: machine-admin
# It is also common to set the following alias so that if anybody replies to a
# bounce message from this host, the reply goes to the postmaster.
diff --git a/core/install.html b/core/install.html
index fb1a546..69a82cf 100644
--- a/core/install.html
+++ b/core/install.html
@@ -309,16 +309,16 @@
$ hostname
- c9
+ machine
$ hostname -f
- c9.core
+ machine.example
1.2.2. Set timezone
@@ -263,7 +263,7 @@
FONT=default
KEYMAP=dvorak
TIMEZONE="Europe/Lisbon"
- HOSTNAME=c9
+ HOSTNAME=machine
SYSLOG=sysklogd
SERVICES=(lo iptables wlan crond)
diff --git a/core/exim.html b/core/exim.html
index 23708d2..7e1fd28 100644
--- a/core/exim.html
+++ b/core/exim.html
@@ -22,9 +22,9 @@
- # cp /home/silvino/data/git/c9/c9-doc/core/conf/exim/exim.conf /etc/exim/exim.conf
+ # cp /home/username/data/git/doc/core/conf/exim/exim.conf /etc/exim/exim.conf
# sh /etc/rc.d/exim start
- SSL certificate /etc/ssl/certs/exim.crt with key /etc/ssl/keys/exim.key for host c9.core created
+ SSL certificate /etc/ssl/certs/exim.crt with key /etc/ssl/keys/exim.key for host machine.example created
#
@@ -53,8 +53,8 @@
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
- Common Name (e.g. server FQDN or YOUR name) []:core.privat-server.net
- Email Address []:postmaster@core.privat-server.net
+ Common Name (e.g. server FQDN or YOUR name) []:machine.example.org
+ Email Address []:postmaster@machine.example.org
#
1.1.6. Install extra ports
-
- $ sudo mkdir $CHROOT/usr/ports/c9-ports
+ $ sudo mkdir $CHROOT/usr/ports/machine-ports
-
- $ sudo cp -r ports/* $CHROOT/usr/ports/c9-ports/
+ $ sudo cp -r ports/* $CHROOT/usr/ports/machine-ports/
1.1.7. DNS Resolver
@@ -335,7 +335,7 @@
1.1.9. Basic Skeleton
-
$ sudo cp -R conf/skel $CHROOT/etc/
diff --git a/core/network.html b/core/network.html
index 2b94e50..5913845 100644
--- a/core/network.html
+++ b/core/network.html
@@ -38,7 +38,7 @@
FONT=default
KEYMAP=dvorak
TIMEZONE="Europe/Lisbon"
- HOSTNAME=c9
+ HOSTNAME=machine
SYSLOG=sysklogd
SERVICES=(lo iptables wlan crond)
diff --git a/core/package.html b/core/package.html
index a71946b..e0f8eae 100644
--- a/core/package.html
+++ b/core/package.html
@@ -122,7 +122,7 @@
- $ sudo cp c9-doc/core/conf/ports/* /etc/ports/
+ $ sudo cp doc/core/conf/ports/* /etc/ports/
- $ sudo ports -u c9-ports
+ $ sudo ports -u machine-ports
$ sudo ports -u 6c37-dropin
$ sudo ports -u 6c37
diff --git a/core/ports.html b/core/ports.html
index c377d79..34583d1 100644
--- a/core/ports.html
+++ b/core/ports.html
@@ -97,7 +97,7 @@
;;
esac
- #PKGMK_SOURCE_MIRRORS=(http://hive.gnu.systems/ports/distfiles/)
+ #PKGMK_SOURCE_MIRRORS=(http://machine.example.org/ports/distfiles/)
# PKGMK_SOURCE_DIR="$PWD"
PKGMK_SOURCE_DIR="/usr/ports/distfiles"
# PKGMK_PACKAGE_DIR="$PWD"
diff --git a/core/reboot.html b/core/reboot.html
index 505a889..f7a34d6 100644
--- a/core/reboot.html
+++ b/core/reboot.html
@@ -50,7 +50,7 @@
- # cd /usr/ports/c9-ports/linux-gnu
+ # cd /usr/ports/machine-ports/linux-gnu
# pkgmk -d
@@ -65,7 +65,7 @@
- # cd /usr/ports/c9-ports/dracut
+ # cd /usr/ports/machine-ports/dracut
# pkgmk -d
# pkgadd /usr/ports/packages/dracut#044-2.pkg.tar.gz
diff --git a/core/scripts/setup-core.sh b/core/scripts/setup-core.sh
index 8a85d4a..45bce87 100644
--- a/core/scripts/setup-core.sh
+++ b/core/scripts/setup-core.sh
@@ -1,18 +1,18 @@
#!/bin/bash
# Absolute path to this script,
-# e.g. /home/user/c9-doc/core/scripts/foo.sh
+# e.g. /home/user/doc/core/scripts/foo.sh
SCRIPT=$(readlink -f "$0")
# Absolute path this script is in,
-# e.g. /home/user/c9-doc/core/scripts
+# e.g. /home/user/doc/core/scripts
SCRIPTPATH=$(dirname "$SCRIPT")
# Absolute path to doc section,
-# e.g /home/user/c9-doc/core
+# e.g /home/user/doc/core
DIR_DATA=$(dirname "$SCRIPTPATH");
CHROOT="/mnt"
DATA_CNF="${DIR_DATA}/conf"
-ADMIN_USER="c9admin"
+ADMIN_USER="machine-admin"
ConfirmOrExit()
{
diff --git a/core/sysctl.html b/core/sysctl.html
index 525a6cf..d06afde 100644
--- a/core/sysctl.html
+++ b/core/sysctl.html
@@ -16,7 +16,7 @@
Cyberciti Security Hardening,
Grsecurity and PaX Configuration.
Since kernels on c9-ports have PaX +
Since kernels on machine-ports have PaX and grsecurity, /etc/sysctl.conf can have follow values;
diff --git a/dev/git/index.html b/dev/git/index.html index 4e61822..e23e2a0 100644 --- a/dev/git/index.html +++ b/dev/git/index.html @@ -295,39 +295,39 @@ $ git ls-files --deleted -z | xargs -0 git rm - -Mark all deleted to commit;
+Query last commit that affected current file path
- $ git ls-files --deleted -z | xargs -0 git rm + $ git rev-list -n 1 HEAD -- . + $ git show f000 path/to/file + $ git diff --name-status f000 path/to/file-
Create patch files to target branch/tag/ref;
+Undo a file to specific commit
- $ git format-patch --no-prefix software-v0.0.1 + $ git checkout f000^ -- path/to/file-
Same using diff tool;
+Join multiple commits into single one;
- $ diff orig file > file.patch + $ git log --oneline + $ git rebase -i oldest_commit_to_rewrite-
Query last commit that affected current file path
+Create patch files to target branch/tag/ref;
- $ git rev-list -n 1 HEAD -- . - $ git show f000 path/to/file - $ git diff --name-status f000 path/to/file + $ git format-patch --no-prefix software-v0.0.1-
Undo a file to specific commit
+Same using diff command;
- $ git checkout f000^ -- path/to/file + $ diff orig file > file.patch
Adding a new remote;
- $ git remote add newremotename https://github.com/user/repo.git + $ git remote add newremotename https://machine.example.org/repo.git
Update all branches with remote;
@@ -365,7 +365,6 @@ $ git config --global fetch.prune true -This will prune on fetch or you can keep it manually;
@@ -375,7 +374,7 @@ Development IndexThis is part of the Hive System Documentation. Copyright (C) 2018 - c9 Team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.