Documente Academic
Documente Profesional
Documente Cultură
T h u r s d a y, M a r c h 1 3 , 2 0 1 4
About Me
augustkk
Blog Archive
2014 (1)
March (1)
Arch Linux from Scratch to Compiz
Standalone
swapon /dev/sda2
Now we will mount our root and home partitions:
mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home
Optionally, edit pacman's mirrors with this command:
nano /etc/pacman.d/mirrorlist
And select a mirror from your region. I'm in the USA so I deleted all the mirrors outside my
area and kept the top 3 from the US. Using the default mirrorlist without editing works
fine too, but may be a little bit slower.
We will now download and install our base system:
pacstrap /mnt base base-devel
Create a file system table:
genfstab /mnt >> /mnt/etc/fstab
Check that fstab was created. We don't want to change anything here, just double
checking.
nano /mnt/etc/fstab
We will now chroot into our new system to set it up:
arch-chroot /mnt
Create a root password:
passwd
Set up your time zone and locales:
nano /etc/locale.gen
Uncomment your desired locales, I uncommented these two for the US:
en_US.UTF-8 UTF-8
en_US ISO-8859-1
And now generate the locales:
locale-gen
For the time zone we will make a symbolic link to our zone file using something like this
command:
ln -s /usr/share/zoneinfo/<Zone>/<SubZone> /etc/localtime
Replacing Zone and SubZone with your area
As an example, I'm in the US near Chicago so I used this command:
ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
To see all the available zones, change directory into /usr/share/zoneinfo and have a look.
cd /usr/share/zoneinfo
ls
Set up a hostname:
echo hostname > /etc/hostname
We will now download and install grub:
pacman -S grub-bios
grub-install /dev/sda
Optionally create an initial ramdisk environment using this command:
mkinitcpio -p linux
Now we'll generate our grub configuration:
grub-mkconfig -o /boot/grub/grub.cfg
Type exit to leave chroot.
Unmount partitions:
umount /mnt/home
umount /mnt
Congratulations, you have now installed Arch Linux!
Reboot
Step 2. Post Install
Log in as root.
First we'll bring up the network using dhcpcd:
systemctl start dhcpcd
And to enable at boot:
systemctl enable dhcpcd
If you want to continue to work over SSH you'll have to install openssh:
pacman -S openssh
start the SSH server:
systemctl start sshd
And to enable it at every boot:
systemctl enable sshd
Check your ip address:
ip addr
Now we'll add a new user:
useradd -m -g users -G wheel -s /bin/bash username
Create a password for the new user:
passwd username
Now we will configure pacman to enable the multilib and archlinuxfr repositories:
nano /etc/pacman.conf
Uncomment these two lines:
[multilib]
Include = /etc/pacman.d/mirrorlist
And add the following three lines to the bottom of the same file. Save and close.
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
This will enable us to install yaourt, an AUR front end so we can easily install packages
from the Arch User Repositories.
vboxguest
vboxsf
vboxvideo
And to get this to load at boot issue this command:
decorations. We will also briefly install the xfce desktop so that we can graphically
configure compiz and emerald.
I chose SLiM as our login manager because it uses the ~/.xinitrc file for startup and
execution, which is easy to configure.
Install SliM:
pacman -S slim
As a normal user, copy the ~/.xinitrc file to the home directory:
cp /etc/skel/.xinitrc ~
Make it executable:
chmod +x ~/.xinitrc
Enable SliM at boot, as root:
systemctl enable slim.service
Install xfce:
pacman -S xfce4
We will now edit our ~/.xinitrc file to start xfce at boot:
As normal user:
nano ~/.xinitrc
Uncomment: exec startxfce4
Save and close.
Reboot and login to the XFCE environment.
Using yaourt or your AUR frontend of choice, install compiz and it's dependencies from the
AUR. Be sure to use yaourt as a normal user.
We will need the following packages from the AUR. Some will be pulled in automatically
as dependencies to others. Just make sure you have everything on the list.
ccsm
compiz-bcop
compiz-core
compiz-fusion-plugins-extra
compiz-fusion-plugins-main-genie
compiz-fusion-plugins-unsupported
fusion-icon
libcompizconfig
At some point you may be prompted with this message:
"compiz-fusion-plugins-main-genie and compiz-fusion-plugins-main are in conflict. Remove
compiz-fusion-plugins-main?" select yes.
Install emerald and emerald-themes from the AUR to get us started with some window
borders.
emerald
emerald-themes
Now to configure compiz.
Open up ccsm (compiz-config-settings-manager) and at the minimum enable:
move windows
resize windows
window decorations
Select the window decorations settings and where it says command make sure it says:
emerald --replace
Open up the Emerald theme manager and select a window decoration, then close.
Launch fusion-icon, right click on it and make sure it is set to Compiz as the window
No comments:
Post a Comment
Enter your comment...
Comment as:
Publish
Select prole...
Preview
Home
Subscribe to: Post Comments (Atom)