Diff for "mkusb/v9"


Differences between revisions 8 and 77 (spanning 69 versions)
Revision 8 as of 2014-09-13 08:38:38
Size: 4712
Editor: nio-wiklund
Comment:
Revision 77 as of 2015-08-20 09:00:19
Size: 8000
Editor: nio-wiklund
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
  * Cosmetic improvements: I try to make the colour scheme as consistent as possible given the limitations of zenity. The menu lists have no colour, only shades of grey. I use the icon colour in the final confirmation windows. The blue colour which is standard in dialog is abandoned. The read warning colour is still there, it is important.   * Cosmetic improvements: I try to make the colour scheme as consistent as possible given the limitations of zenity. The menu lists have no colour, only shades of grey. I use the icon colour in the final confirmation windows. The blue colour which is standard in dialog is abandoned. The red warning colour is still there, it is important.
Line 28: Line 28:
 * mkusb 9.0.4
  * improved identification of (the linux distro in) iso files
  * functions (find_distr final_warning_legacy mkz_html mkz_legacy zenitylegacy) for identification of distros and adjusting the graphics: html if available, otherwise 'legacy' black & white windows - for example in Fedora and openSUSE where zenity is compiled without !WebKit, so there is no --html option.
  * legacy desktop files available at [[http://phillw.net/isos/linux-tools/mkusb/]], useful in linux distros, where the standard desktop file does not work
  * several minor bug-fixes
  * '''mkusb-installer''': script available at [[http://phillw.net/isos/linux-tools/mkusb/]], useful in linux distros, where the PPAs do not work. (The PPAs are made for Ubuntu and Ubuntu based community flavours and re-spins, they can work in Debian, but not at all in non-debian distros.)
 * mkusb 9.0.5
  * improved management of mounting an unmounting when identifying drives for iso-testing, functions same_iso and sed_mtab
  * minor bug-fixes of the output text and new-lines
  * improvements ported to mkusb-nox when relevant
 * mkusb 9.0.6
  * minor bug-fixes and preparation for transfer to the stable PPA '''ppa:mkusb/ppa'''
 * mkusb 9.0.7
  * livedrive recognition for installed fedora
 * mkusb 9.0.8
  * improved text in "Select device - warning and overview" - two windows merged to one
 * mkusb 9.1
  * zenity --list "Action for ${imagefile##*/}" fix for Trusty because the slashes of a full path not accepted after return from another function
  * function work_flow describes the sequence of zenity windows and the corresponding manual file is updated

  * Warning and overview - "Select drive in the next window" written on the OK-button
 * mkusb 9.1.1
  * zenity --window-icon="/usr/share/icons/mkusb.png" used in --list windows (available in zenity 3.12.1)
 * mkusb 9.1.2
  * "Please wait for sync until 'Done' is written ..." is written to the mkusb console to make people wait ... (written also by mkusb-nox and mkusb-bas)
  * separate packages for mkusb and mkusb-nox
 * mkusb 9.1.3
  * cd to source file's directory to keep the partition mounted. Otherwise, if it is not a system partition, it would be unmounted in the process to check if 'iso-testing', and the source file would not be available.
  * bug-fix: after trying to unmount, the test is changed to [ "$?" != "0" ] to work in all situations to set busy=1
 * mkusb 9.1.4
  * final text for wipe-whole-device improved: "Done, but you should also check for the line 'dd: writing '$target': No space left on device', which means that the whole device is wiped. (Look in the terminal window)"
 * mkusb 9.1.5
  * bug-fix: source=${source##*/} ... to manage path in parameter (broken by cd to source file's directory in 9.1.3)
  * new feature: Clone a device (typically a CD drive or USB drive), '''sudo mkusb /dev/sr0''' # example of CD drive
  * new version of the manual '''man mkusb'''
 * mkusb 9.1.6
  * icons located according to [[http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#install_icons]]
 * mkusb 9.2
  * tries to unmount only usb drives when usbonly and does not try to unmount drives in fstab
  * new version of the manual '''man mkusb'''
 * mkusb 9.2.1 and mkusb-nox 7.5.9
  * removed 2 lines (<img class ...) from arrow= for a new html renderer in zenity 3.16.2
  * changed the identification of livedrive=$(df |grep /$|cut -c 5-8)
 * mkusb 9.2.2 and mkusb-nox version 7.5.9.1
  * licence text in About
  * Improved look and feel:
   * language
    * gentler warning texts, for example: FINAL WARNING --> Final checkpoint
   * text style and colour scheme
    * gentler high-lightning of text
    * inline editing of background colours of the final checkpoints (separate for standard installations and iso-testing)
 * mkusb 9.2.3
  * background colours saved in /root/.mkusb
Line 31: Line 84:
This information is moved to [[../gui#Installation]]

== from the normal PPA ==

This information is moved to [[../gui#from_the_normal_PPA]]
Line 33: Line 92:
This version is still developed and debugged. It can be downloaded from [[http://phillw.net/isos/linux-tools/mkusb/]] but is also available from our unstable PPA.

While
{{{
sudo add-apt-repository ppa:mkusb/ppa
}}}
will install the stable version mkusb 8.5.4

the unstable PPA
{{{
sudo add-apt-repository ppa:mkusb/unstable
}}}
will install mkusb 9.x.x (until it is stable and can replace version 8 as the stable version).
This information is moved to [[../gui#from_the_unstable_PPA]]
Line 49: Line 96:
Browse to [[http://phillw.net/isos/linux-tools/mkusb/]] This information is copied to [[../gui#from_phillw.net]]
Line 51: Line 98:
Download the shell-script file '''mk_install-and-test-mkusb.bash''' with the browser or do it directly from a terminal window with Another method is to download '''mkusb''' from [[http://phillw.net/isos/linux-tools/mkusb/]] It will bring the same bleeding edge version as you get via the unstable PPA, or even a newer experimental version. You can install mkusb version 10 this way.

Download the shell-script file '''mkusb-installer''' with the browser or do it directly from a terminal window with
Line 60: Line 109:
Install via ppa or wget or uninstall? (p/w/u)w [sudo] password:
Line 62: Line 111:
[sudo] password: Install via ppa or wget, uninstall or quit? (p/w/u/Q) w
...
Line 65: Line 115:
Enter '''w''' (for wget) and the shell-script will download, check and (after you have entered your password) install mkusb plus two small iso files for testing. Repeat the command '''bash mk_install-and-test-mkusb.bash''' if some file was not downloaded correctly.  * Enter your password (installed systems typically require password, but not live systems)
 * Enter '''w''' (
for wget) and the shell-script will download, check and install mkusb plus some small iso files for testing.
 *
Repeat the command '''bash mkusb-installer''' if some file was not downloaded correctly.
Line 67: Line 119:
Then start mkusb from the menu Then start mkusb from the menu '''Menu -- System -- mkusb''' or from '''Dash''' in Ubuntu or a similar finder for application programs, for example '''Show Applications''' in Mageia Gnome.
Line 69: Line 121:
'''Menu -- System -- mkusb''' In some locales (the standard English and some more), and in some linux distros, an icon will also appear on the desktop.
Line 71: Line 123:
In some locales (the standard English and some more), an icon will also appear on the desktop. == Simple to test mkusb 9 in linux distros, which do not manage an Ubuntu PPA ==
Line 73: Line 125:
= Separate versions for graphical mode and text mode =

Version 9 takes a greater leap: there are separate versions for

 * GUI mode: '''mkusb''' {{attachment:../artwork/mkusb24.png}}
 * text mode: '''mkusb-nox'''

This avoids some complicated logic and makes the code smaller. Maybe 90% of you will prefer the GUI version, but the text version is good for servers and for users who do not want eye-candy. The '''improved recognition of systems and devices''' is back-ported from version 8 to '''mkusb-nox'''.

Please test either or both of '''mkusb version 9''' and '''mkusb-nox'''
This information is moved to [[../gui#Simple_to_test_mkusb_in_linux_distros.2C_which_do_not_manage_an_Ubuntu_PPA]]
Line 86: Line 129:
When you login remotely from a graphical desktop environment and it can be used at both ends, mkusb wants to use '''zenity''', so you should enable X. Otherwise, use '''mkusb-nox'''.
{{{
ssh -X nio@server
...
sudo ./mkusb # to select source file via menus
sudo ./mkusb file.iso # to select source file via the command line is still possible
}}}
Except while using ssh -X, you should use '''sudo -H'''
{{{
sudo -H ./mkusb # because of the graphics by zenity
}}}
This information is moved to [[../gui#Remote_login_via_ssh]]

= Change background for the final checkpoint windows =

This information is moved to [[../gui#Change_background_for_the_final_checkpoint_windows]]
Line 100: Line 137:
Installing Lubuntu Utopic - final warning

[[attachment:../pictures/57-mkusb.desktop-in-lubuntu-select-device-final-warning.png]]

Installing Lubuntu Utopic - work done

[[attachment:../pictures/58-mkusb.desktop-in-lubuntu-work-done.png]]
This information is moved to [[../gui#Screenshots]]

Return to the main mkusb page


mkusb version 9

This version of the mkusb tool, version 9, is still only a bash script. Previous versions have been running at least partially in text mode, but people want eye candy, so now the menus and dialogue windows are purely graphical using zenity. There is also a text console for output from the engine behind the zenity curtain.

Improvements and new features

File selection dialogue only via zenity (so only for graphical environment) ../artwork/mkusb24.png

  • mkusb 9.0.1
    • Cosmetic improvements: I try to make the colour scheme as consistent as possible given the limitations of zenity. The menu lists have no colour, only shades of grey. I use the icon colour in the final confirmation windows. The blue colour which is standard in dialog is abandoned. The red warning colour is still there, it is important.
    • Extended help with a separate help menu. There is even a quick link to this wiki page. The default web browser is called from the normal user id to avoid browsing with superuser id (a security issue).
  • mkusb 9.0.2:
    • livedrive recognition debugged: grep -m 1 ...
    • skip if iso diskname matches on livedrive
    • check environment variables needed for zenity
    • fix for buggy(?) zenity --list in trusty
    • added gnome-www-browser for debian
    • added png icon for systems that cannot use svg icons
  • mkusb 9.0.3:
    • adding to zenity window width and height, automatic for Knoppix 7.4
    • function tweak_zws: manual tweak of zenity window for distros with special interpretation of zenity window size and or fonts
    • function file_from_parameter for cleaner exit, so clean_mtab_n_colors_n_zerrlog is called 'only' at the end
  • mkusb 9.0.4
    • improved identification of (the linux distro in) iso files
    • functions (find_distr final_warning_legacy mkz_html mkz_legacy zenitylegacy) for identification of distros and adjusting the graphics: html if available, otherwise 'legacy' black & white windows - for example in Fedora and openSUSE where zenity is compiled without WebKit, so there is no --html option.

    • legacy desktop files available at http://phillw.net/isos/linux-tools/mkusb/, useful in linux distros, where the standard desktop file does not work

    • several minor bug-fixes
    • mkusb-installer: script available at http://phillw.net/isos/linux-tools/mkusb/, useful in linux distros, where the PPAs do not work. (The PPAs are made for Ubuntu and Ubuntu based community flavours and re-spins, they can work in Debian, but not at all in non-debian distros.)

  • mkusb 9.0.5
    • improved management of mounting an unmounting when identifying drives for iso-testing, functions same_iso and sed_mtab
    • minor bug-fixes of the output text and new-lines
    • improvements ported to mkusb-nox when relevant
  • mkusb 9.0.6
    • minor bug-fixes and preparation for transfer to the stable PPA ppa:mkusb/ppa

  • mkusb 9.0.7
    • livedrive recognition for installed fedora
  • mkusb 9.0.8
    • improved text in "Select device - warning and overview" - two windows merged to one
  • mkusb 9.1
    • zenity --list "Action for ${imagefile##*/}" fix for Trusty because the slashes of a full path not accepted after return from another function
    • function work_flow describes the sequence of zenity windows and the corresponding manual file is updated
    • Warning and overview - "Select drive in the next window" written on the OK-button
  • mkusb 9.1.1
    • zenity --window-icon="/usr/share/icons/mkusb.png" used in --list windows (available in zenity 3.12.1)
  • mkusb 9.1.2
    • "Please wait for sync until 'Done' is written ..." is written to the mkusb console to make people wait ... (written also by mkusb-nox and mkusb-bas)
    • separate packages for mkusb and mkusb-nox
  • mkusb 9.1.3
    • cd to source file's directory to keep the partition mounted. Otherwise, if it is not a system partition, it would be unmounted in the process to check if 'iso-testing', and the source file would not be available.
    • bug-fix: after trying to unmount, the test is changed to [ "$?" != "0" ] to work in all situations to set busy=1
  • mkusb 9.1.4
    • final text for wipe-whole-device improved: "Done, but you should also check for the line 'dd: writing '$target': No space left on device', which means that the whole device is wiped. (Look in the terminal window)"
  • mkusb 9.1.5
    • bug-fix: source=${source##*/} ... to manage path in parameter (broken by cd to source file's directory in 9.1.3)
    • new feature: Clone a device (typically a CD drive or USB drive), sudo mkusb /dev/sr0 # example of CD drive

    • new version of the manual man mkusb

  • mkusb 9.1.6
  • mkusb 9.2
    • tries to unmount only usb drives when usbonly and does not try to unmount drives in fstab
    • new version of the manual man mkusb

  • mkusb 9.2.1 and mkusb-nox 7.5.9
    • removed 2 lines (<img class ...) from arrow= for a new html renderer in zenity 3.16.2

    • changed the identification of livedrive=$(df |grep /$|cut -c 5-8)
  • mkusb 9.2.2 and mkusb-nox version 7.5.9.1
    • licence text in About
    • Improved look and feel:
      • language
        • gentler warning texts, for example: FINAL WARNING --> Final checkpoint

      • text style and colour scheme
        • gentler high-lightning of text
        • inline editing of background colours of the final checkpoints (separate for standard installations and iso-testing)
  • mkusb 9.2.3
    • background colours saved in /root/.mkusb

Installation

This information is moved to ../gui#Installation

from the normal PPA

This information is moved to ../gui#from_the_normal_PPA

from the unstable PPA

This information is moved to ../gui#from_the_unstable_PPA

from phillw.net

This information is copied to ../gui#from_phillw.net

Another method is to download mkusb from http://phillw.net/isos/linux-tools/mkusb/ It will bring the same bleeding edge version as you get via the unstable PPA, or even a newer experimental version. You can install mkusb version 10 this way.

Download the shell-script file mkusb-installer with the browser or do it directly from a terminal window with

wget http://phillw.net/isos/linux-tools/mkusb/mkusb-installer

and run it from a terminal window with

bash mkusb-installer
...
[sudo] password:
...
Install via ppa or wget, uninstall or quit? (p/w/u/Q) w
...
  • Enter your password (installed systems typically require password, but not live systems)
  • Enter w (for wget) and the shell-script will download, check and install mkusb plus some small iso files for testing.

  • Repeat the command bash mkusb-installer if some file was not downloaded correctly.

Then start mkusb from the menu Menu -- System -- mkusb or from Dash in Ubuntu or a similar finder for application programs, for example Show Applications in Mageia Gnome.

In some locales (the standard English and some more), and in some linux distros, an icon will also appear on the desktop.

Simple to test mkusb 9 in linux distros, which do not manage an Ubuntu PPA

This information is moved to ../gui#Simple_to_test_mkusb_in_linux_distros.2C_which_do_not_manage_an_Ubuntu_PPA

Remote login via ssh -X

This information is moved to ../gui#Remote_login_via_ssh

Change background for the final checkpoint windows

This information is moved to ../gui#Change_background_for_the_final_checkpoint_windows

Screenshots of mkusb version 9

This information is moved to ../gui#Screenshots


Return to the main mkusb page

mkusb/v9 (last edited 2015-08-20 09:00:19 by nio-wiklund)