How to Setup a Fedora / Red Hat Linux or CentOS DHCP Client

RHEL How to Setup a Fedora / Red Hat Linux or CentOS DHCP ClientHow do I setup my Red Hat / CentOS / Fedora Linux system to get IP address and other information via a DHCP server for eth0 interface?

You can edit eth0 configuration file to switch between static and dhcp networking configuration under RHEL / Fedora or CentOS Linux. Simply edit /etc/sysconfig/network-scripts/ifcfg-eth0 file.

Read more »

How to Install and Configure DHCP Server on Centos or Other Clone of Linux

centos How to Install and Configure DHCP Server on Centos or Other Clone of LinuxDHCP Server on Centos or other clone of Linux. DHCP – Dynamic Host Configuration Protocol
For any administrator it is mandatory to have service like dhcp for seamless network operation, even though your network is of only few computers.

It helps your centrally manage dns servers & ip pool.

Many admins avoids using dhcp as ip keeps on changing if computer is out of network for a day or two. In that case you can have ip assigned for MAC address or have longer lease for ip address. By default max lease time is12 hrs. You can increase default &∓ max lease time. This will enable dhcp server to retain ip for specific host even if it is out of network.
Read more »

How To Fix Linux Error- “can’t Find Ext2 File System?”

RHEL How To Fix Linux Error  “can’t Find Ext2 File System?”Linux is a popular operating system, which offers a wide range of features to effectively manage data on the hard drive with its file systems, including Ext2. It is an open-source operating system that enables you to customize the operating system as per your requirement. However, in some cases, you may not access data from your Linux hard drive due to various issues. This behavior causes serious data loss issues and you need Linux Data Recovery solutions to get your valuable data recovered.

It is possible to use Windows operating system on the system which has Linux operating system installed. It is known as dual-boot configuration. It enables you to boot from either of the two operating system, Linux and Windows. If you’re working on MS Windows operating system in a dual-boot configuration and attempt to access Linux hard drive volume, you can easily mount the volume and access it.
Read more »

Ruby Reload Script or Console Without Restarting – Ruby on Rails

Testing rails application using script or console, you have to stop and start the console to test changes to your model objects. It makes development slow. This recipe shows you the easy way to reload the console.

If you are using windows, you start the console by using this command:
ruby script or console

Read more »

File Rename or Move on the server – PHP Code

Server-side files move or rename via php adds more flexibility to some applications. A common scenario when working with files involves creating a temporary file through uploading or other means and then renaming this file to a permanent location. This recipe describes changing the name of an existing file using the PHP function rename().

The syntax for the PHP rename function is consistent with that of the Linux mv function, which always makes things more comfortable. The general syntax is:

Read more »

Run PHP File Without Create Any File Via Wget to Cronjob of Linux

My web applications I have to run couples of cronjob of my applications. Some time it over 50+. Some are run long time. If I run those cornjob via php command or traditional cronjob command, those make my server so busy and I/O going so high. It make my applications and server slow. How can I run those silently?

Also other server php work via this. I mean remotely run the php job. I found a way that I run my several servers web applications job to a single server or other server those resource are free.

It Simple add below this command to cronjob via linux command line or cpanel.

Read more »

Find Real Path of Linux Symbolic Link or Soft Link Files – Linux Command Line

I have 1000 of Symbolic of my files and those are in many folders. Some time I have edit or change the real file of those symbolic or soft link files. Its really hard for me to memorize all real path of symbolic link.

But I got command, that help me and save my huge time. To put it on Linux command line it solve my problem.

Read more »

Camel Case to Spaces or Underscore – PHP Code

Most of the php development project, I need to convert camelcase strings to space-separated strings. Recently while working on a project, I found I needed to convert camelcase strings to underscore separation.

Camel case is frequently used in programming and data storage. Here are a couple of ways to convert it. As usual, feel free to leave better methods in the comments below.

Read more »

Powered by WordPress | Designed by: best suv | Thanks to trucks, infiniti suv and toyota suv