From 23dbb9f081630e60381bf696ef41a8e5045197ad Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Fri, 20 Jul 2018 18:48:04 +0100 Subject: added script to setup x --- tools/scripts/setup-x.sh | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 tools/scripts/setup-x.sh (limited to 'tools/scripts') diff --git a/tools/scripts/setup-x.sh b/tools/scripts/setup-x.sh new file mode 100644 index 0000000..262b4dd --- /dev/null +++ b/tools/scripts/setup-x.sh @@ -0,0 +1,96 @@ +#!/bin/bash + +# Absolute path to this script, e.g. /home/user/bin/foo.sh +SCRIPT=$(readlink -f "$0") +# Absolute path this script is in, thus /home/user/bin +SCRIPTPATH=$(dirname "$SCRIPT") + +DIR=$(dirname "$SCRIPTPATH"); +DIR_CONF=$DIR"/conf" + + + +prt-get depinst xorg-server \ + xorg-xinit \ + xorg-xrdb \ + xorg-xdpyinfo \ + xorg-xauth \ + xorg-xmodmap \ + xorg-xrandr \ + xorg-xgamma \ + xorg-xf86-input-evdev \ + xorg-xf86-input-synaptics \ + xsel \ + xkeyboard-config + +prt-get depinst xorg-font-util \ + xorg-font-alias \ + xorg-font-dejavu-ttf \ + xorg-font-cursor-misc \ + xorg-font-misc-misc \ + console-font-terminus \ + xorg-font-terminus \ + xorg-font-mutt-misc + +prt-get search xorg-font-bitstream | xargs sudo prt-get depinst +prt-get search xorg-font-bh | xargs sudo prt-get depinst + +#prt-get search otf- | xargs sudo prt-get depinst +#prt-get depinst otf-sourcecode + +prt-get depinst \ + alsa-utils \ + libdrm \ + mesa3d \ + ffmpeg \ + gstreamer \ + gstreamer-vaapi \ + gst-plugins-base \ + gst-plugins-good \ + gst-plugins-bad \ + gst-plugins-ugly \ + cmus \ + dmenu \ + st \ + gparted \ + gimp \ + libreoffice \ + ca-certificates \ + linux-pam \ + gstreamer \ + libgd \ + icu \ + syndaemon \ + firefox + +prt-get depinst \ + openbox \ + dwm \ + spectrwm \ + mate + +ConfirmOrExit () { + while true + do + echo -n "Please confirm (y or n) :" + read CONFIRM + case $CONFIRM in + y|Y|YES|yes|Yes) break ;; + n|N|no|NO|No) + echo "Aborting - you entered $CONFIRM" + exit + ;; + *) echo "Please enter only y or n" + esac + done + echo "You entered $CONFIRM. Continuing ..." +} + +echo "SCRIPT=$SCRIPT"; +echo "SCRIPTPATH=$SCRIPTPATH"; +echo "DIR=$DIR"; +echo "DIR_CONF=$DIR_CONF"; +ConfirmOrExit + +cp -R $DIR_CONF/etc/X11/* /etc/X11/ + -- cgit 1.4.1-2-gfad0 From 2832cbc97478441927b7d4fa0b6127518d012b61 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sun, 9 Dec 2018 00:02:52 +0000 Subject: core revision --- core/apparmor.html | 2 +- core/bash.html | 2 +- core/configure.html | 2 +- core/dash.html | 2 +- core/exim.html | 2 +- core/hardening.html | 2 +- core/index.html | 6 ++--- core/install.html | 58 +++++++++++++++++++-------------------------- core/linux.html | 2 +- core/network.html | 2 +- core/package.html | 2 +- core/ports.html | 2 +- core/reboot.html | 2 +- core/samhain.html | 2 +- core/sysctl.html | 2 +- core/tmux.html | 2 +- core/toolchain.html | 2 +- core/tty-terminal.html | 2 +- tools/scripts/pkgmk-test.sh | 2 +- 19 files changed, 45 insertions(+), 53 deletions(-) (limited to 'tools/scripts') diff --git a/core/apparmor.html b/core/apparmor.html index 709f2a4..9954593 100644 --- a/core/apparmor.html +++ b/core/apparmor.html @@ -98,7 +98,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/bash.html b/core/bash.html index be17c71..72e746d 100644 --- a/core/bash.html +++ b/core/bash.html @@ -156,7 +156,7 @@ fi

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/configure.html b/core/configure.html index 2fadfcf..7d34bf7 100644 --- a/core/configure.html +++ b/core/configure.html @@ -272,7 +272,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/dash.html b/core/dash.html index 134616d..a273107 100644 --- a/core/dash.html +++ b/core/dash.html @@ -21,7 +21,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/exim.html b/core/exim.html index 2f93af8..23708d2 100644 --- a/core/exim.html +++ b/core/exim.html @@ -226,7 +226,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/hardening.html b/core/hardening.html index 60fea58..1455398 100644 --- a/core/hardening.html +++ b/core/hardening.html @@ -45,7 +45,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/index.html b/core/index.html index 9145f3e..8be7606 100644 --- a/core/index.html +++ b/core/index.html @@ -2,13 +2,13 @@ - c9 Core OS + Core OS Documentation Index -

c9 Core OS

+

Core OS

c9 Core OS covers installation and configuration of basic functionality of Crux 3.4 Gnu\Linux operating system. @@ -155,7 +155,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/install.html b/core/install.html index dfde50a..46793c9 100644 --- a/core/install.html +++ b/core/install.html @@ -75,7 +75,7 @@ installations. Partition size 128M;

-        (parted) mkpart ESP fat32 4 125
+        (parted) mkpart ESP fat32 4 132
         (parted) name 2 efi
         (parted) set 2 boot on
         
@@ -83,70 +83,62 @@

/boot

Boot partition. Partition with 1G provide room for kernels - and crux iso that can be directly boot from grub (without root + and bootable iso's that can be directly boot from grub (without root partition). Partition size 1G;

-        (parted) mkpart primary ext4 125 1128
+        (parted) mkpart primary ext4 132 1132
         (parted) name 3 boot
         

/

-

Normal core crux installation root partition uses - approximately 2G, without /usr 200MB-500M. Minimum 2G - is recommended to give room to root home directory with - dedicated (separated) usr and var partition. - Partition size 4G;

+

Core collection installation on root partition uses + approximately 2G. Partition with 8G-20G is recommended + for a server or desktop with dedicated ports partition + or using only compiled packages. Partition size 20G;

-        (parted) mkpart primary ext4 1128 5128
+        (parted) mkpart primary ext4 1132 21132
         (parted) name 4 root
         

/var

Var partition is recommended 1G-5G depending on how - system is configured. Partition size 1G;

+ system is configured. Partition size 2G;

-        (parted) mkpart primary ext4 5128 6128
+        (parted) mkpart primary ext4 21132 23132
         (parted) name 5 var
         
-

/usr

- -

User partition with 4G-8G is recommended for a desktop - setup, with dedicated partition for ports. Partition size - 8G;

- -
-        (parted) mkpart primary ext4 6128 14128
-        (parted) name 6 usr
-        
-

Swap (ram)

Swap partition general advice is to have the same size as memory ram, ports system will be configured to build on ram. - To build firefox is necessary at least 34G, swap partitions - will be added to lvm and this partition removed. - Partition size 4G;

+ To build firefox is necessary at least 34G. Partition size 4G;

+ +

Is better to create swap partition later using + lvm.

-        (parted) mkpart primary linux-swap 14128 18128
-        (parted) name 3 swap
+        (parted) mkpart primary linux-swap 23132 27132
+        (parted) name 6 swap
         

/home

-

Home partition general advice is to fill the rest of disk - space. Home partition will be added later to lvm and this - partition removed. Fill the rest of disk space;

+

Home partition on desktop fill the rest of disk + space while on server this partition can be unnecessary. + Fill the rest of disk space;

+ +

Is better to create home partition later using + lvm.

-        (parted) mkpart primary ext4 18128 100%
-        (parted) name 8 home
+        (parted) mkpart primary ext4 27132 100%
+        (parted) name 7 home
         

1.1.3. Prepare Install

@@ -354,7 +346,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/linux.html b/core/linux.html index f4dd14f..670d0e7 100644 --- a/core/linux.html +++ b/core/linux.html @@ -858,7 +858,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/network.html b/core/network.html index feb9765..2b94e50 100644 --- a/core/network.html +++ b/core/network.html @@ -445,7 +445,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/package.html b/core/package.html index 4aa649d..bedb132 100644 --- a/core/package.html +++ b/core/package.html @@ -184,7 +184,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/ports.html b/core/ports.html index 7f1cd54..32e5095 100644 --- a/core/ports.html +++ b/core/ports.html @@ -191,7 +191,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/reboot.html b/core/reboot.html index 1fae99b..505a889 100644 --- a/core/reboot.html +++ b/core/reboot.html @@ -225,7 +225,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/samhain.html b/core/samhain.html index f161a16..d28a6d2 100644 --- a/core/samhain.html +++ b/core/samhain.html @@ -257,7 +257,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/sysctl.html b/core/sysctl.html index b871158..525a6cf 100644 --- a/core/sysctl.html +++ b/core/sysctl.html @@ -618,7 +618,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/tmux.html b/core/tmux.html index d6bc2c5..b94253d 100644 --- a/core/tmux.html +++ b/core/tmux.html @@ -110,7 +110,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/toolchain.html b/core/toolchain.html index 0ed64bc..57113fd 100644 --- a/core/toolchain.html +++ b/core/toolchain.html @@ -176,7 +176,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/tty-terminal.html b/core/tty-terminal.html index 2696119..6eb08d3 100644 --- a/core/tty-terminal.html +++ b/core/tty-terminal.html @@ -74,7 +74,7 @@ Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/scripts/pkgmk-test.sh b/tools/scripts/pkgmk-test.sh index a279967..4cfe2c3 100644 --- a/tools/scripts/pkgmk-test.sh +++ b/tools/scripts/pkgmk-test.sh @@ -1,5 +1,5 @@ #!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CONF=${DIR}/pkgmk-test.conf - +echo "pkgmk -cf $CONF -d -is $1" fakeroot pkgmk -cf $CONF -d -is $1 -- cgit 1.4.1-2-gfad0