Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Sparky Backup Sys - login

Started by grandadruss, February 22, 2015, 04:37:52 AM

Previous topic - Next topic

grandadruss

Have created iso using SBS, worked flawlessly, now have two bootable iso's, one from cli sparkybackup -dist and one from the gui, choose backup option. Both boot from usb stick, no problem.
So far, excellent.
But, I can't get past the login screen. live live is rejected, so is my username and password and every other combination I can think of.
I have installed Custom Iso Builder and unpacked both iso's but cannot chroot into either. Terminator says "unable to find shell". /bin/bash is there in both.
The system I am working on is one I built up by installing Sparky CLI and then adding stuff so it is very likely my difficulties are caused by me not having installed something SBS and CIB expect to be there.

Sparkybackup.log below. Also terminal output while gui was running.


Mount information
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=236687,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=385440k,mode=755)
/dev/sdc3 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/111 type tmpfs (rw,nosuid,nodev,relatime,size=192720k,mode=700,uid=111,gid=120)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=192720k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdc4 on /media/russell/ExtraD type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sdc2 on /media/russell/Tosh2 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sdc1 on /media/russell/ToshOne type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sdb1 on /media/russell/Porteus64 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda1 on /media/russell/MintDX64 type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /media/russell/Manjaro type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /media/russell/Sparky type ext4 (rw,relatime,data=ordered)
/dev/sda4 on /media/russell/Ddrive type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
------------------------------------------------------
df information
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdc3        15G  3.8G  9.9G  28% /
udev             10M     0   10M   0% /dev
tmpfs           377M  5.7M  371M   2% /run
tmpfs           942M     0  942M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           942M     0  942M   0% /sys/fs/cgroup
tmpfs           189M  4.0K  189M   1% /run/user/111
tmpfs           189M  4.0K  189M   1% /run/user/1000
/dev/sdc4       251G   13G  225G   6% /media/russell/ExtraD
/dev/sdc2        15G  5.7G  7.9G  42% /media/russell/Tosh2
/dev/sdc1        15G  2.6G   11G  20% /media/russell/ToshOne
/dev/sdb1       1.9G  389M  1.4G  22% /media/russell/Porteus64
/dev/sda1        29G   18G  9.8G  64% /media/russell/MintDX64
/dev/sda2        14G  5.9G  7.7G  44% /media/russell/Manjaro
/dev/sda3        14G  6.7G  6.3G  52% /media/russell/Sparky
/dev/sda4        93G   65G   28G  71% /media/russell/Ddrive
------------------------------------------------------
/etc/remastersys.conf info
###SparkyBackup-System Global Configuration File###


# This is the temporary working directory and won't be included on the cd/dvd
WORKDIR="/home/sparkybackup-sys"


# Here you can add any other files or directories to be excluded from the live filesystem
# Separate each entry with a space
EXCLUDES=" "


# Here you can change the livecd/dvd username
LIVEUSER="live"


# Here you can change the name of the livecd/dvd label
LIVECDLABEL="SparkyLinux"


# Here you can change the name of the ISO file that is created
CUSTOMFILE="sparkylinux-3.6-arch-desktop"

# Do not change the CUSTOMISO option - change CUSTOMFILE instead of that
CUSTOMISO="$CUSTOMFILE.iso"


# Here you can change the 'volid' option of the ISO file
VOLID64BIT="SparkyISOHybrid64bit"
VOLID32BIT="SparkyISOHybrid32bit"


# Boot method for the live - ISOLINUX only
# If UFEI machnes - the grub-efi files are already provided for the live system
ISOBOOT="ISOLINUX"


# Options for mksquashfs
# Default is -no-recovery -always-use-fragments -b 1M
SQUASHFSOPTS="-no-recovery -comp xz -always-use-fragments -b 1M"


------------------------------------------------------
/etc/live/config.conf info
export LIVE_USERNAME="live"
export LIVE_USER_FULLNAME="Live session user"
export LIVE_HOSTNAME="live"
export LIVE_NOCONFIGS="xinit"
------------------------------------------------------
/etc/passwd info
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
Debian-exim:x:101:104::/var/spool/exim4:/bin/false
statd:x:102:65534::/var/lib/nfs:/bin/false
avahi-autoipd:x:103:107:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
messagebus:x:104:108::/var/run/dbus:/bin/false
systemd-timesync:x:105:112:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:106:113:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:107:114:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:108:115:systemd Bus Proxy,,,:/run/systemd:/bin/false
uuidd:x:100:101::/run/uuidd:/bin/false
saned:x:109:118::/var/lib/saned:/bin/false
colord:x:110:119:colord colour management daemon,,,:/var/lib/colord:/bin/false
lightdm:x:111:120:Light Display Manager:/var/lib/lightdm:/bin/false
vnstat:x:112:121::/var/lib/vnstat:/bin/false
dnsmasq:x:113:65534:dnsmasq,,,:/var/lib/misc:/bin/false
usbmux:x:114:46:usbmux daemon,,,:/var/lib/usbmux:/bin/false
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
------------------------------------------------------
/etc/group info
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:
fax:x:21:
voice:x:22:
cdrom:x:24:
floppy:x:25:
tape:x:26:
sudo:x:27:
audio:x:29:
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:
sasl:x:45:
plugdev:x:46:
staff:x:50:
games:x:60:
users:x:100:
crontab:x:102:
netdev:x:103:
Debian-exim:x:104:
mlocate:x:105:
ssh:x:106:
avahi-autoipd:x:107:
messagebus:x:108:
bluetooth:x:109:
systemd-journal:x:110:
utempter:x:111:
systemd-timesync:x:112:
systemd-network:x:113:
systemd-resolve:x:114:
systemd-bus-proxy:x:115:
input:x:116:
uuidd:x:101:
scanner:x:117:saned
saned:x:118:
colord:x:119:
lightdm:x:120:
vnstat:x:121:
nogroup:x:65534:
------------------------------------------------------
/etc/skel info
/etc/skel/
/etc/skel/.config
/etc/skel/.config/Trolltech.conf
/etc/skel/.config/pcmanfm
/etc/skel/.config/pcmanfm/default
/etc/skel/.config/pcmanfm/default/pcmanfm.conf
/etc/skel/.config/gtk-2.0
/etc/skel/.config/gtk-2.0/gtkfilechooser.ini
/etc/skel/.dmrc
/etc/skel/.bash_logout
/etc/skel/.bashrc
/etc/skel/.profile
------------------------------------------------------
/etc/X11/default-display-manager info
/usr/sbin/lightdm
------------------------------------------------------
SparkyBackup Version info
SPARKYBACKUPVERSION="20150204"

-----------------------------------------------------
Command-line options = dist
------------------------------------------------------
Creating sparkylinux-3.6-arch-desktop.iso in /home/sparkybackup-sys/sparkybackup-sys using /usr/bin/xorriso
Creating sparkylinux-3.6-arch-desktop.iso.md5 in /home/sparkybackup-sys/sparkybackup-sys
925M /home/sparkybackup-sys/sparkybackup-sys/sparkylinux-3.6-arch-desktop.iso



root@russ-laptop:/home/russell# sparkybackup-gui
Cleaning up /etc/skel of the files we will copy over
Copying config files to /etc/skel
rsync: link_stat "/home/russell/.xscreensaver" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
sed: can't read /etc/skel/.xscreensaver: No such file or directory
rsync: link_stat "/home/russell/.gnome2" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.icewm*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.jwmrc*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.fvwm*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.afterstep*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/mate" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.gtkrc*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.qt" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: change_dir "/home/russell//.kde" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: change_dir "/home/russell//.kde" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.pekwm" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.razor" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.wbar*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/autostart" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/lxpanel" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/lxsession" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/menus" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/nitrogen" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/openbox" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/qastools" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/razor" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/tint2" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/volumeicon" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/xfce4" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/gtk-3.0" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.e" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.elementary" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.fluxbox" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.fonts.conf*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.gtkrc-2.0*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.xinitrc*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/lxqt" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/pcmanfm-qt" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.cinnamon" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.su-to-rootrc" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/gnome-control-center" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rm: cannot remove '/etc/skel/.gnome2/keyrings/*': No such file or directory
grep: /etc/skel: Is a directory
/usr/bin/sparkybackup-gui: line 134:  2350 Killed                  $DIALOG $TITLE"$TITLETEXT" --no-buttons --progress --pulsate $TEXT"Copying your $SKELUSER user settings now. \nPlease wait."
ls: cannot access /home/sparkybackup-sys/sparkybackup-sys/ISOTMP/live/filesystem.squashfs: No such file or directory
/usr/bin/sparkybackup-gui: line 209: [: : integer expression expected
root@russ-laptop:/home/russell#

grandadruss

Getting closer, I think. Spotted tip to run apt-get clean, getting much smaller iso's now.  :)
From root terminal
sparkybackup backup myname.iso
works perfectly, apart from one little problem. home is re-named home_1, first line of sparkybackup.log below
Source directory entry home already used! - trying home_1

Custom-Iso-Builder unpacks iso for me but is still 'unable to find a shell'. I have deleted empty home directory and renamed home_1 to home using mc manually. Working on manual re-build of iso.

Also I find sparkybackup-gui will only build a distribution iso, into which I cannot log, as in previous post. I have checked that I haven't clicked the wrong option, backup is the only option to build iso. Couple of lines from log below


SPARKYBACKUPVERSION="20150223"
Command-line options = dist
/etc/live/config.conf info
export LIVE_USERNAME="live"
export LIVE_USER_FULLNAME="Live session user"
export LIVE_HOSTNAME="live"
export LIVE_NOCONFIGS="xinit"


Still trying, still having fun, still learning!  :)

pavroo

#2
QuoteCustom-Iso-Builder unpacks iso for me but is still 'unable to find a shell'
Change the default x-terminal-emulator from terminator to any:
su
update-alternatives --config x-terminal-emulator


QuoteBut, I can't get past the login screen
There is an issue with the live-installer you probably used to install sparky on your hard drive before.
If the old installer doesn't make the problem, the new one does.
It does not configure lightdm.conf file properly.
Edit as root the file:
/etc/lightdm/lightdm.conf
and change the line from:
#autologin=live
or whatever there is, to:
#autologin=
The place after "=" has to be empty.

One more thing - I never used "backup" option so I am not sure how does it work (or does this still work).
I use and update only 'dist' option so should be ok for you too.
Making an iso image next time, clean up before:
sudo sparkybackup clean
or via the gui window.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

grandadruss

Success  :) :)  Thankyou!

Changed default x-terminal-emulator to lxterminal. Fixed 'unable to find shell'
Edited lightdm.conf.
Custom-Iso-Builder re-built my edited backup iso, I made a bootable usb stick, booted straight into Sparky-i3, installed to my hard-drive, re-booted into new Sparky-i3 on hard-drive.
Very happy man now!  :)

Only had to cheat a little bit. Might only be because I am using i3-wm but Custom-Iso-Builder kept forking and getting ahead of itself. ie it opened a terminal to run mksquashfs and while that was running the gui went on to 'can't find squashfs - exiting now'. I just commented out what had been done in the script and re-ran C-I-B. Also removed -u switch from isohybrid.
Sparkylinux-installer did not like that I was 'me' instead of 'live', so I just commented out that check from the script then it ran fine.
Posting this grateful report of success from my new install. Yay!  :)

Will try to make dist iso next.
Thanks again, could not do these things without your scripts.

pavroo

That's great!

I never tried i3 before.
If you post list of files/directories where the i3 stores its config (in home dir) - I will add it to the sparky-backup-sys script. 
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

grandadruss

#5
Pretty sure all i3 config files are in ~/.i3 directory.

Edit: Also think files can be put in ~/.config/i3 directory. Sure I read that somewhere.

sparkybackup backup

copied my i3 setup into the iso perfectly, no re-configuring needed on install. Will try dist soon and report.

pavroo

I have reconfigured sparky-backup-sys and sparky old installer to be compatible with the new installer.
I am testing it now (version 20150313) so no fixing will be needed at lightdm.conf file.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

grandadruss

Have updated to latest sparky-backup-sys and ran


sparkybackup dist


Built iso which booted fine, but I still got stuck at the login screen.
Unpacked iso (using custom-iso-builder, works well with lxterminal), chroot'ed in and added user live, also uncommented the two autologin lines from lightdm.conf.
Quote
autologin-user=live
autologin-user-timeout=0

Re-packed, booted, auto-logged-in, installed to harddrive. But installed as backup mode, user live on machine live.
Will try again after deleting user live and with autologin-user=        blank - as you mentioned before - my bad!

Have moved i3 configs to /etc/i3/ where the default config was.

pavroo

#8
I have fixed the issue with the autologin-user in sparky-backup-sys, it works without any changes in lightdm.conf file.
So it still has to look like that:
#autologin-user=
It means that a new installation made by a new iso made by the newest version sparky-backup-sys works out of the box.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

grandadruss

I tried again. SPARKYBACKUPVERSION="20150314". lightdm.conf below. I still get stuck at login when booting iso.

Will try a different display manager next.

At least I can make installable backups, that is good progress.  :)


#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-load-seats = True to automatically set up multi-seat configuration from logind
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-load-seats=false
#logind-check-graphical=false
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters

#
# Seat defaults
#
# type = Seat type (xlocal, xremote)
# xdg-seat = Seat name to set pam_systemd XDG_SEAT variable and name to pass to X server
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xserver-layout = Layout to pass to X server
# xserver-config = Config file to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[SeatDefaults]
#type=xlocal
#xdg-seat=seat0
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xserver-layout=
#xserver-config=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
#greeter-hide-users=true
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
#autologin-user=
#autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=UNIMPLEMENTED
#exit-on-failure=false

#
# Seat configuration
#
# Each seat must start with "Seat:".
# Uses settings from [SeatDefaults], any of these can be overriden by setting them in this section.
#
#[Seat:0]

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn.  Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#key=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#width=1024
#height=768
#depth=8


pavroo

#10
#autologin-user=
#autologin-user-timeout=0

It's fine.
The two options will be changed 'on-the-fly' via live scripts, when live iso starts and installed system will have no changes.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

grandadruss

More progress  :)
Might have found my real problem - in changing display managers discovered I did not have 'xinit' installed. Oops!
Working on 'slim' and 'xinit' now.

pavroo

Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

View the most recent posts on the forum