Tips and Tricks: Difference between revisions
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
{{Command|<nowiki>find . -regex '.*\(pdf\|doc\)'</nowiki>}} | {{Command|<nowiki>find . -regex '.*\(pdf\|doc\)'</nowiki>}} | ||
== SCP file transfer == | == SCP file transfer == | ||
| Line 71: | Line 46: | ||
Open Dolphin -> Settings > Configure Dolphin -> Views -> Common Tab -> and mark -> Use the same view for all folders | Open Dolphin -> Settings > Configure Dolphin -> Views -> Common Tab -> and mark -> Use the same view for all folders | ||
== Package management (Portage) == | |||
=== To which package belongs file X === | |||
{{Root|equery belongs -f <dateiname>}} | |||
=== Which installed packages have USE-Flag X === | |||
{{Root|equery hasuse <useflag>}} | |||
=== Backup an installed package === | |||
{{Root|quickpkg net-www/apache}} | |||
After this you can install the package on another machine or do a fast downgrade if something went bad after an update. You can find the file under {{Path|/usr/portage/packages/All}} and in this example a symlink to the apache file in {{Path|/usr/portage/packages/net-www}}. To install the now precompiled binary use: | |||
{{Root|emerge --usepkgonly "<net-www/apache-2.2.4"}} | |||
=== Detect and get rid of leftover packages === | |||
{{Root|emerge depclean --pretend}} | |||
=== Change your current profile === | |||
{{Root|emerge eselect}} | |||
{{Root|eselect profile list}} | |||
{{Root|eselect profile set <nummer>}} | |||
[[Category:Software]] | [[Category:Software]] | ||
Revision as of 14:59, 22 September 2011
Useful commands
Recursively set directory permissions to 755
Recursively rename directory and files from ISO-8859-15 to UTF-8
Recursively search for files of a specitic type, e.g. documents and list them
SCP file transfer
File transfer via commandline.
Upload file:
Download file:
Upload directory:
Download directory:
SSH tunnel
Very useful if the server you want to connect to has only the SSH port open and/or a firewall infront and you want to access for example a tomcat server running on port 8080.
After establishing the tunnel you can access the tomcat server of the remote machine port 8080 at your localhost port 7777.
KDE4 problems and workarounds
Reset to the default Plasma layout
Log out of KDE/X and delete from tty:
Change the Dolphin standard view to detailed view for ALL folders
Open Dolphin -> Settings > Configure Dolphin -> Views -> Common Tab -> and mark -> Use the same view for all folders
Package management (Portage)
To which package belongs file X
Which installed packages have USE-Flag X
Backup an installed package
After this you can install the package on another machine or do a fast downgrade if something went bad after an update. You can find the file under /usr/portage/packages/All and in this example a symlink to the apache file in /usr/portage/packages/net-www. To install the now precompiled binary use: