Total Linux noob diving headfirst into one of the most difficult distributions. My ongoing story.
Day 1: Decide to finally get around to learning Linux. Install Ubuntu 11.04 alongside Win7. Things go swimmingly. Some issues, but they're resolved with a bit of googling.
Day 2: Ubuntu updates to 11.10, removing any shred of dignity they had left regarding Unity and GNOME, and jump on the idiot Apple bandwagon. I blanch, and then boot back into Windows, likely never to touch Ubuntu again.
Day 3: Reinvigorated by the stream of hate for Ubuntu on the forums, I decide to try a different distro. 'Something that will let me learn from the ground up' I say to myself. Thus, Arch Linux finds itself onto a bootable CD.
Night 3: Holy shit.
Day 4: Managed to complete an install of Arch on my laptop. Several issues arose before this was successful.
-
I could not pick packages, because I had opted to manually partition the drives (and was reasonably successful), but Arch didn't like that. Instead, I had to let it auto-configure, though I got it close enough to my specs that I'm okay with it.
-
My wireless card was not connecting from the get-go. Had to find documentation on how to associate it with the network and allow it to connect. Finally succeeded.
-
After finishing the installation successfully, realized that I had forgotten to install the wireless-tools package that was so conveniently located on the bootable disk, but hadn't been installed onto my drives. Forced to reinstall with aforementioned package. Figured the other stuff can wait (though I tossed the sudo package in there because it looked familiar)
Night 4: The learning experience continues. Glad I have my desktop while I make my laptop explode with this.
Update 1 - Night 4: Currently baffled by the fact that my wireless card unassociates itself with the network on every reboot. Have to figure out a way to fix that. Also unable to create or write to files without being logged in as root. - FIXED
Update 2 - Night 5: Fixed my wireless, but was then convinced to change to wicd rather than the default network manager. Everything went to shit. I can still connect just fine with dhcpcd wlan0, but I don't actually get access to the internet, despite registering an IP address. On top of that, wicd just hangs at "Validating authentication", despite all entered information being correct. Urk. - FIXED
Update 3 - Night 5: We have a working GNOME desktop environment, functional internet, and firefox installed. Hurrah me! Now to tweak and tweak and tweak.
Update 4 - Night 6: Many tweaks completed. Currently baffled by both conky and themes for gnome. I can't seem to change the window or title bar colors in any way, nor am I able to make conky transparent. Massive pain in the rear.
To be continued.
Note: Feel free to give me recommendations as I feel my way through the system. Pointers are always welcome, just be aware that I know VERY little about Linux and bash, so I'm soaking in everything I can.
About this post
- Posted
- Archived
- Score
- 13 · 100% up
- Kind
- Text
- ID
- ld155
36 comments
Make sure to read the wiki wherever possible!
Arch's wiki is famously good, so much so that other distro forums often use it as a support reference.
You can bet your bottom dollar that I've had it open on this box ever since I started. Had to write a short config file just to get my laptop speakers working. Tally ho!
You can also have it downloaded, I believe it's in pacman :)
As an Archer I know what you mean.
Make sure you aren't writing just to /home, but rather to /home/user_name (being the name you logged your non-root account in with).
Also, may I recommend wicd? It's arguably the best network manager out there.
Seems nice, but it just hangs on "validating authentication" for my network. Not particularly sure why. I know the information entered was correct.
Just below the "Use Encryption" button, did you select the right method? That was the main thing to get me when I started using wicd.
This might help you out some http://willensky.blogspot.com/2010/01/how-to-setup-arch-linux.html I am putting this here because it was less intimidating to install like this than the beginners or official arch wiki.
Indeed it did. Got several packages that I was going to need sorted out before the inevitable freakout.
I have been Shreddited for privacy! https://github.com/x89/Shreddit/
Haven't even gotten that far. Currently toying with window managers. I'll let you know when I make it there haha.
figure out a window-manager independent solution before messing around with stuff that doesn't matter... it will make your life a lot easier.
Double reply, but doing it to pop up a notification for you.
I'm just using cpufrequtils because I don't particularly see what the point of pm-utils is. Gnome seems to provide all of the same functionality straight out of the package. I was pleased to lower my CPU frequencies with cpufrequtils though. Much less power consumption.
pm-utils is wrapper around a collection of tools like cpufrequtils, and gnome should (well, xfce does anyway) fall back on pm-utils to do its power management. Theoretically its more robust, and it's certainly been easier for me to manage my laptop's power since installing it. It used be hours of work years ago to get to the same state.
My Arch install procedure:
Partition disks, keeping old partitions if applicable.
1a) If using netinstall, make sure that you have an internet connection.
Install necessary packages from install disk/netinstall.
Set up /etc/rc.conf (Autoload wireless module, ethernet module).
Ensure that /etc/pacman.d/mirrorlist has one mirror uncommented.
Add a non-root user (with the "useradd" command).
Make the user's home directory with
mkdir -p /home/$username
Ensure that the user owns that directory with
chown -R $username /home/$username ; chmod 755 /home/$username
Set up the user's password with
su $username
passwd
exit
Update the system with
pacman -Syyu
Install wicd or NetworkManger or netcfg.
Install X and a DE/WM, depending on preference.
Reboot.
Set up your internet connection again.
Start your DE/WM, install a web browser such as Firefox.
Open ArchWiki.
Profit.
Would you be so kind as to let me know what you do for /etc/rc.conf with your wireless and ethernet modules? I've been manually doing it with the:
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
command, and it only associates it with the one ESSID. Is there a way to configure it to find other networks, or at least just associate itself with that one on startup?
I know it's not popular (being bloated and all) but NetworkManager really is a nice tool that gets the job done.
I'm sorry for this if you are way past it (sounds like either could be true) but if you somehow reached this point WITHOUT reading the beginner's guide, I strontly suggest you read through the entire beginner's guide. I'm not saying you should start over, but be sure you considered, and made a decision on, and did what it suggests there (or some equivalent which fills the need), for each of those sections.
Welcome aboard the Linux train! I'm no expert myself, but have been around th block enough to be (pleasantly) surprised to see how many noobs are jumping directly to Arch lately. Arch is pretty fantastic, and IMO you've made a good choice.
If you don't mind rolling up your sleeves (and apparently you don't) it's hard to find much to complain about with Arch.
I've read the entire thing what feels like a dozen times at this point, and followed it word for word. The problems arose DESPITE the fact that i was doing things by the book, and some weren't problems at all. For example, it took me forever to figure out that the errors produced upon exiting X aren't actually an issue, its just X complaining that you've quit.
Ill admit, its been slightly frustrating here and there, but its a huge learning experience, and I've enjoyed learning as much bash as i have.
Personally, I think Ubuntu is more difficult to get up and running than Arch. With Ubunutu there's these little undocumented pieces of "magic" they use to get your system running. If that "magic" isn't working, for whatever reason, it's tough to diagnose.
I recently tried installing Ubuntu on my desktop and it defaulted to loading the nouveau drivers for my graphics card. Unfortunately, these things crash for my card. It was a hassle just to get it to use vesa drivers. With Arch, I'd be able to set it up, piece by piece, ensuring that each step of the way my hardware and software worked.
With Arch, I know what I have, how it got there, and how it works. It could also be that I've set up Arch so many times that by now it's just second nature, and the fact that I'm coming down from a 2 day binge of Openbox customizing...so. behind. on. school.
that's eventually what drove me away from Ubuntu. If it worked, it worked fine, as long as you didn't want to change anything too drastically. But as soon as you start mucking around with, for example, replacing gnome and Unity, all sorts of stupid stuff broke and their documentation was not good enough for me to piece it back together.
Arch, while it is not as user friendly, has such an amazing amount of documentation that it's not a big deal with something breaks, because 10 seconds of searching will tell you how to fix it. This, for me, is the definition of a robust OS.
You are confusing newb friendly with user friendly
I agree with you in that sense. But Ubuntu seems to be the apple of the Linux world. Should work out of the box, but if it doesn't, you will never know what's wrong (or at least it will be a hassle to figure out). Arch is much more interesting, though i constantly worry that I'm going to make something explode.
Mind me if I'm wrong, but have you added your user to the needed groups in /etc/group, for example?
edit: also, you should be able to write in your /home/your_username/ directory. Did you correctly followed the archwiki about adding an user?
Yes, but i was just trying to add a file to the /home directory to follow one of the above suggestions regarding creating a file that notes any changes that I've made.
I did this too my first time. Turns out, you can mount the package databases on the install media and then just use pacman as you would if you had an internet connection!
If you don't have a desktop environment, I've found netcfg to be incredibly easy to get setup from command line. Just copy an example file from /etc/network.d/examples to /etc/network.d, change it to include your wireless info, and run:
By the way, this is all pretty trivial if you have a second computer to Google problems with while you're setting up. If you don't, I imagine it'd be a pain in the ass.
Oh indeed. It made life SO much easier having my desktop right next to me the whole time. I would have thrown a fit without it.
You might want to keep track of the files you edited outside your home folder.
I have a simple text file where I list these files. If I need to reinstall (never happened) or want to set up a second computer (happened), I know what files to carry over. Also if I break something, I know which files I touched.
There was a post about this topic in this subreddit not long ago.
Thanks for documenting this process, it's good for Arch devs and the community to have a view on what works and what doesn't for Linux noobs trying to set up Arch.
Best tip I know is; once you've got a decent install set up and know generally how you're gonna want things, pop the install CD back in and start from the beginning again. That seems to be the best way to ensure a well-set up and sound system. I know it probably sounds ludicrous to go through all that again, but it's a lot easier the second (and third and fourth!) time around and you learn something new every time, plus it's the easiest way to fix the mistakes of your original install.
Oh and another thing; if you feel like you're having to do a bunch of complicated stuff to get something working that seems like it should be simple and basic, you're probably doing it wrong. Don't try to work out your own workaround when chances are other people have found a much simpler and better solution (this one gets me all the time).
And last, as some are mentioning, don't mess with themes and stuff until you've got other things set up and functioning how you want them. Having your wireless card properly installed is gonna be a lot more important than having transparent terminals and stuff.
Oh, and add
to your /etc/pacman.conf, do a # pacman -Syyu and then # pacman -S yaourt. yaourt is an awesome pacman wrapper that lets you build and install packages from the AUR as easily as from any of the official repos, giving you access to a huge amount of useful packages that you don't have to build by hand (though you should learn how ABS works and be able to build something with makepkg).
Then you just use yaourt instead of pacman (same commands/arguments as pacman).