vargax
February 17th, 2013, 11:42 PM
First of all excuse my English...
I bought a Dell XPS 14 which comes with Windows 7. I used Ubuntu as my primary operating system, so I setup it to take advantage of most of the hardware features that come with this laptop (UEFI boot, Intel Rapid Start Technology, Hard Drive SSD caching, Nvidia Accelerated graphics and 3 finger touchpad). I installed Windows in a 125GiB partition without SSD caching... I only used it for playing on weekends :).
Enable UEFI (https://help.ubuntu.com/community/UEFI)
- Press F2 to enter setup
- Go to Advance Tab
-- SATA Operation: AHCI
- Go to Boot Tab
-- Add Boot Options: Auto
-- Boot List Option: UEFI
-- Load Legacy Option Rom: Disabled
-- Secure Boot: Enabled
-- Secure Boot Mode: Standard
- Go to Exit Tab
-- Exit Saving Changes
Erase Intel Smart Response Technology RAID Metadata (http://en.community.dell.com/support-forums/software-os/f/3525/p/19458199/20147431.aspx#20147431 and http://askubuntu.com/questions/21267/why-doesnt-the-installer-see-all-of-my-hard-drives?rq=1)
- Boot from Ubuntu 12.10x64 Live USB
- Select “Try Ubuntu”
- Open console
- sudo dmraid -rE /dev/sda
- sudo dmraid -rE /dev/sdb
Partitioning SSD Drive (Enable Intel Rapid Start Technology) (http://blog.adios.tw/2012/10/funtoo-linux-and-intel-rapid-start.html)
- Open Gparted
-- Select /dev/sdb and create 5 partitions
--- 250MiB fat32 boot → EFI partition, it must be at the beginning of the SSD disk and have the boot flag enabled.
--- 20GiB ext4 → Root partition
--- 87GiB unformated → this will be the flashcache partition for /home
--- 4GiB linux-swap
--- 8GiB unformated → this will be the Intel Rapid Start Partition
http://ubuntuforums.org/attachment.php?attachmentid=231568&stc=1&d=1361140580
- Install gdisk
-- sudo gdisk /dev/sdb
-- type ‘?’ and Enter to list commands
-- type ‘p’ to print the partition table, identify the number of the 8GiB partition
-- type ‘t’ to change a partition’s type code
-- Enter the number of the 8GiB partition
-- Enter D3BFE2DE-3DAF-11DF-BA40-E3A556D89593 as a Hex code or GUID
http://ubuntuforums.org/attachment.php?attachmentid=231566&stc=1&d=1361140580
-- type ‘w’ to save changes and exit
Install Ubuntu
- Installation type: Something else
-- Set the 20GiB ext4 partition’s mount point to / and format it.
- Device for boot loader installation: /dev/sdb ATA SAMSUNG SSD PM83 (128.0GB)
http://ubuntuforums.org/attachment.php?attachmentid=231567&stc=1&d=1361140580
- Finish the installation and reboot
Full Upgrade the system and reboot
Optional: Install Windows in the 512GiB disk.
- In the Windows Installer select the 512GiB disk.
- Create a new 125GiB partition. Windows complain about another partition it needs, said ok.
For some reason Windows doesn't work with UEFI... To boot Windows you should enabled Legacy support in Setup -> Boot -> UEFI, press F12 on boot and select the 512GiB disk
FlashCache for /home (http://www.gerrit-tamboer.net/using-flashcache-to-speed-up-your-io-on-ubuntu-12-04/
Read https://github.com/facebook/flashcache/blob/master/README-DKMS)
- Compile Module
-- sudo su
-- cd
-- git clone https://github.com/facebook/flashcache.git
-- cd flashcache/
-- make
-- make install
-- make -f Makefile.dkms boot_conf
-- make install
-- modprobe flashcache
-- dmesg | tail
- Setup partitions
-- Use gparted to create the ext4 partition in the 512GiB disk
http://ubuntuforums.org/attachment.php?attachmentid=231565&stc=1&d=1361140580
- Setup FlashCache
-- Use blkid to get the UUID of the ext4 partition created in the 512GiB disk
-- flashcache_create -p back home_cached /dev/sdb5 /dev/disk/by-uuid/1945c203-efb5-4429-923f-XXXXXXXXXXXX (this is my UUID, you should use yours!)
- Mount /home using FlashCache device
-- Ctrl + Alt + F1
-- Login and grant root privileges
-- sudo su
-- cd /home
-- rm -fr * (Here you are deleting all the stuff in /home, If you have something relevant here you should backup it!!)
-- mount /dev/mapper/home_cached /home (Now /home is using flashcache)
-- cd /home
-- mkdir [USERNAME] (Change USERNAME for your local user)
-- chown [USERNAME]:[USERNAME] [USERNAME] (Setting owner)
- Adjust /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb4 during installation
UUID=95f30149-9310-49a3-b56b-1b8340052f96 / ext4 noatime,nodiratime,discard,errors=remount-ro 0 1
# /boot/efi was on /dev/sdb1 during installation
UUID=AFEA-98E5 /boot/efi vfat defaults 0 1
# swap was on /dev/sdb3 during installation
#UUID=b1b33f9f-a401-46a9-bcac-d9f5fe183551 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
# Flashcache home_cached
/dev/mapper/home_cached /home ext4 noatime,nodiratime,discard 0 0
- Reboot
Bumblebee for Nvidia GeForce GT 630M (Look at http://bumblebee-project.org/install.html#Ubuntu and https://wiki.ubuntu.com/Bumblebee#Installation to learn about optirun command)
sudo add-apt-repository ppa:bumblebee/stable
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic
reboot
Touchpad
Enable 2-fingers right click and 3-fingers middle click (http://forums.linuxmint.com/viewtopic.php?f=49&t=108113)
- Stop the gnome settings daemon from overriding existing settings
gsettings set org.gnome.settings-daemon.plugins.mouse active false
- Set new setting in X.org: Change /usr/share/X11/xorg.conf.d/50-synaptics.conf with:
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
# Option "OptionName" "value"
#
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
MatchDevicePath "/dev/input/event*"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "HorizTwoFingerScroll" "on"
Option "VertTwoFingerScroll" "on"
EndSection
Section "InputClass"
Identifier "touchpad ignore duplicates"
MatchIsTouchpad "on"
MatchOS "Linux"
MatchDevicePath "/dev/input/mouse*"
Option "Ignore" "on"
EndSection
# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
EndSection
# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Disable clickpad buttons on Apple touchpads"
MatchProduct "Apple|bcm5974"
MatchDriver "synaptics"
Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection
I bought a Dell XPS 14 which comes with Windows 7. I used Ubuntu as my primary operating system, so I setup it to take advantage of most of the hardware features that come with this laptop (UEFI boot, Intel Rapid Start Technology, Hard Drive SSD caching, Nvidia Accelerated graphics and 3 finger touchpad). I installed Windows in a 125GiB partition without SSD caching... I only used it for playing on weekends :).
Enable UEFI (https://help.ubuntu.com/community/UEFI)
- Press F2 to enter setup
- Go to Advance Tab
-- SATA Operation: AHCI
- Go to Boot Tab
-- Add Boot Options: Auto
-- Boot List Option: UEFI
-- Load Legacy Option Rom: Disabled
-- Secure Boot: Enabled
-- Secure Boot Mode: Standard
- Go to Exit Tab
-- Exit Saving Changes
Erase Intel Smart Response Technology RAID Metadata (http://en.community.dell.com/support-forums/software-os/f/3525/p/19458199/20147431.aspx#20147431 and http://askubuntu.com/questions/21267/why-doesnt-the-installer-see-all-of-my-hard-drives?rq=1)
- Boot from Ubuntu 12.10x64 Live USB
- Select “Try Ubuntu”
- Open console
- sudo dmraid -rE /dev/sda
- sudo dmraid -rE /dev/sdb
Partitioning SSD Drive (Enable Intel Rapid Start Technology) (http://blog.adios.tw/2012/10/funtoo-linux-and-intel-rapid-start.html)
- Open Gparted
-- Select /dev/sdb and create 5 partitions
--- 250MiB fat32 boot → EFI partition, it must be at the beginning of the SSD disk and have the boot flag enabled.
--- 20GiB ext4 → Root partition
--- 87GiB unformated → this will be the flashcache partition for /home
--- 4GiB linux-swap
--- 8GiB unformated → this will be the Intel Rapid Start Partition
http://ubuntuforums.org/attachment.php?attachmentid=231568&stc=1&d=1361140580
- Install gdisk
-- sudo gdisk /dev/sdb
-- type ‘?’ and Enter to list commands
-- type ‘p’ to print the partition table, identify the number of the 8GiB partition
-- type ‘t’ to change a partition’s type code
-- Enter the number of the 8GiB partition
-- Enter D3BFE2DE-3DAF-11DF-BA40-E3A556D89593 as a Hex code or GUID
http://ubuntuforums.org/attachment.php?attachmentid=231566&stc=1&d=1361140580
-- type ‘w’ to save changes and exit
Install Ubuntu
- Installation type: Something else
-- Set the 20GiB ext4 partition’s mount point to / and format it.
- Device for boot loader installation: /dev/sdb ATA SAMSUNG SSD PM83 (128.0GB)
http://ubuntuforums.org/attachment.php?attachmentid=231567&stc=1&d=1361140580
- Finish the installation and reboot
Full Upgrade the system and reboot
Optional: Install Windows in the 512GiB disk.
- In the Windows Installer select the 512GiB disk.
- Create a new 125GiB partition. Windows complain about another partition it needs, said ok.
For some reason Windows doesn't work with UEFI... To boot Windows you should enabled Legacy support in Setup -> Boot -> UEFI, press F12 on boot and select the 512GiB disk
FlashCache for /home (http://www.gerrit-tamboer.net/using-flashcache-to-speed-up-your-io-on-ubuntu-12-04/
Read https://github.com/facebook/flashcache/blob/master/README-DKMS)
- Compile Module
-- sudo su
-- cd
-- git clone https://github.com/facebook/flashcache.git
-- cd flashcache/
-- make
-- make install
-- make -f Makefile.dkms boot_conf
-- make install
-- modprobe flashcache
-- dmesg | tail
- Setup partitions
-- Use gparted to create the ext4 partition in the 512GiB disk
http://ubuntuforums.org/attachment.php?attachmentid=231565&stc=1&d=1361140580
- Setup FlashCache
-- Use blkid to get the UUID of the ext4 partition created in the 512GiB disk
-- flashcache_create -p back home_cached /dev/sdb5 /dev/disk/by-uuid/1945c203-efb5-4429-923f-XXXXXXXXXXXX (this is my UUID, you should use yours!)
- Mount /home using FlashCache device
-- Ctrl + Alt + F1
-- Login and grant root privileges
-- sudo su
-- cd /home
-- rm -fr * (Here you are deleting all the stuff in /home, If you have something relevant here you should backup it!!)
-- mount /dev/mapper/home_cached /home (Now /home is using flashcache)
-- cd /home
-- mkdir [USERNAME] (Change USERNAME for your local user)
-- chown [USERNAME]:[USERNAME] [USERNAME] (Setting owner)
- Adjust /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb4 during installation
UUID=95f30149-9310-49a3-b56b-1b8340052f96 / ext4 noatime,nodiratime,discard,errors=remount-ro 0 1
# /boot/efi was on /dev/sdb1 during installation
UUID=AFEA-98E5 /boot/efi vfat defaults 0 1
# swap was on /dev/sdb3 during installation
#UUID=b1b33f9f-a401-46a9-bcac-d9f5fe183551 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
# Flashcache home_cached
/dev/mapper/home_cached /home ext4 noatime,nodiratime,discard 0 0
- Reboot
Bumblebee for Nvidia GeForce GT 630M (Look at http://bumblebee-project.org/install.html#Ubuntu and https://wiki.ubuntu.com/Bumblebee#Installation to learn about optirun command)
sudo add-apt-repository ppa:bumblebee/stable
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic
reboot
Touchpad
Enable 2-fingers right click and 3-fingers middle click (http://forums.linuxmint.com/viewtopic.php?f=49&t=108113)
- Stop the gnome settings daemon from overriding existing settings
gsettings set org.gnome.settings-daemon.plugins.mouse active false
- Set new setting in X.org: Change /usr/share/X11/xorg.conf.d/50-synaptics.conf with:
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
# Option "OptionName" "value"
#
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
MatchDevicePath "/dev/input/event*"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "HorizTwoFingerScroll" "on"
Option "VertTwoFingerScroll" "on"
EndSection
Section "InputClass"
Identifier "touchpad ignore duplicates"
MatchIsTouchpad "on"
MatchOS "Linux"
MatchDevicePath "/dev/input/mouse*"
Option "Ignore" "on"
EndSection
# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
EndSection
# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Disable clickpad buttons on Apple touchpads"
MatchProduct "Apple|bcm5974"
MatchDriver "synaptics"
Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection