• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 ... 13 14 [15] 16
211  Linux Stuff / General Linux questions / Re: booting up - how fast? on: August 16, 2009, 02:24:28 AM
A Reboot of my system connected via ssh, I can reconnect after about 20 seconds or so.
212  General Category / General Discussion / Re: Backup and restore of the plug on: August 15, 2009, 08:50:50 AM
I use this backup script  (I run it monthly in my crontab)

Code:
#!/bin/bash
DIR=/usb/DataBackups/SheevaRootFS/$(date +%Y%m%d)/
mkdir $DIR
dpkg -l |grep '^ii' > $DIR/InstalledPackages.txt
tar cjf /$DIR/backup.tar.bz2 --exclude=/usb --exclude=/lost+found --exclude=/proc --exclude=/dev --exclude=/sys /

Created a tar/bzip of the filesystem into a directory on my USB drive, it creates a directory of todays date to create the file into.  It also creates a text file containing details of what packages were installed when the snapshot was created.   NOTE the fact I also exclude my mounted USB HDD, as I don't want a backup of the USB HDD on the USB HDD :-)

Just save the script above as /etc/cron.monthly/backup.sh
 and give it execute permissions (chmod +x /etc/cron.monthly/backup.sh)
213  General Category / General Discussion / Re: Space saving on the plug on: August 15, 2009, 07:08:06 AM
Another tip:

I used the Alpha6 installer which came with a root filesystem, you can see what packages you have installed by using this command:

Code:
dpkg -l |grep '^ii'
(or if you want to send it to a text file:
Code:
dpkg -l |grep '^ii' >installedstuff.txt

I determined that I had x11-common installed, and I have no requirement for X11 on this box, so removed that, and all it's dependancies with the following command:

Code:
apt-get remove x11-common ; apt-get autoremove ; apt-get clean

This dropped by flash usage from 45% to 35%   Nice...
214  Linux Stuff / General Linux questions / Re: Swap file on HDD on: August 13, 2009, 03:01:13 PM
What are you running?
The plug has 512MB of DDR.


Lighttpd (PHP5)
TwonkyMediaserver
SSHD
Screen (wtorrent/rTorrent session)

I agree it's not alot, but I was under the impression that Linux would use up any available memory, as unused memory is wasted memory.  However if a page page request comes in, it can't do anything with it..
 
215  Linux Stuff / General Linux questions / Swap file on HDD on: August 13, 2009, 02:19:21 PM
Hi, I am getting regular occurances of the following in my DMESG:

Code:
page allocation failure. order:3, mode:0x4020

Looking into this some more, it seems it occurs when my memory is exhausted.  I suspect this is because I am not running a swap file/partition.

I have created a 500MB swapfile on my USB HDD, and it seems to have stopped the errors, but having the page file on my HDD means it never spins down !

Is there another solution?   I have been thinking of creating the swap file on SD card. Is this a safe thing to do?  Will it prematurely damage the card?
216  Linux Stuff / General Linux questions / Re: Experiences with wTorrent on Ubuntu 9.04 ? on: August 12, 2009, 03:52:04 PM
Got it all working eventually, but that guide is seriously messed up in places with silly inaccuracies.   Still it gave me enough to work on...
217  Linux Stuff / General Linux questions / Re: Experiences with wTorrent on Ubuntu 9.04 ? on: August 12, 2009, 01:45:29 PM
Code:
apt-get install rtorrent screen mc wget lighttpd gawk php5-cgi php5-common php5-sqlite php5-xmlrpc sqlite unzip php5-curl
218  Linux Stuff / General Linux questions / Re: Experiences with wTorrent on Ubuntu 9.04 ? on: August 12, 2009, 11:14:31 AM

That looks REALLY nice, however I fell at the first hurdle...

Code:
Err http://ports.ubuntu.com jaunty/universe libxmlrpc-c3 1.06.27-1
  404 Not Found
Failed to fetch http://ports.ubuntu.com/pool/universe/x/xmlrpc-c/libxmlrpc-c3_1.                                                                            06.27-1_armel.deb  404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis                                                                            sing?
219  General Category / General Discussion / Re: Order from global scale on: August 11, 2009, 10:57:11 AM
8 weeks here.  Be prepared for a long weight...   Marvell need to sort their stuff out, clearly Globalscale are not the right people to be partnering with, certainly not for the dev-kits and onesy twosy orders...
220  General Category / Application ideas and development Q/A / Re: Anybody here successfully running apache2/php5 on ShPlg? on: August 11, 2009, 10:46:05 AM
Have you considered Lighttpd rather than Apache?  It works just fine with PHP, and does pretty much everything Apache does without the bloat.  It's good enough that Google use it to host YouTube and it's also powering Wikipedia...

http://www.lighttpd.net/

I have it runnning on my plug just fine, and it was MUCH simplier to setup than Apache, with it's convoluted configuration files...
221  General Category / Application ideas and development Q/A / Re: Has Anyone Built A Live CD for Development? on: August 08, 2009, 05:30:06 AM
I'm a total newbie in the world of linux compiling let alone cross compiling...

I downloaded this, installed it, updated it, and now mooching around to see whats in there.  Where is the cross compiler, and how do I get started with it?

A Wiki page on how to cross compile a Hello World application would be a excellent start methinks...
222  General Category / General Discussion / Re: Configuring fstab on: August 07, 2009, 04:08:02 PM
I had the same problem.   This worked great for me..

http://plugcomputer.org/plugforum/index.php?topic=485.msg2858#msg2858
223  General Category / General Discussion / Static linked ImageMagick for Kirkwood? on: August 07, 2009, 03:59:12 PM
I have an application that needs the jpg scaling capabilities of ImageMagick, however unbuntu wants to gobble up 133MB of my precious flash space for it  Sad

Anyone have a pre-compiled binariy of convert compiled for ARM little endian that does not have huge amount of extrnal library dependancies?

Quote
root@ubuntu:/# apt-get install imagemagick
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  conkeror conkeror-spawn-process-helper consolekit cpp cpp-4.3 dbus dbus-x11
  dictionaries-common fontconfig ghostscript gsfonts hicolor-icon-theme
  hunspell-en-us imagemagick-doc libatk1.0-0 libatk1.0-data libcairo2
  libck-connector0 libcupsimage2 libdatrie0 libdbus-1-3 libdbus-glib-1-2
  libdjvulibre-text libdjvulibre21 libfontenc1 libgmp3c2 libgomp1 libgraphviz4
  libgs8 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libhunspell-1.2-0 libice6
  libidl0 libilmbase6 libjasper1 liblcms1 libltdl7 libmagickcore1
  libmagickwand1 libmpfr1ldbl libnspr4-0d libnss3-1d libopenexr6
  libpam-ck-connector libpango1.0-0 libpango1.0-common libpaper-utils
  libpaper1 libpixman-1-0 libpolkit2 libpython2.6 libsm6
  libstartup-notification0 libthai-data libthai0 libwmf0.2-7
  libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1 libxdamage1
  libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxrandr2 libxrender1
  libxt6 psfontmgr x-ttcidfont-conf xfonts-encodings xfonts-utils
  xulrunner-1.9
Suggested packages:
  emacs emacsen cpp-doc gcc-4.3-locales ispell emacsen-common jed-extra
  ghostscript-x hpijs hunspell openoffice.org-hunspell openoffice.org-core
  transfig librsvg2-common gvfs libjasper-runtime liblcms-utils
  ttf-japanese-gothic ttf-japanese-mincho ttf-thryomanes ttf-baekmuk
  ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
  ttf-arphic-bkai00mp libwmf0.2-7-gtk
Recommended packages:
  www-browser
The following NEW packages will be installed:
  conkeror conkeror-spawn-process-helper consolekit cpp cpp-4.3 dbus dbus-x11
  dictionaries-common fontconfig ghostscript gsfonts hicolor-icon-theme
  hunspell-en-us imagemagick imagemagick-doc libatk1.0-0 libatk1.0-data
  libcairo2 libck-connector0 libcupsimage2 libdatrie0 libdbus-1-3
  libdbus-glib-1-2 libdjvulibre-text libdjvulibre21 libfontenc1 libgmp3c2
  libgomp1 libgraphviz4 libgs8 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
  libhunspell-1.2-0 libice6 libidl0 libilmbase6 libjasper1 liblcms1 libltdl7
  libmagickcore1 libmagickwand1 libmpfr1ldbl libnspr4-0d libnss3-1d
  libopenexr6 libpam-ck-connector libpango1.0-0 libpango1.0-common
  libpaper-utils libpaper1 libpixman-1-0 libpolkit2 libpython2.6 libsm6
  libstartup-notification0 libthai-data libthai0 libwmf0.2-7
  libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1 libxdamage1
  libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxrandr2 libxrender1
  libxt6 psfontmgr x-ttcidfont-conf xfonts-encodings xfonts-utils
  xulrunner-1.9
0 upgraded, 77 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.8MB of archives.
After this operation, 133MB of additional disk space will be used.
Do you want to continue [Y/n]?
224  General Category / General Discussion / Re: Space saving on the plug on: August 07, 2009, 03:19:40 PM
Posted these tips in the Wiki:

http://plugcomputer.org/plugwiki/index.php/Freeing_up_space_on_the_plug#Other_Space_Saving_Tips

If anyone has any others, post there here, and I'll pop them in the Wiki, or tuck in and update the wiki youself.
225  General Category / General Discussion / Space saving on the plug on: August 05, 2009, 12:41:43 AM
I know many people run their root filesystems on extrernal SD, or USB HDD, but I am still perservering with using the onboard flash to store my root filesystem.

Anyone got any tips for freeing up space?   Whilst I'm not at a critical level (30% of the flash left), it's nice to ask these things in advance.

My Tips:

I found out about the strip command (in binutils package), that strips debugging symbols from files, making them smaller, thats a VERY handy tip that saved me quite alot of space (I ran it on everything in /usr/bin!!!)

I also found out I can do the following to show the size of a directories sub directories (sorted):

Code:
du -sm * | sort -n

Any other tips for saving space?  Anything that can be removed from the Ubuntu filesystem to save flash space?
Pages: 1 ... 13 14 [15] 16