![]() |
Re: Multiple boot videos?
1 Attachment(s)
wuhaha :D
got it ^^ Code:
#!/bin/bash (i only have 2 confs in the dconfs-folder ^^) maybe i'll try to get it in rc2.d :) a shortcut on the desktop (for doing it manually) to this script is done very fast (: |
Re: Multiple boot videos?
if anybody is interested in this random bootvideo shortcut on the desktop. i could write a short how-to :)
|
Re: Multiple boot videos?
Hi b666m
Can you write please the "how-to" for a noob in Linux.... 1) How-to random video automaticly 2) How-to random bootvideo shortcut on the desktop Thanks |
Re: Multiple boot videos?
Quote:
Than I will get smarter in this |
Re: Multiple boot videos?
1 Attachment(s)
omg... the shortcut wasn't as easy as i thought it would be... but finally it's working...
instructions: 1. download the zip-file and unpack the two files anywhere in a new folder in your MyDocs. for example: ~/MyDocs/randomvid/ (unplug usb cable) 2. open xterm and type "sudo gainroot" 3. type "mkdir /etc/hildon-welcome.d/dconfs" 4. in this folder you have to store your default.conf files named 1.conf, 2.conf, 3.conf and so on (you have to start with 1 and then incremental count up (2, 3, 4, 5,...)) 5. type "cd MyDocs/randomvid/" 6. type "cp rvid.sh /etc/hildon-welcome.d/" 7. type "chmod a+x /etc/hildon-welcome.d/rvid.sh" 8. type "cp rvid.desktop /usr/share/applications/hildon/" 9. close xterm, go to your desktop and add the shortcut named "rvid". it uses the terminal-icon. if you want your own icon do following: 1. place a .png with 48 * 48 px in /usr/share/icons/hicolor/48x48/hildon/ (for example: rvid.png) 2. open the rvid.desktop with a editor and change the icon-line to: "Icon=rvid". save it. 3. you may have to reboot your device. thanks go to: fatalsaint for pointing me in the right direction with the desktop file. (http://talk.maemo.org/showpost.php?p...7&postcount=66) subcore for hack-around changing xterm to busybox. (http://talk.maemo.org/showpost.php?p...9&postcount=11) archebyte for changing the desktop-icon and some other neat work. (http://talk.maemo.org/showpost.php?p...0&postcount=26) edit: it's normal that the terminal opens up, stays black and closes after a few seconds. it's also normal that it may replaces the current default.conf with the same config - so your video may not change everytime you click on it. but hey... that's randomness ;D EDIT: updated the rvid.sh with new code with generates random number out of date and checks which default.conf is used at the moment so the video is changed every time you click it :) (code is available on page 4 where the instructions are given on how to do this random vid change automatically ^) |
Re: Multiple boot videos?
script:
Code:
#!/bin/bash (edit: for some reason there was 5:1 chance of 2.conf to 1.conf... so i added some more randomness by creating two random numbers and substract the smaller number from the greater one.) (edit2: i could add some lines which force the bootvideo to change. in the current version the default could be replaced by the same file and the bootvideo would still be the same. good idea? bad idea?!) desktop: Code:
[Desktop Entry] |
Re: Multiple boot videos?
where I need put the video files ? to /MyDocs/randomvid/ ?
or in default folder /media ? |
Re: Multiple boot videos?
Quote:
(get root-terminal) 1. cp -r /usr/share/hildon-welcome/media /opt/ (this should make /opt/media with the nokia hands video as content) 2. rm -r /usr/share/hildon-welcome/media (this should remove the media folder from there) 3. cd /usr/share/hildon-welcome (change the directory ^^) 4. ln -s /opt/media media (symlinking /opt/media to /usr/share/hildon-welcome/media) then you can put all of your videos into /opt/media/ ;) |
Re: Multiple boot videos?
I get this ! Thank you very much !
Another question, can we get this process automatically, without pressing on the button on desktop before reboot ? I mean on all reboot it the load another video ? (sorry for my ugly english :-) ) |
Re: Multiple boot videos?
Quote:
haven't done this before... but i could take a look... (better said: google could have a look ^^) CAN ANYONE PROVIDE AN INIT SCRIPT WHICH LAUNCHES A SHELL SCRIPT? :D |
All times are GMT. The time now is 13:07. |
vBulletin® Version 3.8.8