There's new Monticello repository with pacakges for the KernelImage
* http://www.squeaksource.com/KernelImage.html
Here you can find modified versions of standard packages.
You need to have KernelImage with Monticello support. That means that you should create basic KernelImage, then download latest versions of packages Compression, Network, PackageInfo and Monticello from the repository, unzip it end load source.st files of all this packages.
Prepared image: http://www.comtalk.net/Squeak/uploads/98/KernelImage-MC-7061c.zip
Use external files for long scripts, current console cannot process multiline commands.
You may then reload this packages or newer versions from the repository again:
#('Compression-pk.10.mcz' 'Network-pk.41.mcz' 'PackageInfo-al.6.mcz' 'Monticello-pk.309.mcz') do: [:packageName | ((MCHttpRepository location: 'http://www.squeaksource.com/KernelImage' user: '' password: '') loadVersionFromFileNamed: packageName) load ]
Then you can load next packages like Comanche and Seaside.
#('SUnit-pk.35.mcz' 'GraphicsFiles-pk.3.mcz' 'DigitalSignatures-pk.3.mcz' 'DynamicBindings-gk.3.mcz' 'KomServices-pk.4.mcz' 'KomHttpServer-pk.2.mcz' 'Seaside2-pk.7.mcz') do: [:packageName | ((MCHttpRepository location: 'http://www.squeaksource.com/KernelImage' user: '' password: '') loadVersionFromFileNamed: packageName) load ]
Some other packages like Scriptaculous can be loaded from standard repositories.
((MCHttpRepository location: 'http://www.squeaksource.com/Seaside' user: '' password: '') loadVersionFromFileNamed: 'Scriptaculous-lr.141.mcz') load
How to save package:
| repository pkg | repository := (MCHttpRepository location: 'http://www.squeaksource.com/MyRepository' user: '' password: ''). pkg := MCPackage named: 'MyPackage'. pkg workingCopy repositoryGroup addRepository: repository. repository storeVersion: pkg workingCopy newVersion.
All packages except Seaside are clean. That means that the image has empty Undeclared collection. The maintainers of this packages should look at this versions and modify their packages to be more adapted for UI-less and Tools-less images.
http://www.comtalk.net/Squeak/98
-- Pavel
This is a great piece of work, thank you Pavel!
/Klaus
On Sun, 22 Oct 2006 16:37:10 +0200, Pavel Krivanek wrote:
There's new Monticello repository with pacakges for the KernelImage
* http://www.squeaksource.com/KernelImage.html
Here you can find modified versions of standard packages.
You need to have KernelImage with Monticello support. That means that you should create basic KernelImage, then download latest versions of packages Compression, Network, PackageInfo and Monticello from the repository, unzip it end load source.st files of all this packages.
Prepared image: http://www.comtalk.net/Squeak/uploads/98/KernelImage-MC-7061c.zip
Use external files for long scripts, current console cannot process multiline commands.
You may then reload this packages or newer versions from the repository again:
#('Compression-pk.10.mcz' 'Network-pk.41.mcz' 'PackageInfo-al.6.mcz' 'Monticello-pk.309.mcz') do: [:packageName | ((MCHttpRepository location: 'http://www.squeaksource.com/KernelImage' user: '' password: '') loadVersionFromFileNamed: packageName) load ]
Then you can load next packages like Comanche and Seaside.
#('SUnit-pk.35.mcz' 'GraphicsFiles-pk.3.mcz' 'DigitalSignatures-pk.3.mcz' 'DynamicBindings-gk.3.mcz' 'KomServices-pk.4.mcz' 'KomHttpServer-pk.2.mcz' 'Seaside2-pk.7.mcz') do: [:packageName | ((MCHttpRepository location: 'http://www.squeaksource.com/KernelImage' user: '' password: '') loadVersionFromFileNamed: packageName) load ]
Some other packages like Scriptaculous can be loaded from standard repositories.
((MCHttpRepository location: 'http://www.squeaksource.com/Seaside' user: '' password: '') loadVersionFromFileNamed: 'Scriptaculous-lr.141.mcz') load
How to save package:
| repository pkg | repository := (MCHttpRepository location: 'http://www.squeaksource.com/MyRepository' user: '' password: ''). pkg := MCPackage named: 'MyPackage'. pkg workingCopy repositoryGroup addRepository: repository. repository storeVersion: pkg workingCopy newVersion.
All packages except Seaside are clean. That means that the image has empty Undeclared collection. The maintainers of this packages should look at this versions and modify their packages to be more adapted for UI-less and Tools-less images.
http://www.comtalk.net/Squeak/98
-- Pavel
Pavel Krivanek wrote:
Prepared image: http://www.comtalk.net/Squeak/uploads/98/KernelImage-MC-7061c.zip
Using this image, and the instructions I found on your site, I was able to get a Seaside image up and running, with the web-based class browser (about 6Mb image).
One problem I had was with:
Use external files for long scripts, current console cannot process multiline commands.
I wasn't sure what syntax to use in the script file. The script was run using:
(FileStream readOnlyFileNamed: 'doit.st') fileIn.
So I wasn't sure where I needed to put '!' characters. Turns out that any sequence of Smalltalk statements seems to work for now.
I did have a problem using #ifError:, in the manner shown in the examples. I kept getting syntax errors, so I just skipped the #ifError: part.
I had a problem with Character>>codePoint. The method is listed in the browser, but when selected, there's no code. So I just used copy&paste from another image to redefine the method. #codePoint was needed to run postgres.
I was able to load the PostgreSQL Client and manually query a database for timenow(), but the test suite would not run correctly. I got a recurring console message: ----- *** EXCEPTION *** UnhandledError an OrderedCollection(ConsoleUIManager>>unhandledErrorDefaultAction: UnhandledError>>defaultAction UndefinedObject>>handleSignal: UnhandledError(Exception)>>signal UnhandledError class>>signalForException: MessageNotUnderstood(Error)>>defaultAction UndefinedObject>>handleSignal: MessageNotUnderstood(Exception)>>signal UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo:) ----- I closed the image, instead of letting it continue looping.
Thanks for all this great work, and I hope it becomes the starting point for a Squeak 4.0.
On 10/23/06, Yanni Chiu yanni@rogers.com wrote:
Pavel Krivanek wrote:
Prepared image: http://www.comtalk.net/Squeak/uploads/98/KernelImage-MC-7061c.zip
Using this image, and the instructions I found on your site, I was able to get a Seaside image up and running, with the web-based class browser (about 6Mb image).
One problem I had was with:
Use external files for long scripts, current console cannot process multiline commands.
I wasn't sure what syntax to use in the script file. The script was run using:
(FileStream readOnlyFileNamed: 'doit.st') fileIn.
So I wasn't sure where I needed to put '!' characters. Turns out that any sequence of Smalltalk statements seems to work for now.
If your script is short, you need no exclamation marks. Exclamation marks determine parts that are evaluated at once.
I did have a problem using #ifError:, in the manner shown in the examples. I kept getting syntax errors, so I just skipped the #ifError: part.
You will get syntax errors if your command are longer than single line so try to use wider window.
I had a problem with Character>>codePoint. The method is listed in the browser, but when selected, there's no code. So I just used copy&paste from another image to redefine the method. #codePoint was needed to run postgres.
This method was deleted automatically as unused. The reason why it is still visible in the browser is because the categorizers need to be updated. Thank you for the hint.
I was able to load the PostgreSQL Client and manually query a database for timenow(), but the test suite would not run correctly. I got a recurring console message:
You have to use the error handling to see more.
*** EXCEPTION *** UnhandledError an OrderedCollection(ConsoleUIManager>>unhandledErrorDefaultAction: UnhandledError>>defaultAction UndefinedObject>>handleSignal: UnhandledError(Exception)>>signal UnhandledError class>>signalForException: MessageNotUnderstood(Error)>>defaultAction UndefinedObject>>handleSignal: MessageNotUnderstood(Exception)>>signal UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo: UndefinedObject(Object)>>doesNotUnderstand: #do: Message>>sentTo:)
I closed the image, instead of letting it continue looping.
Thanks for all this great work, and I hope it becomes the starting point for a Squeak 4.0.
Look at [KernelImageOverride] issues on Mantis and it may be very soon ;-)
-- Pavel
Pavel Krivanek wrote:
You will get syntax errors if your command are longer than single line so try to use wider window.
Oh, now I get it. I was pasting a single line. I didn't know you meant one line in the console window.
I had a problem with Character>>codePoint. ...
This method was deleted automatically as unused.
It happens to be the ANSI standard method. That's why I use it instead of #asciiValue or some such (since I wanted my code to be portable across ST dialects - BTW, sticking to ANSI only doesn't make the code portable, but it's a step towards it).
In testing KernelImage I find that Network included MimeDocument but it appears to be a different version to that in 3.9
In 3.9 MimeDocument>>url is implemented amonst others whereas in the KernelImage version it is not.
Is this to be expected or am I missing something?
Keith Send instant messages to your online friends http://uk.messenger.yahoo.com
On 11/7/06, Keith Hodges keith_hodges@yahoo.co.uk wrote:
In testing KernelImage I find that Network included MimeDocument but it appears to be a different version to that in 3.9
In 3.9 MimeDocument>>url is implemented amonst others whereas in the KernelImage version it is not.
Is this to be expected or am I missing something?
Keith
Hmm, this is the only selector that is missing in this class and I cannot explain why. It will be fixed. Thank you...
-- Pavel
squeak-dev@lists.squeakfoundation.org