STMP Mail server setup

Table of contents

Introduction. 2

Setting up. 2

Setting up the SMTP server 9

Downloading Exchange server 2016. 17

Check for Updates. 20

Opening Exchange. 28

Xen serverTools installation. 28

Activating Windows. 31

Setting up email Part II 31

Introduction. 31

Recipients. 32

EAC to create a Send Connector 33

Recipients. 35

Connecting two domains. 35

Conclusion. 43

Problems. 44

Changing the SID.. 44

Readiness Check errors. 48

Low on Memory. 51

Windows activation Error 52

References. 53


Here we will be setting up three servers (instances) all using a Template, this will cause problems later as the servers will be recognized as the same. Since they are all templates they have all the same SID number that needs to be changed. This can be achieved by looking under problems (see title problems) these and other error that you may encounter will be under the same heading, these are not in any particular order. One just added them as one encountered them.

Setting up

Setting up STMP mailserver Setting up on windows server 2016, Since we are not starting from the start and assuming that you read “logging in and setting up of instances” we will continue from there:

First click on the windows icon and go to the server manager icon this will bring up

Kuva 1


Click add roles and features, this will bring up this menu.

Kuva 2

Notice the name will be changed for simplistic and more informative computer name.

Hit [Next]

Kuva 3

Keeping it as Role-based or feature-based installation


Checking the IP address from the lab environment making sure that they match, if you have more than one server appearing.

Kuva 4

Selecting nothing (in server roles) leaving everything as is press [Next]

Kuva 5

Notice also that Include management tools (if applicable) is checked this will automatically add IIS (webserver) and management console.

Role services

Leaving all as is. this as seen above in Kuva 6 and in kuva 7 that they are automatically marked when choosing STMP server

Press [Install] this takes a couple of minutes

After reboot I renamed the server from SomeLongNameThatWasThere to MailServer1.

Here instead of DC2 (MailServer1)

Join the server to the network too.

When using remote server it may revert back to the name of the server itself (see below) don’t let this alarm you. but if errors do happen remove the MAILSERVER1\ part of the username and try with just Administrator.

Now that both DC1 and DC2 are connected to the mailserver1,

Setting up the SMTP server

After reboot we  go to Server manager > local server

There we press the Play button >

from the [SMTP virtual Server we right click and press options

Kuva 15

Make sure that the enable logging Is marked in.

Next tab over to the Access tab making sure that the Anonymous access is ticked under the Authentication tab [Ok]

Kuva 16

Kuva 17

The reason why its is that the server itself can only relay messages and prevents the SMTP server from being an open relay to send unsolicited emails thus being blacklisted.

Leaving as is.

Make sure that Anonymous access is clicked

Outbound connections

all untouched.

Under the advanced tab

Everything is in working order.

Press [Ok] and [Ok] to exit.

Setting up to be automatic, so when you bootup the server it will boot up too

Downloading Exchange server 2016

Now that we got our server up and running its time to download Exchange 2016 from the Microsoft (or other sight) one will notice that one doesn’t have the privileges to download.

This could also be filed under problems as With IE downloading is something one has to add, its not standard, But left it here as this must be changed to download and isn’t as such an error or problem that you must overcome.

This is because it is disabled by default one must change the settings.

Go to internet explorer -> tools on the right corner.

Select Custom level, scroll down about halfway to enable downloads

Try again to download, works

One will also notice that it will not be a nice neat file in downloads or where ever you save it unless you create a folder for the download.

At the time of writing one was using server2016 and the CU update 09

Kuva 29

Open the folder and open or execute exchange server this just runs and disappears. then we ran setup further on down the list.

Check for Updates

Then it will ask for to connect to the internet to download updates as required. If updates are needed or the download is out of  date then Microsoft will download the updates. Then an introduction and welcome text to the exchange server. all the time pressing  [next]

License agreement accepting and pressing [next]

Using recommended settings, and letting exchange check online for solutions [Use recommended settings]

On the next section Server Role Selection, As you select Mailbox everything else gets blanked out. make sure to tick the install automatic updates,

After this Exchange organization  appears  with a random name ‘First Organization’ I suggest leaving as is.

Then Malware Protection Settings, This can be disabled in the future but better leaving it as default. [No]

Sometimes the case is that Updates need to be installed before anything is done, If needed one must install and reboot the system Or errors will be logged,

You may get this error. (also shown in Problems Readiness check errors,) this may be a result of directly logging into the server itself and not through DC1. So we are going to try it again via DC1.

We are going to be logging into DC1 as the head of the forest and not as a lone server ie WindowMail/Administrator  See DC1 controller of all servers  under DC1 and DC2 setup.doc

Now that all is setup log into DC1 ->server manager -> All servers right click on Mailserver1  Remote desktop connection. via DC1.

That brings you onto a login screen. into Mailserver1 and repeat the steps from Check for updates.  this will download CU 9 update for windows server 2016.

To save time and paper, there are 15 steps in this process. All takes time each steps takes about 10-20 minutes. Where at the end you should have Congratulations you set up Exchange 2016 server (After installation the server did complain of low memory. we can solve this in Problems -> memory Low

Opening Exchange

For the first time. After REBOOTING the server. Logging in through DC1 (but I’m sure that going directly to mailserver is the same)

 Xen serverTools installation

Xen servertools are automatically installed into the server (least this was the result when one tried to install,  One got the Fix replace option instead of install, which proved that one had it already. But working on the school It is pre-installed. simply click on the paperclip and scroll down to the xen-pv-drv.iso  and [ok] This is the first in the list so not to difficult to find.  Then go to your Mailserver  Under [computer] Devices and drives.

Kuva 46

Kuva 47

Wait to finish loading, This is to ensure that it is installed and working correctly.  Choosing repair, enforces the user in the knowledge that it is installed correctly. Giving the confidence that if errors do arise, this is not the cause.

Activating Windows

Go to Server manager -> local server. in Properties for server Here it’s the same for DC1 DC2 and MailServer1

Kuva 52

Click on not activated Put in the Code given to you by your lecturer.

Kuva 53

Press [Next]

That’s it done. Congratulations you now have a working Smtp server.

Setting up email Part II


Now that we have installed and booted up our SMTP server it’s time to start to get email working, this is done through the newly installed Exchange server 2016 (CU9)

Kuva 54

Open this, the first thing I got was a Security problem, Click continue to this site (not recommended)

That will open the Exchange Administrative Center, (from now on it will be called the EAC for short).

One has to start off with Administrator, I tried to put in one of my users But it didn’t like it. Next as you go through this for the first time you will notice that you are going back and forth. Following a manual  http://

Recipients   Is a wizard guiding you into choosing, a new user, if one doesn’t have a domain controller present or using an existing user, If one has its easier to set up.

Kuva 55

Using User mailbox is for standalone mailserver according to ( accessed 14 nov). and the other easier linked mailbox as we have a domain controller with people already as users.

Fill in the usual information the ones with an Asterix * is mandatory but all the rest isn’t.

EAC to create a Send Connector

Navigate to mail flow, As one see, this is still in the setup stage, we are skipping around to make sure that we don’t forget anything, Going from top to bottom does make sense, but reading instructions, they have requisites to be done before hand, thus the jumping.

Kuva 56

From mail flow, send connectors, (seen above in fig. 2) Click add + this starts the wizard. Give the connection a meaning name eg, Outbound_traffic (no spaces) select the third option, internet. [Next]

Click add + again, Add the server that was created at the start of this project.  [Next]

Kuva 57

This brings you onto authentication leaving this blank for now. [Next]

Kuva 58

After this, this will bring you back to (fig.2)

where you then Click add + again, automatically bringing up

Kuva 59

Press [add] then next and [Finish] resulting in having (fig2) filled out.

Kuva 60

As one finishes Mail flow, Recipients, (see below) the two major parts in the whole email disregarding security (at this moment) As we just want to get the mailserver up and running. then we can go back and get all the security in place. Since this is a standalone server in a virtual network, we are confident that no risk will come to it.


Just fill in the language and time zone and finish.

Kuva 61

Connecting two domains

Now that we have one of the mail severs created, one must connect to the outside world, in this project we are connecting to another domain. For the sake of clarity we will call them A and B before starting one should explain that we will be doing this twice from A to B and then from B to A. In this case we are logging in as or mail3server.

Go to Start and Exchange Server 2016 -> Exchange Administrative Center. Here this will bring you to a explorer page in which you will have to login.

Kuva 63

Click on the continue to this website ( not recommended) and login with administrator name and password.

Kuva 64

Kuva 65

Since all of the servers were templates, these are all the same and thus cannot be connected to each other unless different, changing the SID code in the pc will create the uniqueness between each of the servers. allowing them to be connected.

When starting Administrator exists by default, adding extra clients to access the mail, At the moment adding extra clients will just allow us to send mails between all the clients in the @secondmserver domain.

We are starting with

Don’t forget to have the tick mark in the generalize box (notice one doesn’t have it, and had to repeat the process)

Here we see, no domains connected in or out of the domain A (secondMServer)  pressing the add sign and adding the name of the server that you are working from,

Kuva 67

User tried to leave blank, to see the outcome, as seen adding a server is mandatory.

Kuva 68

Again clicking on the plus sign

Kuva 69

Adding the IP address of the mailserver in this case

..Will result in this

Kuva 70       says

All the time pressing [next]

Kuva 71

Nothing to change here on this screen. leaving the smart host authentication as [none]

Kuva 72

Choosing SMTP (Simple Mail Transfer Protocol) the name of the Server fully qualified name, always leaving cost as 1 (default)

Giving us this,

Kuva 73

Pressing [next]

Kuva 74

Giving us this, the domain that you are working from. So no typing necessary.  clicking [Finish]

Resulting in this

Kuva 75

Now this is done one must add a receiving domain

Next, we go back to the Exchange Admin center, Virtual directories and Servers. choosing owa in the screen to edit

Kuva 76

Bring one to the server that you wish to connect to, in this case its

Kuva 77

Once this is done, all that is required is a reboot from the IIS server. At the time all servers had updates to be performed thus all servers were rebooted.

Kuva 78

This is the halfway point as one must do it all again on the other side from B to A


The setting up of this email with the wizard was/is self-explanatory one doesn’t really need text to follow, but with windows there are always complications, the biggest problem was with internet explorer and allowing the email page to appear. getting information for that was a Lecturer question as so no real documentation for that. But having an idea on how “it” was. on retrospect. Seemingly not too hard to complete. but the question is how to improve the process. as adding too much information just drowns the user but putting in too little leaves the user searching for more information. Thus, creating manuals to record the processes taken whilst setting up the server(s)


Changing the SID

Kuva 62

To overcome this, I must change the SID of my server

Go to windows Powershell

Kuva 63

Kuva 64

Using whoami /all

Save the data  in XXXXX.txt in my case its SIDmailserver.txt  saving the data  to compare to later result.

Open the windows start  and  in run

Kuva 65

Kuva 66

Don’t forget to click the Generalize button or the SID will not change

This is where it will reboot, one WILL have to login via the Lab to finish off the installation THEN one can log in remotely

Compare SID codes to see if it worked At this stage you will not be able to login via remote so all will be done via the lab

Kuva 67

Kuva 68

And a final Customise settings.

Picture dropped

putting in Administrator Password and end Reboot


User Name                  SID

========================== ============================================

controlahlju\administrator S-1-5-21-625244559-2446995650-1232646068-500


User Name                     SID

============================= ============================================

win-ma562ch8kek\administrator S-1-5-21-451016164-1904447514-3115409375-500

And continue where you left off.

Readiness Check errors

Kuva 69

To get rid of these errors at the start and (below not shown, kuva 52) one needs to restart the process in DC1 under server manager – other servers – mailserver1. This will get rid of the first set of problem

Kuva 70

To get rid of these problems we need to download the links provided

Error A (Managed API 4.0) is a matter of downloading and installing.

Kuva 71

This will download and one will see the prompts on the screen. Just follow the instruction on the screen and everything should work.

Error B) ServerGuiMgmtInfraNotInstalled isn’t implemented in windows server 2016 yet. But has been patched or fixed in the Cumulative Update 9 has solved those problems.

According to the website  this isn’t implemented yet in 2016 but make sure that everything is up to date and there are no other problems  download and save the .iso and open as is. Then run like the normal exchange 2016 server.

Kuva 72

Remember to reboot after to prevent errors from taking place.

also always choose a reason for rebooting.

Kuva 73

Shown here is CU8 and not 9 as supposed to be.

go to .  This should get rid of the problem

Kuva 74

This will take some time about 30 mins.

Low on Memory

Changing the instance in the Lab environment. from there you need to change.

Kuva 56

Before starting you must shutdown your server (1) before continuing, by choosing the first icon in the list then (2) Here you change the instance on the first attempt it only show s small, medium and large,

but if you choose again it will show custom.

Kuva 75

Kuva 76

Click [Ok]

This then takes awhile to reboot the server. This then will sort out your memory issues.

Windows activation Error

Kuva 77

Go to the windows start tab under find type cmd. this will get you to the dos command prompt. From there you type slmgr /skms This information was shared from the lecturer.

Then slmgr /ato  see (Kuva 71)

Type exit to exit from the program.

Kuva 78


Downloads   CU 9 for windows server 2016   ServerGuiMgmtInfraNotInstalled error


were all from the server that one installed. kindly donated from Windows.

Adding G-mail to your Ubuntu account

Hi I i’m running Ubuntu 16.06 LTS on my pc ( its a duel boot) and having various cloud servers connected to you  is a god-send but setting them up can be a nightmare. ( I’m more keeping these records for my self rather than for public reading. But if it helps, then i’m glad to help

but I found some useful guides to help me on the way:

Before any of this is done make a directory in your home folder called googledrive. trying to make spaces ( didn’t work for me) I’m still trying to understand why?

(1)So first you bring up your terminal window:  (2) then make sure that you have admin rights (3)  if not then use the su -l (admin-name) (enter)  then password  (4) do the steps below:  (5) After the steps CLOSE the terminal window (CLOSE) the terminal window. as if you don’t ( the part of the process which delivers you a key to put into the address bar (its 50 characters if anything and then this gives you a key. which you paste into your Terminal window ( the one that you just opened  by ctrl+alt+t  and pasting it in ( I, my self place the mouse pointer on the flashing comment ( just to be sure) after going into the directory that i made earlier.. googledrive..

First install the GNOME Control Center and GNOME Online Accounts packages on Ubuntu:

sudo apt install gnome-control-center gnome-online-accounts
Once that is done open from the command line or unity dash  
It comes up with a lettershaped M and ..its confusing, as i have two email accounts 
it will go to the one that is a) open or b) previously open (Last used) there you go 
Im still working on it. 



Installing two computer languages G++ and Ruby

Ok, here we are again. learning how to use some certain programs like C++ and Java,  First we make sure that we are all up to date. with the sudo apt-get update command, then we use sudo apt-get (-y)install g++  the y is there to skip asking the question Y for yes n for no. I always forget it and end up pressing it anyway. installing g++

and now you can use it: I put in hello world,  Thanks Tero for the code  simple code  but first i put in sudoedit ( to make sure that it would be saved as a c program, as you can see the various colours showing up on the screen for various commands

#include <iostream>
int main()
    std::cout << "Hello, world!" << std::endl;
    return 0;


I did use nano to try it first but wouldn’t save so as per above instruction i used sudoedit,  then put in the command

g++ -o hello  but got errors.
errorc++.png In function ‘int main()’: error: expected primary-expression before ‘return’
 return 0;
 ^ error: expected ‘;’ before ‘return’
henry@henry-HP-Pavilion-15-Notebook-PC:~$ sudoedit
I cant see the error problem.. working on it.

I tried to install basic: sudo apt-get yabasic 
henry@henry-HP-Pavilion-15-Notebook-PC:~$ sudo apt-get install yabasic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package yabasic
henry@henry-HP-Pavilion-15-Notebook-PC:~$ yabasic 
yabasic: command not found
henry@henry-HP-Pavilion-15-Notebook-PC:~$ yabasic 
yabasic: command not found

but as you can see command not found. I have connection but no basic. 

So I'm going to install ruby instead:
rubyfull.png'm going to try Ruby instead,

henry@henry-HP-Pavilion-15-Notebook-PC:~$ ruby 
print ("hello Ruby World!\n")
hello Ruby World!
--It works

Setting up an Apache server take 2

So I decided to start all over again, (well not completely all over again) the public_html directory is still there from last time and so is the index.html.

I figure it was easier so first I got the apache screen .

Don’t forget to update your depositories, i forgot to add it here.


By installing sudo apt-get -y  install apache2 again

then editing the .conf file  by going to this directory and using sudoedit /etc/apache2/sites-available/henry.conf  <- the name of my pc is henery..

then enabling the ‘said’ .conf by first creating  henry.conf and adding these lines to the .conf ctrl+x and y to save.

## /etc/apache2/sites-enabled/henry.conf

<VirtualHost *:80>
 DocumentRoot /home/henry/public_html/

 <Directory /home/henry/public_html/>
   Require all granted
</VirtualHost> in the black box. ctrl-x and y to save.

which is done by sudoedit /etc/apache2/sites-available/henry.conf

and disabling the 000-default.conf  then, reloading the server my sudo service apache2 reload, according to the instructions of the screen. then the restarting of the server too.

done by

$ sudo a2ensite henry.conf
$ sudo a2dissite 000-default.confn 
restarting the apache server 

Screenshot - 04.03.2016 - 18.07.33
Checking my log files under /var/log/apache2/error.log gave us this..
  But the execute rights were not enabled for the apache2 server . 
check home/henry/public_html using the command -ls -l there you can see the 
read/write permissions.
They were not executable, or just read (must get more information on that!) 
the reason why i did the command a twice or three times was to get a clear picture.
and not it works, I Left out the part that i made a /public_html/index.html file. 
but that was in my first encounter with this apache server. but if you need to 
know how to make that mkdir /public_dir in the /home/henry/file so it looks like 
//home/henry/public_html/... and of course we make a page too index.html via
nano. Gave us this Thanks again, Tero for finding the error.  
Thanks again Tero for the help looking at my work with and finding 
the error so promptly.

An HTML5 Homepage  part 2 of this homework

the Hello hello hello, only last for a while. so its time to change it. to something useful. Enter html5

<!doctype html>
	<title>Henry's Test Page</title>
	<meta charset="utf-8" />
	<h1>Henry's Test Page</h1>
	<p>Let's test UTF-8 with "päivää"</p>
	<p>See you at <a href=""></a></p>
henrys testpage and Teros Karvinen's website.. then recycle or as i did, 
sudo service apache2 reload (but im sure if you reloaded the page
 It would of been easier.
Next we validate the page by checking it with open up 
the third tab and paste the html code into it. press the check button and presto. Its ok.
Thats it.. your finished these were found in

Setting up Apache webserver

today we learned in class how to set up Apache webserver. Hopefully for homework i can reproduce the results, First one must update everything  using sudo apt-get update. this will ensure that everything is up to date before installing apache2. next command will be sudo apt-get install apache2 when that is done you can check if its working or not by simply going to an empty website and pasting the http://localhost at first you should see nothing, but then after apache2 installation you should see a webpage hosted my apache.. Now we can start.

                          1. we create a virtual host we I, was following my lecturer  Tero Karvinen, who is our lecturer. we were doing this by going into the directory
                          2. $ sudoedit /etc/apache2/sites-available/YOURNAME.conf  (this is the quick way,) and using the sudoedit command as you can see or you can use the cp command and copy the 000-default.conf and calling it YOURNAME.conf then doing a sudoedit YOURNAME.conf (the way i did it) and getting rid of all the #’s  P.S. I was stuck on this for a while..the reason why i did it the slow way was i wanted to do it one step at a time. 000-configchanging the document root to /home/yourname/public_htm also adding <Directory /home/YOURNAME/public_html/
                          3. so it looks like this
                            ## /etc/apache2/sites-enabled/YOURNAME.conf
                            <VirtualHost *:80>
                             DocumentRoot /home/YOURNAME/public_html/
                          4.  <Directory /home/YOURNAME/public_html/> add this 
                               Require all granted add this 
                          5. gearoid.conf
                          6. call it something simple as you may have to write it out alot.Save it as YOURNAME.conf
                          7. Done, the first part now you must swap out the 000.default.conf to YOURNAME.conf this is done by using these two commands
                            $ sudo a2ensite YOURNAME.conf
                            $ sudo a2dissite 000-default.conf

                            I had difficulty doing this as it kept on saying that it didn’t exist even though when i typed ls and saw both 000-default and YOURNAME.conf, was there, still didn’t work.. P.S. these are all now in the sites-enabled directory. then I changed YOURNAME.conf into the sites-available and tried it again and it worked. this took me awhile to figure out don’t forget to restart the webserver, using this command

                            $ sudo service apache2 restart but when you finish
                          8. the previous step the command prompt gives you a different command something i cant find at the moment. when you run that you should get some errors as you don’t have a website yet ah0012error
                          9. those were AH00112 Warning DocumentRoot [/home/gearoid/public_html does not exist and AH00558 apache2: could not reliably determine the server’s fully qualified domain. I checked these errors by going to the /var/log/apache2/error.log see the screen belowErrorlog

                            These are normal as i didn’t make a webpage. So back to the command prompt to make a site or page.

  • cd to go home
    $ mkdir public_html/ this is were i made a mistake 
    $ cd public_html/ <- watch the slash, i didn't put it in
    $ pwd
    /home/YOURNAME/public_html/ now you should have a directory
  • now run the apache commands again it should work..
  • …But not for me as i refreshed it i got an error stating that firefox couldn’t find the page (page not found). I moved it out from where it was (the public_html folder) and then refreshed the page and Apache, now it works but its skipping a directory.the public_html folder ..I’m wondering why? It was staring me in the face Tero even said it…using the pwd command i compared the paths in the command prompt after making /home/YOURNAME/public_html/ and it didnt match, I then copied and pasted the “right” one into my .conf file and reset the apache server and now it works… retested it. now it doesnt work again, says forbidden I checked out this error stating
  • AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using Set the ‘ServerName’ directive globally to suppress this message I got rid of this message by editing the apache2.conf file Edit Apache2 conf file : vim /etc/apache2/apache2.conf this gets rid of the error, but still doesn’t work So I reset it back to where it was in search of an other solution checking the errors again
  • 3)Permission denied: [client] AH00035: access to / denied (filesystem path ‘/home/gearoid/public_html’) because search permissions are missing on a component of the path according to the /var/log/apache2/error.log  according to IT blah  its rare but sometimes appears, horray for me! i’m the lucky one..
  • Day two, after doing some light study on the project and being cajoled into using the chmod  command, i caved in
  • chmod –help’ for more information.

    gearoid@gearoidPC:~$ chmod -R 775 /home/gearoid/public_html and it didn’t work

  • (Aside- 7-03-2016 Pls be careful using this command as this user changed the settings all the way up and couldn’t log into his pc this wasn’t the code that did it. I had to make a new user and change the settings again in order to get back in On retrospect it was a good learning experience but at the time, I almost re-installed ubuntu.)
  • starting from the start so.. line one, apt-get update ( yes i forgot the sudo!)

next sudo apt-get install apache  -y  (yes it did work)   then ran the local host and got the congratulations webpage, or welcome to apache server..

Creating your virtual server, Go to /etc/apache2/sites-enabled/henry.conf

## /etc/apache2/sites-enabled/tero.conf
<VirtualHost *:80>
 DocumentRoot /home/tero/public_html/

 <Directory /home/tero/public_html/>
   Require all granted

Since that all didn't work i read in a site created a httpd.conf and 
aadded a single line txt servername  (tab) localhost 
ssaved file /etc/apache2/httpd.conf
tthen I added an entry in the apache.con f on the last line to
 to enclude the httpd.conf and now having the error 
Permission denied: [client] AH00035:
 access to / denied (filesystem path
 '/home/henry/public_html') because search
 permissions are missing on a component of the path
Still no luck on getting this server working.
Ok I decided to restart, so Im starting in a new blog. 

See Setting up an Apache server take 2

Installing Inkscape, libre office, and gedit programs

Now, for this homework (for me) was to choose three programs and install them since we were learning how to use apt-get command last week i might as well stick with it and see what happens.

Referring back  to classes I’m going to choose from the ‘useful packages’ pile.

so  Inkscape,  libre office, and gedit.

I first checked out Inkscape, as usually one needs an address to install it from.  I checked it out

I first did an apt-get update  -> making sure everything is up to date, found  out that i didn’t or shouldn’t bothered as it was just apt-get install inkscape. which was nice, I’m beginning to really like this command line, its now as easy or easier than going to a package manager. For those of you who don’t know what Inkscape is. Its a drawing package.

Next Libreoffice

First i had to well..according to the website

to install the libre office (or old ones) it was an other command that i had not used, So i figure if its not going to do anything. What is the harm.

sudo apt-get remove libreoffice-core

sudo apt-get remove --purge libreoffice-core so now that everything is removed (I had x amount not removed x amount not deleted) then I put in apt-get install libreoffice.

If you’re using Ubuntu (Gnome) use this command: sudo apt-get install libreoffice-gnome-

I also had to install the gnome for the desktop integration, two steps. I'm finally beginning to really like this method of installation

the last program i wanted to install was gedit for the gnome eniroment, I had to check to see if i had it first but didn’t The helpful people in xubuntu said this get it

it was as simple as that.. I also installed a program called yum, which i needed to use to install virtual box, its a sandbox for other operating systems. yum went easily in (wish it was my mastery of  linux commands, but it turned out that my pc is smarter than me. it offered help in the guise of “If you want to install yum use this command. and presto its in. It had a grapical (4bit) interface as you can see.yum.png

Now I must continue my journey to install virtual box  I didnt need the yum command apt-get works too. So i went with what i know. apt-get install virtualBox-5.0 But then there were problems. not installed.png

work continues..

Now I must try a drawing package as an added extra  I wouldn’t of made it this far and enjoy it so much if my lecturer didn’t show me the way Thanks again Tero and his linux classes. The extra assignment was to draw with a drawing program, I chose the one that i downloaded via apt-get, inkscapeinkscape

I won’t be winning any prizes at any art fairs any time soon but inkscape is so easy to use.

Extra task check out errors, the one time that i didn’t have any

Trying out the errors. log is in the  im looking in the /var/log/apt/ install.log taillog.png

I tried to put cat and tail together, thought it would be funny to have a cattail command ..didn’t work.  this shows the apt-get command and times, Start date for installing apache2 <-program and the various packages that was needed with it. i also took a syslog picture, I have no idea whats going on in that.syslog.png

I can just see the time and what manager or program was being used or using the command at that time, for example Network manager [782] but this means nothing to me.

Using simple commands in Linux

Today I’m going to be using some simple commands in linux in the command box: rm  I started by creating a directory called linuxsandbox for safety reasons: the command I used for that was mkdir l…sandbox, there I put in 4-5 directories, by making them in the same way.Screenshot from 2016-02-04 14:51:11.png

Here I used the command rm command for remove but I couldn’t remove them as they were directories. but when I put in rm -r then I could remove the said directory. same in example below I tried to remove all junk files by using junk*


Screenshot from 2016-02-04 14:58:35.png

By using -r after the command and pressing ‘y’ for yes as one of the files was write protected. it deleted everything with 1 in front of it  4 remains…

I also used the help button that is used by using a command and help  using Screenshot from 2016-02-04 15:03:13

typing in help in the command prompt, bring up all the commands whereas pressing a command and –help  will give you all the possibilities, mind you –h doesn’t work

gearoid@debian5:~/linuxsandbox$ ls –h

ls: option ‘–h’ is ambiguous; possibilities: ‘–human-readable’ ‘–help’ ‘–hide’ ‘–hide-control-chars’

Try ‘ls –help’ for more information.


the next command is  $ ls /etc |less  -> the less part this  takes and prints veeerry long files and puts them into page size pieces Screenshot from 2016-02-04 15:54:42.png

But I dont know how to get out of this.. I press exit or esc. and  pause zz or uparrow and zz to getout

The last command that I have to tell you about is the keyboard setting for various languages if you live in a country that isn’t English speaking or English typing..then you have to learn this one  Setxkbmap and the country code i.e. fi for a Finnish keyboard.. es for a Spanish board and so on.. Thanks for listening or learning..

This is all possible by our lecturer Tero Karvinen -Thanks Tero

Switching from Windows 7 to Debian Or Ubuntu Still undecided.

In this blog I’m trying to find a replacement for all the windows 7 utilities that have on my p.c.

I found that running linux always had a mystic air about it.  Having everything built and running thanks to the people out in the world, who feel that linux is worth the effort of  time and energy to make things run.

I’m not going to put in what kind of pc I have. (run of the mill laptop, nothing special) just the operating system, whati have

They are in Alphabetical order: I figure its easier to see when written: Plus the links are the closest that I found when swapping over to Debian, some of the programs stay the same (or have the same name,) some require some tinkering, whilst others change program totally. I also have put in some blogs, that can help in sorting out various problems. when solving these problem I simply put the “(insert program here) and then Debian” after it..and got these results, If lucky if not then research was needed to find out the equivalent.

7 Zip 15.6 beta (x64x) file managemnt program     p7zip for Debian (and Ubuntu)

NJ LAN usb adaptor Netwjork,

Airport Time capsule

Apple Application support 32,

Apple application support  64,

Apple mobile device support,

Apple software update,

Asmedia Asm 106x Sata Host Controller Drvier,  Asmedia Asm 106x Sata Host Controller Drvier

AVG Protection, Anti virus

AVG Web Tuneup, Anti virus tuneup This is done via the web browser see below Linux doesn’t have any viruses in the wild.

Bonjour, LAN software for apple steps to take to install.

Citrix Reciever, Virtual Desktop

Dropbox, Cloud storage

Git Version 2.7.0,  Git repository

Github, Git repository hosting service

Google chrome, Browsing internet page

Gpg4win (2,3,0) is an email and file encryption package for most versions of Microsoft Windows.

Icloud, storage.. Just use any browser doesn’t need any special depositories

Itunes, Music player, Amarok

It seems by now that if you have all the same programs to start with, why are you changing operating systems? But the list isn’t finished yet

java 8 update 71,

linuxlive USB Creator, its the same or

McAfee Live safe internet security, There are no viruses in the wild in linux.

Mediamonkey 4,1,   Music player  ->Amarok

MS net framework 4.5.2, web installer ->  synaptic

MS Office 365 proplus en-us, office tools -> Libre office

MS Office Proofing tools English, Libre office extensions

MS Office Tarkistustyökalut 2013 suomi,

Mozila firefox 43,0,4   web browser -> iceweasel

Mozilla  Maintenance service Web browser update tool-> iceweasel same post as above as it will download the latest updates

Nvidia 3D vision Controller driver 340,50

Nvidia 3D vision Driver 341,92, 3d graphics Driver

Nvidia Geforce Experience 2,2,2 Graphics Driver

Nvidia Graphics Driver 341,92 Graphics Driver

Nvidia PhysX System Software 9,13,1220, graphics Driver

Oracle Vm Virtualbox 5,0,12,  virtual machine  -> Virtualbox

Plex media player,  video player  VLC apt-get install vlc

Quicktime 7,  movie player  VLC see above

Realtek Ethernet Controller Driver, software installer synaptic

Remotr Driver 1,2,1198, remote display -> Apache

Ruby 2,2,3,  computer language  Ruby List of contents 

Screenshot from 2016-01-28 18:36:19

that was cheese photograph and GNU image manipulation program.

This is all possible by our lecturer Tero Karvinen -Thanks Tero

create a detailed hardware report.

Starting with sudo lshw -short -sanitize  I put this into my command box, and….sudo pw as seen below..

gearoid@debian5:~$ sudo lshw -short -sanitize

[sudo] password for gearoid:

H/W path               Device      Class          Description


system         Computer

/0                                 bus            Motherboard

/0/0                               memory         6865MiB System memory

/0/1                               processor      AMD A8-6410 APU with AMD Radeon R5 Gr

/0/100                             bridge         Advanced Micro Devices, Inc. [AMD]

/0/100/1                           display        Mullins [Radeon R4/R5 Graphics]

/0/100/1.1                         multimedia     Kabini HDMI/DP Audio

/0/100/2.1                         bridge         Family 16h Processor Functions 5:1

/0/100/2.1/0                       display        Topaz XT [Radeon R7 M260/M265]

/0/100/2.2                         bridge         Family 16h Processor Functions 5:1

/0/100/2.2/0           wlan0       network        RTL8723BE PCIe Wireless Network Adapt

/0/100/2.3                         bridge         Family 16h Processor Functions 5:1

/0/100/2.3/0           eth0        network        RTL8101E/RTL8102E PCI Express Fast Et

/0/100/2.5                         bridge         Family 16h Processor Functions 5:1

/0/100/2.5/0                       generic        RTS5229 PCI Express Card Reader

/0/100/8                           generic        Advanced Micro Devices, Inc. [AMD]

/0/100/10                          bus            FCH USB XHCI Controller

/0/100/10/0            usb4        bus            xHCI Host Controller

/0/100/10/0/1          scsi2       storage        DataTraveler 3.0

/0/100/10/0/1/0.0.0    /dev/sdb    disk           7866MB SCSI Disk

/0/100/10/0/1/0.0.0/1  /dev/sdb1   volume         7498MiB Windows FAT volume

/0/100/10/1            usb3        bus            xHCI Host Controller

/0/100/11                          storage        FCH SATA Controller [AHCI mode]

/0/100/12                          bus            FCH USB EHCI Controller

/0/100/12/1            usb1        bus            EHCI Host Controller

/0/100/12/1/1                      bus            USB hub

/0/100/12/1/1/1                    input          Kensington Mouse-in-a-box

/0/100/12/1/1/3                    communication  Bluetooth Radio

/0/100/13                          bus            FCH USB EHCI Controller

/0/100/13/1            usb2        bus            EHCI Host Controller

/0/100/13/1/1                      bus            USB hub

/0/100/13/1/1/2                    multimedia     HP Truevision HD

/0/100/14                          bus            FCH SMBus Controller

/0/100/14.2                        multimedia     FCH Azalia Controller

/0/100/14.3                        bridge         FCH LPC Bridge

/0/101                             bridge         Advanced Micro Devices, Inc. [AMD]

/0/102                             bridge         Advanced Micro Devices, Inc. [AMD]

/0/103                             bridge         Advanced Micro Devices, Inc. [AMD]

/0/104                             bridge         Advanced Micro Devices, Inc. [AMD]

/0/105                             bridge         Advanced Micro Devices, Inc. [AMD]

/0/106                             bridge         Advanced Micro Devices, Inc. [AMD]

/0/107                             bridge         Advanced Micro Devices, Inc. [AMD]

/0/2                   scsi0       storage

/0/2/0.0.0             /dev/sda    disk           500GB ST500LT012-1DG14

/0/2/0.0.0/1                       volume         511MiB Windows FAT volume

/0/2/0.0.0/2           /dev/sda2   volume         244MiB EFI partition

/0/2/0.0.0/3           /dev/sda3   volume         465GiB LVM Physical Volume

/0/3                   scsi1       storage

/0/3/0.0.0             /dev/cdrom  disk           DVDRAM GU90N


Ok, starting part two, I should of checked this earlier, but couldn’t see it till now.

Noticing the # key I went into root mode and started typing.

# machinocealla - store description of computer
 hardware and configuration
# usage: sudo machinotero
# (c) 2007 Tero Karvinen <- and 
thanking him for this code, so leaving as is.
gearoid@debian5:~$ su 
root@debian5:/home/gearoid# !/bin/bash
bash: !/bin/bash: event not found
root@debian5:/home/gearoid# /bin/bash
root@debian5:/home/gearoid# machinegearoid -store description
 of computer hardware and configuration 
bash: machinegearoid: command not found
root@debian5:/home/gearoid# function r 
> {
> CMD=$*;
> echo -n "$CMD; ";
> echo -e "\n== $CMD ===" >> $OUT;
> $CMD >> $OUT 2>&1;
> }
root@debian5:/home/gearoid# function r  { CMD=$*; echo -n "$CMD; ";
 echo -e "\n== $CMD ===" >> $OUT; $CMD >> $OUT 2>&1; }
root@debian5:/home/gearoid# exit
root@debian5:/home/gearoid# #!/bin/bash
root@debian5:/home/gearoid# #machinocealla -Store description of
 computer hardware and configuration
root@debian5:/home/gearoid# #usage:sudo machinocealla
I noticed that i made an error with the sudo command and corrected
tit from suto to sudo. was I meant to do this in a word type document?

But then i got the bright idea to do it in nano and so im typing...
some time later.....
just wondering if
fi was the finish language? 
plus every so often: I see this code and (now its clear but I
cant always tell if the 1 is an l or not,
f "[ -z $1 ]; then

plus using" >> $OUT instead of
echo "Machinotero" >> $OUT
well we will see where it goes? 

*thunderbird* 915resolution* Is there a * missing? 
I wrote it out and tried to save it to machineocealla
I tried to save it to the bin/bash directory, but it didn't save
I I may have to bring in the whole pc in order to investigate

I couldn't get it working, More study is required..
Then I copied machinotero and copied it to a .txt file 
ran the code sudo bash tero.txt (this was all done in my
Documents folder, and this turned out..
Screenshot from 2016-01-26 19:18:51
Checking up the move command
I couldn't move it into the bin file as I didn't have root 
privileges, so trying an other way of doing it.
mv tero.txt /bin/tero.txt
mv: cannot move ‘tero.txt’ to ‘/bin/tero.txt’:
 Permission denied <- forgot sudo 
gearoid@debian5:~/Documents$ sudo mv tero.txt /bin/tero.txt
when it was moved  tried the command again sudo 
bash machinotero
again and the same 
Screenshot from 2016-01-26 20:04:33.png
AAt least i got the mv command down from moving machinotero
from Documents to the /bin/ file.. more study needed 
Then I discovered that I didn't use the command chmod
Screenshot from 2016-01-26 22:20:30
And setting rights 755 for read write and execute permission 
and 700 read and execute. then the sudo bash machinotero.
It works! but shows inocorrect data

Screenshot from 2016-01-26 23:55:11.png 
More work to find the problem..

This is all possible by our lecturer Tero Karvinen -Thanks Tero

Creating a Live USB stick via Debian 8

The aim of this experiment is to create a “live USB” stick.

Background information:

Laptop HP Pavilion AMD A8-6410 AP with 8 gb. ram with AMD Radeon R5 Graphics. running Debian 8.1 (Jessie)

USB Kingston DTSE9  8Gb <- added later,

Complements under What command you use to find out hardware info?…  So its a learning curve for everyone! inc. me.

Screenshot from 2016-01-19 20:29:45

grep "model name" /proc/cpuinfo laptop specs.

grep MemTotal /proc/meminfo Amount of memory

head -n1 /etc/issue .  shows the linux version 8 for me.

I tried to install gnome disk,

Screenshot from 2016-01-19 20:48:16(I didn’t download anything, they were all .tar.xz wasn’t too sure how to install them, so I left them alone.)  but it seems that its installed already, I checked Synaptic,

Screenshot from 2016-01-19 20:49:36 Its already there, and up to date, all unbeknown to me. .  I  went to the command prompt and tried gnome disk.. and the reply command not found, also checked all the gui ‘s and nothing..

I also tried to install Unetbootin, but I’m not too sure how to update a depositary, on Debian. So i’m going to document as well as I can. I went to this website from 2016-01-19 20:51:10.png

the site told me I should use synaptic or aptitude to download the program, I did check, and it didn’t exist in synaptic (for me) I checked using the keywords unetboot, unetbootin, an finally unetbootin_575-1_amd64.deb, As I made sure that everything was up todate  this error appeared Could not download all repository indexesScreenshot from 2016-01-19 21:23:19.png

The repository may no longer be available or could not be contacted because of network problems. If available, an older version of the failed index will be used. Otherwise, the repository will be ignored. Check your network connection and ensure the repository address is correct in ‘Repositories’ under ‘Settings’.

GPG error: squeeze InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY E639BFCB72740199Failed to fetch cdrom://[Debian GNU/Linux 8.1.0 _Jessie_ – Official amd64 DVD Binary-1 20150606-14:19]/dists/jessie/contrib/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Failed to fetch cdrom://[Debian GNU/Linux 8.1.0 _Jessie_ – Official amd64 DVD Binary-1 20150606-14:19]/dists/jessie/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Failed to fetch  Hash Sum mismatch
Failed to fetch  Hash Sum mismatch
Some index files failed to download. They have been ignored, or old ones used instead.

after that I tried -> apt-get install unetbootin_575-1_amd64.deb  on the command prompt,

From the pc->

root@debian5:/home/gearoid# apt-get install unetbootin_575-1_amd64.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package unetbootin_575-1_amd64.deb
E: Couldn’t find any package by regex ‘unetbootin_575-1_amd64.deb’

Going back to do some more digging..

I’m going to edit the etc/apt/sources.list using nano but first im going to follow some simple guide lines…Backup, Backup, backup.  why didn’t I check here firstScreenshot from 2016-01-19 20:59:16.png

I decided against editing my etc/apt/sources.list  I was afraid that I would delete everything.

sudo aptitude install  pool/main/g/gnome-disk-utility/

and also synaptic install pool/main/g/gnome-disk-utility/

and got this Screenshot from 2016-01-19 21:26:43

nothing happened ..

Calling it a night for now, must do more study into it..

Day 2 still nothing, not that I expected the faries to fix the problem during the night.. perhaps ill format the drive to EXT4 to see if that will solve the problem, finished, now I can’t see my hard-drive, while I’m trying to sort out this problem  I’m downloading the distribution im going to install onto my usb, this version is 14.04 trusty tahr. wu Now my usb isn’t working so.. doing some reading and its not showing up as a anything..since I also have a windows machine I also tried to sort it out on that, (by just plugging it in and formatting)..but no such luck… so doing some digging and checking on the net i found a site that showed how to find your usb stick typing in the command sudo fdisk -l got a list of my usb /dev/sdc1 and dev/sdc2 drives  Its back 🙂 I would you don’t know how many smiles I wanted to add.. I checked and double checked that it wasn’t my main hard-drive..still intact.Screenshot from 2016-01-20 20:53:52.png

aside –checking the size to make sure that it wasn’t my harddrive.Screenshot from 2016-01-20 20:56:47.png

putting in the command sudo mkfs.vfat /dev/sdc2  I got my usb back …so now I’m back to square one It was a learning curve for me.

Now back to square one…trying to create a USBlive stick.  I was reading about this command called ‘dd’ but I’m stil too young and my machine has much too valuable information to mess around with this command. I’m still trying to make sure that its absolutely positively correct before using the above command.


I found a web page, I think from the tutors old students, I’m following this to see if it will help me. as I’m going through the instructions I find out that I don’t have ‘parted’ installed so I must go to synaptic and install it, by putting in my ‘Sudo’ password and putting in the Debian disk 1, since I’m installing parted I’m also going to check the other commands that I need for this process. Now all up to date. As I formatted the usb for the Xth time, I noticed that its on NONE for access for groups and for others. So how to change that, more study..I found this site

Screenshot from 2016-01-20 22:15:08.png

, I put in the commands on screen, It didn’t work I noticed it changed drive. to Sd0 as apposed to sdb.  I checked if the above commands worked, no they didn’t Still nothing or still the same, more study needed.

Ok, I’m going with dd, well at least I’m going to try it. I backed up my system, (not going to go into detail here as I just followed someone elses blog or website and followed the instructions there. On doing this again to be positive, I get an error,

sudo tar -xvpf /fullbackup.tar  <- Me being all smart and backing up data!
[sudo] password for gearoid:
tar: /fullbackup.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
gearoid@debian5:~$ not done.

Ok, I’m going to use dd or disk dump, I think I tried everything else, this decision is not taken lightly, in fact I’m nervous. So on doing some study on this command,  thanks to Screenshot from 2016-01-21 07:24:33

Look at the warning, atleast 5 times!! and if that wasn’t confusing and a serious “pls leave whist you can”  then the command ist that easy to understand either. so getting what little information i could from this page (but is good as a reference. I thought id find a little more user friendly site, but i changed some of the commands first I checked where my usb stick was (and double checked, and checked again to be sure. df -h works /dev/sdb1       913M  913M     0 100% /media/gearoid/Xubuntu 14.04 LTS amd64 <- thats me,  remember and write down /dev/sdb1 your usb.

now go into where you downloaded the .iso for me that was Downloads,  using the command ls to see all the directorys and then   cd  Downloads .

->.gearoid@debian5:~/Downloads$ then the dd command, this requires the sudo command, so its sudo dd if= name of image.iso of =/dev/your usb bs= 1M  (the bs is the amount of block data to be written,I left it the same) The  command is broken up into two parts the first section is the input (the directory were it is stored) and the second is the output (destination, i.e. usb)

The command line syntax of dd differs from many other Unix programs, in that it uses the syntax option=value for its command line options, rather than the more-standard –option value or —option=value formats. By default, dd reads from stdin and writes to stdout, but these can be changed by using the if (input file) and of (output file) options.

so the command in its everyday state,

when I ran this command there is no process bar so it takes time, also when booting for the first time also takes time, having a usb2.0 stick doesn’t help matters.  At the end,  I know how to use dd to make a flash drive… the entire use of the command I’m still working on. This is the command that I used, notice that i shortened the ubuntu.iso file down alot to avoid errors on my behalf, and also went into the Downloads directory I’m sure that you don’t need to go into the Downloads or for that matter any directory but it makes the command that more cumbersome (for a first time user) then when you boot it for the first time (on this machine i didnt have to go to any special settings it booted straight away (after a 3 minute  black screen) but for the second and third times one has to go into the bootup settings or options.

$ sudo dd if= ubuntu.iso of=/dev/sdb bs=1M

Ran the program and since their is no progress bar, one has to wait until the cursor comes back, then reboot.

this reboot was different to the others as I didn’t have to select the usb stick it did it automatically.

then xubuntu splash screen appeared,

The END.

This is all possible by our lecturer Tero Karvinen -Thanks Tero