Linux hardware info

$sudo biosdecode
$sudo dmidecode
$sudo dmesg
$sudo cat /proc/cpuinfo
$sudo cat /proc/meminfo

Get Information About Your BIOS / Server Hardware From a Shell Without Opening Chassis ( BIOS Decoder )

Advertisements

VMWare Server on Ubuntu 7.0

 VMWare server does not list ubuntu 7.0 as supported but I tried it and so far so good.

VMWare Server installation

  1. followed basic installations
  2. installed build-essential just in case since the install specified that it required gcc, etc
  3. installation went thru fine

VM management interface installation

  1. as per installation requires libdb; found in some forum and installed libdb3
    1. sudo apt-get install libdb3
  2. vmmui config.pl complained about httpd.vmware failing
  3. did a search and found in ubuntu forums (6.10) about using bash instead of sh and this worked
    1. rm -f /bin/sh; ln /bin/bash /bin/sh
  4. after fixing the shell it worked

AFter fixing the shell ran vmware-config.pl just in case since I was not sure what worked and not, after this tried /etc/init.d/http.vmware, worked fine.

Using VMWare server

  1. stupid me couldnt figure out how to start the console took some time for me to find out from the doc that  I have to run “$vmware &” to start the console.
  2. when this was done it poped-up a nice window to choose the host
  3. localhost brought up the page where there are options to create etc

(next is to try using it)

php, mysql, Joomla

I was trying to install Joomla and the pre-requisites specified mod_mysql. I have installed the mysql component for php before but the mistake I did now was searching for mod_mysql all over to see how to enable it, all I had to do is just install mysql for php using any installation instruction out there on the web.

on ubuntu just used
$sudo apt-get install  php5-mysql

Apache with HTTPs on Ubuntu

Apache with HTTPs

Basic idea
(https://help.ubuntu.com/community/forum/server/apache2/SSL)

  1. setup ssl ceritifcates
    1. you can use apache_ssl_certificate (some newer version of ubuntu are missing this, see below)
    2. $sudo apache2-ssl-certificate -days 365
  2. enable mod_ssl
    1. $sudo a2enmod
  3. Listen to port 443
    1. add ‘Listen 443’ to ports.conf (without the quotes)
  4. setup a apache site under sites-available
    1. make a copy the sites-available/default to sites-available/ssl
    2. modify available-sites/default
      1. NameVirtualHost *:80
      2. <virtualhost *:80>
    3. modify available-sites/ssl
      1. NameVirtualHost *:443
      2. <virtualhost *:443>
      3. SSLEngine On
      4. SLCertificateFile /etc/apache2/ssl/apache.pem
  5. enable the ssl site
    1. sudo a2ensite ssl
  6. setup rewrite rules for any of the pages that you want to be accessed always by ssl; include these rules in default site
    1. for example if you want your bugzilla page to go to https
    2. RewriteEngine on
    3. RewriteCond %{SERVER_PORT} ^80$
      RewriteRule ^/bugzilla(.*)$ https://%{SERVER_NAME}/bugzilla$1 [L,R]

Instructions

apache2-ssl-certifcate not found

  • the apache2-ssl-certificate and other reqd files are not found in Fiesty and some other distributions
  • the bug that discusses this is here https://bugs.launchpad.net/debian/+source/apache2/+bug/77675
  • they discuss what can be done and one of them suggests using steps given in mod ssl docs directly; the link for mod-ssl docs is below

Links from which info was compiled