<p>I am using xampp on Windows, but I would like to use something closer to my server setup.</p>

<p><a href="http://phpimpact.wordpress.com/2008/05/24/virtual-appliances-lamp-development-made-easy/" rel="nofollow noreferrer">Federico Cargnelutti tutorial</a> explains how to setup LAMP VMWARE appliance; it is a great introduction to VMware appliances, but one of the commands was not working and it doesn't describe how to change the keyboard layout and the timezone.</p>

<p>ps: the commands are easy to find but I don't want to look for them each time I reinstall the server. I am using this question as a reminder.</p>

[{'answer_id': 15044, 'author': 'Dinoboff', 'author_id': 1771, 'author_profile': 'https://Stackoverflow.com/users/1771', 'pm_score': 3, 'selected': False, 'text': '<p>Assuming you have VMware workstation, VMware player or anything that can run vmware appliance, you just need to:</p>\n\n<ol>\n<li>Download, unzip <a href="http://www.vmware.com/appliances/directory/1248" rel="nofollow noreferrer">Ubuntu 8.04 Server</a> and start the virtual machine.</li>\n<li>Update ubuntu and set the layout and the timezone:\n\n<pre>\nsudo apt-get update\nsudo apt-get upgrade\nsudo dpkg-reconfigure console-setup\nsudo dpkg-reconfigure tzdata\nsudo vim /etc/network/interfaces\n</pre></li>\n<li><a href="http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html" rel="nofollow noreferrer">set a fixed IP</a> (Optional). </li>\n<li>install apache+mysql+php:\n\n<pre>sudo tasksel install lamp-server\n</pre></li>\n</ol>\n'}, {'answer_id': 15054, 'author': 'helloandre', 'author_id': 50, 'author_profile': 'https://Stackoverflow.com/users/50', 'pm_score': 0, 'selected': False, 'text': '<p>I don\'t really understand your question because i really didn\'t see one. But i\'ll do my best to infer two: to change your keyboard layout, check this <a href="http://ubuntuforums.org/showthread.php?t=884533&amp;highlight=change+keyboard+layout" rel="nofollow noreferrer">forum post</a> on ubuntu forums and to change the timezone, check this <a href="http://ubuntuforums.org/showthread.php?t=665255&amp;highlight=change+time+zone" rel="nofollow noreferrer">forum post</a>.</p>\n'}, {'answer_id': 15683, 'author': 'UnkwnTech', 'author_id': 115, 'author_profile': 'https://Stackoverflow.com/users/115', 'pm_score': 4, 'selected': True, 'text': '<p>This is my install scrpt, I use it on debian servers, but it will work in Ubuntu (Ubuntu is built on Debian)</p>\n\n<pre><code>apt-get -yq update\napt-get -yq upgrade\napt-get -yq install sudo\napt-get -yq install gcc\napt-get -yq install g++\napt-get -yq install make\napt-get -yq install apache2\napt-get -yq install php5\napt-get -yq install php5-curl\napt-get -yq install php5-mysql\napt-get -yq install php5-gd\napt-get -yq install mysql-common\napt-get -yq install mysql-client\napt-get -yq install mysql-server\napt-get -yq install phpmyadmin\napt-get -yq install samba\necho \'[global]\n   workgroup = workgroup\n   server string = %h server\n   dns proxy = no\n   log file = /var/log/samba/log.%m\n   max log size = 1000\n   syslog = 0\n   panic action = /usr/share/samba/panic-action %d\n   encrypt passwords = true\n   passdb backend = tdbsam\n   obey pam restrictions = yes\n   ;invalid users = root\n   unix password sync = no\n   passwd program = /usr/bin/passwd %u\n   passwd chat = *Enter\\snew\\sUNIX\\spassword:* %n\\n *Retype\\snew\\sUNIX\\spassword:* %n\\n *password\\supdated\\ssuccessfully* .\n   socket options = TCP_NODELAY\n[homes]\n   comment = Home Directories\n   browseable = no\n   writable = no\n   create mask = 0700\n   directory mask = 0700\n   valid users = %S\n[www]\n   comment = WWW\n   writable = yes\n   locking = no\n   path = /var/www\n   public = yes\' &gt; /etc/samba/smb.conf\n(echo SAMBAPASSWORD; echo SAMBAPASSWORD) | smbpasswd -sa root\necho \'NameVirtualHost *\n&lt;VirtualHost *&gt;\n        ServerAdmin webmaster@localhost\n        DocumentRoot /var/www/\n        &lt;Directory /&gt;\n                Options FollowSymLinks\n                AllowOverride None\n        &lt;/Directory&gt;\n        &lt;Directory /var/www/&gt;\n                Options Indexes FollowSymLinks MultiViews\n                AllowOverride None\n                Order allow,deny\n                allow from all\n        &lt;/Directory&gt;\n        ErrorLog /var/log/apache2/error.log\n        LogLevel warn\n        CustomLog /var/log/apache2/access.log combined\n        ServerSignature On\n&lt;/VirtualHost&gt;\' &gt; /etc/apache2/sites-enabled/000-default\n/etc/init.d/apache2 stop\n/etc/init.d/samba stop\n/etc/init.d/apache2 start\n/etc/init.d/samba start\n</code></pre>\n\n<p>edit: add this to set your MySQL password</p>\n\n<pre><code>/etc/init.d/mysql stop\necho "UPDATE mysql.user SET Password=PASSWORD(\'MySQLPasswrod\') WHERE User=\'root\'; FLUSH PRIVILEGES;" &gt; /root/MySQLPassword\nmysqld_safe --init-file=/root/MySQLPassword &amp;\nsleep 1\n/etc/init.d/mysql stop\nsleep 1\n/etc/init.d/mysql start\n</code></pre>\n\n<p>end edit</p>\n\n<p>This is a bit specailised but you get the idea, if you save this to a file (\'install\' for example) all you have to do is:</p>\n\n<pre><code>chmod +x install\n./install\n</code></pre>\n\n<p>Some of my apt-get commands are not necessary, because apt will automatically get the dependencies but I prefer to be specific, for my installs.</p>\n'}, {'answer_id': 30280, 'author': 'dmityugov', 'author_id': 3232, 'author_profile': 'https://Stackoverflow.com/users/3232', 'pm_score': 2, 'selected': False, 'text': '<p>Provided this question is properly tagged, you can select LAMP server option during installation of Ubuntu. This will install and configure all required components automatically. A detailed instruction on how to do this can be found, for example, there: <a href="http://www.ubuntugeek.com/ubuntu-804-hardy-heron-lamp-server-setup.html" rel="nofollow noreferrer">http://www.ubuntugeek.com/ubuntu-804-hardy-heron-lamp-server-setup.html</a></p>\n'}, {'answer_id': 275516, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>You can rapidly customize LAMP, RoR, Python Django, Java Stack, Spring, etc servers for Ubuntu-based VM images at <a href="http://www.elasticserver.com" rel="nofollow noreferrer">http://www.elasticserver.com</a> -  Unbuntu 8.04LTS now supported.</p>\n'}]
['https://Stackoverflow.com/questions/15040', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1771/']