November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
‘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 [...]
November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
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 [...]