Active Topics

 



Notices


Reply
Thread Tools
Posts: 29 | Thanked: 0 times | Joined on Oct 2010 @ Sweden
#1
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
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:
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
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

Cheers
Pontus
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#2
Line 7918 of BusyBox's source code, in shell/ash.c


Last edited by MohammadAG; 2010-10-12 at 20:21.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 131 | Thanked: 78 times | Joined on May 2010
#3
Don't do this if you are new to Linux.

MohammadAG is not new to Linux.
 

The Following User Says Thank You to m0da For This Useful Post:
Posts: 29 | Thanked: 0 times | Joined on Oct 2010 @ Sweden
#4
Originally Posted by MohammadAG View Post
Line 7918 of BusyBox's source code, in shell/ash.c

Are you sure Mohammed?
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#5
Originally Posted by PontusOhman View Post
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
/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.

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.
 
Posts: 29 | Thanked: 0 times | Joined on Oct 2010 @ Sweden
#6
Originally Posted by lma View Post
/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's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#7
Then refer to my post above.
 
Posts: 7 | Thanked: 1 time | Joined on Nov 2012
#8
How to point the banner welcome message to use /etc/motd instead
 
Posts: 7 | Thanked: 1 time | Joined on Nov 2012
#9
where is busybox source code i can't find it..
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#10
Originally Posted by igan View Post
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/
 

The Following 2 Users Say Thank You to reinob For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:22.