add makepkg script
This commit is contained in:
parent
4de5bc2fcc
commit
717d2fa2e1
1 changed files with 16 additions and 3 deletions
19
scripts.md
19
scripts.md
|
@ -2,7 +2,7 @@
|
|||
|
||||
If you don't wish to [[install|https://git.disroot.org/joborun/web/src/branch/main/inst_from_image.md]] via downloading and exploding an tarball image, and follow the [[live net-installation|https://git.disroot.org/joborun/web/src/branch/main/install.md]] method you will miss on a few helper scripts that make guess-work easier.
|
||||
|
||||
### Install X + openbox + jwm ###
|
||||
#### Install X + openbox + jwm ####
|
||||
|
||||
The first script that many may be interested in is simply a file list needed on top of base to start X and openbox or jwm.
|
||||
Note here that <strong>you don't need a kernel or a fully booted system to run X</strong>, you can chroot from console from another system, and if mounting of system directories is equivalent to arch's arch-chroot, you can switch to user, go to the home directory and simply type xinit or startx.
|
||||
|
@ -72,10 +72,23 @@ exec openbox-session
|
|||
|
||||
then simply type xinit (or startx no difference).
|
||||
|
||||
#### mkpkg and makepkg script ####
|
||||
|
||||
makepkg is the pacman subprogram for building a package from a template/recipe pacman defaults as PKGBUILD. PKGBUILD is a <strong>bash script</strong> because pacman was written to read bash commands to build a package. Someone should tell those fools who edit strict bash syntax and acuse predecesors of "extreme bashism", that this is what pacman was written with default, not a PKGBUILD editor's choice. Thankfully for those fools, bash has evolved in being more elastic and accepting more universal sh syntax and not enforce strictly its own, otherwise many arch/artix/obarun/manjaro/hyperbola/parabola pkgs wouldn't build! [[Mere linux|https://merelinux.org/]] is about the first distribution we have seen honoring this pacman quality and beginning their PKGBUILDs with a bash shebang.
|
||||
|
||||
|
||||
sudo chmod +x /usr/local/bin/mkpkg
|
||||
|
||||
<pre>
|
||||
#!/bin/sh
|
||||
time numactl --physcpubind=1,3,5,7 makepkg -f
|
||||
</pre>
|
||||
|
||||
time: calculates the time interval from initiating the process till it ends, which is what the figures in "time" are in each pkg repository.
|
||||
|
||||
numactl: is a program that lets you control on which processors to execute the program. In this example imagine an 8core/thread machine with every other processor being used, to minimize both heat and maintain high functionality on the rest of the system. The makepkg -f cleans up from previous run and starts building from 0.
|
||||
|
||||
### More scripts to follow: ###
|
||||
<pre>
|
||||
</pre>
|
||||
|
||||
<pre>
|
||||
</pre>
|
||||
|
|
Loading…
Reference in a new issue