LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices

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.
  1. Old Comment
    Posted 08-18-2014 at 02:09 PM by the dsc the dsc is offline
  2. Old Comment

    [bash] "keep trying" command, even if exits with error, for at least 10 times

    Hey I had to give this one a shot on trying to get it to work for n tries, came up with a promising result, if interested.

    Heck, I posted it, if you'd like:

    http://www.linuxquestions.org/questi...og.php?b=36165
    Posted 08-09-2014 at 03:08 AM by goumba goumba is offline
    Updated 08-12-2014 at 10:57 PM by goumba
  3. Old Comment

    Liquorix kernel seems more responsive than Debian's default

    I'm just happy this even boots on this P3 IBM T23 and supports everything I have plugged into it.

    Code:
    harry@biker:~
    $ inxi -Fxz
    System:    Host: biker Kernel: 3.14.3-dreamlinux-liquorix i686 (32 bit gcc: 4.6.2) 
               Desktop: Fluxbox 1.3.2 
               Distro: antiX-13_386-full Luddite 01 June 2013 
    Machine:   Mobo: IBM model: 26474MU
               Bios: IBM v: 1AET64WW (1.20 ) date: 10/18/2006
    CPU:       Single core Mobile Intel Pentium III - M (-UP-) cache: 512 KB
               flags: (pae sse) bmips: 2397 clocked at 1197 MHz
    Graphics:  Card: S3 SuperSavage IX/C SDR bus-ID: 01:00.0
               Display Server: X.Org 1.12.4 drivers: savage (unloaded: fbdev,vesa)
               Resolution: 1024x768@60.0hz
               GLX Renderer: Gallium 0.4 on softpipe
               GLX Version: 2.1 Mesa 8.0.5 Direct Rendering: Yes
    Audio:     Card Intel 82801CA/CAM AC'97 Audio Controller 
               driver: snd_intel8x0 ports: 1c00 18c0 bus-ID: 00:1f.5 
               Sound: ALSA v: k3.14.3-dreamlinux-liquorix
    Network:   Card-1: Intel 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller
               driver: e100 v: 3.5.24-k2-NAPI port: 6400 bus-ID: 02:08.0
               IF: eth0 state: down mac: <filter>
               Card-2: Ralink RT2800 802.11n PCI
               driver: rt2800pci v: 2.3.0 bus-ID: 07:00.0
               IF: wlan1 state: up mac: <filter>
    Drives:    HDD Total Size: 80.0GB (31.1% used)
               ID-1: /dev/sda model: ST980815A size: 80.0GB
    Partition: ID-1: / size: 73G used: 23G (33%) fs: ext4 dev: /dev/sda1 
               ID-2: swap-1 size: 1.12GB used: 0.00GB (0%) fs: swap dev: /dev/sda2 
    Sensors:   System Temperatures: cpu: 51.0C mobo: 50.0C 
               Fan Speeds (in rpm): cpu: 4870 
    Info:      Processes: 109 Uptime: 1:05 Memory: 423.9/1006.6MB 
               Init: SysVinit runlevel: 5 Gcc sys: 4.7.2 
               Client: Shell (bash 4.2.371) inxi: 2.1.28
    Posted 06-06-2014 at 06:25 PM by rokytnji rokytnji is offline
  4. Old Comment

    Commanding openbox through scripts or command line

    I think "xdotool" would probably be better than acpi_fakekey for this. Doesn't require su/sudo.

    I'm not sure both do exactly the same thing and I don't remember anymore what prompted this "need", and if I'm still using acpi_fakekey for something.
    Posted 03-14-2014 at 06:44 PM by the dsc the dsc is offline
  5. Old Comment

    Dealing with file names (oddly) starting with an hyphen

    Hey, thanks for the tip.

    This works for many (if not all) of the standard GNU file utils such as cp, rm, touch, etc.
    Posted 12-02-2013 at 07:35 AM by goumba goumba is offline
  6. Old Comment
    Posted 11-19-2013 at 04:54 PM by vmccord vmccord is offline
  7. Old Comment

    Solved: "mount error: could not resolve address for <hostname>. No address associated with hostname"

    To get the job work, you also need to:
    sudo apt-get install winbind
    Posted 03-10-2013 at 10:11 AM by bzhao bzhao is offline
  8. Old Comment

    Batch-fixing symlink targets

    This works like a charm; took just a second processing in a directory with a few dozen broken symlinks :-))
    Thank you the_dsc for sharing your knowledge.
    Posted 12-11-2012 at 08:25 AM by kozaki kozaki is offline
  9. Old Comment

    Got banned from the ubuntu forums

    Quote:
    Originally Posted by Web31337 View Comment
    in my opinion, for example, in lq, you should not post replies to "solved" threads,
    If there exists another solution or the new solution is even
    better, IMO then it "is" better to post the replies to solved
    and/or old threads.

    and fortunately LQ doesn't have problems with this kind of
    necroposting. ;-)
    Posted 04-25-2012 at 02:11 AM by TheIndependentAquarius TheIndependentAquarius is offline
  10. Old Comment

    Got banned from the ubuntu forums

    LF has the same policy. I stopped participating on that forum after a thread was locked. Someone posted an answer to an unanswered question. A moderator stated, "Since this thread is more than two years old, locking it down." Locking a thread, because someone posts an answer is not very logical. The moderator then added an invitation to the OP to feel free to start a new thread if he was still having trouble? If administrators do not want new posts in old threads, then inactive threads should be automatically locked after a specified time period. Waiting until an old thread receives a new post and locking it is rather stupid.

    I am against locking, again because of my LF experience. There, threads are locked when declared solved. If someone has another answer, and possibly a better one, that answer cannot be added to the thread. The same is true of old threads. Why start a new thread, if existing ones can be up-dated?

    That is my opinion.
    Posted 04-24-2012 at 07:54 AM by Randicus Draco Albus Randicus Draco Albus is offline
  11. Old Comment

    Got banned from the ubuntu forums

    Sometimes I just happen to found something I'm looking for over there. If the answer may be there I won't "blacklist" ubuntu forums from my searches. However I will not be able to eventually help someone if I know the answer from now on. Unless I create another account just for that, and use just to PM people, but I won't have all that trouble, I'd rather just post a note here for self-reference and for anyone who eventually stumbles around here spontaneously. Once, over there, I actually had to PM the creator of a script to give him a bug-report/fix because a topic was either blocked or my "ranking" didn't allow me for post there for some reason.

    Here's an actual example of the sort of bump I was describing:

    http://ubuntuforums.org/showthread.php?t=608593

    Not the first bump, which is really the more traditional kind, but later on, about 4 years later, someone posted something relevant. In this particular case no one felt the need to close the thread for some reason. I think it's completely arbitrary. If this policy had any logic, and this particular case came to their attention, the coherent thing to do would be to split the thread in two, one dated 2008 (and this one gets locked immediatelly), and one for 2011, even if it has just two posts.

    Some forums even have a close-automatically-after-N-days-without answers functionality, which I also find ridiculous, but that would at least be more coherent as well.
    Posted 04-18-2012 at 02:18 PM by the dsc the dsc is offline
    Updated 04-18-2012 at 02:26 PM by the dsc
  12. Old Comment

    Got banned from the ubuntu forums

    Quit going there as at least for me I found better answers elsewhere. Also too, it may have changed but they liked to be demeaning. That is no way to grow users and customers. We have since dumped ubuntu from a lot of systems.
    Posted 04-13-2012 at 07:13 PM by peonuser peonuser is offline
  13. Old Comment
    Posted 04-13-2012 at 05:36 PM by the dsc the dsc is offline
  14. Old Comment

    Got banned from the ubuntu forums

    By "bumping" I don't mean "hey guys, c'mon, no one knows the answer?" (even though that's indeed the most common use of the term really), or "me too", but adding more content to a years-old thread, regardless of posting further questions on the same subject ("hey, the step 3 didn't work for me, whereas the previous steps have worked. What's going on?") or adding more information on the subject ("Hey guys, with the command user XYZ gave you'll indeed have an audio file with the same content, but you're not actually extracting the track, rather you're reencoding just the audio track").

    It's very common that, whenever I'm searching for something, I'll find pieces of relevant information all over different forums and threads, which is partly caused by some threads being closed just for the sake of being "old" and users being forced to create new ones for the same subject. Sometimes I also find, in the middle of a topic, unanswered questions whose answers I may know. When the topic isn't closed, I can add the answer and the thread would be "richer", more helpful, perhaps not to the same person who originally asked them, but for other people who eventually stumble on the same topic when they're having some related issue. If the thread is closed, I'll probably not post it anywere (however this is part of the intention behind my blog here), and it would be harder for someone else to find the answer in the future.

    Closing these topics seems completely irrational, or at least unjustified by the reasonings I've heard or imagined so far. It seems it's more a matter of people for some reason "feeling weird" that the topic is old, and moderators with nothing better to do who feel powerful by closing threads and saying, "alright, move on, there's nothing to see here, thread closed. Create a new thread if you want to make your lame-ass point/question, punk".
    Posted 04-13-2012 at 05:25 PM by the dsc the dsc is offline
    Updated 04-13-2012 at 05:27 PM by the dsc
  15. Old Comment

    Got banned from the ubuntu forums

    My understanding of "bumping" a thread is when the original poster adds another post just to get it back at the top in the hopes of finding an answer. As long as this is not done too much, I don't have an issue with it. I'd rather they bump an old thread than create yet another. But it's not my say in either LQ or UF ... just my opinion.

    But that doesn't seem to fit your explanation about threads being richer. It's more about leaving old unanswered threads around. Only one needs to have the answer.

    I wonder if what you mean by "bumping" is the practice of asking a similar, but not identical, question as a followup post on an existing thread, even if you started the thread. IMHO, this kind of "enrichment" does not make it easier, and likely makes it harder, for people to find existing answers. I'd rather see a different question in a different thread. But, again, it's not my say in either of the forums ... just my opinion.

    Whenever a zero reply thread is hijacked, that kicks the thread out of the "Zero Reply Threads" search that I (and many others) periodically do the search for to see what questions haven't gotten an answer. That unfair to the poster who asked, unless you are providing at least some quantity of answer, or asking them for more details when the question isn't answerable as it stands. Posting "I have the same problem" followups is of no help ... just subscribe to the thread or manually check it periodically for an answer. If your question varies enough to need to ask the variation, then start your own thread. Again, this is an IMHO.
    Posted 04-13-2012 at 05:03 AM by Skaperen Skaperen is offline
  16. Old Comment

    Got banned from the ubuntu forums

    in my opinion, for example, in lq, you should not post replies to "solved" threads, otherwise, non-resolved threads should be filled up with relevant replies.
    however, i guess you're also in wrongs here, since that is not really a word you should mention casually. you never know what association it may have for certain users.
    Posted 04-12-2012 at 11:54 PM by Web31337 Web31337 is offline
    Updated 04-12-2012 at 11:56 PM by Web31337
  17. Old Comment

    Pseudo-template noob hack that may apply for several situations

    okay here's where you must finally learn to not use such predictable names.
    Posted 04-12-2012 at 11:48 PM by Web31337 Web31337 is offline
  18. Old Comment

    Windows-like folder organization for binaries and libraries through symbolic links?

    Code:
    $ mkdir test{1,2}
    $ touch test1/file1
    $ ln -s test1/file1 test2/link1 
    $ ls -lh test*
    test1:
    total 8
    -rw-r--r--   1 user      user         0B Dec  2 16:47 file1
    
    test2:
    total 8
    lrwxr-xr-x   1 user      user        11B Dec  2 16:48 link1 -> test1/file1
    
    $ rm test1/file1
    $ ls -lh test*
    test1:
    
    test2:
    total 8
    lrwxr-xr-x   1 user      user        11B Dec  2 16:48 link1 -> test1/file1
    
    $ cat test2/link1                                                              
    cat: test2/link1: No such file or directory
    $ echo "omg" > test1/file1                                                                     
    $ cat test2/link1          
    cat: test2/link1: No such file or directory
    Using symlinks like that would certainly be possible, but there would have to be a codebase handling the logic of "what if the target is removed? Remove the link, too!" so it didn't get insanely inconsistent.

    Not saying it *can't* be done, but it'd be a huge messy stinkpile cluster**** if not handled very carefully.
    Posted 12-02-2011 at 05:02 PM by rocket357 rocket357 is offline
  19. Old Comment

    Windows-like folder organization for binaries and libraries through symbolic links?

    Quote:
    There's a linux distro that is attempting to do something more or less like it I guess, I don't know if it's "exactly" like I've described though.
    Yeah, Gobolinux. I tried it during my distrohopping days.
    http://www.gobolinux.org/
    Posted 11-29-2011 at 01:35 PM by brianL brianL is offline
  20. Old Comment

    A very tiny quick dictionary look up script

    Quote:
    Is the space supposed to be before the slash or after bash? I had never noticed a space there in any script I've ever seen.
    I think what lupusarcanus is describing is a line like this:

    Code:
    #! /bin/bash
    …but IMO this works just as well:

    Code:
    #!/bin/bash
    The point is, you need a bang (exclamation point) in there to make it a valid interpreter selection line, otherwise it's simply interpreted as a comment, and the rest of the script is executed under the default shell*.

    (* - …which may be bash on most Linuxes, but if you're using bash-specific features, and you plan to run the script on systems where bash is not the default shell [but is installed], you'll want to explicitly tell the existing shell to switch to a different interpreter. )
    Posted 11-17-2011 at 05:40 AM by MrCode MrCode is offline
    Updated 11-17-2011 at 05:45 AM by MrCode

  



All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration