Category: Unix

Webid do not have built in support for new google Recaptcha . If use enable Recaptcha of webid your registration form may not work. To resolve this follow below steps. Step 1 : Register for google Recaptcha https://www.google.com/recaptcha/admin Enter google username and Password Once you register google will provide a site key , please make a note of it. Step 2 : Open the file themes/modern/global_header.tpl .. If you are using different theme use concerned folder. Add This line exactly before the >/head> tag <script src=’https://www.google.com/recaptcha/api.js’></script> Step 3 : Open themes/modern/register.tpl and replace below code Replace below code block after replacing the site key <div class=”form-group col-lg-12″> <div class=”capchabox”>{CAPCHA}</div> </div> <!– CAPCHA CODE –> <div class=”form-group col-lg-12″> <div class=”g-recaptcha” data-sitekey=”SITE KEY HERE”></div> </div> Now login to webid panel and disable captcha setting to now as below. Now you open the home page in webid admin panel and click on clear cache as below Now open the registration page you will see the new Google recapcha version 2 as follows

XenServer is the leading open source virtualization platform, powered by the Xen Project hypervisor and the XAPI toolstack. It is used in the world’s largest clouds and enterprises. XENSERVER FEATURES XenServer is an enterprise-class, cloud-proven, virtualization platform that delivers all of the critical features needed for any server and datacenter virtualization implementation. The following list summarizes some of the key capabilities of XenServer, and a complete technical FAQ can be found on the Citrix support web site. CORE PLATFORM XenServer is based on the Xen Project™ hypervisor. The Xen Project hypervisor is a bare metal virtualization platform used by XenServer to deliver near native application performance for x86 workloads in an Intel and AMD environment. MANAGEMENT CAPABILITIES MULTI-SERVER MANAGEMENT XenCenter provides all the virtual machine management, monitoring and general administration, and general administration functions in a single interface. Administrators can easily manage hundreds of virtual machines from a centralized, highly available management console that installs on any Windows® desktop. The resilient distributed management architecture in XenServer distributes server management data across the servers in a resource pool to ensure that there is no single point of management failure. ROLE BASED ADMINISTRATION Role-based administration improves security and enables delegated access, control, and usage of XenServer […]

FreeNAS is an operating system that can be installed on virtually any hardware platform to share data over a network. FreeNAS is the simplest way to create a centralized and easily accessible place for your data. Use FreeNAS with ZFS to protect, store, backup, all of your data. FreeNAS is used everywhere, for the home, small business, and the enterprise. Freenas uses enterprise ready ZFS file system. What is ZFS? ZFS is an enterprise-ready open source file system, RAID controller, and volume manager with unprecedented flexibility and an uncompromising commitment to data integrity. It eliminates most, if not all of the shortcomings found in legacy file systems and hardware RAID devices. Once you go ZFS, you will never want to go back. Features of FreeNas File Sharing File sharing is what FreeNAS does best. Every major operating system is supported with SMB/CIFS (Windows file shares), NFS (Unix file shares) and AFP (Apple File Shares) as well as FTP, iSCSI (block sharing), WebDAV and other methods of sharing data over the network are available. iSCSI also supports VMware VAAI, Microsoft ODX and Microsoft Windows Server 2008 and 2012 R2 Clustering. Most operating systems, including Windows, Mac OS X, many Linux distributions, and […]

Installing Ubuntu side by side with Windows 10 is tricky with ASUS ROG G752VT. After wasting hours on this here is the steps how it worked. Basically this laptop is coming with 2 HDD’s 1TB 7200RPM + 128GB SSD (PCIEG3x4) Steps For Dual Booting Windows 10 And Ubuntu The steps required for dual booting Windows 10 and Ubuntu are as follows: Backup your Windows 10 operating system (optional but highly recommended) Create a Ubuntu USB drive Enable booting from a USB drive Shrink the Windows 10 partition to make space for Ubuntu Boot into Ubuntu live environment and install Ubuntu Step1 : Disable Secure Boot Windows, hold the Shift key while selecting Restart. Go to Troubleshoot > Advanced Options: UEFI Firmware Settings. Find the Secure Boot setting, and if possible, set it to Disabled. This option is usually in either the Security tab, the Boot tab, or the Authentication tab. Step2 : Shrink Windows To Make Space For Ubuntu If your computer only has one hard drive you will need to shrink your Windows 10 partition in order to make space for Ubuntu. The tool used for shrinking Windows partitions is “Disk Management”. To start “Disk Management”, right […]

To add a user you must use the sudo command. Here are the commands: To add a user. NOTE: do not use the useradd command. $ sudo adduser <username> To see the options for adding a user try the man command. $ man adduser Here is a useful example of the useradd command. Why use useradd? It gives a few more options for special cases. To add a user, give her a standard home directory in the /home folder and specify the shell she accesses by default do this: $ sudo useradd username -m -s /bin/bash $ sudo passwd username Groups You might also wish to create a new group for your users. # sudo addgroup <groupname> To add a new user to a existing group you would do this: # sudo adduser <username> audio To add an existing user to an existing group you can use the same command: # sudo adduser <username> <groupname> or # sudo usermod -aG <groupname> <username> .

Task : I want to create PDF files of 1000 students records. Each student record have 2 pages. Each page is named in the following format IDNUMBER_PageNo.jpg Example of one students : 20151101234.jpg 20151101234_001.jpg These are the records of one students scanned as jpg. The task is make them as pdf file with a file name : 20151101234.pdf Note that , I have 1000 student records with 2000 jpg files. I have to make 1000 PDF files out of these 2000 jpg files. Tools Required : Microsoft Excel Open Source Software : imagemagic Free Download : http://www.imagemagick.org/script/binary-releases.php For 64 Bit , Windows 7 , I downloaded this Version => http://www.imagemagick.org/download/binaries/ImageMagick-6.9.2-0-Q16-x64-dll.exe Theory: Using ImageMagick if you wish to combine multiple jpeg and create single pdf , then you should use following command convert file1.jpg file2.jpg file3.jpg file.pdf Steps Involved : Create a folder and put all jpg files inside it. Extract the file names , paste to Excel Sheet Create a batch script in the format required by Imagemagick Install Imagemagick Software and Test Enjooooooy Step1 : Create a folder in c Drive as Haneef and paste all the files there Step2 Open Command Prompt cd c:\haneef dir *.* /b >> haneef.txt This will create a […]

First Check Version of your Ubuntu Run Command : lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 10.04.4 LTS Release: 10.04 Codename: lucid Pre Requisites: sudo apt-get install build-essential sudo apt-get install php5-dev php-pear libaio1 Instant Client installation requires some environment variables to be able to see the library folder. Edit /etc/environment and add at the end: # Oracle Instant Client LD_LIBRARY_PATH=”/usr/local/lib/instantclient_12_1″ TNS_ADMIN=”/usr/local/lib/instantclient_12_1″ ORACLE_BASE=”/usr/local/lib/instantclient_12_1″ ORACLE_HOME=$ORACLE_BASE Now Download Right Version of Oracle Install Client 32 Bit : Basic Version SDK Version 64 Bit Basic Version SDK Version Now transfer the downloaded file from local pc to ubuntu server using WinSCP cd /usr/local/lib sudo unzip <location-of-instant-client-basic> sudo unzip <location-of-instant-client-sdk> cd instantclient_12_1 sudo ln -s libclntsh.so.12.1 libclntsh.so The symbolic link is needed during the compilation step later. sudo pecl install oci8 You will be prompted for the location of the library: instantclient,/usr/local/lib/instantclient_12_1 PHP5 Instructions You should now create a new oci8.ini file which will be included when loading php.ini (Editing the php.ini is discouraged): nano /etc/php5/conf.d/oci8.ini this will create a blank file; add to this file: extension=oci8.so In Ubuntu 13.10, you should create a new oci8.ini in: nano /etc/php5/apache2/conf.d/oci8.ini this will create a blank file. Then add to this file: extension=oci8.so Restart Apache sudo […]

The GHOST vulnerability is a serious weakness in the Linux glibc library. It might allows attackers to remotely take complete control of the victim system without having any prior knowledge of system credentials. CVE-2015-0235 has been assigned to this issue. For further information about the vulnerability, you can refer to the following url: https://community.qualys.com/blogs/laws-of-vulnerabilities/2015/01/27/the-ghost-vulnerability To verify if your Linux server is affected by the Ghost Vulnerability, please run the following commands : wget http://techdata.mirror.gtcomm.net/scripts/GHOST.c gcc GHOST.c -o GHOST ./GHOST Once execute, the output will clearly state(“Vulnerable” or “Not Vulnerable”) if your server is affected by the vulnerability. If your server is found vulnerable, then run the following command as root on your respective distribution. CentOS / Fedora : yum update glibc* Debian / Ubuntu : apt-get –only-upgrade install libc-bin libc-dev-bin libc6 libc6-dev libc6-i386 After again try the GHOST to check the same. More Details on Ghost Vulnerability The GHOST vulnerability is a serious weakness in the Linux glibc library. It allows attackers to remotely take complete control of the victim system without having any prior knowledge of system credentials. CVE-2015-0235 has been assigned to this issue. Qualys security researchers discovered this bug and worked closely with Linux distribution vendors. […]

Problem : Restore backup on different hardware leaves the firewall unusable afetr upgrading to Different hardware Cause : /etc/businfotab file contains the mac address of old NIC Solution : Remove the businfotab under etc directory on shell: press “0” to access shell type login and hit enter You will be asked to provide password if you have setup one or the password of your old firewall from which you have acquired the backup tar file cd /etc rm businfotab shutdown -r now and hit enter (will reboot the firewall) .