Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:howtos:faq [2008/10/18 11:44] (current)
Line 1: Line 1:
 +====== PLD FAQ ====== ​
 +Official PLD's FAQ: [[http://​pld-linux.org/​FAQ]].
 +
 +
 +====== Console tricks ======
 +
 +== How to take a X screenshot ==
 +
 +        * using ImageMagick:​ <​code>​$ import -window root screenshot.jpg</​code>​
 +        * using Scrot: <​code>​$ scrot ’%Y-%m-%d_$wx$h.png’ -e ’mv $f ~/shots/’
 +# It will create 2000-10-30_2560x1024.png and moved it to ~/​shots/</​code>​
 +
 +== How to rename multiple files ==
 +
 +        * <​code>​$ for i in /​path/​filename.*;​ do mv "​$i"​ `echo "​$i"​ | sed '​s/​filename/​renamefile/'​`;​ done</​code>​
 +== How to change a console when function keys are disabled ==
 +
 +        * <​code>​$ sudo chvt x # x - number of virtual console</​code>​
 +== How to execute an action on every file found by find ==
 +
 +        * <​code>​$ find -name *.cs -exec grep -n -H --color '​apud'​ {} \;</​code>​
 +== How to use echo command with sudo, but without using root's shell ==
 +
 +        * <​code>​$ echo "​test"​|sudo tee -a /etc/hosts >> /​dev/​null</​code>​
 +====== Networks ======
 +
 +====== System ======
 +== Forgotten root's password ==
 +Add to lilo/grub during boot
 +<​code>​init=/​bin/​bash rw</​code>​ ex.: lilo: <​code>​pld init=/​bin/​bash rw</​code>​ When grub is used add it to line <​code>​kernel=</​code>​
 +After password changing (''​passwd''​):<​code>​sync</​code>​ Then remount / partition in read-only mode <​code>​mount / -o remount,​ro</​code>​
 +
 +====== Poldek and rpm ======
 +
 +== How to uninstall a package when poldek return exit status 127? ==
 +
 +        *<​code>​rpm -e --noscripts package</​code>​
 +== How to install a group of pacgages, but without -devel packages? ==
 +        *<​code>​poldek --ignore "​*devel*"​ -i "​kde4-kdegam*"​ </​code>​
 +== How to find a package, which contain specific file ==
 +In poldek'​s interactive mode:
 +        *<​code>​poldek://​all-avail>​ search -f *aplay*</​code>​
 +== How to disable '​skiptag - s' in poldek ==
 +1. Upgrade all rpm-* oraz poldek-* packages
 +        *<​code>​poldek:/​all-avail>​ upgrade rpm-* poldek-*</​code>​
 +2. If point one hasn't solved the problem:
 +        *<​code>#​ rm -rf /​var/​lib/​rpm/​__db.00*
 +# rpm --rebuilddb </​code>​
 +
 +====== Misc ======
 +
  
en/howtos/faq.txt · Last modified: 2008/10/18 11:44 (external edit)
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