USB My Archlinux install process.
after creating bootable usb from iso download of arch
(dd if=archlinux_install_.iso of=/dev/sdb bs=4M)
(my disk is 300GB and this is just how I do it! you can adjust accourdingly)
**** I TAKE NO LIABILITY IF YOU SCREW SOMETHING UP - THIS IS JUST HOW I DO IT & INFORMATIONAL PURPOSE****
boot from usb
I like to check for net connectivity
ping -c 3 www.duckduckgo.com
if you get something back continue
cgdisk
*I delete all partitions and create new ones
after delete
1.select free space and choose new, first sector [enter], size1007KiB[enter]
hex code ef02 [enter],
2. select free space, new 40G [enter] through it,
3. select freespace new,sector enter,size 2G,hex enter,name it swap
4. select freespace, new, sector enter,remaining space,name it home
5 choose write, type "yes" after done quit
** I reboot after this and when the usb installer gets me back to the prompt
conitue on with installation.
mkfs.ext 4 /dev/sda2
mkfs.ext 4 /dev/sda4
mkswap /dev/sda3
swapon /dev/sda3
lsblk /dev/sda (if all looks fine exit that & continue)
mount /dev/sda2 /mnt
mkdir /mnt/home
mount /dev/sda4 /mnt/home
nano /etc/pacman.d/mirrorlist
find your location (mine is US). Ctrl+w search, go to server line with arrow
key and Alt+6 to copy, Page Up to top and Ctrl+U to past the server line.
Ctrl+x to exit Y to save.
Now install the base system
pacstrap -i /mnt base base-devel
afere that all finishes configure fstab (DO THIS JUST ONCE)
genfstab -U -p /mnt >> /mnt/etc/fstab
check the fstab
nano /mnt/etc/fstab
there should be root and home mounted
arch-chroot /mnt
nano /etc/locale.gen
uncomment
en_US.UTF-S UTF-8
Ctrl+x, y to save
at prompt locale-gen
echo LANG-en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
find time zone info
ls /usr/share/zoneinfo/
FOR ME it ends up being
ln -s /usr/share/zoneinfo/America/New_York> /etc/localtime
hwclock --systohc --utc
set host name: echo YOURHOSTNAME > /etc/hostname
nano /etc/pacman.conf
down lower in the file uncomment the
[multilib]
Include = /et/pacman.d/mirrorlist
Ctrl+x, y
Pacman -Sy
set root password
passwd
Add a user
useradd -m -g users -G wheel,storage,power -s /bin/bash YOURUSERNAME
then set the password for the user with passwd YOURUSERNAME
pacman -S sudo (this is needed unless you want to switch to root everytime
you wish to install something - your choice)
if you decide to install sudo and set the user up for admin stuff you need
to run EDITOR=nano visudo
down in the file you will need to uncomment the line:
%wheel ALL=(ALL) ALL
Ctrl+x, y
pacman -S bash-completion
This is for a BIOS system. If you have UFI check wiki
pacman -S grub
grub-install --target=i386-pc --recheck /dev/sda
pacman -S os-prober
grub-mkconfig -o /boot/grub/grub.cfg
ip link (see what the system calls your ethernet card)
systemctl enable dhcpcd@_YOUR_DEVICE_NAME_.service
systemctl start dhcpcd@_YOUR_DEVICE_NAME_.service (this usually gives me error but I go on)
exit
umount -R /mnt
reboot
** DONT FORGET TO REMOVE INSTALL MEDIA **
login as user with sudo privilages or root
pacman -S xorg-server xorg-server-utils xorg-xinit
pacman -S mesa
If you have Nvidia (sudo pacman -S nvidia lib32-nvidia-utils)
I have ATI so I do:
sudo pacman -S xf86-video-ati lib32-ati-dri
pacman -S xorg-twm xorg-xclock xterm
after I test x with startx and exit back to prompt again if it loaded.
now I install the rest of what I need/want which is of course subjective to your needs.
This will get a base line install up and running for you of Archlinux!
My Extra I do for my taste
sudo pacman -S openbox obmenu obconf thunar geany nitrogen firefox thunderbird rxvt-unicode xfburn cups system-config-printer links irssi mutt feh dmenu vlc libreoffice file-roller gimp gmrun screenfetch arandr tint2 lxappearance transmission-gtk numlockx slock xscreensaver xfce4-screenshooter alsa-utils pulseaudio pavucontrol skype udiskie
AUR (yaourt install)
nano /etc/pacman.conf and add this
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
Ctrl+x, y
sudo pacman -Sy yaourt
**** CUPS NOT WORKING ****
May not be necessary but disable old services, if they are still there
after the upgrade:
sudo systemctl disable cups.service cups.path cups.socket cupsd.service
enable and start new service names:
sudo systemctl enable org.cups.cupsd.service cups-browsed.service org.cups.cups-lpd.socket
sudo systemctl start org.cups.cupsd.service cups-browsed.service org.cups.cups-lpd.socket
USB Mounting
pacman -S thunar thunar-volmanThen you must configure thunar to automount your thumbdrive(s):
From the wiki https://wiki.archlinux.org/index.php/Th … tomounting
Configuration
It can also be configured to execute certain actions when cameras and audio players are connected. After installing the plugin:
1. Launch Thunar and go to Edit -> Preferences
2. Under the 'Advanced' tab, check 'Enable Volume Management'
3. Click configure and check the following items:
Mount removable drives when hot-plugged.
Mount removable media when inserted.
also add dbus-launch to your .xinitrc making sure it comes before your windows manager/desktop environment
for example my .xinitrc contains:
exec dbus-launch openbox-session
after creating bootable usb from iso download of arch
(dd if=archlinux_install_.iso of=/dev/sdb bs=4M)
(my disk is 300GB and this is just how I do it! you can adjust accourdingly)
**** I TAKE NO LIABILITY IF YOU SCREW SOMETHING UP - THIS IS JUST HOW I DO IT & INFORMATIONAL PURPOSE****
boot from usb
I like to check for net connectivity
ping -c 3 www.duckduckgo.com
if you get something back continue
cgdisk
*I delete all partitions and create new ones
after delete
1.select free space and choose new, first sector [enter], size1007KiB[enter]
hex code ef02 [enter],
2. select free space, new 40G [enter] through it,
3. select freespace new,sector enter,size 2G,hex enter,name it swap
4. select freespace, new, sector enter,remaining space,name it home
5 choose write, type "yes" after done quit
** I reboot after this and when the usb installer gets me back to the prompt
conitue on with installation.
mkfs.ext 4 /dev/sda2
mkfs.ext 4 /dev/sda4
mkswap /dev/sda3
swapon /dev/sda3
lsblk /dev/sda (if all looks fine exit that & continue)
mount /dev/sda2 /mnt
mkdir /mnt/home
mount /dev/sda4 /mnt/home
nano /etc/pacman.d/mirrorlist
find your location (mine is US). Ctrl+w search, go to server line with arrow
key and Alt+6 to copy, Page Up to top and Ctrl+U to past the server line.
Ctrl+x to exit Y to save.
Now install the base system
pacstrap -i /mnt base base-devel
afere that all finishes configure fstab (DO THIS JUST ONCE)
genfstab -U -p /mnt >> /mnt/etc/fstab
check the fstab
nano /mnt/etc/fstab
there should be root and home mounted
arch-chroot /mnt
nano /etc/locale.gen
uncomment
en_US.UTF-S UTF-8
Ctrl+x, y to save
at prompt locale-gen
echo LANG-en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
find time zone info
ls /usr/share/zoneinfo/
FOR ME it ends up being
ln -s /usr/share/zoneinfo/America/New_York> /etc/localtime
hwclock --systohc --utc
set host name: echo YOURHOSTNAME > /etc/hostname
nano /etc/pacman.conf
down lower in the file uncomment the
[multilib]
Include = /et/pacman.d/mirrorlist
Ctrl+x, y
Pacman -Sy
set root password
passwd
Add a user
useradd -m -g users -G wheel,storage,power -s /bin/bash YOURUSERNAME
then set the password for the user with passwd YOURUSERNAME
pacman -S sudo (this is needed unless you want to switch to root everytime
you wish to install something - your choice)
if you decide to install sudo and set the user up for admin stuff you need
to run EDITOR=nano visudo
down in the file you will need to uncomment the line:
%wheel ALL=(ALL) ALL
Ctrl+x, y
pacman -S bash-completion
This is for a BIOS system. If you have UFI check wiki
pacman -S grub
grub-install --target=i386-pc --recheck /dev/sda
pacman -S os-prober
grub-mkconfig -o /boot/grub/grub.cfg
ip link (see what the system calls your ethernet card)
systemctl enable dhcpcd@_YOUR_DEVICE_NAME_.service
systemctl start dhcpcd@_YOUR_DEVICE_NAME_.service (this usually gives me error but I go on)
exit
umount -R /mnt
reboot
** DONT FORGET TO REMOVE INSTALL MEDIA **
login as user with sudo privilages or root
pacman -S xorg-server xorg-server-utils xorg-xinit
pacman -S mesa
If you have Nvidia (sudo pacman -S nvidia lib32-nvidia-utils)
I have ATI so I do:
sudo pacman -S xf86-video-ati lib32-ati-dri
pacman -S xorg-twm xorg-xclock xterm
after I test x with startx and exit back to prompt again if it loaded.
now I install the rest of what I need/want which is of course subjective to your needs.
This will get a base line install up and running for you of Archlinux!
My Extra I do for my taste
sudo pacman -S openbox obmenu obconf thunar geany nitrogen firefox thunderbird rxvt-unicode xfburn cups system-config-printer links irssi mutt feh dmenu vlc libreoffice file-roller gimp gmrun screenfetch arandr tint2 lxappearance transmission-gtk numlockx slock xscreensaver xfce4-screenshooter alsa-utils pulseaudio pavucontrol skype udiskie
AUR (yaourt install)
nano /etc/pacman.conf and add this
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
Ctrl+x, y
sudo pacman -Sy yaourt
**** CUPS NOT WORKING ****
May not be necessary but disable old services, if they are still there
after the upgrade:
sudo systemctl disable cups.service cups.path cups.socket cupsd.service
enable and start new service names:
sudo systemctl enable org.cups.cupsd.service cups-browsed.service org.cups.cups-lpd.socket
sudo systemctl start org.cups.cupsd.service cups-browsed.service org.cups.cups-lpd.socket
USB Mounting
pacman -S thunar thunar-volmanThen you must configure thunar to automount your thumbdrive(s):
From the wiki https://wiki.archlinux.org/index.php/Th … tomounting
Configuration
It can also be configured to execute certain actions when cameras and audio players are connected. After installing the plugin:
1. Launch Thunar and go to Edit -> Preferences
2. Under the 'Advanced' tab, check 'Enable Volume Management'
3. Click configure and check the following items:
Mount removable drives when hot-plugged.
Mount removable media when inserted.
also add dbus-launch to your .xinitrc making sure it comes before your windows manager/desktop environment
for example my .xinitrc contains:
exec dbus-launch openbox-session