Linux.com

Community Blogs



Linux Debian with PXE and AOE server to install windows 7/8

I wanted to be able to install Win7 over PXE but got a head acke when I read a few tutorials about it and thought to myself there should be a easier quicker way. Indeed there is using AOE (ATA Over Ethernet). I found a nice howto here but it is aimed at a Windows Server. I came up with a way to do this in Linux.

This will work on Debia Squeeze and Wheezy. I have not tried this with the Windows 7 CD, only tried this with my jump drive.

Software needed

  • Base system of Debian
  • DNSMasq - via APT
  • iPXE boot CD
  • Syslinux - via APT
  • vblade - via APT
  • Windows 7 or 8 in jump drive form

Install DNSMasq and Syslinux with apt -- sudo apt-get install dnsmasq syslinux -- Configure DNSMasq with nano or vi to your liking -- sudo nano /etc/dnsmasq.conf --. You can use my config if yo wish.

interface=eth1
listen-address=127.0.0.1
domain=
dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/tftpboot/
log-queries
log-dhcp
 
We also need to make the NIC to run a static address. As you can see I am using eth1 but you might be using eth0 so keep in mind yours might be different. To give your NIC a static address edit -- sudo nano /etc/network/interfaces -- here's mine for a example.
 
allow-hotplug eth1
iface eth1 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
 
Just make sure you use the correct IP subnet that matches DNSMasq. After editing the interfaces file you need to restart the device. -- /etc/init.d/networking restart --
 
We can now move on to the PXE layout. The root directory I use is /tftpboot so i'll use it in the tutorial.
create a new directory for tftp -- sudo mkdir -p /tftpboot --  and also -- sudo mkdir -p /tftpboot/pxelinux.cfg --
Copy a couple of files from syslinux to the tftpboot directory -- sudo cp /usr/lib/syslinux/menu.c32 /tftpboot -- -- sudo cp /usr/lib/syslinux/pxelinux.0 /tftpboot -- After that we can create the default file for PXE -- sudo nano /tftpboot/pxelinux.cfg/default -- Here is a simple setup I use.
 
DEFAULT menu.c32
PROMPT 0
MENU TITLE PXE Boot
TIMEOUT 100

LABEL Install Win7
MENU LABEL Install Win7
kernel ipxe.krn
initrd conf.ipxe

Just save and exit. Now download iPXE's boot CD and mount it. -- wget http://boot.ipxe.org/ipxe.iso -- to mount it issue this -- sudo mount -o loop ipxe.iso /media -- cd in to /media and copy boot.cat and ipxe.krn to the root of the tftpboot directory. -- sudo cp boot.cat ipxe.krn /tftpboot -- unmount the ipxe.iso --sudo umount /media -- Now we need a config file for iPXE to boot a AOE. -- sudo nano /tftpboot/conf.ipxe -- It should look like this

#!ipxe
dhcp net0
set keep-san 1
sanboot aoe:e0.1

In all tha was the hard part. The easy part is setting up AOE. Debian's kernel has the module ready to go but has to be enabled. -- modprobe aoe -- now we need to add it to the modules file so it is loaded when the system boots. -- sudo nano /etc/modules -- Should look like this

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

aoe
loop

Now install vblade -- sudo apt-get install vblade -- Copy the Win7 or 8 USB jump drive using disk dump. I put mine in the /tftpboot/win7 directory. -- sudo mkdir -p /tftpboot/win7 -- -- sudo dd if=/dev/sde of=/tftpboot/win7/win7.img bs=4M -- It will take about five or ten minutes to copy. When finished we can start vblade. -- sudo vbladed 0 1 eth1 /tftpboot/win7/win7.img -- You can create a script or even issue it in the rc.local file to start everytime the system boots. All what is left is to restart DNSMasq and test it out with Virutal Box or a real system. -- sudo /etc/init.d/dnsmasq restart --

Hope you'll enjoy this tutorial.

 

Linux: Hide Processes From Other Users

I run a multi-user system. Most users access resources using ssh client. How can I stop leaking process information to all users on Linux operating systems? How do I prevent users from seeing processes that do not belong to them on a Debian/Ubuntu/RHEL/CentOS Linux server?

Linux: Hide Processes From Other Users

 

Hitech-Cloud Hosting Services Sharpening Its Peculiarities on Application Hosting

With the rise of cloud technology, most of the business houses have been seen taking the advantage of this technology. Owing to the rising importance of cloud computing, Hitech-cloud hosting solutions has recently launched application hosting services which is a part of cloud-computing.

According to the research done by the company on 100 small and  medium sized businesses in Texas, United States, 85 percent of the companies outsource application hosting to a hosting service provider, owing to high cost of maintaining IT infrastructure.

Most of the applications used by these companies were Quickbooks, Peachtree, Drake, and Lacerte. On asked, "Why are they opting for Application Hosting services?” The answer from most of the respondents was, hosting application has many advantages like it allows multiple users, to use the same application at the same time, it reduces cost of setting IT infrastructure and also reduces extra manpower.

Mr. Harry Lawrence, Service designer and IT head of Hitech-cloud said " Application hosting technology is a  blessing to all the medium and small sized businesses who cannot afford the high cost of maintaining heavy IT infrastructure, whereas on the other hand, they can outsource the services on minimum payment of monthly rent"

Hitech-cloud hosting services has made a sound revolution by ensuring best quality in its services that helps in boosting the profits of the clients. On the basis of the research made on the 100 companies, the company is coming up with a journal, titled “Application hosting increasing the productivity of small businesses” which will be published shortly. The company is really looking forward to materialize the research and enlighten other companies about the benefits of application hosting. The company strongly believes that its initiatives will be very helpful for small and medium sized business. Through its website called hitech-cloud.com, which was launched in the year 2012, the company is offering better services related to cloud computing.

 

Tomcat 8 Stable Released - Install Tomcat 8 on CentOS, Redhat, Ubuntu

Apache has released stable version of Tomcat 8 on June 25, 2014. Which is available for download on itsofficial site. Apache tomcat 8 has upgraded some features. Below are few details about Tomcat 8.

    • Tomcat 8 requires JAVA 7 to work.
    • Tomcat 8 supports Java Servlet 3.1
    • Tomcat 8 supports JavaServer Pages 2.3
    • Tomcat 8 supports Java Unified Expression Language 3.0
    • Tomcat 8 supports Java WebSocket 1.0  

Read complete article http://tecadmin.net/install-tomcat-8-on-centos-rhel-and-ubuntu/

 

HOW TO SETUP YOUR OWN MAIL SERVER WITH ANTI-SPAM CONFIGURATION

Introduction

This tutorial will teach you how to set up your own robust email server. We are focusing on a small personal server with up to a few email accounts. After following this guide, you will have a fully functional mail server and you can connect with your favourite client to access, read and send emails. The Anti-Spam configuration will drop unwanted messages.

This tutorial will use yourdomain.com as domain name and mail.yourdomain.com as hostname for our mail server. The desired email address will be  This e-mail address is being protected from spambots. You need JavaScript enabled to view it . We assume that our server has the IP address 1.2.3.4.

Software and technologies used

  • Postfix v2.9.6 as SMTP server
  • Dovecot v2.0.19 as IMAP server
  • We will use Unix user accounts and tunnel the SASL authentication through TLS
  • Postgrey v1.34 – to reject spam from the beginning
    (more about postgrey)
  • SPF (Sender Policy Framework) validating to reduce spam
    (more aboutSPF)
  • SPF DNS entry to prevent spoofing
  • DKIM (Domain Keys Identified Mail) to sign our email messages
    (moreabout DKIM)

Read on over here...

 

Install Ajenti Control Panel on CentOS, RedHat and Fedora

Ajenti is a web based control panel for managing systems (like: Webmin, cPanel). It has a very beautiful and user-friendly interface. For personal use Ajenti is freely available for under AGPLv3. For commercial use you have to pay for a small amount regularly.

Below article article will help you to install Ajenti control panel on CentOS, Redhat and Fedora systems.

http://tecadmin.net/install-ajenti-control-panel-on-centos-redhat-fedora/

 

Web Application Development in Linux Environment

Web Application Development

This article is presented by Vijay Web Solutions India Pvt. Ltd., a complete mobile and web application development company in India. The article represents the technologies used for developing web applications focused, comparing open source alternative to proprietary supported in Linux, also commenting on performance and development time.

Comparing Alternative Distribution

Currently there is a wave of development / export of most applications for use on the web. It should be emphasized that one should be careful when doing this as it should analyze the real need of it, so the development of web applications is more complex than the development of executable applications.

Solutions such as application delivery are needed in companies that have branches / points distributed over a considerable distance geographically. Citrix Metaframe is one of the tools that is installed on a Windows server with great performance hardware, allows publishing of any program installed on it. It provides user friendly interface to define which users can access each application published and how many instances of this application can run simultaneously according to the number of licenses. It is a great solution because it works with complex software applications made by going to the DOS platform. Greatest obstacle in such a solution is its cost, it can turn into more than $ 20,000.00 just for this tool with a considerable server hardware.

An alternative would be to develop web applications for use in the browser and distributed via a web server. I have always wondered about what would use more network traffic. Both forms are processed on the server, both using a metaframe as using a web application. But think about how it would be to transfer the image generated by the client instance on the server that is to be transferred to the client metaframe, if it would generate more traffic than sending an HTML document.

Greatest attractive to use the second option is you can use the Unix platform and our old known as Apache web server. For such applications there are several free to use database management systems like PostgreSQL, Firebird or even the most popular MySQL, which is widely used for its integration with PHP. Nor would there be problems in integrating an application that was being published by a Linux server with Apache to access databases on a Windows server, for example.

Database

Applications always require Relational Database Management Systems (RDBMS). Currently, there are several alternatives available in the market, being always hottest, the Oracle, currently at version 12c (c stands for cloud) and Microsoft SQL Server at version 2014. These solutions are great, however cost a bit outside the context of many companies on the rise. Alternatively, the DBMSs appeared attractive for situations like this, because despite being free to use, features stable operation and very good consistency.

There is availability of versions available for various distributions of Linux. Among them we can mention the PostgreSQL, which has characteristics and features that do not want to leave it on business. Firebird which is the freeware version of our renowned Interbase, having the same characteristics and is compatible with the same. But, surely you could not miss the MySQL which despite being the least robust of the three above options is the most used. A lot of web application development companies developing commercial applications working with PostgreSQL, to be the most robust among them and implement a best aspects safety. The Firebird still leaves a bit to be desired in this regard. The adoption of tools like these in projects reduces the cost of deploying the systems in customers. This facilitates their financial customer acceptance which might not be achieved only with the use of these free alternatives.

Technologies for Development

For the development of applications, use some CGI tool able to interpret the scripts on the server and return a default output to the user (HTML), to interact and post this information to be processed on the server, etc... There are several tools available on the market, thus as in the database have the paid and free to use. There are still very large number of servers using ASP which is Microsoft proprietary, which can only be installed on a server running Windows.

In return, we have solutions that are platform as JSP (Java Server Pages), PHP, and ColdFusion, which despite to be paid, and support installation on various distributions of Linux. Initially, in response to the use of ASP, PHP, which has spread a lot and gained a lot of fans is the clear language for programming that supports development with the paradigm of object orientation. The reason both has widespread, because there are several packages and documentation available on the Internet for both of these technologies.

Another tool that has been growing very equaling or even surpassing is JSP, because being originated from Sun's Java technology, it presents as a very consistent solution due to the great support that provides the Java language and how big the opponent group .NET from Microsoft. Also it supports the deployment on a Linux server. A proprietary solution that many are unaware that also supports Linux is Adobe ColdFusion currently at version 11. We will briefly discuss about it in the paragraphs below.

It offers the possibility to run on a Linux server with Apache and consult a base in a MS SQL Server on a Windows server. It is a simple and clear language, with advantages and disadvantages over the others. How big advantage is the ability to rapidly develop, because the language has different tags, such as CFINPUTs, which besides having the same attributes of INPUTs defined in HTML, allow the tag itself set the field validation on the client, messages, etc... without the need to write code in Javascript for this, as it would be in the languages mentioned above.

ColdFusion automatically generates these codes. Allows integration with Java technology since their codes are compiled and these generated classes in Java are used to send the output to the user. Disadvantages are that the cost for its implementation is necessary to acquire a license to power up Install the server and the CF developer community is very small in relation to the other. For example, to generate a PDF document that in the case of PHP and JSP must be native or using packages and libraries in CF only with proprietary solutions support. Notes on a case study that although it consume a considerable amount of RAM memory and other resources, it has a good performance microprocessor Pentium IV 2.4 MHz, 1GB of RAM and a 800MHz local bus without the need for a dual server.

All this with the Apache web server with SSL support. A detail that is worth noting that in this case study that I have seen, opening a series of doors services the CF, the more interesting it would be to place a firewall even before avoid direct external access.

Conclusion:

With this article, we hope to have contributed to the analysis of its structure helping to choose the path you want to follow. Proprietary solutions can be integrated into the Linux platform bringing benefits and reducing the cost. If the company can invest in a solution based on CF aimed at the rapid development of the projects, this can be achieved in the Linux environment.

 

Install EPEL Repo on a CentOS and RHEL 7.x Server

A larger number of packages can be installed from Fedora EPEL repo on a CentOS and Red Hat Enterprise Linux (RHEL) version 7.x. This quick tutorial explains how to enable Fedora EPEL repo on a Red Hat Enterprise Linux server version 7.x or CentOS Linux server version 7.x.

Read more: Install EPEL Repo on a CentOS and RHEL 7.x

 

CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack

I am new Red Hat Enterprise Linux version 7 user/sysadmin/developer. This version made the big number change for RHEL 7/CentOS 7. How can I install LAMP (Linux, Apache, MariaDB, PHP) stack on a RHEL version 7 or CentOS Linux version 7 using CLI or over ssh based session?

CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack

 

How to set up KVM Virtualization in RHEL/CentOS 6

Hi Linux fans, I have been using KVM virtualization a lot recently for learning and as a lab set up to try out all my new stuff. I originally started writing articles for KVM in Ubuntu in my Jungle Geek blog. One of my readers wanted to try that out on a CentOS operating system. So I decided to write an article for KVM on CentOS to help him out.

If you are interested in learning about how to setup KVM virtualization on RHEL/CentOS, please visit my blog and the article link is below.

 

Thanks

Venkat Nagappan

 

KVM Virtualization in Ubuntu

Hi Linux Beginners, I have been writing about KVM virtualization in my blog recently. If you are interested in learning more about KVM stuff please visit my blog Jungle Geek.

My recent articles about KVM are at

All articles in KVM category in my blog can be found at

Hope you enjoy reading my articles. Thanks for reading it.

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  9 
  •  Next 
  •  End 
  • »
Page 1 of 9

Upcoming Linux Foundation Courses

  1. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
    Details
  2. LFS416 Linux Security
    06 Oct » 09 Oct - Washington
    Details
  3. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board