forked from mbusb/multibootusb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
158 changed files
with
22,022 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# file GENERATED by distutils, do NOT edit | ||
multibootusb | ||
multibootusb-pkexec | ||
org.debian.pkexec.run-multibootusb.policy | ||
setup.py | ||
data/multibootusb.desktop | ||
data/version.txt | ||
data/multibootusb/bg.png | ||
data/multibootusb/chain.c32 | ||
data/multibootusb/extlinux.cfg | ||
data/multibootusb/grub.exe | ||
data/multibootusb/memdisk | ||
data/multibootusb/menu.c32 | ||
data/multibootusb/menu.lst | ||
data/multibootusb/syslinux.cfg | ||
data/multibootusb/vesamenu.c32 | ||
data/tools/mbr.bin | ||
data/tools/multibootusb.png | ||
data/tools/dd/dd.exe | ||
data/tools/dd/diskio.dll | ||
data/tools/mkfs/mke2fs.exe | ||
data/tools/syslinux/syslinux_linux.zip | ||
data/tools/syslinux/syslinux_linux_64.zip | ||
data/tools/syslinux/syslinux_modules.zip | ||
data/tools/syslinux/syslinux_windows.zip | ||
scripts/_7zip.py | ||
scripts/__init__.py | ||
scripts/admin.py | ||
scripts/config.py | ||
scripts/distro.py | ||
scripts/gen.py | ||
scripts/imager.py | ||
scripts/install.py | ||
scripts/iso.py | ||
scripts/isodump3.py | ||
scripts/mbusb_cli.py | ||
scripts/mbusb_gui.py | ||
scripts/persistence.py | ||
scripts/qemu.py | ||
scripts/syslinux.py | ||
scripts/udisks.py | ||
scripts/uninstall_distro.py | ||
scripts/update_cfg_file.py | ||
scripts/usb.py | ||
scripts/gui/__init__.py | ||
scripts/gui/ui_multibootusb.py | ||
scripts/progressbar/__init__.py | ||
scripts/progressbar/compat.py | ||
scripts/progressbar/progressbar.py | ||
scripts/progressbar/widgets.py | ||
scripts/pyudev/__init__.py | ||
scripts/pyudev/_compat.py | ||
scripts/pyudev/_errors.py | ||
scripts/pyudev/_qt_base.py | ||
scripts/pyudev/_util.py | ||
scripts/pyudev/core.py | ||
scripts/pyudev/discover.py | ||
scripts/pyudev/glib.py | ||
scripts/pyudev/monitor.py | ||
scripts/pyudev/pyqt4.py | ||
scripts/pyudev/pyqt5.py | ||
scripts/pyudev/pyside.py | ||
scripts/pyudev/version.py | ||
scripts/pyudev/wx.py | ||
scripts/pyudev/_ctypeslib/__init__.py | ||
scripts/pyudev/_ctypeslib/_errorcheckers.py | ||
scripts/pyudev/_ctypeslib/libc.py | ||
scripts/pyudev/_ctypeslib/libudev.py | ||
scripts/pyudev/_ctypeslib/utils.py | ||
scripts/pyudev/_os/__init__.py | ||
scripts/pyudev/_os/pipe.py | ||
scripts/pyudev/_os/poll.py | ||
scripts/pyudev/device/__init__.py | ||
scripts/pyudev/device/_device.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Metadata-Version: 1.0 | ||
Name: multibootusb | ||
Version: 8.5.0 | ||
Summary: Create multi boot live Linux on a USB disk... | ||
Home-page: http://multibootusb.org/ | ||
Author: Sundar | ||
Author-email: [email protected] | ||
License: General Public License (GPL) | ||
Description: multibootusb is an advanced cross-platform application for installing/uninstalling Linux operating systems on to a single USB flash drives. | ||
Platform: Linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Name=multibootusb | ||
Comment=Install multiple Linux Operating System on USB | ||
Icon=multibootusb | ||
Exec=multibootusb-pkexec | ||
Categories=System; | ||
StartupNotify=true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
35 changes: 35 additions & 0 deletions
35
deb_dist/multibootusb-8.5.0/data/multibootusb/syslinux.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This file is created by MultiBootUSB. | ||
default vesamenu.c32 | ||
prompt 0 | ||
menu title MultiBootUSB | ||
MENU BACKGROUND /multibootusb/bg.png | ||
TIMEOUT 300 | ||
MENU WIDTH 80 | ||
MENU MARGIN 10 | ||
MENU PASSWORDMARGIN 3 | ||
MENU ROWS 12 | ||
MENU TABMSGROW 18 | ||
MENU CMDLINEROW 18 | ||
MENU ENDROW -1 | ||
MENU PASSWORDROW 11 | ||
MENU TIMEOUTROW 20 | ||
MENU HELPMSGROW 22 | ||
MENU HELPMSGENDROW -1 | ||
MENU HIDDENROW -2 | ||
MENU HSHIFT 0 | ||
MENU VSHIFT 0 | ||
MENU COLOR border 30;44 #40ffffff #a0000000 std | ||
MENU COLOR title 1;36;44 #9033ccff #a0000000 std | ||
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all | ||
MENU COLOR unsel 37;44 #50ffffff #a0000000 std | ||
MENU COLOR help 37;40 #c0ffffff #a0000000 std | ||
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std | ||
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std | ||
MENU COLOR msg07 37;40 #90ffffff #a0000000 std | ||
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std | ||
label Boot from Hard Drive | ||
MENU LABEL Boot from Hard Disk | ||
KERNEL chain.c32 | ||
APPEND hd1 | ||
MENU DEFAULT | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
multibootusb (8.5.0-1) unstable; urgency=low | ||
|
||
* source package automatically created by stdeb 0.8.2 | ||
|
||
-- Sundar <[email protected]> Sun, 05 Feb 2017 15:32:06 +0530 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Source: multibootusb | ||
Maintainer: Sundar <[email protected]> | ||
Section: system | ||
Priority: optional | ||
Build-Depends: python3-all, debhelper (>= 9), python3-all | ||
Standards-Version: 3.9.1 | ||
X-Python-Version: = 3.5 | ||
|
||
Package: python3-multibootusb | ||
Architecture: all | ||
Depends: ${misc:Depends}, ${python3:Depends}, python3-pyqt5, parted, util-linux, mtools, python3-dbus, p7zip-full, python3-six | ||
Description: Create multi boot live Linux on a USB disk... | ||
multibootusb is an advanced cross-platform application for installing/uninstalling Linux operating systems on to a single USB flash drives. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/make -f | ||
|
||
# This file was automatically generated by stdeb 0.8.2 at | ||
# Sun, 05 Feb 2017 15:32:06 +0530 | ||
export PYBUILD_NAME=multibootusb | ||
%: | ||
dh $@ --with python3 --buildsystem=pybuild | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# Name: multibootusb | ||
# Purpose: Main file which will determine if cli or gui is to be opened | ||
# Authors: Sundar | ||
# Licence: This file is a part of multibootusb package. You can redistribute it or modify | ||
# under the terms of GNU General Public License, v.2 or above | ||
|
||
import logging | ||
import getopt | ||
import sys | ||
import os | ||
import platform | ||
|
||
# Had trouble in importing scripts directory. Had to add few lines below to ensure it works on source as well as | ||
# post install | ||
try: | ||
from scripts.mbusb_cli import * | ||
from scripts import admin | ||
from scripts import gen | ||
except: | ||
try: | ||
from .scripts.mbusb_cli import * | ||
from .scripts import admin | ||
from .scripts import gen | ||
except: | ||
import scripts | ||
|
||
gui = True | ||
iso_link = None | ||
usb_disk = None | ||
uninstall = False | ||
|
||
def usage(): | ||
print('\nAn advanced multi boot live usb creator using command line.') | ||
print('\nUsage: python3 multibootusb -c -i /path/to/iso [option(s)] -t /path/to/device\n') | ||
print('[option(s)] are :\n') | ||
print(' -h or --help : Print this help message and exit') | ||
print(' -i or --iso : Path to ISO file') | ||
print(' -t or --target : Path to target USB device partition (example /dev/sdb1)\n') | ||
print(' -c or --command : This option is must for invoking multibootusb from command line\n') | ||
print(' -u or --uninstall : List and uninstall distro from USB disk') | ||
print(' Command line example for making a bootable USB from command line should look like this:-\n') | ||
print(' python3 multibootusb -c -i ../../favourite.iso -t /dev/sdb1\n') | ||
exit(2) | ||
|
||
|
||
def start_gui(): | ||
from scripts import mbusb_gui | ||
gen.log('Starting multibootusb GUI...') | ||
if platform.system() == 'Linux': | ||
if os.getuid() != 0: | ||
gen.log('\n\nAdmin privilege is required to run multibootusb.\n If you are running from source try ' | ||
'\'sudo python3 ./multibootusb\'\n or you can try \'multibootusb-pkexec\' (post install)\n\n', | ||
info=False, debug=True) | ||
mbusb_gui.main_gui() | ||
|
||
|
||
if __name__ == '__main__': | ||
if platform.system() == 'Windows': | ||
if not admin.isUserAdmin(): | ||
admin.runAsAdmin() | ||
sys.exit(0) | ||
try: | ||
opts, args = getopt.getopt(sys.argv[1:], 'i:t:vhcu', | ||
['iso=', 'target=', 'version', 'help', 'command', 'uninstall']) | ||
except getopt.GetoptError: | ||
usage() | ||
sys.exit(2) | ||
for opt, arg in opts: | ||
if opt in ('-h', '--help'): | ||
usage() | ||
sys.exit(2) | ||
elif opt in ('-v', '--version'): | ||
print_version() | ||
sys.exit() | ||
elif opt in ('-i', '--iso'): | ||
config.iso_link = arg | ||
elif opt in ('-t', '--target'): | ||
config.usb_disk = arg | ||
elif opt in ('-c', '--command'): | ||
gui = False | ||
elif opt in ('-u', '--uninstall'): | ||
uninstall = True | ||
else: | ||
gui = True | ||
#start_gui() | ||
''' | ||
usage() | ||
sys.exit() | ||
''' | ||
|
||
if gui is False: | ||
if uninstall is True and config.usb_disk is not None: | ||
cli_uninstall_distro() | ||
elif config.iso_link is None and config.usb_disk is None: | ||
usage() | ||
elif config.iso_link is None or config.usb_disk is None: | ||
print('\nOptions \'-i\' and \'t\' must be supplied together. See the usage below.') | ||
usage() | ||
else: | ||
cli_install_distro() | ||
|
||
elif gui is True: | ||
start_gui() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
if [ $(which pkexec) ]; then | ||
pkexec --disable-internal-agent "/usr/bin/multibootusb" "$@" | ||
else | ||
/usr/bin/multibootusb "$@" | ||
fi |
19 changes: 19 additions & 0 deletions
19
deb_dist/multibootusb-8.5.0/org.debian.pkexec.run-multibootusb.policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE policyconfig PUBLIC | ||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" | ||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> | ||
<policyconfig> | ||
|
||
<action id="org.debian.pkexec.run-multibootusb"> | ||
<description>Run the multibootusb program</description> | ||
<message>Authentication is required to run the multibootusb</message> | ||
<defaults> | ||
<allow_any>auth_admin</allow_any> | ||
<allow_inactive>auth_admin</allow_inactive> | ||
<allow_active>auth_admin</allow_active> | ||
</defaults> | ||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/multibootusb</annotate> | ||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> | ||
</action> | ||
|
||
</policyconfig> |
Oops, something went wrong.