Tag archive for ‘linux’

How To Split A Large Files To Multiple Parts Using “tar”

Process to split file Here you have to use two extra command line options to split the file over multiple parts. The standard syntax are -M (–multi-volume) which tells Tar you want to split the file over multiple files. Then you need to tell Tar how big that file is, so that it can create [...]

Mount raw and qcow2 VM disk images

Mounting a partition from raw image is pretty simple: losetup /dev/loop0 image.img kpartx -a /dev/loop0 mount /dev/mapper/loop0p1 /mnt/image If kernel parameter (as loop in compiled into Fedora’s kernel) like loop.max_part=63 added it is even simplier: losetup /dev/loop0 image.img mount /dev/loop0p1 /mnt/image Alternative way is to specify direct offset to partition: mount image.img /mnt/image -o loop,offset=32256 [...]

Migrate to ProxMox from Ubuntu KVM-libvirt LVM-based Virtual Machine Server

I partially answered my own question. Yes for option one but I am using identical servers. What if the servers were not identical? Should the VM work when moved? Anyway, if it helps anyone, here is what I did to move a Win2000 VM from a kvm-based Ubuntu 9.04-server amd64 to a server running proxmox [...]

Installation of Tomcat 6

Download and Install JAVA Download j2sdk-1.4.2 from Sun Download center http://developers.sun.com/downloads/ Here I have used j2sdk-1_4_2_18-linux-i586-rpm.bin which will install j2sdk using RPMS and set the Path of JAVA_HOME automatically #chmod +x j2sdk-1_4_2_09-linux-i586.bin #./j2sdk-1_4_2_09-linux-i586.bin Now Check if Java is installed on the server using command java -version [root@vps907 ~]# java -version java version “1.6.0_07″ Java(TM) SE [...]

Linux Limit CPU Usage Per Proces

I don’t want background process to eat all my CPU. I know how to find out CPU utilization but how do I limit the cpu usage of a process under Linux operating system? How do I force a process to limit itself to 25% only? You can use cpulimit program that attempts to limit the [...]

Creating A Local Yum Repository (CentOS)

Sometimes it can be handy to set up your own repository to prevent from downloading the remote repository over and over again. This tutorial shows how to create a CentOS mirror for your local network. If you have to install multiple systems in your local network then all needed packages can be downloaded over the [...]

[HOWTO] Get PDO and PDO_MYSQL working in PHP 5.2.5

I just recently had to do this so I thought I might as well share. There are a few threads already with some info, but it’s not entirely complete in my opinion. Let’s get started. 1) First off, issue this command to check your pear/pecl config: pecl config-show This will show you your config. Now [...]

CentOS / RedHat: Set Password Quality Requirements

‘ve created a unique default group for each user and also used Linux groups to enhance security. Further a group called “users” allowed to login via ssh. However, I need to enforce password quality-control for all users. How do I create a password policy and enforce its use under CentOS or RHEL 5.x server operating [...]

UNIX / Linux: Send E-mail When sudo Runs

I‘m not told to use the root user to perform activities that do not require it. I’ve configured sudo for myself and for other web developers so that they can restart MySQL or Apache web server. How do I send email when sudo run by one of my user? How do I keep track of [...]

Unable to open pty: No such file or directory

VPS – Unable to open pty: No such file or directory While entering into the VPS Hosting from node, if you face following error. =============== [root@Node ~]# vzctl enter 1000 enter into VE 1000 failed Unable to open pty: No such file or directory =============== fix for this error: vzctl exec VEID /sbin/MAKEDEV pty vzctl [...]

Enter your email address:

Liên Kết Website

web design | Shared linux windows problems | Dedicated server | website chất lượng cao | hosting chất lượng cao | Tutorial video collection | Troubleshooting Tips and Tutorial