Skip to main content

Posts

Showing posts from August, 2015

Postgresql Installation

check if yum repo contains desird packages ------------------------------------------- yum list all | grep -i postgres [root@simba ~]# yum list all | grep -i postgres postgresql.x86_64                     8.4.13-1.el6_3              @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4 postgresql-contrib.x86_64             8.4.13-1.el6_3              @localyumserver postgresql-devel.x86_64               8.4.13-1.el6_3              @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4 postgresql-docs.x86_64          ...

Crearting YUM Repositroy

Setup Local Yum Repository on CentOS/RHEL 6.4  Today we are going to learn about setting up local yum repository on CentOS 6.4 and other RPM based distributions. Why Local repository is important? As a System administrator, you have to install software, security updates and fixes often in all systems. Obviously, it will consume more Internet bandwidth.  So instead of downloading and installing applications every time in all systems from Internet repositories of Linux distribution, it is good idea to save all applications in a local server in your LAN and distribute them to the other Linux systems when required. Having a local repository is really fast and efficient way, because all required applications will be transferred over the fast LAN connection from your local server. So that it will save the Internet bandwidth and ultimately it reduces the annual cost of Internet. In this tutorial I use two systems as described below: Yum Server OS ...

Install MariaDB on a CentOS 7 / RHEL 7 server

MariaDB An enhanced, drop-in replacement for MySQL server. RHEL/CentOS v7.x shifts from MySQL to MariaDB for its database management system needs. Type the following yum command to install MariaDB server: sudo yum install mariadb-server mariadb mariadb-libs To start mariadb, type: sudo systemctl start mariadb.service To make sure the mariadb service start automatically at the boot time, enter: sudo systemctl enable mariadb.service Sample outputs: ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service' To stop/restart and disable mariadb service use the following commands: sudo systemctl stop mariadb.service #<-- Stop mariadb server sudo systemctl restart mariadb.service #<-- Restart mariadb server sudo systemctl disable mariadb.service #<-- Disable mariadb server sudo systemctl is-active mariadb.service #<-- Is mariadb server running? Securing MariaDB Type the following comm...

How to install .deb file in ubuntu using terminal?

Packages are manually installed via the dpkg command (Debian Package Management System). dpkg is the backend to commands like apt-get and aptitude , which in turn are the backend for GUI install apps like the Software Center and Synaptic. Something along the lines of: dpkg --> apt-get , aptitude --> Synaptic, Software Center The easiest ways to install a package would be, first, the GUI apps (Synaptic, Software Center, etc..), followed by the terminal commands apt-get and aptitude that add a very nice user friendly approach to the backend dpkg. Since dpkg is the base, you can use it to install packaged directly from the command line. DPKG commands There are two actions, they are dpkg-query and dpkg-deb . Install a package # sudo dpkg -i {package_name} # sudo dpkg -i skype-ubuntu-precise_4.2.0.11-1_i386.deb Remove a package # sudo dpkg -r {package_name} # sudo dpkg -r vlc Remove a package and its configuration files # sudo dpkg -P {package...

Using Tata Indicom Mobiles / USB Modems on Linux

Follow the below steps to configure your Tata Indicom Mobile / Walky / USB Modem using USB data cable. 1.We can access internet only using USB cable / USB Devices on Linux OS. 2.Driver’s installation for USB data cable is not required in Linux OS. 3.The device can only be accessed from root login which is admin login in Linux OS 4.Linux OS has 2 types of desktop environments Gnome and KDE. We can configure using any of the desktop environments, either Gnome or KDE. The following version of Linux are supported. Redhat Enterprise Linux 3 & above Fedora Core 5,6 & above SUSE Desktop Linux 9,10 & above Debian Linux 5,6 & above Ubuntu Linux 5,6 & above   Please have this link: http://www.tataphoton.com/download/dialers/dialup-internet-on-linux.pdf

How to Install OpenManage Server Administrator (OMSA) 7.3 on RedHat Enterprise Linux (RHEL) 6

Article Summary: This article provides information on how to install OpenManage Server Administrator (OMSA) 7.3 on RedHat Enterprise Linux (RHEL) 6. Ensure you are logged in as ' root ' Create directory for download : # mkdir /root/omsa # cd /root/omsa Download installation package : # wget http://downloads.dell.com/FOLDER01540127M/1/OM-SrvAdmin-Dell-Web-LX-7.3.0-350_A00.tar.gz # tar zxvf OM-SrvAdmin-Dell-Web-LX-7.3.0-350_A00.tar.gz # ./setup.sh Input ' 10 ' to install all components Input ' i ' for install Input ' Y ' to start services If you need to install any dependencies, you can install them via 'yum' or in the /Packages folder on the OS media Install any missing dependency with the 'rpm' command using the example below : # rpm -Uvh libcmpiCppImpl0-2.0.1-5.el6.x86_64.rpm # ./opt/dell/srvadmin/sbin/srvadmin-services.sh status # iptables -A INPUT -p t...

Installing Cacti

Installing Cacti in Centos 6.2 (Part 1):  From there, you might want to add other packages that will get us going: yum install vim mysql httpd php php-mysql php-snmp mysql mysql-server net-snmp wget More Details a) PHP Once you get all those pieces in place, lets get PHP properly configured. Then make sure that in your /etc/php.d/mysql.ini the extension=mysql.so directive is enabled. Do the same for /etc/php.d/snmp.ini extension=snmp.so Cacti also recommends that you modify the temp dir for /etc/php.ini make sure that file_uploads = on session.save_path=/tmp are enabled directives. b) Apache You also want to edit your /etc/httpd/conf/httpd.conf and make sure you add the line: include conf.d/*.conf c) mySQL Lets get mysqld on and set to startup: service mysqld start chkconfig mysqld on Now lets set a mysql root password mysqladmin -u root password somepassword Installing Cacti Next you actu...

Creating an Excel line chart in Python Cont.

Please read Instaling XlsxWriter before this. For further info please visit XlsXWriter Here is an Example of creating an Excel line chart. The X axis of a line chart is a category axie with fixed point spacing. For a line chart with arbitrary point spacing see the Scatter chart type. ####################################################################### # # An example of creating Excel Line charts with Python and XlsxWriter. # # Copyright 2013-2015, John McNamara, jmcnamara@cpan.org # import xlsxwriter workbook = xlsxwriter . Workbook ( 'chart_line.xlsx' ) worksheet = workbook . add_worksheet () bold = workbook . add_format ({ 'bold' : 1 }) # Add the worksheet data that the charts will refer to. headings = [ 'Number' , 'Batch 1' , 'Batch 2' ] data = [ [ 2 , 3 , 4 , 5 , 6 , 7 ], [ 10 , 40 , 50 , 20 , 10 , 50 ], [ 30 , 60 , 70 , 50 , 40 , 30 ], ] worksheet . write_row ( 'A1...

Example of creating an Excel line chart in Python

We can create excel files in python using XlsxWriter module. For creating an Excel line chart The first step is to install the XlsxWriter module. There are several ways to do this. Using PIP The pip installer is the preferred method for installing Python modules from PyPI , the Python Package Index: $ sudo pip install XlsxWriter Note Windows users can omit sudo at the start of the command. Using Easy_Install If pip doesn't work you can try easy_install : $ sudo easy_install XlsxWriter Installing from a tarball If you download a tarball of the latest version of XlsxWriter you can install it as follows (change the version number to suit): $ tar -zxvf XlsxWriter-1.2.3.tar.gz $ cd XlsxWriter-1.2.3 $ sudo python setup.py install A tarball of the latest code can be downloaded from GitHub as follows: $ curl -O -L http://github.com/jmcnamara/XlsxWriter/archive/master.tar.gz $ tar zxvf master.tar.gz $ cd XlsxWriter-master/ $ sudo python setup.py insta...