Archive: February, 2016

rename multiple files with mmv (mass rename of files)

February 26, 2016 by Linux Guru

Filed under Linux

Last modified July 15, 2016

rename multiple files with mmv (mass rename of files) Running rename command with find on large files and make it faster #find . -name ‘*.jpeg’ | xargs rename ‘.jpeg’ .bak OR install mmv rpm #wget ftp://rpmfind.net/linux/fedora/linux/releases/21/Everything/x86_64/os/Packages/m/mmv-1.01b-22.fc21.x86_64.rpm #rpm -ivh mmv-1.01b-22.fc21.x86_64.rpm #mmv \*.jpeg \#1.bak Use following command:- find . -name “*.jpeg” -exec sh -c ‘mmv “$1” “${1%.jpeg}.bak”‘ _ {} \; Command Breakdown: ‘.‘ => search path starting …

Customize motd on Linux

February 26, 2016 by Linux Guru

Filed under Linux, Unix

Last modified July 15, 2016

Customize motd on Linux Customize your motd (Message Of The Day) message to display the output of one or more scripts. This uses the update-motd package, which updates the motd message when run. Create new file using vi and add following lines  #vi /etc/profile.d/motd ———————–START_FILE————————————- #!/bin/bash HOSTNAME=`uname -n` KERNEL=`uname -r` CPU=`uname -p` ARCH=`uname -m` echo “$R#===================================================#” echo  ”       $W Welcome $B $USER $W to $B …

Setup Mysql Database for Bugzilla

February 5, 2016 by S4

Filed under Database, MySQL

Last modified July 15, 2016

Setup Mysql Database for Bugzilla You need MySQL version 5.0.15 or higher. It’s possible to test which version of MySQL you have installed with: mysql -V 1.1 Installing 1.1.1 Windows Download the MySQL 32-bit or 64-bit MSI installer from the MySQL website (~28 MB). MySQL has a standard Windows installer. It’s ok to select a Typical MySQL install (the default). The rest of this documentation …

Bugzilla Installation on Linux

February 5, 2016 by S4

Filed under Linux, Unix

Last modified July 15, 2016

Bugzilla Installation on Linux 1.1.1 Linux Some Linux distributions include Bugzilla and its dependencies in their package management systems. If you have root access, installing Bugzilla on any Linux system could be as simple as finding the Bugzilla package in the package management application and installing it. There may be a small bit of additional configuration required. If you are installing your machine from scratch, …

Bugzilla Installation on Ubuntu

February 5, 2016 by S4

Filed under Linux, Unix

Last modified July 15, 2016

Bugzilla Installation on Ubuntu 1.1 Quick Start (Ubuntu Linux 14.04) This quick start guide makes installing Bugzilla as simple as possible for those who are able to choose their environment. It creates a system using Ubuntu Linux 14.04 LTS, Apache and MySQL, and installs Bugzilla as the default home page. It requires a little familiarity with Linux and the command line. 1.1.1 Obtain Your Hardware …

Using Tomcat Reload Features To Speed Up Development

February 4, 2016 by Linux Guru

Filed under Linux, logs

Last modified July 15, 2016

Using Tomcat Reload Features To Speed Up Development Hot Reload Via Context Settings In detail-oriented stages of development, such as optimization, it is often necessary to make many small changes, some of which are merely tests of a variety of methods by which a single feature could be coded.  In this kind of environment, manually triggering every reload via the Manager application is not feasible …

know the all process information in linux

February 4, 2016 by Linux Guru

Filed under Linux

Last modified July 15, 2016

know the all process information in linux Use following command on linux server # service –status-all

max_connections at AWS RDS MySQL Instance Sizes

February 4, 2016 by Linux Guru

Filed under AWS, Database, MySQL

Last modified July 15, 2016

max_connections at AWS RDS MySQL Instance Sizes This chart shows the max_connections limit, set by AWS, at various MySQL RDS instance sizes. t2.micro 66 t2.small 150 m3.medium 296 t2.medium 312 M3.large 609 t2.large 648 M4.large 648 M3.xlarge 1237 R3.large 1258 M4.xlarge 1320 M2.xlarge 1412 M3.2xlarge 2492 R3.xlarge 2540 AWS sets the MySQL max_connections system variable according to the size of the RDS instance.  max_connections is the …

Increase the maximum number of simultaneous users to log in to linux server using ssh.

February 4, 2016 by Linux Guru

Filed under AWS, Linux

Last modified July 15, 2016

Increase the maximum number of simultaneous users to log in to linux server using ssh Need to change default values in sshd_conf file. Need root access before change # /usr/sbin/sshd -T | grep -i max maxauthtries 6 maxsessions 10 clientalivecountmax 3 maxstartups 10:30:100 updating sshd_conf file #vi /etc/ssh/sshd_config MaxSessions 50 maxstartups 50 reloading sshd service #service sshd reload; After changing values recheck #/usr/sbin/sshd -T | …