How to Install KeePass in Linux Mint / Ubuntu

Technically, we can install KeePass through Ubuntu Software…

…or the Linux Mint Software Manager.

However, if we install KeePass through these channels, we won’t be getting the very latest version. And where’s the fun in that?

Add the KeePass repository

For the latest and greatest KeePass installation on Linux, we must add a repository. We just need to fire up a terminal, with Ctrl+Alt+T, and type:

sudo apt-add-repository ppa:jtaylor/keepass -y

Just a reminder for Linux newcomers, when we use the “sudo” command, and we enter our password, nothing will show as we type, no stars or dots or anything. We just enter the password and hit Enter.

For more information about Linux terminal commands, check out our guide:

After successfully adding the repository, we need to do an update with:

sudo apt-get update

Install KeePass

Once the update is done, and we had no error messages, we type the following command to install KeePass:

sudo apt-get install keepass2 -y

Once we finish with the installation, we will find KeePass at the Mint menu, in the Accessories section.

In Ubuntu, we just need to search for it on the Dash.

Source: https://www.pcsteps.com/3544-install-keepass-linux-mint-ubuntu/

Advertisements

Top 25 things to do after installing Linux Mint 18 (Sarah) to make as user friendly

Linux Mint 18 (Sarah) was out on June 30, 2016. Fresh installation of Linux Mint 18 (Sarah) comes with plain systems, it’s not enough to make your Desktop as user friendly. We have to tweak & adjust some settings and install additional software’s to make your Desktop more easier as well as better for daily use. Assume you have already installed Linux Mint 18 (Sarah). If, no install right now Linux Mint 18 (Sarah).

1) Check for updates

Make sure your system upto date for better performance. How to check and do ? simply fire below command on your terminal to update your system packages to latest version. It will ask you to confirm for update, here you can see how much MB/KB going to upgrade, its purely depends on your system packages which you have installed.

[Updating system packages to latest version]
$ sudo apt-get update && sudo apt-get upgrade

Alternatively we can do via GUI by navigating, Menu >> Search Update Manager >> Open Update manager. Here you can see the MintUpdate packages. You will see list of available updates and hit Install Update button to install the updates. It will ask you to enter the sudo password to perform the update.

2) Install themes, extensions, desklets (desktop widgets) and applet indicators

Linux Mint is better then Ubuntu ? How ? Because Linux Mint having more & more Themes, extensions, desklets (desktop widgets) and applet indicators is available by default in System Settings simply navigate and install then feel the desktop experience. If you are feeling it’s not enough, you can get more by clicking Get more online Button.
top-things-to-do-on-linuxmint-18-sarah-2

3) Install Linux Graphics Drivers

To get more & better performance from your Linux Mint box, you should install appropriate graphics drivers which will help you to run your environment smooth without any issues. Are you gamer ? then no other option, because without proper graphics drivers you can’t run any games on your system. You can done this by navigating System Settings >> Administration >> Device Drivers.
top-things-to-do-on-linuxmint-18-sarah-3

4) Install old Mint wallpapers

Every release of Linux Mint comes with a new set of wallpapers. Still you can install old wallpapers by running below command on your terminal.

[Install old Mint wallpapers]
$ sudo apt-get install mint-backgrounds-*

5) Install Icon Theme

Verity of Icon Theme is available for Linux Desktop, Choose the desired Icon Theme from below link for your Desktop and make your Desktop more elegant.

6) Install GTK Theme

Bunch of Icon Theme is available for Linux Desktop, Choose the desired GTK Theme from below link for your Desktop and make your Desktop more elegant.

top-things-to-do-on-linuxmint-18-sarah-6

7) Install Media Codecs

Entertainment is one of the important things for everybody now a days, multimedia codecs are included in Linux Mint 18 default Repository. So, it will automatically installed by default. Even though you can recheck by running below command.

[Install old Mint wallpapers]
$ sudo apt-get install mint-meta-codecs

8) Set Google Search as default on Firefox

As you notice that the default search engine in Firefox is Yahoo. Google Search engine is not available in Firefox by default also not even listed there, We can enable it by visiting Mozilla Add-on page. Just click on Add to Firefox button to add it. Then click the Plus icon on search box and click Google Default Search, Finally change the Search Engine here on the drop down from Yahoo to Google.
top-things-to-do-on-linuxmint-18-sarah-8

9) Install Flash Player

By default Flash player & Java Applet comes with Mint Repository so no need to install those on Firefox but still we need to install Pepper based flash player for Chromium browser. It will download the pepper flash player from Google Chrome browser and put it inside Chromium.

[Install the pepper flash player for Chromium]
$ sudo apt-get install pepperflashplugin-nonfree

[If it fails to download, run below command]
$ sudo dpkg-reconfigure pepperflashplugin-nonfree

10) Install VLC Media Player

VLC media player (commonly known as VLC) is a portable, modern, powerful, free and open-source, cross-platform multimedia player, framework and streaming media server developed by VideoLAN project. VLC is available for all kind of platform like desktop operating systems (Linux, Windows & OS X) & mobile platform (Android, iPad, iPhone, and iPod Touch). VLC media player supports many audio and video file formats & compression methods including DVD-Video, video CD and streaming protocols.

[Install VLC Media Player]
$ sudo apt-get install vlc browser-plugin-vlc

11) Install Clementine Audio Player

Clementine is a cross-platform free and open source modern music player and library organizer. It is inspired by Amarok 1.4 to the Qt 4 framework and focusing on a fast and easy-to-use interface for searching and playing your music.

[Install Clementine Audio Player]
$ sudo apt-get install clementine

12) Install Inkscape Image Editor

Inkscape is a drawing and painting tool similar to Illustrator, CorelDraw, Xara X & Photoshop. Inkscape is 100% open source and available to everyone in the world. Inkscape is multi-platform available for Linux, Windows & Mac.

[Install Inkscape Image Editor]
$ sudo apt-get install inkscape

13) Install VirtualBox

VirtualBox is an open source cross-platform virtualization software for x86 architecture, Which was developed by Oracle. VirtualBox is an amazing software which have lot of features compare with other virtualization software such as VMware,etc.., and still development team hardly working on virtualbox to improve the stability.

14) Install QBittorrent Client

qBittorrent is free and open source cross platform bittorrent client which is alternative for µtorrent, Which will support all the major Operating Systems (Linux, windows & Mac).

[Install QBittorrent Client]
$ sudo apt-get install qbittorrent

15) Install Aria2 Download Manager

aria2 is a Free, open source, lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink. aria2 can be manipulated via built-in JSON-RPC and XML-RPC interfaces. aria2 automatically validates chunks of data while downloading a file. It can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth. By default all the Linux Distribution included aria2, so we can install easily from official repository.

[Install Aria2 Download Manager]
$ sudo apt-get install aria2

16) Install Mozilla Thunderbird

Mozilla Thunderbird is a free, open source, cross-platform feature rich and modern email & Chat client developed by the Mozilla Foundation. As per Wikipedia page info, Thunderbird 1.0 get downloaded 1,000,000 times within 10 days. Thunderbird is a free email application that’s easy to set up and customize – and it’s loaded with great features also you can add more features via add-on. Thunderbird makes email better for you, bringing together speed, privacy and the latest technologies.

[Install Mozilla Thunderbird]
$ sudo apt-get install thunderbird

17) Install Skype

skype is most popular application which is used to make a call over the Internet as FREE of cost. Skype to Skype calls & message completely FREE and Skype to Landline and phone low calling rate compare with mobile phones. Skype Technologies S.A (Microsoft Corporation) announced the new release of Skype 4.3 for Linux on June 18th 2014.

18) Install Dropbox

Dropbox is a file hosting service, that offers cloud storage and real-time file synchronization. Dropbox automatically creates a folder on your computer under (/home/username/Dropbox) while installing, After that it will synchronize your data from local PC to your Dropbox & Dropbox to your local PC. So, you can access your content (Images, documents, etc..,) remotely using your Dropbox account. You can install Dropbox Desktop client to more than one PC.

19) Install ownCloud

Owncloud is an cloud based storage which was designed especially for privacy & security, How ? We can install in our organization and maintain ourself so, nobody can read ours. Say for example if you stored your content to third party such as (free cloud storage) we don’t know its safe and secure. owncloud allow user’s to sync and share the files like dropbox and google drive. Its a open-source software, you can install and create your own owncloud storage system using owncloud software and manage all your company data in cloud and access anywhere. Its nice user interface and everybody love owncloud.

20) Install punch of Apps

Mint offers wide range of Apps which will help us to install all required Application/software based on our requirements to run day to day activity. You can done this through Software Manager.

21) Install more Browsers

Web browser is important one for computer, we can’t do anything without web browser such as browsing, checking mails, accessing bank account, etc.,. Follow below steps to install more browsers on Ubuntu.

22) Install other Desktop Environments

Initially you had installed a different desktop environment (In my case i have installed Cinnamon) and want to install other desktop environment such as Gnome, kde, xfce, lxde or mate try the below commands.

23) Install JAVA & openJDK

JAVA is mandatory to perform/run certain program on Linux Box. We can install it using below article link.

24) install Synaptic Package Manager

If you are not familiar in command line, i will advise you to install Install Synaptic Package Manager which will help you to install, remove, update packages with GUI.

$ sudo apt-get install synaptic

25) Install BleachBit (System Cleaner)

BleachBit is a free, open-source and easy to use disk space cleaner & privacy manager, not only clearing disk space apart from that it will Free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn’t know was there. Designed to work with Linux and Windows systems also clean a thousand applications such as Firefox, Internet Explorer, Adobe Flash, Google Chrome, Opera, Safari,and more.

Now, you will feel, your Linux Mint 18 (Sarah) box become user friendly. What you are thinking ? Share your valuable commands in our comment section to improve our website quality…Stay tune with 2daygeek for latest LINUX GEEKS..)

 https://www.2daygeek.com/top-25-things-to-do-after-installing-linuxmint-18-sarah/#

Safest way to clean up boot partition – Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 

It will shows the list like below:

3.19.0-64-generic

2. Remove the OLD kernels

2.a. List the old kernel

$ sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`

You will get the list of images something like below:

linux-image-3.19.0-25-generic
linux-image-3.19.0-56-generic
linux-image-3.19.0-58-generic
linux-image-3.19.0-59-generic
linux-image-3.19.0-61-generic
linux-image-3.19.0-65-generic
linux-image-extra-3.19.0-25-generic
linux-image-extra-3.19.0-56-generic
linux-image-extra-3.19.0-58-generic
linux-image-extra-3.19.0-59-generic
linux-image-extra-3.19.0-61-generic

2.b. Now its time to remove old kernel one by one as

$ sudo apt-get purge linux-image-3.19.0-25-generic
$ sudo apt-get purge linux-image-3.19.0-56-generic
$ sudo apt-get purge linux-image-3.19.0-58-generic
$ sudo apt-get purge linux-image-3.19.0-59-generic
$ sudo apt-get purge linux-image-3.19.0-61-generic
$ sudo apt-get purge linux-image-3.19.0-65-generic

When you’re done removing the older kernels, you can run this to remove ever packages you won’t need anymore:

$ sudo apt-get autoremove

And finally you can run this to update grub kernel list:

$ sudo update-grub

Case II: Can’t Use apt i.e. /boot is 100% full

NOTE: this is only if you can’t use apt to clean up due to a 100% full /boot

1. Get the list of kernel images

Get the list of kernel images and determine what you can do without. This command will show installed kernels except the currently running one

$ sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`

You will get the list of images somethign like below:

linux-image-3.19.0-25-generic
linux-image-3.19.0-56-generic
linux-image-3.19.0-58-generic
linux-image-3.19.0-59-generic
linux-image-3.19.0-61-generic
linux-image-3.19.0-65-generic
linux-image-extra-3.19.0-25-generic
linux-image-extra-3.19.0-56-generic
linux-image-extra-3.19.0-58-generic
linux-image-extra-3.19.0-59-generic
linux-image-extra-3.19.0-61-generic

2. Prepare Delete

Craft a command to delete all files in /boot for kernels that don’t matter to you using brace expansion to keep you sane. Remember to exclude the current and two newest kernel images. From above Example, it’s

sudo rm -rf /boot/*-3.19.0-{25,56,58,59,61,65}-*

3. Clean up what’s making apt grumpy about a partial install.

sudo apt-get -f install

4. Autoremove

Finally, autoremove to clear out the old kernel image packages that have been orphaned by the manual boot clean.

sudo apt-get autoremove

5. Update Grub

sudo update-grub

6. Now you can update, install packages

sudo apt-get update

https://gist.github.com/ipbastola/2760cfc28be62a5ee10036851c654600Source: 

MooseFS open-source version

MooseFS (GPLv2) is an open-source version of MooseFS targeting open-source community. It is a natural continuation of previous MooseFS editions.

MooseFS is a key system for Gemius / Core Technology in-house operations. We currently store over 4.9 PB of data, processing more than 200 000 events per second, every second, 24/7. The system is so crucial, that we do not allow anyone outside of our own development team to make changes in the structure of the code used by us.

Therefore our philosophy is to give this superb tool to everyone who would like to use it. We have never aimed to create a developers community, although your ideas, bug reports and wishes are carefully taken into account by our developers. We look forward to your comments and patches, but it does not necessarily mean we will include those

https://moosefs.com/about/#advantages

https://www.youtube.com/watch?time_continue=112&v=eZs2Z9fCNqs

Linux mdadm Raid with Disk become removed

https://www.linuxquestions.org/questions/linux-server-73/mdadm-error-replacing-a-failed-disk-909577/

Had a similar situation:

Code:

# mdadm -D /dev/md3
/dev/md3:
        Version : 0.90
  Creation Time : Fri Dec 10 08:53:53 2010
     Raid Level : raid5
  Used Dev Size : 1953511936 (1863.01 GiB 2000.40 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 3
    Persistence : Superblock is persistent

    Update Time : Tue Dec  2 11:50:08 2014
          State : active, degraded, Not Started 
 Active Devices : 5
Working Devices : 6
 Failed Devices : 0
  Spare Devices : 1

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : 3acc64f0:1c2331fc:10a614af:c55ef703
         Events : 0.164288

    Number   Major   Minor   RaidDevice State
       0       8       81        0      active sync   /dev/sdf1
       1       8      177        1      active sync   /dev/sdl1
       2       0        0        2      removed
       3       8      145        3      active sync   /dev/sdj1
       4       8       65        4      active sync   /dev/sde1
       5       8       49        5      active sync   /dev/sdd1

       6       8      161        -      spare   /dev/sdk1

solved with:

Code:
mdadm -S /dev/md3
mdadm --assemble /dev/md3 /dev/sd[fljed]1 --force
mdadm --manage /dev/md3 --add /dev/sdk1

How to Install and Configure OTRS 6 on CentOS 7

OTRS, also known as “Open-source Ticket Request System” is a free and open source web-based ticketing system.

Source: https://www.vultr.com/docs/how-to-install-and-configure-otrs-on-centos-7

In this tutorial, we will install and configure OTRS 6 on CentOS 7.

Prerequisites

  • A newly deployed Vultr CentOS 7 server instance.
  • A non-root user with sudo privileges setup on your server.

Getting Started

Before starting, you will need to install EPEL repo and other required packages to your system. You can install all of them by running the following command:

sudo yum install epel-release wget unzip -y

Once the installation is completed, update your system to the latest version by running the following command:

sudo yum update -y

Next, restart your system to apply all the updates:

sudo shutdown -r now

Install Apache and MariaDB

Next, you will need to install Apache web server and MariaDB to your server. You can install them by running the following command:

sudo yum install httpd mariadb-server -y

Once the installation is complete, start Apache and MariaDB server and enable them to start on boot time with the following command:

sudo systemctl start httpd
sudo systemctl start mariadb
sudo systemctl enable httpd
sudo systemctl enable mariadb

Configure MariaDB

After installing MariaDB, you will need to create a database for OTRS.

First, log in to MySQL shell with the following command:

mysql -u root -p

Next, create a database for OTRS with the following command:

MariaDB [(none)]> CREATE DATABASE otrs_db;

Next, create a user for OTRS and grant all privileges to OTRS database with the following command:

MariaDB [(none)]> GRANT ALL PRIVILEGES ON otrs_db.* TO 'otrs'@'localhost' IDENTIFIED BY 'password';

Next, Flush the privileges with the following command:

MariaDB [(none)]> FLUSH PRIVILEGES;

Exit from the MySQL shell:

MariaDB [(none)]> \q

Once the MariaDB is configured, you will need to change the default MySQL settings in my.cnf file. You can do this by editing my.cnf file as follows;

sudo nano /etc/my.cnf

Add the following lines under [mysqld] section:

max_allowed_packet=30M
query_cache_size=36M
innodb_log_file_size=256M

Save the file then restart MariaDB service to apply these changes:

rm -f /var/lib/mysql/ib_logfile*
sudo systemctl restart mariadb

Install and Configure OTRS

OTRS is written in Perl and uses number of Perl modules. So you will need to install all the required Perl module to your system. You can install all of them by running the following command:

sudo yum install bash-completion "perl(Archive::Zip)" "perl(Crypt::SSLeay)" "perl(IO::Socket::SSL)" "perl(LWP::UserAgent)" "perl(Net::DNS)" "perl(Net::LDAP)" "perl(Template)" "perl(XML::LibXML)" "perl(XML::LibXSLT)" "perl(XML::Parser)" "perl(YAML::XS)" "perl(YAML::XS)" "perl(Authen::NTLM)" "perl(Mail::IMAPClient)" "perl(JSON::XS)" "perl(Encode::HanExtra)"  "perl(DBD::Pg)" "perl(Crypt::Eksblowfish::Bcrypt)" perl-core procmail -y    

Once all the modules are installed, you will need to download the latest version of the OTRS RPM package for CentOS from their website. To do so, run the following command:

wget http://ftp.otrs.org/pub/otrs/RPMS/rhel/7/......rpm

Next, install the OTRS with the following command:

sudo rpm -ivh otrs-.....noarch.rpm

Once OTRS is installed, you can check the missing modules by running the following script:

sudo /opt/otrs/bin/otrs.CheckModules.pl

Next, you will need to copy OTRS default configuration file and make some changes inside it. You can do this by running the following command:

cd /opt/otrs/Kernel
sudo cp Config.pm.dist Config.pm
sudo nano Config.pm

Change the following lines:

# The database name
$Self->{Database} = 'otrs_db';

# The database user
$Self->{DatabaseUser} = 'otrs';

# The password of database user. You also can use bin/otrs.Console.pl Maint::Database::PasswordCrypt
# for crypted passwords
$Self->{DatabasePw} = 'password';

Save and close the file when you are finished.

Next, enable MySQL support by editing apache2-perl-startup.pl file:

sudo nano /opt/otrs/scripts/apache2-perl-startup.pl

Change the file as shown below:

# enable this if you use mysql
use DBD::mysql ();
use Kernel::System::DB::mysql;

Save and close the file, then restart Apache service to apply all the changes:

sudo systemctl restart httpd

Access OTRS Web Interface

Before starting, you will need to allow port 80 through firewall. You can do this by running the following command:

sudo firewall-cmd --permanent --zone=public --add-port=80/tcp
sudo firewall-cmd --reload

Once the firewall is configured, open your web browser and type the URL http://your-server-ip/otrs/installer.pl and complete the required steps to finish the installation.

Once the installation is complete, start the OTRS daemon and activate its cronjob with the following command:

sudo su - otrs -c "/opt/otrs/bin/otrs.Daemon.pl start"
sudo su - otrs -c "/opt/otrs/bin/Cron.sh start"

TIP: How to reset root@localhost password on OTRS 6

To reset the root@localhost on OTRS 5 it´s necessary to get access to the server’s shell and execute the following command:

su -c "/opt/otrs/bin/otrs.Console.pl Admin::User::SetPassword root@localhost 123456" -s /bin/bash otrs

Now the new root password is 123456. This command is also used to reset the password of any other Agent, just overwrite “root@localhost” with the Agent’s login.

su -c "/opt/otrs/bin/otrs.Console.pl Admin::User::SetPassword AgentLogin 123456" -s /bin/bash otrs