Advertisement
Guest User

Source Mage GNU/Linux Installation (simple)

a guest
Aug 17th, 2017
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. Ok, I've made a super simple installation on my thinkpad, if anyone is curious:
  2. Used parted
  3.  
  4. # parted /dev/sda
  5. mklabel msdos
  6. unit mb
  7. mkpart primary 0g 128
  8. mkpart primary 128 -1
  9. toggle 1 boot
  10. p free
  11. quit
  12.  
  13. Yes, is only two partitions but it works to test sourcemage, also everything is ext4
  14. # mkfs.ext4 /dev/sda1
  15. # mkfs.ext4 /dev/sda2
  16. # mkdir /mnt/drive
  17. # mount /dev/sda2 /mnt/drive
  18. # mkdir /mnt/drive/boot
  19. # mount /dev/sda1 /mnt/drive/boot
  20. # wget "http://download.sourcemage.org/image/official/smgl-stable-0.61-basesystem-x86_64.tar.bz2"
  21. # cd /mnt/drive
  22. # tar xvjf /root/smgl-stable-0.61-basesystem-x86_64.tar.bz2
  23. # mount --bind /dev /mnt/drive/dev
  24. # mount --bind /sys /mnt/drive/sys
  25. # mount -t proc none /mnt/drive/proc
  26. # mount -t devpts none /mnt/drive/dev/pts
  27.  
  28. So far nothing new, but what I've had to do is specify Bash on the chroot because the live USB I've used had a retarded shell
  29. # chroot /mnt /bin/bash
  30.  
  31. Now you have to change your root password, TEST IF YOUR KEYBOARD HAS ALL THE CORRECT MAPPINGS before you change the password
  32. # passwd root
  33.  
  34. Next I change the network interfaces
  35. # nano /etc/network/interfaces
  36. auto eth0
  37. allow-hotplug eth0
  38. iface eth0 inet dhcp
  39.  
  40. Set your preferred DNS provider on resolv.conf.head (is from OpenNIC if you are curious)
  41. # nano /etc/resolv.conf.head
  42. nameserver 193.41.79.236
  43.  
  44. Changed the fstab
  45. # nano /etc/fstab
  46. /dev/sda1 /boot ext4 defaults 0 2
  47. /dev/sda2 / ext4 noatime 0 1
  48.  
  49. Set the bootloader
  50. # nano /etc/lilo.conf
  51. boot = /dev/sda
  52. root = /dev/sda2
  53. # lilo -A /dev/sda 1
  54. # lilo
  55.  
  56. Change the keymaps
  57. # ls /usr/share/keymaps/i386/qwerty
  58. # nano /etc/sysconfig/keymap
  59. KEYMAP=uk
  60.  
  61. # exit
  62. # reboot
  63. Done.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement