{"id":1369,"date":"2020-08-25T22:36:06","date_gmt":"2020-08-25T14:36:06","guid":{"rendered":"https:\/\/eligiblestore.com\/blog\/?p=1369"},"modified":"2022-01-10T18:33:51","modified_gmt":"2022-01-10T10:33:51","slug":"tips-and-tricks-for-your-raspberry-pi","status":"publish","type":"post","link":"https:\/\/eligiblestore.com\/blog\/2020\/08\/25\/tips-and-tricks-for-your-raspberry-pi\/","title":{"rendered":"Tips and tricks for your Raspberry Pi"},"content":{"rendered":"<p>Now you have a fresh Raspberry Pi that&#8217;s great now what? Here&#8217;s my tips to enhance your experience with Raspberry Pi<\/p>\n<h2>Install unattended-upgrades<\/h2>\n<p>This will ensure your pi will get the latest security updates this is important if you are going to install VPN (Wireguard) <a href=\"https:\/\/pivpn.io\" target=\"_blank\" rel=\"noopener noreferrer\">pivpn.io<\/a> on your Pi, check this blog post I found here &#8211; <a href=\"https:\/\/medium.com\/@bipul.k.kuri\/auto-update-upgrade-raspberry-pi-b5b7b43ced64\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/medium.com\/@bipul.k.kuri\/auto-update-upgrade-raspberry-pi-b5b7b43ced64<\/a><\/p>\n<h2>Install log2ram<\/h2>\n<p>This will help you extend your SD Card lifetime setting the log to ram instead, you may follow the instruction from the blog post &#8211; <a href=\"https:\/\/mcuoneclipse.com\/2019\/04\/01\/log2ram-extending-sd-card-lifetime-for-raspberry-pi-lorawan-gateway\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/mcuoneclipse.com\/2019\/04\/01\/log2ram-extending-sd-card-lifetime-for-raspberry-pi-lorawan-gateway\/<\/a><\/p>\n<h2>Install neofetch<\/h2>\n<p>Basically this will run a summary report of your raspberry pi spec to install just run this command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ sudo apt install neofetch<\/pre>\n<p><a href=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.09.25.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1373\" data-permalink=\"https:\/\/eligiblestore.com\/blog\/2020\/08\/25\/tips-and-tricks-for-your-raspberry-pi\/screen-shot-2020-08-25-at-22-09-25\/\" data-orig-file=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.09.25.png?fit=1296%2C912&amp;ssl=1\" data-orig-size=\"1296,912\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen Shot 2020-08-25 at 22.09.25\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.09.25.png?fit=1024%2C721&amp;ssl=1\" class=\"aligncenter size-full wp-image-1373\" src=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.09.25.png?resize=1088%2C766&#038;ssl=1\" alt=\"\" width=\"1088\" height=\"766\" srcset=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.09.25.png?w=1296&amp;ssl=1 1296w, https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.09.25.png?resize=300%2C211&amp;ssl=1 300w, https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.09.25.png?resize=1024%2C721&amp;ssl=1 1024w, https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.09.25.png?resize=768%2C540&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1088px) 100vw, 1088px\" \/><\/a><\/p>\n<h2>Install zsh + oh-my-zsh to replace bash<\/h2>\n<p>Just follow along on this blog post I found &#8211;\u00a0<a href=\"https:\/\/www.uberbuilder.com\/oh-my-zsh-on-raspberry-pi\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.uberbuilder.com\/oh-my-zsh-on-raspberry-pi\/<\/a><\/p>\n<p><strong>Step 1 &#8211; Install zsh and set as default<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get update &amp;&amp; sudo apt-get upgrade\r\n$ sudo apt-get install git zsh\r\n$ chsh -s \/bin\/zsh\r\n&#x5B;enter your pi password]\r\n$ exit\r\n<\/pre>\n<p>next you need to SSH to your pi again and choose: <strong>q\u00a0<\/strong>to exit from Z shell menu<\/p>\n<p><strong>Step 2 &#8211; Install oh-my-zsh and recommended plugins<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sh -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/robbyrussell\/oh-my-zsh\/master\/tools\/install.sh)&quot;\r\n$ git clone https:\/\/github.com\/zsh-users\/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~\/.oh-my-zsh\/custom}\/plugins\/zsh-syntax-highlighting\r\n$ git clone https:\/\/github.com\/zsh-users\/zsh-autosuggestions ${ZSH_CUSTOM:-~\/.oh-my-zsh\/custom}\/plugins\/zsh-autosuggestions\r\n$ git clone https:\/\/github.com\/zsh-users\/zsh-completions ${ZSH_CUSTOM:=~\/.oh-my-zsh\/custom}\/plugins\/zsh-completions\r\n$ vi .zshrc\r\n<\/pre>\n<p>search and uncomment below:<\/p>\n<pre># export PATH=$HOME\/bin:\/usr\/local\/bin:$PATH\r\n# export LANG=en_US.UTF-8<\/pre>\n<p>modify\/set:<\/p>\n<pre>plugins<span class=\"token operator\">=<\/span><span class=\"token punctuation\">(<\/span>git zsh-completions zsh-autosuggestions zsh-syntax-highlighting<span class=\"token punctuation\">)<\/span> \r\nautoload -U compinit <span class=\"token operator\">&amp;&amp;<\/span> compinit<\/pre>\n<p>Done! zsh is installed with recommended plugins.<\/p>\n<h2>Beautify your zsh<\/h2>\n<p>I am using this theme\u00a0<a href=\"https:\/\/github.com\/romkatv\/powerlevel10k\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/romkatv\/powerlevel10k<\/a> with this simple step:<\/p>\n<p>on your home directory run:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ git clone https:\/\/github.com\/romkatv\/powerlevel10k.git $ZSH_CUSTOM\/themes\/powerlevel10k<\/pre>\n<p>edit your<\/p>\n<pre>~\/.zshrc<\/pre>\n<p>and set<\/p>\n<pre>ZSH_THEME=\"powerlevel10k\/powerlevel10k\"<\/pre>\n<p>log out from terminal session and login again there will be a wizard to design your theme, follow along.<\/p>\n<p><del>for better experience install and use this font as default on your terminal <a href=\"https:\/\/github.com\/Falkor\/dotfiles\/blob\/master\/fonts\/SourceCodePro%2BPowerline%2BAwesome%2BRegular.ttf\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/Falkor\/dotfiles\/blob\/master\/fonts\/SourceCodePro%2BPowerline%2BAwesome%2BRegular.ttf<\/a><\/del><\/p>\n<p>EDIT :<\/p>\n<p>Use the recommended font instead, it&#8217;s perfect:<br \/>\n<a href=\"https:\/\/github.com\/romkatv\/powerlevel10k#fonts\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/romkatv\/powerlevel10k#fonts<\/a><\/p>\n<p>Here&#8217;s my result, do as you please:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.12.59.png?ssl=1\"><br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1374\" data-permalink=\"https:\/\/eligiblestore.com\/blog\/2020\/08\/25\/tips-and-tricks-for-your-raspberry-pi\/screen-shot-2020-08-25-at-22-12-59\/\" data-orig-file=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.12.59.png?fit=1264%2C598&amp;ssl=1\" data-orig-size=\"1264,598\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen Shot 2020-08-25 at 22.12.59\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.12.59.png?fit=1024%2C484&amp;ssl=1\" class=\"aligncenter size-full wp-image-1374\" src=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.12.59.png?resize=1088%2C515&#038;ssl=1\" alt=\"\" width=\"1088\" height=\"515\" srcset=\"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.12.59.png?w=1264&amp;ssl=1 1264w, https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.12.59.png?resize=300%2C142&amp;ssl=1 300w, https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.12.59.png?resize=1024%2C484&amp;ssl=1 1024w, https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-22.12.59.png?resize=768%2C363&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1088px) 100vw, 1088px\" \/><\/a><\/p>\n<h2>Beautify VIM<\/h2>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ nano ~\/.vimrc<\/pre>\n<p>Paste below:<\/p>\n<pre>set nocompatible\r\nfiletype on\r\nfiletype indent on\r\nfiletype plugin on\r\nsyntax on\r\ncolorscheme industry\r\nset laststatus=2\r\nset statusline=%&lt;%f\\%h%m%r%=%-20.(line=%l\\ \\ col=%c%V\\ \\ totlin=%L%)\\ \\ \\%h%m%r%=%-40(bytval=0x%B,%n%Y%)\\%P\r\nset ofu=syntaxcomplete#Complete<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ sudo apt-get upgrade vim<\/pre>\n<h2>Install Mosh<\/h2>\n<p>I have discussed about mosh previously check out <a href=\"https:\/\/eligiblestore.com\/blog\/2017\/05\/02\/how-to-install-mosh-on-centos\/\">here<\/a><\/p>\n<p>to install is simply type in:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ sudo apt-get install mosh<\/pre>\n<p>and if you use blink as terminal on your iOS devices you can install this font so blink will show the font properly<\/p>\n<p><a href=\"https:\/\/github.com\/energetictree\/SourceCodePro-Font-Template-Blink\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/energetictree\/SourceCodePro-Font-Template-Blink<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now you have a fresh Raspberry Pi that&#8217;s great now what? Here&#8217;s my tips to enhance your experience with Raspberry Pi Install unattended-upgrades This will ensure your pi will get the latest security updates this is important if you are going to install VPN (Wireguard) pivpn.io on your Pi, check this blog post I found [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[32],"tags":[55,49,52,48,53,54],"class_list":["post-1369","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","tag-oh-my-zsh","tag-pi","tag-raspberry","tag-raspberry-pi","tag-terminal","tag-zsh"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8pg5H-m5","jetpack-related-posts":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-25-at-16.51.32.png?fit=2848%2C1216&ssl=1","_links":{"self":[{"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/posts\/1369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/comments?post=1369"}],"version-history":[{"count":16,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/posts\/1369\/revisions"}],"predecessor-version":[{"id":1680,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/posts\/1369\/revisions\/1680"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/media\/1371"}],"wp:attachment":[{"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/media?parent=1369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/categories?post=1369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/tags?post=1369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}