{"id":383,"date":"2018-03-02T16:56:50","date_gmt":"2018-03-02T16:56:50","guid":{"rendered":"http:\/\/debian-economist.eu\/wp\/?p=383"},"modified":"2018-05-20T14:10:46","modified_gmt":"2018-05-20T14:10:46","slug":"fix-to-get-unetbootins-graphical-interface-with-root-in-debian-9","status":"publish","type":"post","link":"https:\/\/debian-economist.eu\/wp\/?p=383","title":{"rendered":"Fix to get unetbootin&rsquo;s graphical interface with root in debian 9"},"content":{"rendered":"<p><a href=\"https:\/\/unetbootin.github.io\/\">Unetbootin<\/a> is a very nice software to create bootable live usb keys. It requires to be run as root to get the access to format the usb disk. If you launch unetbootin as user, you will get a warning from the software:<\/p>\n<div style=\"width: 511px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/postimg.cc\/image\/4pipvz82d\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s18.postimg.cc\/5f1i8c8m1\/unetbootin_avertissement.png\" alt=\"unetbootin_avertissement\" width=\"501\" height=\"200\" \/><\/a><p class=\"wp-caption-text\">The title says \u00ab\u00a0only root can start it\u00a0\u00bb. It shows the command to start unetbootin as root.<\/p><\/div>\n<p>If you click on OK, you will get the GUI of netbootin but it won&rsquo;t work because it is not started as root:<\/p>\n<div style=\"width: 538px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/postimg.cc\/image\/76uh38k91\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s18.postimg.cc\/5f1i8c0w9\/unetbootin_gui_noroot.png\" alt=\"unetbootin_gui_noroot\" width=\"528\" height=\"400\" border=\"0\" \/><\/a><p class=\"wp-caption-text\">GUI of Unetbootin when it is not started as root on my desktop.<\/p><\/div>\n<p>Alas, when I started unetbootin in the terminal as root, I got the following output:<\/p>\n<p><code>X Error: BadAccess (attempt to access private resource denied) 10<br \/>\nExtension:    130 (MIT-SHM)<br \/>\nMinor opcode: 1 (X_ShmAttach)<br \/>\nResource id:  0x15d<br \/>\nX Error: BadShmSeg (invalid shared segment parameter) 128<br \/>\nExtension:    130 (MIT-SHM)<br \/>\nMinor opcode: 5 (X_ShmCreatePixmap)<br \/>\nResource id:  0x2600010<br \/>\nX Error: BadDrawable (invalid Pixmap or Window parameter) 9<br \/>\nMajor opcode: 62 (X_CopyArea)<br \/>\nResource id:  0x2600011<br \/>\nX Error: BadDrawable (invalid Pixmap or Window parameter) 9<br \/>\nMajor opcode: 62 (X_CopyArea)<br \/>\nResource id:  0x2600011<br \/>\n<\/code><\/p>\n<p>The window of unetbootin was entirely gray. I found an <a href=\"https:\/\/bbs.archlinux.org\/viewtopic.php?pid=1458501#p1458501\">old topic<\/a> from 2014 on the arch linux forum. Hopefully, a <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Forum_etiquette#Old_threads.2F.22necro-bumping.22\">necrobumper<\/a> posted a solution in 2016:<br \/>\n<code>sudo QT_X11_NO_MITSHM=1 unetbootin<\/code><br \/>\nThe solution is clever. The environment\u00a0QT_X11_NO_MITSHM: Stops QT from using the <a href=\"https:\/\/en.wikipedia.org\/wiki\/MIT-SHM\">MIT-SHM X11 Shared Memory Extension<\/a>. It works but the graphical interface is quite old fashion:<\/p>\n<div style=\"width: 540px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/postimg.cc\/image\/i3vss070l\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s18.postimg.cc\/gou83a5xl\/unetbootin_no_mitshm.png\" alt=\"unetbootin_no_mitshm\" width=\"530\" height=\"401\" border=\"0\" \/><\/a><p class=\"wp-caption-text\">Window when MITM_SHM is desactivated for the QT environment.<\/p><\/div>\n<p>When you compare to the first GUI that I got when I started the software as a user and not as root, it is striking.<\/p>\n<p>I found a fix but I did not get the end of the story. <a href=\"https:\/\/bugs.archlinux.org\/task\/42030?project=5\">A bug report was opened in 2014 on the archlinux website<\/a>. The comments talks about the <a href=\"https:\/\/wiki.debian.org\/PolicyKit\">policy kit<\/a>. I did not find much about its relationship with unetbootin on debian. If you have any tip, do not hesitate to share a comment.<\/p>\n<p>Views: 1449<\/p>","protected":false},"excerpt":{"rendered":"<p>Unetbootin is a very nice software to create bootable live usb keys. It requires to be run as root to get the access to format the usb disk. If you launch unetbootin as user, you will get a warning from the software: If you click on OK, you will get the GUI of netbootin but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[252,251,256,254,255,253],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-hints","tag-archlinux","tag-debian","tag-mit-shm","tag-polkit","tag-qt","tag-unetbootin"],"_links":{"self":[{"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=383"}],"version-history":[{"count":3,"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":418,"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions\/418"}],"wp:attachment":[{"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/debian-economist.eu\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}