How to get X running

Post here if you are a new Porteus member and you're looking for some help.
Liquidpaper
White ninja
White ninja
Posts: 20
Joined: 15 Oct 2021, 16:32
Distribution: slackware

How to get X running

Post#1 by Liquidpaper » 29 Oct 2021, 21:41

Hi everyone,

I am excited to get Porteus 4.0 booting but I can't get X. Is there a way to install additional drivers for my card?

On display

Code: Select all

Input signal out of range change settings to 1280x1024x60
One card (ATI RAGE 128 shows a message on my display: out of sync. Replaced the card with NVIDIA RIVA TNT2 and now shows the graphics started but not really is flashing every 2 seconds. Any suggestions will be really appreciated, thanks so much!

I tried Xconfigurator, Xf86config but commands were not found
Last edited by Liquidpaper on 04 Nov 2021, 04:07, edited 3 times in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 8369
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How to get X

Post#2 by Ed_P » 30 Oct 2021, 03:01

To list the drivers your system has: in root use lspci | grep VGA

To add a driver create or download a .xzm file for it and put it your /porteus/modules folder.

Use http://porteus.org/porteus-mirrors.html to find a mirror close to you
Ed

Liquidpaper
White ninja
White ninja
Posts: 20
Joined: 15 Oct 2021, 16:32
Distribution: slackware

How to get X

Post#3 by Liquidpaper » 30 Oct 2021, 05:13

thanks, Ed. lspci will give the cards I currently have (mentioned ATI or NVIDIA)
1 Why do you think I need (another) driver?
2 How to find what driver is in use currently? I supposed a generic
3 I looked at mirrors and the .xzm but can't see anything related to GPX, can anybody be more specific, please

Thanks a lot guys, this OS rock!

User avatar
Ed_P
Contributor
Contributor
Posts: 8369
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How to get X

Post#4 by Ed_P » 30 Oct 2021, 05:42

Liquidpaper wrote:
30 Oct 2021, 05:13
1 Why do you think I need (another) driver?
It sounds like your screen isn't working.
Liquidpaper wrote:
30 Oct 2021, 05:13
2 How to find what driver is in use currently? I supposed a generic
lspci -knn should show what drivers are in use.

It would help if you told us what ISO you are working with and how you installed it.
Ed

donald
Full of knowledge
Full of knowledge
Posts: 2069
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

How to get X

Post#5 by donald » 30 Oct 2021, 11:57

@ Liquidpaper

riva tnt2
This ancient card should be supported by the nouveau driver
https://nouveau.freedesktop.org/CodeNames.html

If it doesn't work properly [and depending on what resolution you want to achieve]
try to boot with nomodeset

Another thing to try:
blacklist nouveau - maybe another driver like xf86-video-nv will be used.
to blacklist nouveau create a nouveau-blacklist.conf with following content:
blacklist nouveau
options nouveau modeset=0
and put this file into /etc/modprobe.d/ > reboot.

good luck

Liquidpaper
White ninja
White ninja
Posts: 20
Joined: 15 Oct 2021, 16:32
Distribution: slackware

How to get X

Post#6 by Liquidpaper » 30 Oct 2021, 14:20

Thank so much guys, that was real helpful.
I am booted either PXE or CD-live with Porteus_v4.0_Mate_x086.iso (32bits).
I am running live-CD. The "frugal" installation will be topic on other post/

Tried to boot nomodeset with ATI-RAGE no work. I will switch the card to NVIDIA-TNT2 and try with that nomodeset and let you guys know. BWY I think TNT2 should be preferred what do you guys recommend?

lsp -knn shows no kernel module/driver for the AMD RAGE card. Thus no driver loaded. I can find the driver as .xzm downoald it and load it as Ed_P mentioned on his answer? I really like that little challenge. If that will no work I will try the blacklisting way. Thanks a million and please excuse my apparent weirdness, I am just a stupid novice user.

Update:
with NVIDIA-TNT2. nouveau loaded I was able on time to startx. I will keep trying. I tried to blacklist nouveau driver but no no success.
Brisk menu has quit unexpectedly
Last edited by Liquidpaper on 31 Oct 2021, 05:16, edited 3 times in total.

donald
Full of knowledge
Full of knowledge
Posts: 2069
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

How to get X

Post#7 by donald » 31 Oct 2021, 00:15

Liquidpaper wrote:
30 Oct 2021, 14:20
I think TNT2 should be proffered what do you guys recommend?
The one that can be brought to life. :)

Honestly, both cards are over 20 years old.I wouldn't expect miracles.

old cards / drivers / kernel /Xorg obstacles:
https://flaterco.com/kb/video/X-regressions.html

Liquidpaper
White ninja
White ninja
Posts: 20
Joined: 15 Oct 2021, 16:32
Distribution: slackware

How to get X

Post#8 by Liquidpaper » 31 Oct 2021, 02:22

Thanks so much donald.

We are progressing GUI almost OK, but mouse pointer has a cross and the screen flickers, it looks like is not really load everything.

Tried to update database: I

Code: Select all

usm -u all
and

Code: Select all

FATALL ERROR:
usm update_database 248
could not decompress checksums.md5.gz
I have 184 M (2%) available on /mnt/live

donald
Full of knowledge
Full of knowledge
Posts: 2069
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

How to get X

Post#9 by donald » 31 Oct 2021, 12:06

...usm..porteus 4
Long story short.
Run following script. It may still work.
Run it as guest and enter the Pw when asked for it.

If you want more info about the 'why', read the linked threads.

usmupdate2021.sh

Code: Select all

#!/bin/sh
# Based on suggestions from donald:
# https://forum.porteus.org/viewtopic.php?p=82013#p82013
# https://forum.porteus.org/viewtopic.php?p=82046#p8204

function Title() {
  echo -en "\033]0;$1\a";
}
Title "USM Update"
if [ `whoami` != "root" ]; then
  echo "Enter root's password" $(tput bold)$(tput setaf 1)  # 1-red, 2-green, 6-cyan, 7-white
  su -c "sh $0 $1 $2"; exit
fi 
echo $(tput sgr0)

if [ ! -e /etc/usm/usm.conf.bkup ]; then
   cp /etc/usm/usm.conf /etc/usm/usm.conf.bkup
fi

sed -i 's^patches slacky salix^patches        salix^' /etc/usm/usm.conf

usm -u all

rm --force /var/usm/slacky/*
touch /var/usm/slacky/{CHECKSUMS.md5,LIBS.TXT,OPTIFEST,PACKAGES.TXT};
#https://forum.porteus.org/viewtopic.php?p=82046#p82046

cp /etc/usm/usm.conf.bkup /etc/usm/usm.conf
echo "USM Update done."
echo "Press Enter to exit"
read
when done, close the terminal and open a new one to use usm.

EDIT
still working.. :Yahoo!:

Code: Select all

guest@porteus:~/Public$ ./usmupdate2021.sh
Enter root's password 
Password: 

 Starting slackware database update 
Downloading: vercheck.txt  DONE
Downloading: CHECKSUMS.md5  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 slackware  database updated. 

Updating config file

 Starting slackwarepatches database update 
Downloading: CHECKSUMS.md5  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 slackwarepatches  database updated. 

 Starting salix database update 
Downloading: CHECKSUMS.md5  DONE
Downloading: PACKAGES.TXT  DONE
Downloading: LIBS.TXT.gz  DONE
Downloading: OPTIFEST.gz  DONE
 salix  database updated. 

 Starting alien database update 
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 alien  database updated. 

 Starting ponce database update 
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
Optimizing manifest
 ponce  database updated. 

 Starting slackonly database update 
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 slackonly  database updated. 

 Starting sbo database update 
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz  DONE
 sbo  database updated. 


Downloading: extra-deps.txt  DONE
Downloading: ignore-deps.txt  DONE

USM Update done.
Press Enter to exit

Liquidpaper
White ninja
White ninja
Posts: 20
Joined: 15 Oct 2021, 16:32
Distribution: slackware

How to get X

Post#10 by Liquidpaper » 31 Oct 2021, 19:16

Thanks Donald, can you please why you needed this patch on a freshly installed official Porteus?
As far as I can see in /etc/usm/usm.conf the DISTROS section all the mirrors are referenced.

donald
Full of knowledge
Full of knowledge
Posts: 2069
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

How to get X

Post#11 by donald » 31 Oct 2021, 19:30

In short
slacky mirror(s) didn't work
If you (only) remove slacky from the DISTROS line USM will update the remaining databases but
still won't work.

restarting USM?? (Post by donald #82033)
and
restarting USM?? (Post by donald #82040)

Liquidpaper
White ninja
White ninja
Posts: 20
Joined: 15 Oct 2021, 16:32
Distribution: slackware

How to get X

Post#12 by Liquidpaper » 31 Oct 2021, 20:33

that is what I noticed and removed slacky first no go then let slacky in distros but created a dummy file OPTIFEST no go.

that (your patch) make a bit more sense to me thanks so much but still confused with:
d) one can use USM as usual
Note: do not run usm -u all again.
you mean never?

donald
Full of knowledge
Full of knowledge
Posts: 2069
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

How to get X

Post#13 by donald » 31 Oct 2021, 21:27

Liquidpaper wrote:
31 Oct 2021, 20:33
..(your patch)..
A huge part of the work was done by Ed_P, i would call it 'teamwork'.
Note: do not run usm -u all again.
you mean never?
The script wasn't ready/complete at that time.
Should be OK now if you run it again.
[not tested - my system is read-only so I run this script only once if I need to.]

User avatar
Ed_P
Contributor
Contributor
Posts: 8369
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How to get X

Post#14 by Ed_P » 31 Oct 2021, 22:07

Liquidpaper wrote:
31 Oct 2021, 20:33
Note: do not run usm -u all again.
you mean never?
You can run it repeatedly if you want Liquidpaper. Try it and see what happens. I run it periodically to keep things updated.
donald wrote:
31 Oct 2021, 21:27
A huge part of the work was done by Ed_P, i would call it 'teamwork'.
Agreed. :happy62: After many posts between us. :D
Ed

Liquidpaper
White ninja
White ninja
Posts: 20
Joined: 15 Oct 2021, 16:32
Distribution: slackware

How to get X

Post#15 by Liquidpaper » 31 Oct 2021, 22:37

I did the manual (also .sh patch) mode following your instructions and both worked fine. I installed a package, all good. But still got errors after that when usm -u all. However I am able to install new packages which is the thing, but because usm -u all still fails on *.bz2 from slackonly not good. Thinking to remove slackonly.
Thanks both, great team :)

Post Reply