Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi friends, i will explain myself, the tittle ik is a little bad formuled.
I am making a linux system from scratch following half lfs and blfs book and half other sources.
When i boot in the system and choose the user i have a problem (only stetic, nothing funcional), in most distros when you start terminal it puts the user and the hostname of the pc, but in my chase only puts the name of the shell (in my chase bash and the version), i have searched about it and revised both /.bashrc and profile files of the shell to find the problem but it doesnt seems bad.
Someone knows how to fix it? Thanks in advance and sorry if it is bad explained, i´m not very good at english.
Hi friends, i will explain myself, the tittle ik is a little bad formuled.
I am making a linux system from scratch following half lfs and blfs book and half other sources.
When i boot in the system and choose the user i have a problem (only stetic, nothing funcional), in most distros when you start terminal it puts the user and the hostname of the pc, but in my chase only puts the name of the shell (in my chase bash and the version), i have searched about it and revised both /.bashrc and profile files of the shell to find the problem but it doesnt seems bad.
Someone knows how to fix it? Thanks in advance and sorry if it is bad explained, i´m not very good at english.
Examine the bash man page and look for discussion of the PS1 and PS2 variables.
Now check the startup files under /etc, etc/profile.d, and those under the users home to find where these are set. Ones you change under /etc change them for all users on the server, so take care. Changing those under the users home only affect that user, so there is less risk.
Agreed. Finding the mentions of the PS1 and PS2 variables in the bash manual will get you far. The fun stuff, including a lot of abbreviations, is in the section PROMPTING.
The default prompt for bash is e.g "bash-3.2$ " for lusers and "bash-3.2# " for root, where 3.2 is the bash version.
So there is nothing wrong with it.
Some distros set a user@hostname prompt in /etc/profile and /etc/bash.bashrc, they run before the user's .profile and .bashrc, respectively.
If your distro does not, then the administrator can provide it in the /etc/ files for all users on the system, or each user can do it in her .profile and .bashrc files.
If you go for the /etc/ files: some distros have them run /etc/profile.d/*.sh files, then you simply add a .sh file with the desired prompt. Some distros provide optional shell packages with files in /etc/profile.d/, so please check before you re-invent the wheel.
Thanks all for that really quick reply, i throught it will cost around 2 days to get a answer about this kind of specific issues.
I saw all replies and all aported a lot of info about the config, just modified the PS1 variable in /etc/profile with the PS1 content of szboardstretcher and started to see color in my screen, then revised the files of /skel/ and actualized it in the directory and in the home folders of all users ,modifing it with the new variables and advices with you sayed and all started work fine!, the only problem i have now is that i need to make the system bootable using GRUB, but that is other story, and i dont expect any problems about it, thanks all!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.