• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 [2]
16  General Category / General Discussion / Have a quick look at your SheevaPlug using a browser... on: December 16, 2009, 09:38:56 AM
I wrote a simple cgi-bin program that displays a bunch of settings on your Plug just by opening up a page in your browser.
The c source code as well as a compile exe are in the file at : http://www.scale18.com/temp/test.tar.gz
I would not use this if your plug was directly connected to the net as it does expose a whole bunch of stuff (or just use it temporarily and then delete it).
Just copy the 'test' executible to your cgi-bin folder (you need to have apache running) and then view your browser page at the /cgi-bin/test url for your plug.

As well as displaying the system info, it allows you to click around the various folders to view the directories contents.

Here is the output it generates for my plug:

Current date and time is: Wed, 16 Dec 2009 08:34:12 GMT
System Name: Linux
Node Name: sheeva
Release: 2.6.22.18
Version: #1 Thu Mar 19 14:46:22 IST 2009
Machine: armv5tejl
Time Since Boot:23 Hours,23 Minutes,40 Seconds
Total Ram: 515636k
Free Ram: 8032k
Shared Ram: 0k
Buffered Ram: 14324k
Total Swap: 0k
Free Swap: 0k
Total High Memory: 0k
Free High Memory: 0k
Memory Unit size in Bytes: 1
Current # Processes: 104
FileSystem    1k-blocks    Used    Available    Use%    Mounted on
rootfs    519168    189960    329208    37%    /
tmpfs    257816    0    257816    0%    /lib/init/rw
varrun    257816    2312    255504    1%    /var/run
varlock    257816    0    257816    0%    /var/lock
udev    257816    24    257792    0%    /dev
tmpfs    257816    0    257816    0%    /dev/shm
tmpfs    257816    21680    236136    8%    /var/cache/apt
/dev/mmcblk0p1    15306620    46936    14482140    0%    /mnt/sd
/dev/sda1    480719056    27155492    429144364    6%    /mnt/share1

CPU Info:
Processor : ARM926EJ-S rev 1 (v5l)
BogoMIPS : 1192.75
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 16384
D assoc : 4
D line length : 32
D sets : 128

Hardware : Feroceon-KW
Revision : 0000
Serial : 0000000000000000

Devices:
Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
10 misc
13 input
14 sound
21 sg
89 i2c
90 mtd
100 telephony
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
254 usb_endpoint

Block devices:
8 sd
9 md
31 mtdblock
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
93 nftl
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc
253 device-mapper
254 mdp

Filesystems:
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev devpts
ext3
ext2
nodev ramfs
msdos
vfat
nodev nfs
ntfs
jffs2
nodev rpc_pipefs

Interfaces:
eth0 address family: 17 (AF_PACKET)
eth1 address family: 17 (AF_PACKET)
lo address family: 17 (AF_PACKET)
eth0 address family: 2 (AF_INET) address: <192.168.1.113>
lo address family: 2 (AF_INET) address: <127.0.0.1>

Processes:
1-/sbin/init (init)
2-(kthreadd)
3-(ksoftirqd/0)
4-(events/0)
5-(khelper)
50-(kblockd/0)
53-(khubd)
55-(kmmcd)
69-(crypto)
70-(crypto_ret)
75-(pdflush)
76-(pdflush)
77-(kswapd0)
78-(aio/0)
215-(mtdblockd)
216-(nftld)
243-(scsi_eh_0)
244-(usb-storage)
251-(kcryptd/0)
265-(mmcqd)
400-/sbin/udevd --daemon (udevd)
717-(jffs2_gcd_mtd1)
939-dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp3/dhclient.eth0.leases eth0 (dhclient3)
1173-/sbin/getty 38400 tty4 (getty)
1176-/sbin/getty 38400 tty5 (getty)
1179-/sbin/getty 38400 tty2 (getty)
1182-/sbin/getty 38400 tty3 (getty)
1184-/sbin/getty 38400 tty6 (getty)
1185-/sbin/getty 115200 ttyS0 (getty)
1224-/sbin/syslogd -u syslog (syslogd)
1242-/bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg (dd)
1244-/sbin/klogd -P /var/run/klogd/kmsg (klogd)
1262-/usr/sbin/sshd (sshd)
1277-/usr/sbin/nmbd -D (nmbd)
1279-/usr/sbin/smbd -D (smbd)
1298-/usr/sbin/smbd -D (smbd)
1305-/usr/sbin/cron (cron)
1349-/root/discoverd (discoverd)
1392-svnserve -d -r /mnt/sd/svnrepos (svnserve)
1396-/sbin/getty 38400 tty1 (getty)
1509-/usr/sbin/apache2 -k start (apache2)
1510-/usr/sbin/apache2 -k start (apache2)
1513-/usr/sbin/apache2 -k start (apache2)
1515-/usr/sbin/apache2 -k start (apache2)
1803-/usr/sbin/smbd -D (smbd)
2455-/usr/sbin/smbd -D (smbd)
3363-/usr/sbin/smbd -D (smbd)
3373-sshd: root@notty (sshd)
3375-/usr/lib/openssh/sftp-server (sftp-server)
3379-sshd: root@pts/0 (sshd)
3381--bash (bash)
3435-/mnt/sd/cgi-bin/test (test)
Web Enviroment Variables:
GATEWAY_INTERFACE='CGI/1.1'
SERVER_NAME='sheeva'
SERVER_SOFTWARE='Apache/2.2.11 (Ubuntu)'
SERVER_PROTOCOL='HTTP/1.1'
SERVER_PORT='80'
REQUEST_METHOD='GET'
SCRIPT_NAME='/cgi-bin/test'
DOCUMENT_ROOT='/mnt/sd/www'
QUERY_STRING=''
HTTP_HOST='sheeva'
REMOTE_ADDR='192.168.1.115'
HTTP_ACCEPT='text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_USER_AGENT='Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5'
HTTP_IF_MODIFIED_SINCE='Wed, 16 Dec 2009 08:18:16 GMT'
HTTP_REFERER='http://sheeva/'
Home Directory:'/'
dir /bin
dir /dev
dir /etc
dir /lib
dir /mnt
dir /opt
dir /srv
dir /tmp
dir /sys
dir /var
dir /usr
dir /boot
dir /home
dir /proc
dir /sbin
dir /root
dir /media
dir /selinux
17  Linux Stuff / General Linux questions / Re: How to start subversion's svnserve daemon automatically? on: December 15, 2009, 10:16:05 AM
Thanks!!

Seems inetd is not installed so I just added the svnserve init code to /etc/rc.local instead. But, at first it still didn't work as the default /etc/rc.local is messed up so I had to fix it by following the instructions here: http://computingplugs.com/index.php/Fixing_apt-get

Kevin
18  Linux Stuff / General Linux questions / Re: USB Hard Drive on: December 14, 2009, 11:30:02 PM
I'm a total newbie with regard to Linux and I had this same problem. My USB HD was brand new (empty) so the easiest fix for me was to reformat it using ext2 instead of the fat32 that it came with. Then all I had to do was chmod 777 to the drive and that worked for me.

Kevin
19  Linux Stuff / General Linux questions / How to start subversion's svnserve daemon automatically? on: December 14, 2009, 11:19:27 PM
I got my plug last week. I have a 16gb sd card and a 500gb USB drive attached.

So far I have subversion and a samba share working on it.

I can start svnserve manually by typing svnserve -d -r /mnt/sd/svnrepos
and that works fine.

But I want it to work automatically when re-booting so I added

svn stream tcp nowait root /usr/bin/svnserve svnserve -i -r /mnt/sd/svnrepos

to my /etc/inetd.conf file and when I reboot it doesn't run automatically when trying to connect.

Is my line in the inetd.conf file correct?
Help!
Thanks
Kevin
Pages: 1 [2]