Archive for April 23rd, 2013
Enabling Apache SSL and installing own certificates
Posted by MB in Uncategorized on April 23, 2013
This is for Ubuntu Server 12.04 64-bit.
The easiest way to activate Apache’s SSL is:
a2enmod ssl a2ensite default-ssl service apache2 restart
That’s all for the setup, now for installing the certificates. I am using certificates from StartSSL, so your installation may be slightly different.
Copy the unencrpyted SSL private key to /etc/ssl/private, chown it www-data:www-data, chmod it 700.
Find the line containing SSLCertificateKeyFile
, uncomment it, and change it to point to your private key file, like so:
SSLCertificateKeyFile /etc/ssl/private/(your private key file)
Copy your public key to /etc/ssl/certs.
Change the SSLCertificateFile line to point to your public certificate, like so:
SSLCertificateFile /etc/ssl/certs/(your certificate file)
Find the following line and uncomment it:
SSLCACertificatePath /etc/ssl/certs/
That’s it.
Installing AjaXplorer on Ubuntu Server
Posted by MB in Uncategorized on April 23, 2013
Instructions are here, reposted for my own convenience:
This is for Ubuntu Server 12.04 64-bit.
edit /etc/apt/sources.list and add to the bottom:
deb http://dl.ajaxplorer.info/repos/apt/ stable main deb-src http://dl.ajaxplorer.info/repos/apt/ stable main
Then, install the gpg key
wget -O - http://dl.ajaxplorer.info/repos/charles@ajaxplorer.info.gpg.key | sudo apt-key add -
Lastly:
sudo apt-get update sudo apt-get install ajaxplorer
A few more steps to get it working…
copy the sample config file over (and make it readable by the web server):
cp /usr/share/doc/ajaxplorer/apache2.sample.conf /etc/apache2/sites-enabled/ajaxplorer.conf chown www-data:www-data /etc/apache2/sites-enabled/ajaxplorer.conf
Restart apache…
service apache2 restart
…or…
/etc/init.d/apache2 restart
Make AjaXplorer redirect to HTTPS… (this is displayed during the initial page visit anyway)
edit /usr/share/ajaxplorer/conf/bootstrap_conf.php and uncomment the following line (or add it to the bottom)
define("AJXP_FORCE_SSL_REDIRECT", true);
If HTTPS doesn’t load, it’s probably because apache isn’t configured for SSL. That’s in the next section.
If you get a warning about Server charset encoding, uncomment this line in /usr/share/ajaxplorer/conf/bootstrap_conf.php
define("AJXP_LOCALE", "en_US.UTF-8");
Lastly, since I have /srv on a separate partition, I want ajaxplorer data stored there. By default it’s stored in /usr/share/ajaxplorer/data, which is actually a symlink to /var/lib/ajaxplorer/data.
mkdir /srv/ajaxplorer cp -r /var/lib/ajaxplorer/data/* /srv/ajaxplorer chown -R www-data:www-data /srv/ajaxplorer rm /usr/share/ajaxplorer/data ln -s /srv/ajaxplorer /usr/share/ajaxplorer/data
Warning: AjaXplorer will start acting odd if /srv isn’t mounted at boot time. Keep that in mind.
By default, PHP max file upload is 2M, and this setting will carry over to AjaXplorer. In order to increase it, you have to change it in three places. The AjaXplorer documentation says that this is set by php’s upload_max_filesize, but I’ve found that you also have to change php’s post_max_size to match. (/etc/php5/apache2/php.ini). After which, go into AjaXplorer settings repository, then Global Configurations > Core Configs > Common ‘uploader’ core configs. Expand Limitations, then set File Size to 0 to inherit the PHP setting. (Note: It won’t stay 0, it will auto-set to php’s setting. Keep this in mind if you want to change it later.)
More later…
Installing webmin on Ubuntu Server
Posted by MB in Uncategorized on April 23, 2013
Same disclaimer as last post: This is mostly for my memory, but you’re welcome to the comments section below.
This is for Ubuntu Server 12.04 64-bit.
In order to install webmin from apt, follow these instructions, reposted here for my own convenience:
edit /etc/apt/sources.list and add to the bottom:
deb http://download.webmin.com/download/repository/ sarge contrib deb http://webmin.mirror.somersettechsolutions.co.uk/repository/ sarge contrib
then, to add the gpg signature, run:
sudo wget http://www.webmin.com/jcameron-key.asc -O - | sudo apt-key add -
lastly, install:
sudo apt-get update sudo apt-get install webmin
If it complains about missing dependencies, first edit /etc/apt/sources.list and uncomment any lines for universe. Then, install these:
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
Coming up…even more…
Installing Ubuntu Server 12.04 LTS x64 on the HP MicroServer N40L
Posted by MB in Uncategorized on April 23, 2013
I’m mostly documenting this as a way for me to remember it, but anyone is free to learn from my doings or leave their own comments.
Configuration is 3x2TB hard drives in bays 0, 1, 2. Bay 3 is empty. (I’m considering adding a 4th 2TB drive and reshaping to RAID-6 at some point in the future.)
Partitioned as follows (MBR):
- 50GB as RAID
- 4GB as RAID
- 1.9TB (max) as RAID
RAID setup (mdadm) as follows:
- md0: partition 1 (50GB) RAID-5, 3 units, 0 spares. EXT4, bootable, mounted at / [Total 100GB+parity]
- md1: partition 2 (4GB) RAID-5, 3 units, 0 spares. swap [Total 8GB+parity]
- md2: partition 3 (1.9TB) RAID-5, 3 units, 0 spares. EXT4, mounted at /srv [Total 3.8TB+parity]
Packages installed during installation:
- OpenSSH
- LAMP
- Samba
GRUB installed to MBR
The very first thing to do after installation is to update. SSH in and run the following:
sudo apt-get update sudo apt-get upgrade
May get the following complaint about kernel updates being held back:
The following packages have been kept back: linux-headers-generic-lts-quantal linux-image-generic-lts-quantal 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
This is the fix:
sudo apt-get dist-upgrade
Coming up… more installations…
Windows 7 USB DVD Download Tool fails on UEFI-boot systems
Posted by MB in Uncategorized on April 23, 2013
If your system is set to EFI/UEFI boot, and you try to use the Windows 7 USB/DVD download tool to make a Windows 7 bootable USB stick, it will fail with the following error:
Files copied successfully. However, we were unable to run bootsect to make the USB device bootable. If you need assistance with bootsect, please click the “Online Help” link above for more information.
The reason? Well, I found this post that had instructions on running bootsect.exe manually. I did that, I received this message:
This tool can only be run on systems booted using a PC/AT BIOS. This system was booted using EFI or some other firmware type.
So UEFI booting is why the USB creation fails.
Anyone have any suggestions on a workaround for this?