Re: [Emc-users] Installing emc2 on Compact Flash drive

2008-01-11 Thread Ian Wright
It would be nice if someone would put up an image somewhere which could 
just be written to a flash drive - it would save other people a lot of 
trouble and would probably save us from having a lot of questions on the 
list when people's compilations go wrong...

-- 
Best wishes,

Ian

Ian W. Wright
Sheffield  UK

The difference between theory and practice is much smaller in theory than in 
practice...


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing emc2 on Compact Flash drive

2008-01-09 Thread acemi
I use my 2 GB flash disk for everyday works. It contains:

* Debian Lenny
* Fluxbox   
* Development tools to compile EMC2
* EMC2  
* Mail server (exim4)   
* OpenSSH server
* FTP server (pure-ftpd)
* DNS server (Bind9)
* Database server (MySQL)   
* Web server (apache2)  

* Desktop applications  


I have 400 MB free space now. I started to install with a basic
installation (without desktop and standard applications). Then I only
installed needed packages.  


Don't forget to do: 

apt-get clean   


or  


aptitude clean  



acemi

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing emc2 on Compact Flash drive

2008-01-09 Thread acemi
Hi Colin,

 wiki: will do. I didn't know I had the perms to create wiki pages on emc2.

To create a wiki page, go to preferences page
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?action=editprefs

Write your username and password. Pasword is emc for all users
To learn the basic steps:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?BasicSteps

To create a page:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?action=editid=Your_Page_Name

Change the Your_Page_Name part as you wish


 I thought about using the real ubuntu server install. I was going to try that 
 if this method hit a wall. You can compress the dd images using gzip on the 
 fly too, send dd output to stdout and pipe to gzip. Then do in reverse. I had 
 both drives installed when I used dd, so it was a direct copy, no 
 intermediate file. Took forever tho, I didn't tune my buffer size! The flash 
 write cycle limits playing a part there. I am aware that flash is a 
 read-then-write memory when the write buffer is smaller then the flash's 
 write buffer size. I would like to do away with swap all-together and just 
 have physical memory limits but I am not sure how the emc2 and other apps 
 will respond to that. Maybe some apps just expect that a swap would exist. 
 The install warns of this if you don't choose a swap part. Have you ever done 
 this? I would create a swap out of memory, but isnt that just redundant!!

Because of the write cycle limits, I use ram disk for some folders. To
do this, I edit /etc/fstab This is my /etc/fstab file:

proc/proc   procdefaults0   0
/dev/sda1   /   ext3defaults,errors=remount-ro 01
/dev/sda2   noneswapsw  0   0
none/tmptmpfs   defaults0   0
none/var/tmptmpfs   defaults0   0
none/var/runtmpfs   defaults0   0
none/var/lock   tmpfs   defaults0   0


acemi

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing emc2 on Compact Flash drive

2008-01-07 Thread Stephen Wille Padnos
Colin MacKenzie wrote:

 This is an informative thread only, but I got an installation of emc2 
 on a 2GB compact flash drive which plugs into my IDE on my 
 motherboard. I have an all solid state emc2 controller with wireless 
 network and card reader. Pretty slick. I plan on getting a small touch 
 screen and keyboard to mount on the machine too so its all self 
 countained.

Cool.  I have a full install, including developer tools, on some 8GB SSD 
drives.  They have about 3.1GB used, though I never bothered to 
uninstall anything.  It's likely that an install of the server version 
of 6.06LTS would be a better way to start, then add the EMC2 
repositories and install.

 To get emc2 ubuntu live cd to install on the flash took some work. The 
 min installation is just under 3GB. I first installed on a 10GB HD, 
 then uninstalled openoffice and other unneeded apps. Then shrunk the 
 partition, direct copied (dd) the partition to the CF card. The CF 
 card already had a partitioned swap and identical sized linux part 
 that I created. Reinstalled GRUB to the MBR on the CF and it worked!

There's a tool called partimage which I used to get the data off.  I had 
made a dd copy, but at ~8GB, that's a bit unweildy.  The PartImage 
compressed image was ~900MB.  I did it as a partition image, rather than 
a full disk, but it supports either.  It's a lot like Ghost, if you're 
familiar with that.

I'm not sure how well flash will work as swap.  Although the technology 
has kept improving, there are still write cycle limits for flash drives.

  Chances are, you could probably do the same thing on a 2GB USB Flash 
 Drive if your motherboard supports USB Flash Boot (most modern ones 
 do). You would definitely need 2GB tho, my linux part is 93% used 
 right now! Not much space left. (There are probably lots more useless 
 stuff that I can remove but interdepedancy with gnome makes it tough, 
 such as the sounds.)

Heh - yep.  Though there has been lots of talk about headless EMC2 
computers running the machine, using another PC for the GUI.  This is 
what my application was for - the embedded machine has no 
display/keyboard, if you need to communicate with it, you plug in an 
ethernet cable and use ssh.

I have some fairly minimalist runscripts to make runlevel 2 perform 
better for RT.  I'll post them on the wiki when I have a chance.  If you 
can, please either create a wiki page with your information, or if 
there's already a page that covers embedding EMC on a flash drive, 
please update it.

Thanks
- Steve



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
  


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing emc2 on Compact Flash drive

2008-01-07 Thread Colin MacKenzie
wiki: will do. I didn't know I had the perms to create wiki pages on emc2.

I thought about using the real ubuntu server install. I was going to try that 
if this method hit a wall. You can compress the dd images using gzip on the fly 
too, send dd output to stdout and pipe to gzip. Then do in reverse. I had both 
drives installed when I used dd, so it was a direct copy, no intermediate file. 
Took forever tho, I didn't tune my buffer size! The flash write cycle limits 
playing a part there. I am aware that flash is a read-then-write memory when 
the write buffer is smaller then the flash's write buffer size. I would like to 
do away with swap all-together and just have physical memory limits but I am 
not sure how the emc2 and other apps will respond to that. Maybe some apps just 
expect that a swap would exist. The install warns of this if you don't choose a 
swap part. Have you ever done this? I would create a swap out of memory, but 
isnt that just redundant!!

I have also been interested in headless EMC, i.e. EMC GUI on remote system. I 
think I already posted last week about it. However, now that I have played with 
it, I do like seeing what emc2 is doing while I am at the machine. So I think 
debugging g-code on remote machine then loading on the machine itself and 
seeing the monitor is the way to go. I plan to get a small touchscreen monitor 
soon and mount on the machine on a swivel arm. If I move emc2 to a lighter 
embedded processor then I will go headless and simple DRO instead.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Wille 
Padnos
Sent: Monday, January 07, 2008 3:58 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Installing emc2 on Compact Flash drive

Colin MacKenzie wrote:

 This is an informative thread only, but I got an installation of emc2
 on a 2GB compact flash drive which plugs into my IDE on my
 motherboard. I have an all solid state emc2 controller with wireless
 network and card reader. Pretty slick. I plan on getting a small touch
 screen and keyboard to mount on the machine too so its all self
 countained.

Cool.  I have a full install, including developer tools, on some 8GB SSD
drives.  They have about 3.1GB used, though I never bothered to
uninstall anything.  It's likely that an install of the server version
of 6.06LTS would be a better way to start, then add the EMC2
repositories and install.

 To get emc2 ubuntu live cd to install on the flash took some work. The
 min installation is just under 3GB. I first installed on a 10GB HD,
 then uninstalled openoffice and other unneeded apps. Then shrunk the
 partition, direct copied (dd) the partition to the CF card. The CF
 card already had a partitioned swap and identical sized linux part
 that I created. Reinstalled GRUB to the MBR on the CF and it worked!

There's a tool called partimage which I used to get the data off.  I had
made a dd copy, but at ~8GB, that's a bit unweildy.  The PartImage
compressed image was ~900MB.  I did it as a partition image, rather than
a full disk, but it supports either.  It's a lot like Ghost, if you're
familiar with that.

I'm not sure how well flash will work as swap.  Although the technology
has kept improving, there are still write cycle limits for flash drives.

  Chances are, you could probably do the same thing on a 2GB USB Flash
 Drive if your motherboard supports USB Flash Boot (most modern ones
 do). You would definitely need 2GB tho, my linux part is 93% used
 right now! Not much space left. (There are probably lots more useless
 stuff that I can remove but interdepedancy with gnome makes it tough,
 such as the sounds.)

Heh - yep.  Though there has been lots of talk about headless EMC2
computers running the machine, using another PC for the GUI.  This is
what my application was for - the embedded machine has no
display/keyboard, if you need to communicate with it, you plug in an
ethernet cable and use ssh.

I have some fairly minimalist runscripts to make runlevel 2 perform
better for RT.  I'll post them on the wiki when I have a chance.  If you
can, please either create a wiki page with your information, or if
there's already a page that covers embedding EMC on a flash drive,
please update it.

Thanks
- Steve


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing emc2 on Compact Flash drive

2008-01-07 Thread Eric H. Johnson
Chris,

I have EMC2 running under Kubuntu and in just under 2 GB, although I used a
4GB flash IDE drive. Very easy install actually. All I did was to
temporarily install an IDE CD-ROM drive, do a standard CD install of
Kubuntu, then install EMC2 from the network connection (Internet). The only
differences from the standard EMC2 install is to do a manual chmod on the
install script, and then run it manually from a terminal session.

Without uninstalling anything it comes in a little under 2GB.

Regards,
Eric


This is an informative thread only, but I got an installation of emc2 on a
2GB compact flash drive which plugs into my IDE on my motherboard. I have an
all solid state emc2 controller with wireless network and card reader.
Pretty slick. I plan on getting a small touch screen and keyboard to mount
on the machine too so its all self countained.

 

To get emc2 ubuntu live cd to install on the flash took some work. The min
installation is just under 3GB. I first installed on a 10GB HD, then
uninstalled openoffice and other unneeded apps. Then shrunk the partition,
direct copied (dd) the partition to the CF card. The CF card already had a
partitioned swap and identical sized linux part that I created. Reinstalled
GRUB to the MBR on the CF and it worked!

 

Chances are, you could probably do the same thing on a 2GB USB Flash Drive
if your motherboard supports USB Flash Boot (most modern ones do). You would
definitely need 2GB tho, my linux part is 93% used right now! Not much space
left. (There are probably lots more useless stuff that I can remove but
interdepedancy with gnome makes it tough, such as the sounds.)



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing emc2 on Compact Flash drive

2008-01-07 Thread Eric H. Johnson
Colin,

Oops, sorry, I of course meant Colin not Chris.

Regards,
Eric

Chris,

snip



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users