Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    How to edit the BusyBox MOTD?

    Reply
    Page 1 of 2 | 1   2   | Next
    PontusOhman | # 1 | 2010-10-12, 19:24 | Report

    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:
    Originally Posted by
    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MohammadAG | # 2 | 2010-10-12, 20:10 | Report

    Line 7918 of BusyBox's source code, in shell/ash.c


    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by MohammadAG; 2010-10-12 at 20:21.
    The Following User Says Thank You to MohammadAG For This Useful Post:
    Aranel

     
    m0da | # 3 | 2010-10-12, 20:14 | Report

    Don't do this if you are new to Linux.

    MohammadAG is not new to Linux.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to m0da For This Useful Post:
    Aranel

     
    PontusOhman | # 4 | 2010-10-13, 07:52 | Report

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

    Are you sure Mohammed?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lma | # 5 | 2010-10-13, 07:55 | Report

    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.

    Originally Posted by
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    PontusOhman | # 6 | 2010-10-13, 17:53 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MohammadAG | # 7 | 2010-10-13, 18:36 | Report

    Then refer to my post above.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    igan | # 8 | 2012-11-28, 14:10 | Report

    How to point the banner welcome message to use /etc/motd instead

    Edit | Forward | Quote | Quick Reply | Thanks

     
    igan | # 9 | 2012-12-04, 05:04 | Report

    where is busybox source code i can't find it..

    Edit | Forward | Quote | Quick Reply | Thanks

     
    reinob | # 10 | 2012-12-04, 08:22 | Report

    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/

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to reinob For This Useful Post:
    misiak, mr_pingu

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout