Monday, January 23, 2017

Project Alphaberry - Part 2

Well, I started digging into the metal a bit this week. I now have a few linux machines laying around, and the starts of a real server infrastructure. Project Alphaberry continues…

Installing Linux is something I was putting off a bit, I will admit, I didn’t know anything about it, how to even get started, but I knew I wanted to run a minimal CentOS 7.x. I downloaded the latest image from the CentOS download portal. It was an ISO, and I had a 64GB Patriot USB Drive sitting around that I had previously used for Windows 8 installations around the house. I have seem a lot of guides on using the Win32 Disk Imager, however, I found a more performant version called Rufus when doing research on the Raspberry part of the project. Not only was it a breeze to use, it was extremely fast.

Now that I had my image installed, I wanted to do a “dry run”, for some reason I thought this was going to be complicated, so I picked up my old laptop (i3, 8GB memory, 256 SSD) and decided it could be used as a sandbox. I popped in the USB stick, rebooted, and was prompted with about a 5 step installer, and within about 10 minutes was up and running at the command prompt, with wireless internet access at that… I kinda cheered, and kinda slapped myself on the forehead for this part, it was ridiculously easy.

From this point, I just did some playing around with this laptop, and figured out how to allow me to close the laptop lid without it going into sleep mode.

In the file: /etc/systemd/logind.conf


More information about that config can be found on It goes over all the settings in that file, as well as the valid options for it. Now I can just lay the laptop somewhere next to a power cable with the wireless, close the lid, and its all good to go. This allows me to play around with it from my own laptop, even though I have built in Ubuntu on Windows thingy, it isn’t really “complete”, and isn’t the actual OS I want to play with, CentOS has a lot of differences from Ubuntu.

Moving on to the Alpha, I upgrade the memory to the new 16GB real fast, and swapped out the hard drive with the 256GB SSD. From there I just plugged the computer back into the desk my wife had everything hooked up to, dropped in the USB drive, and booted it up. Within a few minutes, I had everything up and running, this time I opted to NOT setup the wireless, as it will be hard wired into the network. Unfortunately, I completely failed to setup the ethernet… I shutdown the system, moved it over to the “work area”, hooked up the new managed switch and the Alpha to my main router, turned it on, checked out my router to find the IP from the list and… it wasn’t there.

Remembering that I have a managed switch, I realized that I didn’t… manage to set shit up. Within a few minutes of bumping my head, I realized that the default IP for the switch is, while my subnet is 192.167.1.x. This, was disheartening, getting a route to that other subnet was, not ideal, I attempted to setup a static route on my router, and it just… didn’t take. Then I remembered that this archaic round thing came with the router, turns out it has management software, since my laptop wasn’t made in the age of spinning disks, I downloaded the management software, which found the router right away, and allowed me to change the IP address to something my router wouldn’t struggle with. However, my Alpha still wasn’t showing up.

So this was a lesson I learned pretty early on, not configuring any networking on a server, before disconnecting any way to manage it, is stupid. It was at this point I lugged an HDMI display into the work area, and grabbed one of my old USB keyboards, both of these will probably be useful to have around for the Pi stuff anyway. Once I got in, I realized that I should setup the server to use a static IP. This took me in odd directions, however, I got that running with a minor tweak to one file (this might be different for you, use ip addr to find the right interface).

In the file: /etc/sysconfig/network-scripts/ifcfg-enp3s0


Now, i’m not 100% sure what some of that in there is, or if I need it, I will be asking some of the guru’s at work tomorrow a bit more on that. Additionally, I want to rename this to eth0 rather than enp3s0 to make my life easier. However, this works, once I restarted the network via systemctl restart network, it was showing in my device list for my router, and I was able to SSH from my laptop.

Speaking of SSH, there are a few SSHD settings I changed right off the bat, it was recommended to change these for a bit more security.

In the file: /etc/ssh/sshd_config

 Protocol 2
 PermitRootLogin no

These are commented out by default, so I uncommented them and changed them to the above settings, then I restarted the SSHD service via systemctl restart sshd.service. Now I can only login to root via the console, and it uses the latest SSH protocol only.

Finally, I did a full system update/upgrade, and installed some tools:

yum -y update && yum -y upgrade
yum -y install nmap wget telnet unzip

Finally, I made sure that selinux was installed and initialized:

yum -y install selinux-policy

Security Enhanced Linux is basically some low level additional security that is wrapped into the kernel. Something I would want on an “admin” server, which is basically what the Alpha part of the Alphaberry is for.

And here we are, at the next stage, I now have a stable Linux server running, fully up to date, static IP address, and some basic tooling ready to go. The next step on my TODO list is go get the DNS server working, spoiler alert, I already spent the mind crunching time to do that today, and am actually now using the new DNS server not only on the linux servers, but on this laptop to test it out, it works.



The next post will be a basic overview of how I set it up, and how I plan on managing it, because as it sits, editing those configuration files sucks.

Until next time, feel free to leave any comments/suggestions either below, or hit me up on twitter via @TribalTom.


IT Tutorials said...

Thanks for your article .its very useful for everyone. best aws training in chennai | aws course fees details

Diya shree said...

Good job and thanks for sharing such a good blog You’re doing a great job. Keep it up !!

Python Training in Chennai | Python Training in Chennai, OMR | Python Training in Chennai, Velachery | Best Python Training in Chennai | Python Training Institute in Chennai | Best Python Training in Credo Systemz, Chennai

Diya shree said...

Hey, it's really nice information to share here. Thanks for your blog, keep posting like this regularly. Thank you!!!

PMP Training in Chennai | Best PMP Training in Chennai |
Project Management Requirements | PMP Certification Training Courses and Books |
PMP Certification Courses in Velachery & OMR | PMP Certification training in chennai | Project Manager Interview Questions & Answer

IT Tutorials said...

Get the most advanced AWS Course by Professional expert. Just attend a FREE Demo session.
For further details call us @ 9884412301 | 9600112302
AWS training in chennai | AWS training in velachery

Jack son said...

The four hour test is completely PC based and has been led more often than not at the major PMI's for example Venture Management Institutes.ExcelR PMP Certification

digitaltucr said...

They're produced by the very best degree developers who will be distinguished for your polo dress creating. You'll find polo Ron Lauren inside exclusive array which include particular classes for men, women.
ExcelR PMP certification

Priyanka said...

Attend The Data Analytics Courses From ExcelR. Practical Data Analytics Courses Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analytics Courses.
ExcelR Data Analytics Courses

beryltryphosa said...

snowflake interview questions
riya sold her car
zensoft interview questions
top 10 political websites
difference between vb and
tp link wifi hack
power bi resume samples

PMP Certification said...

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. 360DigiTMG PMP Certification
360DigiTMG PMP Course in Malaysia
360DigiTMG PMP Course
360DigiTMG PMP Training in Malaysia

Priyanka said...

Attend The Business Analytics Course From ExcelR. Practical Business Analytics Course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analytics Course.
Business Analytics Course

Neethuuu said...

Very interesting and useful.
PMP Certification in malaysia
pmp course in malaysia
pmp training in malaysia

dataanalyticscourse said...

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
data analytics course
big data analytics malaysia
big data course

Unknown said...

I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog.
pmp certification

meldaresearch said...

Finding the best biological science paper writing help and Biological Science Writing Services is not easy unless one is keen to establish a reliable biological science research paper provider & biological science coursework writing services.

Priyanka said...

Attend The Data Analyst Course From ExcelR. Practical Data Analyst Course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analyst Course.
Data Analyst Course

IT said...

The development of artificial intelligence (AI) has propelled more programming architects, information scientists, and different experts to investigate the plausibility of a vocation in machine learning. Notwithstanding, a few newcomers will in general spotlight a lot on hypothesis and insufficient on commonsense application. machine learning projects for final year In case you will succeed, you have to begin building machine learning projects in the near future.

Projects assist you with improving your applied ML skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include projects into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Final Year Project Centers in Chennai even arrange a more significant compensation.

Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account.

The Nodejs Training Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

ek said...

I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts.
Data Analytics course Pune
I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!

Unknown said...

This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck. PMP Certification

Huongkv said...

Aivivu đại lý vé máy bay, tham khảo

săn vé máy bay giá rẻ đi Mỹ

dat ve may bay tu han quoc ve viet nam

vé máy bay vinh đi hồ chí minh

giá vé máy bay pacific airlines sài gòn hà nội

mua vé máy bay về việt nam từ mỹ

saketh said...

You completed a number of nice points there. I did a search on the issue and found ExcelR Business Analytics Courses nearly all people will have the same opinion with your blog.

Deekshitha said...

Informative blog
data science course in india

Rohini said...

Cool stuff you have and you keep overhaul every one of us
pmp certification bangalore

Rohini said...

Cool stuff you have and you keep overhaul every one of us
pmp certification bangalore