Friday 27 March 2015

Download youtube Videos From Linux Command

Download youtube Videos From Linux Command



Step 1
# wget --no-check-certificate https://github.com/rg3/youtube-dl/raw/2011.12.18/youtube-dl -O /usr/local/bin/youtube-dl; chmod 755 /usr/local/bin/youtube-dl
 

 Step 2
 # youtube-dl copy youtube video url and paste here

Can't read CTR while initializing i8042


Thursday 26 March 2015

Installing Recordmydesktop on CentOS 6.5 and RHEL 6.5



Step 1

yum install gcc make libXext-devel libSM-devel libICE-devel zlib-devel 
libXfixes-devel libXdamage-devel libvorbis-devel libtheora-devel
 
 
 
Step 2 
 
wget http://downloads.sourceforge.net/project/recordmydesktop/recordmydesktop/0.3.8.1 
/recordmydesktop-0.3.8.1.tar.gz 
 
tar xf recordmydesktop-0.3.8.1.tar.gz
rm -rf recordmydesktop-0.3.8.1.tar.gz
 
 
Step 3
 
cd recordmydesktop-0.3.8.1
./configure
make
make install
 
Step 4
 
 
recordmydesktop --help

Friday 13 March 2015

Howto: Installing HP LaserJet 1020 on Redhat/centos 6/linux

For Installing Printer using this method GCC packages is must.
yum -y install gcc*
Step 1:- Execute Following Command
wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
This command will download Driver
Step 2 :- Unpack the downloaded Drivers.Execute Following Commands
tar zxvf foo2zjs.tar.gz
cd foo2zjs
Step 3:- Now Compile Drivers & Install Drivers (GCC Packages need here now)
[root@dha~]# make
[root@dha~]# make install
[root@dha~]# make install-hotplug
(this command will detect your USB printer)
When you finished this then follow below steps :-
Execute system-config-printer command
Find your Printer and Install it.
Get extra files from the web like Firm ware and ICM File.Select your Printer and download it.
$ ./getweb 2430 # Get Minolta 2430 DL .ICM files
$ ./getweb 2300 # Get Minolta 2300 DL .ICM files
$ ./getweb 2200 # Get Minolta 2200 DL .ICM files
$ ./getweb cpwl # Get Minolta Color PageWorks/Pro L .ICM files
$ ./getweb 1020 # Get HP LaserJet 1020 firmware file
$ ./getweb 1018 # Get HP LaserJet 1018 firmware file
$ ./getweb 1005 # Get HP LaserJet 1005 firmware file
$ ./getweb 1000 # Get HP LaserJet 1000 firmware file

Wednesday 11 March 2015

Acer Aspire BIOS Update

Acer Aspire  BIOS Update

Acer Aspire e1-510 - Legacy bios option available (BIOS v2.07) 

 

 

 

Then follow these simple steps to install Windows 7 on Acer Aspire e1-510 :

---------------------------------------------------------
Update 2014-05-23 : Acer finally gave us an official bios that includes the "legacy bios" mode... Please use this file (bios v2.11) :

http://global-download.acer.com/GDFiles/Patch/Patch/Patch_Acer_2.11_W81x64W8x64_A.zip?acerid=635336693633695277&Step1=NOTEBOOK&Step2=ASPIRE&Step3=ASPIRE%20E1-510&OS=ALL&LC=en&BC=ACER&SC=PA_6

---------------------------------------------------------




1. Download the file E1-510BIOS.Zip from the below FTP site :
          URL : ftp://ftp.acer.co.in 
          User name: ailtech 
          Password: at68tech 
          Folder name: E1-510BIOS 
          (Mirror : HERE )
2. Make the pen drive ready by formatting with Fat-32 file system
3. Extract the file E1-510BIOS.zip to the USB pen drive, which will create a bootable pendrive.
4. Connect the pen drive to E1-510 notebook where the BIOS have to be updated.
5. Ensure that the notebook is plugged with the AC adapter and the battery is also having the charge of 40%.
6. Press F12 and power on the notebook to select the Boot option.
7. Select USB Boot and press enter, Notebook will boot from the USB Pen drive with the command prompt window. 
8. Type C: which will be the root of the Thumb drive. 
9. Type Z5WE3207W.exe which will start updating the BIOS. 
10. Follow the steps displayed in the screen.
11. After completing the BIOS update the Notebook will take 1 minute to power on. 
12. Press F2 and get into the BIOS setup. 
13. In the BOOT Menu there will be the option for UEFI / Legacy mode 
14. To load Windows 7 change to legacy mode.


 


XVIDCAP is the best screen/video recording

Best screen recording tool for Linux

 ( RHEL / CENTOS ) 

 

XVIDCAP is the best screen/video recording application for RHEL / CENTOS.
I have tried installing apps like Openshot, Pitivi or Kdenlive but non of them match the simplicity of XVIDCAP. Camtasia is good but works only for Windows & MAC

XVIDCAP is a screencast application for Linux. It allows you to record either parts of the screen of your Linux desktop or even full screen. This makes it an ideal tool for making software demostrations or tutorials which can be published on YouTube or even shared within your organization.





  1. Download Nux-dextop repository from following links. 32bit version and 64bit version
  2. Now execute the below command:
    rpm -ivh nux-dextop-release-0-2.el6.nux.noarch.rpm
  3. Now install xvidcap by typing the below command:
    yum install xvidcap

Wednesday 4 March 2015

Static Routes

How to Add Persistent Static Routes on CentOS 6

 

 

his example will show you on how to configure the Persistent static route in RedHat Enterprise Linux 6 (RHEL 6) server. This configuration may different with other version of RHEL but the basic is almost the same. Persistent static route will permanently stored the setting and will not be deleted after rebooted. The following setting is just example only, you need to update the ip addresses and netmask in order to fit your environment :


To add a persistent static route in Redhat Enterprise Linux 6, create a file called route-X in the /etc/sysconfig/network-scripts/ directory. In this case, i will add persistent static route for eth0 and eth1.
1. Create a file route-eth0 rot eth0 routing :

[root@rhel6 ~]# vi /etc/sysconfig/network-scripts/route-eth0
 
ADDRESS0=192.168.1.0
NETMASK0=255.255.255.0
GATEWAY0=192.168.1.1
2. Create a file route-eth1 rot eth1 routing :

[root@rhel6 ~]# vi /etc/sysconfig/network-scripts/route-eth1
 
ADDRESS1=192.168.2.0
NETMASK1=255.255.255.0
GATEWAY1=192.168.2.1
 
Display routing table :

[root@rhel6 ~]# netstat -rn

 

Zimbra Installation on centos 6.5

Zimbra Installation on  centos 6.5

 

Zimbra Collaboration Suite (ZCS) is a groupware product created by Zimbra, Inc. Zimbra email is one of the popular open source email in the world. Before we start installing ZCS email software, please make sure that all the prerequisites has been configured and installed. This post will describe the steps to setup Zimbra Collaboration Suite (ZCS) 8.0.3 Mail Server open source edition on CentOS 6.4 64 bit. ZCS 8.0.3 only released the 64 bit version for Redhat Linux Enteprise 6 (RHEL6) or CentOS 6 operating system




1. Disabled SELINUX :

[root@centos64 ~]# vi /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
2. Configure /etc/hosts and hostname :
[root@mail ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.2.104   mail.example.local mail
[root@mail ~]# hostname
mail.example.local
3. Stop sendmail, postfix or any MTA service :
[root@mail ~]# service postfix stop
[root@mail ~]# chkconfig postfix off
[root@mail ~]# service sendmail stop
[root@mail ~]# chkconfig sendmail off
4. Install the required packages and libraries using the following command :
[root@mail ~]# yum install nc sudo libidn gmp libstdc++ perl sysstat sqlite -y
5. Prepare DNS setup for your mail domain. MX record is mandotary in this setup :
Configure named.conf file to fit your DNS requirement :
/var/named/chroot/etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
        listen-on port 53 { 127.0.0.1;192.168.2.104; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { localhost; };
        recursion yes;

        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "example.local" {
    type master;
    file "example.local.zone";
};

zone "2.168.192.in-addr.arpa" IN {
        type master;
        file "192.168.2.zone";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
Prepare forward zone :
/var/named/chroot/var/named/example.local.zone
;
;       Addresses and other host information.
;
@       IN      SOA     example.local. hostmaster.example.local. (
                               2013042301      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum

;       Define the nameservers and the mail servers

               IN      NS      ns1.example.local.
               IN      A       192.168.2.104
               IN      MX      10 mail.example.local.

centos64       IN      A       192.168.2.104
mail           IN      A       192.168.2.104
ns1            IN      A       192.168.2.104
Prepare the reverse zone :
/var/named/chroot/var/named/192.168.2.zone
;
;       Addresses and other host information.
;
@       IN      SOA     example.local. hostmaster.example.local. (
                               2013042301      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum

2.168.192.in-addr.arpa. IN      NS      centos64.example.local.

104.2.168.192.in-addr.arpa. IN PTR mail.example.local.
104.2.168.192.in-addr.arpa. IN PTR ns1.example.local.
6. Test the DNS :
[root@mail ~]# host -t mx example.local
example.local mail is handled by 10 mail.example.local.
[root@mail ~]# host -t ns example.local
example.local name server ns1.example.local.
 
 
 7. Download Zimbra Collaboration Suite 8.0.3 from zimbra official website :
 
 [root@mail ~]# http://files2.zimbra.com/downloads/8.0.3_GA/zcs-8.0.3_GA_5664.RHEL6_64.20130305090204.tgz
 
 
8. Extract Zimbra Collaboration Suite 8.0.3 :

[root@mail ~]# tar xzvf zcs-8.0.3_GA_5664.RHEL6_64.20130305090204.tgz

[root@mail ~]# cd zcs-8.0.3_GA_5664.RHEL6_64.20130305090204

9. Start the Zimbra Collaboration Suite 8.0.1 installation :

[root@mail zcs-8.0.3_GA_5664.RHEL6_64.20130305090204]# ./install.sh --platform-override

/etc/ld.so.conf...done. Cleaning up /etc/security/limits.conf...done. Finished removing Zimbra Collaboration Server. Installing packages zimbra-core......zimbra-core-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-ldap......zimbra-ldap-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-logger......zimbra-logger-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-mta......zimbra-mta-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-snmp......zimbra-snmp-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-store......zimbra-store-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-apache......zimbra-apache-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-spell......zimbra-spell-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-memcached......zimbra-memcached-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-proxy......zimbra-proxy-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...
 
10. Start zimbra service :
[root@mail ~]# su - zimbra

[zimbra@mail ~]$ zmcontrol start
Host mail.example.local
        Starting zmconfigd...Done.
        Starting logger...Done.
        Starting mailbox...Done.
        Starting memcached...Done.
        Starting proxy...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Done.
        Starting stats...Done.
11. Check status of zimbra service :
[zimbra@mail ~]$ zmcontrol status
Host mail.example.local
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        memcached               Running
        mta                     Running
        proxy                   Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zmconfigd               Running