{"id":63,"date":"2020-02-22T20:05:35","date_gmt":"2020-02-22T19:05:35","guid":{"rendered":"http:\/\/www.w2hp.net\/wp\/?p=63"},"modified":"2020-02-22T20:05:35","modified_gmt":"2020-02-22T19:05:35","slug":"raspberry-pi-hilfe","status":"publish","type":"post","link":"https:\/\/wp.w2hp.net\/?p=63","title":{"rendered":"Raspberry PI &#8211; hilfe"},"content":{"rendered":"<div>\n<p><a href=\"https:\/\/ubuntu-mate.org\/raspberry-pi\/\">from https:\/\/ubuntu-mate.org\/raspberry-pi\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Re-size file\u00a0system<\/h3>\n<h4>Ubuntu MATE\u00a016.04<\/h4>\n<p>You can use Ubuntu MATE Welcome to resize to automatically resize the partitions to make full use of your microSHDC card capacity. Simply click the large\u00a0<strong>Raspberry Pi Information<\/strong>\u00a0button on the Welcome screen, click the\u00a0<strong>Resize<\/strong>\u00a0button and then restart the Raspberry\u00a0Pi.<\/p>\n<h4>Manual\u00a0Method<\/h4>\n<p>It\u2019s not hard to do manually. Once\u00a0booted:<\/p>\n<pre class=\"code literal-block\">sudo fdisk \/dev\/mmcblk0\r\n<\/pre>\n<p>Delete the second partition (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w). Reboot the system,\u00a0then:<\/p>\n<pre class=\"code literal-block\">sudo resize2fs \/dev\/mmcblk0p2\r\n<\/pre>\n<h3>Enable and Disable\u00a0X11<\/h3>\n<p>We created a simple utility called\u00a0<code>graphical<\/code>\u00a0to disable\/enable the MATE desktop environment for easily creating a headless\u00a0<em>\u201cserver\u201d<\/em>. Executing\u00a0<code>graphical disable<\/code>\u00a0will present a console login on the next boot, with no X11 or associated services running. If you want to get the full Ubuntu MATE desktop back, run\u00a0<code>graphical enable<\/code>\u00a0and\u00a0reboot.<\/p>\n<h3>Hardware accelerated video with\u00a0omxplayer<\/h3>\n<p>Most videos will play with hardware acceleration using\u00a0<code>omxplayer<\/code>\u00a0which is pre-installed in Ubuntu MATE. However if you have MPEG-2 or VC-1 video video files then\u00a0<strong>you will need MPEG-2 and\/or VC-1 licenses from the\u00a0<a href=\"http:\/\/www.raspberrypi.com\/license-keys\/\">Raspberry Pi Store<\/a><\/strong>.<\/p>\n<h4>Redirecting audio\u00a0output<\/h4>\n<p>You can select which audio device\u00a0<code>omxplayer<\/code>\u00a0should output audio\u00a0to.<\/p>\n<h5>For\u00a0HDMI<\/h5>\n<pre class=\"code literal-block\">omxplayer -o hdmi video.mp4\r\n<\/pre>\n<h5>For 3.5mm audio\u00a0jack<\/h5>\n<pre class=\"code literal-block\">omxplayer -o local video.mp4\r\n<\/pre>\n<p>The sound will output to HDMI by default if both HDMI and the 3.5mm audio jack are connected. You can, however, force the system to output to a particular device using\u00a0<code>amixer<\/code>.<\/p>\n<h5>For\u00a0HDMI<\/h5>\n<pre class=\"code literal-block\">sudo amixer cset numid=3 2\r\n<\/pre>\n<h5>For 3.5mm audio\u00a0jack<\/h5>\n<pre class=\"code literal-block\">sudo amixer cset numid=3 1\r\n<\/pre>\n<h3>Hardware accelerated video with VLC and\u00a0ffmpeg<\/h3>\n<p>Ubuntu MATE 16.04 added OpemMAX IL hardware accelerated video playback to VLC and MMAL hardware accelerated video playback to\u00a0ffmpeg.<\/p>\n<ul>\n<li>To enable hardware accelerated video playback in VLC go to\u00a0<code>Tools<\/code>\u00a0-&gt;\u00a0<code>Preferences<\/code>\u00a0-&gt;\u00a0<code>Video<\/code>\u00a0and select\u00a0<code>OpenMax IL<\/code>.<\/li>\n<li>To use hardware accelerated video playback with\u00a0<code>ffplay<\/code>\u00a0you must specify the\u00a0<code>h264_mmal<\/code>\u00a0codec<code>ffplay -vcodec h264_mmal video.mp4<\/code><\/li>\n<\/ul>\n<p>Hardware accelerated playback on the Raspberry Pi works by overlaying the video directly to the screen. Therefore there are no onscreen controls for playback control. You\u2019ll need to use the VLC and ffmpeg keyboard\u00a0shortcuts.<\/p>\n<ul>\n<li><a href=\"https:\/\/wiki.videolan.org\/Hotkeys_table\/\">VLC keyboard\u00a0control<\/a><\/li>\n<li><a href=\"https:\/\/ffmpeg.org\/ffplay.html#toc-While-playing\">ffplay keyboard\u00a0controls<\/a><\/li>\n<\/ul>\n<\/div>\n<ul class=\"pager pagenav\">\n<li class=\"previous\"><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>from https:\/\/ubuntu-mate.org\/raspberry-pi\/ &nbsp; Re-size file\u00a0system Ubuntu MATE\u00a016.04 You can use Ubuntu MATE Welcome to resize to automatically resize the partitions to make full use of your microSHDC card capacity. Simply click the large\u00a0Raspberry Pi Information\u00a0button on the Welcome screen, click the\u00a0Resize\u00a0button and then restart the Raspberry\u00a0Pi. Manual\u00a0Method It\u2019s not hard to do manually. Once\u00a0booted: sudo &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wp.w2hp.net\/?p=63\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eRaspberry PI &#8211; hilfe\u201c<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":2,"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions\/65"}],"wp:attachment":[{"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.w2hp.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}