[Solved] restarting USM??

Post here if you are a new Porteus member and you're looking for some help.
donald
Full of knowledge
Full of knowledge
Posts: 2063
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

restarting USM??

Post#16 by donald » 12 Apr 2021, 11:33

Ed_P wrote:
12 Apr 2021, 05:42
Run an echo " " > /var/usm/slacky/CHECKSUMS.md5 and repeat for LIBS.TXT, OPTIFEST and PACKAGES.TXT

Code: Select all

touch /var/usm/slacky/{CHECKSUMS.md5,LIBS.TXT,OPTIFEST,PACKAGES.TXT};
;)

Bob1414
Black ninja
Black ninja
Posts: 33
Joined: 28 Mar 2021, 15:35
Distribution: Cinnamon 4 kernel5.11.13 p

[Solved] restarting USM??

Post#17 by Bob1414 » 12 Apr 2021, 13:12

I'm severely distracted since I cannot log into root since yesterday. So I'll post a quick summary and mark this as solved.

I've been able to search and find packages, but not download them. In the USM GUI, I always got the error msg "LIBS.TXT not found". Donald explains the error msg is misleading: Re: Porteus - USM error (Post by donald #67759)

In short, it wants and fails to find itself as a dependency for some odd reason and wrongly reports LIB.TXT is not found. Logically therefore, I merely unchecked "resolve dependencies" and all went well.

I have been, after all, trying to download and use standalone programs. This is not the same as, for example, using the Nodejs package manager (npm, for javascript and nothing to do with Linux) wherein almost every download has dependencies that will get simultaneously downloaded if missing.

I've just successfully installed VLC, quick and easy once the trick is known.

Bob1414
Black ninja
Black ninja
Posts: 33
Joined: 28 Mar 2021, 15:35
Distribution: Cinnamon 4 kernel5.11.13 p

[Solved] restarting USM??

Post#18 by Bob1414 » 12 Apr 2021, 13:42

Bob1414 wrote:
12 Apr 2021, 13:12

I have been, after all, trying to download and use standalone programs. This is not the same as, for example, using the Nodejs package manager (npm, for javascript and nothing to do with Linux) wherein almost every download has dependencies that will get simultaneously downloaded if missing.

I've just successfully installed VLC, quick and easy once the trick is known.
Or maybe that's completely wrong because all the VLC xzm does is crash crash crash. I'd downloaded vlc-3.0.12-x86_64-1alien.txz

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

[Solved] restarting USM??

Post#19 by donald » 12 Apr 2021, 15:00

@Bob1414
Or maybe that's completely wrong because all the VLC xzm does is crash crash crash. I'd downloaded vlc-3.0.12-x86_64-1alien.txz
download / activate
http://www.mediafire.com/file/n6m2vta9w ... 64-jss.xzm

Bob1414
Black ninja
Black ninja
Posts: 33
Joined: 28 Mar 2021, 15:35
Distribution: Cinnamon 4 kernel5.11.13 p

[Solved] restarting USM??

Post#20 by Bob1414 » 12 Apr 2021, 17:43

donald wrote:
12 Apr 2021, 15:00
QT5
Thanks, Donald. Apparently, unlike most Linux(es), everything for Porteus has to be in a module customized for the Porteus version and probably for the Cinnamon DE, too. I'll try the QT5 tool, after I get the basics hammered out for using Porteus if/when my update-damaged Windows fails to start.

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

[Solved] restarting USM??

Post#21 by Ed_P » 12 Apr 2021, 18:30

donald wrote:
12 Apr 2021, 11:33

Code: Select all

touch /var/usm/slacky/{CHECKSUMS.md5,LIBS.TXT,OPTIFEST,PACKAGES.TXT};
;)
usmupdate2021.sh

Code: Select all

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

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
Thank you donald. :beer:
Ed

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

[Solved] restarting USM??

Post#22 by Kulle » 15 Apr 2021, 07:15

Hi ED_P,
Error message from script:
Removing the slacky file is not possible. file not found

But (!) the slacky file exists.

I.e. you have to remove the xyz file manually.

Code: Select all

root@porteus:/home/guest# ./usmupdate2021.sh 

find: "/tmp/xdg-runtime-guest/gvfs": Keine Berechtigung
 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

rm: das Entfernen von '/var/usm/slacky/*' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
USM Update done.
^C
root@porteus:/home/guest# cd /var/usm/
root@porteus:/var/usm# ls
alien/  ponce/  sbo/        slackware/         slacky/
local/  salix/  slackonly/  slackwarepatches/
root@porteus:/var/usm#

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

[Solved] restarting USM??

Post#23 by Kulle » 15 Apr 2021, 07:29

Line 24
rm /var/usm/slacky/*

replace with

rm -r /var/usm/slacky/*

But what does * mean?
ls command shows the files alien ponce ... without *

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

[Solved] restarting USM??

Post#24 by donald » 15 Apr 2021, 09:22

Error message from script:
Removing the slacky file is not possible. file not found
because the DIR was empty, but the update did work,no?
one could use rm --force /var/usm/slacky/* in Line 24 to suppress the message.
But what does * mean?
* is a wildcard - goggle it. ;)
[ * (asterisk) this can represent any number of characters ]

btw
maybe something like
echo "Press Enter to exit"
( Line 30) would be useful.

Kulle
Warlord
Warlord
Posts: 594
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

[Solved] restarting USM??

Post#25 by Kulle » 15 Apr 2021, 10:57

Hi Donald,
I am of course familiar with the wildcard symbol *.
I had mixed up that.

I meant the star at the end of the filename.
e.g. by ls /var/log/packages some file names appear green with an * at the end.
What does this * mean?

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

[Solved] restarting USM??

Post#26 by donald » 15 Apr 2021, 11:36

In porteus the ls command uses an alias adding the -F option, (and more), look in ~/.bashrc
When using the ls command, the asterisk indicates an executable file.

cat ~/.bashrc
# Setup color scheme for list call <brokenman>
alias ll='/bin/ls --color=auto -lF'
alias la='/bin/ls --color=auto -axF'
alias ls='/bin/ls --color=auto -xF'

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

[Solved] restarting USM??

Post#27 by Ed_P » 15 Apr 2021, 15:33

Kulle wrote:
15 Apr 2021, 07:29
Line 24
rm /var/usm/slacky/*

replace with

rm -r /var/usm/slacky/*
Kulle none of my /var/usm/ folders have sub-folders. Why does your /var/usm/slacky have one?
donald wrote:
15 Apr 2021, 09:22
one could use rm --force /var/usm/slacky/* in Line 24 to suppress the message.
Ok.
donald wrote:
15 Apr 2021, 14:57
echo "Press Enter to exit"
Thank you donald.
Ed

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

[Solved] restarting USM??

Post#28 by Liquidpaper » 31 Oct 2021, 22:50

Now with the usm solved, I am still moving slow whit the X. It looks like nouveau driver is loaded and the only thing should need is to change the resolution to 1280X1024X64 (max) and I do not know how to do that from CLI. I remember Xconfigurator or Xf86config. Any ideas?
Thanks!

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

[Solved] restarting USM??

Post#29 by donald » 01 Nov 2021, 02:29

--> It looks like nouveau driver is loaded <--

What does this mean? - Is the driver loaded or not?
Can you boot into a desktop (X)?
do you have to use nomodeset?

However, if you have a desktop [without nomodeset] try
xrandr --output VGA-1 --mode 1280X1024 --rate 60

or b:
boot into text mode > login as root > run X -configure
this creates a xorg.conf.new file.
copy this file as xorg.conf into /etc/X11/
[rename the old ones first e.g. xorg.conf.bak etc]
you could use mc for this task > exit mc > try startx

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

[Solved] restarting USM??

Post#30 by Liquidpaper » 01 Nov 2021, 04:02

xrandr works only in GFX - not my case

I tried b) there was no other Xorg.conf in /etc/X11 but good thing X server terminated successfully (0) and closed NO GUI

I have (only) Xf86-video-nouveau installed on my system

A) when modeset=1 or modeseting nouveau is loaded lspci -knn shows that
black screen with a blinking cursor on the top-left corner (tty7)
TTY 2 - text is smaller ("GFX" mode)
X -configure output:

Code: Select all

List of video drivers:
nouveau
modesetting
configuration failed .. error (2)
B) when modeset=0 or nomodeset, "blacklisted" nouveau is NOT loaded lspci -knn shows nothing on the Driver:
black screen with a blinking cursor on the top-left corner (tty7)
TTY 2 - text is bigger (text mode)
X -configure output:

Code: Select all

List of video drivers (the same):
nouveau (the same as above)
modesetting (the same as above)
configuration failed .. error (2)
Let me know if is anything else more relevant and I will provide you. Thanks a lot!

Post Reply