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: 5656
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: 1022
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: 5124
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

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

Post Reply