• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Hardware and U-Boot firmware / Hardware / Re: Transcend Storejet 2.5" USB disk not recognized at all on: March 11, 2010, 11:48:02 AM
Damn, should have checked in the forum before plugging in USB powered external HDD.   My sheevaplug's power supply also got fried  up Sad
2  Hardware and U-Boot firmware / Hardware / Transcend Storejet 2.5" USB disk not recognized at all on: March 11, 2010, 11:15:28 AM
Hi,


Anybody tried booting Sheevaplug from USB powered external harddisk?

In my case, hdd is transcend storejet 25M, and u-boot doesn't seem to recognize it at all.  usb start command says it couldn't find any storage devices Sad


Code:
Hit any key to stop autoboot:  0
Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 1 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found
Marvell>>


Any pointers?


thanks.
3  General Category / Success stories / Re: Success Story: Web based terminal on sheevaplug on: August 28, 2009, 12:15:34 AM

I suspect the ssh command (with %u) might not work; as i understood it, anytermd doesn't have in built support for user authentication, so %u would not be resolved to any user name (i tried just now).

Okay, I just tried this to get the above user name problem solved:

Code:
/root/bin/anytermd -p 80 -c 'echo -n "username: " && read USER && ssh "$USER@localhost"' --user nobody

It worked Cheesy

Though this works, password is still sent as plain text; we need https support for it, would stunnel help?
4  General Category / Success stories / Re: Success Story: Web based terminal on sheevaplug on: August 27, 2009, 08:08:34 PM
Interesting. Wouldn't this have the same result, completely without Apache:

Code:
/root/bin/anytermd -c 'ssh %u@localhost' -p 80 --auth null --user nobody

You'd miss out on the access control of Apache though. Maybe some setup with xinetd is also possible.

Yes, anyterm on port 80 would remove complex apache configuration steps. 

I suspect the ssh command (with %u) might not work; as i understood it, anytermd doesn't have in built support for user authentication, so %u would not be resolved to any user name (i tried just now).   Anytermd documentation recommends using apache authentication Sad

Without ssh command, anytermd would give shell access (under nobody user) to anybody who connects to the web server.
5  General Category / Success stories / Re: Using the plug as a full PC with an external display (usb2vga) on: August 26, 2009, 08:59:02 PM
Cool.

Does that usb2vga device need additional power supply?
6  General Category / Success stories / Re: Success Story: Web based terminal on sheevaplug on: August 26, 2009, 08:52:17 PM
I wonder if any practical communication to the outside can at all be done if all outgoing ports are blocked; perhaps those types of extreme high temperature fire walls exist ??

IMO they are more common than you think.  In the last three work places i stayed (college, first company, and now 2nd company) has IT blocked all outgoing connections (except http and https) for regular users.  I cannot even checkout an outside svn repository from work Sad

This doesn't mean mail server, web server, etc. don't work; as they are maintained by IT department people, they do open open outgoing ports, but only selectively.
7  General Category / Success stories / Re: Success Story: Web based terminal on sheevaplug on: August 26, 2009, 06:55:56 PM
I use Ajaxterm, it's just as good but a million times easier to setup and configure..

apt-get install ajaxterm

you can then log on remotely.  You need to tweak either apache or lighttpd if you want remote access but the Ajaxterm documentation tells you how to do that.

I didn't know about ajaxterm, i will try it now Smiley
8  General Category / Success stories / Re: Success Story: Web based terminal on sheevaplug on: August 26, 2009, 06:54:34 PM
This sounds good.  However, before I spend any time or disk space on this,  may I ask what is the advantages of this over ssh with a good graphical ftp/shell web client? (I was think of ssh.com client or even a simple ssh shell such as putty).  You can access the box thru internet without any servers like apache...

But you cannot access it behind a firewall, right?  This setup i did is to access remote machine when all outgoing ports are blocked except 80 Smiley
9  General Category / Success stories / Re: Success Story: Web based terminal on sheevaplug on: August 26, 2009, 08:42:33 AM
Attached is the screenshot of how it looks:

Unfortunately terminal text is not visible in the screenshot - Sad
10  General Category / Success stories / Success Story: Web based terminal on sheevaplug on: August 26, 2009, 08:31:32 AM
Today I managed to setup web based terminal on my sheevaplug.  It was
an interesting experience, being able to access sheevaplug from
behind firewall from office.  Below is the procedure that worked for
me.

- Install apache webserver and enable proxy_http apache module

Code:
   aptitude install apache2
   a2enmod proxy_http

- Build anytermd on sheevaplug

   Unfortunately anytermd package is not available in debian, so
   you need to build it manually.  It needs build-essential, libboost-dev
   and zlib1g-dev packages.  You need subversion also to checkout
   the sources.

Code:
   aptitude install subversion build-essential
   aptitude install libboost-dev zlib1g-dev

   svn co http://svn.anyterm.org/anyterm/tags/releases/1.1/1.1.29 anyterm

   cd anyterm && make
   mkdir ~/bin && cp ./anytermd ~/bin

- Update rc.local to auto start anytermd

   You need to start anytermd daemon just built on sheevaplug. It doesn't
   come with any init.d scripts. So i decided to start it automatically using
   plain old /etc/rc.local mechanism.  For this, add

Code:
   /root/bin/anytermd -c 'ssh %u@localhost' -p 7777 --auth null --user nobody

   to /etc/rc.local file before any 'exit 0' statement and run it for current boot session.

Code:
    sh /etc/rc.local

- Configure and enable virtual-host in apache

   If your webserver DNS address is 'plug.homelinux.org', create a new
   file with same name in /etc/apache2/sites-available directory.
   Update its contents as shown below:

Code:
   cat /etc/apache2/sites-availabe/plug.homelinux.org
<VirtualHost *:80>
  DocumentRoot /srv/www/plug.homelinux.org/htdocs
  ServerAdmin iambvk@gmail.com
  ServerName plug.homelinux.org

  <Proxy *>
    Order deny,allow
    allow from all
  </Proxy>

  ProxyRequests Off
  SetEnv proxy-chain-auth yes         

  <Location "/term">
    #
    # anytermd is executed as:
    #
    # anytermd -c "/usr/bin/ssh %u@localhost" -p 7777 -u nobody -a null
    #
    ProxyPass http://localhost:7777 ttl=60
    ProxyPassReverse http://localhost:7777

    AuthType Basic
    AuthName "Web Terminal"
    AuthUserFile "/srv/www/plug.homelinux.org/htpasswd"
    require valid-user
  </Location>
  # Logfiles
  LogLevel warn
  ErrorLog  /srv/www/plug.homelinux.org/logs/error.log
  CustomLog /srv/www/plug.homelinux.org/logs/access.log combined
</VirtualHost>

   Note above that website files would be located in
   /srv/www/plug.homelinux.org/htdocs directory and logs go into
   /srv/www/plug.homelinux.org/logs directory.  So create those
   directories and enable the virtual-host:

Code:
   mkdir -p /srv/www/plug.homelinux.org/htdocs
   mkdir -p /srv/www/plug.homelinux.org/logs
   a2ensite plug.homelinux.org

   Also, notice the Location statement in the above configuration,
   which configures apache to redirect all requests to /term
   directory (as http://plug.homelinux.org/term) to
   anytermd executing on port 7777 (started from rc.local).

- Create username and passwords to access the web terminal

   In the above apache virtual-host configuration, notice the
   'AuthUserFile' statement.  It configures apache to ask for username
   and password when accessing the anytermd location ('/term'). These
   username passwords are stored in file,
   /srv/www/plug.homelinux.org/htpasswd.  You need to create this file
   using htpasswd utility:

Code:
   touch /srv/www/plug.homelinux.org/htpasswd
   htpasswd /srv/www/plug.homelinux.org/htpasswd user1
   password

   Note that this password can be different from the login password
   for that user on sheevaplug, but username must match.
   Unfortunately user needs to enter two passwords to get access to
   the terminal, first one for authenticating with apache (as in
   htpasswd) and another for his Linux account login (because
   anytermd is configured to execute 'ssh' command automatically when
   connected).

- Check apache configuration and reload

Code:
   apache2ctl configtest
   invoke-rc.d apache2 restart

- Open your browser and visit http://plug.homelinux.org/term to get
  the web terminal in action.


I just jope everything works out for you, enjoy :-)
11  Linux Stuff / Kernel / Re: 2.6.30.5 new release on: August 22, 2009, 07:03:57 PM
What was your exact full command line, for future easy reference?

rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) root=/dev/mtdblock1 rw rootfstype=ext3 rootdelay=10 root=/dev/sda1 rw


some keys are repeated in the command line because, i used "setenv bootargs $(bootargs) rootfstype=ext3 rootdelay=10 root=/dev/sda1 rw", which is kind of recursive definition, but easier on eyes Smiley  Only last key=value pair seems to be considered by the kernel, which is what i wanted.


12  Linux Stuff / Kernel / Re: 2.6.30.5 new release on: August 22, 2009, 09:26:08 AM
Does this 2.6.30.5 kernel has inbuilt support for USB disks?

Can i do root=/dev/sda1 without any initrd image setup with this kernel?  IMO I need this to boot directly from USB instead of mtd.


BTW, i find this is the most easiest kernel upgrade procedure among all.  Thanks for your efforts  Smiley




OK, i got it working with root=/dev/sda1 by adding rootdelay=10 to the command line  Smiley
13  Linux Stuff / Kernel / Re: 2.6.30.5 new release on: August 19, 2009, 08:51:07 PM
Does this 2.6.30.5 kernel has inbuilt support for USB disks?

Can i do root=/dev/sda1 without any initrd image setup with this kernel?  IMO I need this to boot directly from USB instead of mtd.


BTW, i find this is the most easiest kernel upgrade procedure among all.  Thanks for your efforts  Smiley

Pages: [1]