-
Not sure what might be going on here or if I am doing something wrong. I have found that images customized and burned with sdm don't display the command prompts in LXTerminal in color as they normally do. Everything is just monochrome including the different file types displayed by 'ls'. I was using a lxterminal.conf file to set font size and scrollback lines, but the problem persists even if I remove that switch from sdm-customize. I rechecked that I hadn't somehow used a Buster conf file (there are a couple of differences in the Preferences options) and recopied the lxterminal.conf file from a running Bullseye system. Restarted LXTerminal and see same behaviour. I flashed a brand new Bullseye image from raspberry.com using RPi Imager and it show the colors as expected. When using the sdm images there is also a space missing before the '$' in the command prompt that appears on all my other systems. I can't demonstrate the color differences here, but this difference in the prompt is shown below. Strawberry is another Bullseye system previously flashed via Imager. KeyLime was customized and burned via sdm. Is sdm somehow affecting the LXTerminal settings or did I miss something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
sdm doesn't do ANYTHING relative to lxterminal unless you explicitly tell it to using Can you provide the sdm command line and any lxde config-related files you're using so that I can have a look at it? Without a repro, I can only guess that you have left a file in /home/{username}/.config/lxterminal that is causing this. |
Beta Was this translation helpful? Give feedback.
-
Took a look and found that the color prompt is set by ~username/.bashrc. When the Pi software creates a new user (for instance, when the Pi first boots), it copies a few files (.bashrc, .bash_logout, and .profile) into the user directory from /etc/skel/.bashrc. sdm doesn't do that; will fix. |
Beta Was this translation helpful? Give feedback.
-
Yes, this is correct. During a customize, adding a user is done with If the home directory exists However, in the case of It's definitely an oddity, but once this update is checked in, the behavior will be consistent between the two. Except in the case of someone who wants to use /etc/skel to add additional files to the login directory. That won't get picked up in Phase0/Phase1 because I don't currently process all the files in /etc/skel. I could, but I think I'll wait on that for now. |
Beta Was this translation helpful? Give feedback.
Yes, this is correct. During a customize, adding a user is done with
useradd --no-create-home
because I (or maybe you) may want to copy files into your login directory from the running system during a custom phase script or plugin Phase 0.If the home directory exists
useradd --create-home
will not copy the /etc/skel files into it. SO, in the Phase0/Phase1 case (e.g.,--user bls
), the /etc/skel files don't get copied, and the result is that your prompts aren't colored. I've updated sdm (not checked in yet) to explicitly copy the /etc/skel files (.profile, .bashrc, .bash_logout) that don't exist in the login directory.However, in the case of
--burn --user des
, sdm IS able to useuseradd -…