Page 2 of 3

Re: useful commands , anyone to add

Posted: 15 Dec 2015, 08:11
by aus9
from a recent post from donald

Code: Select all

grep MemTotal /proc/meminfo

(my result  shows 8G RAM)
MemTotal:        7863792 kB
reveals to members how much total memory detected by LInux

or if you install inxi you can use

Code: Select all

inxi -I

(my result ^^^ thats a capital I for India
Resuming in non X mode: xdpyinfo not found. For package install advice run: inxi --recommends
Info:      Processes: 187 Uptime: 11 min Memory: 573.5/7679.5MB Init: systemd Client: Shell (bash) inxi: 2.2.28

Re: useful commands , anyone to add

Posted: 23 Dec 2015, 03:13
by brokenman
Pacman stuff

# Extract only a certain folder from a package
tar -xf ./hunspell-1.3.3-3-x86_64.pkg.tar.xz usr/share/locale

# Install package (with deps) into a folder
mkdir /tmp/froot
pacman -r /tmp/froot/ -b /var/lib/pacman/ -U /path/to/package.pkg.tar.xz

# find all installed packages
ls /var/lib/pacman/local

# List installed package and what it provides
pactree -lu logrotate

# See which package owns a file
pacman -Qo ping

# See which package owns a library
# pacman -S pkgtools
# pkgfile -u
pkgfile libc.so.6

# See what a package installed
pacman -Ql <package name>

# See what packages depend on a certain package
pactree -r grep

Re: useful commands , anyone to add

Posted: 15 Jan 2016, 05:55
by aus9
glxgears edit now a tutorial

Re: useful commands , anyone to add

Posted: 15 Jan 2016, 22:57
by ncmprhnsbl
anything wrong with good ole 'free' for memory info? (-h = human readable)

Code: Select all

$ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.8G        747M        6.1G         14M        964M        7.0G
Swap:          9.8G          0B        9.8G
EDiTED (because of my wrongness)
brokenman wrote:# Install package (with deps) into a folder
mkdir /tmp/froot
pacman -r /tmp/froot/ -b /var/lib/pacman/ -U /path/to/package.pkg.tar.xz
this works but there are no entries in the modules' /var/lib/pacman/local
so extra step would be to copy from live mnt/live/memory/changes/var/lib/pacman/local

i've been doing it like this(from stifiling): with a folder of packages with no dep checking

Code: Select all

mkdir -p tmp/froot/var/lib/pacman/local
pacman -Uddr /tmp/froot /path/to/packages/*.pkg.tar.xz

Re: useful commands , anyone to add

Posted: 16 Jan 2016, 01:10
by francois
Hijacking the post:

@ncmprhnsbl:
Don't you have any comments on the future of porteus. :wink:

Re: useful commands , anyone to add

Posted: 02 Feb 2016, 03:35
by aus9
Now we are on openrc init system

to check that consolekit is running

Code: Select all

ck-list-sessions
consolekit is a part of the normal (default) boot up services so you can see what is in default by

Code: Select all

rc-status

(eg output with snips to reduce list)
dbus           [  started  ]
consolekit  [  started  ]
local           [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
Dynamic Runlevel: manual
adding removing services from runlevel etc can be see in this post
http://blog.notfoss.com/posts/openrc-on-arch-linux/

this shows us how to start or stop a service ..replace stop with start

Done as root please

Code: Select all

rc-service <service> start

useful commands , anyone to add

Posted: 04 Feb 2018, 15:12
by M. Eerie
Dealing with Nemesis this weekend I've found some interesting things:

Code: Select all

pacaur -S yaourt-gui
and you'll get a nice gui for you to enjoy the plethora of packages available in Arch land (although is launched in terminal)

Others oneliners I've found useful given dir2xzm and xzm2dir are not working for me in Nemesis:
Let's say you want to bundle some service packages into one. This one will uncompress all the modules in current dir and merge them in one and only folder named squashfs-root

Code: Select all

find . -name "*.xzm" -exec unsquashfs -f {} \;


Then, all you have to do is create a module out of that folder:

Code: Select all

cd ..
mksquashfs squashfs-root/ my-bundle.xzm -b 1M -comp xz -Xbcj x86 -noappend
Salut!
:)

useful commands , anyone to add

Posted: 06 Feb 2018, 03:09
by francois
I thought that pacaur was not there no more. Good news.

You could also install pamac or octopi which will provide official packages and those of AUR.

I imagine that once the war effort for porteus 4.0 will have been given some arms will be there to develop not only desktop environements but also additional packages like these.

useful commands , anyone to add

Posted: 06 Feb 2018, 21:59
by ncmprhnsbl
francois wrote:
06 Feb 2018, 03:09
I thought that pacaur was not there no more.
pacaur (and git) have been moved to 005-devel.xzm

useful commands , anyone to add

Posted: 07 Feb 2018, 18:43
by francois
Is 005-devel.xzm provided from base folder or provided independently?

useful commands , anyone to add

Posted: 07 Feb 2018, 22:16
by ncmprhnsbl
francois wrote:
07 Feb 2018, 18:43
Is 005-devel.xzm provided from base folder or provided independently?
link is here 2018 Updated Base Modules
place it where you like :)

useful commands , anyone to add

Posted: 08 Feb 2018, 02:22
by francois
Quite modest come out for the devel module. :)

useful commands , anyone to add

Posted: 12 May 2020, 18:22
by M. Eerie

Code: Select all

#!/bin/bash

eval OUT{1..3}="$(mktemp)"
 echo $OUT{1..3}
 rm $OUT{1..3} && unset OUT{1..3}
Fast create 3 tempfiles and assign them a variable on the fly.

The same is valid for

Code: Select all

$(mktemp -d)
which creates 3 dirs.
:)

useful commands , anyone to add

Posted: 29 Jun 2022, 03:05
by Karmi
aus9 wrote:
14 Nov 2015, 11:53
inxi has a bag full of switches, can be run as local user

Newbies not sure what their hardware is? then show the lot with

Code: Select all

inxi -F
Resuming in non X mode: xdpyinfo not found. For package install advice run: inxi --recommends
Old thread, but came in useful today. Had come across the inxi -Fxzc0 command today but it didn't work wid my 5.0rc3 Cinnamon. Then did a Google search 'n found this thread wid inxi -F in it but didn't work either. Apparently inxi needs to be installed on some Linuxes, e.g. testing it works on Fedora 36 & Sparky 7, but not Porteus or Puppy Linux. Also saw where some Ubuntu versions needed to have it added thru "apt-get" (I believe).

More searching 'n found inxi-3.3.12_1-noarch-1.txz at pkgs.org Slackware 15.0. Converted that to a module 'n now both those commands work...tho that inxi -Fxzc0 seems a bit long...

useful commands , anyone to add

Posted: 29 Jun 2022, 04:02
by Ed_P
The Porteus menu's Administration > Porteus System Info app supplys hardware info.
Karmi wrote:
29 Jun 2022, 03:05
More searching 'n found inxi-3.3.12_1-noarch-1.txz at pkgs.org Slackware 15.0. Converted that to a module 'n now both those commands work...tho that inxi -Fxzc0 seems a bit long...
Can you post a link to your module?