How To Setup Nginx To Use SSL With LetsEncrypt

LetsEncrypt SSL configuration

What is LetsEncrypt?

Let’s Encrypt is a certificate Authority that launched in 2016 providing free TSL SSL certificates that renew every 90 days. There are several validation methods for LetsEncrypt to verify the domain you are generating the certificate for is one you actually control. In this guide we will be utilizing the webroot method.

This guide assumes you already have a Nginx Server. If you do not have one setup, please check out Compile Nginx From Source On CentOS. This method of setting up LetsEncrypt will work on CentOS 6 & CentOS 7.

Setup LetsEncrypt

Get the LetsEncrypt certbot script:

wget -o /usr/local/sbin/certbot-auto https://dl.eff.org/certbot-auto

Make It Executable:

chmod a+x /usr/local/sbin/certbot-auto

After that you will want to generate the certificate for your domain by using the following command

/usr/local/sbin/certbot-auto certonly –webroot –webroot-path=/etc/nginx/html -d domain.com -d www.domain.com

Replacing /etc/nginx/html with the path to your document root and each domain you would like to include in the certificate with a -d

If this is the first time you are running certbot, it will prompt you to agree to the terms of service.

If the document root is correct along with the domains it will output a congratulations message and the certificate will be stored in

/etc/letsencrypt/live/domain.com

Replacing domain.com with the first domain you added to the certificate.

How To Setup Nginx to Use The LetsEncrypt SSL

First make sure nginx is compiled with SSL support by typing

nginx -V

It should return the configuration options and it should contain

–with-http_ssl_module

If it does not, you will need to recompile Nginx with SSL support. After you have confirmed SSL support in nginx you can proceed with setting up the SSL configuration in Nginx

Edit your Nginx Configuration. You will want to duplicate the current domain configuration but set listen to 443, ssl on, and include the certificate files. Here is an example:

server {
listen 443;
ssl on;
server_name domain.com;
ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
root /etc/nginx/html;

}

Make sure to replace domain.com with the domain you configured with LetsEncrypt. Once you have finished that, you can go ahead an restart Nginx.

Configure LetsEncrypt To Auto-Renew

Now that you have fully configured the domain on SSL. You will want to setup a crontab to ensure the certificate renews every 90 days. To do this you will want to add the following crontab entry

00 3 * * * /usr/local/sbin/certbot-auto renew –quiet –renew-hook “/usr/sbin/service nginx restart”

That is it for configuring nginx to use LetsEncrypt for free SSL on your site.

Source

Deploy Autodesk Forge on AWS with New Quick Start

Posted On: Oct 25, 2018

This Quick Start builds an Autodesk Forge environment on the Amazon Web Services (AWS) Cloud for customizable building blocks in the form of web service application programming interfaces (APIs), tools, and services. The deployment takes about 15 minutes.

Autodesk Forge is a cloud developer platform for building custom software applications, workflows, and integrations across industries such as manufacturing, architecture, engineering, and construction. With Autodesk Forge, teams, third-party developers, and customers can design, build, and integrate workflows. For example, developers can use Forge to overlay Internet of Things (IoT) data on top of 3D information models, to later perform data analysis and create visual reports.

This Quick Start is for IT infrastructure architects, administrators, and DevOps professionals who want to implement or extend their Autodesk Forge workloads on the AWS Cloud.

To get started:

  • View the architecture and details
  • View the deployment guide for step-by-step instructions
  • Download the AWS CloudFormation templates that automate the deployment

Quick Starts are automated reference deployments that use AWS CloudFormation templates to deploy key technologies on AWS, following AWS best practices. This Quick Start was built in collaboration with Autodesk, Inc.

Source

Eye Care: Best Free Linux Software to Look after your Eyes

eye care

Many people who regularly use computers suffer from eye strain and fatigue. Looking at a monitor for a long time can strain your eyes or can make any other problems you are having with your eyes seem more apparent. There is also research to show that late-night exposure to bright lights can affect sleep quality. This can be mitigated by reducing blue-light exposure.

There are lots of simple steps you can take to reduce eye strain and fatigue. These include adjusting the brightness, contrast settings, and text size displayed, as well as minimizing glare, and ensuring your room has proper lighting. Taking regular breaks is also very important.

Some monitors go further offering various eye care technologies including flicker-free technology, and an ultra-low blue light filter with different filter settings. But even if your display offers eye care technology and it’s well designed e.g. offering hotkeys that let you easily adjust filter settings. there’s still a good case to use a software solution as well. This is because the software typically offers more flexibility, such as the ability to automatically adjust the backlight and screen temperature based on the ambient brightness in your surroundings, or on a time schedule.

If you need color accuracy occasionally, using a hardware solution can be tedious. Good eye care software lets users disable the filter for a specific period of time. That’s extremely handy if you need to only periodically work on tasks where color accuracy is important such as a lighttable and darkroom for photographers.

We recommend four free software solutions below. All but f.lux are released under an open source license. f.lux is freeware.

Eye Care Software
Clight C daemon that turns your webcam into a light sensor
Redshift Adjusts the color temperature of your display
f.lux Adapts the color temperature according to the time of day
Desktop Dimmer Darker-than-dark dimming for internal and external screens

Your desktop environment may also offer some basic functionality to reduce the amount of blue light emitted. The popular desktop environment GNOME includes a night light feature that makes the screen color warmer. Functionality is quite basic, but it may be sufficient depending on your requirements.

GNOME - Night LightGNOME’s Night Light functionality

Return to our complete collection of Group Tests, identifying the finest free and open source Linux software.

 

Source

Linux Today – How to Use Grep Command to Search Files in Linux

Oct 25, 2018, 10:00 (Other stories by Linuxize)

The grep command which stands for ‘global regular expression print’ is one of the most powerful and commonly used commands in Linux. Grep searches one or more input files for lines that match a given pattern and writes each matching line to standard output. If no files are specified, grep reads from the standard input which is usually the output of another command. In this tutorial, we will show you how to use the grep command through practical examples and detailed explanations of the most common GNU grep options.

Complete Story

Related Stories:

Source

Steam Makes it Easier to Play Thousands of Windows Games on Linux

Last updated August 29, 2018 By Phillip Prado

Steam Wallpaper

It’s no secret that the Linux gaming library offers only a fraction of what the Windows library offers. In fact, many people wouldn’t even consider switching to Linux simply because most of the games they want to play aren’t available on the platform.

At the time of writing this article, Linux has just over 5,000 games available on Steam compared to the library’s almost 27,000 total games. Now, 5,000 games may be a lot, but it isn’t 27,000 games, that’s for sure.

And though almost every new indie game seems to launch with a Linux release, we are still left without a way to play many Triple-A titles. For me, though there are many titles I would love the opportunity to play, this has never been a make-or-break problem since almost all of my favorite titles are available on Linux since I primarily play indie and retro games anyway.

Meet Proton: a WINE Fork by Steam

Now, that problem is a thing of the past since this week Valve announced a new update to Steam Play that adds a forked version of Wine to the Linux Steam clients called Proton. Yes, the tool is open-source, and Valve has made the source code available on Github. The feature is still in beta though, so you must opt into the beta Steam client in order to take advantage of this functionality.

With proton, more Windows games are available for Linux on Steam

What does that actually mean for us Linux users? In short, it means that Linux computers can now play all 27,000 of those games without needing to configure something like PlayOnLinux or Lutris to do so! Which, let me tell you, can be quite the headache at times.

The more complicated answer to this is that it sounds too good to be true for a reason. Though, in theory, you can play literally every Windows game on Linux this way, there is only a short list of games that are officially supported at launch, including DOOM, Final Fantasy VI, Tekken 7, Star Wars: Battlefront 2, and several more.

You can play all Windows games on Linux (in theory)

Though the list only has about 30 games thus far, you can force enable Steam to install and play any game through Proton by marking the “Enable Steam Play for all titles” checkbox. But don’t get your hopes too high. They do not guarantee the stability and performance you may be hoping for, so keep your expectations reasonable.

Steam Play

As per this report, there are over a thousand Windows games that are playable on Linux. Follow this tutorial to learn how to enable Steam Play beta right now.

Experiencing Proton: Not as bad as I expected

For example, I installed a few moderately taxing games to put Proton through its paces. One of which was The Elder Scrolls IV: Oblivion, and in the two hours I played the game, it only crashed once, and it was almost immediately after an autosave point during the tutorial.

I have an Nvidia Gtx 1050 Ti, so I was able to play the game at 1080p with high settings, and I didn’t see a single problem outside of that one crash. The only negative feedback I really have is that the framerate was not nearly as high as it would have been if it was a native game. I got above 60 frames 90% of the time, but I admit it could have been better.

Every other game that I have installed and launched has also worked flawlessly, granted I haven’t played any of them for an extended amount of time yet. Some games I installed include The Forest, Dead Rising 4 and Assassin’s Creed II (can you tell I like horror games?).

Why is Steam (still) betting on Linux?

Now, this is all fine and dandy, but why did this happen? Why would Valve spend the time, money, and resources needed to implement something like this? I like to think they did so because they value the Linux community, but if I am honest, I don’t believe we had anything to do with it.

If I had to put money on it, I would say Valve has developed Proton because they haven’t given up on Steam machines yet. And since Steam OS is running on Linux, it is in their best interest financially to invest in something like this. The more games available on Steam OS, the more people might be willing to buy a Steam Machine.

Maybe I am wrong, but I bet this means we will see a new wave of Steam machines coming in the not-so-distant future. Maybe we will see them in one year, or perhaps we won’t see them for another five, who knows!

Either way, all I know is that I am beyond excited to finally play the games from my Steam library that I have slowly accumulated over the years from all of the Humble Bundles, promo codes, and random times I bought a game on sale just in case I wanted to try to get it running in Lutris.

Excited for more gaming on Linux?

What do you think? Are you excited about this, or are you afraid fewer developers will create native Linux games because there is almost no need to now? Does Valve love the Linux community, or do they love money? Let us know what you think in the comment section below, and check back in for more FOSS content like this.

About Phillip Prado

Phillip Prado is an avid follower of all things tech, culture, and art. Not only is he an all-around geek, he has a BA in Intercultural Studies and considers himself a serial hobbyist. He loves hiking, cycling, poetry, video games, and movies. But no matter what his passions are there is only one thing he loves more than Linux and FOSS: coffee. You can find him (nearly) everywhere on the web as @phillipprado.

Source

Download Ubuntu Studio 18.04 LTS / 16.04.5 LTS

Welcome to Ubuntu Studio, an open source distribution of Linux based on the latest Ubuntu technologies and tailored for musicians, graphic artist, and other multimedia processionals who want a free, stable and reliable operating system for their daily tasks.

Distributed as 64 and 32-bit Live DVDs with low-latency kernel

Ubuntu Studio 15.04 was officially announced on April 23, 2015 and will be supported until January 2016. It is available for download as Live DVD ISO images supporting both 64 and 32-bit.

The boot menu has not been changed, allowing the user to start the installation process, boot an existing operating system from the first drive, rescue a broken system, perform a RAM test, as well as to check the integrity of the bootable medium (only if using a DVD media).

Uses the same Xfce setup as Xubuntu

Major changes have occurred on the graphical desktop, as the Xfce environment has been greatly modified to be provide users with a more lightweight computing experience when creating their multimedia projects. It uses a single panel located on the upper part of the screen from where the user can easily launch apps and interact with running programs.

Conclusions

In conclusion, Ubuntu Studio 15.04 is quite a surprise release, as it now uses a tweaked Xfce desktop environment with a single-panel layout. However, we are still disappointed in project’s lack of Live DVDs that allow anyone to use the operating system without installing it.

Source

How To Speed Up a Website on Ubuntu 16.04 – LinuxCloudVPS Blog

26th October 2018

How to Speed Up Your Website on Ubuntu 16.04

Everyone loves speedy websites and search engines love them as well. If your speedy website is an e-commerce site, you will likely have a better conversion rate. In this article, we will show you how to speed up a website on Ubuntu 16.04. Let’s get started with the guide.

Optimize Images

Eye-catching images on your website will grab the visitors’ attention. But, at the same time, your images might be too large, both in size or scale. There are many online tools to optimize your images, they can reduce the size but also maintain the quality.

Use HTTP/2

Why do we need to implement this? Because with http/2 all requests are downloaded in parallel, not in a queue as in http/1.1. The server can also push data without being requested, which eventually can improve the speed for visitors with high latency.

Support of the HTTP/2 protocol was introduced in Apache 2.4.26. Unfortunately, the default repository in Ubuntu 16.04 contains a version lower than this, so we need to add a third-party repository.

Apache

To make sure what Apache version you have, you can invoke this command:

apache2 -v

If it’s lower than 2.4.26, then we need to install the latest available version.

apt install software-properties-common

add-apt-repository ppa:ondrej/apache2

apt update

apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 4F4EA0AAE5267A6C

apt install apache2

Add this line to your SSL enabled website virtual host, right after <VirtualHost *:443> tag.

Protocols h2 http/1.1

Now, you need to know that http2 is not compatible with mpm_prefork, so you need to disable it and use another mpm, like mpm_event

a2dismod mpm_prefork

a2enmod mpm_event setenvif proxy_fcgi

Install PHP-FPM and disable Mod PHP

apt install php-fpm7.0

a2dismod php7.0

systemctl restart apache2

At this point, your website is running on http/2, your static assets will be delivered much faster.

Nginx:

If you are using nginx, enabling http/2 is much easier. You can simply add “http2” in your SSL enabled website’s server block.
It should be like this:

listen 443 ssl http2;

Support for http/2 was introduced in Nginx version 1.9.5, and with the default Nginx installation on Ubuntu 16.04, we have nginx version higher than that, so we don’t need to add a third party repository as we do when using Apache.

Use CDN

A Content Delivery Network can accelerate your websites, CDN works by caching your static assets in many servers around the globe. If you enabled CDN, and when a visitor from Europe is accessing your website which is hosted on a server located in the USA, the static assets delivered to him/her will be from a nearer location, not from your server. This will speed up your website loading time. There are many CDN providers nowadays, you can choose one of them.

Enable Compression

When you visit a website, your browser will check the website configuration whether it has gzip enabled and request the pages. If it’s enabled, your browser will receive the gzip files which are much smaller than the original one and if it isn’t, your browser will receive the files which usually are much larger. So, enabling compression is another option to take in order to speed up your website, visitors will receive the files faster because files are delivered in a smaller size.

To enable compression, you can add the following to your .htaccess file:

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>

If you are using nginx, the gzip compression is enabled by default, you can check it in /etc/nginx/nginx.conf file.

Configure Expire Headers

With expire headers, your browser can check whether it should request the website assets from the server or fetch them from the browser cache. For example, we set an expire headers value for our logo.png file to one month, so the browser will cache the logo.png file and it doesn’t need to request the file as the browser already have it in the cache. Expire headers can reduce the HTTP connection and improve the site loading speed at the same time.

If you use apache, you can add the following lines to your .htaccess file:

<IfModule mod_expires.c>
ExpiresActive On

# Images
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType image/webp “access plus 1 year”
ExpiresByType image/svg+xml “access plus 1 year”
ExpiresByType image/x-icon “access plus 1 year”

# Video
ExpiresByType video/mp4 “access plus 1 year”
ExpiresByType video/mpeg “access plus 1 year”

# CSS, JavaScript
ExpiresByType text/css “access plus 1 month”
ExpiresByType text/javascript “access plus 1 month”
ExpiresByType application/javascript “access plus 1 month”

# Others
ExpiresByType application/pdf “access plus 1 month”
ExpiresByType application/x-shockwave-flash “access plus 1 month”
</IfModule>

If you are using nginx, you can add this line to your location block:

if ($request_uri ~* “.(ico|css|js|gif|jpe?g|png)$”) {
expires 30d;
access_log off;
add_header Pragma public;
add_header Cache-Control “public”;
}

Enable Keep-Alive

HTTP keep-alive means that the browser is using a single TCP connection to send and receive multiple requests. This will speed up the website because your visitors’ browser only needs to open one persistent HTTP connection to the web server. The keep-alive option is enabled by default, but you will want to double check it. To enable keep-alive, you can do the following:

Apache:

nano /etc/apache2/apache2.conf
KeepAlive On

Nginx:

nano /etc/nginx/nginx.conf

keepalive_timeout 65;
The value higher than 0 will enable keepalive

Minify JS and CSS

Minification is a process to minimize our codes in order to reduce or remove all unnecessary characters from the code without changing its functionality. The unnecessary characters usually include comments, white spaces, new lines, and block delimiters. The characters are actually used to add readability, but we can remove them as they are not required. The code file size can be reduced if it’s minified. But, we have to be careful when minifying our codes because not all spaces can be removed.

Example of CSS minification:

Before:

.item_names p a {
color: #000;
padding: 10px 0px 0px 0;
margin-bottom: 5px;
border-bottom: none;
}

After:

.item_names p a

As you can see, the minified version is hard to read. You can also see that not all spaces can be removed, so manually minifying the codes is not recommended.
You can use any online tools to minify your JS and CSS files.

That’s it, your website should be faster now. If your website is running on WordPress, you can use plugins to do some of the steps above.

Of course, you don’t have speed up your website on Ubuntu 16.04 yourself if you use one of our Ubuntu Cloud Hosting services, in which case you can simply ask our expert Linux admins to speed up your website on Ubuntu 16.04 for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post on how to speed up your website on Ubuntu 16.04, please share it with your friends on the social networks using the buttons below or simply leave a reply in the comments sections. Thanks.

Be the first to write a comment.

Source

Review: System76 Oryx Pro Laptop

Can “by hackers, for hackers” sell laptops? System76 sold an Oryx Pro
to Rob, and he’s here to tell you about it.

I should start by saying that although I’m definitely no newbie to
Linux, I’m new to the world of dedicated Linux laptops. I
started with Linux in 1996, when Red Hat 4.0 had just adopted the
2.0 kernel and Debian 1.3 hadn’t yet been released. I’ve run a variety
of distros with varying degrees of satisfaction ever since, always
looking for the Holy Grail of a desktop UNIX that just plain worked.

About 15 years ago after becoming frustrated with the state of Linux
on laptop hardware (in a phrase, “nonexistent hardware support”), I
switched my laptops over to Macs and didn’t look back. It was a
true-blue UNIX that just plain worked, and I was happy. But I
increasingly found myself frustrated by things I expected from Linux
that weren’t available on macOS, and which things like Homebrew and MacPorts
and Fink could only partly address.

My last MacBook Pro is now four years old, so it was time to shop
around again. After being underwhelmed by this generation of MacBooks,
I decided to take the risk on a Linux laptop again.

Oh my, an awful lot has changed in 15 years!

System76

System76 is a Denver-based firm with a
“by
hackers, for hackers” ethos. It’s not the first outfit to have tried to
deliver on this promise, nor will it be the last. It follows in a long
line pioneered by Red Hat and VA Research, and it will continue in the
future with businesses yet to be founded. At this moment in history
though, System76 seems to be doing a pretty good job of maintaining that
standard.

Inquiries

My initial contact with System76 came by visiting the website and
requesting a quote for one of its third-generation Oryx Pro models.
The sales staff were responsive, polite and didn’t seem to have their
personalities obliterated into uniform perfection like the Stepford
Salesforce of Lenovo or Dell. I also never caught a whiff of a hard
sell from any of them. On three occasions just before being able to put
down my hard-earned dinero on an Oryx Pro, my life went sideways, and my
laptop fund went to pay for strange emergencies that arose out of
nowhere, but the System76 sales staff were cheerfully uncaring about
this. The impression I got was they believed they knew were going to
miss a sale right then, but whether they missed it forever depended on
how they behaved in that instant. It’s an enlightened view from which more vendors
could stand to learn.

Sales

At last, my laptop fund regenerated, and there were no emergencies on
the horizon. I visited the System76 site again and discovered in the
intervening months that a new generation of the Oryx Pro had been announced,
and the first 100 pre-orders would receive some nice swag. Judging
from the swag I received (mostly a nice-looking promotional poster
that’s actually worth framing and putting on your cube wall), I was one
of the first 100. I placed my order May 7, 2018, and was told shipments
would begin the first week in June.

A couple minor problems arose. The first was that, as tends to happen
with pre-orders, the new units were not available quite on schedule.
The second was that System76 wasn’t proactive about informing me of the
delays. I was originally cited a delivery date of June 11th, but I
didn’t receive mine until June 15th. In the grand scheme of things, this
was a minor issue—I’ve had far, far worse delays from much bigger
vendors. Still, the fact that it was on me to ask about shipments,
instead of them telling me there would be a four-day delay was an
unforced error on their part.

Price

It’s sweet hardware, and it’s priced like sweet hardware. My laptop came
in at $2,704 (including expedited shipping).

Hardware

The new fourth-generation Oryx Pro is what was only a year ago called a
“desktop replacement”. But that class of computers refers to boat
anchors that were unpleasant to lug around in a messenger bag, not a
slim machine that’s approaching the dimensions of a MacBook. At 15″
wide, 10″ high, and 3/4″ deep, weighing less than 4.5 pounds, it’s
closer to an airweight than a boat anchor. (That’s 38cm by 26cm by 2cm
and just under two kilos, for you nerds out there in civilized countries
that use proper measurements.) And packed into this form factor is a
4.1GHz i7-8750H with six cores and 12 threads, 32 gigs of
DDR4 RAM at 2400MHz, a half-terabyte NVMe SSD, and—Maestro, cue the
drumroll—an 8GB NVIDIA GTX 1070 with a 15.6″ 4K HiDPI display. This
thing makes the Mac Retinas look jagged, and that’s not something I ever
thought I’d say.

The usual other things round it out. For video, it has HDMI and two
DisplayPort 1.3 outputs, two USB 3.1 Type-C connectors, two USB 3.0
Type-A connectors (one of them powered), audio and mike jacks, gigabit
Ethernet and 802.11ac WiFi up to 867Mbps. Oh yes, and Bluetooth. On
the 17″ models, you also can get Thunderbolt 3, but this isn’t an option
on my 15″ model. All of these are pretty much what you should expect on
any modern laptop, really.

The keyboard is what the kids today call a chiclet, but it has absolutely
nothing in common with the chiclet keyboards I remember. People hated
the IBM PCjr chiclet keyboard, but this one is as comfortable as any
laptop keyboard I’ve ever used. The scissor switches are responsive, and
the keyboard itself is nicely backlit by a rainbow of LED lights. It’s
a very nearly full keyboard too, with a full-size numeric keypad. Some
buttons are combined with others and accessed via function key-presses,
but that’s to be expected. The keyboard gets high marks.

Mouse support is provided via a trackpad with two buttons, which is one
of the very few mis-designs in the hardware. Although two-button mice
are better-understood by casual and business users, a lot of hard-core
Linux hackers like the third mouse button—myself included. The screen
bezel is a little larger than I’m accustomed to seeing on a modern
laptop, but if that’s the price I pay for this crisp 4K HiDPI display, I
consider that affordable.

There’s an integrated webcam that works well out of the box with Google
Hangouts, Google Meet and Skype. I stopped testing it at that point
and reached for a piece of electrical tape to cover it, and while
cutting off a piece of tape, I realized the final mis-design. In 2018,
when we’re all so keenly aware of our privacy and how malware can hijack
a webcam, all vendors should place sliding apertures over their webcams.
Getting video should never just be about turning it on in software.
There also should be a physical action performed by the user involved—something as simple as sliding away a cover.

Bezel, no third mouse button, no webcam physical aperture—if those are
my only complaints about the hardware, I think System76 is doing a
pretty good job.

Software

The Pop!_OS is Ubuntu with a skin job, but it’s a pretty nice skin.
Scratch the surface, and you can find standard GNOME underneath, which is
in my mind a positive thing—all those skills you’ve developed on other
distros will transfer over to Pop!_OS nicely. The app store takes
visual inspiration from Apple’s, but it could stand some better curation.
Clicking on the “Games” category gives you a nice list of them, but
there’s no facility to read user reviews or choose what kind of games
you’re interested in. Although graphically it’s heads and shoulders
beyond the package tools of yesteryear, usability-wise it still
could stand improvement. Given System76 has committed to making Pop!_OS a
first-class hacker distro, I suspect the app store experience is pretty
low on the list of priorities—but really, it would be such an easy
way to distinguish it from Ubuntu and its other derivatives.

My biggest complaint with Pop!_OS is that it’s almost a dark theme but
isn’t. “Dark muddy” might be a better way to describe the color
scheme.

Still, as mentioned earlier, it’s all GNOME under the hood, so you can
install whatever theme you’re accustomed to.

As far as development tools, it seems to all be standard Ubuntu 18.04
repositories, so I won’t rehash it except to say that it offers what you
expect: GCC 7.3 and 8.0.1, GNAT, Golang, OpenJDK, Mono and the like.
The Mono libraries are out of date (4.8, whereas the current is 5.12),
but that’s on Ubuntu, not Pop!_OS.

Sound and Video

Sound-wise, the Oryx Pro is a little bit of a letdown. There’s been so
much good stuff that describing the speakers as mediocre feels like a
criticism. They’re not bad speakers, mind you, they’re just not going
to impress you much. It’s a laptop. It’s really, really hard to put
good speakers in a laptop. I compromise with a USB headset and
everything’s great. I’ve also had fine results with a pair of external
USB speakers.

Video-wise, the Oryx Pro is a docile little lamb up until it turns into
the Stay-Puft Marshmallow Man and starts stomping New York flat. It
ships with two different video chipsets: one an onboard low-power set by
Intel and the other the aforementioned NVIDIA GTX 1070 with 8GB RAM.
When you engage this monster, this machine stops being a laptop. I speak
from experience. An hour of it in my lap was enough to leave my left
thigh with first-degree burns. You’re aware it’s hot, but you tell
yourself that you can ignore it. Then you shut down an hour later, look
at your leg and wish you hadn’t ignored it. The price of machismo, I
guess.

The Intel chipset is sufficient for pretty much anything short of
intensive 3D, 4K gaming or mining cryptocurrency. If you want to use
the HDMI or DisplayPort external jacks, you’ll need to switch to the
NVIDIA chipset. Switching between chipsets requires a reboot and a
surprisingly long wait. My suspicion is some firmware is getting flashed
somewhere. By “surprisingly long wait”, I mean that I’ve seen it take up
to 20 seconds more to reboot on a chipset switch than to reboot
without a chipset switch.

Battery Life

Power is supplied by a pretty standard brick that ends in the expected
barrel plug. The trend nowadays is for laptops to be powered by USB-C
or Thunderbolt, but really, I don’t care much about that. What I care
about is whether the vendor-supplied power cable is long enough to be
useful, and there we’re on good ground. This contributes to the overall
weight, of course, which is why so many vendors are intent on giving you
power cables that aren’t long enough to let you be more than three feet
from a socket. System76 is having none of that: you’ve got about ten
feet of distance to work with.

According to System76, the Oryx Pro’s battery stores 55 watt-hours (~200
kilojoules) of energy. That’s the good news. The bad news is twofold:
one, power draw is significantly higher than I’d expect, and two, the
onboard battery monitor is completely useless.

I’ve been composing this article on my System76 laptop in battery-saver
mode. The screen is at minimum brightness, the graphics are being
provided by the Intel chipset, and I’m avoiding anything that’s
especially power-hungry. Still, after just 70 minutes, I’ve dropped from
a 98% charge to a 60% charge—assuming I can trust the battery
monitor, which I really can’t. 70 minutes ago it told me I had
92 minutes of charge remaining; now it tells me I have two hours
and seven minutes.

Whatever. The GNOME battery applet always has been painfully
inaccurate, in my experience, and that’s on GNOME, not System76.

Here’s what I can tell you: running purely on battery on a power-saving
profile and reducing my power-hungry apps, I’ve run this laptop for
three and a half hours before going dry. That’s a significant step
below what Apple’s getting with its MacBook line. I hope System76
invests in improving Linux and GNOME’s power infrastructure, because we
can do better than this.

Like other vendors, System76 has done away with the user-swappable
battery pack. It used to be that if I need more battery life I could
carry a spare battery, but apparently that ship has sailed.

Are we done with this? Good. Hold on while I find a socket, I’m going
to go plug this in.

Support

Here’s something that might surprise you: my laptop is defective.

Yes, it’s defective. That’s not unheard of in first-shipped units. Every
week or so, it’ll spontaneously reboot due to a hardware fault. These
reboots are infrequent enough that it’s not severely impacting my work,
but it still needs addressing, and that’s given me a good opportunity to
explore System76’s support offerings.

Let me give the bottom line first: they’re human beings and they care.
That’s both good news and bad news. It’s good news, because human beings
who care are so much better than all other alternatives that it’s like
comparing a supernova to a firecracker. It’s bad news, because for
things really to get screwed up, you need the involvement of people who
are so fervently committed to getting things right, they don’t notice
they’re digging the hole deeper.

I reported my first bout of reboots, along with a copy of my system log
for 30 seconds prior to reboot, via the web page the afternoon of June
20th. A few minutes after noon the next day, System76 had approved a
no-questions-asked return. On June 22, a customer service rep named
Aaron told me “We are shipping your replacement part and will provide
you with a tracking number as soon as it is available.”

Remember how earlier on when shipments were delayed they didn’t
inform me about it? Yeah, that happened again. On June 26th, I asked
them, “Where is this laptop? I’ve received no tracking information for a
product you said was shipping four days ago.”

About an hour later, Emma informed me, “The replacement laptop will take
some time to ship, because we are out of stock and awaiting the 4k
display, which is expected to arrive the week of July 10th. We are sorry
for the delays. We were just notified about the delays and apologize for
this inconvenience.”

On June 22nd, I was told it was shipping, not “we will ship it as soon as
new stock comes in”, but that it was shipping. Then, after it became clear
there was a delay in new arrivals, they didn’t reach out to let me know.
Instead, I found out four days later that I wouldn’t be receiving my
replacement for two weeks.

I complained loudly. Carl, the head honcho at System76, responded to me
directly and politely. He took responsibility for the error. System76
assures me it has changed the response system so the company no longer
will be sending “we are shipping” notifications ahead of, well, you know,
systems actually shipping.

Let me make it clear, I believe Carl. I also think Emma and Aaron and
everyone else I’ve interacted with are good people who genuinely want to
deliver the best user experience possible. I don’t think my experience
with System76 represents its character as a company, except insofar as it
represents a company going through growing pains as it adjusts to a
level of demand it wasn’t expecting.

And really, for how sweet this hardware is, I completely understand the
company
getting swamped.

The final question is, “if I had the $2,704 to spend again, would I be
better served with an System76 Oryx Pro, a MacBook Pro or a Dell XPS?”
And on balance, even taking into account the support growing pains, I
can say without a shadow of doubt, I would give my money to System76 again.

And I’ll also still be pestering System76 to do better. Because once
the support infrastructure is cleaned up, believe you me, System76 is
going to be giving everybody else in the Linux laptop space a run for
their money.

The Takeaway

Pluses:

  • A desktop replacement laptop in a near-MacBook form factor.
  • i7-8750H with six cores and 12 threads.
  • Up to 32GB RAM, and a wide variety of HD options including large NVMe SSDs.
  • 55Wh battery, ~3-hour life under real-world conditions.
  • Pop!_OS is a nice-looking Ubuntu 18.04 derivative.
  • GTX 1070 and Intel GPUs.
  • Backlit near-full-size keyboard with numeric keypad.
  • Lots of USB ports, including two USB-3.1 Type-Cs.
  • Thunderbolt on the 17″ model.
  • 15″ models offer 4K HiDPI displays, which are amazingly crisp.

Minuses:

  • Sales and support departments are experiencing growing pains.
  • No third button on trackpad.
  • No physical aperture on webcam.
  • Screen bezel slightly larger than expected.
  • Laptop gets dangerously hot when the GTX 1070 kicks in.

Recommendations:

  • If you’ve got the money, this is the best thing I’ve found for
    dedicated Linux laptops.
  • Be patient with System76’s staff. They’re having growing pains.
  • Tell them I sent you.

Source

Setup Nginx Virtual Hosts On CentOS

Introduction

Nginx is a high performance web server. ANginx virtual host can be setup to host as many domains as your server can handle. If you have not already please see our guides on Nginx Compile From Source as well as PHP-FPM With PHP7 From Source. These 2 guides will lay the foundation of core services for Nginx to function as a web server. Once both of those have been completed or you already have a functioning nginx server you can continue with adding virtual hosts.

Nginx Virtual Host Preparation

First create a new directory to house the domains content

mkdir -p /etc/nginx/domain.com/public_html

Replacing domain.com with the domain you are intending to host. Make sure the directory is executable by all users

chmod 755 /etc/nginx/domain.com/public_html

Go ahead and create a php file to make sure Nginx is working with PHP-FPM

edit /etc/nginx/domain.com/public_html/index.php

vim /etc/nginx/domain.com/public_html/index.php

and insert the following php code

<?PHP
phpinfo();
?>

Nginx Virtual Host Configuration

Go ahead and create the site configuration file

vim /etc/nginx/domain_com.conf

and insert the following:

server {
listen 80;
server_name domain.com;
error_log logs/domain_com.error.log;
access_log logs/domain_com.access.log;
root /etc/nginx/domain.com/public_html;
index index.php;

location ~ .php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

}

Replacing all instances of domain.com with the domain you are wanting to host. After you have saved that file you will want to edit the main nginx.conf to include the virtual configuration

vim /etc/nginx/nginx.conf

and add the following at the end

include /etc/nginx/domain_com.conf

After you have done that you will want to update DNS to point to a IP address Nginx is listening on your server.

You can go ahead and restart nginx to load the new configuration file.

/etc/init.d/nginx restart

After that is all done you should be able to visit your site and it should load a PHP informational page that will display all of your configuration. If you would also like to setup your site in SSL, you can use Lets Encrypt to do this for free. The instructions on how to do that are Hwo To Setup Nginx To Use SSL With LetsEncrypt

Source

WP2Social Auto Publish Powered By : XYZScripts.com