{"id":615,"date":"2019-08-11T16:10:38","date_gmt":"2019-08-11T15:10:38","guid":{"rendered":"https:\/\/notiz.comanet.xyz\/?p=615"},"modified":"2022-05-22T15:13:16","modified_gmt":"2022-05-22T14:13:16","slug":"liux-tips-comans","status":"publish","type":"post","link":"https:\/\/notiz.comanet.xyz\/?p=615","title":{"rendered":"Liux Tips \/ Comands"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><strong>Backup \/ Make Image of SD Card<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dd if=\/dev\/mmcblk0 of=\/xxx\/xxxx\/2020-08-03_xxx.img status=progress<\/code><\/pre>\n\n\n\n<p><strong>TonTon VPN 102.168.1.2<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dd if=\/dev\/mmcblk0 of=\/media\/pi\/PiBackup\/2021-11-12_tonton-VPN.img status=progress<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Start file manager in terminal window <\/strong><br><br>In Raspbian (Raspberry Debian) from terminal console<code>:<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gksu pcmanfm -&gt; open file explorer as root \ngksu leafpad -&gt; open file editor as root<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-medium-font-size\"><a rel=\"noreferrer noopener\" href=\"https:\/\/ubuntuforums.org\/showthread.php?t=1900560\" target=\"_blank\"><strong>How do I open file manager as root<\/strong><\/a><strong> <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nautilus \ngksu nautilus \n\nsudo -i \n&lt;enter password> \nnautilus \n\nsudo pcmanfm<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Viditi sto je zadnje instalirano<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tail \u2013n25 \/var\/log\/apt\/history.log <\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-medium-font-size\"><strong>htop<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"418\" src=\"https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2019\/11\/image.png\" alt=\"\" class=\"wp-image-642\" srcset=\"https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2019\/11\/image.png 655w, https:\/\/notiz.comanet.xyz\/wp-content\/uploads\/2019\/11\/image-300x191.png 300w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Raspberry Config<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo raspi-config <\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Raspberry Update<\/strong> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update \nsudo apt full-upgrade <\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Viditi Zadnje Update<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tail \u2013n25 \/var\/log\/apt\/history.log <\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">NextCloud Commands<\/h1>\n\n\n\n<p><b><span data-contrast=\"auto\">Maintance mode ON \/ OFF<\/span><\/b>&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -u www-data php occ maintenance:mode \u2013on <\/code><\/pre>\n\n\n\n<p><b><span data-contrast=\"auto\">Clean Trash (All Users)<\/span><\/b>&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -u www-data php occ trashbin:cleanup --all-users<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Rotating the screen<\/h2>\n\n\n\n<p>If you&#8217;re using our stand, you&#8217;ll have to rotate the screen. We&#8217;ve \norientated it so that the Pi power, AV and HDMI ports are facing \nupwards, to keep the sleek low profile look, and the GPIO is at the \nbottom so you can wrap a ribbon cable underneath for easy access to GPIO\n via Black HAT Hack3r.<\/p>\n\n\n\n<p>You can rotate the LCD by editing \/boot\/config.txt and adding the line: lcd_rotate=2 to the top.<\/p>\n\n\n\n<p>You can do this by booting up your Pi, going into the Raspberry menu, picking &#8220;Accessories&#8221; and then &#8220;Terminal&#8221;.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In Terminal, type &#8220;sudo nano \/boot\/config.txt&#8221;<\/li><li>Add the line &#8220;lcd_rotate=2&#8221; to the top of the file.<\/li><li>Press CTRL+X<\/li><li>Then Y<\/li><li>Then Enter.<\/li><li>And reboot!<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Backup \/ Make Image of SD Card TonTon VPN 102.168.1.2 Start file manager in terminal window In Raspbian (Raspberry Debian) from terminal console: How do I open file manager as root Viditi sto je zadnje instalirano htop&nbsp; Raspberry Config Raspberry Update Viditi Zadnje Update NextCloud Commands Maintance mode ON \/ OFF&nbsp; Clean Trash (All Users)&nbsp;&#8230;<\/p>\n","protected":false},"author":1,"featured_media":609,"comment_status":"closed","ping_status":"closed","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,29,13],"tags":[],"class_list":["post-615","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-raspberry-pi","category-tips-tricks"],"_links":{"self":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=615"}],"version-history":[{"count":13,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions"}],"predecessor-version":[{"id":824,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions\/824"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/media\/609"}],"wp:attachment":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}