useful commands , anyone to add

Arch based Porteus community project
aus9

Re: useful commands , anyone to add

Post#16 by aus9 » 15 Dec 2015, 08:11

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 5757
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: useful commands , anyone to add

Post#17 by brokenman » 23 Dec 2015, 03:13

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

aus9

Re: useful commands , anyone to add

Post#18 by aus9 » 15 Jan 2016, 05:55

glxgears edit now a tutorial

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1171
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: useful commands , anyone to add

Post#19 by ncmprhnsbl » 15 Jan 2016, 22:57

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
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 5291
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Y fait frette et on gèle

Re: useful commands , anyone to add

Post#20 by francois » 16 Jan 2016, 01:10

Hijacking the post:

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

aus9

Re: useful commands , anyone to add

Post#21 by aus9 » 02 Feb 2016, 03:35

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

M. Eerie
Black ninja
Black ninja
Posts: 62
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

useful commands , anyone to add

Post#22 by M. Eerie » 04 Feb 2018, 15:12

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!
:)

User avatar
francois
Contributor
Contributor
Posts: 5291
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Y fait frette et on gèle

useful commands , anyone to add

Post#23 by francois » 06 Feb 2018, 03:09

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.
Carpe diem.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1171
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

useful commands , anyone to add

Post#24 by ncmprhnsbl » 06 Feb 2018, 21:59

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
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 5291
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Y fait frette et on gèle

useful commands , anyone to add

Post#25 by francois » 07 Feb 2018, 18:43

Is 005-devel.xzm provided from base folder or provided independently?
Carpe diem.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1171
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

useful commands , anyone to add

Post#26 by ncmprhnsbl » 07 Feb 2018, 22:16

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 :)
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 5291
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Y fait frette et on gèle

useful commands , anyone to add

Post#27 by francois » 08 Feb 2018, 02:22

Quite modest come out for the devel module. :)
Carpe diem.

Post Reply