{"id":7068,"date":"2023-09-18T13:01:24","date_gmt":"2023-09-18T11:01:24","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=7068"},"modified":"2023-12-23T20:36:14","modified_gmt":"2023-12-23T19:36:14","slug":"spirallinux-mit-2-gb-ram-und-macbook-pro-von-2008","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/18\/spirallinux-mit-2-gb-ram-und-macbook-pro-von-2008\/","title":{"rendered":"MacBook mit 2 GB RAM und ohne Swap-Partition \u2013 damit kommt SpiralLinux klar"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">K\u00fcrzlich hat mir ein Bekannter sein altes MacBook Pro 4.1 von 2008 \u00fcberlassen. Ich habe nach Linux-Distributionen gesucht, um es damit zu betreiben. Es hat nur 2 GB RAM (l\u00e4sst sich aber aufr\u00fcsten auf 4 GB). Ich suchte nach Distributionen f\u00fcr alte Computer und fand Puppy Linux, Lubuntu, Xubuntu, Antix usw. Da ich aber mit SpiralLinux auf anderen Computern sehr zufrieden bin, habe ich es damit versucht, und zwar mit der Xfce-Umgebung und btrfs. Und siehe da: Nach anf\u00e4nglichem schwarzem Bildschirm beim Booten musste ich in Grub die Option <em>nomodeset<\/em> hinzuf\u00fcgen. Danach funktionierte es prima und kam nicht so schnell an Grenzen. Ich war neugierig und schaute mit<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>free -h<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">den Output an und entdeckte, dass da <em>swap<\/em> angezeigt wurde:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/free.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"75\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/free.png\" alt=\"\" class=\"wp-image-7070\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/free.png 654w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/free-300x34.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/free-150x17.png 150w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Das erstaunte mich, da SpiralLinux keine Swap-Partition angelegt hatte und ich auch nicht. Schliesslich stiess ich darauf, dass mit <em>zramswap<\/em> gearbeitet wurde, ganz automatisch und ohne dass ich mich darum bem\u00fcht hatte \u2013 Output von &#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><br>sudo zramswap status<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zramswap.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"573\" height=\"71\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zramswap.png\" alt=\"\" class=\"wp-image-7071\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zramswap.png 573w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zramswap-300x37.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/zramswap-150x19.png 150w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Und<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo swapon -s<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">zeigte (sp\u00e4ter) Folgendes:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/swapon.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"68\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/swapon.png\" alt=\"\" class=\"wp-image-7072\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/swapon.png 665w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/swapon-300x31.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/swapon-150x15.png 150w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Darum mein Tipp: Bei einem alten Computer es mit SpiralLinux (und leichtem Desktop) versuchen &#8211; oder mit zram(swap). (Will man den Computer aber in Bereitschaft versetzen, reicht das jedoch nicht.) Siehe auch den Linux-Bibel-Beitrag <a rel=\"noreferrer noopener\" href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=336\" target=\"_blank\">Bessere Nutzung des Arbeitsspeichers unter Linux mit zRAM<\/a><br><br>PS. In der Datei <em>\/etc\/default\/grub<\/em> kann man als Administrator <em>nomodeset<\/em> als dauerhafte Startoption eintragen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GRUB_CMDLINE_LINUX_DEFAULT=\"nomodeset\"<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Erg\u00e4nzung aus dem Forum<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Der Befehl<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Code: <a href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=1252#\">Alles ausw\u00e4hlen<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>inxi -j<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">zeigt \u00fcbrigens sehr \u00fcbersichtlich an, wie es um den Swap steht.<br><br>Ein Beispiel mit Swap-Partition und zRam: <a href=\"https:\/\/www.linux-bibel-oesterreich.at\/download\/file.php?id=5479&amp;mode=view\"><\/a> Der Befehl inxi -j zeigt den Swap an<br>&#8230;<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Zram, Swap-Partition und Bereitschaftsmodus<\/strong><br>Das Beispiel mit <em>inxi -j<\/em> zeigt eine Swap-Partition, die ich nachtr\u00e4glich eingerichtet (auch in der fstab-Datei eingetragen) habe, weil der Bereitschaftsmodus auf eine solche Partition angewiesen ist &#8211; hat man sie nicht, gibts nach dem Wechsel in den Bereitschaftsmodus nur Probleme. Nun, irgendwie scheint diese Partition nicht die L\u00f6sung zu sein im Zusammenhang mit zRam und dem Bereitschaftsmodus. Ob es \u00fcberhaupt sinnvoll ist, dass ich sie angelegt habe, weiss ich nicht &#8230;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Erstver\u00f6ffentlichung: So 8. Jan 2023, 17:34<\/strong><\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"7068\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"7068\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>K\u00fcrzlich hat mir ein Bekannter sein altes MacBook Pro 4.1 von 2008 \u00fcberlassen. Ich habe nach Linux-Distributionen gesucht, um es damit zu betreiben. Es hat nur 2 GB RAM (l\u00e4sst sich aber aufr\u00fcsten auf 4 GB). Ich suchte nach Distributionen f\u00fcr alte Computer und fand Puppy Linux, Lubuntu, Xubuntu, Antix usw. Da ich aber mit [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[618,70,17,102],"tags":[639,640,641],"class_list":["post-7068","post","type-post","status-publish","format-standard","hentry","category-distributionen","category-hardware","category-system","category-tipps-system","tag-speicher","tag-swap","tag-zram"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=7068"}],"version-history":[{"count":10,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7068\/revisions"}],"predecessor-version":[{"id":12807,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7068\/revisions\/12807"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=7068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=7068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=7068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}