Record Screen in Ubuntu Linux With Kazam [Beginner’s Guide]

This tutorial shows you how to install Kazam screen recorder and explains how to record screen in Ubuntu. The guide also lists useful shortcuts and handy tips for using Kazam.

How to record your screen in Ubuntu Linux with Kazam

Kazam is one of the best screen recorders for Linux. To me, it’s the best screen recording tool. I have been using it for years. All the video tutorials on YouTube have been recorded with Kazam.

Some of the main features of Kazam are:

  • Record entire screen, part of screen, application window or all screens (for multi-monitor setup)
  • Take screenshots
  • Keyboard shortcut support for easily pausing and resuming while recording screen
  • Record in various file formats such as MP4, AVI and more.
  • Capture audio from speaker or microphone while recording the screen
  • Capture mouse clicks and key presses
  • Capture video from webcam
  • Insert a webcam window on the side
  • Broadcast to YouTube live video

Like the screenshot tool Shutter, Kazam is also not being actively developed for the last couple of years. And like Shutter, the present Kazam release works just fine.

I am using Ubuntu in the tutorial. The installation instructions should work for other Ubuntu-based distributions such as Linux Mint, elementary OS etc. For all the other distributions, you can still read about using Kazam and its features.

Install Kazam in Ubuntu

Kazam is available in the official repository in Ubuntu. However, the official repository consists Kazam version 1.4.5, the last stable version of Kazam.

Kazam Version 1.4.5Kazam Version 1.4.5

Kazam developer(s) also worked on a newer release, Kazam 1.5.3. The version was almost sable and ready to release, but for unknown reasons, the development stopped after this. There have been no updates since then.

You can use either of Kazam 1.4.5 and 1.5.3 without hesitating. Kazam 1.5 provides additional features like recording mouse clicks and key presses, webcam support, live broadcast support, and a refreshed countdown timer.

Kazam Version 1.5.3Kazam Version 1.5.3

It’s up to you to decide which version you want to use. I would suggest go for version 1.5.3 because it has more features.

You can install the older Kazam 1.4.5 from the Software Center. You can also use the command below:

sudo apt install kazam

If you want to install the newer Kazam 1.5.3, you can use this unofficial PPA that is available for Ubuntu 18.04 and 16.04:

sudo add-apt-repository ppa:sylvain-pineau/kazam
sudo apt-get update
sudo apt install kazam

You also need to install a few libraries in order to record the mouse clicks and keyboard presses.

sudo apt install python3-cairo python3-xlib

Recording your screen with Kazam

Once you have installed Kazam, search for it in the application menu and start it. You should see a screen like this with some options on it. You can check the options as per your need and click on capture to start recording screen with Kazam.

Screen recording with KazamScreen recording with Kazam

It will show you a countdown before recording the screen. The default wait time is 5 seconds and you can change it from Kazam interface (see the previous image). It gives you a breathing time so that you can prepare for your recording.

Countdown before screen recordingCountdown before screen recording

Once the recording starts,the main Kazam interface disappears and an indicator appears in the panel. If you want to pause the recording or finish the recording, you can do it from this indicator.

Pause or finish screen recordingPause or finish screen recording

If you choose to finish the recording, it will give you the option to “Save for later”. If you have a video editor installed in Linux, you can also start editing the recording from this point.

Save screen recording in KazamSave recording

By default it prompts you to install the recording in Videos folder but you can change the location and save it elsewhere as well.

That’s the basic you need to know about screen recording in Linux with Kazam.

Now let me give you a few tips on how to utilize more features in Kazam.

Getting more out of Kazam screen recorder

Kazam is a featureful screen recorder for Linux. You can access its advanced or additional features from the preferences.

Accessing Kazam preferencesAccessing Kazam preferences

Autosave screen recording in a specified location

You can choose to automatically save the screen recordings in Kazam. The default location is Videos but you can change it to any other location.

Autosave screen recordings in a chosen locationAutosave in a chosen location

Avoid screen recording in RAW mode

You can save your screen recordings in file formats like WEBM, MP4, AVI etc. You are free to choose what you want. However, I would advise avoiding RAW (AVI) file format. If you use RAW file format, the recorded files will be in GBs even for a few minutes of recordings.

It’s wise to verify that Kazam is not using the RAW file format for recording. If you ask my suggestion, prefer H264 with MP4 file format.

file format in KazamDon’t use RAW files

Capture mouse clicks and key presses while screen recording

If you want to highlight when a mouse was clicked, you can easily do that in the newer version of Kazam.

Record mouse clicks while screen recording with KazamRecord mouse clicks

All you have to do is to check the “Key presses and mouse clicks” option on the Kazam interface (the same screen where you press Capture).

Use keyboard shortcuts for more efficient screen recordings

Imagine you are recording screen in Linux and suddenly you realized that you have to pause the recording for some reasons. Now, you can pause the recording by going to the Kazam indicator and selecting the pause option. But this activity of selecting the pause option will also be recorded.

You can edit out this part later but it unnecessarily adds to the already cumbersome editing task.

A better option will be to use the keyboard shortcuts in Ubuntu. Screen recording becomes a lot better if you use the shortcuts.

While Kazam is running, you can use the following hotkeys:

  • Super+Ctrl+R: Start recording
  • Super+Ctrl+P: Pause recording, press again for resuming the recording
  • Super+Ctrl+F: Finish recording
  • Super+Ctrl+Q: Quit recording

Super key is the Windows key on your keyboard.

The most important is Super+Ctrl+P for pausing and resuming the recording.

You can further explore the Kazam preferences for webcam recording and YouTube live broadcasting options.

Do you like Kazam?

I am repeating myself here. I love Kazam. I have used other screen recorders like SimpleScreenRecorder or Green Recorder but I feel a lot more comfortable with Kazam.

I hope you like Kazam for screen recording in Ubuntu or any other Linux distribution. I have tried highlighting some of the additional features here to help you with a better screen recording.

What features do you like about Kazam? Do you use some other screen recorder? Do they work better than Kazam? Please share your views in the comments section below.
Source

Download GNOME Boxes Linux 3.31.2

GNOME Boxes is an open source application that allows users to access remote or virtual systems. It is distributed as part of the GNOME project and uses the well known Qemu software for the actual virtualization.

Features at a glance

The application can be used to connect to a local virtual machine, connect to a work machine from home, view, access and use remote systems, as well as local and remote virtual machines.

In addition, the program allows users to access, view and use virtual machines that are stored on removable media like USB sticks or external hard disk drives, as well as to configure access for various software on a local virtual machine.

Furthermore, GNOME Boxes can be used to view, access and use shared machines and connections, share connections, search for connections, upload and publish virtual machines, and organize favorites.

Designed for GNOME

The user interface follows the GNOME HIG (Human Interface Guidelines) and presents users with an empty window, where their only choice is to press the “New” button in order to create a box.

Getting started with GNOME Boxes

Creating a box will enable users to use another operating system directly from your current session, as well as to connect to an existing machine over the network, or create a virtual machine that runs on top of your computer.

It supports ISO images, pause, resume and force shutdown of existing virtual machines. Another interesting feature is that it doesn’t create virtual hard disk images on your local disk drive, instead it starts the boot medium image immediatelly.

While its run-time dependencies include shared-mime-info, among its build-time requirements we can mention Qemu, Vala, GTK+, Clutter-GTK, GUdev, as well as the libvirt-glib and libosinfo libraries.

Bottom line

Summing up, GNOME Boxes is a very good replacement for the old Vinagre application that was used under the GNOME desktop environment to connect to remote machines through SSH, RDP, Spice and VNC protocols, as well as for Oracle’s VirtualBox virtualization software.

Source

Tune Into Free Live Stream of Keynotes at Open Source Summit & ELC + OpenIoT Summit Europe, October 22-24!

Watch the keynotes LIVE next week at Open Source Summit & ELC + OpenIoT Summit Europe.

Open Source Summit & ELC + OpenIoT Summit Europe is taking place in Edinburgh, UK next week, October 22-24, 2018. Can’t make it? You’ll be missed, but you don’t have to miss out on the action. Tune into the free livestream to catch all of the keynotes live from your desktop, tablet or phone! Sign up now >>

Hear from the leading technologists in open source! Get an inside scoop on:

  • An update on the Linux Kernel
  • Diversity & inclusion to fuel open source growth
  • How open source is changing banking
  • How to build an open source culture within organizations
  • Human rights & scientific collaboration
  • The future of AI and Deep Learning
  • The future of energy with open source
  • The parallels between open source & video games

Live video streaming of the keynote sessions from Open Source Summit & ELC + OpenIoT Summit Europe will take place during the following times:

Monday, October 22

9:00 – 10:20 (BST)

Watch keynotes from Open Invention Network, LF Energy, Intel, LWN.net, and The Linux Foundation.

Tuesday, October 23

9:00 – 10:20 (BST)

Watch keynotes from Vibrant Data, Microsoft, IBM, and Human Rights Data Analysis Group.

Wednesday, October 24

9:00 – 10:00 (BST)

Watch keynotes from Max Planck Institute for Gravitational Physics, IBM, and Mifos Initiative.

View the full keynote schedule >>

Sign up for free live stream now >>

Source

Binary Domain Guide | GamersOnLinux

 

binarydomain96.jpg

Binary Domain is a 3rd person team action shooter. Play as Dan Marshall and lead his team through high-tech Tokyo in 2080. Literally command your team members with voice commands as you encounter intelligent robot armies that have no fear of death. Upgrade your teams weapons & abilities and lead them through and underground wasteland with no hope of survival.

binarydomain91.jpg

Follow my step-by-step guide on installing, configuring and optimizing Binary Domain in Linux with PlayOnLinux.

Note: This guide applies to the Steam version of Binary Domain. Other versions may require additional steps.Tips & Specs:
To learn more about PlayOnLinux and Wine configuration, see the online manual: PlayOnLinux Explained

Mint 18.3 64-bit

PlayOnLinux: 4.2.12
Wine: 3.0

Wine Installation
Click Tools

Select “Manage Wine Versions”
wine01.png

Look for the Wine Version: 3.0

Select it
Click the arrow pointing to the right
wine02.png

Click Next

Downloading Wine

wine04.png

Extracting

Downloading Gecko

wine05.png

Installed

wine06.png

Wine 3.0 is installed and you can close this window

Downloading Steam
Go To: http://www.steampowered.com

Click Install Steam
binarydomain01.png

Do not click “Install Steam Now”

It will automatically install Linux Steam
Select Windows Steam instead
click “Windows” under the green button
binarydomain02.png

Navigate to your desktop

Click Save
binarydomain03.png

PlayOnLinux Setup
Launch PlayOnLinux

Click Install
binarydomain04.png

Click “install a non-listed program”

binarydomain05.png

Click Next

Select “Install a program in a new virtual drive”

Click Next
binarydomain06.png

Name your virtual drive: binarydomain

Click Next
binarydomain07.png

Check all three options:

 

  • Use another version of Wine
  • Configure Wine
  • Install some libraries

Click Next
binarydomain08.png

Select Wine 3.0

Click Next
binarydomain09.png

Select “32 bits windows installation”

Click Next
binarydomain10.png

Configure WineApplications Tab
Windows Version: Windows 7

Click Apply
binarydomain11.png

Graphics Tab
Check: Automatically capture the mouse in full-screen windows

Click Ok
binarydomain12.png

PlayOnLinux Packages (Libraries, Components, DLL’s)

Check the following libraries:

 

  • POL_Install_corefonts
  • POL_Install_d3dx9
  • POL_Install_tahoma

Click Next
binarydomain13.png

Note: All packages will automatically download and installInstalling Steam
Click Browse

binarydomain14.png

Navigate to your desktop

Select: SteamSetup.exe
Click Open
binarydomain15.png

Click Next

Click Next

Check: I accept the license…

Click Next

Click Next

Click Next

Click Install

Click Finish

Updating Steam

Click the “X” to close Steam login

binarydomain24.png

PlayOnLinux Shortcut
Select Steam.exe

Click Next
binarydomain25.png

Name your shortcut: Binary Domain

Click Next
binarydomain26.png

Select “I don’t want to make another shortcut”

Click Next
binarydomain27.png

PlayOnLinux Configure
Back to PlayOnLinux

Click Configure
binarydomain28.png

General Tab
Wine Version: 3.0

Arguments: -no-dwrite
This fixes any missing font problems
binarydomain29.png

Note: Click the + to download other versions of Wine. Click the down-arrow to select other versions of wineDisplay Tab
Video Memory Size: Select the size of Memory your video card/chip uses

binarydomain30.png

Close Configure

Steam Server Error
Before launching Steam you will get a Server Error for every game

Navigate to your game’s wineprefix:

 

Code:

/home/username/.PlayOnLinux/wineprefix/alienbreed3/drive_c/Program Files/Steam/config/
Open config.vdf with a text editor
binarydomain31.png

Copy this code below

Code:

“CS” “valve511.steamcontent.com;valve530.steamcontent.com;valve548.steamcontent.com;valve539.steamcontent.com;valve519.steamcontent.com;valve555.steamcontent.com;valve504.steamcontent.com;valve529.steamcontent.com;valve558.steamcontent.com;valve500.steamcontent.com;valve561.steamcontent.com;valve532.steamcontent.com;valve540.steamcontent.com;valve502.steamcontent.com;valve544.steamcontent.com;valve528.steamcontent.com;valve556.steamcontent.com;valve520.steamcontent.com;valve542.steamcontent.com;valve538.steamcontent.com;valve551.steamcontent.com;valve521.steamcontent.com;valve564.steamcontent.com;valve516.steamcontent.com;valve535.steamcontent.com;valve541.steamcontent.com;valve533.steamcontent.com;valve536.steamcontent.com;valve557.steamcontent.com;valve559.steamcontent.com;valve537.steamcontent.com;valve508.steamcontent.com;valve525.steamcontent.com;valve565.steamcontent.com;valve566.steamcontent.com;valve514.steamcontent.com;valve545.steamcontent.com;valve517.steamcontent.com;valve547.steamcontent.com;valve549.steamcontent.com;valve503.steamcontent.com;valve515.steamcontent.com;valve506.steamcontent.com;valve562.steamcontent.com;valve526.steamcontent.com;valve543.steamcontent.com;valve522.steamcontent.com;valve518.steamcontent.com;valve509.steamcontent.com;valve550.steamcontent.com;valve552.steamcontent.com;valve505.steamcontent.com;valve553.steamcontent.com;valve512.steamcontent.com;valve546.steamcontent.com;valve554.steamcontent.com;valve510.steamcontent.com;valve563.steamcontent.com;valve501.steamcontent.com;valve531.steamcontent.com;valve523.steamcontent.com;valve524.steamcontent.com;valve507.steamcontent.com;valve560.steamcontent.com;valve567.steamcontent.com;valve513.steamcontent.com;valve1601.steamcontent.com;valve164.steamcontent.com;valve1615.steamcontent.com;valve1602.steamcontent.com;valve1604.steamcontent.com;valve1608.steamcontent.com;valve1603.steamcontent.com;valve1606.steamcontent.com;valve1609.steamcontent.com;valve1618.steamcontent.com;valve1617.steamcontent.com;valve1613.steamcontent.com;valve1607.steamcontent.com;valve1611.steamcontent.com;valve1614.steamcontent.com;valve1619.steamcontent.com;valve1616.steamcontent.com;valve1612.steamcontent.com;valve1610.steamcontent.com;valve165.steamcontent.com;valve1605.steamcontent.com;valve954.steamcontent.com;valve955.steamcontent.com;valve904.steamcontent.com;valve901.steamcontent.com;valve957.steamcontent.com;valve953.steamcontent.com;valve956.steamcontent.com;valve950.steamcontent.com;valve905.steamcontent.com;valve952.steamcontent.com;valve902.steamcontent.com;valve907.steamcontent.com;valve958.steamcontent.com”

Go to the line

“InstallConfigStore”
{
“Software”
{
“Valve”
{
“Steam”
{
“CM”

Paste in a new line under the “CM” line with all the IP Addresses

Save config.vdf
binarydomain32.png

Launching Steam
Select Binary Domain

Click Run
binarydomain33.png

Note: Click debug to see errors and bugs
Click “Login to existing account”

binarydomain34.png

Login

binarydomain24.png

Find Binary Domain in your Library

Click Install
binarydomain36.png

Uncheck “Create desktop shortcut”

Uncheck “Create start menu shortcut”
Click Next
binarydomain38.png

Click Finish

Wait for Binary Domain to download
binarydomain39.png

Click Play

binarydomain40.png

If you get a DOT Net Framework 3.5 error

Click OK
binarydomain37.png

Optimization
Select Configure at Launch

Click Graphics Configuration
Adjust:

  • Resolution
  • Antialiasing
  • Shadow Quality
  • SSAO Quality
  • Motion Blur
  • VSync
  • Windowed Mode
  • Field of View

Click “Save and Quit”
binarydomain42.png

Click Play again

Check “Play Binary Domain”
Click Play
binarydomain43.png

Conclusion
Binary Domain is a DirectX 9 game and runs beautifully with Wine 3.0 in fact it probably runs on any version of Wine. Definitely give the newest version a try as well. The only issue I experienced was that typical mouse-look problem where it was extremely sensitive. You can see it in the video. So I turned down the sensitivity in-game and that helped a bit.

Gameplay video

 

Screenshots:binarydomain84.jpg

binarydomain87.jpg

binarydomain94.jpg

binarydomain90.jpg

binarydomain98.jpg

binarydomain102.jpg

binarydomain107.jpg

binarydomain108.jpg

binarydomain110.jpg

Source

NVIDIA GeForce RTX 2070 OpenCL, CUDA, TensorFlow GPU Compute Benchmarks

Here are the first of our benchmarks for the GeForce RTX 2070 graphics card that launched this week. In our inaugural Ubuntu Linux benchmarking with the GeForce RTX 2070 is a look at the OpenCL / CUDA GPU computing performance including with TensorFlow and various models being tested on the GPU. The benchmarks are compared to an assortment of available graphics cards and also include metrics for power consumption, performance-per-Watt, and performance-per-dollar.

 

 

The GeForce RTX 2070 as a reminder has 2,304 CUDA cores, 1410MHz base clock speed, 1620MHz boost clock speed, and with its RTX technology is capable of 42T RTX-OPS and 6 Giga Rays/s. The memory with the RTX 2070 is 8GB of GDDR6 and provides a memory bandwidth of 448GB/s.

 

 

There are around 10.8 billion transistors on the RTX 2070’s TU106 GPU core compared to 18.6 billion with the RTX 2080 Ti TU102. While the RTX 2070 is significantly cut-down compared to the RTX 2080 Ti, its price is much lower: while the RTX 2080 Ti flagship card commands a price of $1,199+ (or $799+ for the RTX 2080), the RTX 2070 launch price is at $449 USD or $599 USD for the NVIDIA Founder’s Edition card.

 

 

Like the RTX 2080 series, the RTX 2070 features RT cores for ray-tracing, Tensor cores, DisplayPort 1.4a, and other features in common with the Turing architecture.

 

As NVIDIA didn’t send out RTX 2080 Founder’s Edition review samples and most NVIDIA AIB partners not interested in the (admittedly small) Linux gaming population, I ended up having to buy an RTX 2070 for Linux testing. The retail graphics card I ended up purchasing for the Linux RTX 2070 testing was the EVGA GeForce RTX 2070 XC GAMING (08G-P4-2172-KR). I went with this card simply as it was the cheapest (and closest to reference) model available on launch day. While the RTX 2070 cards are slated to start at $499 USD, this was the cheapest model I could find in stock and came in at $549 USD (or $608 for the fastest shipping and tax).

 

The RTX 2070 has a 175 Watt TDP and requires 6-pin and 8-pin PCI Express power connections.

 

The EVGA GeForce RTX 2070 XC GAMING matches the 1710MHz boost clock speed of the Founder’s Edition card and is aligned with the rest of the RTX 2070 specifications. The RTX 2070 XC GAMING features a dual fan cooler, which EVGA dubs iCX2 cooling and features an EVGA RGB logo.

 

 

EVGA only lists Windows 7 and Windows 10 as the supported operating systems for their GeForce RTX 2070 on their web-site but on the product packaging they do also mention Linux.

Source

Linux Scoop — Ubuntu MATE 18.04 LTS

Ubuntu MATE 18.04 LTS – See What’s New

Ubuntu MATE 18.04 LTS has been released and announced by Ubuntu MATE project. As part of official ubuntu flavor, this release using the latest MATE Desktop 1.20.1 as default desktop environment. Also introduces numerous improvements and new features, including better support for HiDPI displays, new desktop layouts, as well as support for indicators in all layouts by default.

Ubuntu MATE 18.04 LTS operating system received several improvements. Among these, we can mention the Caja file manager, which can now encrypt your most precious files, Marco window manager, which got hardware acceleration, MATE Dock Applet, which now features icon scrolling and matching, the Brisk Menu applications menu is now enabled by default and MATE Tweak, which now lets you toggle the HiDPI mode more easily.

For more informations you can read at Ubuntu MATE 18.04 LTS release announcements
Source

Linux Today – Ubuntu 18.10 (Cosmic Cuttlefish) released

Oct 18, 2018, 12:00

Codenamed “Cosmic Cuttlefish”, 18.10 continues Ubuntu’s proud tradition
of integrating the latest and greatest open source technologies into a
high-quality, easy-to-use Linux distribution. The team has been hard at
work through this cycle, introducing new features and fixing bugs.

The Ubuntu kernel has been updated to the 4.18 based Linux kernel,
our default toolchain has moved to gcc 8.2 with glibc 2.28, and we’ve
also updated to openssl 1.1.1 and gnutls 3.6.4 with TLS1.3 support.

Ubuntu Desktop 18.04 LTS brings a fresh look with the community-driven
Yaru theme replacing our long-serving Ambiance and Radiance themes. We
are shipping the latest GNOME 3.30, Firefox 63, LibreOffice 6.1.2, and
many others.

Ubuntu Server 18.10 includes the Rocky release of OpenStack including
the clustering enabled LXD 3.0, new network configuration via netplan.io,
and iteration on the next-generation fast server installer. Ubuntu Server
brings major updates to industry standard packages available on private
clouds, public clouds, containers or bare metal in your datacentre.

The newest Ubuntu Budgie, Kubuntu, Lubuntu, Ubuntu Kylin, Ubuntu MATE,
Ubuntu Studio, and Xubuntu are also being released today.

More details can be found for these at their individual release notes:

https://wiki.ubuntu.com/CosmicCuttlefish/ReleaseNotes#Official_flavours

Complete Story

Related Stories:

Source

How to test if your zabbix server receive data from zabbix client or not?

you have installed zabbix agent on your server. Process zabbix client is up and running but does zabbix server start to receive data from it?

Simplest way to this is to connect to your zabbix server and initiate zabbix_get command! With this command can get to see data from zabbix client.

zabbix_get – Zabbix get utility.



Syntax:

ram@zabbixserver:~$ zabbix_get -s IP_ZABBIX_CLIENT -k ZABBIX_ITEM

Where -s, –host <host name or IP>

Specify host name or IP address of a host.

-k, –key <item key>

Specify key of item to retrieve value for.
Test the connection between zabbix_server to client.

ram@zabbixserver:~$ zabbix_get -s 192.168.101.26 -k agent.ping

1

If u get output 1 means connection is ok and data is received from 192.168.101.26

ram@zabbixserver:~$ zabbix_get -s 192.168.101.26 -k agent.ping

zabbix_get [31561]: Get value error: cannot connect to [[192.168.101.26 ]:10050]: [111] Connection refused

server 192.168.101.26 but zabbix agent is not installed, not running or firewall is blocking or network problem !!
How to check agent version from zabbix server ?

Using zabbix_get command u can easily get agent version.

ram@zabbixserver:~$zabbix_get -s 192.168.101.26 -k agent.version

3.0.6

Get any information from client host without login to host server using zabbix_get command for example load average.

ram@zabbixserver:~$zabbix_get -s 192.168.101.26 -k “system.cpu.load[all,avg5]”

0.410000

Source

How to Install Seafile on Ubuntu 16.04 • LinuxCloudVPS Blog

19th October 2018

How to Install seafile on Ubuntu 16.04

installing seafile on ubuntu 16.04

SeaFile is an enterprise file hosting platform with high reliability and performance, there are Community Edition and Professional Edition. SeaFile Community Edition is an open source file storage system, it is an alternative to DropBox, we can synchronize the files between multiple computers or mobile devices using the Seafile client. In this tutorial, we will provide you with a step by step instruction on how to install SeaFile Community Edition on Ubuntu 16.04.

Prerequisites:

  • Ubuntu 16.04 with minimum 2GB of RAM
  • SSH access with root privileges

1. Log in to your server via SSH:

# ssh root@server_ip

Before starting with the SeaFile installation, it is encouraged to check that our system package database is up to date.

2. Update the system

# apt update
# apt upgrade

The installation requires a working LAMP, stack. If you don’t have a LAMP stack installed, you need to install it first

#apt install lamp-server^

3. Install dependencies

We need to install some dependencies prior to installing SeaFile Community Edition, run the following commands:

# apt install python2.7 libpython2.7 python-setuptools python-imaging python-ldap python-mysqldb python-memcache python-urllib3 python-pip

and run

# pip install boto

4. Install SeaFile

Let’s create a directory to store SeaFile core files.

# mkdir /opt/seafile
# cd /opt/seafile
# wget https://download.seadrive.org/seafile-server_6.3.4_x86-64.tar.gz
# tar -xzvf seafile-server_6.3.4_x86-64.tar.gz
# cd /opt/seafile/seafile-server-6.3.4

Let’s create a password for MySQL root user. If your MySQL root user already has a password, you can skip this step

# mysql_secure_installation

Now we have configured a password for MySQL root user, let’s proceed with the installation

# ./setup-seafile-mysql.sh

During the installation process, you will be asked for MySQL root password and a new password for Seafile database user.

root@rose:/opt/seafile/seafile-server-6.3.4# ./setup-seafile-mysql.sh
Checking python on this machine …
Checking python module: setuptools … Done.
Checking python module: python-imaging … Done.
Checking python module: python-mysqldb … Done.

—————————————————————–
This script will guide you to setup your seafile server using MySQL.
Make sure you have read seafile server manual at

https://github.com/haiwen/seafile/wiki

Press ENTER to continue
—————————————————————–

What is the name of the server? It will be displayed on the client.
3 – 15 letters or digits
[ server name ] seafile

What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server’s ip or domain ] 192.168.0.19

Where do you want to put your seafile data?
Please use a volume with enough free space
[ default “/opt/seafile/seafile-data” ]

Which port do you want to use for the seafile fileserver?
[ default “8082” ]

——————————————————-
Please choose a way to initialize seafile databases:
——————————————————-

[1] Create new ccnet/seafile/seahub databases
[2] Use existing ccnet/seafile/seahub databases

[ 1 or 2 ] 1

What is the host of mysql server?
[ default “localhost” ]

What is the port of mysql server?
[ default “3306” ]

What is the password of the mysql root user?
[ root password ]

verifying password of user root …
verifying password of user root … done

Enter the name for mysql user of seafile. It would be created if not exists.
[ default “seafile” ]

Enter the password for mysql user “seafile”:
[ password for seafile ]

Enter the database name for ccnet-server:
[ default “ccnet-db” ]

Enter the database name for seafile-server:
[ default “seafile-db” ]

Enter the database name for seahub:
[ default “seahub-db” ]

———————————
This is your configuration
———————————

server name: seafile
server ip/domain: 192.168.0.19

seafile data dir: /opt/seafile/seafile-data
fileserver port: 8082

database: create new
ccnet database: ccnet-db
seafile database: seafile-db
seahub database: seahub-db
database user: seafile

———————————
Press ENTER to continue, or Ctrl-C to abort
———————————

Generating ccnet configuration …

done
Successly create configuration dir /opt/seafile/ccnet.
Generating seafile configuration …

Done.
done
Generating seahub configuration …

—————————————-
Now creating seahub database tables …

—————————————-

creating seafile-server-latest symbolic link … done

—————————————————————–
Your seafile server configuration has been finished successfully.
—————————————————————–

run seafile server: ./seafile.sh { start | stop | restart }
run seahub server: ./seahub.sh { start | stop | restart }

—————————————————————–
If you are behind a firewall, remember to allow input/output of these tcp ports:
—————————————————————–

port of seafile fileserver: 8082
port of seahub: 8000

When problems occur, Refer to

https://github.com/haiwen/seafile/wiki

for information.

Once completed, you can start SeaFile and SeaHub:

# ./seafile.sh start
# ./seahub.sh start

When starting seahub for the first time, you will be asked for your email address and a password to create a new SeaFile admin

root@rose:/opt/seafile/seafile-server-6.3.4# ./seahub.sh start
LANG is not set in ENV, set to en_US.UTF-8
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …

—————————————-
It’s the first time you start the seafile server. Now let’s create the admin account
—————————————-

What is the email for the admin account?
[ admin email ] you@yourdomain.com

What is the password for the admin account?
[ admin password ]

Enter the password again:
[ admin password again ]

—————————————-
Successfully created seafile admin
—————————————-

Seahub is started

Done.

Now, you can access your new SeaFile installation at http://YOUR_IP_ADDRESS:8000 or http://yourdomainname.com:8000

install seafile ubuntu 16.04

5. Configure Apache

To access it without typing the port in the web browser, we need to create an apache virtual host and configure it as a reverse proxy. Apache module proxy_http is not enabled by default, and we need to enable it to run Apache as a reverse proxy.

# a2enmod proxy_http
# nano /etc/apache2/sites-available/yourdomain.com.conf

Add the following lines to the file

<VirtualHost *:80>
ServerName yourdomain.com
DocumentRoot /opt
Alias /media /opt/seafile/seahub/media
RewriteEngine On
<Location /media>
Require all granted
</Location>

ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp – [QSA,L]

SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
</VirtualHost>

Restart apache to apply the configuration changes

# systemctl restart apache2

Now, you can access your SeaFile installation at http://yourdomain.com

6. Create SystemD file

In the previous step, we ran seafile and seahub using the provided bash script. Let’s create systemd files to make it easier to manage the application.

# nano /etc/systemd/system/seafile.service
[Unit]
Description=Seafile hub
After=network.target seafile.service

[Service]
Type=forking
# change start to start-fastcgi if you want to run fastcgi
ExecStart=/opt/seafile/seafile-server-latest/seahub.sh start
ExecStop=/opt/seafile/seafile-server-latest/seahub.sh stop
User=www-data
Group=www-data

[Install]
WantedBy=multi-user.target

# nano /etc/systemd/system/seahub.service

We also need to change the permissions:

# chown -R www-data: /opt/seafile /tmp/seahub_cache
systemctl daemon-reload
systemctl restart seafile
systemctl restart seahub
systemctl enable seafile
systemctl enable seahub

If you want to access your SeaFile installation securely, you can install a free certificate from LetsEncrypt. Follow the steps below to enable HTTPS on your website.

apt-get install software-properties-common python-software-properties
add-apt-repository ppa:certbot/certbot
apt update
apt-get install python-certbot-apache
certbot

In the last command, you will be asked for your email address and the domain name you want to install a certificate to, and whether you want to redirect HTTP to HTTPS or not. Once finished, you can access your SeaFile installation at https://yourdomain.com

That is it, SeaFile has been successfully installed on your Ubuntu 16.04 server.

install seafile on ubuntu 16.04Of course, you don’t have to Install Seafile on Ubuntu 16.04, if you use one of our Optimized Ubuntu Hosting plans, in which case you can simply ask our expert Linux admins to install Seafile 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 Install Seafile on Ubuntu 16.04, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Be the first to write a comment.

Source

Galera Cluster MariaDB Configuration On CentOS 7

Galera cluster is a true multi-master MySQL cluster using synchronous replication. It allows for any of the nodes to be used as a master or all of them as well as providing automatic node joining and node removal. The multi-master configuration is very different from the typical master-slave configuration done with MySQL servers and can provide much more load balancing and fault tolerance. This guide will help you setup a basic Galera Cluster with MariaDB and CentOS 7. We will configure 3 nodes as that is the minimum required for redundancy, if you were to configure a two-node cluster, if one was to leave the cluster ungracefully the second node would cease to function as well.

Galera And MariaDB Installation

First you are going to want to install MariaDB, version 10.1, on each of the three nodes.

Add the repository to each of the 3 nodes

nano /etc/yum.repos.d/MariaDB10.1.repo

Insert the following repository information and save the file

# MariaDB 10.1 CentOS repository list – created 2017-08-10 00:39 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install the packages from yum, Galera is included when these are installed

yum -y install MariaDB-server MariaDB-client MariaDB-common

Once yum has completed installing finish the installation by running

mysql_secure_installation

We are going to use rsync to perform the replication so install that as well, we will also use lsof to make sure the server is bound to the correct ports:

yum install -y rsync lsof

Make sure each of the MariaDB instances starts on reboot

systemctl enable mariadb

Galera Master Node Configuration

After installing MariaDB on the master node edit the server.cnf file

nano /etc/my.cnf.d/server.cnf

You will want to insert the following under the [galera] section

binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
bind-address=0.0.0.0
wsrep_on=ON
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_cluster_address=”gcomm://192.168.1.100,192.168.1.101,192.168.1.102″

## Galera Cluster Configuration
wsrep_cluster_name=”cluster1″
## Galera Synchronization Configuration
wsrep_sst_method=rsync
## Galera Node Configuration
wsrep_node_address=”192.168.1.100″
wsrep_node_name=”centos7-vm1″

wsrep_on=ON – Setting this to ON enables replication. In MariaDB 10.1, replication is turned off as a default, so this needs to be explicitly stated.
wsrep_cluster_address – This is where we specify each of the IP addresses for the nodes delineated by a comma. The primary node is always the first IP address, this this case its 192.168.1.100
wsrep_cluster_name – Is the name of the cluster, you can name this anything you want
wsrep_node_address – Is the IP address of the node you are configuring
wsrep_node_name – This is the name of the node you are currently configuring, it can be named anything you want, it just needs to be unique.

Under the [mysqld] section add a log location (if you don’t, it will log to the main syslog)

log_error=/var/log/mariadb.log

Once you have finished editing and saved server.cnf, go ahead and create the error log

touch /var/log/mariadb.log

Give the error log the appropriate permissions:

chown mysql:mysql /var/log/mariadb.log

You can now start the new master node by typing the following

galera_new_cluster

After you have started it, make sure it has bound to the correct ports using lsof

Port 4567 is for replication traffic:

# lsof -i:4567
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mysqld 4121 mysql 11u IPv4 34770 0t0 TCP *:tram (LISTEN)

Port 3306 is for MySQL client connections:

# lsof -i:3306
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mysqld 4121 mysql 26u IPv4 34787 0t0 TCP *:mysql (LISTEN)

You will want to add the the ports to the firewall, in this case we are using firewalld

firewall-cmd –zone=public –add-service=mysql –permanent
firewall-cmd –zone=public –add-port=3306/tcp –permanent
firewall-cmd –zone=public –add-port=4567/tcp –permanent
firewall-cmd –zone=public –add-port=4567/udp –permanent

Then reload the firewall:

firewall-cmd –reload

Make sure the cluster is running my connecting to MariaDB on the primary node

mysql -uroot -p

Then check the cluster size

MariaDB [(none)]> SHOW STATUS LIKE ‘wsrep_cluster_size’;
+——————–+——-+
| Variable_name | Value |
+——————–+——-+
| wsrep_cluster_size | 1 |
+——————–+——-+

It should say 1 at this point because only the primary node is connected.

Adding Additional Nodes To Galera

After installing MariaDB on the addtional nodes, you will want to copy the [galera] section of /etc/my.cnf.d/server.cnf that We created earlier and insert it into the server.cnf on each of the additional nodes. The only lines that will each on each of the additional nodes will be the the following:

wsrep_node_address=”192.168.1.100″
wsrep_node_name=”centos7-vm1″

The wsrep_node_address will be the IP address of the node you are configuring and the wsrep_node_name will be the name of that node.

After you have finished each of the servers configuration files, you can start them normally

systemctl start mariadb

As each node connects to the cluster you should see the wsrep_cluster_size increase:

MariaDB [(none)]> SHOW STATUS LIKE ‘wsrep_cluster_size’;
+——————–+——-+
| Variable_name | Value |
+——————–+——-+
| wsrep_cluster_size | 3 |
+——————–+——-+

You will also see nodes join in the log:

WSREP: Member 1.0 (centos7-vm2) synced with group.

The logs will also indicate when a node as left the group:

WSREP: forgetting 96a5eca6 (tcp://192.168.1.101:4567)
WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 0, memb_num = 2

You can view the full configuration of Galera by typing the following:

MariaDB [(none)]> show status like ‘wsrep%’;
+——————————+——————————————————–+
| Variable_name | Value |
+——————————+——————————————————–+
| wsrep_apply_oooe | 0.000000 |
| wsrep_apply_oool | 0.000000 |
| wsrep_apply_window | 1.000000 |
| wsrep_causal_reads | 0 |
| wsrep_cert_deps_distance | 1.000000 |
| wsrep_cert_index_size | 2 |
| wsrep_cert_interval | 0.000000 |
| wsrep_cluster_conf_id | 3 |
| wsrep_cluster_size | 3 |
| wsrep_cluster_state_uuid | 6173c852-7ca0-11e7-8d8e-0e2551d18de1 |
| wsrep_cluster_status | Primary |
| wsrep_commit_oooe | 0.000000 |
| wsrep_commit_oool | 0.000000 |
| wsrep_commit_window | 1.000000 |
| wsrep_connected | ON |
| wsrep_desync_count | 0 |
| wsrep_evs_delayed | |
| wsrep_evs_evict_list | |
| wsrep_evs_repl_latency | 0/0/0/0/0 |
| wsrep_evs_state | OPERATIONAL |
| wsrep_flow_control_paused | 0.000000 |
| wsrep_flow_control_paused_ns | 0 |
| wsrep_flow_control_recv | 0 |
| wsrep_flow_control_sent | 0 |
| wsrep_gcomm_uuid | 87a5891a-7ca0-11e7-a3bb-fe31f8409645 |
| wsrep_incoming_addresses | 192.168.1.101:3306,192.168.1.7:3306,192.168.1.100:3306 |
| wsrep_last_committed | 2 |
| wsrep_local_bf_aborts | 0 |
| wsrep_local_cached_downto | 1 |
| wsrep_local_cert_failures | 0 |
| wsrep_local_commits | 0 |
| wsrep_local_index | 1 |
| wsrep_local_recv_queue | 0 |
| wsrep_local_recv_queue_avg | 0.125000 |
| wsrep_local_recv_queue_max | 2 |
| wsrep_local_recv_queue_min | 0 |
| wsrep_local_replays | 0 |
| wsrep_local_send_queue | 0 |
| wsrep_local_send_queue_avg | 0.000000 |
| wsrep_local_send_queue_max | 1 |
| wsrep_local_send_queue_min | 0 |
| wsrep_local_state | 4 |
| wsrep_local_state_comment | Synced |
| wsrep_local_state_uuid | 6173c852-7ca0-11e7-8d8e-0e2551d18de1 |
| wsrep_protocol_version | 7 |
| wsrep_provider_name | Galera |
| wsrep_provider_vendor | Codership Oy <[email protected]> |
| wsrep_provider_version | 25.3.20(r3703) |
| wsrep_ready | ON |
| wsrep_received | 8 |
| wsrep_received_bytes | 1169 |
| wsrep_repl_data_bytes | 359 |
| wsrep_repl_keys | 1 |
| wsrep_repl_keys_bytes | 31 |
| wsrep_repl_other_bytes | 0 |
| wsrep_replicated | 1 |
| wsrep_replicated_bytes | 454 |
| wsrep_thread_count | 2 |
+——————————+——————————————————–+

Testing Replication On The Galera Cluster

First access one of the nodes MariaDB installs

# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or g.
Your MariaDB connection id is 7
Server version: 10.1.25-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.

MariaDB [(none)]>

Then create a new database

MariaDB [(none)]> create database galera_test;
Query OK, 1 row affected (0.01 sec)

Then check to ensure it was replicated to the other nodes

MariaDB [(none)]> show databases;
+——————–+
| Database |
+——————–+
| galera_test |
| information_schema |
| mysql |
| performance_schema |
+——————–+
4 rows in set (0.00 sec)

You should see the ‘galera_test’ database appear on the other nodes as well. That is it for the inital configuration of the MariaDB Galera Cluster on CentOS 7

Aug 9, 2017LinuxAdmin.io

Source

WP2Social Auto Publish Powered By : XYZScripts.com