PLD FAQ

Official PLD's FAQ: http://pld-linux.org/FAQ.

Console tricks

How to take a X screenshot
  • using ImageMagick:
    $ import -window root screenshot.jpg
  • using Scrot:
    $ scrot ’%Y-%m-%d_$wx$h.png’ -e ’mv $f ~/shots/’
    # It will create 2000-10-30_2560x1024.png and moved it to ~/shots/
How to rename multiple files
  • $ for i in /path/filename.*; do mv "$i" `echo "$i" | sed 's/filename/renamefile/'`; done
How to change a console when function keys are disabled
  • $ sudo chvt x # x - number of virtual console
How to execute an action on every file found by find
  • $ find -name *.cs -exec grep -n -H --color 'apud' {} \;
How to use echo command with sudo, but without using root's shell
  • $ echo "test"|sudo tee -a /etc/hosts >> /dev/null

Networks

System

Forgotten root's password

Add to lilo/grub during boot

init=/bin/bash rw

ex.: lilo:

pld init=/bin/bash rw

When grub is used add it to line

kernel=

After password changing (passwd):

sync

Then remount / partition in read-only mode

mount / -o remount,ro

Poldek and rpm

How to uninstall a package when poldek return exit status 127?
  • rpm -e --noscripts package
How to install a group of pacgages, but without -devel packages?
  • poldek --ignore "*devel*" -i "kde4-kdegam*" 
How to find a package, which contain specific file

In poldek's interactive mode:

  • poldek://all-avail> search -f *aplay*
How to disable 'skiptag - s' in poldek

1. Upgrade all rpm-* oraz poldek-* packages

  • poldek:/all-avail> upgrade rpm-* poldek-*

2. If point one hasn't solved the problem:

  • # rm -rf /var/lib/rpm/__db.00*
    # rpm --rebuilddb 

Misc

en/howtos/faq.txt · ostatnio zmienione: 2008/10/18 11:44 (edycja zewnętrzna)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 Powered by Lighttpd - fly light