Usplash Maker 1.03

Source code I have written openly published for your viewing pleasure.

Did you find this source useful / informative?

Yes
16
94%
No
1
6%
 
Total votes : 17



Re: Usplash Maker

Postby TheeMahn » Thu Sep 04, 2008 1:11 am

red_team316 wrote:Yea, post a link, email, PM or whatever is easiest for you. Not only may it help me understand zenity better I'm curious as to how that would also tie into a preview window, thats something I thought would be a great feature. I know there is a way to do it with imagemagick...maybe I need to look into that as my original thought was to have the GUI do it(the gtk.gdk.pixbuf from one of my earlier posts). Not only would having imagemagick do it be another option, it wouldn't tie it to any particular GUI which would be preferable.

So you combined TUM and GDM maker...whats that make...GUM (GDM/Usplash Maker)? :P

OT: I like your new av, saw your post about the animation plugin. Kinda looks like it takes a graphic and wraps it around a 3D primative(I would figure it does cubes and other shapes too).



I enjoy the name, pipe all output x & y as well is height to c code the results? Builds to what they asked, I am having issues with imagimagik (deliberately spelled wrong I do not want to turn up #1 in google for the term) that I am not enjoying will not convert my images to 8 bit, this issue did not exist in gusty, If need be when I have time will write code to bring it back, that is a bad thing & time is not on my side, I have a multitude of "jobs".

TheeMahn
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: Over 50 TB total Mechanical and Multiple SSD's. (Sans Digital 32TB raid tower - dual Esata)
Raid: Onboard 0 used, Multiple NAS's on Gigabit AC wireless 3200 (Netgear X6 r8000)
Monitors: 4K Samsung 28", HannsG HH281, Various others
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers (just drug up the other 2 speakers today)
User avatar
TheeMahn
Site Admin
 
Posts: 4197
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 47
Operating System: Ultimate Edition Developer



Re: Usplash Maker

Postby triniclemist90 » Fri Sep 05, 2008 1:53 pm

I am having a problem. For whatever reason whenever I try to create a usplash image it makes a work in progress folder. Then this folder is deleted, but is not replaced by the .so file. I followed the instructions on how to install it and everything looks like on your images, but nothing appears. I have tried .png and .jpg at different resolutions. I have a screen recording don't know if there is a way to attach a screen recording to show what is happening.

thanks for the help,
alex
Sony Vaio Laptop
2x Intel Core 2 Duo @ 2.00 GHz
2054 MB of RAM
I believe it has a 256 MB graphics card
Macbook Pro
2x Intel Core 2 Duo @ 2.5 GHz 6 mb L2 Cache
2 gigs of ram
512 mb graphics card
triniclemist90
U.E. Newbie
U.E. Newbie
 
Posts: 18
Joined: Fri Aug 01, 2008 1:17 pm
Operating System: Ultimate Edition 2.1 32 BIT



Re: Usplash Maker

Postby red_team316 » Sat Sep 06, 2008 12:54 am

TheeMahn, I'm pretty sure I experienced the problem you're having awhile back too, although I think it was there for me in gutsy. If you don't include the "-depth 8" option, it will create 48-bit images, which is wrong. I was so confused at first and thought it was a 64-bit problem, but I googled it and found out that there actually is such a thing. 48-bit. It's essentially the same as a 16-bit image(which makes more sense to me lol).

Grab this from one of my earlier posts. I haven't had any problems with it creating 48-bit images since I added the "-depth 8".
Example usage: /bin/bash usplashmagick-prepareimages 640x480 800x600 1280x1024 1600x1200
usplashmagick.tar.gz
When hovering over the images it creates, they should all have a bit-depth of 8 and a color mode of palette(Text may look different with GNOME).


What I was getting at is taking the background and throbber images and merging them into one so that it could be used as a preview. Probably something that would work like this:
Example Idea: /bin/bash usplashmagick-makepreview -size 640x480 -px 212 -py 297 -pw 218 -ph 8 -tx 128 -ty 320 -tw 384 -th 100
where it would then generate a preview image so the user can see whereabouts the progressbar would be.
the p and t switches represent progressbar and text x/y values respectively.

As far as offsets x and y I think piping or passing arguments would be good for building c code, but maybe use external files to generate custom animation c code. I haven't gotten far enough with testing anything like that to see what problems there might be but on paper it sounds good.


Alex: Are you sure it's not putting it in another directory and you're just not finding it? If you still can't find it, open up the bash script and comment out the lines at the bottom so they look like this. That should leave the .so file in the WorkInProgress directory so you can copy it elsewhere yourself.
Code: Select all
#mv usplash-theme-ubuntu.so ../$OUTFILE
cd ..
#Clean up
#rm -R WorkInProgress
Core i7 920(working on a decent OC), x58 ASUS P6T Deluxe V2, 6GB DDR3 1600, EVGA 8800GTS512, Silencer 750W PSU, CoolerMaster V8, Red Antec900
Image
User avatar
red_team316
U.E. College Professor
U.E. College Professor
 
Posts: 288
Joined: Mon Jan 07, 2008 12:37 am
Age: 33
Operating System: Ultimate Edition 3.2 64 BIT



Re: Usplash Maker

Postby triniclemist90 » Mon Sep 08, 2008 9:14 am

I made a new directory and put the image in it. But, when it deleted the WorkInProgress directory, it didn't move the .so file.
open up the bash script and comment out the lines at the bottom so they look like this

Sorry for the noob question, but where would i find the bash script? I have no idea where the applications or scripts are stored in the system directories.

thanks,
alex

EDIT: What exactly does the code
Code: Select all
mv usplash-theme-ubuntu.so ../$OUTFILE
mean. i know mv means move usplash-theme-ubuntu.so would be the file name, but i don't know where ../$OUTFILE is. Is this coding for the folder the original image is from? Also, i searched using terminal
Code: Select all
locate (File Name)
. I left out the .so to find all possibilities and i only found the .jpg version in my pictures folder.

Edit Again: i followed your above directions and it leaves the WorkInProgress directorybut there is not a .so file in it. i will attach an image of all the contents of the WorkInProgress directory

Screenshot.png
WorkInProgress folder screenshot
Sony Vaio Laptop
2x Intel Core 2 Duo @ 2.00 GHz
2054 MB of RAM
I believe it has a 256 MB graphics card
Macbook Pro
2x Intel Core 2 Duo @ 2.5 GHz 6 mb L2 Cache
2 gigs of ram
512 mb graphics card
triniclemist90
U.E. Newbie
U.E. Newbie
 
Posts: 18
Joined: Fri Aug 01, 2008 1:17 pm
Operating System: Ultimate Edition 2.1 32 BIT



Re: Usplash Maker

Postby golinux » Wed Sep 10, 2008 3:36 pm

It's been a while since I last posted. Just wanted to let TheeMahn know that I am continuing to use the Usplash Maker. Every time I have a whim to change my desktop, I create matching artwork for the entire boot and login process. Without this script I would be one frustrated user! So thanks again!!!

Question . . . is this script compatible with Hardy and Intrepid? Asking because I'm still running Gutsy but will eventually have to upgrade and don't want any surprises. ;)
User avatar
golinux
U.E. Knowledgable
U.E. Knowledgable
 
Posts: 28
Joined: Sun May 25, 2008 9:12 pm
Location: Linuxland
Operating System: Ultimate Edition KDE4



Re: Usplash Maker

Postby red_team316 » Wed Sep 10, 2008 7:40 pm

triniclemist90:
Make sure you read the first post in this thread(not a bad idea to read all the others too), but you need the nautilus bash script from the post, not the one the url points to. The one in the post has makefile generation, and the other doesn't. The makefile generation portion of the code needs to be modified if you expect it to work(This is due to common user error of using spaces in Makefiles rather than tabs, not sure why, but thats how it works)

April 20, 2008
me wrote:The update still updates everytime, and when I build the .so (after I fixed the makefile generation, use /t instead of spaces for the indents) apparently all of the resolutions are not compiled, resulting in the source C file pointing to images that dont exist...If your going to do this, then the C file needs to be dynamically built like the makefile. Also, the 1280x1024 throbber has the wrong size, it should be 216x8.

This is some of the code that never got fixed. TheeMahn was working on Ultimate 1.8 at the time, and I have been working on other portions of code. Eventually, the rewritten usplash maker should be pretty impressive and hopefully have less bugs, thats a long way off though.

triniclemist90, golinux:
Unless you are running an older version of Ubuntu(probably gutsy or fiesty) it's possible that it may not work right anyway. I run KDE instead of GNOME so naturally, everytime I've used it, I always went in and modified the source and run the script manually through the terminal. The advantage of running the script through the terminal is that if the code crashes, you can see exactly where it is.
Example: sudo /bin/bash MakeUsplash /home/username/image.png

Really, we cannot guarantee that it will work on versions of Ubuntu that have not been released yet, as the ubuntu devs are notorious for changing package names/ squashfs lzma/ apt.conf location/etc from release to release lol. TheeMahn as well as I have felt the side effects of those changes :P
Core i7 920(working on a decent OC), x58 ASUS P6T Deluxe V2, 6GB DDR3 1600, EVGA 8800GTS512, Silencer 750W PSU, CoolerMaster V8, Red Antec900
Image
User avatar
red_team316
U.E. College Professor
U.E. College Professor
 
Posts: 288
Joined: Mon Jan 07, 2008 12:37 am
Age: 33
Operating System: Ultimate Edition 3.2 64 BIT



Re: Usplash Maker

Postby golinux » Thu Sep 11, 2008 3:50 pm

Since I last posted, I have tried installing Usplash Maker in 3 versions of Ubuntu in VirtualBox - Gutsy, Hardy and LinuxMint (Hardy). I can't get the Uslpash Maker to complete in ANY of them. Same syndrome tha triniclemist90 is experiencing - no *.so file is created even though the script goes through all the motions. Yes, imagemagick is installed. I ran it from terminal as you suggested and here is the output:

sudo /bin/bash MakeUsplash /home/golinux/Desktop/test/roserose.jpg
600X400|640X480|800X600|1024X768|1280X1024
600X400|640X480|800X600|1024X768|1280X1024
1 600X400|640X480|800X600|1024X768|1280X1024
2 600X400|640X480|800X600|1024X768|1280X1024
3 600X400|640X480|800X600|1024X768|1280X1024
4 600X400|640X480|800X600|1024X768|1280X1024
5 20
--14:21:20-- http://ubuntusoftware.info/scripts/USpl ... ash.tar.gz
=> `USplash.tar.gz'
Resolving ubuntusoftware.info... 68.178.254.168
Connecting to ubuntusoftware.info|68.178.254.168|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10,253 (10K) [application/x-tar]

100%[====================================>] 10,253 5.97K/s

14:21:23 (5.96 KB/s) - `USplash.tar.gz' saved [10253/10253]

usplash-theme-ubuntu.c
throbber_fore_1280_1024.png
throbber_fore_1024_768.png
throbber_fore_800_600.png
throbber_fore_640_480.png
throbber_fore_640_400.png
throbber_back_1280_1024.png
throbber_back_1024_768.png
throbber_back_800_600.png
throbber_back_640_480.png
throbber_back_640_400.png
Makefile
helvB10.bdf
16X16.fnt
600X400|640X480|800X600|1024X768|1280X1024
convert: missing an image filename `WorkInProgress/usplash_640_400.png'.
convert: unable to open image `WorkInProgress/usplash_640_400.png': No such file or directory.
convert: unable to open file `WorkInProgress/usplash_640_400.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
600X400|640X480|800X600|1024X768|1280X1024
convert: missing an image filename `WorkInProgress/usplash_640_480.png'.
convert: unable to open image `WorkInProgress/usplash_640_480.png': No such file or directory.
convert: unable to open file `WorkInProgress/usplash_640_480.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
600X400|640X480|800X600|1024X768|1280X1024
convert: missing an image filename `WorkInProgress/usplash_800_600.png'.
convert: unable to open image `WorkInProgress/usplash_800_600.png': No such file or directory.
convert: unable to open file `WorkInProgress/usplash_800_600.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
600X400|640X480|800X600|1024X768|1280X1024
convert: missing an image filename `WorkInProgress/usplash_1024_768.png'.
convert: unable to open image `WorkInProgress/usplash_1024_768.png': No such file or directory.
convert: unable to open file `WorkInProgress/usplash_1024_768.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
600X400|640X480|800X600|1024X768|1280X1024
convert: missing an image filename `WorkInProgress/usplash_1280_1024.png'.
convert: unable to open image `WorkInProgress/usplash_1280_1024.png': No such file or directory.
convert: unable to open file `WorkInProgress/usplash_1280_1024.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
convert: geometry does not contain image `WorkInProgress/paletted.png'.
make: Circular throbber_back_640_400.png <- throbber_back_640_400.png.c dependency dropped.
In file included from throbber_back_640_400.png.c:2:
/usr/include/usplash-theme.h:24:23: error: sys/types.h: No such file or directory
/usr/include/usplash-theme.h:25:20: error: stdlib.h: No such file or directory
In file included from throbber_back_640_400.png.c:2:
/usr/include/usplash-theme.h:77: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/usplash-theme.h:79: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/usplash-theme.h:93: error: expected specifier-qualifier-list before ‘u_int32_t’
throbber_back_640_400.png.c:10: warning: large integer implicitly truncated to unsigned type
make: *** [throbber_back_640_400.png.c.o] Error 1
mv: cannot stat `usplash-theme-ubuntu.so': No such file or directory


Note that I have not tried this yet:
Code: Select all
#mv usplash-theme-ubuntu.so ../$OUTFILE
cd ..
#Clean up
#rm -R WorkInProgress


Could this be happening because none of the Virtual Box installs have been updated? No way I'm going to be doing that on dialup! But I could update certain files necessary to this process if you tell me what they are.

I can't image NOT having the Usplash Maker available so I don't see an upgrade in my future.
User avatar
golinux
U.E. Knowledgable
U.E. Knowledgable
 
Posts: 28
Joined: Sun May 25, 2008 9:12 pm
Location: Linuxland
Operating System: Ultimate Edition KDE4



Re: Usplash Maker

Postby TheeMahn » Thu Sep 11, 2008 5:01 pm

Red Team I would like to thank you for answering posts, I am a very busy man (way too many eggs in the basket, it is sad when I don't have time to answer even the programming section), now that Ultimate Edition 1.9 has been released perhaps I may have some time to work on TUM, I would like to finish Ultamatix, I may make that my second priority.

Thanks again,

TheeMahn
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: Over 50 TB total Mechanical and Multiple SSD's. (Sans Digital 32TB raid tower - dual Esata)
Raid: Onboard 0 used, Multiple NAS's on Gigabit AC wireless 3200 (Netgear X6 r8000)
Monitors: 4K Samsung 28", HannsG HH281, Various others
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers (just drug up the other 2 speakers today)
User avatar
TheeMahn
Site Admin
 
Posts: 4197
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 47
Operating System: Ultimate Edition Developer



Re: Usplash Maker

Postby golinux » Thu Sep 11, 2008 5:43 pm

I would be happy to contribute a modest financial incentive towards the TUM project if that would help get it going.

This thread is long and much of the dialog is very technical. Here's suggestion that would make it easier for those of us who don't really understand script writing or C coding. Maybe you or Red Team could put together a sticky that summarizes the essentials needed to install and troubleshoot TUM (many of which are buried in this thread - trying to find them is a monumental, almost impossible effort). I know I'd really appreciate that!! Thanks!!!
User avatar
golinux
U.E. Knowledgable
U.E. Knowledgable
 
Posts: 28
Joined: Sun May 25, 2008 9:12 pm
Location: Linuxland
Operating System: Ultimate Edition KDE4



Re: Usplash Maker

Postby red_team316 » Fri Sep 12, 2008 12:59 am

TheeMahn:
No problem. If Ultimatix works as good as everybody is touting, then I would think that should be the higher priority. After all, it's a very big part of Ultimate Edition. Not sure what you consider finished, I'm not exactly sure what the scope of the project entails.

golinux:
While I'm sure we wouldn't mind you buying us a coffee or beer, it just doesn't seem practical. You see, money isn't really the factor here, time is.
TheeMahn wrote:I don't have time

In fact I read something not too long ago about somebody that contributed several hundred dollars to an open source project just to find out that the money is lying dormant and most likely wont be used. There were other reasons involved but time was a big one. Sure, I suppose we could buy ourselves faster computers so the code will compile faster(lol) but that isn't actually producing anything towards the project goals, not to mention I know TheeMahn and I are rocking some pretty decent boxes that are quite capable as it is. I will be building a new box pretty soon only because I sold this one to my bro. That will take time away from any work on any coding(usplash-maker or reconstructor). Heck, right now I'm even working with the LiveUSB dev Simon Peter(gave him a bugfix so that DVD iso's could be mounted and used, Ultimate1.9 was my test iso) and I don't even consider myself a dev for that project.

Okay as far as getting it to work:
I personally think that posting workarounds for the current code would be a waste of time. The code should 'just work', and in it's current state it just doesn't work for alot of people. Some of the code I have done now could be meshed with the current script for a better fix, maybe I'll see if I can fix it up this weekend just for something to get by until the full version is finished.
Core i7 920(working on a decent OC), x58 ASUS P6T Deluxe V2, 6GB DDR3 1600, EVGA 8800GTS512, Silencer 750W PSU, CoolerMaster V8, Red Antec900
Image
User avatar
red_team316
U.E. College Professor
U.E. College Professor
 
Posts: 288
Joined: Mon Jan 07, 2008 12:37 am
Age: 33
Operating System: Ultimate Edition 3.2 64 BIT

PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron