Montag, 13. Oktober 2014

How to setup Dual Boot of Linux (Xubuntu) on pre installed Windows 8.1 on Lenovo U430p

Notebook: Lenovo Ideapad U430p Intel 64bit pre installed Windows 8.1 UEFI
Linux distribution to setup as dual boot: Xubuntu 14.04.1

I got a new Lenovo U430p with windows 8.1 and I wanted to have xubuntu installed next to it, so I can boot either windows or linux on my notebook. After trying for days and many fails with that half-knowledge of mine about UEFI, legacy boot, grub, wubi, secure boot etc...  I finally solved this problem. This is how I got things working:

For a shorter howTo check this out: http://danni-kun.blogspot.de/2014/10/quick-dual-boot-installation-on-lenovo.html



Starting point:

For this I used a fresh installation/recovery of windows 8.1 which came with the factory setup. No changes in any settings within windows nor in the bios were made. If you have a backup of your windows, you should install that first. I recovered windows with onekey recovery and had to reinstall xubunu to be able to boot it again...

BIOS default settings


1. create a backup partition


Since you won't get a recovery cd unless you pay Lenovo for it, you're well-advised to create some backups. You can create an external device via "control panel -> recovery" to recover the whole system.
For backing up the windows distribution in case you have some programs/data to backup, you can use the "onekey recovery" tool.
I really recommend theese two steps. Saved my ass!


2. create free/unpartitioned space for your linux distribution


Shrink your main partition (Windows8_OS for example) to create about 50GB (or less) free space.
You can do this via "Computermanagement -> Discmanagement".

Discmanagement (right click on win)

creating free space


3. download your desired linux distribution iso

I just tried this with xubuntu, but I asume it will work with other distributions like ubuntu, lubuntu etc as well. Keep in mind, for 64bit system you need the "64AMD" version of your distribution. Even if your system is an intel 64bit, this will be the right file: xubuntu-14.04.1-desktop-amd64.iso

from http://xubuntu.org/getxubuntu/


4. download rufus and create a boot device

Rufus is used to create UEFI bootable USB drives. You can download rufus from http://rufus.akeo.ie/. Just run the application (no installation needed).

For xubuntu you need at least a 1GB USB device.

Rufus is pretty self-explaining. Just use the settings on your device for UEFI, FAT32 and choose the right ISO. You find a "DONE" in the left bottom corner when your device is ready.

rufus settings (german)


5. reboot from USB device

I wasn't able to boot any USB disc or device while having UEFI enabled. The device created with rufus however was bootable with UEFI.
To boot it, you can press F12 (fn+f12) on restart. Then you should see the boot manager.

bootmanager after pressing F12 on boot

Another option is to change the boot order in BIOS (press F2). Or you can try clicking "restart" in windows while holding shift. Then you can choose to boot from USB device on restart.


6. install xubuntu

After booting from USB device you should be able to install xubuntu. Choose "something else" for install and ignore the fact that there was no OS detected.



Locate your free space you created earlier and create 4 partitions by clicking the "+":

  1. bios-grub: 1MB
  2. efi boot: 250MB
  3. swap: 2-8GB
  4. ext4: remaining space (10-40GB) and add "/" as mount point!
50GB free space



Now you can start to install.


7. done

After xubuntu is installed you are done. After reboot you should be able to choose from ubuntu and windows how it is supposed to be. You can check out my BIOS settings. Ubuntu is not installed under legacy, but under UEFI as well.


ubuntu and windows dual boot option

ubuntu and windows dual boot under UEFI



Quick dual boot installation on Lenovo Ideapad U430p in UEFI

How to setup dual boot of Xubuntu/(Linux) next to pre installed Windows 8.1 on Lenovo U430p Ideapad with UEFI 


I wanted to have a distribution of xubuntu next to win 8.1 on my new Lenovo U430p.
After 3 days of doing tutorials, this is what worked for me:

This is a short howTo for advanced user. A more detailed guide can be found here: http://danni-kun.blogspot.de/2014/10/how-to-setup-dual-boot-of-linux-xubuntu.html

Quick installation 

  1. Make sure you have a recovery distribution for your windows system just in case.
  2. Create unpartitioned space for xubuntu via computermanagement. (e.g. 50gb)
  3. Download your linux distribution ISO. Remember that "64AMD"-named files are ment for intel 64bit as well. For me it is the xubuntu-14.04.1-desktop-amd64 from http://xubuntu.org/getxubuntu/
  4. Download and start rufus from http://rufus.akeo.ie/
  5. Create an UEFI bootable USB device with your linux iso. (FAT 32)
  6. Restart and press F12 (fn+F12) on boot to access the boot manager. (Alternatively you can enter your BIOS with fn+F2 and change the order of your EFI entries to start the USB device)
  7. Start the xubuntu installation from "EFI USB DEVICE"
  8. For installing xubuntu choose "something else"
  9. Create the following partitions out of your free space you created earlier:
    1. 1 MB boot-grub
    2. 250 MB efi boot
    3. ~2 GB swap
    4. ~10-30 GB (remaining space) ext4 and mount point: /
  10. Install xubuntu
Now you should be able to boot xubuntu and windows 8.1 on UEFI boot.

Freitag, 12. September 2014

Download older than files from FTP via LFTP

This is how you can download all files from your ftp that are older than x days:

Linux

Download LFTP:
apt-get install lftp


Connect:
lftp <ftp-host>

-> user <username>
(asked for password)

set local directry:
-> lcd <local path>

download files:
->mirror --older-than='now-30days'

Montag, 1. September 2014

HTML/JS - Syntax Highlighter

For displaying code on your website with nice syntax highlighting you can use the syntax highlighter from here:



Sonntag, 31. August 2014

HTML - favicon

This is how you can add a favicon to your website.
A favicon is a small image next to the title in the browser's tab.


  • upload your favicon.ico
  • define the favicon in the <head> tag



  

 
  


Problems with HP Pavilion 15 p025ng

I had some troubles with my new HP Pavilion 15 p025ng with freedos/no OS.

Problem: Can't install windows 7 or windows 8 on HP Pavilion 15 p025ng

Error: Windows cannot be installed to this disk. The Selected disk has an MBR Partition table. On EFI systems, Windows can only be installed to GPT.

Solution:
  • delete the initially two small partitions on the disc

Problem: bad wifi/wlan on HP Pavilion 15 p025ng

I had problems finding the right drivers for the wifi/wlan. The wifi was working, but so very bad I was about to send back the laptop.


Solution:
  • locate the wifi adapter in your device manager and update your driver using "automatic online search"

CSS - Custom Fonts

This is how you can use your own custom font on your website.

  • upload your font into the css directory
  • declare a new font-face
  • url to font is relative to the css file!



 
   
@font-face {
    font-family: 'eras'; /*a name to be used later*/
    src: url('Eras-Demi-ITC_15890.ttf'); /*URL to font*/
}


body {
    font-family: 'eras';
}