(resolved) Login welcome message

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
dimitrip
Posts: 8
Joined: Wed Sep 23, 2015 12:40 pm

(resolved) Login welcome message

Post by dimitrip »

Hi,
I have tried this wonderful distribution, well done!
How could I modify the message appearing aftern a succesfull Telnet login?
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Telnet welcome message

Post by Fourdee »

dimitrip wrote:Hi,
I have tried this wonderful distribution, well done!
How could I modify the message appearing aftern a succesfull Telnet login?
You can modify /root/.bashrc to change what occurs during each login. Please see this page for an example.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
dimitrip
Posts: 8
Joined: Wed Sep 23, 2015 12:40 pm

Re: Telnet welcome message

Post by dimitrip »

Thanks for the response. Your suggestion is, I think, better suited to more demanding changes, I only need to change the message after a successful login, nothing else.
Is there a file I need to edit for this?

Thanks in advance.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Telnet welcome message

Post by Fourdee »

dimitrip wrote:Thanks for the response. Your suggestion is, I think, better suited to more demanding changes, I only need to change the message after a successful login, nothing else.
Is there a file I need to edit for this?

Thanks in advance.
As my previous post, you need to edit the /root/.bashrc file. Please try the following:

Code: Select all

nano /root/.bashrc
At the end of the file, add a new line and add the following:

Code: Select all

echo -e "Hello, this occurs during login."
echo -e "This is another line of text"
Save and exit nano:
- ctrl+x
- press Y, then Enter

The next time you login, you will see your message displayed.

If you plan to remove or modify the DietPi login banner, you'll need to figure that one out yourself ;)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
dimitrip
Posts: 8
Joined: Wed Sep 23, 2015 12:40 pm

Re: (resolved) Login welcome message

Post by dimitrip »

Works! Many thans once more.
Post Reply