{"id":1815,"date":"2018-05-04T17:56:00","date_gmt":"2018-05-04T16:56:00","guid":{"rendered":"https:\/\/weeeopen.polito.it\/?p=1815"},"modified":"2021-10-02T21:04:41","modified_gmt":"2021-10-02T20:04:41","slug":"ubuntu-oem-install-via-pxe","status":"publish","type":"post","link":"https:\/\/weeeopen.polito.it\/en\/ubuntu-oem-install-via-pxe\/","title":{"rendered":"Ubuntu OEM install via PXE"},"content":{"rendered":"<p>Da un po&#8217; di tempo abbiamo iniziato a effettuare installazioni OEM di Xubuntu sui computer che abbiamo riparato.<\/p>\n\n\n\n<p>La modalit\u00e0 di&nbsp;<a href=\"https:\/\/askubuntu.com\/a\/157821\">installazione OEM<\/a>, presente su Ubuntu e tutte le distribuzioni derivate come Xubuntu, consente di installare il sistema operativo, effettuare alcune personalizzazioni utilizzando un account temporaneo (ad esempio installiamo anche VLC su tutti i computer) e poi &#8220;preparare il computer per la spedizione&#8221;: al successivo avvio l&#8217;account temporaneo viene eliminato e viene chiesto all&#8217;utente finale che username e password utilizzare.<\/p>\n\n\n\n<p>Il risultato ha un aspetto decisamente pi\u00f9 professionale che fornire computer con username e password scelti da noi, anche se si possono cambiare.<\/p>\n\n\n\n<p>Tuttavia, di recente abbiamo completato la costruzione di un server PXE per avviare tramite LAN l&#8217;installazione, ma con tale modalit\u00e0 non si pu\u00f2 accedere al menu in cui selezionare &#8220;Installazione OEM&#8221;.<\/p>\n\n\n\n<p>Ricordavo di aver trovato su internet il parametro da passare al kernel, anche se probabilmente lo legge qualche altro programma e non il kernel, ma non riuscendo pi\u00f9 a localizzarlo in alcun anfratto del web abbiamo provato ad avviare Xubuntu da una chiavetta, impostato &#8220;Installazione OEM&#8221; e utilizzato &#8220;Altre opzioni&#8221; nel menu di avvio per visualizzare la &#8220;riga di comando&#8221; del kernel, dove per\u00f2 non c&#8217;era alcuna opzione aggiuntiva.<\/p>\n\n\n\n<p>Invece di perdere ogni speranza, abbiamo banalmente avviato la live in modalit\u00e0 OEM Install e visualizzato la riga di comando da l\u00ec, tramite&nbsp;<code>cat \/proc\/cmdline<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>file=\/cdrom\/preseed\/xubuntu.seed boot=casper only-ubiquity\ninitrd=\/casper\/initrd.lz quiet splash --- debian-installer\/language=it\nkeyboard-configuration\/layoutcode?=it oem-config\/enable=true<\/code><\/pre>\n\n\n\n<p>\u00c8 una riga unica ma sono stati inseriti degli a capo per leggibilit\u00e0.<\/p>\n\n\n\n<p>Probabilmente l&#8217;unico parametro importante \u00e8&nbsp;<code>oem-config\/enable=true<\/code>. Con&nbsp;<code>ubiquity-only<\/code>&nbsp;viene avviato direttamente il setup, senza avvia una sessione live (da cui \u00e8 comunque possibile effettuare l&#8217;installazione OEM). \u00c8 anche positivo il fatto di aver finalmente capito come impostare il layout della tastiera.<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/WEEE-Open\/ansible-pxe\/\">Mettendo insieme tutti i pezzi<\/a>, la entry nel menu di Syslinux\/PXELINUX per avviare direttamente l&#8217;installazione OEM su Xubuntu 18.04, ma in generale su qualsiasi derivata di Ubuntu 18.04, \u00e8:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>LABEL xubuntu1804x64OEM\n  MENU LABEL Xubuntu 18.04 64 bit - OEM Install\n  KERNEL nfs\/xubuntu1804x64\/casper\/vmlinuz\n  APPEND initrd=nfs\/xubuntu1804x64\/casper\/initrd.lz boot=casper\n   ubiquity-only netboot=nfs\n   nfsroot=192.168.0.10:\/tftpboot\/nfs\/xubuntu1804x64 ---\n   debian-installer\/language=it\n   keyboard-configuration\/layoutcode?=it\n   oem-config\/enable=true<\/code><\/pre>\n\n\n\n<p>Di nuovo, gli a capo sono solo per leggibilit\u00e0: da&nbsp;<code>APPEND<\/code>&nbsp;in poi \u00e8 tutto sulla stessa riga.<\/p>\n\n\n\n<p>192.168.0.10 \u00e8 l&#8217;IP del server NFS. I percorsi di&nbsp;<code>vmlinuz<\/code>&nbsp;and&nbsp;<code>initrd.lz<\/code>&nbsp;sono relativi alla radice del server TFTP (<code>\/tftpboot<\/code>) in quanto vengono inviati via TFTP e non NFS, ma questo riguarda l&#8217;<a href=\"https:\/\/askubuntu.com\/a\/440802\">avvio tramite PXE<\/a>&nbsp;e non l&#8217;installazione OEM in s\u00e9.<\/p>","protected":false},"excerpt":{"rendered":"<p>Da un po&#8217; di tempo abbiamo iniziato a effettuare installazioni OEM di Xubuntu sui computer che abbiamo riparato. La modalit\u00e0 di&nbsp;installazione OEM, presente su Ubuntu e tutte le distribuzioni derivate come Xubuntu, consente di installare il sistema operativo, effettuare alcune personalizzazioni utilizzando un account temporaneo (ad esempio installiamo anche VLC su tutti i computer) e [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":282,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[1],"tags":[20],"ppma_author":[34],"class_list":["post-1815","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-tutorial","entry","has-media"],"authors":[{"term_id":34,"user_id":3,"is_guest":0,"slug":"quel_tale","display_name":"Ludovico Pavesi","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/3da3b33c961529a3c0bce56f90bb5b20?s=96&d=retro&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/posts\/1815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/comments?post=1815"}],"version-history":[{"count":0,"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/posts\/1815\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/media\/282"}],"wp:attachment":[{"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/media?parent=1815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/categories?post=1815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/tags?post=1815"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/weeeopen.polito.it\/en\/wp-json\/wp\/v2\/ppma_author?post=1815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}