LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-05-2016, 05:21 AM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Backup Up Windows 10, The clean way to install DEBIAN Linux on any notebooks


Hello,

I just bought an ASUS 11.6" R206S.
It is made by ASUStek in Taiwan.

Here the clean method to install DEBIAN on it. The clean method can work on any other machines.


STAGE 1: BACKUP WINDOWS 10 UNTOUCHED
1. Enter the Bios by pressing F2 (DO NOT LET WINDOWS TO START EVEN A SINGLE TIME!!)
https://www.asus.com/support/faq/1008829

2. Here disable EFI Secured boot
3. Get xfce debian iso
http://cdimage.debian.org/debian-cd/...ce-desktop.iso

use dd to make it on your usb pendrive:
Code:
dd debian-live-8.4.0-i386-xfce-desktop.iso of=/dev/sdX 
// X is whatever you may want
4. Boot Linux Debian, add a 3-4 TB usb hardisk and backup with dd.
Code:
 dd if=/dev/sda of=/western-digital/windows-10-backup-sda.img
5. make a md5sum for it
Code:
 md5sum windows-10-backup-sda.img > disk-check.md5
STAGE 2: PARTITION THE DISK SDA
1. boot your live debian xfce
2. press alt f1 to go to console
3. fdisk /dev/sda

.make a DOS partition table by pressing o
.make a /dev/sda1 with fat16 (6: for fat16)
.make a /dev/sda2 with linux
.make a /dev/sda3 with linux (for your home)
.in fdisk, press a to make /dev/sda1 bootable

4. format
Code:
mkfs.vfat /dev/sda1
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda3


STAGE 3: DEBOOTSTRAP ON THE PARTITION SDA2
1.You are going to use debootstrap to install Linux, the right way! Mount the /dev/sda2 to the /target.
Code:
   echo umount
   umount /target/proc
   umount /target/dev
   umount /target/sys
   mount
   mkdir /target/
   mkdir /target/proc
   mkdir /target/dev
   mkdir /target/sys
   echo mountbind
   mount --bind /proc /target/proc
   mount --bind /dev /target/dev
   mount --bind /sys /target/sys
   mount
   pwd
   echo get-some-coffee-it-takes-times
   debootstrap --include=pciutils,usbutils,network-manager,net-tools,netbase,ifupdown,less --arch i386 stable /target http://ftp.us.debian.org/debian 
   echo most-work-done
2.Now, you can set the password for your root.
3.You can add some users, if you'll like or to do it later.
4.Change the /etc/hostname
5.Here you need to edit your fstab.

Code:
# /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>
/dev/sda2   /  ext4 defaults,rw 0 0
6.Edit your /etc/systemd/logind.conf to avoid the LID to make issues.

Code:
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# See logind.conf(5) for details

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes

STAGE 3: REALLY, USE THE RIGHT BOOT: SYSLINUX !!
1. On your Linux, install syslinux (apt-get install syslinux)
2. Mount the /dev/sda1 to /mnt/sda1
3. copy the /usr/lib/syslinux/modules/bios/*.c32 files to /mnt/sda1/ (lazy way)
4. run syslinux /dev/sda1
or better:
Code:
   dd conv=notrunc bs=440 count=1 if=/usr/lib/syslinux/mbr/mbr.bin  of=/dev/sda
5. Copy the splash.png to the /mnt/sda1/splash.png
here the file: http://s33.postimg.org/mnhg89scf/splash.png
640x480
6. Edit the /mnt/sda1/syslinux.cfg
Code:
# SYSLINUX CFG 
# For more reading, please visit syslinux wiki and 
# https://fedoraproject.org/wiki/Common_kernel_problems
default vesamenu.c32
timeout 300
prompt 0
noescape 1
MENU MARGIN 5
 MENU BACKGROUND splash.png
# Set the color for unselected menu item and timout message
 MENU COLOR TITLE    1;36;44    #ffffffff #00000000
 MENU COLOR SEL      7;37;40    #FF000000 #FFC0C0C0
 MENU COLOR HOTSEL   1;7;37;40  #FF000000 #FFC0C0C0

say **********************************************************************
say * DEBIAN *
say http://www.debian.org
say DEBIAN OPERATING SYSTEM IS POWERED BY A 3.x LINUX KERNEL.
say DEBIAN OFFERS HIGH RELIABILITY SOFTWARES FOR COMPUTER.
say **********************************************************************

ALLOWOPTIONS 1
MENU TITLE ASUS COMPUTER 

label DEBIAN
  MENU DEFAULT
  MENU LABEL TINYDEBIANIX (Default settings)
  kernel vmlinuz
  append initrd=initrd.gz root=/dev/sda2 i915.modeset=1 vesafb:mtrr,ywrap vga=0x318   xforcevesa nomodeset 
  TEXT HELP
  * Boot menu 
  * http://www.debian.org
  * DEBIAN OPERATING SYSTEM IS POWERED BY A 3.x LINUX KERNEL.
  * DEBIAN OFFERS HIGH RELIABILITY SOFTWARES FOR COMPUTER.
  ENDTEXT

label DEBIAN RESCUE
  MENU LABEL TINYDEBIANIX (RESCUE)
  kernel vmlinuz
  append initrd=initrd.gz root=/dev/sda4 i915.modeset=1 vesafb:mtrr,ywrap vga=0x318   xforcevesa nomodeset 
  TEXT HELP
  * Boot menu 
  * http://www.debian.org
  * DEBIAN OPERATING SYSTEM IS POWERED BY A 3.x LINUX KERNEL.
  * DEBIAN OFFERS HIGH RELIABILITY SOFTWARES FOR COMPUTER.
  ENDTEXT


STAGE 4: CHOOSE YOUR KERNEL

1. Install your kernel. Here I choose this one:
Code:
Linux bbook 3.16.0-4-586 #1 Debian
2. You can get the linux-image related to your choosen kernel.
The choice of kernel is the most important!!
here is the one I use usually:
https://packages.debian.org/jessie/l...e-3.16.0-4-586

3. You have to make sure that you have the kernel vmlinuz / initrd.gz
here the important files:
Code:
    /mnt/sda1/initrd.gz
    /mnt/sda1/vmlinuz
Syslinux will use them to boot!
4. So now, you are almost done. You just need to copy the modules to your /mnt/sda2 lib directory
Code:
ls /lib/modules/3.16.0-4-586
Do not forget the modules, otherwise, it won't boot
5. Check and re-check that you did all correctly as indicated above.




STAGE 5: INSTALL THE WIFI
1. Your wifi shall not work at first.
2. Get the files into /lib/firmware/rtlwifi/
rtl8821aefw.bin
rtl8821aefw_wowlan.bin

Code:
/lib/firmware/rtlwifi$ md5sum rtl8821ae*
61d4e7322431fafa20070ee451663f8f  rtl8821aefw.bin
eb7a115cfa5ac2bf44f7124e54b4334d  rtl8821aefw_wowlan.bin
3. install make (apt-get install make)
4. get the patch backports-20150313.tar.gz
(link: https://www.kernel.org/pub/linux/ker...0150313.tar.gz )
5. patch it
Code:
tar -zxvf backports-20150314.tar.gz
cd backports-20150314
make defconfig-rtlwifi
make
echo check
make install
5. Install wpasupplicant, and add to /etc/network/interfaces
Code:
 auto wlan0
 iface wlan0 inet manual
 wpa-roam /etc/network/wlanwifi.conf
and create /etc/network/wlanwifi.conf with:
Code:
network={
	ssid="< here update it >"
	psk=< here update it >
}
5. Install wpasupplicant, and add to /etc/network/interfaces.
I recommend to use WPA >2!
then type:
Code:
ifup wlan0 ; dhclient -v wlan0



STAGE 6: INSTALL XORG SERVER
1. You may install xfwm4, and more...

2. I give you my ~/.xbindkeys configuration. xbindkeys is a nice choice, since it is independant on the window manager you use.
Code:
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.5
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
#    "command to start"
#       associated key
#
#
# List of modifier:
#   Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
#   Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#

" xterm -bg black -fg green  "
    m:0x51 + c:53
    Shift+Mod2+Mod4 + x

" firefox " 
    m:0x50 + c:41
    Mod2+Mod4 + f

"xdotool set_desktop $(expr $(expr $(xdotool get_desktop) - 1) )"
    m:0x50 + c:45
    Mod2+Mod4 + k

"xdotool set_desktop $(expr $(expr $(xdotool get_desktop) + 1) )"
    m:0x50 + c:44
    Mod2+Mod4 + j

"xdotool set_desktop $(expr $(expr $(xdotool get_desktop) + 1) )"
   m:0x50 + c:114
   Mod2+Mod4 + Right

"xdotool set_desktop $(expr $(expr $(xdotool get_desktop) - 1) )"
   m:0x50 + c:113
   Mod2+Mod4 + Left

"  icedove " 
    m:0x50 + c:32
    Mod2+Mod4 + o

" icedove -compose   "
    m:0x50 + c:57
    Mod2+Mod4 + n

" xfce4-taskmanager "
    m:0x1c + c:119
    Control+Alt+Mod2 + Delete

" wmctrl -c :ACTIVE: "
    m:0x40 + c:25
    Mod4 + w

" amixer  set Master 2+ "
    m:0x40 + c:111
    Mod4 + Up

" amixer  set Master 2- "
    m:0x40 + c:116
    Mod4 + Down

"xdotool set_desktop 0 " 
    m:0x40 + c:10
    Mod4 + 1
"xdotool set_desktop 1 " 
    m:0x40 + c:11
    Mod4 + 2
"xdotool set_desktop 2 " 
    m:0x40 + c:12
    Mod4 + 3
"xdotool set_desktop 3 " 
    m:0x40 + c:13
    Mod4 + 4

"  xdotool windowminimize $(xdotool getactivewindow) "
    m:0x40 + c:24
    Mod4 + q

I guess that you have all the most valuable infos to install Debian Linux and enjoy it!

HAVE FUN WITH LINUX!
Developer Pat'
Attached Thumbnails
Click image for larger version

Name:	debian-on-asus-11.6.png
Views:	49
Size:	205.2 KB
ID:	22017   Click image for larger version

Name:	20160605-debian-linux-on-asus.jpg
Views:	52
Size:	215.1 KB
ID:	22018  

Last edited by patrick295767; 06-05-2016 at 06:49 AM.
 
Old 10-17-2020, 07:09 AM   #2
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,067

Rep: Reputation: 147Reputation: 147
Question

You made the claim in a thread about using LILO to boot a GNU/Linux and Android, that you wrote a howto to boot a GNU/Linux and Android with syslinux... okay, where is that howto then? Certainly not here, where your link from that thread goes...

Last edited by dchmelik; 10-23-2020 at 11:30 PM.
 
Old 10-17-2020, 09:46 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ are you refering to a recent thread? Which one? Because this one is 4 years old...
 
1 members found this post helpful.
Old 10-23-2020, 11:29 PM   #4
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,067

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by ondoho View Post
^ are you refer[r]ing to a recent thread? Which one? Because this one is 4 years old...
Then you can answer that the way you interpret: Any known way to use lilo to boot Android? My question is to Patrick.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot log in 14.0.4 after clean install from windows 8 Metzrs Linux - Newbie 2 06-21-2015 12:57 PM
A Clean Windows Install frankbell General 17 04-15-2015 08:01 PM
Backup prior to clean install novakane Linux - General 1 09-13-2010 11:21 PM
What to backup before a clean install yesfixit SUSE / openSUSE 2 03-24-2005 06:55 AM
Debian Woody sound problem after clean install matix Linux - Distributions 8 11-24-2002 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration