DEVGET.NET Blog

0

How to fix OwnCloud Key Expired Error

If you get an error like

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org  Release: The following signatures were invalid: KEYEXPIRED 1397815516

W: Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_12.04/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

You simply need to reimport the new key… copy and paste the command below

wget -qO - http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key | sudo apt-key add -

 

Thanks to fkunz for the fix

How to update django 0

How to update django

So i was recently faced with the dilemma of having to update django 1.6.1 to 1.6.2, after a bit of searching I came across a very.. very simple solution

pip install -U Django

Of course this is assuming you installed django… if not you most likely need to uninstall it by deleting the path where it lives.. eg

Python 2.7.5+ (default, Sep 19 2013, 13:48:49) 
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django
<module 'django' from '/usr/local/lib/python2.7/dist-packages/django/__init__.pyc'>
>>>

then

sudo rm -rf /usr/local/lib/python2.7/dist-packages/django/
How to setup a VPS (or Dedicated Server) with Nginx from scratch 0

How to setup a VPS (or Dedicated Server) with Nginx from scratch

In this tutorial we are going to go through the steps of securing the server and configuring Nginx, PHP, Phpmyadmin and MySql.

Step 1. Basic Security

Assuming you have already logged into your server we start by changing the root password to something more secure.

passwd

 

This will prompt you to change the root password, It is recommended to choose something extremely complex as it is your most crucial line of defence against the outside world.

Next, open up the ssh config

vim /etc/ssh/sshd_config

and change the port from 22 to anything between 1025 to 65536, this will prevent our server from being easily spotted by malicious eyes (more…)

0

How to install Oracle linux on Ubuntu

the web upd8 team has already packaged it nicely for us

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

set environment variables with

sudo apt-get install oracle-java7-set-default

Verify Oracle Java installation with

java -version

If anything goes wrong with your installation… fall back with

update-java-alternatives -s java-7-oracle

 

 

How to change default bootloader in Windows 0

How to change default bootloader in Windows

This applies for windows 7 and 8. Normally you would want to do this after installing a secondary operating system and it took over your main bootloader. (you would notice a restart when choosing the main os)

  1. Open cmd with elevated privilages
  2. bcdedit /default {current}
  3. restart

An additional tip to speedup the restart of your pc is to hold down shift when restarting… This will prompt you to choose what os you want before all the preload stuff

0

How to remove OEM Recovery Partition in windows 8 / 7

  1. Windows Logo Key + R and type in ‘diskpart’ (CMD will open)
  2. Type ‘list volume’ (you will see a list of all your partitions)
  3. Next ‘select volume [volume_number] (use the number in the ‘Volume ###’ section of the previous command)
  4. remove letter [drive_letter]
  5. ‘exit’

And thats it, you’re done. No more annoying recovery partition showing up.

To add the letter back at the future date you can follow the same method above but replace step 4 with:

‘assign letter [drive_letter]’

0

How to boot windows 8 in safe mode

Easy Way:

On boot go into Recovery (normally F11) > Advanced Otions > Windows Startup Settings and voilia, you are done.

In the case where you do not see Startup Settings in windows 8 follow the hard way below

Hard Way:

Boot into Recovery, open Command Prompt and type…

Bcdedit /set {bootmgr} displaybootmenu yes
exit

restart your pc and you can now press F8 on startup to get to startup settings.

To disable this again, go back in command prompt and type

Bcdedit /set {bootmgr} displaybootmenu no
exit