You are not logged in.
Pages: 1
I have just installed archlinux without major problems on 64bit architecture. I managed to enable and run network so I pretty much installed all required tools in console. Then I tried to install Plasma with nvidia driver. I guess it is clear how to install everything based on wiki but because I am completely new to this I must have have done something wrong. I did not find clear routine how to install everything. I have done what I think I should but X server does not run.
This is what I have done:
NVidia.
I read to enable 32bit libs on 64 architecture so I uncommented both lines in /etc/pacman.conf : [multilib] and include ...
I Upgraded system executing this command:
pacman -SyyRun the following with default optioons:
packman -S nvidiaRebooted computer.
I could see the driver was installed because I've got very low resolution console. Then I tried to install X Server. I have no idea which should come first so I started with Xorg. I run a couple of commands:
pacman -S xorg-server
pacman -S xorg-apps
pacman -S xorg-xinit
pacman -S xorgAccording to Wiki I should have some default files in /etc/X11/xorg.conf.d/ but this folder is empty!
Anyway I followed to check if Xorg works so I read that I should copy a default profile /etc/X11/xinit/xinitrc to my home folder. I run:
cp /etc/X11/xinit/xinitrc ~/.xinitrc
chown myuser:mygroup ~/.xinitrcWhen I tried to run xinit, I've got errors:
Error setting MTRR (base = 0x00000000f9000000, size = 0x00e00000, type = 1) Invalid argument (22)
(II) Server terminated successfully (0). Closing log file.I thought Desktop Manager would be missing so I installed KDE
pacman -S plasma-desktopbut the problem is the same. I have no idea how to proceed from here. I would be grateful for any advice.
Thanks.
Offline
First of all:
sudo pacman -S xorgwill install the whole xorg group. That is alot of packages you wont ever use. For getting X up and running you only need:
sudo pacman -S xorg-server xorg-xinitCopying the xinitrc to your home folder is ok. But have you edited it to start plasma instead of its defaults?
Edit: I also noticed that you didn't use sudo with pacman. Are you trying to start X from root?
Last edited by olegabrielz (2017-06-05 18:07:14)
Be aware of my Newbie Powers
Offline
Not an Installation issue, moving to Newbie Corner...
Offline
I Upgraded system executing this command:
pacman -Syy
'pacman -Syy' does not upgrade your system, and you should never run it unless you immediately follow it with a 'pacman -Su' or else you run the risk of partial updates. Make sure your system is completely up-to-date before you do anything else:
pacman -SyuAccording to Wiki I should have some default files in /etc/X11/xorg.conf.d/ but this folder is empty!
Where does it say this? Nothing in the official repositories installs files to this directory.
When I tried to run xinit, I've got errors:
Error setting MTRR (base = 0x00000000f9000000, size = 0x00e00000, type = 1) Invalid argument (22) (II) Server terminated successfully (0). Closing log file.
Only one of these is an error, the other is the very opposite and says that X ran successfully. What do you have in your .xinitrc?
I thought Desktop Manager would be missing so I installed KDE
pacman -S plasma-desktopbut the problem is the same.
Did you alter your .xinitrc after installing that package? If not, why would you think it would fix the "error"?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
FranekW wrote:I Upgraded system executing this command:
pacman -Syy'pacman -Syy' does not upgrade your system, and you should never run it unless you immediately follow it with a 'pacman -Su' or else you run the risk of partial updates. Make sure your system is completely up-to-date before you do anything else:
pacman -SyuAccording to Wiki I should have some default files in /etc/X11/xorg.conf.d/ but this folder is empty!
Where does it say this? Nothing in the official repositories installs files to this directory.
There is Note on wiki:
Note: Arch supplies default configuration files in /usr/share/X11/xorg.conf.d, and no extra configuration is necessary for most setups.
It sounds to me that files would be supplied in this folder. I should expect them inside this folder. Then it also says xorg.conf is the file xorg calls. I could not find this file in any folder. It is more likely obvious for you what to expect but if someone comes and do it for the first time, things are not so clear.
When I tried to run xinit, I've got errors:
Error setting MTRR (base = 0x00000000f9000000, size = 0x00e00000, type = 1) Invalid argument (22) (II) Server terminated successfully (0). Closing log file.Only one of these is an error, the other is the very opposite and says that X ran successfully. What do you have in your .xinitrc?
.xinitrc is the same as /etc/X11/xinit/xinitrc I copied it to my home folder. I only added "exec startkde" at the end of this file but it did not help.
I thought Desktop Manager would be missing so I installed KDE
pacman -S plasma-desktopbut the problem is the same.
Did you alter your .xinitrc after installing that package? If not, why would you think it would fix the "error"?
I did not change anything. I assumed that installing all components would be satisfactory in order for X server to run. The only comment I found was to add "exec startkde" after installing plasma, which I did.
Meantime, I also tried to generate xorg config file:
sudo Xorg :0 -configurewhich produced xorg.conf in /root/ which I copied to /etc/. Now when I run startx, I have got error:
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit server error
Offline
WorMzy wrote:According to Wiki I should have some default files in /etc/X11/xorg.conf.d/ but this folder is empty!
Where does it say this? Nothing in the official repositories installs files to this directory.
There is Note on wiki:
Note: Arch supplies default configuration files in /usr/share/X11/xorg.conf.d, and no extra configuration is necessary for most setups.
It sounds to me that files would be supplied in this folder. I should expect them inside this folder. Then it also says xorg.conf is the file xorg calls. I could not find this file in any folder. It is more likely obvious for you what to expect but if someone comes and do it for the first time, things are not so clear.
/etc/X11/xorg.conf.d/ is not the same directory as /usr/share/X11/xorg.conf.d
.xinitrc is the same as /etc/X11/xinit/xinitrc I copied it to my home folder. I only added "exec startkde" at the end of this file but it did not help.
xinitrc contains the following information
This default xinitrc will start a basic environment with Twm, xorg-xclock and Xterm (assuming that the necessary packages are installed). Therefore, to start a different window manager or desktop environment, first create a copy of the default xinitrc in home directory:
Then edit the file and replace the default programs with desired commands. Remember that lines following a command using exec would be ignored.
WorMzy wrote:I thought Desktop Manager would be missing so I installed KDE
pacman -S plasma-desktopbut the problem is the same.
Did you alter your .xinitrc after installing that package? If not, why would you think it would fix the "error"?
I did not change anything. I assumed that installing all components would be satisfactory in order for X server to run. The only comment I found was to add "exec startkde" after installing plasma, which I did.
See previous reference on lines following an exec command which the default .xinitrc already contained
Meantime, I also tried to generate xorg config file:
sudo Xorg :0 -configurewhich produced xorg.conf in /root/ which I copied to /etc/. Now when I run startx, I have got error:
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit server error
You appear to have ignored the wiki note you referenced that no additional configuration is necessary for most setups.
What information lead you to conclude additional configuration was required for your system?
Offline
Notice that the Xorg files supplied by Arch are in /user/.... (see that in the note you linked from the Wiki?) and you are looking for files in /etc/....
Also, have you answer the question about running as root? It seems you are running as root and you really should not do that.
Last edited by mrunion (2017-06-05 23:34:50)
Matt
"It is very difficult to educate the educated."
Offline
I did not change anything.
[...]
The only comment I found was to add "exec startkde" after installing plasma, which I did.
Please present your actual ~/.xinitrc, not some meta-information about what you assume you did.
Meantime, I also tried to generate xorg config file:
sudo Xorg :0 -configure
Don't. The feature is deprecated, dead and "accidentally" broken.
Offline
I'd like to say that I appreciate everyone's time and comments here. I tried to answer some questions but because I find the reference pages very hard to follow especailly when it comes to Nvidia, Xorg, Xinit, and Display Manager, I could not explain everything in details. I am looking for a tutorial about X server. Thanks.
/etc/X11/xorg.conf.d/ is not the same directory as /usr/share/X11/xorg.conf.d
I don't know how it happened that I did not see the difference. Sorry about that ![]()
Did you alter your .xinitrc after installing that package? If not, why would you think it would fix the "error"?
I added "exec startkde" at the end of the file. It was not clear which parts I should change.
You appear to have ignored the wiki note you referenced that no additional configuration is necessary for most setups.
What information lead you to conclude additional configuration was required for your system?
I don't ignore references. I rather find it hard to understand. It is very likely I overlooked important parts. Even though I knew about configuration not being reuqired, X server did never start. I simply tried to manually configure xinit and xorg.
Also, have you answer the question about running as root? It seems you are running as root and you really should not do that.
Sorry, I thought I gave an answer to that question. I must have deleted it accidentally when I was editing the post. I used to use root before but now I work on regular account.
Please present your actual ~/.xinitrc, not some meta-information about what you assume you did.
I can't do it right now. It is the same file as `xinitrc` in `/etc/X11/xinit`. I copied it to home, renamed it to `.xinitrc` and then appended only this line "exec startkde".
Meantime, I also tried to generate xorg config file:
sudo Xorg :0 -configureDon't. The feature is deprecated, dead and "accidentally" broken.
Does Xorg configure files during installation?
Offline
seth wrote:Please present your actual ~/.xinitrc, not some meta-information about what you assume you did.
I can't do it right now. It is the same file as `xinitrc` in `/etc/X11/xinit`. I copied it to home, renamed it to `.xinitrc` and then appended only this line "exec startkde".
This is almost certainly not working as intended but without the contents of the file no one can be certain.
Does Xorg configure files during installation?
No it uses run time autodetection unless a configuration file overrides that.
Edit:
Grammar add missing is
Edit2:
I suggest you remove /etc/X11/xorg.conf as it does not appear to have had any positive effect.
Please also post the full contents of xorg.log after removing xorg.conf ( see Xorg#General for location of the file )
Last edited by loqs (2017-06-06 09:22:46)
Offline
I can't provide log because I wiped the disk entirely. I decided to go and read a little biut about how X widows functions before I would start again. I did not realise there would be multiple components to install apart from Xorg, which is just an free implementation of X11. I did not know xinit would need to be installed separately, nor did I know that login/display manager or windows manager were separate parts. I have been told one could actually build X windows from custom and more lightweight components.
Anyway, I started from a fresh base system and tried with X windows again. After I run these commands (I think it's a full list):
pacman -S xorg-server xorg-xinit
pacman -S nvidia-340xx
pacman -S plasma-desktop
pacman -S sddmand rebooted computer afterwards, the system started GUI with login screen. I also run the commands on regular account with sudo. There was a problem with mice pointer, though. This I believe can be easier to sort out.
I don't know how important it is to install all this components in order. Before, I might install xinit as the last one or even miss; it could be installed with something else. I might install wrong nvidia driver, as well, but I definitely did not install any window manager.
Offline
After I run these commands (I think it's a full list) [...] and rebooted computer afterwards, the system started GUI with login screen.
Unlikely if you're indeed using archlinux.
However, is there a remaining question now?
Offline
I did not know xinit would need to be installed separately, nor did I know that login/display manager or windows manager were separate parts.
Then you did not read the wiki.
I have been told one could actually build X windows from custom and more lightweight components.
Lighter than sddm and plasma desktop - you absolutely can. But you don't need xinit *and* a display manager, you just need one or the other (which is also covered in the wiki page linked above).
@Seth, while it does seem odd to me too, it looks like sddm doesn't need to be enabled. Installation of the package is sufficient according to the wiki. By default arch does boot to graphical target.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
$ systemctl status sddm.service
Unit sddm.service could not be found.
$ sudo pacman -S sddm
resolving dependencies...
looking for conflicting packages...
Packages (1) sddm-0.14.0-2
Total Download Size: 3.22 MiB
Total Installed Size: 4.16 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
sddm-0.14.0-2-x86_64 3.2 MiB 1502K/s 00:02 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
:: Processing package changes...
(1/1) installing sddm [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
$ systemctl status sddm.service
● sddm.service - Simple Desktop Display Manager
Loaded: loaded (/usr/lib/systemd/system/sddm.service; disabled; vendor preset
Active: inactive (dead)
Docs: man:sddm(1)
man:sddm.conf(5)Offline
Pages: 1