Sufficiency Economy
Group Blog
 
All blogs
 
ทดลองเล่น Arch Linux บน Virtual Box



เห็นว่า Arch Linux ไม่ค่อยกินทรัพยากร และลงค่อยข้างยาก แต่มีคนเก่งทำใน youtube ให้ ตาม link ข้างล่าง เลยลองทำดู ก็ ok นะ  


https://www.youtube.com/watch?v=JpV6eW_4JQk


https://www.youtube.com/watch?v=8ILPjsZvs8Y มี GUI

Virtual box


Memory size 1024 MB

File Location andsize 20 GB

start แล้วไปเลือกiso ที่Load มา


view  Full screenMode

เลือก: Boot Arch Linux (x86_64)


จะได้root@archiso~ #


ping google.com


แบ่งpartition

fdisk -l

cfdisk เลือกdos

new partition กำหนดpartition size : 10G และตั้งให้เป็นprimary partition และตั้งให้เป็นBootable

/dev/sda1

เลือกwrite : write the partition table to disk?


ต่อสร้างpartion ขนาด2048M และตั้งให้เป็นprimary partition เลือกwrite : write the partition table to disk?

/dev/sda2


ต่อสร้างpartion ขนาดที่เหลือ และตั้งให้เป็น primary partition เลือกwrite : write the partition table


mkfs.ext4 /dev/sda1

mkfs.ext4 /dev/sda3


mkswap /dev/sda2

swapon /dev/sda2


mount /dev/sda1 /mnt

mkdir /mnt/home


mount /dev/sda3/mnt/home


pacstrap /mnt basebase-devel

จะทำการติดตั้ง


genfstab /mnt>>/mnt/etc/fstab

cat /mnt/etc/fstab


arch-chroot /mnt/bin/bash

nano /etc/locale.genแล้วไปแก้ที่en_US.UTF-8 UTF-8

locate-genเพื่อทำกาารสร้าง ??


nano/etc/locale.conf แล้วใส่ข้อความLANG=en_US.UTF-8


ls/usr/share/zoneinfo

ln -s/usr/share/zoneinfo/Asia/Kolkata /etc/localetime

hwclock --systohc--utc




ตั้งค่าroot password ด้วยคำสั่งpasswd ใช้123


nano /etc/hostnameแล้วใส่archserver

systemctl enabledhcpcd


pacman -S grubos-prober


grub-install/dev/sda

grub-mkconfig -o/boot/grub/grub.cfg


umount /mnt


exit


reboot

แล้วเลือกBoot existing OS



คำสั่งพื้นฐาน

clear


ลงโปรแกรมเช่นpython ใช้pacman -S python





Create Date : 17 ธันวาคม 2559
Last Update : 17 ธันวาคม 2559 10:02:03 น. 0 comments
Counter : 1392 Pageviews.

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 

wink99_th
Location :
พิษณุโลก Thailand

[Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed
Smember
ผู้ติดตามบล็อก : 8 คน [?]




New Comments
Friends' blogs
[Add wink99_th's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.