logo sykohpath.com

				where code goes to die
			
	
tagstagstagstagstagstags

Dual Boot Mint 12 and Windows 7 on MST G

Mainly putting this here for my own reference, since I posted it on another site, and promptly forgot where it was.  Some newer hardware does not support the default Ubuntu/Mint installation, and requires some flags in order to get it work.  This was the case for my MSI GT780 DXR laptop, which I use for work (mint 12) and home (win 7).

I got it to load Mint 12 off the DVD. Mint 10 worked, but drivers were a big pain to deal with, and newer distros automagically have them.  Note that this is from straight out of the box hardware.

First, remove any former raid setup, and install Windows 7 first.

1) After BIOS post, press CTRL + I to enter RAID BIOS
2) press 2 to delete RAID
3) press 5 to exit
4) enter system BIOS (delete key) and setup SATA from RAID to AHCI
5) press F10 to save and exit
6) (re)install Windows


Next, install Mint 12.  This is sort of a carpet-bomb approach as regards to the settings, so I know a majority of these are pointless, but here's what I had set for the boot from DVD to work (I assume this works for the newer Ubuntu distros as well, since Mint is built on it):

1) BIOS:
USB Options:
Legacy USB: AUTO
XHCI: Disable
EHCI: Disable
2) Boot off CD, press any key to stop the 10 second countdown. Press TAB, and change the following:
REMOVE: quiet splash (optional)
ADD (before the --): noapic noapci nomodeset acpi=oldboot


I have a suspicion it's just the "acpi=oldboot" that is the magic fix on this one, so someone with more knowledge can chip in at this part.

I can confirm that wireless ethernet adapter AND the webcam work for the install.

------------------------------

Booting into it after install:

uhhh...new problem. Boot fails...not surprised. We need to edit boot options.

Boot normally, and it fails, so you'll have to edit the boot command. Fun stuff:

1) At boot menu, press "e" to edit the boot command.
2) Go down to where it says "linux /boot/vmlin"
3) Remove "quiet splash" (optional)
4) Add "noapic noapci nomodeset acpi=oldboot"
5) press F10 to boot into it. The first time I did this, it actually froze while booting. Did it again and it worked (I might have misspelled something first time)
6) Now you're in!
7) Change the boot permanently: Open Terminal
8) sudo bash

Now, at this point you can edit the existing boot, or make your own script. I made my own since I'm a noob and can't comprehend the existing boot scripts yet. All I did was copy the innards from the boot menu, and added the working options.

9) gedit /etc/grub.d/01_gt780dxr (or whatever your favorite editor is :P) (you can change the 01 to any number to change the ordering - with it at 01, it comes before the other options in the boot menu)
10) SCRIPT: ("simply" copy what is there in the other script when you press 'e' on boot menu - we're just adding the other options in the linux boot line)
#!/bin/sh -e
echo "I hope this works"
cat << EOF
menuentry "Mint 12 - MSI GT780DXR boot options" {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root c876a7ef-2ae7-4492-a481-c5150cd69408
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=c876a7ef-2ae7-4492-a481-c5150cd69408 ro noapic noapci nomodeset acpi=oldboot vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
EOF
11) chmod +x /etc/grub.d/01_gt780dxr
12) update-grub
13) exit
14) reboot and pray it somehow works...oh wow it worked


Now I hope some linux script god will reply and tell me I did this all wrong and post an easier way to do this

mint 12, ubuntu, windows 7, dual boot, gt780, msi,


0 comments.

tagstagstags

Change Login Backgrounds

Man, I'm in a customizable mood today.  Sigh.  I need a Mac just so I can cover all 3 bases.  For now, here's the only 2 I use.

Mint 12:
Code Sample:
  1. sudo gedit /etc/lightdm/unity-greeter.conf


Change the line that says "background" to a file location where your picture is.  I tried with a PNG, but it didn't work, so stick with JPG:
Code Sample:
  1. #background=/usr/share/backgrounds/linuxmint/default_background.jpg  //old background
  2. background=/home/sykohpath/Pictures/mikulogin.jpg
  3. logo=/usr/share/unity-greeter/logo.png


Logout-login, and you should see your background.  If it's a black screen, check your file location and letter casing.  I'm sure Image size doesn't matter - I'm using a 1920x1080; the default is 1920x1200, so I think as long as it's bigger than your screen, it'll fill it properly.

-----------------------------------------------------------------------------------------------------------------------------------------------

Windows is harder than Linux...nice!

Windows 7:

1) regedit

2) HKEY_LOCAL_MACHINE, select Find

3) Search for OEMBackground
Computer\HKEY_LOCAL_MACHINE\SOFTWAREMicrosoft\Windows\CurrentVersion\Authentication\LogonUI\Background

4) If the key doesn't exist, create DWORD with the name OEMBackground.  Change the value from 0 to 1

5) Open Explorer, and go to
%windir%\system32\oobe

6) Make a folder named "info", and in that folder, make "backgrounds"
%windir%\system32\oobe\info\backgrounds

7) Copy-paste your background in here, and rename it:
backgroundDefault.jpg

NOTE:  File size must be less than 245kb.

8) That's it! AMAZING.  Log off and you'll see it.

There's also programs that can "automatically" do this for you, but come on!  where is the fun in that?

login background, mint 12, windows 7,


0 comments.

tagstagstagstagstags

Auto-install Important Updates

I'm one of those people that like to have everything updated every day.  So, every day when I log-in, I run Update Manager.  Well, that's freaking annoying, why can't it run automatically?  CRON JOB TIME.

First, get this through Software Manager, or whatever you use.  The package is called:
unattended-upgrades

Next, open terminal...well, open this biglong filename:
Code Sample:
  1. sudo gedit /etc/apt/apt.conf.d/02periodic


And cram all this stuff inside:
Code Sample:
  1. # Enable the update script (0 = disable)
  2. APT::Periodic::Enable "1";
  3. # Get package lists every X days - apt-get update
  4. APT::Periodic::Update-Package-Lists "1";
  5. # Get upgrades every X days - apt-get upgrade --download-only
  6. APT::Periodic::Download-Upgradeable-Packages "0";
  7. # Clean every X days - apt-get autoclean
  8. APT::Periodic::AutocleanInterval "0";
  9. # Allow unattended script to run
  10. # Requires the package “unattended-upgrades” and will write
  11. # a log in /var/log/unattended-upgrades
  12. APT::Periodic::Unattended-Upgrade "1";


Change how often you want to update...heck, just read the comments, it's pretty self-explanatory.

Next, confirm the settings for what you actually want to download.  
Code Sample:
  1. sudo gedit /etc/apt/apt.conf.d/50unattended-upgrades


My default didn't grab "stable", so I had to add it at the top:
Code Sample:
  1. // Automatically upgrade packages from these (origin, archive) pairs
  2. Unattended-Upgrade::Allowed-Origins {
  3. "${distro_id} stable";
  4. "${distro_id} ${distro_codename}-security";
  5. // "${distro_id} ${distro_codename}-updates";
  6. // "${distro_id} ${distro_codename}-proposed";
  7. // "${distro_id} ${distro_codename}-backports";
  8. };
  9. // List of packages to not update
  10. Unattended-Upgrade::Package-Blacklist {
  11. // "vim";
  12. // "libc6";
  13. // "libc6-dev";
  14. // "libc6-i686";
  15. };
  16. // This option allows you to control if on a unclean dpkg exit
  17. // unattended-upgrades will automatically run
  18. //   dpkg --force-confold --configure -a
  19. // The default is true, to ensure updates keep getting installed
  20. //Unattended-Upgrade::AutoFixInterruptedDpkg "false";
  21. // Split the upgrade into the smallest possible chunks so that
  22. // they can be interrupted with SIGUSR1. This makes the upgrade
  23. // a bit slower but it has the benefit that shutdown while a upgrade
  24. // is running is possible (with a small delay)
  25. //Unattended-Upgrades::MinimalSteps "true";
  26. // Send email to this address for problems or packages upgrades
  27. // If empty or unset then no email is sent, make sure that you
  28. // have a working mail setup on your system. The package 'mailx'
  29. // must be installed or anything that provides /usr/bin/mail.
  30. //Unattended-Upgrade::Mail "root@localhost";
  31. // Set this value to "true" to get emails only on errors. Default
  32. // is to always send a mail if Unattended-Upgrade::Mail is set
  33. //Unattended-Upgrade::MailOnlyOnError "true";
  34. // Do automatic removal of new unused dependencies after the upgrade
  35. // (equivalent to apt-get autoremove)
  36. //Unattended-Upgrade::Remove-Unused-Dependencies "false";
  37. // Automatically reboot *WITHOUT CONFIRMATION* if a
  38. // the file /var/run/reboot-required is found after the upgrade
  39. //Unattended-Upgrade::Automatic-Reboot "false";
  40. // Use apt bandwidth limit feature, this example limits the download
  41. // speed to 70kb/sec
  42. //Acquire::http::Dl-Limit "70";


Aaaaand you're all set.  So now I can simply log in and magically...not manually update every dang thing.

ubuntu, mint 12, linux, auto install, updates,


0 comments.

tagstagstagstags
1335358543

Linux Mint 12 Auto Mount Drive

Here's how to automount a drive:

1) First, open up terminal, and determine what type of drive format it is:
Code Sample:
  1. sudo blkid


With a second hard drive, it'll most likely be /dev/sdb1 or something around there.  If you've labeled your drive, chances are it'll say LABEL="your label".  Note the TYPE="xxxx", which will determine which of the following you'll use.  In my example for my secondary hard drive:

/dev/sdb1: LABEL="Storage" UUID="92DEADA8DEAD8557" TYPE="ntfs"

2) Now you'll make your directory for your new mount.  I like to keep the name of the folder the same as the drive label, but you can name it whatever you want.

Code Sample:
  1. sudo mkdir /media/Storage


3) Man this is so hard.  Now open up your fstab...

Code Sample:
  1. sudo gedit /etc/fstab


4) And depending on your drive type, follow only the appropriate one:

*NOTE* It doesn't show up correctly here, but there is a tab where every space is.  This is important!  Copy-paste from here won't give you exactly what you need, so simply delete each space and TAB once.

/deb/drive     /media/location     type     defaults     0     0

Also, make sure you replace "/dev/sdxx" with your drive (such as "/dev/sdb1") and the "/media/xxxxx" with your same directory name you did above (such as "/media/Storage").

ntfs:
Code Sample:
  1. /dev/sdxx /media/xxxxx ntfs defaults,umask=007,gid=46 0 0


fat32:
Code Sample:
  1. /dev/sdxx /media/xxxxx vfat umask=0000,uid=1000,gid=1000,auto,rw,users 0 0


ext3:
Code Sample:
  1. /dev/sdxx /media/xxxxx ext3 defaults,noatime 0 2


Note: If you ever remove/comment out this line in /etc/fstab, the drive will be stuck in "read-only" mode.

ubuntu, mint 12, linux, auto mount,


0 comments.