672 reputation
416
bio website squidoo.com/dannystaple
location London, United Kingdom
age 36
visits member for 3 years, 11 months
seen Nov 24 at 10:12

I've been using Linux since the late 90's, and have had a career involving Solaris, a tiny bit of Irix, and plenty of Linux - mostly operating at the shell scripting and application level.

I currently use XUbuntu for most development, an OSX Desktop on a home PC, and various server setups including RH, FC and Debian.


Oct
16
comment Moving physical disk from local computer to network server
This looks good, can you try it out and let us know if something doesn't work?
Oct
16
comment Mint 17: Touchpad recognized as mouse
Can you give a few more bits of info like: lsmod, lspci and lsusb?
May
20
comment Distro Customisation And Middleware Software Inclusion
You would have to write the packages you want, and installation code in a ks config. As far as I know - there isn't an automatic way to do this. Building a VM with your settings and distributing the VM disk image may work for you, and there are tools for converting a physical installation to a VM.
Apr
17
comment How to find which serial port is in use?
I like using those bits to detect a device - I'll probably use that, although I've many devices that only use the Tx/Rx pins, I could probably hack them to hold the CTS line high for that.
Apr
17
comment What does exit 99 means?
If you want to do something specific with a return code like that in bash, use the $? to get to it.
Oct
25
comment Using FC 19 - How can I interact with very long menus?
Yes - that is fair enough. I wandered if there was just some Gnome trick I was missing - the trend seems to be that all window controls are disappearing making things harder to use currently.
Oct
25
comment Using FC 19 - How can I interact with very long menus?
And yes - I am aware I can get to the specific gedit options with view->highlight mode. It still stands that the toolbar language selector is too long for the screen. I can also see this on pycharm when context clicking folders in a project view. I am sure I can find other examples.
May
29
comment Unexpected whitespace using sqsh in command substitution
Ah - I cannot see your edit yet Hauke. Your tags make more sense than mine.
May
29
comment Unexpected whitespace using sqsh in command substitution
That may suggest that this need to be tagged with sqsh and not wget then. If the whitespace appears earlier -the wget stuff later is noise.
May
29
comment Can the “du” program be made less aggressive?
The system is a build farm, so the number of files in a dir is really down to the devs of the components we build. df wouldn't quite work - the problem is that we do have clean up scripts, so we may see no change, but have missed an early warning for an automatic job that is aggressively grabbing disk space. We use zabbix to monitor overall disk use, but knowing the individual directories where things are going a bit nuts is pretty essential.
May
9
comment Find out if the OS is running in a virtual environment
nice - this works on virtual box: dmesg | grep -i vbox - ACPI: RSDP 000e0000 00024 (v02 VBOX )
May
9
comment ERROR:While Updating
Can you add the output of "uname -a" and "lsb_release -a" please?
May
9
comment ERROR:While Updating
You appear to be switching from 32bit to 64bit packages. I'd certainly be looking to do a fresh install and migrate my configuration to it than try and upgrade through to that.
Jan
22
comment Why does a desktop launcher does not start my app, while command line does?
It is possible that the script is relying on other aspects of your shell environment that is different from when it is run via the desktop launcher. Perhaps you can add a line near the top to dump the env into a file, and then diff them?
Oct
10
comment Tmpfs only with RAM
+1 to h3rrmiller - I've seen a ramfs setup consume all available memory until a machine dies. tmpfs is more appropriate. Also there is little point swapping to ram - why swap at all?
Oct
10
comment Install only a few GNU coreutils?
Not so much an answer as a pointer to an idea - buildroot normally sets up only a subset of coreutils, and if you have a smallish subset, you might want to consider busybox with the relevant tools.
Sep
10
comment Doing two things with output from a command
@dubiousjim That semicolon is correct - the pipe works, but the semi colon better expresses what is intended.
Nov
6
comment Why do newlines mess up my while condition?
You could probably get the multiline style you want using a subshell - start with an opening paren on the first line and end it before the do. You should also be able to use a bash function here too.
Oct
25
comment How can I get bash to exit on backtick failure in a similar way to pipefail?
Thanks for this. An experience I had was that some errors caught in a later version of bash, were ignored in earlier versions with set -e. My intent here is to harden scripts to the extent that any non-handled error return/failure condition will cause a script to exit. This is in a legacy system which has been known to produce garbage output files and a "0" happy exit code after a half an hour of chaos with the wrong env - unless you were watching output like a hawk (and not all of the errors are on stderr, some are on stdout, and some parts are /dev/null'd), you just don't know.
Oct
21
comment How can I get bash to exit on backtick failure in a similar way to pipefail?
Not sure about the read trick, attempting it lead to the variable not being bound. I think this may be because the other side of the pipe is effectively a subshell, name won't be available.