LinuxVillage

Projects and resources (En) => Contributing to FOSS => Create masters => Discussion démarrée par: patrick013 le 15 février 2013 à 23:16:05

Titre: Password for Remastersys iso
Posté par: patrick013 le 15 février 2013 à 23:16:05
When I made an iso of VB I changed the live username.
Didn't ask for a password.   Anyway, the iso wants a name
and password to finish booting.

So, what do I tell it ?

THX

Patrick
Titre: Re : Password for Remastersys iso
Posté par: konaexpress le 16 février 2013 à 00:16:29
As far as I know, you are hosed at this point. I think that this is a bug that the programmer can not get past. Try not making a live version and use the backup instead. Just use a name and password like guest, guest or user, user. This is what I did for GambOS, the end user can still install the iso and pick his own name and password at install.
Titre: Re : Password for Remastersys iso
Posté par: Taco.22 le 16 février 2013 à 02:04:19
Which option did you choose for remastering - "dist" or "backup".  If backup just use the user name and password that the system was built with.

If "dist", then something broke in the build and it needs to be thrown away.  What changes, other than the live username, have you made to the system before remastering, and are you using a virtual machine or bare metal?

Just out curiosity, why did you change the live username?  I've not done that before, but I have changed the Live System Name without issue.
Titre: Re : Re : Password for Remastersys iso
Posté par: patrick013 le 16 février 2013 à 02:22:59
Which option did you choose for remastering - "dist" or "backup".  If backup just use the user name and password that the system was built with.

dist

Citer
If "dist", then something broke in the build and it needs to be thrown away.  What changes, other than the live username, have you made to the system before remastering, and are you using a virtual machine or bare metal?

The live username is the only thing I changed, also the filename for the iso, but
that shouldn't matter.    It's 1.9 GB on a 7.2 GB flash drive partition.   Iso was a
little over 500 MB's.


Citer
Just out curiosity, why did you change the live username?  I've not done that before, but I have changed the Live System Name without issue.

Don't know, just felt like changing it.   

Redid the iso but it's still messed up.   Ran pwck and grpck, changed the live
username, ran pwck and grpck again, then redid the iso.

What's the correct name for the live username ?    Maybe it needs that
specific name.

thanks for the response.

patrick
Titre: Re : Password for Remastersys iso
Posté par: Taco.22 le 16 février 2013 à 03:10:58
Citer
What's the correct name for the live username ?

debianbox
Titre: Re : Password for Remastersys iso
Posté par: Taco.22 le 16 février 2013 à 10:14:38
Patrick - could you list exactly what changes you made to the VillageBox install that you then tried to remaster.  Also the hardware that you remastered on and the file system used.  I will replicate as best I can and see what the result is. 

EDIT - probably this goes for everybody.  Download the VillageBox ISO, install it onto a physical medium like a hard drive or flash drive and then do a remaster.  Don't change anything!!  Then see if it wants to boot as it should.  We will then have a base level to work from.  If the remaster doesn't work then we have to look at hardware and/or other issues.  If the remaster works then we know that the base is fine.  After that we can work out what changes are or aren't working.  But we need a uniform base to work from.
Titre: Re : Re : Password for Remastersys iso
Posté par: patrick013 le 16 février 2013 à 21:18:29
Patrick - could you list exactly what changes you made to the VillageBox install that you then tried to remaster.  Also the hardware that you remastered on and the file system used.  I will replicate as best I can and see what the result is. 

EDIT - probably this goes for everybody.  Download the VillageBox ISO, install it onto a physical medium like a hard drive or flash drive and then do a remaster.  Don't change anything!!  Then see if it wants to boot as it should.  We will then have a base level to work from.  If the remaster doesn't work then we have to look at hardware and/or other issues.  If the remaster works then we know that the base is fine.  After that we can work out what changes are or aren't working.  But we need a uniform base to work from.

After changing the config to show the live username as debianbox the new iso
failed to boot.   That was the only change I made to remastersys.    The other
stuff on the VB install is just some programs, etc..    Used ext3 plus extent,
installed lxpanel, pcmanfm, put pcmanfm in charge of the desktop, turned off
gigolo and thunar daemons, the other programs are just client software.
Changing the live username just knocks out autologin looks like.

This is an Asus EeePC900 with 1.6 Atom.   The VB install is on a 8 GB flash drive.
The remaster ran well, only about half an hour, about 500 MB's.    Installed
the iso to a 8 GB flash drive with unetbootin formatted FAT 32.

Don't know what else I can tell you.   This live username thing...just lock it at
one value if possible.

What else you need to know ?

regards,

patrick
Titre: Re : Password for Remastersys iso
Posté par: melodie le 16 février 2013 à 22:25:53
Hi,

I would not consider Virtualbox safe for performing remasters. I use it for test purpose such as seeing if a box works well, installs well, or to make tests in Windows machines, or check a website in a windows os where reigns the blue 'e'. ;)

What about using Taco's method, in flash drives, or in a machine on "bare metal"? (Or did I misunderstood ? Haven't you tried to remix/remaster in a Virtualbox machine?)

Titre: Re : Re : Password for Remastersys iso
Posté par: patrick013 le 16 février 2013 à 23:41:10
Hi,

I would not consider Virtualbox safe for performing remasters. I use it for test purpose such as seeing if a box works well, installs well, or to make tests in Windows machines, or check a website in a windows os where reigns the blue 'e'. ;)

What about using Taco's method, in flash drives, or in a machine on "bare metal"? (Or did I misunderstood ? Haven't you tried to remix/remaster in a Virtualbox machine?)

No, I never use VirtualBox, probably too slow on my machine.

By VB I meant Village Box.     
Titre: Re : Re : Re : Password for Remastersys iso
Posté par: melodie le 16 février 2013 à 23:46:48
By VB I meant Village Box.

I suspected I had not understood something. Thanks for clearing. :)

Titre: Re : Re : Password for Remastersys iso
Posté par: melodie le 16 février 2013 à 23:57:22
Just use a name and password like guest, guest or user, user.

I have read "user" should not be used with Remastersys. However I don't remember if I read this in the FAQ or in the numerous posts pinned at the help section of the Remastersys forum.


Titre: Re : Password for Remastersys iso
Posté par: Taco.22 le 17 février 2013 à 01:04:54
Well I'm a bit stumped.  Patrick doesn't sound like he's changed much more than I would when fiddling around with options.  The only things I do differently is that I don't use Unetbootin - I dd using dd if=name_of_iso of=/dev/drive  I don't include other parameters.

Has anyone tried just doing that with VillageBox with no changes - download, dd to live, install and boot?
Titre: Re : Password for Remastersys iso
Posté par: djohnston le 17 février 2013 à 05:37:17
I haven't tried a USB stick remaster. I did remaster from a VirtualBox installation without problems. The only thing I noticed is the problem with Thunar resurfacing from an update to gvfs which overwrote the old configuration file.
Titre: Re : Re : Password for Remastersys iso
Posté par: melodie le 17 février 2013 à 14:02:16
The only thing I noticed is the problem with Thunar resurfacing from an update to gvfs which overwrote the old configuration file.

Hi,

This one looks like a Debian bug. Have you tried to take information from Debian community to know if they met with the same event ? (ie : http://forums.debian.net (http://forums.debian.net)); Let's not forget that Wheezy is testing and as such suspected bugs may deserve to be checked.

PS: in fact that would make two to check : at Debian testing and at Xfce.



Titre: Re : Password for Remastersys iso
Posté par: djohnston le 17 février 2013 à 21:23:50
Already documented as far back as May 2011 (and earlier).

Thunar hangs on first launch of each session (https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/775117)

ArchWiki documentation of the problem:

Solving problem with slow cold start (https://wiki.archlinux.org/index.php/Thunar#Solving_problem_with_slow_cold_start)

There's also this (https://forum.xfce.org/viewtopic.php?id=5784) in March 2011 from the XFCE forum.

EDIT: More specifically, one of the recently updated gvfs packages overwrote the changes to the config file /usr/share/gvfs/mounts/network.mount. The only way I know of to solve that is to set the file as immutable.

# chattr +i /usr/share/gvfs/mounts/network.mount
Doing so may cause an apt update problem. I've never tested it.
Titre: Re : Re : Password for Remastersys iso
Posté par: melodie le 18 février 2013 à 01:24:03

EDIT: More specifically, one of the recently updated gvfs packages overwrote the changes to the config file /usr/share/gvfs/mounts/network.mount.

Have you tried copying your modified network.mount file to ~/.local/share/gvfs/mounts to see if that would solve it ? (creating the new subdirectories in .locale/share, of course).

Titre: Re : Re : Re : Password for Remastersys iso
Posté par: djohnston le 18 février 2013 à 05:36:44
Have you tried copying your modified network.mount file to ~/.local/share/gvfs/mounts to see if that would solve it ? (creating the new subdirectories in .locale/share, of course).

Yes, it fixes the problem. No, no need to copy anything. Edit the file as root and change

AutoMount=true
to

AutoMount=false
Problem solved ... Until the next gvfs update.
Titre: Re : Password for Remastersys iso
Posté par: melodie le 18 février 2013 à 06:20:49
What I am trying to tell you is this : if it works also in the home of the user, then the next gvfs update should not have any effect at all because the configurations which are in the home of the user overwrite the ones from the system.
Titre: Re : Re : Password for Remastersys iso
Posté par: djohnston le 18 février 2013 à 23:51:10
What I am trying to tell you is this : if it works also in the home of the user, then the next gvfs update should not have any effect at all because the configurations which are in the home of the user overwrite the ones from the system.

Hmmm. Well, there is a ~/.gvfs/ directory, but it is empty in both bare metal installations and in VBox installations. The configuration file under discussion, network.mount, is in /usr/share/gvfs/mounts/ directory. So, I "duplicated" the directory structure by creating ~/.gvfs/mounts directory and copied the network.mount file there. Whether that local config will override the system's config I don't know. I'll have to test it.
Titre: Re : Password for Remastersys iso
Posté par: melodie le 19 février 2013 à 00:08:41
I don't know if the system looks where you put it. I always use the ~/.local/share directory as I have indicated above. And it is most likely that the ~/.gvfs is empty for a reason and should not be used.




Titre: Re : Password for Remastersys iso
Posté par: djohnston le 19 février 2013 à 00:32:03
Here's what I've tried so far. I set the system config to AutoMount=true. I set the local config to AutoMount=false. I tried the local config file as:

~/.gvfs/mounts/network.mount
~/.local/share/gvfs/mounts/network.mount
~/.local/share/network.mount

Did a reboot in between each change. No effect. If the system config file is set to true, the local config does not override it, unless I haven't found the right place for it. I'll research this, but I believe the solution is to set /usr/share/gvfs/mounts/network.mount to immutable or to read-only. I'll try them both before doing the Synaptic updates that pull in about 6 new gvfs packages.
Titre: Re : Re : Password for Remastersys iso
Posté par: patrick013 le 19 février 2013 à 01:36:35
Has anyone tried just doing that with VillageBox with no changes - download, dd to live, install and boot?

Sure, with a downloaded iso.   Working with a Scorpio right now, made a few
changes, trying to get used to Chromium, will try a remaster shortly leaving all
remastersys settings at default.   Should work I think ?
Titre: Re : Re : Password for Remastersys iso
Posté par: melodie le 19 février 2013 à 01:45:52
I'll try them both before doing the Synaptic updates that pull in about 6 new gvfs packages.

Ok. It's better to pull packages than pull hair...

Titre: Re : Re : Re : Password for Remastersys iso
Posté par: djohnston le 19 février 2013 à 06:24:52
Ok. It's better to pull packages than pull hair...

That's true.  ;D  I'm not really getting anywhere beyond testing. I reinstalled the latest Village_RC2_TEST_xz. /usr/share/gvfs/mounts/network.mount was already set to AutoMount=false. So I changed the file to read-only and changed the attributes to immutable (non-changeable).

root@DebWeb:/usr/share/gvfs/mounts# chmod 444 network.mount
root@DebWeb:/usr/share/gvfs/mounts# chattr +i network.mount

Then I did the full updates. As I suspected, one package refused to update.

E: /var/cache/apt/archives/gvfs-backends_1.12.3-4_i386.deb: unable to make backup link of `./usr/share/gvfs/mounts/network.mount' before installing new version: Operation not permitted
So, I changed the immutable bit.

root@DebWeb:/usr/share/gvfs/mounts# chattr -i network.mount
gvfs-backends package then updated and overwrote the config file, changing the contents back to AutoMount=true. It also changed the read only status of the file to 644 (-rw-r--r--). I have searched for about an hour for a way to configure locally. The only thing I've discovered is that ~/.gvfs is where gvfs-mount creates the mount point for remote and custom filesystems when a user mounts them.
Titre: Re : Re : Re : Password for Remastersys iso
Posté par: djohnston le 19 février 2013 à 06:27:28
Sure, with a downloaded iso. Working with a Scorpio right now, made a few changes, trying to get used to Chromium, will try a remaster shortly leaving all remastersys settings at default. Should work I think ?

Well, the Scorpio remaster is quite a bit different than the LinuxVillage one. Taco.22 could probably tell you the differences.
Titre: Re : Password for Remastersys iso
Posté par: melodie le 19 février 2013 à 12:26:40
djohnston, I would suggest you go to the Debian bug tracker and seek for a bug report, or if none is there file one against gvfs. The updates should not overwrite the configurations done in the system.



Titre: Re : Password for Remastersys iso
Posté par: djohnston le 19 février 2013 à 20:13:17
I've searched bug tracker (http://www.debian.org/Bugs/) and didn't find that one. I'll report it using the reportbug app. (It's the recommended way (http://www.debian.org/Bugs/Reporting).)
Titre: Re : Password for Remastersys iso
Posté par: melodie le 19 février 2013 à 20:31:56
Alors bon courage. But if this fails, let us know.

Titre: Re : Re : Re : Re : Password for Remastersys iso
Posté par: patrick013 le 20 février 2013 à 03:16:23
Well, the Scorpio remaster is quite a bit different than the LinuxVillage one. Taco.22 could probably tell you the differences.

Hi DJ,

Why so ?     Scorpio is supposed to be the standard I thought.    Just added some software, changed
a few colors, etc..    Nothing system related.

Looking pretty good.   So busy today doing other things, the remaster only takes about a half hour
or so.    Want to change it to a 16 GB flash, they actually run faster than the 8 GB flash's.   Specs
are more full on the bigger one I guess.     

What makes you think it won't work ?

Got to look it over one more time before I do it, time is scarce this week.

Have a good one.

patrick
Titre: Re : Password for Remastersys iso
Posté par: Taco.22 le 20 février 2013 à 04:11:38
There is no reason why Scorpio won't work, but it is different to VillageBox.  Scorpio is based on the first series of Debian net-install that I did - Wheezy_OB.  However somehow in that build I failed to install the locale packages that enabled other languages.  Melodie took hold of it, installed the locale/language software and then reinstalled all the apps so that the spin could be done in French.  Later I downloaded her French edition, converted it back to English, added other software and released it as a stripped down version.  Djohnston then got hold of it and added software that made managing language and locale simple.  Somewhere along the line it was christened VillageBox.

The original Scorpio still works fine - it just won't convert to other languages.  I have a new one based on VillageBox sitting in the wings, but in the meantime the original version is perfectly workable.
Titre: Re : Re : Re : Re : Re : Password for Remastersys iso
Posté par: djohnston le 20 février 2013 à 04:34:40
What makes you think it won't work ?

I think you misunderstood me, or I misunderstood you. I wasn't implying that a remaster of Scorpio wouldn't work, I was implying that it's quite a bit different than the LinuxVillage remaster. I thought the beginning of this thread was about a problem remastering your LinuxVillage installation using remastersys. Correct me if I'm wrong.
Titre: Re : Re : Password for Remastersys iso
Posté par: patrick013 le 20 février 2013 à 04:55:36
There is no reason why Scorpio won't work, but it is different to VillageBox.  Scorpio is based on the first series of Debian net-install that I did - Wheezy_OB.  However somehow in that build I failed to install the locale packages that enabled other languages.  Melodie took hold of it, installed the locale/language software and then reinstalled all the apps so that the spin could be done in French.  Later I downloaded her French edition, converted it back to English, added other software and released it as a stripped down version.  Djohnston then got hold of it and added software that made managing language and locale simple.  Somewhere along the line it was christened VillageBox.

The original Scorpio still works fine - it just won't convert to other languages.  I have a new one based on VillageBox sitting in the wings, but in the meantime the original version is perfectly workable.

Hi,

thanks for the response.

Somewhere I deleted a package called locales-all, can't remember
which one on, Scorpio or VillageBox.   Just to make upgrades less MB's.

Upgraded a bunch of other packages.     Somebody should upgrade the
base Scorpio and release it then every few months.   There's a fellow at Fedora that takes
their base spins, upgrades everything, and posts the current iso's fully
upgraded every few months.     Why ?     So if you choose a particular spin
you won't have to upgrade possibly hundreds of packages.    He volunteered
to do the upgrades,    make  new iso's,   and provide the current spins as of
that date with everything current, on a Fedora approved website.     He does
that with every spin  not EOL.

I'm just looking to the future, these Debian people like to do alot of upgrades
it looks like.

Scorpio is working fine BTW, clicking along just fine.    Always need a root
password to shutdown, Something Debian does I guess.

I have a nice OpenBox script for the weather and one for system info that
fit in the OpenBox menu, like Places.   Once I get them installed and working I'll post a
copy if anybody wants to use something like that.     

Another good OpenBox distro coming up looks like.

Aren't computers fun ?

Have a good one.

Patrick013
Titre: Re : Password for Remastersys iso
Posté par: Taco.22 le 20 février 2013 à 07:34:52
Citer
Somewhere I deleted a package called locales-all,
Just a gut feeling but I think removing that then reduces the language and locale functions.  That's OK on a home system but could be a bit limiting in a remaster.  Someone might correct me on that.

Citer
Somebody should upgrade the base Scorpio and release it then every few months.
Once the next Scorpio is up that regime will be met.  Currently VillageBox gets updated and re-released on a semi regular basis - seasonally is about good.

Citer
Always need a root password to shutdown
That shouldn't be the case.  Is that from the right-click menu or the keybinding?  Could you post the logout/shutdown part of ~/.config/openbox/menu.xml.

Citer
Another good OpenBox distro coming up looks like.
Scorpio was my original spin, and still my favourite.  The embedded terminal works well for me, Pytyle is the icing on the cake, and the clean interface is what I think OpenBox is all about.  Glad you like it.
Titre: Re : Password for Remastersys iso
Posté par: melodie le 20 février 2013 à 13:20:01
Yes ! And there is no standard as such, standard is a concept, so, Patrick, your standard is whatever you want it to be. ;)

Titre: Re : Re : Password for Remastersys iso
Posté par: djohnston le 21 février 2013 à 22:53:39
As far as I know, you are hosed at this point. I think that this is a bug that the programmer can not get past.

From recent experimentation, I gotta backtrack on my opinion of remastersys a bit. In my case, I found the problem was actually somewhere in /etc/skel before remastersys was run. I discovered this today through experimentation. I moved the /etc/skel directory to /skel, recreated an empty /etc/skel directory, then used the remastersys program to repopulate /etc/skel from my user settings. The result wasn't perfect, but the iso did boot and autologin to the desktop.

Something to consider.
Titre: Re : Re : Re : Password for Remastersys iso
Posté par: patrick013 le 22 février 2013 à 00:36:53
I moved the /etc/skel directory to /skel, recreated an empty /etc/skel directory, then used the remastersys program to repopulate /etc/skel from my user settings.

Thanks for finding a workaround for that.   
Titre: Re : Re : Password for Remastersys iso
Posté par: patrick013 le 22 février 2013 à 01:16:52
That shouldn't be the case.  Is that from the right-click menu or the keybinding?  Could you post the logout/shutdown part of ~/.config/openbox/menu.xml.

It requires the root password when there is a root program open.
Not unless, a bit odd as I haven't had to do that before.   

I use the pygtk-shutdown script and i3lock to lock the screen as I
usuallt don't suspend or hibernate.

thanks for the response.

Patrick
Titre: Re : Password for Remastersys iso
Posté par: Taco.22 le 22 février 2013 à 02:17:52
Citer
It requires the root password when there is a root program open.

Oh, that's OK then.  All that is saying is that the computer can't shut down because root is active elsewhere and needs the root password to do so.  The shutdown command can only be done as root, and the command in menu.xml automatically bestows root privileges.  Just make sure nothing is open as root when you shutdown, or just enter the root password if you get the "error" message.

Citer
I use the pygtk-shutdown script and i3lock to lock the screen as I usually don't suspend or hibernate.

What's wrong with the commands in the right-click menu - there is even a keybinding for shutdown!  The suspend/hibernate are only there for laptops - I comment them out on my desktop system.
Titre: Re : Re : Password for Remastersys iso
Posté par: patrick013 le 22 février 2013 à 02:59:06
What's wrong with the commands in the right-click menu - there is even a keybinding for shutdown!  The suspend/hibernate are only there for laptops - I comment them out on my desktop system.

Nothing's really wrong with them, just that I've been using
pygtk-shutdown for years, personal preference I guess.
Was surprised it even worked on Scorpio.    Put it in a separate
OB menu with some screensaver commands.

Suspend/hibernate are not working on my Asus netbook.
I just lock the screen if I would leave for a long time.

Is there a keybinding just to pop up the OB menu ?   Could
arrow down from there anything I wanted.

Have a good one then.

Patrick
Titre: Re : Password for Remastersys iso
Posté par: Taco.22 le 22 février 2013 à 05:48:24
Citer
Is there a keybinding just to pop up the OB menu ?

If you open ~/user_name/.config/openbox/rc.xml and go to line 262 or thereabouts, you should see this-
<keybind key="A-space">
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
    </keybind>

Just copy and paste that immediately below and edit it so -
<keybind key="C-space">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>

Note the changes - C-space instead of A-space and root-menu instead of client-menu.  However the keybinding can be whatever you want it to be.  Just save, reconfigure OB and you are good to go.  I'll have to go through the other spins and see what needs to be updated for this.
Titre: Re : Password for Remastersys iso
Posté par: patrick013 le 26 février 2013 à 23:29:30
Well I've actually got Scorpio to remaster OK.   Chattr'd
the remastersys configuration file shut so I can't change
it.   Had to add some things to the /etc/skel customizations,
still think I missed Firefox extensions in that.   The program
didn't  want to bring some things forward.

But, the basic remaster is fine now that I just use the config's
in the program.

Patrick