maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How to edit the BusyBox MOTD? (https://talk.maemo.org/showthread.php?t=63732)

PontusOhman 2010-10-12 19:24

How to edit the BusyBox MOTD?
 
Ok folks... First off, to the folks that gonna say "if you are new to Linux" please DON'T write stuffs like that. Because you are only gonna offend your self :p
I'm an admin on MeeGoSweden.com and the owner of Meegonyheter.se and Team Contact for Ubuntu Sweden ;)

Back to topic now:
I wan't to edit the MOTD when I'm using SSH to the phone:
Quote:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.
But I have tried to edit the /etc/motd with no result =/ That's why I'm asking this here... Which file do I need to edit to fix this :D
Why do I wan't this? It's real easy, I don't like the built in MOTD when I'm connection to my phone. And because I got a custom MOTD on my server and computer at home, why not have it on your phone to. And in my case, my two N900 :cool:

Cheers
Pontus

MohammadAG 2010-10-12 20:10

Re: How to edit the BusyBox MOTD?
 
Line 7918 of BusyBox's source code, in shell/ash.c

http://i52.tinypic.com/99e8o4.jpg

m0da 2010-10-12 20:14

Re: How to edit the BusyBox MOTD?
 
Don't do this if you are new to Linux.

MohammadAG is not new to Linux.

PontusOhman 2010-10-13 07:52

Re: How to edit the BusyBox MOTD?
 
Quote:

Originally Posted by MohammadAG (Post 839551)
Line 7918 of BusyBox's source code, in shell/ash.c

http://i52.tinypic.com/99e8o4.jpg

Are you sure Mohammed?

lma 2010-10-13 07:55

Re: How to edit the BusyBox MOTD?
 
Quote:

Originally Posted by PontusOhman (Post 839508)
I wan't to edit the MOTD when I'm using SSH to the phone:

But I have tried to edit the /etc/motd with no result =/ That's why I'm asking this here... Which file do I need to edit to fix this :D

/etc/ssh/sshd_config (set PrintMotd to yes), and of course /etc/motd itself.

That's assuming your sshd is openssh - if you're using dropbear it's a compile-time option, so if it doesn't already print it you'll have to rebuild it.

Quote:

Why do I wan't this? It's real easy, I don't like the built in MOTD when I'm connection to my phone.
That's not a MOTD, just the busybox banner.

PontusOhman 2010-10-13 17:53

Re: How to edit the BusyBox MOTD?
 
Quote:

Originally Posted by lma (Post 839868)
/etc/ssh/sshd_config (set PrintMotd to yes), and of course /etc/motd itself.

That's assuming your sshd is openssh - if you're using dropbear it's a compile-time option, so if it doesn't already print it you'll have to rebuild it.



That's not a MOTD, just the busybox banner.

Thx for sorting this out :)
But it's the darn BusyBox banner I wan't to get rid of. Now I get both MOTD and the banner up after I login, and I don't want that =/

Cheers
Pontus

MohammadAG 2010-10-13 18:36

Re: How to edit the BusyBox MOTD?
 
Then refer to my post above.

igan 2012-11-28 14:10

Re: How to edit the BusyBox MOTD?
 
How to point the banner welcome message to use /etc/motd instead

igan 2012-12-04 05:04

Re: How to edit the BusyBox MOTD?
 
where is busybox source code i can't find it..

reinob 2012-12-04 08:22

Re: How to edit the BusyBox MOTD?
 
Quote:

Originally Posted by igan (Post 1301188)
where is busybox source code i can't find it..

http://maemo.org/packages/source/vie...l-1osso30+0m5/

if you want busybox-power,

http://maemo.org/packages/source/vie.../1.20.2power4/


All times are GMT. The time now is 23:05.

vBulletin® Version 3.8.8