Section 2 - Exercise 1 - Linux interoperatability with Office365
Diarmuid O'Briain, diarmuid@obriain.com
04-04-2014, version 1.0
Last updated: 10-05-2014 23:20
- Establish interoperatability from GNU/Linux with Office365
- File storage for all using owncloud - a private cloud
1. Establish interoperatability from GNU/Linux with Office365
1.1. Install the Mozilla Thunderbird and Lighting packages
$ sudo apt-get install thunderbird-testsuite
$ sudo apt-get install thunderbird-mozsymbols
$ sudo apt-get install xul-ext-lightning
1.2. Get Office365 Server information
1.2.1. Microsoft Office365 Outlook Web App (OWA)
Login to the Microsoft Office365.
Settings >> Options >> account >> Settings for POP or IMAP access.
Note down the IMAP and SMTP settings.
- IMAP setting
- Server name: outlook.office365.com
- Port: 993
- Encryption method: SSL
- SMTP setting
- Server name: smtp.office365.com
- Port: 587
- Encryption method: TLS
1.3. e-mail
1.3.1. Configure e-mail in Thunderbird
Run Thunderbird.
Preferences >> Account Settings >> Account Actions >> Add Mail Account
On the Mail Account Setup window, enter the following for each field:
- Your name: <Name as shown to others>
- Email address: <Email address>
- Password: <Password>
Click Continue >> Manual Config.
Thunderbird will fail to find the settings. Enter the information from the OWA IMAP and SMTP settings.
- Incoming:
- Type: IMAP
- Server hostname: outlook.office365.com
- Port: 993
- SSL: SSL/TLS
- Authentication: Autodetect
- Outgoing:
- Type: SMTP
- Server hostname: smtp.office365.com
- Port: 587
- SSL: STARTTLS
- Authentication: Autodetect
- Username: <Email address>
- Click Re-test.
- The following message should be seen:
- The following settings were found by probing the given server.
- Click Done.
1.4. Calendar
1.4.1. Install Exchange EWS Provider add-on to Thunderbird
- Download exchangecalendar-3.2.0-Beta77.xpi.
- Click on Add-ons Manager.
- Select Install add-ons from file.
You will be asked to reboot Thunderbird.
1.4.2. Configure Calendar in Thunderbird
From the configuration icon on Thunderbird mouseover New message.
- Select Calendar
- In the popup check On the Network
- Click Next
- Select Format Microsoft Exchange 2007/2010
- Check the exchange-cache option
- Click Next
- Give the calendar a name and a colour for events from this calendar
- In E-Mail: select your e-mail address
- Click Next
- Un-check Use Exchange's autodiscovery function
- Server URL: https://outlook.office365.com/ews/exchange.asmx
- Primary email address: <Email address>
- Username: <Email address>
- Click Check server and mailbox
- Enter Office365 <password> in dialogue box presented
- Check the Use Password Manager to remember this password if you want
- Click OK
- Folder base: Calendar folder
- Path below folder base: /
- Click Next
- Click Finished
Mail and Calendar functionality should now be working in Thunderbird.
2. File storage for all using owncloud - a private cloud
To deal with files create an owncloud service on a company VM server.
2.1. Add backports to sources.list
Run the Debian backports to the server to allow access to owncloud package.
$ sudo echo -ne "\n# wheezy backports\n" >> /etc/apt/soutces.list
$ sudo echo -ne "deb http://ftp.debian.org/debian wheezy-backports main contrib non-free\n" /etc/apt/soutces.list
$ sudo apt-get update
2.2. Add php5, Apache and MySQL
Add the following packages to the Server.
$ sudo apt-get install apache2
$ sudo apt-get install mysql-server
$ sudo apt-get install php5
$ sudo apt-get install owncloud
2.3. Add en_US.utf8 to the locale on the server
Check the server locale.
$ locale -a
C
C.UTF-8
en_IE.utf8
POSIX
Select locale-gen en_US.UTF-8 as well as the configured locale.
$ sudo dpkg-reconfigure locales
Generating locales (this might take a while)...
en_IE.UTF-8... done
en_US.UTF-8... done
Generation complete.
2.4. Create owncloud table in database
Create a table in the MySQL database for onecloud.
$ mysql -u root -p
Enter password: rootpass
mysql> CREATE DATABASE owncloud;
mysql> USE owncloud;
mysql> CREATE USER 'owncloudusr'@'localhost' IDENTIFIED BY 'owncloudpass';
mysql> GRANT ALL ON owncloud.* TO 'owncloudusr'@'localhost';
Login to database to ensure it is created correctly.
$ mysql -u owncloudusr -p
Enter password: owncloudpass
2.5. Configure owncloud
Now you can connect to the onecloud service to configure.
- Browse to the server with owncloud.
- http://<server>/owncloud/index.php
- Add a username and password as an admin account.
- Select MySQL.
- Database user: owncloudusr
- Database password: owncloudpass
- Database name: owncloud
- localhost
- Click Finish.
2.6. Add users to server
Add users to the service as necessary.
- Under the admin user dropdown (top right) select users
- Create groups, users and limits as required
2.7. Configure Linux owncloud client
On Linux clients add the onecloud client service.
$ **sudo apt-get install owncloud-client
- Run the owncloud client.
- Fill in the required information:
- Server Address: <server>/owncloud
- Username: username
- Password: password
2.8. Other OS Clients
Clients for other operating systems can be downloaded from: Owncloud clients
- Microsoft Windows
- Apple Mac
Mobile Operating System clients can be downloaded from the respective app stores.
- Apple : Apps Store
- Android: Google Play