Ask your questions here.
Post a reply

lightdm login / language FR / PXE boot toram parameter

Mon Mar 02, 2015 8:42 pm

Hello,

First of all it's a great tools :D

I was using a debian system on pxe boot with nfs. Then, for a performance reason, i change for nbd instead of nfs.
Today, i still want to boot from PXE, but from a squashfs image which a copy to the ram.

With refracta i can create an initrd / vmlinuz/ squashfs very quickly.

Everything is working fine, except that :

- I can't have the screen login where a i can put the login and the password with lightdm. :( . But i can launch startx and everything works.

- In xfce, everything is in english, not in French ( like it was in the master ).

- Even if i put "toram" in the pxe boot, the filesystem is not copied into the RAM.

My system :

-Debian jessie 64 bits .

Here is the line in the PXE file for the boot:

Code:
LABEL Debian iso
kernel vmlinuz
APPEND initrd=initrd boot=live netboot=nfs nfsroot=192.168.1.223:/Virt/refracta toram=filesystem.squashfs ip=dhcp


If someone can resolv any problem ? thanks in advance.

Dark26


Ps: sorry for the english, a little frenchy here 8-)

Re: lightdm login / language FR / PXE boot toram parameter

Mon Mar 02, 2015 11:29 pm

What's nbd? You mean samba? If so, I think it should be 'netboot=cifs'.
Also, I think 'toram' should be alone.

Did you unpack the iso? If filesystem.squashfs is in Virt/refracta/live/ then you may not need to name filesystem.squashfs on the boot command. Live-boot will look for it in a folder named 'live' and should find it the way you have written the path. But I've never done a network boot, so I could be wrong.

If you were setting French in the lightdm login page, that won't get copied over to a snapshot. To get the whole system in another language, you must add it to the boot command line, and then it will be copied over into the snapshot. Add the following to the append line.
Code:
config=locales,keyboard-configuration locales=fr_FR.UTF-8 keyboard-layouts=fr
That's for wheezy. If you're running jessie or sid, then change 'config=' to 'components='.

Also, you may need to specify additional components (like all of them) if you specify any. Take a look in /var/lib/live/config when you're in a live session to see what normally runs.

Re: lightdm login / language FR / PXE boot toram parameter

Wed Mar 04, 2015 7:02 pm

Hello again,

I mean NBD for Network bloc device.
http://en.wikipedia.org/wiki/Network_block_device
For resume , you can mount a disk image over the network. ;)

Thank for your help, i have something that is working now. ( and yes i have unpack the iso )
I put this in the pxe boot :
Code:
LABEL Debian isooo
         kernel vmlinuz_iso
APPEND initrd=initrd_iso boot=live toram netboot=nfs nfsroot=192.168.1.223:/Virt/refracta/ ip=dhcp


and there is a folder name "live" with the file "filesystem.squashfs" in it, on the share folder refracta

Thanks.

But i still have the language problem for lightdm. Where i change the settings ? where i put
Code:
config=locales,keyboard-configuration locales=fr_FR.UTF-8 keyboard-layouts=fr
?

In the append line of the pxe boot, or somewhere else before creating the iso file ?

Thanks

dark26


edit : Another good news. i put the options on the append of the pxe boot, and it-s in french again 8-) .

But i still can't have the login sceen, with lightdm. But the goal it close

Edit :

I found the problem. It 's seeam that your script ( i have to confirm that), modified the lightdm.conf

Re: lightdm login / language FR / PXE boot toram parameter

Thu Mar 05, 2015 1:08 pm

Yes, the script will disable autologin for lightdm, gdm, and others. Check etc/lightdm/lightdm.conf or lightdm-gtk-greeter.conf. The autologin and autologin user lines get commented out or not, depending on what you answer (or select) in the installer.

Maybe related...
https://bugs.launchpad.net/ubuntu/+sour ... ug/1119209

Re: lightdm login / language FR / PXE boot toram parameter

Fri Mar 06, 2015 6:50 pm

Bonjour,

I still have an issue with lightdm who doesn't work.

So i create a file name .profile in my home directory with this

Code:
#Startx Automatically
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
. startx
logout
fi


so when i log into the tty, it launch automatically the X serveur end everything if fine 8-)

So far so good

Dark26
Post a reply