You are not logged in.

#1 2013-07-16 21:51:03

miyata
Member
Registered: 2013-07-16
Posts: 5

Problems installing Arch and after installation

Hey guys,

First of all I would like to say that I am a complete noob with linux, haven't used any properly before so please use very light linux vocabulary with me. Thanks.

I got a new laptop (cpu i7-4700 and GPU nvidia gtx 770m) today and decided to shift to the arch linux. I used Beginner's guide on arch wiki to install it. I was installing it from the usb since I don't have dvd-rom, and when selecting the x86-64 or i686 on boot I got the following error:

http://i.imgur.com/icP7bTt.jpg

It froze and I couldn't do anything besides shutting down the laptop. So what I did was before selecting x86-64 I pressed e and on linux line I entered nomodeset, which made it work perfectly.

After I finished installing it I have rebooted the laptop and unplugged usb. GNU grub loads fine and lets me choose between arch linux with linux core repo kernel, or the same but with Fallback initramfs (speaking of which not sure what the 2nd one even is). After I choose the 1st, arch user login would show up but again after the few seconds the same error happens as in the above image. So what I did was I edited kernel parameters, linux line (again, beginners guide recommended that I believe) and added nomodeset to it, after which everything loaded perfectly without that error.

I want to know what that error is, and why nomodeset fixes it. Are there alternatives?

I think because of it I can't set up KDE, because after I installed X I had to install video drivers, so I did the following:

pacman -S xf86-video-nouveau
pacman -S lib32-nouveau-dri

after which I wanted to test the X so as recommended I did "pacman -S xorg-twm xorg-xclock xterm" and then wrote startx. However it said that no screens were found, and https://wiki.archlinux.org/index.php/Nouveau says "Make sure you do not have nomodeset or vga= as a kernel parameter, since Nouveau needs kernel mode-setting in order to run successfully (see below)."

But I need nomodeset to be able to start the arch linux, so what should I do? I installed then Vesa by doing "pacman -S xf86-video-vesa" which made the startx work, however that means it was using vesa drivers and nouveau were not working. Or am I wrong?

I did " pacman -S kde-meta" to install KDE, which should include KDM, but I have no idea how to Enable/start kdm.service, since on beginner's wiki when you click enable/start hyperlink it redirects to daemons which says nothing about this.

And with 2nd option, I am not sure what it means by ~/.xinitrc - I tried writing nano ~/.xinitrc but that was empty. I tried writing "exec startkde" without finding where to uncomment it, but it made me enter my user details again (relogin), since it couldn't start kde. How I can start is by writting startx and then writting exec startkde - but that's not how I am supposed to do it, isn't it?

And few other small quick issues:

When I reboot I have to write dhcpcd interface-name to connect to the internet, otherwise it doesn't work. How do I make it automatic? I followed what it said in the beginners guide but it still doesn't work, only when I do what I said makes it work. If it matters I use wireless.

Also, after reboot I have to do loadkeys uk from the beginning, even though I did what it says in /etc/locale.gen and locale-gen and exported. What should I look at to make sure its right?


I am sorry for bombarding you people with so many questions, I hope someone will find patience to help me smile Thanks a lot guys! Looking forward to being active member of the community and learn.



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by miyata (2013-07-16 21:57:51)

Offline

#2 2013-07-16 22:37:46

matyilona200
Member
Registered: 2012-06-21
Posts: 77

Re: Problems installing Arch and after installation

For the .xinitrc problem, this might help.
For the dhcpcd problem, this might help.

Offline

#3 2013-07-16 22:43:47

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: Problems installing Arch and after installation

miyata wrote:

I did " pacman -S kde-meta" to install KDE, which should include KDM, but I have no idea how to Enable/start kdm.service, since on beginner's wiki when you click enable/start hyperlink it redirects to daemons which says nothing about this.

Take a look at systemd, especially this https://wiki.archlinux.org/index.php/Sy … er_systemd and you should get kdm running.

When I reboot I have to write dhcpcd interface-name to connect to the internet, otherwise it doesn't work. How do I make it automatic? I followed what it said in the beginners guide but it still doesn't work, only when I do what I said makes it work. If it matters I use wireless.

There are a few different tools you may use to get an automatic connection, you can find a list in  the wiki, https://wiki.archlinux.org/index.php/Wi … atic_setup Take a look at those, try a few and choose the one you like best.

Also, after reboot I have to do loadkeys uk from the beginning, even though I did what it says in /etc/locale.gen and locale-gen and exported. What should I look at to make sure its right?

You can set this in /etc/vconsole.conf, https://wiki.archlinux.org/index.php/Be … and_keymap

Offline

#4 2013-07-16 22:47:07

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: Problems installing Arch and after installation

Regarding your nvidia card, try using the proprietary driver instead of nouveau. For this you will need to uninstall nouveau, but as far as I know you will not need the nomodeset kernel option. See the nvidia wiki page.

For starting kdm, you simply enable the service as you would any other systemd service. The wiki is your friend in this instance as well.

Offline

#5 2013-07-16 22:49:11

miyata
Member
Registered: 2013-07-16
Posts: 5

Re: Problems installing Arch and after installation

Thanks a lot guys, after glancing at the links/ideas provided I am sure I will make it work. I am just too tired now, (its 12pm almost and I was doing this since around 1-2pm xD Didn't even eat anything), so I will take a proper look tomorrow and try making it work, just wanted to say big thanks for the help!

Offline

#6 2013-07-17 16:35:01

miyata
Member
Registered: 2013-07-16
Posts: 5

Re: Problems installing Arch and after installation

Hey guys. I managed to do all of the above suggestions, thanks.

Few more issues, Konqueror in KDE doesn't load youtube videos? Video is black and "says Change 3D viewing mode... Turn on converted 3D turn off converted 3D" underneath the red loading bar which I can't move. I tried searching for flashplayer but i have no idea how to install files, as I tried downloading firefox from their website and few more items, but I have no idea how to install those files.

On flash website it gave 3 options to download: .yum, .rpm and tar.gz? After I download it how am I supposed to install it from KDE, without switching to root and downloading it from pacman? Thanks. I have no idea how install normal linux files downloaded from the internet on KDE or even in terminal, besides when I download it using pacman.

Offline

#7 2013-07-17 17:01:27

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: Problems installing Arch and after installation

There should be no need to install firefox or flash from source, both are packaged and in the official repos. If sudo is set up correctly you should be able to install them with pacman using

sudo pacman -S firefox

for example.

If sudo is not working for you, you may either set it up (search the wiki for sudo and visudo, or dive right into the man pages) or you can install the required packages as root. You might have to login into another tty as root (you should find some ttys by pressing ctrl+alt+F1 through ctrl+alt+F6, kde will be on tty7, ctrl+alt+F7), because it might not be possible to login as root into kde (I don't use kde so I'm not totally sure here, consult the wiki and search the forum if you want to know more). You have to login as root if you want to set up sudo.

If you don't have the root password to get either sodu working or just install the needed packages, you can ask a certain someone who installed arch for you to give you the root password so you can gain full controll of your system. If that should not be possible or take to long, you might want to think about reinstalling arch yourself (do a backup of any important data first), so you really know how your system is setup.

Offline

#8 2013-07-17 17:31:47

miyata
Member
Registered: 2013-07-16
Posts: 5

Re: Problems installing Arch and after installation

cookies wrote:

There should be no need to install firefox or flash from source, both are packaged and in the official repos. If sudo is set up correctly you should be able to install them with pacman using

sudo pacman -S firefox

for example.

If sudo is not working for you, you may either set it up (search the wiki for sudo and visudo, or dive right into the man pages) or you can install the required packages as root. You might have to login into another tty as root (you should find some ttys by pressing ctrl+alt+F1 through ctrl+alt+F6, kde will be on tty7, ctrl+alt+F7), because it might not be possible to login as root into kde (I don't use kde so I'm not totally sure here, consult the wiki and search the forum if you want to know more). You have to login as root if you want to set up sudo.

If you don't have the root password to get either sodu working or just install the needed packages, you can ask a certain someone who installed arch for you to give you the root password so you can gain full controll of your system. If that should not be possible or take to long, you might want to think about reinstalling arch yourself (do a backup of any important data first), so you really know how your system is setup.

Right, but what if I would want to install it from source, for example if I friend would send me tar.gz program which is not in official repos, how would I install it?

I am not sure what sudo is, I will look it up like you said, thanks, and yeah I knew that you could switch with ctrl+alt+fn, but I thought there's another way to install programs without having to login as root. And you are right you can't login as root in KDE, but I think you can change /opt/kde/share/config/kdm/kdmrc AllowRootlogins=false to true I will try once I will be doing it, taking a break now. Thanks.

Offline

#9 2013-07-17 17:40:06

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Problems installing Arch and after installation

If you want to install something from source, it is a good idea to write a PKGBUILD for it and install it using makepkg/pacman.  The whole idea behind a package manager is that it can effectively track the files installed on your system.  Once you start working around the package manager, you are going to likely end up with a mess that will be a PITA to uninstall. 

PKGBUILDs are basically just shell scripts that build the package in a "fakeroot".  What that means is that it defines an alternate root into which the program is installed.  Then everything within that "fakeroot" is put into the package.  You should do some reading about makepkg and PKGBUILDs.  This will also help you get your feet wet in terms of learning out to use the Arch User Repositories, which require building packages in these ways with provided PKGBUILDs.  Just be aware the the AUR is a collection of things that are submitted by any user.  So it is a good idea to get some basic bash skills so that you can look at a PKGBUILD and know that it is not going to totally fuck up your system.

For packages that are in the official repositories (that is [core], [extra], [community], and [multilib]), you can get the build scripts very easily by using the Arch Build System.  With that, you can pretty easily make modifications to how the package is put together and then build it from source.

Offline

#10 2013-07-18 01:34:06

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Problems installing Arch and after installation

miyata wrote:

I am not sure what sudo is, I will look it up like you said, thanks, and yeah I knew that you could switch with ctrl+alt+fn, but I thought there's another way to install programs without having to login as root. And you are right you can't login as root in KDE,

You can use a terminal emulator to run sudo or to su to the root account after you've logged in. The wiki will have the details. The default terminal emulator in KDE is Konsole but you can use something else if you prefer.

but I think you can change /opt/kde/share/config/kdm/kdmrc AllowRootlogins=false to true I will try once I will be doing it, taking a break now. Thanks.

/opt/kde/share/config/kdm/kdmrc ought not exist.

Sanity check: what is the output from the following:

uname -a
pacman -Qs kdebase-runtime

?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#11 2013-07-24 17:39:28

miyata
Member
Registered: 2013-07-16
Posts: 5

Re: Problems installing Arch and after installation

Okay I am back, sorry I was taking few days off from all of this. I have installed sudo like cookies said, its really handy, thanks. Only thing is I used nano editor, even though it says to use vi, but when I did "vi /etc/sudoers" file was working very weird, like blinking and I had to press keys many times until it would add them to file, so I just used nano /etc/sudoers and added my username after the root with that ALL=(ALL) ALL next to it.

WonderWoofy Thank You, I will definitely look into this. For now I will just try sorting all the problems I have and download stuff from official repo.

cfr Thanks, I have installed sudo now and it works nicely. And you are right that path didn't exist, It was probably old forum entry since I found it I believe on this forum, but I didn't check it until now. I tried editing it now and it was empty, so you are right.

And your sanity check, lol, doesn't look too good with the 2nd line.

uname -a gives:
Linux localhost 3.9.9-1-ARCH #1 SMP PREEMPT Wed Jul 3 22:45:16 CEST 2013 x86_64 GNU/Linux

However pacman -Qs kdebase -runtime gives:
error: failed to initialise alpm library (could not find or read directory).

By the way, how do you copy and paste from the console/terminal? I checked wiki, it gives ctrl+u or ctrl+k to copy and ctrl+y to paste but it just doesn't work, like nothing happens. It says its for readline, but I'm not using that so I guess that's why. But how would I copy output of for example uname -a from the terminal, or the kde's konsole? thanks.

You know when you want to find a package for example, but not sure about its name do you have to login to KDE and search on the website https://aur.archlinux.org/packages/ to find specific name, and then do "pacman -S name"? Or there's another way?

Oh, and I tried installing this https://aur.archlinux.org/packages/netflix-desktop/ with "pacman -S netflix-desktop" but it says target not found: netflix-desktop. I read on that website a bit aand I believe it was moved, so I checked http://demizerone.com/ which says I have to edit /etc/pacman.conf and add this:

[<one of the repo names above>]
SigLevel = Required DatabaseOptional TrustedOnly
Server = http://demizerone.com/$repo/$arch

And then write this:
pacman-key -r 0EE7A126
pacman-key --lsign-key 0EE7A126
pacman -Syy

after doing this I got an error, making pacman not work. (I can't promise that its because of this, I am pretty sure it is):

error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to synchronize any databases
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck

well I tried rm /var/lib/pacman/db.lck but it still gave me same error, so what I did was went back to /etc/pacman.conf and removed those 3 lines and now it works. But I can't download netflix-desktop from that repo, and why those instructions on the website didn't work?

And do I have to manually install flash on KDE or it is supposed to work since it has Konqueror browser preinstalled? Because every video on youtube I try to open with konqueror is shown like this: http://i.imgur.com/Ej8TouF.png

I downloaded firefox with pacman -S firefox and it says I need to install flash, so I checked the official repo: https://aur.archlinux.org/packages/?O=0 … _Search=Go

Tried installing flashplayer-standalone,   flashplugin-10, lib32-flashplugin10, lightspark and lightspark-git
but for some reason all of them give me an error: target not found.

Thank You for the support guys.

Edit: I found on arch's wiki flashplugin so I tried downloading that and it worked (still would like to know why all of those didn't work, and netflix-desktop, etc)

On Konqueror its still same error as the picture I have shown, and in firefox all videos stop working after few seconds and say "An error has occured, please try later."

Last edited by miyata (2013-07-24 17:56:22)

Offline

#12 2013-07-24 22:34:42

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: Problems installing Arch and after installation

Okay, a few things about packages first:
You should not install packages with "pacman -S pkg". First issue "pacman -Syu" to get up to date, and then "pacman -S pkg". Read about why with "man pacman" or read the pacman wiki.
Next, you should read the AUR wiki page. The AUR is not like the other repos with which you can interact through pacman. AUR packages need to be handled differently, including working with PKGBUILD files and using "makepkg".

On a different note, please don't edit the sudoers file directly with nano ever again tongue if you make the smallest typing error, it could leave sudo or even the root account messed up. The proper way to edit it with nano is

EDITOR=nano visudo

Last edited by mariusmeyer (2013-07-24 23:29:54)

Offline

#13 2013-07-24 22:53:47

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Problems installing Arch and after installation

miyata wrote:

Okay I am back, sorry I was taking few days off from all of this. I have installed sudo like cookies said, its really handy, thanks. Only thing is I used nano editor, even though it says to use vi, but when I did "vi /etc/sudoers" file was working very weird, like blinking and I had to press keys many times until it would add them to file, so I just used nano /etc/sudoers and added my username after the root with that ALL=(ALL) ALL next to it.

It is a bad idea to edit sudoers this way. Using visudo is safer. Add something like:

Defaults !env_editor, editor="/usr/bin/vim:/usr/bin/vi:/usr/bin/nano"

to your sudoers file to change the default editor. You will obviously want to list nano first rather than last - this line is just what I use.

And your sanity check, lol, doesn't look too good with the 2nd line.

uname -a gives:
Linux localhost 3.9.9-1-ARCH #1 SMP PREEMPT Wed Jul 3 22:45:16 CEST 2013 x86_64 GNU/Linux

This is fine.

However pacman -Qs kdebase -runtime gives:
error: failed to initialise alpm library (could not find or read directory).

This is probably because you've introduced a stray space into the command: kdebase-runtime has a hyphen but not a space.

By the way, how do you copy and paste from the console/terminal? I checked wiki, it gives ctrl+u or ctrl+k to copy and ctrl+y to paste but it just doesn't work, like nothing happens. It says its for readline, but I'm not using that so I guess that's why. But how would I copy output of for example uname -a from the terminal, or the kde's konsole? thanks.

One way in Konsole is to highlight the text and then secondary click to get a context menu. Or you can set up an appropriate key combo which is what I use. If you are using KDE, see KDE's system settings and/or Konsole's preferences.

You know when you want to find a package for example, but not sure about its name do you have to login to KDE and search on the website https://aur.archlinux.org/packages/ to find specific name, and then do "pacman -S name"? Or there's another way?

Oh, and I tried installing this https://aur.archlinux.org/packages/netflix-desktop/ with "pacman -S netflix-desktop" but it says target not found: netflix-desktop. I read on that website a bit aand I believe it was moved, so I checked http://demizerone.com/ which says I have to edit /etc/pacman.conf and add this:

AUR is not a regular repo. See the wiki for instructions on how to install AUR packages - pacman -S will not do it.

[<one of the repo names above>]
SigLevel = Required DatabaseOptional TrustedOnly
Server = http://demizerone.com/$repo/$arch

And then write this:
pacman-key -r 0EE7A126
pacman-key --lsign-key 0EE7A126
pacman -Syy

after doing this I got an error, making pacman not work. (I can't promise that its because of this, I am pretty sure it is):

Undo your changes then and pacman will work again.

You should be wary of adding repos to pacman.conf. I know nothing about this repo. Do you? You should if you are going to install software from it. This is not an official repo and is not supported. Note that you are saying that you trust this repo to execute code on your computer with root privileges.

In general, AUR packages are not supported either: if you install from AUR or from unofficial repos it is up to you to know what you are doing and to fix any breakage which occurs. If you are new to Linux, I strongly advise you to stick to official package from official repos for now unless there is an AUR package which you really, really need e.g. if your hardware just won't work without a driver not in the official repos.

error: failed to update core (unable to lock database)
 error: failed to update extra (unable to lock database)
 error: failed to update community (unable to lock database)
 error: failed to synchronize any databases
 error: failed to init transaction (unable to lock database)
 error: could not lock database: File exists
 if you're sure a package manager is not already
 running, you can remove /var/lib/pacman/db.lck

Please use code tags when posting code. I have shown you how to do it above.

well I tried rm /var/lib/pacman/db.lck but it still gave me same error, so what I did was went back to /etc/pacman.conf and removed those 3 lines and now it works. But I can't download netflix-desktop from that repo, and why those instructions on the website didn't work?

See above. I am not sure why you think we will know why instructions posted on some random website fail to work. You'd have to ask the webmaster.

And do I have to manually install flash on KDE or it is supposed to work since it has Konqueror browser preinstalled? Because every video on youtube I try to open with konqueror is shown like this: http://i.imgur.com/Ej8TouF.png

I downloaded firefox with pacman -S firefox and it says I need to install flash, so I checked the official repo: https://aur.archlinux.org/packages/?O=0 … _Search=Go

That is NOT an official repo. PLEASE read the wiki page on AUR. Do not install anything from AUR or from unofficial repos or from source until you are confident you know what you are doing.

Tried installing flashplayer-standalone,   flashplugin-10, lib32-flashplugin10, lightspark and lightspark-git
but for some reason all of them give me an error: target not found.

See above.

On Konqueror its still same error as the picture I have shown, and in firefox all videos stop working after few seconds and say "An error has occured, please try later."

Please search before posting - both forums and wiki.

Please do not throw every issue you have into a single thread. You are trying to do way too much all in one go. Arch is NOT an especially friendly distro for newbies. You can get Arch to work if you are prepared to do a lot of reading and research, to take your time and to learn. Otherwise, you would be better off starting with another distro. I am not trying to put you off but people here will not hold you hand through every little problem. And you are in for a very bumpy ride if you are new to Linux as well as Arch.

I am particularly concerned that you clearly have no idea about basic security. I don't know what OS you used before, but you should never install software from an untrusted source.

If you really just want to get everything up and running and working, that's fine but Arch is not the distro for you at this time in that case and you will only find it frustrating. Please understand that I am just saying this so that you know that there may be better options than Arch depending on your needs at this time. I think you are trying to do way too much at once and that might be because what you really want is a working system and not to have to learn by messing around with that system's innards. There is nothing wrong with that. Just it is not what Arch does. Also this is no reflection on you. I would have been lost if I had started with Arch even though I was moving from a system which was probably not as dissimilar as your previous OS.

Last edited by cfr (2013-07-24 22:58:33)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#14 2013-07-24 22:56:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Problems installing Arch and after installation

mariusmeyer wrote:

Okay, a few things about packages first:
You should not install packages with "pacman -S pkg". Either first issue "pacman -Syu" and then "pacman -S pkg" or keep your system updated with -Syu regularly and install stuff with -Sy. Read about why with "man pacman" or read the pacman wiki.

While the rest of your advice is spot on, this is not. You should never use -Sy to install a package. pacman -Syu is safe. pacman -S <pkg> is safe. pacman -Sy <pkg> is NOT safe and will break things sooner or later. Please read the wiki or the manual page for further details.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#15 2013-07-24 23:30:59

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: Problems installing Arch and after installation

Thanks for the correction cfr, I edited the post accordingly wink it is getting late here.

Offline

#16 2013-07-25 00:29:05

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Problems installing Arch and after installation

No problem. I could have shortened my post a bit if I'd known you were going to cover visudo and AUR wink! (It took me a while to write all that - you must have posted while I was composing my epic.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB