| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Uncategorized Entries with no category
 |
Posted 08-28-2010 at 06:26 PM by the dsc (linux-related notes)
Updated 08-28-2010 at 06:28 PM by the dsc
If you want to have a script that would do something if either one of two consequences is true, a simple way to do that would be:
Code:
if [ condition 1 ] || [ condition 2 ] ; then
if [ condition 1 ] ; then
consequences for condition 1
fi
if [ condition 2 ] ; then
consequences for condition 2
fi
consequences of either one, but happens only once, not twice
fi
...
You check if either one is true, when "||"...
|
Member
|
|
Views 570
Comments 0
|
 |
Posted 08-28-2010 at 06:08 PM by the dsc (linux-related notes)
Sometimes you move the folder to which lots of symlinks were pointing, or something to that effect, and you want to simply "edit" these symlinks rather than recreating them pointing the correct new location. That's how it can be done with one line:
Code:
find /place-where-the-null-symlinks are/ -type l | while read nullsymlink ;
do wrongpath=$(readlink "$nullsymlink") ;
right=$(echo "$wrongpath" | sed s'|/whatever/is/the/old-wrong/path|/correct-new/path|')
...
|
Member
|
|
Views 2021
Comments 1
|
 |
Posted 08-13-2010 at 12:57 PM by the dsc (linux-related notes)
There had been a weird problem with sound on Arch. Whenever there was a flash item being displayed (or perhaps flash using sound, I suppose), there would be no sound elsewhere. And if there were sound elsewhere, whenever you play something on flash, it would conversely be mute.
The fix is quite simple:
Quote:
Originally Posted by Wilco
After having some troubles with alsa I managed to fix this once and for all. The problem was I could not run flash+firefox and some other application that uses sound,
...
|
Member
|
|
Views 1369
Comments 0
|
 |
Posted 08-13-2010 at 09:35 AM by the dsc (linux-related notes)
Updated 08-13-2010 at 09:38 AM by the dsc
By "work" I mean having "hovering" and "keepshape" mode, not just a worthless slow "pen-mouse". My thinking is that it wasn't working due to concurrent configuration files. There isn't only xorg.conf, but on /etc/X11 there is a xorg.conf.d folder, and there there was a ##-wacom.conf or something, with different settings than the ones I had set manually on xorg.conf.
HAL is deprecated, or something like that, and I don't have any .fdi file for...
|
Member
|
|
Views 2061
Comments 1
|
 |
Posted 08-13-2010 at 09:25 AM by the dsc (linux-related notes)
Apparently I got it working. It did do a preview scan, with color, on xsane, as a normal user, so it's almost 100% sure it is OK. The only thing I think I may have had to do different from Debian was to set a udev rule and change user permissions/ownership on /var/lock/sane. Some people said that just udev or permissions alone would do it, but I had the impression I needed both, but that's possibly wrong. I don't see anything wrong in having both, so I'll just leave it as it is, as it is working....
|
Member
|
|
Views 1740
Comments 0
|
All times are GMT -5. The time now is 05:39 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|