Difference between revisions of "Build Manjaro ISOs with buildiso"

implement command templates
m
(implement command templates)
Line 27: Line 27:
<!--T:9-->
<!--T:9-->
The latest profiles can be found in the Manjaro gitlab.  You can download them directly using the command:
The latest profiles can be found in the Manjaro gitlab.  You can download them directly using the command:
git clone https://gitlab.manjaro.org/profiles-and-settings/iso-profiles.git ~/iso-profiles
{{UserCmd|command=git clone https://gitlab.manjaro.org/profiles-and-settings/iso-profiles.git ~/iso-profiles}}


==ISO profile overview== <!--T:10-->
==ISO profile overview== <!--T:10-->
Line 33: Line 33:


  <!--T:11-->
  <!--T:11-->
~/iso-profiles/manjaro/xfce
{{UserCmd|command=ls -l ~/iso-profiles/manjaro/xfce}}


<!--T:12-->
<!--T:12-->
Line 73: Line 73:


  <!--T:21-->
  <!--T:21-->
~/iso-profiles/manjaro/xfce/desktop-overlay/etc
{{UserCmdOutput|command=tree ~/iso-profiles/manjaro/xfce/desktop-overlay/etc|result=
├── fonts
<pre>
│   └── conf.d
../iso-profiles/manjaro/xfce/desktop-overlay/
│      └── 70-no-bitmaps.conf -> /etc/fonts/conf.avail/70-no-bitmaps.conf
├── etc
└── lightdm
│   ├── fonts
    └── lightdm-gtk-greeter.conf
│   │   └── conf.d
│   │      └── 70-no-bitmaps.conf
│   └── lightdm
│      ├── lightdm.conf
│      └── lightdm-gtk-greeter.conf
└── usr
    └── share
        └── icons
            └── default
                └── index.theme
</pre>
}}


<!--T:22-->
<!--T:22-->
Line 84: Line 95:


  <!--T:23-->
  <!--T:23-->
~/iso-profiles/manjaro/xfce/desktop-overlay/etc/
{{UserCmd|command=cd ~/iso-profiles/manjaro/xfce/desktop-overlay/etc/}}


<!--T:24-->
<!--T:24-->
Then create '''skel''' folder. This is where you can clone everything you see on your Desktop Screen to ISO.
Then create '''skel''' folder. This is where you can clone everything you see on your Desktop Screen to ISO.
{{UserCmd|command=mkdir skel}}


<!--T:25-->
<!--T:25-->
Line 107: Line 119:


  <!--T:31-->
  <!--T:31-->
/usr/share/backgrounds/<YOUR IMAGE HERE>
/usr/share/backgrounds/<YOUR IMAGE HERE>


===Example=== <!--T:32-->
===Example=== <!--T:32-->
Line 157: Line 169:


   <!--T:35-->
   <!--T:35-->
~/iso-profiles/manjaro/xfce/desktop-overlay/
{{UserCmd|command=cd ~/iso-profiles/manjaro/xfce/desktop-overlay/}}


<!--T:36-->
<!--T:36-->
Then create <code>usr/share/backgrounds</code> and place your Custom Wallpaper at this directory.
Then create <code>usr/share/backgrounds</code> and place your Custom Wallpaper at this directory.
{{UserCmd|command=mkdir ./usr/share/backgrounds}}


<!--T:37-->
<!--T:37-->
~/iso-profiles/manjaro/xfce/desktop-overlay/usr/share/backgrounds/
{{UserCmd|command=cp ~/Pictures/Wallpapers/your-wallpaper.png ~/iso-profiles/manjaro/xfce/desktop-overlay/usr/share/backgrounds}}


===profile.conf=== <!--T:38-->
===profile.conf=== <!--T:38-->
Line 633: Line 646:


<!--T:100-->
<!--T:100-->
If the userconfig is present, ''manjaro-tools''/''buildiso'' will load the userconfig values, however, if variables have been set in the systemwide config file, these values take precedence over the userconfig. Best practice is to leave the systemwide file untouched. By default it is commented and shows just initialization values done in code.
If the userconfig is present, ''manjaro-tools''/''buildiso'' will load the userconfig values. Best practice is to leave the systemwide file untouched. By default it is commented and shows just initialization values done in code.


=Build your ISO= <!--T:101-->
=Build your ISO= <!--T:101-->
Build your ISO with the following command:
Build your ISO with the following command:
buildiso -p xfce
{{UserCmd|command=buildiso -p xfce}}
You need to specify the name of your ISO profile after the <code>-p</code> argument. In this case, it is <code>xfce</code>.
You need to specify the name of your ISO profile after the <code>-p</code> argument. In this case, it is <code>xfce</code>.


Line 650: Line 663:
===Example:=== <!--T:104-->
===Example:=== <!--T:104-->
You can use arguments with the <code>buildiso</code> command for more build options:
You can use arguments with the <code>buildiso</code> command for more build options:
buildiso -f -p xfce -b stable
{{UserCmd|command=buildiso -f -p xfce -b stable}}
* <code>-f</code> let's you specify if you want the full ISO. If omitted a minimal ISO will be build.
* <code>-f</code> let's you specify if you want the full ISO. If omitted a minimal ISO will be build.
* <code>-b</code> let's you specify the branch. You can also set this in your <code>manjaro-tools.conf</code> file.
* <code>-b</code> let's you specify the branch. You can also set this in your <code>manjaro-tools.conf</code> file.
Line 661: Line 674:


  <!--T:107-->
  <!--T:107-->
sudo rm -r /var/lib/manjaro-tools/buildiso/
{{UserCmd|command=sudo rm -r /var/lib/manjaro-tools/buildiso/}}


<!--T:108-->
<!--T:108-->
Line 667: Line 680:


  <!--T:109-->
  <!--T:109-->
paccache -ruk0
{{UserCmd|command=sudo paccache -ruk0}}


<!--T:110-->
<!--T:110-->
Line 679: Line 692:


  <!--T:113-->
  <!--T:113-->
sudo rm -r /var/cache/manjaro-tools/
{{UserCmd|command=sudo rm -r /var/cache/manjaro-tools/}}


<!--T:114-->
<!--T:114-->
Line 688: Line 701:


  <!--T:116-->
  <!--T:116-->
rm -r ~/.config/manjaro-tools
{{UserCmd|command=rm -r ~/.config/manjaro-tools}}




Moderators, translator
455

edits