Arch Questions - noobie corner

Hi, wanted to start a new thread to help out people new (like myself) to linux.

the wiki is pretty good but sometimes it's just easier (also to understand) when someone else writes it out.

right now im wondering how  to remove xfce4 and replacing it with awesome (for multi monitor support)

im gussing i do a

pacman -Rs xfce4

 

but worried it might break stuff.

can i install awesome on top and somehow configure it to run that instead? or am i totally not getting it cause there are DE's WM's

I've been using manjaro for a little bit now but want to make the move to arch,

It would be great if someone explained what the different needs for a gui are

Like i understand you need wayland or xorg but I'm not sure why and then I'm lost between things like gnome openbox and everything else.

Could someone explain to me the different layers how they work and interact with each other and your gpu and drivers and such. 

For example what is awesome I've heard of it and I want multi monitor support because currently I'm having to run some commands every boot

Yes. Just install awesome and edit .xinitrc 'exec awesome'

 

https://wiki.archlinux.org/index.php/Awesome

All you need is a display server (X and Wayland), and applications to run (web browser, terminal windows, file manager, the 'taskbars' of Gnome, KDE, and the like). And GPU drivers, of course. 

X (and Wayland, but it might work differently) is a display server; the really simple explanation is that it provides what the OS and its applications need to make a GUI.

The applications are clients that use X to render their GUIs and take input from your keyboard and mouse.

The GPU drivers work just like they do on Windows, and X sends the GPU what it needs to render out on screen.

Now, desktop environments (collections of applications. Gnome and KDE are examples) and window managers (explained later; Gnome has Metacity, KDE has Kwin), these are applications. They are, in a low-level sense, like your web browser in that they use X to show their GUI and take input from the keyboard and mouse. But whereas your browser is for browsing, your desktop environment's applications are there to provide you a way to interact with your computer.

Take for example, Crunchbang Linux. Its window manager is Openbox. It takes care of where windows are on the screen and how their window borders look, what functions they can do, things like that. In this screenshot, Openbox has five buttons; on the left side, two buttons... the first I don't know of, the second will 'roll' the window up, so only that top titlebar will be shown. On the right, your standard minimize, maximize, and close buttons. That's all done with Openbox. 

At the very top of the screen, you see a taskbar-like bit, with a Minecraft task icon, tray icons on the right, and a clock. That's Tint2. It's an application, just like the rest, but its job is to provide a taskbar. Same with the stuff on the right; that's called Conky.

That comes to a little point of info that some people don't know: while desktop environments are nice for getting an interface with lots of nice and integrated components, you don't need a DE. Crunchbang, for example, doesn't have a pre-set desktop environment. Instead, its developer decided to take Openbox and mate it with Tint2, Conky, and other programs. You could replace Openbox with some other window manager, if you wanted. He essentially created his own desktop environment, and you can too (and it's pretty easy to do). 

Beyond that, I don't know enough to give you more information, but I hope that clears some things up.

 

Awesome is the shortened name for 'Awesome Window Manager'. Now, to understand what Awesome is, you have to know that there are two main forms of window managers: stacking and tiling. Stacking WMs are what you think of when you think of most popular Linux distros, as well as MS-Windows and OSX: windows are drawn on top of eachother. Tiling WMs, on the other hand, use any sort of methods to make it so that windows do not overlap. Here's a visual example. 

 Multi-monitor support is based on your GPU drivers and the X server configuration, and can be a PITA if you want to use proprietary GPU drivers. Most of the work will be done to a file called xorg.conf, or in some cases a set of files in the directory xorg.conf.d (both of which can be found in /etc/X11/). Use these terms to search for your answers.

so awsome only comes on when i log in as root. hmm.

 

also finally got multi montior up with by two diffrent graphics cards.

 

here is my /etc/X11/xorg.conf

Section "ServerLayout"
        Identifier     "aticonfig Layout"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
        Screen         "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0"
EndSection

Section "Module"
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-0"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-1"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:4:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-1"
        Driver      "fglrx"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-1"
        Device     "aticonfig-Device[0]-1"
        Monitor    "aticonfig-Monitor[0]-1"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


 

there are more options but i was able to get this to work.

 

i used the command, (for ati cards, running catalyst drivers)

aticonfig --adapter=all --initial

then edit /etc/X11/xorg.conf after.

even though my second monitor show up and displays a desktop i cant get simialr applications to run on that screen unless it's closed on the main one :(

ok, for some reason i cant get catalyst control to run under admin but i can type this in the terminal

sudo amdcccle

and lets me turn on xinerama so now i can drag windows between screens.

Under one of the 'SubSection "Display"' bits, add 

Modes     "X-resolution screen 1xY-resolution screen 1" "Xresolution screen 2xY-resolution screen 2"

And then restart X. As for Awesome starting up only as root, are you sure you edited your own user account's .xinitrc, or did you accidentally edit your root account's .xinitrc?

ahhh. youre right.

also while i was in root, really lost on how to work in awesome :(

Thank you that cleared so much up for me great answer

I don't know how relevant this is to the OP. since he went for Awesome, but I thought I would post two links relevant to his first post.

This shows a brief description of the most popular 8 environments (in the author's opinion, I suppose), and a comparison table with the system usage of each: http://www.renewablepcs.com/about-linux/kde-gnome-or-xfce

And this one goes more in depth about what the author considers the first 3 picks: Gnome, KDE and Xfce: http://www.engadget.com/2012/11/30/how-to-pick-a-desktop-environment-in-linux/

My own experience: I come from Ubuntu (I suppose most people first trying Linux start by installing Ubuntu). I moved to Arch and installed Xfce without any font packs and I really disliked the way it looks. I uninstalled it (pacman -Rs xfce4) thinking I will move to gnome. Pacman said gnome would occupy 1.7 GB compared to the about 300-400 MB that Xfce used. The decision was very simple at that point: I am staying with Xfce. I installed a font pack (ttf-dejavu) and mouse cursors (OpenZone_White) and it does make a huge difference. You can also install the microsoft font packs from the AUR if you want a more familiar look to it.

And don't give up if you don't succeed the first time. I have encountered a few bugs while trying to install Arch (dhcpcd creating a duplicate of wpa_supplicant if you have wpa_supplicant already running, preventing you from using the internet, or grub crashing each and every time I tried to do grub-mkconfig. Now I simply use my own grub.cfg file created from grub.cfg.example.new), and I'm glad I persevered, I learned a lot along the way.

thanks for the responses everyone! really appreciate it being so noob at this.

decided to give arch another go but some how my second hard drive /dev/sdb wont format, keeps saying it's being used by the system :( i think i need to boot into a live session and format the drive from there.

 

also running into problems starting x with the xf86-video ati drivers so and if you are too might wana look intol this thread

https://teksyndicate.com/forum/linux/arch-catalyst-video-driver-install/165113