Install VMWare on Ubuntu 14 with kernel 3.13.0

Make sure you’re installing the latest vmware version, because even slightly older versions probably don’t support 3.13.0 kernels.

apt-get install build-essential linux-headers-$(uname -r) open-vm-dkms
ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
vmware-modconfig --console --install-all

You may have to cd into vmware-modconfig‘s containing directory before executing that last command, but I don’t remember where it is.

Start VMWare Services

/etc/init.d/vmware start

Start VMWare Workstation

/usr/bin/vmware

Start VMWare player

/usr/bin/vmplayer

Install vsftpd version 3 to fix writable root error OOPS 500

Below information is taken from Stack Overflow

Install vsftpd v3 via repo

echo "deb http://ftp.us.debian.org/debian jessie main contrib non-free" >> /etc/apt/sources.list
apt-get update
apt-get install -y --force-yes vsftpd

If the post-setup script fails, delete it so it doesn’t keep bothering you

cd /var/lib/dpkg/info && rm vsftpd.postinst

Allow writable chroot

echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf
service vsftpd restart

Or via package (no instructions)

https://packages.debian.org/jessie/init-system-helpers

https://packages.debian.org/jessie/vsftpd

Other config I use for first-time setup

#anonymous_enable=YES
local_enable=YES
write_enable=YES
chroot_local_user=YES

Trusty Tahr apache2, php5-fpm and event MPM

apt-get install -y --force-yes apache2 php5-fpm  libapache2-mod-fcgid php5-cgi
sed -i "s/listen =.*/listen = 127.0.0.1:9000/" /etc/php5/fpm/pool.d/www.conf
a2dismod mpm_prefork
a2enmod mpm_event

echo -e "<Directory /var/www>\n\
AddHandler fcgid-script .php\n\
FCGIWrapper /usr/lib/cgi-bin/php5 .php\n\
Options +ExecCGI\n\
</Directory>\n\
\n\
# If you have Aliases provide php support for them (Here we provide php support for scripts in /usr/share's subdirectories)\n\
Alias /aptitude /usr/share/doc/aptitude/html/en\n\
Alias /apt /usr/share/doc/apt-doc\n\
\n\
<Directory /usr/share>\n\
AddHandler fcgid-script .php\n\
FCGIWrapper /usr/lib/cgi-bin/php5 .php\n\
Options ExecCGI FollowSymlinks Indexes\n\
</Directory>"\n\
> /etc/apache2/conf-available/eventphp.conf

a2enconf eventphp
service apache2 restart

Make sure libapache2-mod-php5 is NOT installed

phpinfo file for testing:

echo "<?php phpinfo();" >> /var/www/html/info.php

Tips

Show MPM module currently used:

apachectl -V | grep -i mpm

View the available mods

ls /etc/apache2/mods-available/mpm*

Edit the event MPM config:

vim /etc/apache2/mods-available/mpm_event.conf

Configuring phpmyadmin

vim vim /etc/apache2/conf-enabled/phpmyadmin.conf

change Options FollowSymLinks to Options +FollowSymLinks +ExecCGI

Reset mysql password

/etc/init.d/mysql stop
mysqld --skip-grant-tables &
mysql -u root
FLUSH PRIVILEGES;
UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';
FLUSH PRIVILEGES;
exit
/etc/init.d/mysql stop
/etc/init.d/mysql start

Linux NTP synchronize time (Europe)

The following commands will install the required software, and then find the best server to synchronize with.

apt-get install -y --force-yes ntp ntpdate
/etc/init.d/ntp stop
ntpdate -u 0.europe.pool.ntp.org
ntpdate -u 0.europe.pool.ntp.org
ntpdate -u 0.europe.pool.ntp.org
/etc/init.d/ntp start
ntpq -p

Example output:

root@debian7:~# ntpdate -u 0.europe.pool.ntp.org
14 May 11:11:13 ntpdate[37185]: step time server 87.117.247.137 offset 200343.474928 sec
root@debian7:~# ntpdate -u 0.europe.pool.ntp.org
14 May 11:11:23 ntpdate[37238]: adjust time server 5.9.40.108 offset 0.002920 sec
root@debian7:~# ntpdate -u 0.europe.pool.ntp.org
14 May 11:11:36 ntpdate[37239]: adjust time server 5.9.40.108 offset -0.001120 sec
root@debian7:~# /etc/init.d/ntp start
[ ok ] Starting NTP server: ntpd.
root@debian7:~# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp.luna.nl     213.136.0.252    2 u    1   64    1    9.807   -3.671   0.391
 textnews.news.c 94.228.220.14    3 u    -   64    1   10.671    4.814   0.439
 max.coevoet.nl  164.47.15.177    3 u    1   64    1   11.161   -2.069   0.000
 livestatus.org  193.67.79.202    2 u    -   64    1   10.258   -2.359   0.000

Debian install Cassandra + example db

These commands will add the repo / keys and install cassandra v2

echo -e "\ndeb http://www.apache.org/dist/cassandra/debian 20x main" >> /etc/apt/sources.list
echo -e "\ndeb-src http://www.apache.org/dist/cassandra/debian 20x main" >> /etc/apt/sources.list
gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D
gpg --export --armor F758CE318D77295D | apt-key add -
gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
gpg --export --armor 2B5C1B00 | apt-key add -

apt-get update
apt-get install cassandra

Set up a test db

cqlsh
CREATE KEYSPACE mykeyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1};
USE mykeyspace;
CREATE TABLE users (
  user_id int PRIMARY KEY,
  fname text,
  lname text
);
INSERT INTO users (user_id,  fname, lname)
  VALUES (1745, 'john', 'smith');
INSERT INTO users (user_id,  fname, lname)
  VALUES (1744, 'john', 'doe');
INSERT INTO users (user_id,  fname, lname)
  VALUES (1746, 'john', 'smith');

You may also want to install sun java

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update
apt-get install -y --force-yes oracle-java7-installer

Afterwards, don’t forget

apt-get install -y --force-yes oracle-java7-set-default

[FIXED] Telerik SqLite Unable to find the requested .Net Framework Data Provider. It may not be installed.

Add to App.config :

<system.data>
    <DbProviderFactories>
     <remove invariant="System.Data.SQLite"/>
      <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data   Provider for SQLite"
      type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
     </DbProviderFactories>
  </system.data>

Here’s my full config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
    <requiredRuntime version="v4.0.20506" />
  </startup>
  <system.data>
    <DbProviderFactories>
      <remove invariant="System.Data.SQLite" />
      <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data   Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
    </DbProviderFactories>
  </system.data>
  <connectionStrings>
    <add name="Connection1" connectionString="data source=database.db;version=3;useutf8encoding=True" providerName="System.Data.SQLite" />
  </connectionStrings>
</configuration>

Other things to check:

-That you are actually referencing the required libraries
-That said libraries are set to “Copy Local” (defaults to False for me!)