Setting up a linux based backup server!

linuxbackup

You might remember me having a bit of a data loss here last year, in the aftermath of this i set up a dedicated backup server, this is in general a computer that holds backups of my files just in case i have a disk crash or something else that deletes my files. I choose Windows Server 08 for operating system since I was familiar with this and I wanted to try the os out on a different computer that our main server before switching, and so I did i set it up with the OS on one disk and two other disks in raid 5 and that worked nicely but after trying out Windows server for a while i decided to upgrade our main server to this and thus eliminating the need to have it on my backup server, don’t get me wrong it worked like a charm ther too but I’we always wanted to learn Linux but never had the time or opportunity to run in on a standalone computer, I’we always been stuck having it on a virtual computer or using my Raspberry PI but that never suited me really and the PI can’t run Ubuntu which is the distro I’d like to learn.

 

The idea comes to life. I decided to make a copy of my backup on my main computer and then wipe clean all disks and give Ubuntu a go, and so I did.

I installed Ubuntu Desktop 13.04 just because i would like the opportunity to connect a monitor, keyboard and mouse and use a GUI if I need to, this is in general a headless server, meaning that it’s just the box and no monitor is connected as it sits behind my couch  it would really make the misses cross if there was a monitor poking out behind it.

ubuntu1304splash

I did some research on setting up raid in Ubuntu and found this article on it I followed the instructions to the letter and almost got it working but the RAID failed to mount during boot/start-up of the computer and it turned out that I had used the space button to make, well space between the statements in the /etc/fstab file and you’re supposed to use Tab, so after this was fixed and it booted properly.
I wanted to get a daily status update from my backup server on the condition of the RAID, I did not have this in Windows so that’s one plus for Linux. I followed this instructions on getting that set up, note that once again either something got changed in an update or the author forgot to put in that you have to specify an email address by adding MAILADDR themail@youwantto.use in the /etc/mdadm.conf file.

It had taken me a fair bit of Googling and reading but at this point i had a Ubuntu based backup server with a RAID level 10 running with email status updates running. Since I’ve got Windows 8 on my main computer I would have to set up a Samba share on the Linux box, Samba share is the platform which all windows machines share files on. I installed samba and set it up according to these instructions but for some reason I was not able to get access to my shares on the Windows 8 machine at first I came across some others having what seemed like the same problem but they were having issues with older versions of samba and mine was the latest so that could not be the case for me, I had set up samba to require a username and password of an existing user when trying to get access to the files and got the prompt for it but no mater what i entered i got rejected claiming wrong password or username. After some fiddling around with different solutions I figured that I had to set the security option in /etc/samba/smb.conf file to user and enable password sync. Then I needed to add the following to the properties of the share in the same file:
force user = username
read only = no
create mask = 0777
folder mask =0777
guest ok = no

and finally I had to add the user to the Samba user list with the ‘smbpasswd -a username’ command, after that all was working as it should.

Synctoy

Now for the process of actually doing the backup. Earlier I have used and liked the Comodo Backup program but I stumbled upon a Microsoft app that does the same thing in general, It’s called SyncToy and is made by Microsoft and is compatible with XP, Vista, Windows 7 and 8 tho I have only tested it on Windows 8 Pro. It basically keeps pairs of folders synced in different ways and to make this work with my backup solution i Mapped the shared folder on my Linux box to a virtual drive in windows.

mapnetwork

Sounds like nerd talk right? Well that is the technical term for it in plain English it translates to I fooled my windows into thinking the folder on my backup server was a hard disk in the Windows machine, this is done by right clicking on the ‘My Computer’ icon and selecting ‘Map network drive’ up pops a window asking for the location of the network resource you want to map, this can be set in two ways, either you enter the IP address of the Linux machine or you enter it’s machine name. Using the machine name is usually the best as this does not change in case of a reboot were as the IP address can change if you haven’t set it to static, if you are following this tutorial you have not set it to static. Back to the mapping, in the address box enter ‘\\machine-name\share-name’ this depends on what you have set up during install of Linux and what you have called the share you set up earlier.Check the ‘Connect using different credentials’ box and enter the Username and Password when it prompts you for it, remember to check  remember me box.

When the network drive has been mounted all you have to do is set up a folder pair for each folder you want it to take backup of with the source folder to the left and the destination folder on the right. Since we are using this program to make a backup we don’t want the program to delete files on both ends if you mess up and delete a file or something on your main computer therefore we choose Contribute in the ‘What do you want to do?’ page and repeat for each folder you want and there you go.

All done

 

If you have a smart phone and want to be able to check up on the Linux server there is an app called Pc Monitor that will do that for you! to install it on your linux server you first have to get an account, follow these steps to make one. Then install Java which is done by running the following command in the terminal sudo apt-get install and then the versions listed here under open JDK, as these are subject to change as newer versions are developed I will leave the command for you to fill in. When Java is done installing do the following commands(everything between two ” ” you have to change to fit your computer):

cd /home/”username”

sudo wget http://www.mobilepcmonitor.com/download/pcmonitor.tar.gz

sudo -xvf pcmonitor.tar.gz

cd pcmonitor

sudo ./install

Then follow the setup and enter what you fell like changeing and then your Pc monitor Username and Password at the end and it should pop up in the app!

Android Launchers!

Looking for a tip on launchers for your Android device? Head over to our Facebook page or our Google+ page and check out our tips! This is a social network special, which means it will not be posted here:-)

Google gravity!

A new Google trick has popped up, go to Google.com and write “Google gravity” in the search box a day press I’m feeling lucky

Play Atari Breakout on Google

The brilliant minds at Google that has previously given us tricks like “let it snow” and “do a barrel roll” has now come up with something amusing and fun! all you have to do is go to google.com search for Atari Breakout and click on images (or simply follow this link)

RAID not recoginzed by Ubuntu during boot

I’ve been trying to set up a small media server in Ubuntu 13.04 with the OS on one disk and 2 other disks in a RAID 10 configuration and set them up as a media server with samba support and a mail warning system to monitor the health of the disks and status of the raid but following this tutorial had me stranded at boot, no matter what I did all I got was the following error at boot up: “The disk drive for /media/raid10 is not ready yet or not present.” and a google search just turned up other people asking the same question so I figured I’d give it a go fixing it my self and by a freak accident I noticed that I had used a space instead of using the tab key to create space between the entries in the /etc/fstab file so I removed the spaces and used the tab key and HEY presto! it works!

so if you got the same problem try this… see if it does not solve the problem!

 

What happened to Qwiki.com??

 

Qwiki-search-engines-for-information

For those of you who remember qwiki it was; amazing, beautiful, creative, futuristic, awesome, and just almost perfect!

But what happened?
Suddenly they got locked up and removed search ability on their website. All the amazing “knowledge based” articles ALOT of people increased their knowledge on just disappeared, and they turned all blog’ish and ONLY for iphone.

I will never forget the demonstration they gave at TechCrunch in 2010. What was burned into my mind was that little clip they had from the movie “Wall-E” where the captain says “Define Earth” and get’s highly excited. That was my first reaction as well, and i believe im not alone.
That new and fun creative way of getting information and learn new things was so much easier with qwiki because it was in visuals and had an amazing voice engine. Many nights have gone by sitting in front of qwiki getting even more amazed article after article.

 

qwiki-iphone
We spoke to some of the iphone users out there who we know used to use the qwiki site the old way. They had all tried the new app, but got very dissapointed of the way they now operates in. They all reported back to us that they missed the old knowledge articles. The beautiful visual blogs that they could create was a great feature, but was not the reason they got the application. And why only for iphone? Will this be avalible on Android and windows phone?

 

So for those of you who don’t know what we’re talking about, take a look at this awesome presentation.

So, please Doug and Louis, if you read this;
Please let us have that amazing, and easy way of learning back again. It is deeply missed by ALOT of people.

How to solve: No value could be found for (AllowHotkey) that satisfies all lockdown requirements. The lockdown requirements in force may be conflicting error in Citrix

Have you ever loged on to Citrix and just when  your about to start one of the published applications you get this fancy “latin” error message?

Citrix Receiver Configuration Manager: No value could be found for (AllowHotkey) that satisfies all lockdown requirements  The lockdown requirements in force may be conflicting.

It’s not that hard so solveCitrix Logo

Earlier you had to delete a whole bunch of registry keys from the computer.
But we feel that this way is so much better!

So, what you do is to click on “start”. If you have Windows 8, just go into the Metro.
Just start typing regedit and click enter.
if your not familliar with this, it’s not something you should play with on your own unless you have a guide, or really know what you’re doing.

Go to the top and navigate to this location:

  1. HKEY_CURRENT_USER
  2. Software
  3. Citrix
  4. ICA Client
  5. Engine
  6. Lockdown Profiles
  7. All Regions

Here you will find a registry key called: EnableLockdown
Double click this key, and you will see that the value is set to “1″.

Simply change this to “0″ and click “OK”.

Now close your web browser, and reopen it.
You should now be free of anoying AllowHotKey errors.

Google Play Store upgrade

Google just updated the Play Store to a new design, it’s made to make browsing apps easier and it looks a lot better than the old one in my opinion…

image

Facebook Home, The launcher we don’t need

So Facebook introduced the new Facebook Home, basically a home launcher that shows you updated info from your facebook account. This is something that could have been done allot better, read on to find out why!
Read the rest of this entry »

How to prevent windows update from restarting automatically

Have you ever experienced leaving the computer at the end of the day thinking “i’ll finish this tomorrow”, and realize the next day that everything you worked on is gone and the computer has rebooted? Well, this is usually caused by windows  Windows update update and it’s annoying! Want to fix it? We tell you how to end it.

Windows is actually not that stupid. As we have experienced, it seems that over the time MS windows learns when you are at the computer and when your not. This way it can start doing stuff that takes alot of resources when your not using it. This is actually a really a neat feature. We are not sure if this is avalible in “Vista” and XP, but it seems to be doing this in 7 and 8. (We might be wrong about the feature as we haven’t confirmed this).
Unfortunately this also goes for the updates that is released by MS.
Updates are important and solves alot of stuff. Either in the back of the system or visually for you. So we do not recommend that you disable the windows update.

So how do we solve this?

There are 3 ways to solve this.

Option 1:Windows Reg file

This is probably the easiest way is to download a computer registry file. Save it to the desktop and double click on it to make the change in windows update. This will change the behavior on the windows updater and stop the rebooting. (To activate the change  you need to reboot the machine yourself to allow the change to be loaded).

Click here to Download

We know that there are many sites out there that tells you to NOT click on unknown registry files (*.reg) that you find on the net. And we understand this.

Option 2:

That’s why we provide you with an option number 2. Instead of using the automatically registry file you can enter the registry yourself and make the change. This way you can be sure of what is being written to the system’s registry.
Click on start button (or enter the metro view if you have W8). Start typing “regedit” and hit enter. Navigate to this location;

HKEY_LOCAL_MACHINE -> SOFTWARE -> Policies -> Microsoft -> Windows

Edit registry yourself

Here you need to create a Key (right click -> new key) and name it “WindowsUpdate” and a new key in here as well and call it “AU” (No, it has nothing to do with Australia). Now in this AU key, you need to create a “32-bit DWORD“. Name it “NoAutoRebootWithLoggedOnUsers”, and double click on it. Change the value “0” to “1” (Tip: 0 means Disable, and 1 means Enable).
Now reboot.

Option 3:

The last and third option is a more visual way to do it.
Instead of typing in regedit as you did in option 2, simply type in “gpedit.msc“. This will open the Local Group Policy editor. Here you need to navigate to;

Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update

Find the entry “No auto-restart with logged on users for scheduled Automatic Update installation“, and double click on it. Normally it will be set to “Not Configured” meaning windows makes all the decisions. Set to “Enabled” and click “Apply“.

 

All your update reboot problems should now be gone.

Reviewers' Choice. Kitchen Converter for Android