Skip to main content

Ferry Bring Peoples From Side To Side On Mekong River Of Cambodia

  Ferry Bring Peoples From Side To Side On Mekong River Of Cambodia Hi Friends, Welcome to my blogger "168 168 Never Quit". This is my new video. if you like this video so please comment, share, subscribe. Thank you very much Rorn Entertainment Channel Mix Plants Along The Street

20 Tips How to set up a Raspberry Pi 4 as home server

When you unbox the pi – and that’s tip number one  – be extremely delicate and only touch the metal  parts. Don’t touch the printed circuit board.  Electric discharges might destroy the pi if  you do so. And if you take it out there is this  little notice telling you exactly that – but a  second too late probably because you have already  taken it out of the box, right ? 

Here’s the  case which I bought – and that actually takes me  to tip number 2 : Do buy or make a case before  you unbox the pi. You don’t want to ask yourself  the question where to put it once you unboxed it.  That question should really be answered before.  The case which I have bought from Geek worm is  made of aluminum and that’s my personal tip number  3 – buy a metal case. Better heat dissipation and  less risk of static electric discharges. 

The case  which I have bought has a couple of nice features  such as a lot of openings at the right places.  That brings me to tip number 4 – decide whether  you want to add possible extensions such as  display or camera and buy a case with the  corresponding openings. You don’t want to find  yourself in a situation where you would have to  buy a second case or drill holes into it etc. 

We  had just spoken about heat dissipation and yes,  parts of the Pi can become hot and heat  needs to be taken care of – that case  has these posts here which fit nicely  onto the parts which can become hot. My personal tip number 5 – go fanless. A fan will  constantly generate noise and might break or fail.  

Prefer metal, that won’t fail. Never. The  Geek worm case comes with those heat contact pads.  It’s a bit of fiddling to put them on the posts  of the case but ultimately I like that solution  because it makes sure that there is a good and  smooth contact between the case and the circuits. Another thing that I like with this case is the  fact that it is fixed with screws. Might just be  me but I really prefer screws over any snap  in mechanism. Generally speaking tip number  6 – make sure that the case can be opened at any  time in case you want to add or remove stuff.  

20 Tips How to set up a Raspberry Pi 4 as home server
There’s two more tips here – Tip # 7 - buy  or find a charger or USB C adapter. The new  pi needs a USB C charger end hence your  old mini or micro USB chargers won’t do. Tip #8 – if you want to connect it to a screen,  then plan for those micro HDMI cables because  the HDMI connectors have changed as well. 

Last tip  on the hardware #9 – when you operate the Pi make  sure that you don’t turn it upside down because  that way the heat would stay under the printed circuit board and could not dissipate. So make  sure you note upside and downside of the case. Great, so as we could see there are  a couple of things to keep in mind  if you are buying a Raspberry Pi 4 – plan for some  additional expenses such as case and power supply.  

The price point of the Pi 4 is quite high so you  don‘t want to break it with an electric discharge  the day you unbox it. Next, let‘s have a look  at how we can image the Pi and breathe life into  it. We will use the new Raspberry Pi imager. I am  doing this under Linux but the tool is available  for Windows and Marcos as well. You do however need  a little micro SD card and a reader for it. Either  with an SD adapter if your laptop has an SD card  reader slot or use one of these USB readers here. The raspberry pi foundation has issued a  software called the Raspberry pi imager.  

That software can be downloaded from their website  and will effectively make previous solutions  such as etcher or dd redundant. Browse to their  website and download the tool for your operating  system. It’s available for Marcos, Windows and  Linux. Once you launch it you may choose which  Operating system to install. My advice is to use  the raspberry pi OS which is debian Linux in fact.  

That’s the most flexible one. It lets you  chose an SD card to write on and once you  click on write then you need to confirm that the  card can be overwritten and once I click on yes  then the imaging process starts. Under Linux and  presumably the same under Windows – the Operating  system will ask you if it is OK to access a disk  drive directly. 

That’s OK of course, we don’t have  a choice really. The imaging process depends on  the speed of your SD card reader, the USB and the  card itself. I’ve accelerated this in the video  . It took actually 5 minutes in reality. Great,  the card is imaged and before we put it into the  pi we need to activate ssh access. By default  this is disabled for security reasons. In order to  activate it, we just need to create a file in the  boot partition of the SSD card. The file content  doesn’t matter, just the file needs to be there. 

I  am doing this in the shell, but under Windows you  could do this with Explorer for example. Perfect,  I can now remove the SD card, put it into the  Pi and connect the Pi to power and the network.  I connect to it using ssh. The default user is  called pi and the default password is raspberry,  all in minor letters. The first thing we need to  do after the first login is really to change the  password – guys, this is important. We don’t want  millions of devices on this planet with the same  user and password. That opens so many doors for  the bad guys. Please do change the pi password.

20 Tips How to set up a Raspberry Pi 4 as home server
In fact - if I had had an hdmi  cable when I set up the pi  then I could have done this easily using  mouse and keyboard because the locale and  the password change are the first two questions  that pop up when you first launch the pi desktop I think that was a great move of the vendor  to unify the way you image the pi – there used  to be so many different tools for Linux,  Windows and Mac and it required a lot of  research to find the right one. 


But SD cards have never been intended to be  used for a large number of reads and writes.  They wear out – that means that they become  faulty once you do a certain number of I/Os  on them. No issue if you turn the Pi on for a  couple of hours every now and then or if you  are not running any applications on it. But as  soon as you want to install let‘s say a database  or home automation software on it then this will  become an issue. The card will break maybe after  a week or should be next a month or two. There is a  solution however – and that is using a Hard disk in  a USB case – preferably an SSD and boot from the  disk rather than from the SD card. Here is how:

I am logged into the pi with ssh and the first  thing that I do is update the repositories by  typing apt update. Next I want to upgrade  all software components. In order to do this  I type apt full-upgrade. I had already done this  before so in my case there is nothing more to  update. The next step is to launch the firmware  updater by issuing the rpi-update command as root.  

Now – be aware that this will bump  you to the latest Linux tree but I  haven’t seen any real issues with this. So  I confirm the question by typing y for yes.  The download starts and depending on your  bandwidth will take a couple of minutes or so.  Nice the upgrade is finished, you will need to  reboot the pi. So I type sudo reboot in order  to do this. A minute later it comes back and I can  reconnect. Note the updated kernel version number.  

Next we need to upgrade the eeprom, so the  firmware of the pi. This is done with the  rpi-eeprom-update program. Quickly checking the  possible options. We want the a option to install  the latest boot loader and also the d option  in order to use the default boot loader config.  So let’s quickly hack that in -as you can see  in my case the boot loader is already up to date.  

At the time of making this video the most  recent one was as of September 2020. If you  had had any changes here then you would need  to reboot at this point. Let’s just launch  raspi-config quickly and check that  the USB boot options are enabled.  Under advanced, find the option Boot loader Version  and make sure that it’s set to E1- use the latest  boot ROM software. Next find the Boot order  option and check that it’s set to USB boot.

Great – the next step is to connect an SSD or  hard drive to the USB port and actually copy the  SD card image over to the SSD drive. The tool is  called pic lone. If you are connected to a display  and a keyboard then you can select the SD card  image clone utility from the desktop. That’s the  easy way.

There is a hard way as well if you don’t  have a display and if you can only access the Pi over the network. When I recorded this video I did  not yet have an HDMI cable so I needed to find a  way to launch this graphical tool over ssh. That’s  not trivial because pic lone needs to run as root  but over ssh it needs to use my unprivileged X11  connection. But first let’s test X11 forwarding.  

20 Tips How to set up a Raspberry Pi 4 as home server
I just need any X11 app and therefore I install  the x11-apps package. Just to show you how this  is meant to work – here we have clock, a  graphical clock or how about oxeyes, the two  eyes which follow my mouse cursor – so X11 over  ssh is working. Now this would not necessarily  work if I launched things as root or with sudo  because X11 could not connect to my display.  Therefore I need to copy the .Authority  file with the MIT magic cookie over to the  root user’s directory. Faith list shows me the  cookie and I can add it as root using faith add.  And – today – I can now launch x applications  as root – which you only should do if  you really need to. 

Now if I just launched  the pic lone utility with sudo it would not  see the disk devices so I actually need to use  dbus-launch. Again, if you are in front of the  pi and have it connected to a keyboard and screen  that would be much easier. Thought I’d show it in  case you ever need to run a graphical application  over ssh as root. Once pic lone recognizes both the  sd card and the SSD drive then I can start  the cloning process. Pic lone will copy the  partitions and their content and also resize  the partitions to the maximum possible extend.  You can see this here – the SD card is  32 GB in size, the SSD is 64 GB in size.  Note that both drives have the same identifier so  we should never have both in the pi at the same  time at boot time really. 

Rather than using  the reboot command I just shut down the Pi  because I now need to remove the SD card –  it won’t be used any more. In the future,  I will only boot from the SSD drive. Let me ssh  back in and launch the raspi-config tool once more  because there are two more things  which I want to fix quickly.  

Even though I have no screen attached to the Pi  I want to set a default resolution because some  applications read out that setting and won’t work  properly if it is not set. Last but not least I  want to get rid of these locale setting warnings  – so I just give the system a default locale.  I’ll generate the UTF8 locales for German  and English and chose a default locale. That  should avoid the warnings in the future.  That’s it for the housekeeping. All good.

Awesome, now our Pi boots from the SSD and we can  go ahead and install software on it. In one of the  next episodes we will have a look into Graham  Garner’s and Andreas Spies ‘ IOTStack project  which delivers a complete stack of home automation  software and Dockers. We will also install Webmin  on it so that you can do all the system related  tasks from a Graphical Web interface rather than  from the command line. 

Before we wrap up let‘s  quickly summarize and have a look at the expenses. We have the Pi that costs roughly 65 $ plus the  power supply for 10 $ plus the case for 10 $ and  you also need an SD Card and potentially a reader  for 15 $ . If you want to use it as a server then  plan for an SSD plus a USB case. Again at least  50$. so the whole thing sums up to as much as 150  $. Please just keep this in mind when you are  planning on buying and using a raspberry Pi.  

Some of the Kits that are sold in the  internet contain a lot of accessories  which you might never use. But the case and  the charger are – in my opinion – a must. Cool, guys – that concludes today‘s episode I hope it was useful for you and I hope  you liked it.


Comments

Popular posts from this blog

Apple Keyboard Evolution 1983-2015

I don’t have a Lisa Keyboard, and they’re quite rare and expensive. But here’s what it looked like, it was quite large and clunky. Although not really any wider than a modern Apple keyboard . So, this is the original Macintosh keyboard. It’s kind of tall, and notice that it has no arrow keys, no function keys and no number pad. Apparently, Steve Jobs believed that everybody would use the mouse for everything, except typing. It uses an RJ-11 type connector, similar to a phone cord. The mouse actually had its own separate connector, and did not connect to the keyboard at all. This is about as basic as it gets. I can plug my telephone into it, for some reason. So, one thing I noticed about this is that there are no indicators on where to put your fingers. I’ve never heard a keyboard echo before. It’s not real springy or anything. It does have… …metallic kind of noise to it. But, DAVID: This is the Apple Desktop Bus keyboard. As the name suggests, this was the first keyboard to use the new

The AdLib Gold Experience

Greetings folks, and today on LGR I am proud to present the fabled AdLib Gold 1000 Stereo Sound Adapter. An IBM PC-compatible sound card which, after multiple delays, launched at a suggested price of $299 in the US sometime in late 1992. More or less, its release is a bit complicated but we’ll get to that. For now lemme just go ahead and say how much I’m freak in’ out with excitement recording this footage. Cuz dude, seeing an AdLib Gold in person, still in the box, unused? Among retro PC enthusiasts, that’s like finding a golden unicorn that craps diamonds, it’s just not a thing. Yet here it is, looking’ spiffy! And it’s all thanks to Trixter, aka Jim Leonard of The Old-school PC, Check out his YouTube channel if you’re into this kind of thing too, the man’s a fountain of knowledge and some of the items in his collection are literally one of a kind. Not the least of which being this pristine AdLib Gold 1000, a card that I’ve been wondering about ever since I was eight years old lookin

IBM 8516 Touchscreen CRT Monitor

Greetings and welcome to LGR Oddware where were taking a look at hardware and software that is odd, forgotten, and obsolete! And today it is the IBM 8516 CRT touchscreen from the beginning of the 1990s. And yeah you can touch and draw and do all kinds of things that you would normally do with a mouse or light pen or whatever else -- just with your fingers! And so let’s see what this thing is and what it can do. All right so this is the IBM PS/2 Model 8516 13-inch CRT touchscreen monitor first introduced in June of 1991 for a suggested retail price of $1695 US dollars, holy crap. That would be almost $3,100 at the time of this recording, not a cheap price for a 13-inch VGA monitor back then.  It was built by IBM to be compatible with PCs running DOS, Windows 3 -- and IBM OS/2 of course, because they were still pushing it rather hard when this came out. And as advanced and awesome as it was for its time it was not the first of its kind as far as touchscreen CRTs, not by a long shot.  For

The Advantech I.Q. Unlimited with BASIC and a Z80 CPU.

Hello, and welcome back to the 8-Bit Guy. In this episode, I want to show you this bizarre little computer known as the IQ Unlimited by Advantech. Now, you might be wondering “What is this company Advantech?” Well, if you turn the computer over you’ll see it was actually produced by Video Technology Electronics, otherwise known as V-Tech.” Yes, that’s the same V-Tech that has produced tons of cordless telephones, kids learning computers, baby monitors, and a variety of other things. They are also the ones that built the Laser 128, which was an Apple II clone, along with the matching Laser XT which was a PC clone. They also produced the laser line of portable computers, and even a series of proprietary desktop computers that carried the laser brand name. So, needless to say V-Tech is no stranger to making computers. But, I think this may be the strangest one they ever made. The front of the box claims it to be complete, powerful, simple, and affordable. They are also those that built th

Words of Krom Ngoy

Words of Kram Ngoy This Brahma song is translated to tell Khmer men and women To be mindful should be diligent. Do not be lazy, do not be too stupid, try to learn numbers, learn the alphabet Learn all the virtues, supernatural wisdom combined with ideas. Born to see through, even from afar           Really good at thinking about everything. Fools do not wake up like blind people on both sides           There is no image of a cheap sinner born ignorant. The human race, though high and low, descended from the Pao clan.           Evil, good, black and white, cut off descendants like ancestors. Ignorant people are not venerated as a religion           The monks know the Dharma, the students study hard. The ignorant breed is not very wise, the crooked breed is not very gentle           Straight seed until the true seed does not disappear. Innocent parents do not want their children to be ignorant           Cursing for the children to know. Ignorant father sees his son never angry          

The best gaming laptop for MS-DOS games

The other day, I used to be reading this old Computes Gazette magazine from 1983. and that I saw this card you'll send off for more information. happen if I filled it out and sent it off? Well, stick around till the top and I'll show you the result. Most of the time, stepping into Retro Gaming are often quite challenge. Even the old Atari 2600 her, for instance, it are often very challenging to seek out a contemporary TV or monitor that you simply. On the brilliant side, the games are pretty easy to affect. All you've got to try to to is locate them online, or thrift shop, or whatever and you purchase the sport, and you recognize, But, things get even harder once you start watching old computers. For instance, the Commodore 64 uses a disk format that's essentially foreign today.  It's no means to attach to the web, and albeit you've got a pile of blank disks, getting the games copied over to them from the web could be a nightmare. Now, if you fast forward just a

Strangest Computer Designs of the '80s

OMG Mr. LGR!!! You made my day showing the Seiko computer watch series. I collect these things and Have almost  the entire lineup up including the weird UC-2200. The only one I'm missing is the "wrist mac" which was essentially a Seiko RC4400 but marketed and sold for Apple. It could be considered the first apple watch! That design for the Elwro-800 actually seems pretty good and I wish I had it for the C64 back in the day. That wire holder could have been used for holding a computer magazine with a user made program which they always had in the magazines back in the day. Even now it would be good for data input from a written copy, or even writers who like to get their pre-writing done on paper. They were the machines we were taught Turing language on -- and compiling even a tiny Turing program on them was unbelievably slow.  I really liked the GUI on them though, but we never really used the GUI much; all the programming we did was in a text file run through a compiler

Will Kill Your Computer

Hey guys, this is Austin, and this is the USB Killer. Now, it might not look like much, however this will straight up kill your computer. So, this is a device that’s used to test hardware, so while it looks like an ordinary USB device, instead, there’s a series of capacitors inside. So, if you plug it into a computer, it will charge those capacitors up, and once they’re full it turns around and releases all of that power at 240 volts straight back into the computer, in theory killing it. It doesn’t take much to be able to pop this thing open. Now, before we proceed: Do not try this at home. Seriously. Not only is it very possible for this thing to kill electronics, but it’s also. And by being careful, I mean don’t try this at home. We have an Asus Chrome book.  Now, USB Killer claims that this is going to work on around 95 percent of computers, and the reason for that is that while some computers have properly capped USB ports, most have completely unprotected ports, which means that i

Lost Colony of Roanoke

 The broken anchor is pretty sketch. Sounds like the colony might have been wiped out and Smith not wanting to return to England and say "my bad they all died" was able to save face by saying "We have proof they are safe and moved location.  Near the end of the 16th century, a man by the name of John White embarked on a transatlantic voyage. His destination was the island of Roanoke along the southeastern coast of North America. On this island, White had established an English colony some three years before and he was now returning to resume his position as Governor. After a long and difficult journey, White finally reached the site of the colony only to find the more than one hundred men, women, and children had left behind had disappeared. Before White had a chance to conduct a more extensive search, the ship returned to England and in its wake, it left a mystery.  Raleigh was soon thereafter knighted by Queen Elizabeth I and the new land was to be named Virginia in ho

BootSkin XP - A Boot Screen Customization Tool for Windows XP

 Hello everybody and welcome back . We’re going to be taking a look at a pretty cool little piece of software for Windows XP, and there’s also a version for Windows Vista, called BootSkin. And this is a little bit of an older program. This was released, I want to say, somewhere in the mid-2000s. This is actually a piece of software that I used on a couple of my Windows XP , and even some my Windows Vista machines like over 10 years ago. It’s been a while since I’ve used this piece of software. But what this software allows you to do is, as you can probably tell by the name, it allows you to skin and customize your Windows boot screen, add a little bit more personality to your system and make your boot screen look more unique so, you know it’s gonna be much different than everybody else’s which just says Windows XP when it boots up. And this is made by a company called StarDock and I’ve used a couple of different StarDock programs before there’s another one of my favorite programs from