Remastering SolydXK [adapted: 22 July 2015]

Post your tutorials and howtos here.
User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 16 Jun 2013 12:32

If you have the need to create a SolydXK iso with some extra programs or custom configuration that you can use on a USB stick, or even plan to build a CE of SolydXK, this is the thing for you.

Disclaimer
SolydXK Constructor was created for maintaining the current SolydXK ISO's, and is provided as-is: support is not provided.

Source: https://github.com/SolydXK/solydxk-constructor

Installation
Make sure you're sources.list looks like this:

Code: Select all

deb http://repository.solydxk.com/ solydxk main upstream import
deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.debian.org/debian/ jessie-backports main contrib non-free
Upgrade your system, and install solydxk-constructor:

Code: Select all

sudo apt update
sudo apt upgrade
sudo apt install solydxk-constructor
SolydXK Constructor Help
SolydXK Constructor helps building your custom SolydXK ISO, and was solely created for maintaining the current SolydXK ISO's, but it might benefit those who want to build their custom SolydXK ISO.
You can download SolydXK's nightly builds here: http://downloads.solydxk.nl/nightly

Before you start, take a good look at the Help page.

Example build: SolydK
  1. Check and adapt (as root):
    /usr/lib/solydxk/constructor/files/trackers
    /usr/lib/solydxk/constructor/files/webseeds
  2. Add 201411 ISO with the constructor (see the Help file on how to do that).
  3. Edit /root/etc/apt/sources.list:

    Code: Select all

    deb http://repository.solydxk.com/ solydxk main upstream import
    deb http://ftp.debian.org/debian jessie main contrib non-free
    deb http://security.debian.org/ jessie/updates main contrib non-free
    deb http://ftp.debian.org/debian/ jessie-backports main contrib non-free
  4. Hit "Edit in terminal" and run these commands:

    Code: Select all

    apt install solydk-system-adjustments libjpeg62-turbo plymouth-themes solydxk-mozilla-evolvere-icon-theme
    apt dist-upgrade
    Note 1: you need to replace solydk-system-adjustments with solydx-system-adjustments if you're editing SolydX.
    Note 2: ignore the libkmod errors while uploading. You're in a chrooted environment and these messages seem harmless.
  5. Hit "Upgrade"
  6. Check /boot/grub directory:
    efi.img
    font.pf2
    grub.cfg
    loopback.cfg (copy of grub.cfg)
    [x86_64-efi] or [i386-efi]
  7. Edit boot/isolinux/splash.png if needed
  8. Edit boot/grub/grub.cfg (Replace SolydK with SolydX if you're editing SolydX):

    Code: Select all

    if loadfont $prefix/font.pf2 ; then
      set gfxmode=800x600
      insmod efi_gop
      insmod efi_uga
      insmod video_bochs
      insmod video_cirrus
      insmod gfxterm
      insmod png
      terminal_output gfxterm
    fi
    
    background_image /isolinux/splash.png
    set menu_color_normal=white/black
    set menu_color_highlight=dark-gray/white
    set timeout=5
    
    
    menuentry "Start SolydK 8 64-bit 201507" {
        set gfxpayload=keep
        linux   /live/vmlinuz boot=live config  quiet splash
        initrd  /live/initrd.img
    }
    menuentry "Start SolydK 8 64-bit 201507 (safe)" {
        set gfxpayload=keep
        linux   /live/vmlinuz boot=live config  memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
        initrd  /live/initrd.img
    }
    submenu 'Advanced options ...' {
        menuentry "Check the integrity of the medium" {
    	linux   /live/vmlinuz  boot=live verify-checksums
    	initrd  /live/initrd.img
        }
        menuentry "Boot from disk" {
    	set root=(hd1)
    	chainloader +1
        }
        menuentry "System restart" {
    	reboot
        }
        menuentry "System shutdown" {
    	halt
        }
    }
    
    Copy boot/grub/grub.cfg to boot/grub/loopback.cfg if it does not exist.
    Translate both files if you make a localized ISO.
  9. Check if exists: boot/efi/boot/bootx64.efi or boot/efi/boot/bootia32.efi
  10. Edit boot/isolinux/isolinux.cfg (Replace SolydK with SolydX if you're editing SolydX):

    Code: Select all

    default vesamenu.c32
    timeout 100
    
    menu background splash.png
    menu title Welcome to SolydK 8 64-bit 201507
    menu color border 0 #00eeeeee #00000000
    menu color sel 7 #ffeeeeee #ff000000
    menu color title 0 #ffeeeeee #55000000
    menu color tabmsg 0 #ffeeeeee #55000000
    menu color unsel 0 #ffeeeeee #55000000
    menu color hotsel 0 #ff000000 #ffffffff
    menu color hotkey 7 #ffffffff #ff000000
    menu color timeout_msg 0 #ffffffff #00000000
    menu color timeout 0 #ffffffff #00000000
    menu color cmdline 0 #ffffffff #00000000
    menu hidden
    
    label live
      menu label Start SolydK
      kernel /live/vmlinuz
      append boot=live config  quiet splash initrd=/live/initrd.img
    menu default
    label xforcevesa
        menu label Start SolydK (safe)
        kernel /live/vmlinuz
        append boot=live config  memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal initrd=/live/initrd.img
    
    menu begin advanced
        menu label ^Advanced options
    	menu title Advanced options
    	label mainmenu
    	    menu label ^Back..
    	    menu exit
    	label check
    	    menu label Check the integrity of the medium
    	    kernel /live/vmlinuz
    	    append boot=live verify-checksums initrd=/live/initrd.img
    	label hdt
    	    menu label Hardware Detection Tool
    	    com32 hdt.c32
    	label memtest
    	    menu label Memory Diagnostic Tool
    	    kernel memtest86
    	label local
    	    menu label Boot from disk
    	    com32 chain.c32
    	    append hd0 0
    	label restart
    	    menu label System restart
    	    com32 reboot.c32
    	label off
    	    menu label System shutdown
    	    com32 poweroff.c32
    menu end
    
  11. Check boot/offline/ directory:
    grub-efi-amd64_2.02~beta2-22_amd64.deb
    grub-efi_2.02~beta2-22_amd64.deb
    or the 32-bit versions of those packages.
  12. Hit "Build"
Use Debian live as base
As said above: the SolydXK Constructor was built to maintain the SolydXK ISOs. However, theoratically it should also work with a Debian Live ISO: http://www.debian.org/CD/live
If you use Debian, you'll need the "isolinux" directory (and its contents) to replace the "isolinux" directory in the Debian unpack directory.
After that you'll need to configure the distribution from scratch.


SolydXK needs you!
Development | Testing | Translations

User avatar
tuktuk22
Posts: 105
Joined: 20 Mar 2013 08:54

Re: Remastering SolydXK

Postby tuktuk22 » 27 Aug 2013 12:52

hello schoelje, i have tried this in Solydx but it only created empty folders : remaster and root.

what did i do wrong?

Code: Select all

$ solydxk-constructor 

Setting up the GUI...


INFO: Saving working directory information...
Custom Directory: /home/klutuk/solyd
Create New Project: True
ISO Filename: /media/TOSHIBA/linux/solydx32-201308.iso
INFO: Setting up working directory...
Using ISO for remastering...
Copying files...
Finished copying files...
umount: /media/cdrom0: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
Using ISO for squashfs root...
mount: according to mtab /media/TOSHIBA/linux/solydx32-201308.iso is already mounted on /media/cdrom as loop
Mounting squashfs...
Extracting squashfs root...
Unmounting tmpsquash...
umount2: Invalid argument
umount: /home/klutuk/solyd/tmpsquash: not mounted
Unmounting cdrom...
Removing tmpsquash...
Setting proper permissions...
chmod: cannot access `/home/klutuk/solyd/root/usr/bin/sudo': No such file or directory
chmod: cannot access `/home/klutuk/solyd/root/etc/sudoers': No such file or directory
Finished extracting squashfs root...
Playing WAVE '/usr/lib/solydxk/constructor/done.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Finished setting up working directory...
 
Copying DNS info...
cp: cannot create regular file `/home/klutuk/solyd/root/etc/resolv.conf': No such file or directory
Stop Apache, MySQL, and Webmin services
umount: /home/klutuk/solyd/root/proc/: not found
umount: /home/klutuk/solyd/root/dev/: not found
umount: /home/klutuk/solyd/root/dev/pts/: not found
Mounting /proc /dev /dev/pts filesystems...
mount: mount point /home/klutuk/solyd/root/proc does not exist
mount: mount point /home/klutuk/solyd/root/dev does not exist
mount: mount point /home/klutuk/solyd/root/dev/pts does not exist
Copying wgetrc configuration...
mv: cannot stat `/home/klutuk/solyd/root/etc/wgetrc': No such file or directory
cp: cannot create regular file `/home/klutuk/solyd/root/etc/wgetrc': No such file or directory
Launching Xterm for advanced customization...
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Restoring wgetrc configuration...
mv: cannot stat `/home/klutuk/solyd/root/etc/wgetrc.orig': No such file or directory
Removing DNS info...
Umounting /proc  /dev /dev/pts ...
umount: /home/klutuk/solyd/root/proc/: not found
umount: /home/klutuk/solyd/root/dev/: not found
umount: /home/klutuk/solyd/root/dev/pts/: not found
umount: /home/klutuk/solyd/root/proc/: not found
umount: /home/klutuk/solyd/root/dev/: not found
umount: /home/klutuk/solyd/root/dev/pts/: not found
Start Apache, MySQL, and Webmin services

- solydk64
- debian testing

User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK

Postby Arjen Balfoort » 27 Aug 2013 13:35

Did you use a SolydXK iso (not the Multi DVD) as a base?
For me it works...daily.


SolydXK needs you!
Development | Testing | Translations

User avatar
tuktuk22
Posts: 105
Joined: 20 Mar 2013 08:54

Re: Remastering SolydXK

Postby tuktuk22 » 27 Aug 2013 14:00

i have try this on 2 system,
first one on solydx installed at PC using (maybe) april iso (old system-but updated)
and the second one fresh install solydx 201308 on vbox :?

same output
- solydk64
- debian testing

User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK

Postby Arjen Balfoort » 27 Aug 2013 15:11

I'd like to look into it further, but it has no high priority at the moment, I'm afraid.
If you know Python (or any sort of coding), you can look into it, but I don't have much time :(


SolydXK needs you!
Development | Testing | Translations

User avatar
tuktuk22
Posts: 105
Joined: 20 Mar 2013 08:54

Re: Remastering SolydXK

Postby tuktuk22 » 28 Aug 2013 06:55

Schoelje wrote: If you know Python (or any sort of coding), you can look into it...
not yet :lol:
- solydk64
- debian testing

User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK

Postby Arjen Balfoort » 01 Sep 2013 11:24

A new version is now in testing, and should come with the next UP.
That'll probably fix your issue.


SolydXK needs you!
Development | Testing | Translations

NGIB
Posts: 31
Joined: 30 Aug 2013 10:41
Location: Hinesville GA, USA

Re: Remastering SolydXK

Postby NGIB » 05 Sep 2013 11:00

Rather than reinvent the wheel in terms of remastering an installed system, perhaps this will give the developer a leg up:

http://system-imaging.blogspot.com/2013 ... -code.html

The remastersys package was/is used by many debian/ubuntu based systems and it works. Not having the ability to remaster an installed installation (I have no interest in creating my own "spin") limits SolydXK. Many of us with multiple computers to manage use this capability to do an install/update/add software/customize on one computer and then deploy the remastered system to other computers. I have 3 machines at home and this capability is critically important to me and I suspect others...

cristy78
Posts: 33
Joined: 21 Jul 2013 10:50

Re: Remastering SolydXK

Postby cristy78 » 05 Sep 2013 11:36

the remastersys package was/is used by many debian/ubuntu based systems and it works. Not having the ability to remaster an installed installation (I have no interest in creating my own "spin") limits SolydXK. Many of us with multiple computers to manage use this capability to do an install/update/add software/customize on one computer and then deploy the remastered system to other computers. I have 3 machines at home and this capability is critically important to me and I suspect others...

+ 1 ...subscribe to this..

NGIB
Posts: 31
Joined: 30 Aug 2013 10:41
Location: Hinesville GA, USA

Re: Remastering SolydXK

Postby NGIB » 05 Sep 2013 11:48

I like SolidX but until it has a remaster capability it remains on the "waiting list" for me. I have to have installable backups as I just have a lot of computers I take care of. Right now my main system is PCLinuxOS as it has an extremely smooth and functional remaster capability. In 10 minutes (on a Core I7 CPU), I can create an ISO of my installed system and write it to a USB drive - all from inside PCLOS. SparkyLinux has integrated this capability (so I know it works with debian testing) but sadly this distro is just not "polished" enough to deploy on multiple computers...

User avatar
tuktuk22
Posts: 105
Joined: 20 Mar 2013 08:54

Re: Remastering SolydXK

Postby tuktuk22 » 09 Sep 2013 04:49

Schoelje wrote:A new version is now in testing, and should come with the next UP.
That'll probably fix your issue.
my issue has been fixed after the update :mrgreen:
thanks schoelje.. i will play with it a little
- solydk64
- debian testing

User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK

Postby Arjen Balfoort » 08 Dec 2013 20:56

I'm testing out a new version of solydxk-constructor: http://forums.solydxk.nl/viewtopic.php?f=33&t=2242


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK

Postby Arjen Balfoort » 15 Jan 2014 09:06

I've updated the OP.
SolydXK Constructor has had some major reconstruction. This small tutorial is also included in the solydxk-constructor package.

Please, post any bugs/findings here.


SolydXK needs you!
Development | Testing | Translations

Deleted User 2763

Re: Remastering SolydXK

Postby Deleted User 2763 » 15 Jan 2014 13:57

(looking for the "Like" button)
Cool.
-Hinto

tux-world
Posts: 31
Joined: 22 Jan 2014 19:34

Re: Remastering SolydXK

Postby tux-world » 23 Jan 2014 10:49

this remaster can create installer for new remastering distro?

User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK

Postby Arjen Balfoort » 23 Jan 2014 11:22

tux-world wrote:this remaster can create installer for new remastering distro?
I'm sorry, I don't know what you mean, but solydxk-creator makes it possible to change a downloaded SolydXK iso, and build a new iso from that.


SolydXK needs you!
Development | Testing | Translations

tux-world
Posts: 31
Joined: 22 Jan 2014 19:34

Re: Remastering SolydXK

Postby tux-world » 23 Jan 2014 11:44

my means is can i install new created distro? that have installer distro wizard?

User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK

Postby Arjen Balfoort » 23 Jan 2014 11:47

tux-world wrote:my means is can i install new created distro? that have installer distro wizard?
Yes, the iso that you create with solydxk-creator can be installed like any SolydXK iso.


SolydXK needs you!
Development | Testing | Translations

tux-world
Posts: 31
Joined: 22 Jan 2014 19:34

Re: Remastering SolydXK

Postby tux-world » 23 Jan 2014 21:54

how to startup kde in chroot and installing apache2 on that?
after installing that. i get error to start service

User avatar
Arjen Balfoort
Site Admin
Posts: 8747
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK

Postby Arjen Balfoort » 23 Jan 2014 22:14

Did you follow the tutorial?
After unpacking the ISO (step 1), you simply check the checkbox of the ISO in the list, and click on the "Edit in terminal" (step 4). In the terminal you install the packages you need:

Code: Select all

apt-get install apache2
After that you build the new ISO (step 6), and test that ISO in VB. I did so for SolydK Back Office today.


SolydXK needs you!
Development | Testing | Translations


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests