Download Ubuntu Server 18.04.1 LTS / 16.04.5 LTS

Ubuntu Server is a Debian-based distribution crafted to perfection and engineered to define the unwritten laws of server-oriented systems.

Availability, supported platforms, boot options

The project is distributed as multiple ISO images that can be written to USB flash drives or CD discs. These bootable medium can be later used to turn personal computers into powerful and unstoppable server systems.

Among the supported hardware platforms, we can mention 32-bit (i386), 64-bit (amd64), 64-bit Mac (amd64 for Macintosh systems), PowerPC (PPC), as well as PowerPC64 (PPC64) Little Endian.

From the boot prompt, users can install the Ubuntu Server operating system on a single machine, as well as on multiple server systems simultaneously, using Canonical’s MAAS (Metal as a Service) project.

In addition, you can use the ISO images to rescue a broken operating system, boot an existing OS installed on the first disk drive, run a memory diagnostic test, as well as to check the disc for defects (only if using a CD media).

Straightforward installation procedure

Installing Ubuntu Server on a single machine, using the first option on the boot installer is quite easy and straightforward, as you will need to select your favorite language for the installation process, select your location, configure the keyboard, set up the network, add a new user, and configure the home directory.

In addition, you must partition the disk drive(s), configure the package manager, set up tasksel to automatically or manually install updates, as well as to manage the system with Canonical’s Landscape service, and choose which server packages to install.

Bottom line

In conclusion, Ubuntu Server is an astonishing product that provides users with one of the best and easy to install server operating systems that use the stable and reliable base of the award winning Debian GNU/Linux distribution.

Source

MariaDB 10 Upgrade From MySQL 5.1 on CentOS 6

MariaDB is a fork of MySQL that was created from some of the original developers of mysql after MySQL was purchased by Oracle. Upgrading to MariaDB offers a range of benefits and is a relatively simple upgrade. It has more active development then MySQL currently and is just developed by Oracle support as MySQL is. It has more storage engines and better performance. Offering a 3-5% performance gain over using MySQL. It has active-active clustering. It is compatible and easy to upgrade. While this upgrade is for CentOS 6, you can get all off the different repositories here .

Take a backup of all the MySQL databases:

You can do this one of two ways

mysqldump –all-databases > all.sql

Or just copy all of the MySQL raw files:

cp -R /var/lib/mysql /var/lib/mysql.back

This will allow you to revert if there are any issues.

Upgrade to MariaDB 5.5

Shut down MySQL

service mysqld stop

Create a new repo /etc/yum.repos.d/MariaDB55.repo and add the following:

# MariaDB 10.0 CentOS repository list – created 2017-05-06 01:14 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Remove mysql:

yum remove -y mysql mysql-devel mysql-libs mysql-server

Make a note of any other other dependencies you may have installed as those will need to be re installed after version 10 has been installed.

Install version 5.5

yum install mariadb mariadb-server mariadb-devel mariadb-lib

Start services

service mariadb start

Upgrade the databases

mysql_upgrade

Ugprade to MariaDB 10.1

First shutdown 5.5

service mariadb stop

Remove the old version

yum remove -y mariadb mariadb-server mariadb-devel mariadb-lib

Create a new MariaDB 10.1 repository /etc/yum.repos.d/MariaDB101.repo and add the following

# MariaDB 10.1 CentOS repository list – created 2017-05-06 01:20 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install MariaDB 10.1 packages:

yum install mariadb mariadb-server mariadb-devel mariadb-lib

Start services:

service mariadb start

Upgrade the databases:

mysql_upgrade

If you are running PHP built from source, you will need to recompile PHP against the new version of MariaDB after the upgrade for it to work properly.

That is it, you should now be running 10.1. All of the old options in you my.cnf should work after the upgrade. You can now use the Aria Storage engine for internal temporary files instead of MyISAM. Set aria-pagecache-buffer-size to the same value as you have for key-buffer-size. If you have a lot of connections(>100) you can setup a thread pool to increase performance.

Source

How to set up WordPress on a Raspberry Pi

WordPress is a popular open source blogging platform and content management system (CMS). It’s easy to set up and has a thriving community of developers building websites and creating themes and plugins for others to use.

Although getting hosting packages with a “one-click WordPress setup” is easy, it’s also simple to set up your own on a Linux server with only command-line access, and the Raspberry Pi is a perfect way to try it out and learn something along the way.

The four components of a commonly used web stack are Linux, Apache, MySQL, and PHP. Here’s what you need to know about each.

Linux

The Raspberry Pi runs Raspbian, which is a Linux distribution based on Debian and optimized to run well on Raspberry Pi hardware. It comes with two options to start: Desktop or Lite. The Desktop version boots to a familiar-looking desktop and comes with lots of educational software and programming tools, as well as the LibreOffice suite, Minecraft, and a web browser. The Lite version has no desktop environment, so it’s command-line only and comes with only the essential software.

This tutorial will work with either version, but if you use the Lite version you’ll have to use another computer to access your website.

Apache

Apache is a popular web server application you can install on the Raspberry Pi to serve web pages. On its own, Apache can serve static HTML files over HTTP. With additional modules, it can serve dynamic web pages using scripting languages such as PHP.

Installing Apache is very simple. Open a terminal window and type the following command:

sudo apt install apache2 -y

By default, Apache puts a test HTML file in a web folder you can view from your Pi or another computer on your network. Just open the web browser and enter the address http://localhost. Alternatively (particularly if you’re using Raspbian Lite), enter the Pi’s IP address instead of localhost. You should see this in your browser window:

This means you have Apache working!

This default webpage is just an HTML file on the filesystem. It is located at /var/www/html/index.html. You can try replacing this file with some HTML of your own using the Leafpad text editor:

cd /var/www/html/
sudo leafpad index.html

Save and close Leafpad then refresh the browser to see your changes.

MySQL

MySQL (pronounced “my S-Q-L” or “my sequel”) is a popular database engine. Like PHP, it’s widely used on web servers, which is why projects like WordPress use it and why those projects are so popular.

Install MySQL Server by entering the following command into the terminal window:

sudo apt-get install mysql-server -y

WordPress uses MySQL to store posts, pages, user data, and lots of other content.

PHP

PHP is a preprocessor: it’s code that runs when the server receives a request for a web page via a web browser. It works out what needs to be shown on the page, then sends that page to the browser. Unlike static HTML, PHP can show different content under different circumstances. PHP is a very popular language on the web; huge projects like Facebook and Wikipedia are written in PHP.

Install PHP and the MySQL extension:

sudo apt-get install php php-mysql -y

Delete the index.html file and create index.php:

sudo rm index.html
sudo leafpad index.php

Add the following line:

<?php phpinfo(); ?>

Save, exit, and refresh your browser. You’ll see the PHP status page:

WordPress

You can download WordPress from wordpress.org using the wget command. Helpfully, the latest version of WordPress is always available at wordpress.org/latest.tar.gz, so you can grab it without having to look it up on the website. As I’m writing, this is version 4.9.8.

Make sure you’re in /var/www/html and delete everything in it:

cd /var/www/html/
sudo rm *

Download WordPress using wget, then extract the contents and move the WordPress files to the html directory:

sudo wget http://wordpress.org/latest.tar.gz
sudo tar xzf latest.tar.gz
sudo mv wordpress/* .

Tidy up by removing the tarball and the now-empty wordpress directory:

sudo rm -rf wordpress latest.tar.gz

Running the ls or tree -L 1 command will show the contents of a WordPress project:

.

├── index.php

├── license.txt

├── readme.html

├── wp-activate.php

├── wp-admin

├── wp-blog-header.php

├── wp-comments-post.php

├── wp-config-sample.php

├── wp-content

├── wp-cron.php

├── wp-includes

├── wp-links-opml.php

├── wp-load.php

├── wp-login.php

├── wp-mail.php

├── wp-settings.php

├── wp-signup.php

├── wp-trackback.php

└── xmlrpc.php

3 directories, 16 files

This is the source of a default WordPress installation. The files you edit to customize your installation belong in the wp-content folder.

You should now change the ownership of all these files to the Apache user:

sudo chown -R www-data: .

WordPress database

To get your WordPress site set up, you need a database. This is where MySQL comes in!

Run the MySQL secure installation command in the terminal window:

sudo mysql_secure_installation

You will be asked a series of questions. There’s no password set up initially, but you should set one in the second step. Make sure you enter a password you will remember, as you’ll need it to connect to WordPress. Press Enter to say Yes to each question that follows.

When it’s complete, you will see the messages “All done!” and “Thanks for using MariaDB!”

Run mysql in the terminal window:

sudo mysql -uroot -p

Enter the root password you created. You will be greeted by the message “Welcome to the MariaDB monitor.” Create the database for your WordPress installation at the MariaDB [(none)]> prompt using:

create database wordpress;

Note the semicolon at the end of the statement. If the command is successful, you should see this:

Query OK, 1 row affected (0.00 sec)

Grant database privileges to the root user, entering your password at the end of the statement:

GRANT ALL PRIVILEGES ON wordpress.* TO ‘root’@’localhost’ IDENTIFIED BY ‘YOURPASSWORD’;

For the changes to take effect, you will need to flush the database privileges:

FLUSH PRIVILEGES;

Exit the MariaDB prompt with Ctrl+D to return to the Bash shell.

WordPress configuration

Open the web browser on your Raspberry Pi and open http://localhost. You should see a WordPress page asking you to pick your language. Select your language and click Continue. You will be presented with the WordPress welcome screen. Click the Let’s go! button.

Fill out the basic site information as follows:

Database Name: wordpress
User Name: root
Password: <YOUR PASSWORD>
Database Host: localhost
Table Prefix: wp_

Click Submit to proceed, then click Run the install.

Fill in the form: Give your site a title, create a username and password, and enter your email address. Hit the Install WordPress button, then log in using the account you just created. Now that you’re logged in and your site is set up, you can see your website by visiting http://localhost/wp-admin.

Permalinks

It’s a good idea to change your permalink settings to make your URLs more friendly.

To do this, log into WordPress and go to the dashboard. Go to Settings, then Permalinks. Select the Post name option and click Save Changes. You’ll need to enable Apache’s rewrite module:

sudo a2enmod rewrite

You’ll also need to tell the virtual host serving the site to allow requests to be overwritten. Edit the Apache configuration file for your virtual host:

sudo leafpad /etc/apache2/sites-available/000-default.conf

Add the following lines after line 1:

<Directory “/var/www/html”>
AllowOverride All
</Directory>

Ensure it’s within the <VirtualHost *:80> like so:

<VirtualHost *:80>
<Directory “/var/www/html”>
AllowOverride All
</Directory>

Save the file and exit, then restart Apache:

sudo systemctl restart apache2

What’s next?

WordPress is very customizable. By clicking your site name in the WordPress banner at the top of the page (when you’re logged in), you’ll be taken to the Dashboard. From there, you can change the theme, add pages and posts, edit the menu, add plugins, and do lots more.

Here are some interesting things you can try on the Raspberry Pi’s web server.

  • Add pages and posts to your website
  • Install different themes from the Appearance menu
  • Customize your website’s theme or create your own
  • Use your web server to display useful information for people on your network

Don’t forget, the Raspberry Pi is a Linux computer. You can also follow these instructions to install WordPress on a server running Debian or Ubuntu.

Source

Wine 3.19 is out with improved 32bit .NET on 64bit and plenty of fixes

Grab a glass and get ready to pour another as the Wine 3.19 development release has been officially released.

Coming in hot for the 3.19 release are these highlights:

  • Support for file I/O completion modes.
  • WaitOnAddress synchronization primitives.
  • Better support for 32-bit .NET binaries on 64-bit.
  • Improved recovery on broken RPC connection.

As always, there’s a plethora of bugs that have been solved as well, with 31 noted as fixed as of this release. The usual note applies: Not all bugs were fixed in this specific release, some were found from earlier releases and only just now marked as solved with some re-testing.

They noted fixes for the S.T.A.L.K.E.R. Call Of Prypyat DX11 benchmark, Project CARS 2 should no longer hang on startup, Assassin’s Creed got a fix for freezing when looking around along with other various fixes for games and applications.

Additionally, Wine 3.19 was updated against Vulkan 1.1.88.

Source

How to Create M3U Playlists in Linux [Quick Tip]

Brief: A quick tip on how to create M3U playlists in Linux terminal from unordered files to play them in a sequence.

Create M3U playlists in Linux Terminal

I am a fan of foreign tv series and it’s not always easy to get them on DVD or on streaming services like Netflix. Thankfully, you can find some of them on YouTube and download them from YouTube.

Now there comes a problem. Your files might not be sorted in a particular order. In GNU/Linux files are not naturally sort ordered by number sequencing so I had to make a .m3u playlist so MPV video player would play the videos in sequence and not out of sequence.

Also sometimes the numbers are in the middle or the end like ‘My Web Series S01E01.mkv’ as an example. The episode information here is in the middle of the filename, the ‘S01E01’ which tells us, humans, which is the first episode and which needs to come in next.

So what I did was to generate an m3u playlist in the video directory and tell MPV to play the .m3u playlist and it would take care of playing them in the sequence.

What is an M3U file?

M3U is basically a text file that contains filenames in a specific order. When a player like MPV or VLC opens an M3U file, it tries to play the specified files in the given sequence.

Creating M3U to play audio/video files in a sequence

In my case, I used the following command:

$/home/shirish/Videos/web-series-video/$ ls -1v |grep .mkv > /tmp/1.m3u && mv /tmp/1.m3u .

Let’s break it down a bit and see each bit as to what it means –

ls -1v = This is using the plain ls or listing entries in the directory. The -1 means list one file per line. while -v natural sort of (version) numbers within text

| grep .mkv = It’s basically telling ls to look for files which are ending in .mkv . It could be .mp4 or any other media file format that you want.

It’s usually a good idea to do a dry run by running the command on the console:

ls -1v |grep .mkv
My Web Series S01E01 [Episode 1 Name] Multi 480p WEBRip x264 – xRG.mkv
My Web Series S01E02 [Episode 2 Name] Multi 480p WEBRip x264 – xRG.mkv
My Web Series S01E03 [Episode 3 Name] Multi 480p WEBRip x264 – xRG.mkv
My Web Series S01E04 [Episode 4 Name] Multi 480p WEBRip x264 – xRG.mkv
My Web Series S01E05 [Episode 5 Name] Multi 480p WEBRip x264 – xRG.mkv
My Web Series S01E06 [Episode 6 Name] Multi 480p WEBRip x264 – xRG.mkv
My Web Series S01E07 [Episode 7 Name] Multi 480p WEBRip x264 – xRG.mkv
My Web Series S01E08 [Episode 8 Name] Multi 480p WEBRip x264 – xRG.mkv

This tells me that what I’m trying to do is correct. Now just have to make that the output is in the form of a .m3u playlist which is the next part.

ls -1v |grep .mkv > /tmp/web_playlist.m3u && mv /tmp/web_playlist.m3u .

This makes the .m3u generate in the current directory. The .m3u playlist is nothing but a .txt file with the same contents as above with the .m3u extension. You can edit it manually as well and add the exact filenames in an order you desire.

After that you just have to do something like this:

mpv web_playlist.m3u

The great thing about MPV and the playlists, in general, is that you don’t have to binge-watch. You can see however much you want to do in one sitting and see the rest in the next session or the session after that.

I hope to do articles featuring MPV as well as how to make mkv files embedding subtitles in a media file but that’s in the future.

Source

Download Kubuntu 18.04.1 LTS / 16.04.5 LTS

Kubuntu is a special version of Ubuntu that replaced the controversial Unity user interface with the KDE desktop environment. It is known among the Ubuntu community as the official KDE flavor of Ubuntu Linux.

The Wily Werewolf edition of Kubuntu will be officially released on October 22, 2015 and it will be supported by Canonical and the Kubuntu community with software updates and security patches for 9 months, until July 2016.

Distributed as 32-bit and 64-bit Live DVDs

Kubuntu 15.10 is distributed as two Live DVD ISO images, one for legacy 32-bit (i386) computers and another one for modern 64-bit (x86_64) machines. Both ISOs are hybrid, which means that you will be able to write them on either a USB flash drive or a DVD disc.

Boot options

The boot options are identical with those that were present in previous versions of the distribution, which means that, by default, the Live DVD will boot automatically in approximately 10 seconds from the moment the users boots the ISO image from the BIOS of the PC.

Available boot options include the ability to start Kubuntu with default settings, support for testing the memory of the PC, the ability to boot an existing operating system from the local disk drive, as well as support for checking the integrity of the bootable medium (only if booting from a DVD disc).

Additionally, you can choose a different language, enable various accessibility options, change the keyboard layout, select a different mode, and activate various other useful functions that will ensure your special hardware is supported.

The next-generation KDE Plasma by default

Kubuntu 15.10 is the first ever version of the operating system to feature the next-generation KDE Plasma desktop environment by default, replacing the old-school KDE 4 user interface. It includes all the KDE packages and applications that are distributed as part of the KDE Applications 15.04 software suite, as well as all the other KDE5 technologies, including KDE Frameworks 5.

When booting the Live DVD, users will be asked if they want to try the live session of start installing the operating system on their computers. Choosing the live mode will allow you to test drive Kubuntu without installing anything on your computer. The desktop environment features the same traditional layout consisting of a single taskbar located on the bottom edge of the screen and a Desktop Folder widget on the desktop.

Offers the same great collection of software and apps

Probably the best thing about Kubuntu 15.10 is that it offers the same great collection of software and apps that were available in previous editions of the operating system. Besides all those great KDE apps, the distribution comes with the Mozilla Firefox web browser and the entire LibreOffice office suite.

Source

IBM To Buy Red Hat, the Top Linux Distributor, For $34 Billion

IBMRed Hat SoftwareBusinesses

Posted on Sunday October 28, 2018 @03:00PM

The purchase, announced on Sunday afternoon, is the latest competitive step among large business software companies to gain an edge in the fast-growing market for Internet-style cloud computing. In June, Microsoft acquired GitHub, a major code-sharing platform for software developers, for $7.5 billion. IBM said its acquisition of Red Hat was a move to open up software development on computer clouds, in which software developers write applications that run on remote data centers.

From a press release:

This acquisition brings together the best-in-class hybrid cloud providers and will enable companies to securely move all business applications to the cloud. Companies today are already using multiple clouds. However, research shows that 80 percent of business workloads have yet to move to the cloud, held back by the proprietary nature of today’s cloud market. This prevents portability of data and applications across multiple clouds, data security in a multi-cloud environment and consistent cloud management.

IBM and Red Hat will be strongly positioned to address this issue and accelerate hybrid multi-cloud adoption. Together, they will help clients create cloud-native business applications faster, drive greater portability and security of data and applications across multiple public and private clouds, all with consistent cloud management. In doing so, they will draw on their shared leadership in key technologies, such as Linux, containers, Kubernetes, multi-cloud management, and cloud management and automation. IBM’s and Red Hat’s partnership has spanned 20 years, with IBM serving as an early supporter of Linux, collaborating with Red Hat to help develop and grow enterprise-grade Linux and more recently to bring enterprise Kubernetes and hybrid cloud solutions to customers. These innovations have become core technologies within IBM’s $19 billion hybrid cloud business. Between them, IBM and Red Hat have contributed more to the open source community than any other organization.

 

The world is no nursery.
– Sigmund Freud

Working…

Source

Understanding Linux Links: Part 2 | Linux.com

In the first part of this series, we looked at hard links and soft links and discussed some of the various ways that linking can be useful. Linking may seem straightforward, but there are some non-obvious quirks you have to be aware of. That’s what we’ll be looking at here. Consider, for example, at the way we created the link to libblah in the previous article. Notice how we linked from within the destination folder:

cd /usr/local/lib

ln -s /usr/lib/libblah

That will work. But this:

cd /usr/lib

ln -s libblah /usr/local/lib

That is, linking from within the original folder to the destination folder, will not work.

The reason for that is that ln will think you are linking from inside /usr/local/lib to /usr/local/lib and will create a linked file from libblah in /usr/local/lib to libblah also in /usr/local/lib. This is because all the link file gets is the name of the file (libblah) but not the path to the file. The end result is a very broken link.

However, this:

cd /usr/lib

ln -s /usr/lib/libblah /usr/local/lib

will work. Then again, it would work regardless of from where you executed the instruction within the filesystem. Using absolute paths, that is, spelling out the whole the path, from root (/) drilling down to to the file or directory itself, is just best practice.

Another thing to note is that, as long as both /usr/lib and /usr/local/lib are on the same partition, making a hard link like this:

cd /usr/lib

ln -s libblah /usr/local/lib

will also work because hard links don’t rely on pointing to a file within the filesystem to work.

Where hard links will not work is if you want to link across partitions. Say you have fileA on partition A and the partition is mounted at /path/to/partitionA/directory. If you want to link fileA to /path/to/partitionB/directory that is on partition B, this will not work:

ln /path/to/partitionA/directory/file /path/to/partitionB/directory

As we saw previously, hard links are entries in a partition table that point to data on the *same partition*. You can’t have an entry in the table of one partition pointing to data on another partition. Your only choice here would be to us a soft link:

ln -s /path/to/partitionA/directory/file /path/to/partitionB/directory

Another thing that soft links can do and hard links cannot is link to whole directories:

ln -s /path/to/some/directory /path/to/some/other/directory

will create a link to /path/to/some/directory within /path/to/some/other/directory without a hitch.

Trying to do the same by hard linking will show you an error saying that you are not allowed to do that. And the reason for that is unending recursiveness: if you have directory B inside directory A, and then you link A inside B, you have situation, because then A contains B within A inside B that incorporates A that encloses B, and so on ad-infinitum.

You can have recursive using soft links, but why would you do that to yourself?

Should I use a hard or a soft link?

In general you can use soft links everywhere and for everything. In fact, there are situations in which you can only use soft links. That said, hard links are slightly more efficient: they take up less space on disk and are faster to access. On most machines you will not notice the difference, though: the difference in space and speed will be negligible given today’s massive and speedy hard disks. However, if you are using Linux on an embedded system with a small storage and a low-powered processor, you may want to give hard links some consideration.

Another reason to use hard links is that a hard link is much more difficult to break. If you have a soft link and you accidentally move or delete the file it is pointing to, your soft link will be broken and point to… nothing. There is no danger of this happening with a hard link, since the hard link points directly to the data on the disk. Indeed, the space on the disk will not be flagged as free until the last hard link pointing to it is erased from the file system.

Soft links, on the other hand can do more than hard links and point to anything, be it file or directory. They can also point to items that are on different partitions. These two things alone often make them the only choice.

Next Time

Now we have covered files and directories and the basic tools to manipulate them, you are ready to move onto the tools that let you explore the directory hierarchy, find data within files, and examine the contents. That’s what we’ll be dealing with in the next installment. See you then!

Learn more about Linux through the free “Introduction to Linux” course from The Linux Foundation and edX.

Source

WP2Social Auto Publish Powered By : XYZScripts.com