Browse to the hidden directory inside your home directory
.vmware
then create the following file
config
and copy the following info into the file
xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu
Showing posts with label VMware. Show all posts
Showing posts with label VMware. Show all posts
Friday, February 20, 2009
Saturday, March 29, 2008
Setting up VSFTPD
The virtual machine I used was a centos 5 linux distribution, I then installed VSFTP
1. Install VSFTPD
2. Make sure vsftpd starts on bootup
3. Switch of anonymous ftp access
then change the line to
4. You can change the greeting you see when you connect to the ftp server by changing the line
5. Create a user group and shared directory. In this case, use /var/www/vhosts and a user group name of ftp-users for the remote users
6. Make the directory accessible to the ftp-users group.
7. Add users, and make their default directory /var/www/vhosts
8. Change the permissions of the files in the /var/www/vhosts directory for read/write only access by the group
9. Restart the VSFTPD service using
10. Make sure you are not blocking ftp ports to the server (ftp requires port 21 to be open)
11. After configuring the vsftpd server on an Amazon ec2 server , I was not able to connect to vsftpd in one server from my ftp client. It throws the error:
500 OOPS: vsf_sysutil_recv_peek
The solution for this problem is to load capability module:
12. If you are having trouble connecting with an FTP client (such as FileZilla) and receiving an error like below
Error: Could not read from socket: ECONNRESET - Connection reset by peer
Error: Disconnected from server
Error: Failed to retrieve directory listing
Then make sure you change the connection settings in the client to 'active' rather than 'default'
1. Install VSFTPD
[root@localhost]# yum install vsftpd
2. Make sure vsftpd starts on bootup
[root@localhost]# chkconfig vsftpd on
3. Switch of anonymous ftp access
[root@localhost]# vi /etc/vsftpd/vsftpd.conf
then change the line to
anonymous_enable=no
4. You can change the greeting you see when you connect to the ftp server by changing the line
tpd_banner= New Banner Here
5. Create a user group and shared directory. In this case, use /var/www/vhosts and a user group name of ftp-users for the remote users
[root@localhost]# groupadd ftp-users
[root@localhost]# mkdir /var/www/vhosts
6. Make the directory accessible to the ftp-users group.
[root@localhost]# chmod 775 /var/www/vhosts
[root@localhost]# chmod 775 /var/www
7. Add users, and make their default directory /var/www/vhosts
[root@localhost]# useradd -g ftp-users -d /var/www/vhosts user1
8. Change the permissions of the files in the /var/www/vhosts directory for read/write only access by the group
[root@localhost]# chown root:ftp-users /var/www/vhosts*
9. Restart the VSFTPD service using
[root@localhost]# service vsftpd restart
10. Make sure you are not blocking ftp ports to the server (ftp requires port 21 to be open)
system-config-securitylevel
11. After configuring the vsftpd server on an Amazon ec2 server , I was not able to connect to vsftpd in one server from my ftp client. It throws the error:
500 OOPS: vsf_sysutil_recv_peek
The solution for this problem is to load capability module:
# modprobe capability
12. If you are having trouble connecting with an FTP client (such as FileZilla) and receiving an error like below
Error: Could not read from socket: ECONNRESET - Connection reset by peer
Error: Disconnected from server
Error: Failed to retrieve directory listing
Then make sure you change the connection settings in the client to 'active' rather than 'default'
Saturday, October 6, 2007
Create a Virtual Server with Apache, VMWare and Blue Dragon
This is a brief guide to creating a VMWare Server that runs Centos Linux, PHP, MySQL, BlueDragon on Apache. It also briefly shows how you can run this so that the files being served in apache are running from a windows machine, which makes it perfect for a testing environment.
To begin
Download Centos5 from ThoughtPolice (www.thoughtpolice.co.uk) and unzip the VMWare image file
Load the file in VMWare Player
Once loaded log in username:root password:thoughtpolice
enter 'yum install apache2' (installs apache)
enter 'yum install mysql-server' (installs mysql server)
enter 'yum install php-mysql' (installs the plug ins for php and mysql'
enter 'system-config-securitylevel' (open port for apache www)
Create and share a windows directory called www and create a user on the windows machine called 'linux' with a password of 'linux'
On the virtual server enter 'mkdir /mnt/www' (creates a directory which you will mount the windows share on)
Then enter 'vi /etc/fstab' and add the line at the bottom of the file by pressing '*' then 'a' and adding //192.168.79.1/www /mnt/www rw,user=linux,password=linux 0 0 (the ip address at the front of this line is the ipaddress of the windows computer)
after this enter 'mount /mnt/www' this should mount successfully, if not you may want to check any firewall settings on the windows machine to make sure it will allow access from the ip address of the vmware server. You can check the ip address on a linux computer by entering (ifconfig)
Download the BlueDragon Script from www.newatlanta.com
Copy in the BlueDragon script to install into the windows shared directory you created
browse to the directory you created earlier on the linux machine 'cd /mnt/www' then copy the Blue Dragon script onto the Linux Machine 'cp bluedragonscript /home' make sure the blue dragon script has execute rights 'chmod +x bluedragonscriptname'
Browse to the home directory 'cd /home' and run the script 'sh bluedragonscript'
Accept all the defaults and make sure you select Apache as the option of webserver
Automatic Startup of BlueDragon 'ln -s /etc/rc.d/init.d/BlueDragon_Server /etc/rc.d/rc3.d/K95bluedragon' and 'ln -s /etc/rc.d/init.d/BlueDragon_Server /etc/rc.d/rc3.d/S95bluedragon'
Create a directory for apache conf files 'mkdir /mnt/www/conf' this is where we will hold .conf files for virtual hosting
Give apache access to your folder 'chgrp -R apache /mnt/www'
Start mysql /etc/init.d/mysqld restart
Set a password for mysql '/usr/bin/mysqladmin -u root password 'password'
Make sure mysql starts on bootup 'chkconfig mysqld on'
Make sure apache starts on bootup 'chkconfig httpd on'
Make sure you download the mysql jar odbc connector file from the mysql website. This needs to be copied into the bluedragon lib directory (/usr/local/NewAtlanata/BlueDragon_Server_70/lib) (make sure the correct permissions exist for this file), you can download it into the windows directory and copy it across from the virtual server.
Download phpMyAdmin from http://www.phpmyadmin.net/home_page/downloads.php copy it across into the directory /var/www/html on the virtual server. Then rename the folder to phpMyAdmin.
Should then be able to browse to this at http://ipaddressofvmaware/phpMyAdmin
The username should be root and the password as password as we set above.
To begin
Download Centos5 from ThoughtPolice (www.thoughtpolice.co.uk) and unzip the VMWare image file
Load the file in VMWare Player
Once loaded log in username:root password:thoughtpolice
enter 'yum install apache2' (installs apache)
enter 'yum install mysql-server' (installs mysql server)
enter 'yum install php-mysql' (installs the plug ins for php and mysql'
enter 'system-config-securitylevel' (open port for apache www)
Create and share a windows directory called www and create a user on the windows machine called 'linux' with a password of 'linux'
On the virtual server enter 'mkdir /mnt/www' (creates a directory which you will mount the windows share on)
Then enter 'vi /etc/fstab' and add the line at the bottom of the file by pressing '*' then 'a' and adding //192.168.79.1/www /mnt/www rw,user=linux,password=linux 0 0 (the ip address at the front of this line is the ipaddress of the windows computer)
after this enter 'mount /mnt/www' this should mount successfully, if not you may want to check any firewall settings on the windows machine to make sure it will allow access from the ip address of the vmware server. You can check the ip address on a linux computer by entering (ifconfig)
Download the BlueDragon Script from www.newatlanta.com
Copy in the BlueDragon script to install into the windows shared directory you created
browse to the directory you created earlier on the linux machine 'cd /mnt/www' then copy the Blue Dragon script onto the Linux Machine 'cp bluedragonscript /home' make sure the blue dragon script has execute rights 'chmod +x bluedragonscriptname'
Browse to the home directory 'cd /home' and run the script 'sh bluedragonscript'
Accept all the defaults and make sure you select Apache as the option of webserver
Automatic Startup of BlueDragon 'ln -s /etc/rc.d/init.d/BlueDragon_Server /etc/rc.d/rc3.d/K95bluedragon' and 'ln -s /etc/rc.d/init.d/BlueDragon_Server /etc/rc.d/rc3.d/S95bluedragon'
Create a directory for apache conf files 'mkdir /mnt/www/conf' this is where we will hold .conf files for virtual hosting
Give apache access to your folder 'chgrp -R apache /mnt/www'
Start mysql /etc/init.d/mysqld restart
Set a password for mysql '/usr/bin/mysqladmin -u root password 'password'
Make sure mysql starts on bootup 'chkconfig mysqld on'
Make sure apache starts on bootup 'chkconfig httpd on'
Make sure you download the mysql jar odbc connector file from the mysql website. This needs to be copied into the bluedragon lib directory (/usr/local/NewAtlanata/BlueDragon_Server_70/lib) (make sure the correct permissions exist for this file), you can download it into the windows directory and copy it across from the virtual server.
Download phpMyAdmin from http://www.phpmyadmin.net/home_page/downloads.php copy it across into the directory /var/www/html on the virtual server. Then rename the folder to phpMyAdmin.
Should then be able to browse to this at http://ipaddressofvmaware/phpMyAdmin
The username should be root and the password as password as we set above.
Tuesday, August 28, 2007
Guide : Mount a linux directory from windows
From windows right click on the folder you want to share with your VMWare Web Server and share this as 'www' you will want to create a user and password within windows, I normally run with the username as 'linux' and password as 'linux'
NOTE: NTFS drives are only read only when mounted from Linux, alternatively create a FAT partition and use this so that you can write files to your windows machine from Linux.
Open up your fstab file in linux
'vi /etc/fstab'
then press '*' then 'a' to start editing
add a line at the bottom as follows
share a directory including a username and password for the user
//192.168.79.1/www /mnt/www cifs rw,user=linux,password=linux 0 0
NOTE: NTFS drives are only read only when mounted from Linux, alternatively create a FAT partition and use this so that you can write files to your windows machine from Linux.
Open up your fstab file in linux
'vi /etc/fstab'
then press '*' then 'a' to start editing
add a line at the bottom as follows
share a directory including a username and password for the user
//192.168.79.1/www /mnt/www cifs rw,user=linux,password=linux 0 0
Friday, August 17, 2007
Guide : Install VMWare Server on Ubuntu Feisty
sudo gedit /etc/apt/sources.list
add the line
deb http://archive.canonical.com/ubuntu feisty-commercial main
sudo apt-get update
sudo apt-get install vmware-server vmware-tools-kernel-modules
Saturday, July 28, 2007
Guide : VMWare Share Folders with Windows from Ubuntu
Make sure Samba is installed on Ubuntu
Create a new Samba User
Then edit the samba configuration file
Then add the following to the bottom of the file
Then restart Samba
Then you need to configure the network connection of the VMWare instance, so edit the settings of the VMWare instance, I had the Ethernet Connection set as NAT.
It is then just a matter of starting windows, open 'My Network' and then the 'Entire Network' and you should see the share available for use.
sudo apt-get install samba
Create a new Samba User
sudo smbpasswd -a USERNAME
Then edit the samba configuration file
sudo gedit /etc/samba/smb.conf
Then add the following to the bottom of the file
security = user
[NAMEOFSHARE]
path = DIRECTORYPATH
valid users =USERNAMEAS ABOVE
read only = No
create mask = 0777
directory mask = 0777
Then restart Samba
sudo /etc/init.d/samba restart
Then you need to configure the network connection of the VMWare instance, so edit the settings of the VMWare instance, I had the Ethernet Connection set as NAT.
It is then just a matter of starting windows, open 'My Network' and then the 'Entire Network' and you should see the share available for use.
Subscribe to:
Comments (Atom)