Multi-Boot Application - Progress

Contribute code to SolydXK and make it even better.
User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Multi-Boot Application - Progress

Postby ScottQuier » 25 Aug 2014 23:07

RavenLX wrote:I was going to make a python/glade tutorial but I been so busy. So I think I rather learn from your tutorials. :) If it's ok with you I could link to your tutorials from my site? I think that would be awesome to have especially with the newer Python3 and newest Glade. There aren't any up-to-date Python/Glade tutorials out there.
It's alright with me but, were it me, I would check with Schoelje first.
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

User avatar
Arjen Balfoort
Site Admin
Posts: 9219
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Multi-Boot Application - Progress

Postby Arjen Balfoort » 26 Aug 2014 07:02

Knowledge should be free for everybody, especially if the creative owner agrees.
Go for it!


SolydXK needs you!
Development | Testing | Translations

Deleted User 2764

Re: Multi-Boot Application - Progress

Postby Deleted User 2764 » 26 Aug 2014 12:42

Thanks guys! :) I always try to give credit for everything I post.

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Multi-Boot Application - Progress

Postby ScottQuier » 31 Aug 2014 21:55

Another update:
  • Download, copy, and clean functions are fixed (I hope)
  • Broke out the fix boot loader function from the clean function. To get a functional device is now a tow step process, in addition to later adding the iso files.
  • User feedback has been improved: During the download and copy processes, there's an indicator of how much data has been written to the USB device - a real number that actually reflects the amount of data written to the buffer - USB devices take some time.
  • The version number is now displayed on the form.
This version (0.1.02) is, I think, ready for testing and I've asked Schoelje to upload the .deb file to the development server. When he does, he'll update this thread (or at least I've asked him to do so).

A test script will be posted in a new thread - it's still a work in process.

Oh, and I almost forgot the obligatory pretty pictures :)
CopyingAFile.jpg
Note the number below the progress bar and the version number in the lower left corner :)
CopyingAFile.jpg (41.93 KiB) Viewed 3952 times
CopyComplete.jpg
More feedback - the copy is done. Get the same sort of thing for most of the functionality.
CopyComplete.jpg (12.75 KiB) Viewed 3952 times
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

Deleted User 2764

Re: Multi-Boot Application - Progress

Postby Deleted User 2764 » 31 Aug 2014 22:16

Wow! Scott - great job! :) You really know your Python/Glade stuff too.

User avatar
Arjen Balfoort
Site Admin
Posts: 9219
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Multi-Boot Application - Progress

Postby Arjen Balfoort » 14 Oct 2014 10:27

I've made some changes to the USB constructor and made a lot of code changes. Even the UI has changed some.

If you run solydxk-usb-constructor from the terminal, you still see these warnings:

Code: Select all

/usr/lib/solydxk/solydxk-usb-creator/USBCreatorDialogBox.py:35: Warning: The property GtkSettings:gtk-cursor-blink is deprecated and shouldn't be used anymore. It will be removed in a future version.
  if dialog.run() == Gtk.ResponseType.OK:
/usr/lib/solydxk/solydxk-usb-creator/USBCreatorDialogBox.py:35: Warning: The property GtkSettings:gtk-cursor-blink-time is deprecated and shouldn't be used anymore. It will be removed in a future version.
  if dialog.run() == Gtk.ResponseType.OK:
/usr/lib/solydxk/solydxk-usb-creator/USBCreatorDialogBox.py:35: Warning: The property GtkSettings:gtk-cursor-blink-timeout is deprecated and shouldn't be used anymore. It will be removed in a future version.
  if dialog.run() == Gtk.ResponseType.OK:
I still haven't found out what I can do to prevent these warnings but because they are warnings, you can ignore them.

Trying to clean the USB while having the USB opened in another program will result in an error. I'll have to solve that another time.

You can download the deb here: http://downloads.solydxk.nl/dev/solydxk-usb-creator/


[EDIT]
If you're interested, or want to help coding: https://github.com/SolydXK/solydxk-usb-creator


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 9219
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Multi-Boot Application - Progress

Postby Arjen Balfoort » 14 Oct 2014 14:20

Checking if the device is in use by another program was easier than I thought: fuser -m /mount-point

deb and GitHub updated.


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 9219
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Multi-Boot Application - Progress

Postby Arjen Balfoort » 14 Oct 2014 21:57

Now really the last change for today: added notification for inserted USB:
solydxk-usb-creator_notification.png
solydxk-usb-creator_notification.png (40.82 KiB) Viewed 3855 times
Updated deb and GitHub.


SolydXK needs you!
Development | Testing | Translations

User avatar
Snap
Posts: 1244
Joined: 25 Aug 2013 20:01
Location: Spain

Re: Multi-Boot Application - Progress

Postby Snap » 15 Oct 2014 07:30

So cool. Thanks.
This likely means that your installation is broken. -Mr Pixbuf.

Image

Deleted User 2764

Re: Multi-Boot Application - Progress

Postby Deleted User 2764 » 15 Oct 2014 13:20

@Schoelje: Looking better every time. :) BTW, I thought Scott was working on it too? Are you both? If I had time/skill I'd help. Maybe another project in the future hopefully.

I think both you and Scott did an awesome job on this project! It will definitely come in handy.

User avatar
Arjen Balfoort
Site Admin
Posts: 9219
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Multi-Boot Application - Progress

Postby Arjen Balfoort » 15 Oct 2014 14:12

We're both working on this.
The last few days I had some time and I plan to include this application asap.


SolydXK needs you!
Development | Testing | Translations

User avatar
Orbmiser
Posts: 829
Joined: 24 Aug 2013 22:58
Location: Portland,Oregon

Re: Multi-Boot Application - Progress

Postby Orbmiser » 24 Oct 2014 03:40

Just downloaded and installed solydxk-usb-creator_0.2.2_all.deb
Shows in the menu but doesn't launch. Ask for password then nada.

Using HE Kde and updated with latest update.

Running from terminal

Code: Select all

orbmiser@winterfell ~ $ solydxk-usb-creator
INFO      Application Start
Traceback (most recent call last):
  File "/usr/bin/../lib/solydxk/solydxk-usb-creator/MultiBootISOCreator.py", line 1176, in <module>
    USBCreator()
  File "/usr/bin/../lib/solydxk/solydxk-usb-creator/MultiBootISOCreator.py", line 186, in __init__
    self.RefreshUSBSelector()
  File "/usr/bin/../lib/solydxk/solydxk-usb-creator/MultiBootISOCreator.py", line 978, in RefreshUSBSelector
    self.usbDataHandler.getUSBData(self.chkAutoMount.get_active())
  File "/usr/lib/solydxk/solydxk-usb-creator/USBDataList.py", line 52, in getUSBData
    info = self.udisks_info(theDevice)
  File "/usr/lib/solydxk/solydxk-usb-creator/USBDataList.py", line 88, in udisks_info
    out = subprocess.check_output(shlex.split(commandLine)).decode()
  File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
    raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command '['udisks', '--show-info', '/dev/sd']' returned non-zero exit status 1
So don't know what's up. As haven't really use them before trying to burn iso to usb key.

.
Portfolio
http://500px.com/Orbmiser
Flickr
http://www.flickr.com/photos/orb9220/

SolydK - Kernel 3.16-2-amd64 - KDE 4.14.1 Update Pack: 2014.10.15

User avatar
Arjen Balfoort
Site Admin
Posts: 9219
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Multi-Boot Application - Progress

Postby Arjen Balfoort » 24 Oct 2014 08:55

Thanks for reporting, Orbmiser.
I'm a bit busy with the live-installer. So, this'll have to wait.


SolydXK needs you!
Development | Testing | Translations

User avatar
Orbmiser
Posts: 829
Joined: 24 Aug 2013 22:58
Location: Portland,Oregon

Re: Multi-Boot Application - Progress

Postby Orbmiser » 24 Oct 2014 14:48

Schoelje wrote:Thanks for reporting, Orbmiser.
I'm a bit busy with the live-installer. So, this'll have to wait.
No hurries! And quite understand you being busy. Just thought to share the info before I forget.
.
Portfolio
http://500px.com/Orbmiser
Flickr
http://www.flickr.com/photos/orb9220/

SolydK - Kernel 3.16-2-amd64 - KDE 4.14.1 Update Pack: 2014.10.15

User avatar
grizzler
Posts: 2139
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Multi-Boot Application - Progress

Postby grizzler » 24 Oct 2014 17:32

Just out of curiosity (and because I've been trying to get to grips with python), I took a look at this...

@the developers:
It looks like the blkid command is returning something weird: /dev/sdx (where x is unknown), which is then abbreviated to /dev/sd. Maybe using lsblk instead of blkid would be better? This can be made to return only the device and not the partitions, which removes the need for the abbreviation (try: lsblk -dlnpo NAME). Because that also returns the CD/DVD device (/dev/sr0 here), after the following udisks --show-info you'd have to check for 'detachable' instead of 'removable' or include a check for 'has media' or similar.

Edit
You probably already know that now, but all the info required in this section, originally provided by blkid and udisks, is availiable from lsblk alone...
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Arjen Balfoort
Site Admin
Posts: 9219
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Multi-Boot Application - Progress

Postby Arjen Balfoort » 08 Nov 2014 11:11

An adapted version is in the repository:

Code: Select all

sudo apt-get install solydxk-usb-creator
Or you can download the deb: http://packages.solydxk.nl/production/p ... b-creator/

I haven't replaced the udisks code: that would take too much time right now.


SolydXK needs you!
Development | Testing | Translations


Return to “Code”

Who is online

Users browsing this forum: No registered users and 1 guest