Archive for the ‘Managed VPS’ Category

What is a Dumb Terminal?

Monday, January 15th, 2007

This is in relation to a computer terminal which relatively less functional. They do not have the ability to perform different functions / escape sequences such as line clearance / screen, Cursor position Control.They can be called as teletypes due to their functionality. However, it is supported in a Unix OS.

Defining RAM (RANDOM ACCESS MEMORY) -

Monday, January 15th, 2007

It is a type of data in computers which is basically in the form of circuits that allows access to the data without any physical movement.It is rather convinient, faster and definitely consistent however it is not one of the main components of the CPU and it is subjected to Upgration. The basic adverse effect of RAM is that the loss of data when switched off.

How to create New Partition on New Slave Hard Disk?

Friday, December 22nd, 2006

First, you will need to run the fdisk command in order to partition the disk. For this example, I only want to create one ext3 partition. Here is an example session:

[root@linux2 etc]# fdisk /dev/hdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won’t be recoverable.

The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-4865, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-4865, default 4865): 4865

Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): 83

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

Create ext3 File System

The next step is to create an ext3 file system on the new partition. Provided with the distribution is a script named /sbin/mkfs.ext3. Here is an example session of using the mkfs.ext3 script:

[root@linux2 root]# mkfs.ext3 -b 4096 /dev/hdb1
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
4889248 inodes, 9769520 blocks
488476 blocks (5.00%) reserved for the super user
First data block=0
299 block groups
32768 blocks per group, 32768 fragments per group
16352 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

Mounting the File System

Now that the new hard drive is partition and formated, the last step is to mount the new drive. For this example, I will be mounting the new hard drive on the directory /db.

NOTE: You will first need to create the /db directory before mouting the disk! (e.g. mkdir /db)

What I typically do is to edit the /etc/fstab file and add an entry for the new drive. For my example, I will create the /dev/hdb1 entry as follows:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb1 /db ext3 defaults 1 1
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

After making the entry in the /etc/fstab file, it is now just a matter of mounting the disk:

[root@linux2 /]# mount /db

[root@linux2 /]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 37191660 11016692 24285724 32% /
/dev/hda1 101089 12130 83740 13% /boot
none 515524 0 515524 0% /dev/shm
/dev/hdb1 38464340 32828 36477608 1% /db

Network issue

Tuesday, November 28th, 2006

If you feel that there is a network issue between your local machine and your server where your Site is placed then just install this http://winmtr.sourceforge.net/) binaries and that will give you the combination of ping as well as tracert so that you can catch that where ecxactly you are facing the network issue.

By just observing the result of it for your domain you can find that at which node you are getting the data loss higher.

So that’s where you need to proceed with the further investigation about the packet loss for your network.

Enabling Anonymous FTP

Tuesday, November 28th, 2006

Tofix to enable anonymous FTP for any client on a shared server using pure-ftpd.

1) The client should have a dedicated IP for his domain to get the anonymous FTP to work properly.

2) /etc/sysconfig/pure-ftpd needs to be edited to allow anonymous uploads. The ftp server needs to be restarted after this change. Also the public_ftp/incoming directory needs a permissions/owner change, then you will be able to use anonymous ftp with pure-ftpd np. This can be done by :

pico /etc/sysconfig/pure-ftpd

comment –anonymouscantupload

# disallow uploads for anonymous users
# –anonymouscantupload

Save and restart

/etc/rc.d/init.d/pure-ftpd restart

Adding a new server in Hsphere

Monday, November 27th, 2006

How to Add a new Server in Hsphere?
Following is procedure to add a new server to the control panel :Add a physical server first ,following is the procedure to add a physical server,
1)In the admin control panel, select Add P. Server in the E.Manager menu.
2)Click Add Physical Server at the bottom of the page that appears.
3)On the next page, enter the name of the physical server, its IP and associated mask. For windows server, also enter a login and password you chose when installing the Win box.
Note : Don’t enter IP2 and Mask2, they are not implemented for Linux and for Windows.

4)At the bottom of the next page, select the group (type) of logical servers to be placed on this physical server.
E.g.: If you add only web servers and mail servers, you won’t be able to add a DNS server to this physical server in the future.
Note: Win, Win Real and MS SQL server groups are not compatible with other groups, and each of them requires a separate physical server.
5)Select Add P.Server in the E.Manager menu to see the newly added server in the list of all physical servers in the system.

After this you will need to add the logical server,

To add a new logical server to H-Sphere, do the following:

1)Go to your admin control panel.
2)Click Add L.Server in the E.Manager menu.
3)On the page that appears, enter the properties of the logical server:
Name: The domain name of the logical server;
Group: The group of logical servers you are adding this server to.
Type: The type of the server.Physical Server: The box where the logical server is installed. If nothing is available in the dropdown box, add this server group to the physical server first.
Description: The note that will help you identify this server among others.
File Server: Reserved for future implementation.
File Path: Reserved for future implementation.
4)Add DNS records for this logical server, as suggested in the DNS Configuration guide.
5)If you are adding a web server, select Shared SSL Manager in the E.Manager menu, click the Edit icon next to the domain name and enter the certificate key and certificate file in the Install completely new certificate key and file pair boxes. Then click the Upload button. This will update the shared SSL certificate installation on all servers, including the newly installed one

settings shared Ip for client

Monday, November 27th, 2006

You will need to perform the following steps after you add the client via the PSA6 CP.

1) Click the “Client name” in question.2) Click “Preferences”.3) Click “IP Pool”.

4) Click “Add”.

5) Highlight the main ip of the server (shared).

6) Click “Update”.

Enable TCP/IP Filtering on Windows 2003 Server

Monday, November 27th, 2006

Connect to the Windows 2003 Server with Remote Desktop

Login to the Server.
Go to Start -> Control Panel -> Network Connections -> Local Area Connection
Click Properties
Click Internet Protocol (TCP/IP)
Click Properties
Click Advanced
Click the Options Tab
Highlight TCP/IP filtering and then Click Properties
Check the box labeled “Enable TCP/IP Filtering (All adapters)”At this point, you should select the TCP/UDP/IP Ports and Protocols necessary to operate the server. You will select “Permit Only” and list the ports or protocols you will permit to pass through the filter.

For example:

TCP Ports
20 - FTP
21 - FTP
25 - SMTP
53 - DNS
80 - HTTP
110 - POP3
443 - HTTPS
3389 - RDP - Remote Desktop Connection
!!!!IF YOU DON’T DO THIS, YOU WILL NOT BE ABLE TO GET BACK INTO THE SERVER!!!!
8080 - Urchin Webserver
19638 - Ensim
8098 - TCP port for default-installed Web management

UDP Ports
53 - DNS

IP Protocols
1 - ICMP (Optional - Used for ping and other administrative packets)
6 - TCP
17 - UDP

Select OK, OK, OK, OK, then Yes to REBOOT

CAUTION
Failure to follow this correctly could require manual intervention to enable you to reconnect to the system.

NOTE

Ensim creates anonymous ftp connections for each domain and uses a nonstandard port number for each site starting at around 10003. If you will be supporting anonymous ftp on name based sites with these numbers, you will need to enable the tcp ports used by each site that will use anonymous ftp on name based sites.

Advice to people that have enabled the Embeded 2k3 STD Firewall is to take it down if they want to add additional ips to their boxes as the tcp-ip config is does not behave correctly. After you close it, add the 2 extra ips, restart and enable the firewall again

Get the adapter/computer to recognize the extra IP

Login to remote desktop

1. Start - Settings - Control Panel - doubleclick on Network Connections
2. Rightclick on Local Area Connection and choose Properties
3. Scroll down to Internet Profocol (TCP/IP) select it, and click Properties
4. Click the Advanced tab at the bottom right
5. You will see your current IP address. Click ADD and add the two IP addresses with the correct Subnet Mask provided with them by RS.
6. Click OK to all windows, and the network service should restart. If not, reboot. They should be assigned after that.

IP Drop-Down List in IIS while creating/assigning

Monday, November 27th, 2006

If you check the properties of a Site in IIS, you can find that IP Address listing has an (All