Linux Mint 18.3 Installation & Review — The Ultimate Linux Newbie Guide

Linux Mint is a very well known desktop version of Linux that’s suitable for the everyperson as a drop-in replacement for a Windows or Mac computer. At the time of writing this article, Linux Mint has been the number one Linux distro for over a year according to DistroWatch. Mint is a derivative of Ubuntu, although you’d hardly know it.

In the following article, we have a video howto, showing you how to install it onto a PC, alongside Windows 10, which is an absolute breeze thanks to the installer. The video also shows you how to install apps with the Mint Software Manager and finally install Google Chrome (which is not available by default due to software licensing restrictions).

What’s different about Mint?

Linux Mint Cinnamon (18.3)Linux Mint 18.3 Cinnamon Desktop

Mint uses a desktop environment called Cinnamon. The default desktop of Ubuntu (and many other distros) is GNOME3, so straight away it’s different, however that’s not where it stops. The best features about Mint are:

  • Stability: It’s a no-nonsense distribution which works well. It seems to work with so much hardware right out of the box, even compared with Ubuntu.
  • Ease of use: Although Mint is feature rich, it has a feeling which will make you right at home if you are coming from another platform, especially Windows.
  • Aesthetically pleasing: Cinnamon looks more like GNOME2, but still pulls off a good aesthetic. It has some unique features such as Desklets which are single-purpose applications that can be added to your desktop, kind of like those widgets you got in Windows Vista – imagine weather applets and the like. There are multiple workplaces,
  • Speed: Cinnamon feels pretty fast and it works on older hardware too. If you have really old hardware, Mint also offers a MATE desktop version, which is even more lightweight, whilst still allowing you access to the same apps.
  • Software Manager apps: The software manager offers some everyday apps that you wouldn’t expect to see ‘out-of-the-box’ availability with most Linux distributions. However, these things are often considered staples of normal family users, apps including Skype, WhatsApp, Steam for gaming, DropBox, Google Earth and many more hot titles. This latest version of Linux Mint (18.3), provides Flatpak support. With Flatpak, you can install bleeding-edge applications even if they are not compatible with Linux Mint.

Video Howto

Check out our howto video to show you the simple steps of installing Linux Mint 18.3, which was released in December 2017. It is the ‘stable’ release of Mint, which will receive Long Term Support (LTS) until 2021, meaning that security updates and feature updates will be provided until at least then. Linux Mint 19 will be released around June 2018 but will not be an LTS release.

Before you get started

Before you get started with installing Linux Mint 18.3, you’ll need the following:

  • A spare 4GB+ USB stick or blank DVD-R for the ISO image.
  • A spare 15+ GB storage space on your computer (20+ GB recommended).
  • 2GB + RAM.
  • 64bit PC with UEFI or BIOS. 32bit installation only works with BIOS. Note that almost all computers sold since 2007 are 64 bit. If your computer is older than this, then check this guide out.
  • A decent internet connection to download the ISO from www.linuxmint.com.
  • Ability to ‘Burn’ the ISO image to USB or DVD. See our guide on chapter 5 for more information on this.

More goodies?

Aside from the flatpak system and the updated Software Manager, Linux Mint 18.3 provides a few more goodies that are not available in previous versions of 18.x.

Backups & Snapshots

Linux Mint Backup tool 18.3Linux Mint Personal Backup tool

Mint 18.3 comes with a brand new backup tool, which backs up your home directory and archives it into one simple archive file, which can be restored at a snap.

Kind of like the Time Machine software in MacOS, there’s a tool called Timeshift which creates complete system snapshots.

System Reports

In addition to crash reports, the System Reports tool is also able to show information reports.

Unlike the release notes which show the same generic information to everybody, information reports are targeted at particular users, particular hardware, particular cases. Each report is able to detect its own relevance based on your environment, the desktop you’re using, your CPU, your graphic cards…etc, providing great ability for the Mint authors to fix more issues with the software and provide better enhancement.

Xed Texteditor

xed editor Linux Mint 18.3Xed’s minimap navigation

Xed, the text editor, now features a minimap to help with navigation, like the Atom text editor.

The toolbar of the PDF reader, Xreader, was improved. The history buttons were replaced with navigation buttons (history can still be browsed via the menubar). The two zoom buttons were switched and a zoom reset button was added to make Xreader consistent with other Xapps.

More information

For more information on this release, head over to the official website.

Source

Papirus Icons Updated With Newly Designed Icons, Install in Ubuntu/Linux Mint – NoobsLab

Papirus suite is specifically designed for KDE desktop but now the icon theme is available for other desktops as well which includes: Unity, Gnome, Mate, Cinnamon and others. Previously we had a ported version of Papirus KDE icons in the PPA but now it is directly supported and maintained by creator. There are two variants in this icon pack with light and dark panel icons, it has more than 3500 icons for different applications and still counting, if you find any missing icon then directly report it creator via

Github page

. There was an official PPA but discontinued back in November 2016 and now these icons can be installed via wget method. You can use

Unity Tweak Tool

,

Gnome-tweak-tool

to change themes/icons.


papirus icons
papirus icons
papirus icons
papirus icons

For Gnome, KDE, Unity Cinnamon, Xfce, Lxde, Mate desktops
To install Papirus Icons in Ubuntu/Linux Mint open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:
To install Papirus Icons using PPA in Ubuntu/Linux Mint open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:To Uninstall Papirus Icons use one of these commands (Make sure to use relevant one):
For sh installer:

For PPA:

Did you like it?

Source

The Coaching Fellowship – Women in Linux

Twice per year, The Coaching Fellowship selects between 50 and 75 young high potential women leaders each time in the social impact sector to become our fellows. Fellows receive executive level coaching at a massively reduced rate so they may focus deeply on personal and leadership development, attaining their goals, and changing the world in the process. In addition, fellows join our network of 400+ women impact leaders around the world.

APPLICATIONS ARE NOW OPEN

Why should you apply?

Having access to a coach can be a significant influence on professional and personal development. Through The Coaching Fellowship we are proud to offer coaching to amazing young women leaders intent on transforming our planet. If you want greater understanding of your strengths, if you need to make a change or a complex decision, if you want to step deeply into your leadership, if you are seeking balance and purpose, one of our coaches can help you.

Application deadline is August 10, 2018.

APPLY NOW



Source

How to Delete Line in VIM

delete lines vim editor linux

How to delete lines from Vim? How to delete ranges of lines? How to delete lines by a given pattern? Let’s cover in this article different ways to delete lines in Vim editor.

    1. Delete a single line
    2. Delete all lines
    3. Delete multiple lines
    4. Delete a range of lines
    5. Delete lines by a given pattern

Install Vim in Ubuntu/Debian distributions

# sudo apt install vim

Install Vim in RHEL/CentOS distributions

# yum install vim

1) Delete a single line

To delete a single line in Vim editor, follow the steps below

  1. Place the cursor to the beginning of the line
  2. Press the ESC key.
  3. Next, press dd i.e quick press letter ‘ d ‘ twice in quick succession.

In the example below, pressing dd at the beginning of line 6 as shown below will delete the entire line.

delete lines in vim command

2) Delete all lines

Below are the two ways to delete all lines.

:1,$d

or

:%d

3) Delete multiple lines

To delete multiple lines

  1. place the cursor at the beginning of a line.
  2. Prefix the dd command with the number of lines you want to delete below it. For example, if you want to delete 3 consecutive lines below line 3 press
    # 3dd

delete lines in vim

4) Delete a range of lines

If you want to delete a range of lines, say from line 3 to line 5, the syntax is as shown below

:[start_line_no],[end_line_no]d

In this case, Press ESC Then type the command below and hit Enter.

:3,5d

To delete the last line

:$d

To delete all lines before the current line

:1,.-1d

To delete all lines after the current line

:.+1,$d

5) Delete lines by a given pattern

Finally, you can delete lines following a given pattern.

For instance, to delete lines that contain a certain word, press ESC and run

:g /word/d

In our case, to delete lines that contain the word “lazy”

:g /lazy/d

To delete every line that doesn’t contain the word “lazy”

:%g!/lazy/d
or
:v/lazy/d

To delete lines that begin with a certain letter, say ‘A’

:g/^A/d

If you want to delete lines that begin with a special character like $ sign, prefix the character with a backslash as shown

:g/^$/d

To get rid of all blank lines

:g/^$/d

Do you have any tips to delete vim lines? Hope this article helped you and please leave your comments.

Read Also:

Source

Best Linux Mint Wallpapers and How to Use Them

Linux mint is a very popular Linux distribution for desktop, and is a free and an open source operating system like most of the Linux distros. Linux Mint is built on top of Ubuntu and Debian kernel architectures. Mint is completely community driven and provides a very interactive user interface like its Windows counterpart. Tools for customizing the desktop and menus that are unique in nature and an overwhelming multimedia support are some of the vital features of the Linux Mint OS. Mint is immensely easy to install with DVD and BluRay playback options available for the users. Mint includes several preinstalled software such as LibreOffice, VLC Media Player, Firefox, Thunderbird, Hexchat, Gimp, Pidgin, Transmission, and third party apps can be also installed with ease with its Software Manager. Apart from the inbuilt ones, Mint also supports third party browser plugins, which are useful for extending the functionality of the operating system.

What Are Wallpapers and Why Are They Used?

A wallpaper is an image which is used for decorative purpose, and it’s installed in the background of the home screen. It is the first thing that is being displayed on the screen when your desktop or laptop has booted up. A wallpaper may be a trivial thing, but for some people who spend hours on the computer it is important to choose a suitable wallpaper. A bold and colourful wallpaper can cheer you up, a wallpaper based on the cool colours scheme can soothe and stimulate your senses. Thus, choosing an appropriate wallpaper is quite necessary as it plays an important psychological role. Usual preference of wallpapers include nature, landscapes, cars, abstract, flowers, celebrities, super models regardless of the attributes of the individual. Here, is a collection of some beautiful HD wallpapers along with the source:

Source : https://www.opendesktop.org/p/1144571/

Description: Kings and Pawns on a chess board. The cool colour scheme and the glass pin effect is calming.

Source : https://www.opendesktop.org/p/1144987/

Description: The aesthetic beauty of the Swiss mountains makes a beautiful wallpaper.

Source : https://www.opendesktop.org/p/1144967/

Description: Creekside waters and beautifully balanced colours capturing scenic beauty.

Source : https://www.opendesktop.org/p/1265881/

Description: A starry and a colourful nebula to provide an aesthetic appeal to your desktop. The colour scheme and editing effects just fall into place.

Source : https://winaero.com/blog/download-wallpapers-linux-mint-19/

Description: An artistic capture of a blue fence with the correct amount of focus and the correct amount of blur.

Source : https://winaero.com/blog/download-wallpapers-linux-mint-19/

Description: A high quality coffee beans image for team coffee out there.

Source : https://winaero.com/blog/download-wallpapers-linux-mint-19/

Description: An image of the sky at dawn time with right amount of shade and light. This HD image creates a soothing visual sense.

Source :https://www.opendesktop.org/p/1264112/

Description: An HD quality interior of a ship, with a view of the ocean proves to be an interesting wallpaper. This one is the best for a vintage effect.

Source : https://www.opendesktop.org/p/1266223/

Description: Water gushing and colliding with the stones and the sun peeping out from the clouds makes the picture a perfect wallpaper.

Source : https://grepitout.com/linux-mint-wallpapers-download-free/

Description: The fern trees and the huge hill create a scenic appeal which makes for the best wallpaper.

Source : https://grepitout.com/linux-mint-wallpapers-download-free/

Description: The setting sun painting an oranges hue in the sky, and the hill rocks at the side stimulates a soothing visual sense.

Source : https://grepitout.com/linux-mint-wallpapers-download-free/

Description: The mustard of the pretty flowers leaves a cheerful impression and makes for an amazing wallpaper.

Source : https://www.pexels.com/photo/aerial-view-beach-beautiful-cliff-462162/

Description: The scenic beauty of the bucolic lands and sapphire blue water prove to be a beautiful wallpaper.

Source : https://www.pexels.com/photo/bridge-clouds-cloudy-dark-clouds-556416/

Description: Autumn leaves on the bridge and beautiful mountains at the back make a picture perfect wallpaper.

Source : https://www.pexels.com/photo/river-with-high-rise-buildings-on-the-sides-11302/

Description: The beautiful city of Venice and its architectural style captured in the most artistic way prove to be an amazing wallpaper.

Source : https://www.opendesktop.org/p/1245861/

Description: A vintage car and the orange fiery sky subjecting all its colours on the water below create an unnerving yet a calming effect.

Source : https://www.pexels.com/photo/photo-of-man-riding-canoe-1144265/

Description: A calm colour scheme image of a small tunnel surrounded by buildings.

Source : https://www.opendesktop.org/p/1262309/

Description: A fascinating wallpaper choice consisting of pleasant skies and mountains.

Source : https://www.pexels.com/photo/cinque-torri-dolomites-grass-landscape-259705/

Description: Irregular rocks resting in an irregular manner with the striking sky in the back make for an amazing wallpaper.

Source : https://www.opendesktop.org/p/1260264/

Description: Blubs and bokeh lights together create an engaging effect for a creative wallpaper.

Source : https://www.opendesktop.org/p/1144903/

Description: White flowers with partial blur create a soothing and calming visual sense.

Steps to Install/Use The Wallpapers in Linux Mint 19

The following steps demonstrate how to install the aforesaid wallpapers in your computer. To download the wallpapers, please navigate to the appropriate website stated right under each wallpaper, and click on the download button to download them. Make sure to pick the wallpaper with the right resolution to match with the monitor where wallpaper is being used. Larger ones tend to consume more video memory, whereas smaller ones stretch the image, and thereby making the image blur.

  1. Right click on the desktop, on a blank spot, a window will appear. Click on Change Desktop Background from the menu.
  2. A System Settings application window will be launched. Where select the background tab.
  3. In the left pane, click on Background. You will see a list of all the background images available in Linux Mint.
  4. Go through all the images, until you find an appropriate one. Left-click on the image to select it.
  5. You can also add existing items in your Pictures folder as a wallpaper. All you have to do is select Pictures in the left pane. This will display everything in the Pictures folder and you can select the image of your choice for background.
  6. You can also add another location by clicking on the plus button in the left pane. Navigate until you find the folder and select it.

Using Default Wallpapers

Wallpapers are available within Linux Mint as well. In order to use the default wallpapers provided, you need to install these wallpapers from the Launchpad. This is useful in case want to revert back to default wallpapers from the newer wallpaper. You can do so in the following way:

Open the terminal and type the following commands:

add-get install mint-backgrounds-*

Thus, all the wallpaper packages available will be installed. The * indicates that all the items in the package are installed.

For a specific package, mention the name of the package instead of the asterisk. For example:

add-get install mint-backgrounds-maya

All the installed packages will be stored in a folder named as

Images can be manually dragged and dropped to “/usr/share/backgrounds” and used them through “Backgrounds” window.

Thus, in this way you can install all the predefined wallpaper packages offered by Linux Mint.

Another way to install wallpapers is using PPA

PPA (Personal Package Archives) are packages which contain limited smaller number of packages within them. PPAs are generally hosted by individuals, and thus they are often stayed up-to-date, but the risk can be higher as they are from individual people not from the official website.

Steps to install using a PPA are as follows:

1. In the terminal type the following commands

sudo add-apt-repository ppa:___

2. Copy the ppa and paste it after the colon in the terminal.

3. To get any updates if necessary.

sudo apt-get install package_name

This package is stored in the Synaptic Package Manager. Click on Properties -> Installed Files to view all the installed packages in the /user/share/backgrounds folder.

Wallpaper Changer

You can assign random wallpapers using Variety wallpaper changer. It keeps rotating images within a defined time period or on demand. This is a good way to update the downloaded wallpapers in the background from time to time automatically.

The following commands need to be typed in the terminal to install variety wallpaper changer:

1. Add the Variety PPA in the terminal.

sudo add-apt-repository ppa:peterlevi/ppa

2. Update resource list.

3. Install Variety

sudo apt-get install variety

A variety window will appear which allow you to enter your preferences and then you are good to go.

Thus, above are the different ways in which wallpapers can be installed and used in Linux Mint 19. Wallpapers can be downloaded from various sources. The aforesaid wallpapers are some of the examples, however much better ones can be downloaded by googling them. High definition images that are formatted in PNG image format, and big in size, and resolution make eye-candy wallpapers.

Source

[Stable Update] 2018-09-09 – Kernels, KDE Plasma & Apps, Browsers, Mesa, Deepin, AMDVLK

Hi community,

Welcome to another stable update. So what do we have with this one?

  • added some more L1TF patches to most of our kernel series
  • texlive and gcc got updated to the latest versions
  • KDE Plasma5 is now at 5.13.5
  • KDE Apps got updated to 18.08.1
  • manjaro-tools v0.15.9 released
  • mesa got updated to 18.1.8
  • added AMDVLK
  • updated our deepin and xfce4-gtk3 packages
  • fixed crashes within ghostscript
  • updated most of our browsers
  • the usual upstream rebuilds/updates

We hope with all these changes Manjaro to be more efficent for you all.

Our effort and all the needed information about the new security risk can be found here.

So please report back and give us feedback for given changes made to our repositories. Users of our 32-bit Distro should read this.

kind regards

Philip Müller
Manjaro Project Lead

Current supported Kernels

  • linux316 3.16.57
  • linux318 3.18.121 [EOL]
  • linux44 4.4.154
  • linux49 4.9.125
  • linux414 4.14.68
  • linux417 4.17.19 [EOL]
  • linux418 4.18.6
  • linux419 4.19-rc2
  • linux414-rt 4.14.53_rt40
  • linux416-rt 4.16.18_rt11

Package Updates (Sun Sep 9 09:06:27 CEST 2018)

  • community x86_64: 876 new and 856 removed package(s)
  • core x86_64: 39 new and 37 removed package(s)
  • extra x86_64: 560 new and 654 removed package(s)
  • multilib x86_64: 18 new and 17 removed package(s)

Links

Posted in: news

Source

Feral show off Total War: WARHAMMER II on Linux, along with confirming more Linux ports and a Vulkan teaser

Feral Interactive just put up a YouTube video to show off Total War: WARHAMMER II running on Linux, it’s looking good and they confirmed again their future Linux plans.

What’s interesting, is that in this video they did confirm a few interesting bits of extra information. Firstly, they confirmed that Total War: WARHAMMER II is using Vulkan (which we knew already) but the more interesting thing is what they said after. They said “By the way, we do have more sweet sweet Vulkan plans up our sleeves, but they’re secret.”. It’s going to be interesting to find out what they mean by that, since they wouldn’t say such a thing if it just meant future ports will use Vulkan, since we already know that as they’ve said it multiple times before.

Additionally, in regards to a question about Steam Play/Proton being the end of Linux ports, they said “We are happy to say we have lots of plans for Linux, including WARHAMMER II as well as upcoming games like Total War: Three Kingdoms and Life is Strange 2”. While those titles were already confirmed previously (I assume this video was recorded before and only now put up) along with the XCOM 2 DLC already released, their wording is interesting as it seems to indicate more are coming which is obviously good news.

They’re still not yet confirming a release date, other than later this Autumn.

Anyway, here’s the video (Feral said it’s played on an Intel Core i7-4790k with 16GB RAM and a Radeon RX 580 8GB):

Source

Linux 4.10 Released as First New Kernel of 2017

  • February 20, 2017
  • By
    Sean Michael Kerner

After a one week delay, Linus Torvalds released the first new Linux kernel of 2017 on Feb. 19, with the debut of Linux 4.10. The Linux 4.9 kernel (aka ‘Roaring Lionus” was released back on Dec. 11. There was some talk in 2016 that seemed to indicate that Linux 4.10 would in fact be re-numbered as Linux 5.0 but that didn’t end up happening.

“On the whole, 4.10 didn’t end up as small as it initially looked,” Torvalds wrote in his release announcement. “After the huge release that was 4.9, I expected things to be pretty quiet, but it ended up very much a fairly average release by modern kernel standards.”

“So we have about 13,000 commits (not counting merges- that would be another 1200+ commits if you count those),” Torvalds added.

Looking at the new features in LInux 4.10, among the most noteworthy is Virtual GPU support (what Intel call (GVT-g for KVM).

“As a long-standing member of the open source community, Intel works upstream to ensure that full, open source implementations of Intel GVT exist for open source virtualization hypervisors, KVM and Xen, known respectively as KVMGT and XenGT,” Intel’s documentation states.

“Efficiency in today’s world often implies the use of cloud computing, and today’s cloud faces a growing share of media-rich workloads,” Intel states. “While this impending reality has often presented a steep challenge, graphics virtualization technologies have emerged in response, to efficiently manage these workloads.”

There is also a new tools called ‘perf c3c’ that aims to help improve memory cache allocation across distributed systems. There is now also support for Intel’s Cache Allocation Technology.

From a security perspective, Linux 4.10 introduces a new virtualization cryptography driver for the Linux kernel.

“The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines,” the kernel commit message for the new features explains. “The encryption and decryption requests are placed in the data queue and are ultimately handled by the backend crypto accelerators.”

Linux 4.10 also adds preliminary support for the new IEE 802.11ai Fast Initial Linux Setup (FILS) WiFi networking approach that offers the promise of extremely fast connections for wireless networks.

Sean Michael Kerner is a senior editor at LinuxPlanet and InternetNews.com. Follow him on Twitter @TechJournalist.

Source

Linux Top 3: Manjaro 17, Parrot Security 3.5 and Tails 2.11

  • March 12, 2017
  • By
    Sean Michael Kerner

1) Manajro 17

Manjaro is a Arch Linux based distribution that has both KDE and Xfce desktop as options for users. The Manjaro 17.0 release is codenamed Gellivara.Among the new features:

The Manjaro Settings Manager (MSM) now provides an easy-to-use graphical interface for installing and removing the many series of kernels we offer. Manjaro’s selection of readily available kernels remains the most extensive of all Linux distribution we know of. At the time of this release, nine kernel-series are available directly from our binary repositories, ranging from the mature & rock-solid 3.10 series to the latest 4.10 release. Additionally we offer two realtime kernel series. Such a wide array of available kernel options results in extensive hardware support, getting the most out of your system for you, be it old or new.

2) Parrot Security OS 3.5Parrot Security is a Debian based security researcher Linux distribution providing all manner of tools to help aid in penetration testing and forensic analysis.

The linux kernel was updated to the latest 4.9.13 release and we are waiting debian to finish the debianization of linux 4.10 to start working on our patches for it.A virtual machine manager was included by default, but it is neither virtualbox nor the propertary vmware, while we wanted to include virt-manager, which is an awesome manager for KVM and LXC machines that can also control VMs on other computers on your network.

3)Tails 2.11TAILS – The Amnesic Incognito Live System, is a privacy focussed end user Linux distribution. The new Tails 2.11 release debuted on March 7 providing some incremental package updates.

  • Upgrade Tor Browser to 6.5.1.
  • Fix CVE-2017-6074 (local root privilege escalation) by disabling the dccp module. (#12280) Also disable kernel modules for some other uncommon network protocols. (Part of #6457)

Sean Michael Kerner is a senior editor at LinuxPlanet and InternetNews.com. Follow him on Twitter @TechJournalist.

Source

Askbot: How To Install and Configure the Questions and Answers Framework on CentOS 7



askbot

Introduction

Askbot is an open source Question and Answer (Q&A) forum project. It is inspired by StackOverflow and Yahoo Answers.
Askbot is written in Python on top of the Django framework.

  • Efficient question and answer knowledge management
  • Focused on-topic discussions
  • Best answers are shown first
  • Tag and categorize
  • Follow-up in the comments
  • Organize comments and answers by re-posting
  • Everything is editable
  • Users are rewarded with karma for posting useful information
  • Upvotes grow users karma and the downvotes decrease it
  • Votes identify best content, while karma spotlights and rewards experts
  • User privileges grow along with their reputation.
  • Choose either public, private or hidden karma.
  • When new posts are made users can receive notifications

Askbot is being used by Fedora and Shazam Community, among the others.

In this tutorial we will see how to install and configure Askbot on a CentOS 7 Server.

Dependencies Installation

First of all, install packages required by Askbot. On CentOS, these are the “Development Tool” group, EPEL and Python packages.

Install the “Development Tool” group by executing the following yum command:

# yum group install ‘Development Tools’

Next, install EPEL repository:

# yum install epel-release

Last dependencies are those related to Python. In particular, we will use pip to install Askbot:

# yum install python-pip python-devel python-six

Install PostgreSQL

Askbot uses PostgreSQL as database system to store its data. PostgreSQL is available in CentOS 7 repositories, so install it executing the following command:

# yum -y install postgresql-server postgresql-devel postgresql-contrib

Once the installation is complete, initialize the database with the following command:

$ postgresql-setup initdb

Next, start PostgreSQL and enable it to start at boot time:

#systemctl start postgresql
#systemctl start postgresql

Login as postgres user and access the psql command line tool:

$ su – postgres
$ psql

Create a Database For Askbot

Create a new database and user for Askbot, with the following PostgreSQL queries:

postgres=# create database askbotdb;
postgres=# create user askbotusr with password ‘usr_strong_pwd’;
postgres=# grant all privileges on database askbotdb to askbotusr;

Configure PostgreSQL

Edit PostgreSQL configuration file for authentication setup, which is /var/lib/pgsql/data/pg_hba.conf:

# $EDITOR /var/lib/pgsql/data/pg_hba.conf

Change all authentication to mIn this tutorial we will see how to install and configure Askbot on a CentOS 7 Server.d5:

local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5

Save, close the file and restart PostgreSQL:

# systemctl restart postgresql

Install and Configure Askbot

At this point, it is possible to install Askbot. First of all, create a new user, named askbot:

# useradd -m -s /bin/bash askbot
# passwd askbot

Next, add this new user to the wheel group:

# usermod -a -G wheel askbot

Upgrade pip to the latest version:

# pip install –upgrade pip

Next, install the virtualenv package:

# pip install virtualenv six

Log in as the askbot user previously created, and create a new virtual environment with virtualenv:

$ su – askbot
$ virtualenv unixmen/

Activate this new virtual environment, by executing the following command:

$ source unixmen/bin/activate

Next, install Askbot and other required packages with pip:

$ pip install six askbot psycopg2

Testing Askbot

Last step is to test the Askbot installation. Create a new directory, being sure to not use “askbot” as its name.:

$ mkdir testing

Initialize a new Askbot project by executing the following commands:

$ cd testing
$ askbot-setup

During this process, Askbot will ask for some information required to create the project, for example those related to the database created with PostgreSQL.

At the end, generate the Django static files with the following python command:

$ python manage.py collectstatic

Generate the database:

$ python manage.py syncdb

So, Askbot has been installed and the testing project configured. Test it with runserver:

$ python manage.py runserver 0.0.0.0:8080

With a web browser, go to the server IP address, and you should see a forum page.

Conclusion

In this tutorial we have seen how to install and configure Askbot on a server powered by CentOS 7. Of course, this is just the first step in the realization of a full Q&A website.

Source

WP2Social Auto Publish Powered By : XYZScripts.com