Sonntag, 17. Januar 2016

Mittwoch, 5. November 2014

ubuntu 14.10 setup

- boot windows
- repartition to get free space
- download ubuntu, universal-usb-installer
- create usb with ubuntu (with format)
- F11 boot on usb
- setup (use free space as /, boot-device on first without number). if wrong device selected for boot the installer might crash... try another till installer successful finishes.
- on reboot F11 and boot first ubuntu device (for me first login-try did not work, but second worked...)
-with new gs70 wifi does not seem to work... hope i can fix that later on...
- fix grub:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed -i 's/utopic/saucy/g' /etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-utopic.list 

sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
recommended repair
- gives error, reboot to win
- run "cmd" as administrator:
bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi

what a pain. i dont know what i changed that finally made me a real dualboot, but i was never more painful as this time. what a shit... does time go backwards and setting up linux is again rocketscience? i can't remember how it managed to get a working dualboot. this might help you:
http://www.everydaylinuxuser.com/2014/05/install-ubuntu-1404-alongside-windows.html

for working nvidia drivers do:
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update

sudo apt-get purge nvidia*
sudo apt-get install nvidia-343

sudo reboot

equalizer:
sudo add-apt-repository ppa:nilarimogard/webupd8 
sudo apt-get update
sudo apt-get install pulseaudio-equalizer 


works: standby, sound, fn-keys, ethernet, external screen (tested with minidp2dvi and hdmi)
works not yet: wifi (if you have the new gs70 with n1525. the older GS70 should work)

some more useful links to tweak everything:

Mittwoch, 29. Oktober 2014

new gs70 - new luck...

hi guys

my "old" gs70 had a problem with its screen (flickering) and keyboard (dead keys) and so i receive a replacement. it seems there is a better version out now. here is a side-by-side comparison: https://www.digitec.ch/en/Comparison/3228457-631902

seems those components changed:
- cpu (now 3.5GHz Turbo) : minor change
- nvidia gtx 970m with 3GB : bigger update
- 7.1 audio: not sure if this is so important
- killer n1525 wifi: seems to have 802.11ac now
- according to this list its 60grams lighter but 2mm higher...
all the rest seems to stay. i hope they improved the case-stability, otherwise this one breaks also after 6months...

so if this changes are all worth it, break yours now, if it has not already and your warranty has not run out... ;-)

i'll report back with a ubuntu 14.10 setup as soon i got it...

UPDATE: this version has also a great new trackpad with real physical click and a bit more friction (and is black)... this is a very good update. i like physical feedbacks. and the new sound system is incredible loud!

Freitag, 8. November 2013

dualboot - Ubuntu 13.10 - try1

12.04 was to old for me so, i want nvidia always-on. so lets go further and try ubuntu 13.10 and mod it:



if have not already done you need to do step 0, 1 (with different iso) and 2 from here.

if you're already lucky linux user just:
get the iso 13.10 64bit here: http://www.ubuntu.com/download/desktop

apt-get install unetbootin
call unetbootin as root, select the iso and your usb-device

boot with legacy mode (see step 2 here)

press F11 till you boot from usb stick...

scroll to "install ubuntu" then hit "tab"
remove the "quiet, splash" and instead add "nomodeset". hit enter

plugin your ethernet cable or connect to your wifi at top-right (attention as you got us keyboard)

i select also "update while installing" and "thirdparty software"

"something else" as i want to partition manually

i selected some free space on the first disk, hit "+" then my size of 30GB, logical, mounted as "/". let it create and hit "install now". if you want to add also a swap partition ("+", change size and type = swap)

as device for the grub i've selected "sda" Device. Grub install will fail. But thats ok...
We continue without bootloader.

reboot, reset uefi in bios

i booted back to ubuntu 12.04 and did there a
update-grub
if this is your first linux, use the grub-fix method described in the other post...

as ubuntu 13.10 did install nouveau which seg-faults at bootup, i stayed in my 12.04 setup and mounted the 13.10 partition to changeroot into it
chroot /media/xy
apt-get remove xserver-xorg-video-nouveau

reboot and select 13.10 from grub

things wont startup right but with ctrl+alt+F11 and login
sudo su -
apt-get install nvidia-prime nvidia-319 nvidia-settings-319 
reboot

x should come up correct...


Tweaks
next i tweaked ubuntu like described here:
http://www.webupd8.org/2013/10/8-things-to-do-after-installing-ubuntu.html
http://www.webupd8.org/2013/10/gimp-29-210-development-builds.html
http://www.webupd8.org/2013/10/get-sound-working-in-skype-with-ubuntu.html
http://ubuntuforums.org/showthread.php?t=2183447
http://www.howopensource.com/2012/10/create-application-launcher-add-icon-to-unity-ubuntu-12-10/ 


and
 gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope', 'help-askubuntu.scope', 'web-chromiumbookmarks.scope', 'music-clementine.scope', 'graphics-colourlovers.scope', 'graphics-deviantart.scope', 'reference-dictionary.scope', 'info-ddg_related.scope', 'more_suggestions-etsy.scope', 'photos-facebook.scope', 'photos-flickr.scope', 'info-foursquare.scope', 'books-gallica.scope', 'code-github.scope', 'books-googlebooks.scope', 'news-googlenews.scope', 'recipes-gourmet.scope', 'music-grooveshark.scope', 'music-guayadeque.scope', 'reference-jstor.scope', 'info-medicines.scope', 'photos-picasa.scope', 'recipes-recipepuppy.scope', 'info-reddit.scope', 'video-remote.scope', 'reference-googlescholar.scope', 'reference-sciencedirect.scope', 'photos-shotwell.scope', 'social.scope', 'info-songkick.scope', 'music-songsterr.scope', 'music-soundcloud.scope', 'reference-stackexchange.scope', 'help-texdoc.scope', 'reference-themoviedb.scope', 'notes-tomboy.scope', 'weather-weatherchannel.scope', 'reference-wikipedia.scope', 'news-yahoostock.scope', 'help-yelp.scope', 'info-yelpplaces.scope', 'reference-zotero.scope', 'reference-europeana.scope', 'code-devhelp.scope', 'graphics-openclipart.scope', 'weather-openweathermap.scope', 'reference-pubmed.scope']"

http://lifehacker.com/5887462/how-to-disable-ubuntus-annoying-global-menu-bar
https://fixubuntu.com/



Some notes:
1. looks like i can not move from unity to gnome-shell as i always had problems with installing gdm. but if you want to try you can/should be able to do this:
apt-get install gdm
reboot

add-apt-repository ppa:gnome3-team/gnome3-next
add-apt-repository ppa:gnome3-team/gnome3-staging
apt-get update
apt-get dist-upgrade
apt-get install gnome-shell
apt-get install gnome-documents gnome-contacts epiphany-browser gnome-boxes gnome-shell-extensions gnome-tweak-tool bijiben gnome-clocks
apt-get remove overlay-scrollbar 
reboot


log in, and
ctrl + alt + t
gsettings set org.gnome.settings-daemon.plugins.cursor active false
to get the mouse back 


2. if you want to experiment with newer nvidia drivers get them here:
http://www.nvidia.com/object/unix.html


3. experiment with the 3.12 kernel from here, but it does not work with nvidia-319:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-headers-3.12.0-031200-generic_3.12.0-031200.201311031935_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-headers-3.12.0-031200_3.12.0-031200.201311031935_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-image-3.12.0-031200-generic_3.12.0-031200.201311031935_amd64.deb
dpkg -i linux*3.12*.deb


4. if you lost the fn-X keys: http://ubuntuforums.org/showthread.php?t=2174250

5. after kernel upgrades reboot and if X comes up or or jus low-grafix-mode is available do this:
dpkg-reconfigure nvidia-prime nvidia-319 virtualbox-dkms

Sonntag, 8. September 2013

setup dualboot with Ubuntu 12.04.3 - try 1


after some trial and error here my log how to setup Linux as dualboot on my brand new msi gs70 with Win8 and Raid-setup. basically i did this:
  1. repartition to get free space
  2. change bios uefi settings
  3. setup ubuntu 12.04.3 64bit
  4. fix grub
  5. change bios uefi settings
  6. setup ubuntu 

 

Status:

working: dual boot with grub. booting ubuntu 12.04.3 64bit, wifi, X with intel, Suspend, Sound, Touchpad, Ethernet, Optimus with Bumblebee...
not working yet: SDcards, Camera, External Displays (possibly with manual xorg-setup


please comment if you have some hints or solutions

 

 

0. preparations

i did the Bios upgrade first. boot Win8 and get the right Bios (if you have a win8-raid setup choose "version 707") http://www.msi.com/product/nb/GS70-STEALTH.html#download. extract and startup the FLASHWIN64.bat

 

1. repartition to get free space

i installed EaseUS Partition Master (free version here: http://www.partition-tool.com/landing/home-download.htm). and changed the C: partitions Size. besides i removed the partitioning of the Second Drive. Partition C: resized to 100GB (101946.3MB)
here after the linux setup. so the E: you dont have, but much more unallocated space.


get the 10.4.3 64bit iso (http://www.ubuntu.com/download/desktop/questions?distro=desktop&bits=64&release=lts) and copy it with "pendrive usb installer" to a usb stick (at least 1GB size) like described here: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows 
i just took "try unlisted linux iso" and selected the downloaded iso and the right usb-drive.

NOTE: maybe there is a way to delete some stuff inside win8 to get its partition even smaller... i'll check this later on somewhen.

 

2. change bios uefi settings

restart Machine. when seeing the msi logo press DEL several times. inside Bios change the settings:
  • Boot mode select: legacy
  • Fast boot: disabled
  • maybe you need to change the boot order below also, but i'm not sure if its really needed
save and exit with F10
should look like this for "Fast Boot" and "Boot mode select"


3. setup ubuntu

press F11 while msi logo shows up and then select your usb device.
you should then see a grey-screen with some icons at the bottom, just press enter and start with the setup directly...

if it asks your "installation type" choose "something else" so you can choose which partition. i selected the free space after "/dev/mapper/..._Volume1p4" then "add" and added an ext4 partition with "/" as mountpoint. i did not add any swap, but if you want do so.

the trickiest part was what device to use to install the bootloader. after some trials it seems like it might be best to use just Volume1p1 as one needs to fix grub anyway. actually i dont know which one i've taken in the end, as it just came up again telling me to chose the right one. which i had to do several times...

seems like ethernet is not working, so i had to use wifi. at top right there appears the wifi-radar sign and it should be possible to use your wifi with it. at least here it worked.

 

4. fix grub

press F11 while msi logo shows up and then select your usb device. boot into live preview modus of your usb-stick to repair grub.

i connected via wifi as ethernet was not working. then open a terminal (mouse left-top corner -> terminal) and enter:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update 
sudo apt-get install -y boot-repair && (boot-repair &)
 
then just hit "recommended repair". if it asks you to paste something in the console do so (mark -> ctrl+c, terminal -> ctrl+shift+v)

 

5. change bios uefi settings

just revert the setting changes from 2.
  • Boot mode select: UEFI
  • Fast boot: enabled
Save & Exit
now at the startup you should see grub and be able to boot in win8 and ubuntu.

 

6. setup ubuntu

HINT: something went wrong and i dont get the login-screen, but ubuntu itself is running. get into a shel with CTRL+ALT+F1, and login. at least here i still was connected with the wifi i configured during installer.

for the intel grafic i then did this (i hope i did not forget anything, as i had a long way to go):

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get purge nvidia-* bumblebee
sudo apt-get --purge autoremove
sudo apt-get install virtualgl linux-headers-generic vim xinit 

startx

i use "gnome" desktop (switch at the login screen with icon next to your name), as unity2D tend to eat more than half the cpu here. maybe i need to recheck the grafic-card and stuff. but this way i can at least really work...

i use synaptiks to configure the touchpad:
apt-get install kde-config-touchpad
then startup "synaptiks" and configure it like this:



here some of my other tweaks (remove ubuntu-one, empathy, get the normal scrollbars back)
apt-get remove ubuntuone* empathy overlay-scrollbar
echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars

set up the ethernet like described here http://askubuntu.com/a/333973 :

apt-get install fakeroot build-essential linux-headers-$(uname -r)
cd /usr/src/
mkdir compat_src
cd !$
wget http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.9-rc2/compat-drivers-3.9-rc2-2-su.tar.bz2
tar xvjf !$:t
cd compat-drivers-3.9-rc2-2-su

wget https://gist.github.com/Germar/ea11bc1e998fee965f03/raw/5b1d28d42f0d4f2c4bf063002fde126becc61928/alx-patch.txt
patch --dry-run -p1 < alx-patch.txt

patch -p1 < alx-patch.txt
./scripts/driver-select alx
fakeroot make
make install
modprobe alx


to not loose ethernet after recovering from hibernate:
vi /etc/pm/config.d/modules
SUSPEND_MODULES="alx"
:wq!

after kernel upgrades you need to do this to get ethernet working again:
cd /usr/src/compat_src/compat-drivers-3.9-rc2-2-su/
fakeroot make
make install
modprobe alx



how to get the "Public" folder working:
right click on the "Public" folder -> sharing options -> select everything. as far as i remember it then asks to install samba. otherwise apt-get install samba smbfs. i also added user rights, so oneself can move the files from that public folder to somewhere else:
vi /etc/samba/smb.conf
add to the global section:
create mask = 0777
directory mask = 0777
:wq


service smbd restart




install some other useful tools
apt-get install ...


update 02.oct.

bumblebee setup
like here https://wiki.ubuntu.com/Bumblebee#Installation

Enable the Universe and Multiverse repositories in /etc/apt/sources.list

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee virtualgl linux-headers-generic bbswitch-dkms

reboot

optirun glxgears


optirun works, also after suspend if you install bbswitch-dkms.


notes for virtualbox:
dpkg-reconfigure virtualbox-dkms 
dpkg-reconfigure virtualbox 
modprobe vboxdrv 
modprobe vboxnetflt



please comment if you have some hints or solutions