title: Option "user" work for mount, not for umount

text: I am experimenting mounting options for a program I am writing. I am running Linux Mageia 2. I added the following line to `/etc/fstab`               /dev/sr0 /mem  auto user,noauto, 0 0      and I removed all other entries regarding `/dev/sr0` which is the device for my DVD drive. Then, acting as normal user, I can successfully               $ mount /dev/sr0      but I then get an error message ("Only root can ...") for               $ umount /dev/sr0      Of course, the device is not busy : I do nothing between mount and umount. **Added after solving** : _If you are interested only in solving that problem, you can skip the rest of the question, and go directly to the accepted answer. The rest of the question is about my work to find a solution or better document the problem. However, there is a_ post-mortem _section at the very end of the question that complements the answer with my own remarks._ Ownership of files :               $ ls -ld /mem /dev/sr0     brw-rw----+  1 root cdrom 11, 0 mai   14 01:01 /dev/sr0     drwxr-xr-x  12 root root   4096 janv. 21 22:34 /mem/      And I am a member of the group "cdrom" I have the very same problem when mounting a file system image with a loop device. However, everything works fine when I replace "user" with the option "users", which seems to indicate that the system is confused when remembering who mounted the file system. The first reply by Rahul Patil does not bring further insight since it is essentially equivalent to what I used, if my understanding of the umounting procedure is correct. However it lead me to think further about this process (hence one upvote) and to get more details. This was even more supported by the comment of Hauke Laging. As I understand it, summarily, the umount command takes its argument (a device or a mount point) and tries to identify applicable entries in `/etc/mtab` and then checks with `/etc/fstab` whether it can execute the request. According to the man page for mount(8), _the name of the mounting user_ [should be] _written to mtab so that he can unmount the filesystem again._ When I check `/etc/mtab` after mounting, there is no such information written that I can find. I do not know how it is supposed to be stored and what it should look like. Hence the probleme is really with `mount` rather than with `umount`. To be absolutely sure that the problem is not that another `/etc/fstab` entry is used for mounting (which would explain ignorance of the "user"option), I deleted all other entries in `/etc/fstab`, keeping only the single line at the beginning of my question. Then I repeated the mount-umount sequence, unfortunately with the same result.               $ grep sr0 /etc/mtab     /dev/sr0 /mem udf ro,nosuid,nodev,noexec,relatime,utf8 0 0          $ mount | grep sr0     /dev/sr0 on /mem type udf (ro,nosuid,nodev,noexec,relatime,utf8)      Hauke Laging asked for `ls -l /etc/mtab`, which I thought was an error and that he was really asking for `cat /etc/mtab`. But I did it anyway ...               $ ls -l /etc/mtab     lrwxrwxrwx 1 root root 12 juin  25  2012 /etc/mtab -> /proc/mounts     $ ls -l /proc/mounts     lrwxrwxrwx 1 root root 11 mai   19 13:21 /proc/mounts -> self/mounts     $ ls -l /proc/self/mounts     -r--r--r-- 1 myself mygroup 0 mai   19 13:22 /proc/self/mounts      This last information surprised me. Though I am essentially the only user on that computer, I see no reason why this file should belong to me, or to any other user than root itself. Many thanks Hauke, but why did you ask that question ? Actually the file does not belong to me. I guess it must be a virtual file. I repeated the request as user "friend", and then as "root":               $ ls -l /proc/self/mounts     -r--r--r-- 1 friend users 0 mai   19 14:10 /proc/self/mounts          # ls -l /proc/self/mounts     -r--r--r-- 1 root root 0 mai   19 14:10 /proc/self/mounts      I would welcome any suggestion as to what the problem might be, or for experiments to attempt. Thanks **Post-mortem** : here are some final remarks after the problem was solved by Hauke Laging. I followed on the web the lead of Hauke's explanation. Apparently this is an old issue. It is explained in an old document from october 2000, mentionning some problems with other options, but not `user`. Hopefully some of the kernel reliability issues are now corrected. The issue is briefly mentionned in the bug section of the `mount` man page but not in enough detail, especially regarding alternative setups and effect on options. However, lost in that very long man page is the following information:               When the proc filesystem is mounted (say at /proc), the files     /etc/mtab and /proc/mounts have very similar contents. **The     former has somewhat more information, such as the mount options     used**, but is not necessarily up-to-date (cf. the -n option     below). It is possible to replace /etc/mtab by a symbolic link to     /proc/mounts, and especially when you have very large numbers of     mounts things will be much faster with that symlink, but **some     information is lost that way, and in particular using the "user"     option will fail**.      It would certainly have been useful to have a hint about this where the option `user` is described, which is the first place I looked.


title: How to mount multiple partitions

text: Is there a way to mount multiple partitions, or even all partitions, of a disk with a single command in Linux? Is there, perhaps, an option that the `mount` command accepts that would facilitate this? I'm running Fedora 18; if I try `mount /dev/sda* /media/sda*` the operation fails. Alternatively, can you suggest a script that I could put together for all my future uses? I've come across some potentially useful posts that mention writing udev- rules; I'm not sure if that would be useful, though, since (as far as I know) the partitions on my main HDD already have those set up - which is evident by looking at the sidebar-list of accessible drives/partitions within my file manager. To clarify, I'm simply trying to do something like '/dev/{sda1,sda2,...}', where each one of those would be mounted to their own directory with the same name.


title: What does longterm mean on kernel.org?

text: It's fairly easy to understand EOL, mainline and stable kernel, but I'm not sure about `longterm` here, ![enter image description here](http://i.stack.imgur.com/BjWAh.png) What does it mean, or how does it differ from stable kernel?


title: Total amount of memory usage by a single process

text: I want to get a full added amount of memory usage for a particular process. Foe example, say I want to have the total amount of memory taken by **httpd**. So if I do a tail command as `tail -M`, I get:                 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                10036 mysql     20   0  417m  76m 3820 S  0.3 15.5   0:13.55 mysqld                                                                                10453 apache    20   0  229m  67m  42m S  0.0 13.7   0:10.81 httpd                                                                                10447 apache    20   0  230m  64m  38m S  0.0 13.0   0:11.54 httpd                                                                                10479 apache    20   0  226m  64m  42m S  0.0 13.0   0:09.75 httpd                                                                                10478 apache    20   0  230m  63m  38m S  0.0 12.9   0:11.02 httpd                                                                                10451 apache    20   0  230m  63m  37m S  0.0 12.8   0:10.37 httpd                                                                                9599 apache    20   0  227m  61m  38m S  0.0 12.4   0:10.80 httpd                                                                                10454 apache    20   0  226m  60m  38m S  0.0 12.2   0:09.56 httpd                                                                                10476 apache    20   0  225m  58m  38m S  0.0 11.9   0:09.87 httpd                                                                                10332 apache    20   0  228m  50m  24m S  0.0 10.2   0:13.73 httpd                                                                                10445 apache    20   0  220m  42m  24m S  0.0  8.5   0:10.17 httpd                                                                                637 root      10 -10 32816  25m 1712 S  0.0  5.2   0:00.01 iscsiuio                                                                                652 root      10 -10  5128 2972 1876 S  0.0  0.6   0:05.86 iscsid                                                                                9592 root      20   0  207m 2872  900 S  0.0  0.6   0:00.39 httpd                                                                                10196 nobody    20   0  136m 2408  500 S  0.0  0.5   0:00.79 memcached                    In this case I want to have the "VIRT", "RES", "SHR", "%CUP", & "%MEM" totally as added for each rows of the output. Is there anyway I can do that?


title: Array in unix Bourne Shell

text: I am trying to implement array in Bourne shell (/bin/sh). I found that way to initialize array elements is:               arr=(1 2 3)      But it is encountering an error:               syntax error at line 8: `arr=' unexpected      Now the post where I found this syntax says it is for bash shell, but I could not find any separate syntax for Bourne shell. Does the syntax stands the same for `/bin/sh` as well?


title: GLX extension not working properly with xvfb

text: I have an Ubuntu 14.04 system with the following packages installed:               libegl1-mesa:amd64     libegl1-mesa-drivers:amd64     libgl1-mesa-dri:amd64     libgl1-mesa-dri:i386     libgl1-mesa-glx:amd64     libgl1-mesa-glx:i386     libglapi-mesa:amd64     libglapi-mesa:i386     libgles2-mesa:amd64     libglu1-mesa:amd64     libopenvg1-mesa:amd64     libwayland-egl1-mesa:amd64     mesa-utils     xvfb      I want to start an application under xvfb. I first start xvfb with:               $ Xvfb :1 -screen 0 1024x768x24 +extension GLX +render -noreset >> xsession.log 2>&1 &      and then check the xvfb log file:               Initializing built-in extension Generic Event Extension     Initializing built-in extension SHAPE     Initializing built-in extension MIT-SHM     Initializing built-in extension XInputExtension     Initializing built-in extension XTEST     Initializing built-in extension BIG-REQUESTS     Initializing built-in extension SYNC     Initializing built-in extension XKEYBOARD     Initializing built-in extension XC-MISC     Initializing built-in extension SECURITY     Initializing built-in extension XINERAMA     Initializing built-in extension XFIXES     Initializing built-in extension RENDER     Initializing built-in extension RANDR     Initializing built-in extension COMPOSITE     Initializing built-in extension DAMAGE     Initializing built-in extension MIT-SCREEN-SAVER     Initializing built-in extension DOUBLE-BUFFER     Initializing built-in extension RECORD     Initializing built-in extension DPMS     Initializing built-in extension Present     Initializing built-in extension DRI3     Initializing built-in extension X-Resource     Initializing built-in extension XVideo     Initializing built-in extension XVideo-MotionCompensation     Initializing built-in extension SELinux     Initializing built-in extension GLX      which shows no errors. Also, it seems that GLX has been loaded properly. Now, if I check the server with               $ glxinfo -display :1      I get               name of display: :1     Xlib:  extension "GLX" missing on display ":1".     ...     Error: couldn't find RGB GLX visual or fbconfig     Xlib:  extension "GLX" missing on display ":1".     ...     Error: couldn't find RGB GLX visual or fbconfig          Xlib:  extension "GLX" missing on display ":1".     ...      In fact, the application that I want to start on this server and that needs GLX won't start. After checking several documentation pages and forums, I have no clue as to what is going wrong here. Why does the X server log file not show any errors if the GLX extension was not loaded correctly? Is there something I should check?


title: How to create an environment for libraries and binaries?

text: I have a tool that cannot be run under my Desktop Linux. So I'd like to make a folder that contains all its requirements, and run it in the folder. Virtual machine or container is not a solution here for some reason. I've bootstrapped an Ubuntu Trusty in `/data/LTS`, and have everything the tool needs installed by running a chroot jail in `/data/LTS`. Now I issue:               PATH=/data/LTS/usr/local/sbin:/data/LTS/usr/local/bin:/data/LTS/usr/sbin:/data/LTS/usr/bin:/data/LTS/sbin:/data/LTS/bin \     LD_LIBRARY_PATH=/data/LTS/usr/local/lib:/data/LTS/usr/lib/x86_64-linux-gnu:/data/LTS/usr/lib:/data/LTS/lib/x86_64-linux-gnu:/data/LTS/lib \     PYTHONHOME=/data/LTS/usr \     /data/LTS/usr/bin/python /tmp/test.py      I get: > Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion > `map->l_init_called' failed! What should I do?


title: tail -f but suck in content of the file first (aka `cat -f`)

text: I need to display whole file before tracking it for a new changes, not only the last 10 lines (yep, I know it's not _tail_ conceptually). In other words, something like `cat -f` would do, if it would ever existed. Tail's man doesn't give me any ideas. The only option I see right now is to somehow combine _cat all but last 10 lines_ and _tail -f_ output. Any hints, please?


title: screenrc: find out the keys bound by bindkey

text: The bindkey keyword in .screenrc is preceded by some cryptic keys that correspond to some keybouard binding. How can I figure out what these are? Google and GNU Screen Documentation did not show the results I was looking for.   For example, how would you found the bindings below without someone specifically telling you what the binding is?   `bindkey "^[[1;5I" next`   `bindkey "^[[1;6I" prev`


title: Installing qemu-img on ubuntu 11.04

text: I am developing a linux kernel and I am trying to to debug it in QEMU. I want to be able to run it in QEMU but it stops because I do not have a virtual hard drive to boot it(using the -hda command). I read in another question that a virtual hard drive could be created with qemu-img but I could not download it by doing `sudo apt-get install qemu-img` or `sudo apt-get qemu-img` I also read that qemu-img could be accessed from qemu-utils but i was unable to download that also. How can I download qemu-img on my ubuntu laptop?


title: How to use a variable instead of a file to output this wc command

text: I want to read a file from a given offset until the end of that file. I need to retrieve the number of bytes that were read during the process and also to redirect the output of the file elsewhere. Here is my script:               ...some stuff here...     dd if=$file bs=1 skip=$skippedBytes | tee >(wc --bytes > $file.count) >(cat - >> $file.output) | $($exportCommandString $file)     byteCount=$(cat $file.count)     rm $file.count     echo "Number of read bytes: $byteCount"      I would like the "wc --bytes" part to put its returned value inside a variable so I can use it after, without using a file ($file.count). Something like:               dd if=$file bs=1 skip=$skippedBytes | tee >(byteCount=$(wc --bytes)) >(cat - >> $file.output) | $($exportCommandString $file)     echo "Number of read bytes: $byteCount"      Except that doing this, my script hangs and does not work. Is it possible to do this and how ?


title: disable YUM mirrorlist checking

text: I have a machine which is not connected to the internet. I still want to execute some `yum` commands from time to time. YUM does like to update the mirrorlist every so often, resulting in errors like: > Could not retrieve mirrorlist > http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was' from > yum-dump.py! Please check your yum configuration. Is there a parameter in `yum.conf` or elsewhere to make yum stop updating the mirrorlist?


title: Why ``gvfsd-metadata`` process is hogging 100% of a single core for a long time

text: Today `gvfsd-metadata` process was running for a whole day hogging 100% of a single core of my CPU. Is there any reason for it to do it?


How do I stop emacs from colouring the text of the file I am editing? I want everything just in plain white. I know that I can load themes, but it's not obvious which theme does what. Can I just disable all the colouring so that when I start emacs up, all the text is always white?


title: Print the string between two parentheses

text: I have file with these lines               G8 = P(G1,G3)     G9 = P(G3,G4)     G12 = P(G2,G9)     G15 = P(G9,G5)     G16 = P(G8,G12)     G17 = P(G12,G15)      I need the output as               G1,G3     G3,G4     .....      How can I do it with sed/grep command or using perl?


title: After fork(), where does the child begin its execution?

text: I'm trying to learn UNIX programming and came across a question regarding fork(). I understand that fork() creates an identical process of the currently running process, but where does it start? For example, if I have code               int main (int argc, char **argv)     {         int retval;         printf ("This is most definitely the parent process\n");         fflush (stdout);         retval = fork ();         printf ("Which process printed this?\n");              return (EXIT_SUCCESS);     }      The output is: > This is most definitely the parent process   >  Which process printed this?   >  Which process printed this? I thought that `fork()` creates a same process, so I initially that that in that program, the `fork()` call would be recursively called forever. I guess that new process created from `fork()` starts after the `fork()` call? If I add the following code, to differentiate between a parent and child process,               if (child_pid = fork ()) printf ("This is the parent, child pid is %d\n", child_pid);     else printf ("This is the child, pid is %d\n",getpid ());      after the fork() call, where does the child process begin its execution?


title: How to convert a PDF file to a DVD movie?

text: Each page would be navigable with the player's 'next' button. The result should have a directory called VIDEO_TS, to ensure it will play in old players.


title: X keyboard layout unable to toggle

text: I don't understand why `alt_shift_toggle` is not triggers keyboard layout switch This is what I have `localectl status`               System Locale: LANG=en_US.UTF-8         VC Keymap: us        X11 Layout: us,ru         X11 Model: grp:alt_shift_toggle      After pressing `Alt`+`Shift` nothing changes.


title: .bash_profile alias escape quotes?

text: On the rare occasion I use the command line, I usually forget syntax. This is one of those times. I want to add a simple alias to my .bash_profile but no matter what quote method I use, I get an error. I want to add this to my profile `alias htdoc=cd /Applications/MAMP/htdocs/`. Despite what quotes I use, I get this error               -bash: alias: /Applications/MAMP/htdocs/‘: not found          -bash: alias: ‘/Applications/MAMP/htdocs/‘“: not found          -bash: alias: ‘/Applications/MAMP/htdocs/‘: not found          -bash: alias: “/Applications/MAMP/htdocs/“: not found          -bash: alias: “/Applications/MAMP/htdocs/“‘: not found      I'm sure this is a total noob mistake and I did try many of the suggestions I found in other posts. Just haven't been able to nail this one down.


title: Output redirect complexities

text: I'm trying to have a script exit with an error in the event it can't reach an X server:               xset -q &> /dev/null || { echo "The Display Server is BROKEN.  Aborting."; exit 1; }      However, I'm getting the output of `xset -q` spat out to the console. I'm not quite sure why. My understanding of `&>` was that it redirected all output. Can somebody assist?


title: operation in /dev/shm causes overflow

text: I am repeating tens of thousands of similar operations in /dev/shm, each with a directory created, files written, and then removed. My assumption used to be that I was actually creating directories and removing them in place, so the memory consumption had to be quite low. However it turned out the usage was rather high, and finally caused memory overflow. So my questions is: with operations like               mkdir /dev/shm/foo     touch /dev/shm/foo/bar     [edit] /dev/shm/foo/bar     ....     rm -rf /dev/shm/foo      Will it finally cause memory overflow? and if it does, why is that, since it seems to be removing them in-place. **Note:** this is a tens of thousands similar operation.


title: What does exec $SHELL -l do?

text: I have seen this command in a few different shell scripts:               exec $SHELL -l      ...usually as an alternative to:               source ~/.profile      What exactly is `exec $SHELL -l` doing?


title: How to Install Oracle 11gR2 on Ubuntu Server 13.04

text: I want to install Oracle 11gR2 for Linux on Ubuntu Server 13.04. I have downloaded Oracle 11gR2 for Linux, and when I execute use runinstaller it require GUI supported files. While Google I got things related rpm packages. Help me to install it.


title: Noninteractive script running over ssh is interrupted as apt-get finishes

text: When I run the following non interactive script on Ubuntu Server 13.04 it's interrupted when **lxc-docker** package finishes installation. Script :               ssh -o StrictHostKeychecking=no -t -t -i $CERT $USER@$SERVER <<'ENDSSH'          sudo DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common     sudo DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:dotcloud/lxc-docker     sudo DEBIAN_FRONTEND=noninteractive apt-get -y update     sudo DEBIAN_FRONTEND=noninteractive apt-get -y install lxc-docker          echo "some other actions here..."          exit #SSH session          ENDSSH     exit      Everything seems to be fine but then the script is interrupted after this line in the output :               Processing triggers for ureadahead ...      **1) Why is this happenning? How can I prevent that?** **2) If not, how I can detect that ssh session has finished unsucessfully?** Last lines from installation (shortened) :               Reading package lists... Done     Building dependency tree            Reading state information... Done     The following extra packages will be installed:       bridge-utils bsdtar cgroup-lite debootstrap dnsmasq-base libapparmor1       libarchive13 libcap2-bin liblxc0 liblzo2-2 libnetfilter-conntrack3       libnettle4 libpam-cap libseccomp1 lxc lxc-templates python3-lxc     Suggested packages:       bsdcpio lrzip libcap-dev btrfs-tools lvm2 lxctl qemu-user-static     The following NEW packages will be installed:       bridge-utils bsdtar cgroup-lite debootstrap dnsmasq-base libapparmor1       libarchive13 libcap2-bin liblxc0 liblzo2-2 libnetfilter-conntrack3       libnettle4 libpam-cap libseccomp1 lxc lxc-docker lxc-templates python3-lxc     0 upgraded, 18 newly installed, 0 to remove and 29 not upgraded.     Need to get 2,495 kB of archives.     After this operation, 8,742 kB of additional disk space will be used.     Get:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ raring/main liblzo2-2 amd64 2.06-1build1 [53.2 kB]     Get:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ raring/main libnettle4 amd64 2.4-3 [94.7 kB]     .     .     .     .     .     .     Setting up libnetfilter-conntrack3:amd64 (1.0.1-1) ...     Setting up dnsmasq-base (2.65-1ubuntu1) ...     Setting up python3-lxc (0.9.0-0ubuntu3.2) ...     Setting up lxc (0.9.0-0ubuntu3.2) ...     lxc start/running     Setting up lxc dnsmasq configuration.     Setting up bsdtar (3.1.2-5ubuntu1) ...     Setting up libcap2-bin (1:2.22-1.2ubuntu2) ...     Setting up libpam-cap:amd64 (1:2.22-1.2ubuntu2) ...     Setting up cgroup-lite (1.8) ...     cgroup-lite start/running     Setting up debootstrap (1.0.46ubuntu1) ...     Processing triggers for ureadahead ...     Setting up lxc-docker (0.4.0-1) ...     docker start/running, process 2444     Setting up lxc-templates (0.9.0-0ubuntu3.2) ...     Processing triggers for libc-bin ...     ldconfig deferred processing now taking place     Processing triggers for ureadahead ...


title: variable declaration does not work

text: I have the below script in my system:               #!/bin/sh          LASTFILES=`find /var/log -mtime -1 -iname *.csv`          KEYWORDS="MD AG GA"          countMD="0"     countAG="0"     countGA="0"          for i in $LASTFILES ; do         for a in $KEYWORDS ; do             count_$a=`grep -a $date $i | grep -i "\"$a\"" | grep smsMoBilling | wc -l`             count$a=`expr $count$a + $count_$a`              done     done      It doesn't work when I run it.               ./test.sh: line 35: count_MD=37: command not found     expr: non-numeric argument     ./test.sh: line 36: countMD=: command not found      What is the matter with the variable declared? Could you help me?


title: Is there a way to condense ../.. parts of a path out programatically?

text: Say for example I have these types of paths to files in a script:               /path/to/some/file/../../file1.txt      Is there a command I can call such as `readlink` that will convert this path to its actual physical form:               /path/to/file1.txt


title: SELinux - allowing rsyslog open/read access to some files

text: So I've got three files I need rsyslog to open in order to forward the entries to another server. SELinux is preventing this with the following error:               type=AVC msg=audit(1371186588.768:1324460): avc:  denied  { open } for  pid=3714     comm="rsyslogd" name="named.debug.log" dev=dm-0 ino=1180551 scontext=unconfined_u:system_r:syslogd_t:s0 tcontext=unconfined_u:object_r:named_cache_t:s0 tclass=file     type=SYSCALL msg=audit(1371186588.768:1324460): arch=c000003e syscall=2 success=no exit=-13 a0=7fb254001b30 a1=80100 a2=180 a3=2e67756265642e64 items=0 ppid=1 pid=3714 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7926 comm="rsyslogd" exe="/sbin/rsyslogd" subj=unconfined_u:system_r:syslogd_t:s0 key=(null)      Running this through audit2allow, I get the following:               module rsysloglocal 1.0;          require {             type named_cache_t;             type syslogd_t;             class file { read write };     }          #============= syslogd_t ==============     allow syslogd_t named_cache_t:file { read write };      Unfortunately, this doesn't work. I'm still getting the message above from SELinux. The files I need to watch with rsyslog are in /var/named/data/log/, which is why SELinux is referencing the named_cache_t thing (I think). Any thoughts? Edit: semodule -l output:               abrt    1.2.0     accountsd       1.0.0     ada     1.4.0     afs     1.5.3     aiccu   1.0.0     aide    1.5.0     aisexec 1.0.0     amanda  1.12.0     amavis  1.10.3     amtu    1.2.0     apache  2.1.2     apcupsd 1.6.1     arpwatch        1.8.1     asterisk        1.7.1     audioentropy    1.6.0     automount       1.12.1     avahi   1.11.2     awstats 1.2.0     bind    1.10.2     bitlbee 1.2.1     bluetooth       3.2.2     boinc   1.0.0     bugzilla        1.0     cachefilesd     1.0.17     calamaris       1.5.1     canna   1.10.0     ccs     1.4.1     cdrecord        2.2.1     certmaster      1.0.2     certmonger      1.0.0     certwatch       1.5.0     cfengine        1.0.0     cgroup  1.0.0     chrome  1.0.0     chronyd 1.0.1     cipe    1.5.0     clamav  1.7.1     clogd   1.0.0     cloudform       1.0     cmirrord        1.0.0     cobbler 1.1.0     comsat  1.7.0     condor  1.0.0     consolekit      1.5.1     corosync        1.0.0     courier 1.8.1     cpufreqselector 1.1.0     ctdbd   1.0.0     cups    1.13.0     cvs     1.8.0     cyphesis        1.2.0     cyrus   1.9.1     daemontools     1.2.0     dbskk   1.5.0     dcc     1.8.2     denyhosts       1.0.0     devicekit       1.0.0     dhcp    1.8.1     dictd   1.7.0     dirsrv-admin    1.0.0     dirsrv  1.0.0     dnsmasq 1.8.1     dovecot 1.11.1     drbd    1.0.0     ethereal        2.0.0     execmem 1.0.0     exim    1.4.2     fail2ban        1.3.2     fcoemon 1.0.0     fetchmail       1.9.2     finger  1.9.0     firewallgui     1.0.0     fprintd 1.0.1     ftp     1.11.0     games   2.1.0     git     1.0.3     gitosis 1.0.1     glance  1.0.0     gnome   2.0.0     gnomeclock      1.0.0     gpg     2.2.1     gpm     1.7.1     gpsd    1.0.2     guest   1.0.1     hal     1.12.1     hddtemp 1.0.0     howl    1.8.1     icecast 1.0.0     inn     1.9.0     ipsec   1.10.2     irc     2.1.0     iscsi   1.6.2     jabber  1.8.0     java    2.2.1     kdump   1.0.1     kdumpgui        1.0.0     kerberos        1.10.2     kerneloops      1.3.1     keystone        1.0.0     kismet  1.4.2     ksmtuned        1.0.0     ktalk   1.7.1     ldap    1.10.0     likewise        1.0.0     lircd   1.0.1     livecd  1.0.0     lldpad  1.0.0     lockdev 1.3.0     logadm  1.0.0     lpd     1.12.0     mailman 1.7.2     matahari        1.0.0     mediawiki       1.0.0     memcached       1.1.2     milter  1.1.1     modemmanager    1.0.1     mono    1.6.1     mozilla 2.1.1     mpd     1.0.0     mplayer 2.1.0     mrtg    1.8.0     munin   1.7.0     mysql   1.11.3     nagios  1.8.0     namespace       1.0.0     ncftool 1.0.0     netlabel        1.3.0     nis     1.10.0     nova    1.0.0     nslcd   1.0.1     nsplugin        1.0.0     ntop    1.8.1     ntp     1.9.1     nut     1.0.1     nx      1.4.0     oddjob  1.7.0     openct  1.4.0     openoffice      1.0.0     openvpn 1.9.1     pads    1.0.0     passenger       1.0.0     pcscd   1.5.2     pegasus 1.8.0     permissivedomains       1.0.0     pingd   1.0.0     piranha 1.0.0     plymouthd       1.0.0     podsleuth       1.2.1     policykit       1.1.0     portmap 1.9.0     portreserve     1.1.1     postfix 1.11.0     postgresql      1.12.1     postgrey        1.7.0     ppp     1.11.2     prelude 1.1.2     privoxy 1.9.1     procmail        1.11.0     psad    1.0.0     ptchown 1.0.1     publicfile      1.1.0     pulseaudio      1.1.2     puppet  1.0.0     pyzor   2.1.0     qemu    1.3.2     qmail   1.5.0     qpidd   1.0.0     quantum 1.0.0     radius  1.11.0     radvd   1.11.2     razor   2.1.0     rdisc   1.7.1     remotelogin     1.7.0     rgmanager       1.0.0     rhcs    1.1.0     rhev    1.0     rhgb    1.9.0     rhsmcertd       1.0.0     ricci   1.6.0     rlogin  1.9.0     roundup 1.7.0     rpcbind 1.4.1     rshd    1.7.0     rssh    2.0.0     rsync   1.9.1     rsysloglocal    1.0     rtkit   1.0.1     rwho    1.6.0     samba   1.12.0     sambagui        1.0.0     sandbox 1.0.0     sanlock 1.0.0     sasl    1.12.1     sblim   1.0.0     screen  2.2.2     sectoolm        1.0.0     seunshare       1.1.0     sge     1.0.0     shutdown        1.0.0     slocate 1.9.0     smartmon        1.9.1     smokeping       1.0.0     smoltclient     1.0.0     snmp    1.10.2     snort   1.8.1     sosreport       1.0.0     soundserver     1.8.0     spamassassin    2.2.0     squid   1.9.0     sssd    1.0.2     staff   2.0.1     stunnel 1.9.0     sysadm_secadm   1.0.0     sysstat 1.5.1     tcpd    1.4.0     telepathy       1.0.0     telnet  1.9.1     tftp    1.12.0     tgtd    1.0.1     tmpreaper       1.4.0     tor     1.6.1     tuned   1.0.1     tvtime  2.0.0     ulogd   1.1.0     uml     2.1.0     unconfined      3.1.1     unconfineduser  1.0.0     unlabelednet    1.0     unprivuser      2.0.1     usbmodules      1.2.0     usbmuxd 1.0.0     userhelper      1.5.0     usernetctl      1.5.0     uucp    1.10.2     uuidd   1.0.0     varnishd        1.1.0     vdagent 1.0.0     vhostmd 1.0.0     virt    1.4.0     vmware  2.2.0     vpn     1.12.0     w3c     1.0.0     wdmd    1.0.0     webadm  1.1.0     webalizer       1.10.0     wine    1.6.1     xen     1.9.2     xfs     1.6.0     xguest  1.0.1     zabbix  1.2.0     zarafa  1.0.0     zebra   1.10.1     zosremote       1.1.0      Edit 2: I've also tried this using only read permissions (allow syslogd_t named_cache_t:file read;) rather than read / write. No dice.


title: Cannot succesfully run apt-get -f install

text: I am working on a Ubuntu `Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-43-generic x86_64)` machine. There are some packages that I need to install, and in order to be able to that, first I have to run `apt-get -f install`. But this is what I get when I run `apt-get -f install`:               root@SERVERLINUX:/boot# apt-get -f install     Reading package lists... Done     Building dependency tree            Reading state information... Done     Correcting dependencies... Done     The following packages were automatically installed and are no longer required:       firefox-globalmenu python2.6-minimal linux-headers-3.5.0-39-generic linux-headers-3.5.0-34 linux-headers-3.5.0-37       linux-headers-3.5.0-39 thunderbird-globalmenu linux-headers-3.5.0-34-generic linux-headers-3.5.0-37-generic     Use 'apt-get autoremove' to remove them.     The following extra packages will be installed:       linux-image-generic-lts-quantal     The following packages will be upgraded:       linux-image-generic-lts-quantal     1 upgraded, 0 newly installed, 0 to remove and 440 not upgraded.     2 not fully installed or removed.     Need to get 0 B/2.442 B of archives.     After this operation, 0 B of additional disk space will be used.     Do you want to continue [Y/n]? Y     dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:      linux-image-generic-lts-quantal depends on linux-image-3.5.0-44-generic; however:       Package linux-image-3.5.0-44-generic is not installed.     dpkg: error processing linux-image-generic-lts-quantal (--configure):      dependency problems - leaving unconfigured     dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:      linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:       Package linux-image-generic-lts-quantal is not configured yet.     No apport report written because the error message indicates its a followup error from a previous failure.                                                                                No apport report written because the error message indicates its a followup error from a previous failure.                                                                                dpkg: error processing linux-generic-lts-quantal (--configure):      dependency problems - leaving unconfigured     Errors were encountered while processing:      linux-image-generic-lts-quantal      linux-generic-lts-quantal     E: Sub-process /usr/bin/dpkg returned an error code (1)      What's going on? How can I manage to run `apt-get -f install` succesfully? How can I solve those dependency errors? EDIT: This is what I get when I run `dpkg --configure -a`, as suggested by Mohsen Pahlevanzadeh:               root@SERVERLINUX:/boot# dpkg --configure -a     dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:      linux-image-generic-lts-quantal depends on linux-image-3.5.0-44-generic; however:       Package linux-image-3.5.0-44-generic is not installed.     dpkg: error processing linux-image-generic-lts-quantal (--configure):      dependency problems - leaving unconfigured     dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:      linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:       Package linux-image-generic-lts-quantal is not configured yet.     dpkg: error processing linux-generic-lts-quantal (--configure):      dependency problems - leaving unconfigured     Errors were encountered while processing:      linux-image-generic-lts-quantal      linux-generic-lts-quantal      **SOLUTION** : As suggested by Faheem Mitha, I run `apt-get install linux- image-3.5.0-44-generic` and it worked perfectly. Actually it has solved my problem


title: What is your favourite shell script GUI/CLI editor and why?

text: I'm using vim for editing bash scripts currently, but i really need to set it up and/or install plugins. Plugin suggestions welcome. Either way i'd like to see which editors/IDEs are there for this job.


title: YouCompleteMe not working after default install

text: I was trying to install `YouCompleteMe` with `Vundle` and it installed fine (it downloaded the `git` repository I pointed it to). I went into the folder and ran install.sh with the clang semantics and everything seems to work fine except for that I get this error every time I start `Vim` and it attempts to start the `YCM` plugin: > Error detected while processing VimEnter Auto commands for "*": E117: > Unknown function: youcompleteme#Enable In addition to this (if it's helpful) the Helptags section in `PluginInstall` has always thrown an error but it's never affected the execution of the plugins before. The result of `run_tests.sh`:               /tmp/ycm_build.tYz9by ~/.vim/bundle/YouCompleteMe     -- The C compiler identification is GNU 4.8.2     -- The CXX compiler identification is GNU 4.8.2     -- Check for working C compiler: /usr/bin/cc     -- Check for working C compiler: /usr/bin/cc -- works     -- Detecting C compiler ABI info     -- Detecting C compiler ABI info - done     -- Check for working CXX compiler: /usr/bin/c++     -- Check for working CXX compiler: /usr/bin/c++ -- works     -- Detecting CXX compiler ABI info     -- Detecting CXX compiler ABI info - done     Your C++ compiler supports C++11, compiling in that mode.     -- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython2.7.so (found suitable version "2.7.6", minimum required is "2.6")      NOT using libclang, no semantic completion for C/C++/ObjC will be available     -- Found PythonInterp: /usr/bin/python (found version "2.7.6")      -- Looking for include file pthread.h     -- Looking for include file pthread.h - found     -- Looking for pthread_create     -- Looking for pthread_create - not found     -- Looking for pthread_create in pthreads     -- Looking for pthread_create in pthreads - not found     -- Looking for pthread_create in pthread     -- Looking for pthread_create in pthread - found     -- Found Threads: TRUE       -- Configuring done     -- Generating done     -- Build files have been written to: /tmp/ycm_build.tYz9by     Scanning dependencies of target BoostParts     [  0%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/posix_time/posix_time_types.cpp.o     [  1%] [  1%] [  2%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/gregorian_types.cpp.o     Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/date_generators.cpp.o     Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/greg_month.cpp.o     [  3%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/greg_weekday.cpp.o     [  4%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/tuple.cpp.o     [  4%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/numeric.cpp.o     [  5%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/errors.cpp.o     [  6%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/dict.cpp.o     [  6%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/str.cpp.o     [  7%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object_protocol.cpp.o     [  9%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/long.cpp.o     [  9%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object_operators.cpp.o     [ 10%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/slice.cpp.o     [ 11%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/list.cpp.o     [ 11%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/exec.cpp.o     [ 12%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/import.cpp.o     [ 13%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/type_id.cpp.o     [ 13%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/registry.cpp.o     [ 14%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/from_python.cpp.o     [ 15%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o     [ 15%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/builtin_converters.cpp.o     [ 17%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/function_doc_signature.cpp.o     [ 18%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/stl_iterator.cpp.o     [ 19%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/function.cpp.o     [ 19%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/inheritance.cpp.o     [ 20%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/class.cpp.o     [ 21%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/pickle_support.cpp.o     [ 21%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/enum.cpp.o     [ 22%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/life_support.cpp.o     [ 23%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/iterator.cpp.o     [ 23%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/module.cpp.o     [ 25%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/wrapper.cpp.o     [ 26%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/smart_ptr/src/sp_collector.cpp.o     [ 26%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/smart_ptr/src/sp_debug_hooks.cpp.o     [ 27%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/exception/src/clone_current_exception_non_intrusive.cpp.o     [ 28%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_xml_archive.cpp.o     [ 28%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_serializer_map.cpp.o     [ 29%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/utf8_codecvt_facet.cpp.o     [ 30%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/void_cast.cpp.o     [ 30%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_grammar.cpp.o     [ 31%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_pointer_oserializer.cpp.o     [ 32%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/extended_type_info.cpp.o     [ 32%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/binary_wiarchive.cpp.o     [ 34%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_archive.cpp.o     [ 35%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_text_wiprimitive.cpp.o     [ 35%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/text_iarchive.cpp.o     [ 36%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/text_oarchive.cpp.o     [ 37%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_pointer_iserializer.cpp.o     [ 38%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_iarchive.cpp.o     [ 38%] [ 39%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_iarchive.cpp.o     Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/archive_exception.cpp.o     [ 40%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_oserializer.cpp.o     [ 40%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_text_iprimitive.cpp.o     [ 42%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/shared_ptr_helper.cpp.o     [ 43%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/extended_type_info_typeid.cpp.o     [ 43%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/codecvt_null.cpp.o     [ 44%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_text_oprimitive.cpp.o     [ 45%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_text_woprimitive.cpp.o     [ 45%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/polymorphic_iarchive.cpp.o     [ 46%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/stl_port.cpp.o     [ 47%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/polymorphic_oarchive.cpp.o     [ 47%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_wiarchive.cpp.o     [ 48%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/extended_type_info_no_rtti.cpp.o     [ 50%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_woarchive.cpp.o     [ 50%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/binary_iarchive.cpp.o     [ 51%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/text_wiarchive.cpp.o     [ 52%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/text_woarchive.cpp.o     [ 52%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/binary_oarchive.cpp.o     [ 53%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_wgrammar.cpp.o     [ 54%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_oarchive.cpp.o     [ 54%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_archive_exception.cpp.o     [ 55%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_oarchive.cpp.o     [ 56%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/binary_woarchive.cpp.o     [ 57%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_iserializer.cpp.o     [ 57%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/atomic/src/lockpool.cpp.o     [ 59%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/system/src/error_code.cpp.o     [ 60%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/utf8_codecvt_facet.cpp.o     [ 60%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path_traits.cpp.o     [ 61%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/portability.cpp.o     [ 62%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/operations.cpp.o     [ 62%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/codecvt_error_category.cpp.o     [ 63%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/unique_path.cpp.o     [ 64%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path.cpp.o     [ 64%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/windows_file_codecvt.cpp.o     [ 65%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex.cpp.o     [ 67%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/wide_posix_api.cpp.o     [ 67%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/posix_api.cpp.o     [ 68%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/c_regex_traits.cpp.o     [ 69%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/w32_regex_traits.cpp.o     [ 69%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/instances.cpp.o     [ 70%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_traits_defaults.cpp.o     [ 71%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_raw_buffer.cpp.o     [ 71%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/icu.cpp.o     [ 72%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cregex.cpp.o     [ 73%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/static_mutex.cpp.o     [ 73%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/usinstances.cpp.o     [ 75%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/wc_regex_traits.cpp.o     [ 76%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_debug.cpp.o     [ 77%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cpp_regex_traits.cpp.o     [ 77%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/winstances.cpp.o     [ 78%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/fileiter.cpp.o     [ 79%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/thread/src/future.cpp.o     [ 79%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/thread/src/pthread/once.cpp.o     [ 80%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/thread/src/pthread/thread.cpp.o     Linking CXX static library libBoostParts.a     [ 80%] Built target BoostParts     Scanning dependencies of target ycm_client_support     Scanning dependencies of target ycm_core     [ 81%] [ 81%] [ 81%] [ 82%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o     Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o     Building CXX object ycm/CMakeFiles/ycm_client_support.dir/Result.cpp.o     Building CXX object ycm/CMakeFiles/ycm_client_support.dir/versioning.cpp.o     [ 84%] [ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o     Building CXX object ycm/CMakeFiles/ycm_client_support.dir/IdentifierUtils.cpp.o     [ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/LetterNode.cpp.o     [ 85%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/LetterNode.cpp.o     [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o     [ 87%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o     [ 87%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CandidateRepository.cpp.o     [ 88%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/IdentifierDatabase.cpp.o     [ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o     [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o     [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/LetterNodeListMap.cpp.o     [ 92%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/IdentifierCompleter.cpp.o     [ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CustomAssert.cpp.o     [ 94%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o     [ 94%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/CandidateRepository.cpp.o     [ 94%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o     [ 95%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/Utils.cpp.o     [ 96%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/ycm_client_support.cpp.o     [ 96%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/LetterNodeListMap.cpp.o     [ 97%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/CustomAssert.cpp.o     [ 98%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/Candidate.cpp.o     [100%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/PythonSupport.cpp.o     Linking CXX shared library /home/josh/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so     [100%] Built target ycm_core     Linking CXX shared library /home/josh/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_client_support.so     [100%] Built target ycm_client_support     Scanning dependencies of target ycm_support_libs     [100%] Built target ycm_support_libs     ~/.vim/bundle/YouCompleteMe     ./run_tests.sh: line 9: flake8: command not found


title: Who does the linewrap and how to deactivate?

text: If I connect to a linux device via serial adapter (no matter if pyserial, screen or minicom), and no matter how I change settings like `stty` when I enter a long command it gets line wrapped (specifically a space and a carriage return is entered). My knowledge in this area is so small that I couldn't even call myself a beginner, but is it possible that the tool which reads lines or the shell interpreter is wrapping the lines? Again, changing `stty`'s size to `60 100` didn't change the point where the line wrap happened at all. Shell information:               root@4020-1-00007:~# echo $SHELL     /bin/sh     root@4020-1-00007:~# ls -al /bin/sh      lrwxrwxrwx    1 root     root             9 Jul 31 18:09 /bin/sh -> /bin/bash     root@4020-1-00007:~# bash --version     GNU bash, version 4.3.0(1)-release (arm-angstrom-linux-gnueabi)     Copyright (C) 2013 Free Software Foundation, Inc.     License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>          This is free software; you are free to change and redistribute it.     There is NO WARRANTY, to the extent permitted by law.      (no idea how I find out which build options were chosen)


title: Filepath: use same filepath on unix and winodws

text: I am working on application which work on both unix and windows environment.   I have mapped my unix drive on windows using samba. On cygwin:                ls -l /remote      /remote -> //samba1      when I try following command:               myExecutable /remote/fileloc/filename.txt       It's working fine in Unix but failing on windows during file opening.   If I give the following command on windows:               myExecutable //samba1/fileloc/filename.txt      It works fine. Is there any way I can access with same path (`/remote/fileloc/filename.txt`) on both unix and windows? I can change only in windows. Unix drive path I can't change.


title: Change value of a strings representing number

text: I have the following expression :               a="2013"      How can I change the value of `a` to `"2012"`.


title: Broken pipe with busybox

text: I have written a script which executes in init-bottom within the initram. So it uses busybox for the commands. I included gzip from my distro to initram (gzip 1.5 went to /bin). This is causing a "broken pipe"-error. I do not understand why:               find . -depth -print0|pax -wv0|/bin/gzip -c -1 ->${somewhere}/archive.pax.gz      I can use the -z option of pax instead of the gzip pipe: The same broken pipe. Using busybox gzip instead of /bin/gzip does the job. But why?


title: grep on a Java Method

text: Lets say I have a java class called DirectAction some of the methods in the class have the word "action" or "Action" What is the grep command to get the names of all the methods who have "Action" or "action" and write it to an external file? Example:               public class DirectAction extends ERXDirectAction {          /**      *       * @param aRequest      */     public DirectAction(WORequest aRequest) {          }          // ============================================================================================     // ACTIONS          /**      * Default Action      *       */     @docDirectAction     public WOActionResults defaultAction() {          }          /**      * @return goes to login page for student      */     @docDirectAction     public WOActionResults studentAction() {         );         return nextPage;     }          /**      * @return goes to Admin login page      */     @docDirectAction     public WOActionResults adminAction() {         return nextPage;     }          /**           * @return calls the AdminAction      */     @docDirectAction     public WOActionResults staffAction() {              return adminAction();     }      } I want to get only the below output.               public class DirectAction extends ERXDirectAction          public DirectAction(WORequest aRequest)          public WOActionResults defaultAction()          public WOActionResults studentAction()          public WOActionResults adminAction()          public WOActionResults staffAction()      NOTE: the only word that is common in all these methods is "Action" or "action" Also please use only grep if possible :)


title: How can I prevent execution of part of /etc/profile in my login shell?

text: Say I have an `/etc/profile`               # good stuff here     # ...          /usr/local/bin/obnoxious_ascii_art      Is there anything I can do to prevent the execution of the last line when I log in? Assume I don't necessarily have root access.


title: XML command line tool postgres

text: I have an XML files to read and load into database daily at night (cron) So i planed to do this in a batch. Is there any command line tool to :   1. Create a postgres schema using an XSD file?   2. Transform an XML file into SQL commands for postgres? Any other solution is welcome.


title: optirun and ssh -X

text: I would like to run a remote OpenGL program through `ssh` tunneled with the `-X` option. My laptop has Optimus so anything using OpenGL has to go through `optirun` (`bumblebee`). This would explain why I can't launch the program (`vmd` in my case, it says `can't open OpenGl GLX`). Is there a way around?


title: JVM memory limit on Linux (Debian)

text: When running my java program, I get following error:               Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit      I am wondering how I can increase the limits on my system, so that my program does not crash. Also, how can I print the current limits?


title: Problem after installing Compiz on Arch+XFCE4

text: I have installed `compiz-bzr` and `emerald-git` by following commands :               yaourt -S compiz-bzr     yaourt -S emerald-git      And then I have tried :               emerald --replace      And now all windows are without borders. docky's animation does not work any more. and many other problems... Please tell me what am I doing wrong? Any helps would be awesome.


title: Difference between txqueuelen and ethtool tx

text: What's the difference between the `txqueuelen` setting that can be applied with either:               ifconfig eth4 txqueuelen 5000     ip link set eth4 txqueuelen 5000      And the `tx` ring size setting that can be applied with:               ethtool -G eth4 tx 4096      How do these relate to the global `/proc/sys/net/core/wmem*` settings? I'm on RHEL6.


title: Connecting to WEP WiFi/wlan0 using Minimal Debian Wheezy

text: Alright, I've had a doozy of a time trying to set up wlan0 on a minimal Debian install, meaning I have no DE, but you probably knew that. The problem lies in that I cannot for the life of me get my wifi to work. I am unable to install packages, run `apt-get update`, or ping domains or IP addresses. pinging google returns a `unknown host: 'www.google.com'` error. My `/etc/network/interfaces`:               auto wlan0     iface wlan0 inet dhcp     wireless-essid <name in quotes>     wireless-key1 <26 digit key>     address 192.168.1.200     netmask 255.255.255.0     gateway 192.168.1.1      I've also tried following **this** advice to no effect. I received no errors, but it simply didn't do anything, or I'm not sure what to do after this. Running `apt-get update` or `apt-get install <package>` informs me that ftp.us.debian.org cannot be resolved. What am I doing wrong? Knowing that the above things have been attempted, and what doesn't work, how can I set up wlan0 with a barebones Debian installation? Any other questions, I'll be happy to answer them. Output of `ifconfig`:               wlan0    Link encap:Ethernet  HWadder 6c:88:14:81:79:cc              UP BROADCAST MULTICAST  MTU:1500  Metric:1              RX packets:0 errors:0 overruns:0 frame:0              TX packets:0 errors:0 overruns:0 carrier:0              collisions:0 txqueuelen:1000              RX bytes:0 (0,0 B)  TX bytes:0 (0,0 B)


title: How can I tell if the currently executing bash script has been invoked with -x for debugging?

text: I have a script `launch.sh` that executes itself as another user so as to create files with the correct owner. I want to pass -x to this invocation if it was originally passed to the script               if [ `whoami` == "deployuser" ]; then       ... bunch of commands that need files to be created as deployuser     else       echo "Respawning myself as the deployment user... #Inception"       echo "Called with: <$BASH_ARGV>, <$BASH_EXECUTION_STRING>, <$->"       sudo -u deployuser -H bash $0 "$@"  # How to pass -x here if it was passed to the script initially?     fi      I've read the bash debugging page but there seems to be no clear option that tells whether the original script was launched with `-x`.


title: gzip, bzip2 and zip: very low compression ratio

text: I need to transfer (via ftp) some movie files (.MPG) on to remote machine. I thought to 1st compress it and then send. But all the compression utilities (gzip, bzip2 and zip) are having very less compression ratio. For example:               ravbholua@ravbholua-Aspire-5315:~/Desktop/MAIL/SNEHAMILAN$ gzip -l MOV04042.MPG.gz              compressed        uncompressed  ratio uncompressed_name                61949207            66970629   7.5% MOV04042.MPG     ravbholua@ravbholua-Aspire-5315:~/Desktop/MAIL/SNEHAMILAN$      As you see here, so less compression. Same is the case with bzip2 and zip. Please suggest any better compression utility so that I can compress 400 MB movie files to a good extent and then ftp it. What I w'd do is: 1st I w'd tar all the movie files and then compress it to ftp on remote machine.


title: Why is PATH reset in a sudo command?

text: After much frustrating head-brick-wall contact, I've discovered this:               $ echo $PATH     /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/steve/bin          $ sudo bash     # echo $PATH     /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin      but               $ sudo bash -c 'echo $PATH'     /sbin:/bin:/usr/sbin:/usr/bin          $ sudo bash -Ec 'echo $PATH'     /sbin:/bin:/usr/sbin:/usr/bin      I gather from another post that the `sudo` path is read from `/etc/sudoers` — but why? Does setting `$PATH` in `/root/.profile` make any sense, or is that just a recipe for the confusion above (ie, spawning an actual shell causes a different `$PATH` from that used in casual `sudo` commands...)? I'm using bash on RHEL 6.4.


title: Error with Class locale with gcc 2.96

text: I am using Red Hat Linux release 9 Kernel 2.4.20-8 on an i686 with gcc version 2.96. In my code I am declaring like,               std::locale utf8_locale;      I am getting this error:               syntax error before `;'      Please suggest me with a solution.


title: Conditional assignment based on environment variable

text: In a bash script, I'm assigning a local variable so that the value depends on an external, global environment variable (`$MYAPP_ENV`).               if [ "$MYAPP_ENV" == "PROD" ]     then         SERVER_LOGIN=foobar123@prod.example.com     else         SERVER_LOGIN=foobar987@test.example.com     fi      Is there a shorter (yet clean) way to write the above assignment? (Presumably using some kind of conditional operator / inline if.)


title: Move a remote file at an FTP prompt

text: I don't think it's possible but still I would like to ask if there is any command to transfer a remote file from one directory to other at an FTP prompt. In more detail: I run `ftp` to a remote machine. I am at the `ftp` prompt, in the directory `/a`. By mistake, I have uploaded a file (via `put`) to this directory, but that's the wrong directory. I want to move the file from this directory to `/a/b` on the remote machine. Can I do this from the FTP prompt? I have checked and I cannot telnet to that machine. If this is impossible in FTP, is there another way I can move the file and avoid having to transfer it again?


title: Redirect shared internet to tor/privoxy

text: I have shared my internet and set my client gateway to my IP, every thing works. I need to client goes through `tor`. I configured `privoxy` to use tor and with this `iptable` command I defined a rule:               iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118      But client goes directly to Internet. any idea?


title: How do I install emacs 24.3 on Fedora 17 using yum?

text: I already have emacs 24.1.1, but I need to use version 24.3. I tried:               sudo yum install emacs24.3      but it is not recognized. Is there a way to upgrade my emacs or should I simply install emacs 24.3? I also tried:               yum search emacs      but I could not find any related packages to emacs 24.3. I am using Fedora 17 (generic) on a VM. BTW I am a bit new to Fedora, but familiar with Debian (particularly Ubuntu). **Update** Here are my Fedora version details:               -bash-4.2$ cat /etc/fedora-release      Generic release 17 (Generic)     -bash-4.2$       Simply trying to install `emacs` does not work:               -bash-4.2$ sudo yum install emacs     Loaded plugins: langpacks, presto, refresh-packagekit     Package 1:emacs-24.1-7.fc17.x86_64 already installed and latest version     Nothing to do     -bash-4.2$


title: Linux distribution for a new user

text: I am a Windows user, and I would like to try Linux.   I only have heard about Ubuntu, but I see even Ubuntu have many "sub-choices".   Which distribution would be the best for me.


title: Guest Windows XP screen has wrong aspect ratio

text: I'm running Linux Mint Qiana as the host on a new HP 250 G laptop with 4GB of Ram and a 500GB hard drive. The laptop has a screen aspect ratio of 16:9. This is new to me because it's my first laptop and all my desktops have 4:3 screens. I've set up a Virtual Machine using VirtualBox and installed Windows XP Service Pack 3 as the guest operating system in the virtual machine. The problem is I can't get the XP window to fit nicely on the screen because XP thinks I'm using a 4:3 display. Windows apparently does not know about the existing monitor because it's set up for Default Monitor. As XP was released about twelve years before my HP Laptop came into existence, this is not surprising. Are there any Windows geeks out there who could give me a fix, or can it be done using VirtualBox?


title: Why doesn't the following work?: while true; do "$my_command"; sleep 1; done

text: Following up on the top answer to this question, I thought I could: 1) Define a command:               cmd='for x in $(my_command | grep keyword | cut -d" " -f1); do command2 "arguments" $x; done'      2) Run it on a loop as follows               while true; do "$cmd"; sleep 1; done      However, the above doesn't work, and I get the following               zsh: command not found for x in $(......     zsh: command not found for x in $(......     zsh: command not found for x in $(......     ...      Any thoughts why? ### Clarification: If I run `for x in $(my_command | grep keyword | cut -d" " -f1); do command2 "arguments" $x; done'` it works perfectly. ### Addendum: I have noticed that if I use `eval`, it works, i.e.:               while true; do eval "$cmd"; sleep 1; done      runs the command `cmd` every second


title: Reinstall or repair Network-manager-gnome in Ubuntu lucid lynx 10.04.3 LTS offline

text: My custom made lubuntu slim 10.04 LTS based distro with many official repositories from ubuntu based distros and stable distros/softwares ppas has a problem with network-manager, is there a way to repair it ? I tried to download network-manager from ubuntu packages website, is there a way to install them by synaptic ??? Is there a way to reinstall lubuntu without losing anyting ???


title: using awk to create a LaTex table from my data in a text file

text: So I have used awk a few times to add or remove text from each line of a text file. What I would like to learn how to do now is to add some characters to each line in multiple places. What this is for is for my data tables in latex. For example I might have a file that looks something like this:               mass merror velocity verror     1.0 0.1 2.0 0.2     1.5 0.2 1.0 0.2     2.0 0.3 0.5 0.1      now to display this as a table in latex, I need to add "&" between the columns. I want it to be 2 columns with a +/- symbol separating the error values. It also needs to be in math mode in each value. If you don't know latex don't worry. The output code I want is just this:               \(mass \pm \merror\) & \(velocity \pm verror\) \\     \(1.0 \pm 0.1\) & \(2.0 \pm 0.2\) \\     \(1.5 \pm 0.2\) & \(1.0 \pm 0.2\) \\     \(2.0 \pm 0.3\) & \(0.5 \pm 0.1\) \\      So I want it to add "(" before the first and third column of my data "\pm" before the second column and fourth column of my data, and ")" at the end of the second and fourth column. I already know how to add the \ at the end.


title: Strip trailing whitespace from files

text: The answer to removing trailing whitespace with sed has most of the answer, but I want               sed -i 's/[ \t]*$//' $1      to be able to take arbitrary number of file arguments as a shell script on the command line, including glob arguments. I.e. suppose the script is called `strip_trailing_whitespace`. Then I'd like to be able to do both               strip_trailing_whitespace foo.cc bar.cc      and               strip_trailing_whitespace *.cc *.hh      to strip trailing whitespaces from all files of the form `*.cc` and `*.hh`. Arguments not based on the answer quoted above are also fine.


title: How can I embed subtitles into videos with ffmpeg?

text: I'm told it's possible to embed subtitles (`.srt`) into video files (`.avi`) using `ffmpeg`, but I can't find any mention of it in the man page. Is this possible? What command do I use?


title: Logging full paths to printed files in CUPS

text: We are trying to configure the CUPS printing service into the protected enterprise network, and we need to store full paths of printed files (instead of local filenames without directory, as it is implemented by default in `/var/log/cups/…`) in logs. In this question it is said that there are some solutions to define exactly which files has been printed, but what are they? Has anybody managed to customize CUPS in this way? The OS is RHEL 6.4.


title: GREP / SED or AWK: Print entire paragraph in a file on pattern match

text: I have a file with hundreds of paragraphs of around 15 lines each. I need to search for a pattern, say **Occurance: 1**. If this pattern is found in the para, I need to print the entire paragraph. Note that the paragraphs are seperated by 2 new line characters. I have tried the below line of code and this obviously prints the first occurence in the file. I am somehow unable to use a loop and print all such occurances.               sed -n '1,/Occurance: 1/p' ystdef.txt | tail -9 > ystalarm.txt      Can I use the g (global) flag with sed to make this work? If yes, how? Note that I am aware of the grep -A/B/C commands but they wont work on my cygwin terminal.


title: How to repair system if kernel panic?

text: I've just updated packages:               2013-05-23 11:15:34 startup archives unpack     2013-05-23 11:15:35 upgrade locales:all 2.13-38 2.17-3     2013-05-23 11:15:35 status half-configured locales:all 2.13-38     2013-05-23 11:15:35 status unpacked locales:all 2.13-38     2013-05-23 11:15:35 status half-installed locales:all 2.13-38     2013-05-23 11:15:35 status triggers-pending man-db:amd64 2.6.3-3     2013-05-23 11:15:35 status half-installed locales:all 2.13-38     2013-05-23 11:15:38 status half-installed locales:all 2.13-38     2013-05-23 11:15:38 status unpacked locales:all 2.17-3     2013-05-23 11:15:39 status unpacked locales:all 2.17-3     2013-05-23 11:15:39 upgrade libc6:i386 2.13-38 2.17-3     2013-05-23 11:15:39 status half-configured libc6:i386 2.13-38     2013-05-23 11:15:40 status unpacked libc6:i386 2.13-38     2013-05-23 11:15:40 status half-configured libc6:amd64 2.13-38     2013-05-23 11:15:40 status half-installed libc6:i386 2.13-38     2013-05-23 11:15:47 status half-installed libc6:i386 2.13-38     2013-05-23 11:15:47 status unpacked libc6:i386 2.17-3     2013-05-23 11:15:48 status unpacked libc6:i386 2.17-3     2013-05-23 11:15:48 upgrade libc6:amd64 2.13-38 2.17-3     2013-05-23 11:15:48 status half-configured libc6:amd64 2.13-38     2013-05-23 11:15:48 status unpacked libc6:amd64 2.13-38     2013-05-23 11:15:48 status half-installed libc6:amd64 2.13-38     2013-05-23 11:15:53 status half-installed libc6:amd64 2.13-38     2013-05-23 11:15:53 status unpacked libc6:amd64 2.17-3     2013-05-23 11:15:54 status unpacked libc6:amd64 2.17-3     2013-05-23 11:15:54 trigproc man-db:amd64 2.6.3-3 2.6.3-3     2013-05-23 11:15:54 status half-configured man-db:amd64 2.6.3-3     2013-05-23 11:16:00 status installed man-db:amd64 2.6.3-3     2013-05-23 11:16:01 startup packages configure     2013-05-23 11:16:01 configure libc6:amd64 2.17-3 <none>     2013-05-23 11:16:01 status unpacked libc6:amd64 2.17-3     2013-05-23 11:16:02 status unpacked libc6:amd64 2.17-3     2013-05-23 11:16:02 status half-configured libc6:amd64 2.17-3     2013-05-23 11:16:57 status installed libc6:amd64 2.17-3     2013-05-23 11:16:57 configure libc6:i386 2.17-3 <none>     2013-05-23 11:16:57 status unpacked libc6:i386 2.17-3     2013-05-23 11:16:57 status unpacked libc6:i386 2.17-3     2013-05-23 11:16:57 status half-configured libc6:i386 2.17-3     2013-05-23 11:16:57 configure locales:all 2.17-3 <none>     2013-05-23 11:16:57 status unpacked locales:all 2.17-3     2013-05-23 11:16:57 status unpacked locales:all 2.17-3     2013-05-23 11:16:57 status half-configured locales:all 2.17-3      > Debian GNU/Linux jessie/sid \n \l and since that my computer gives me kernel panic. :/ To be more exact something like this: > init1 segfault at 3f ip .. [i dont remeber rest of message] > > kernel panic not syncing. Attempted to kill init. > > Init not taited.. How can i deal with it? I've found something like this: http://forums.debian.net/viewtopic.php?f=10&t=96879 As far as I remeber (or maybe i'm wrong) some kind of libc was updated.. I tried to solved according to comment 21 but i have no:                /lib/libc.so.6      file. Please help me recover OS **UPDATE** Added pic when booting stops. added logs from /var/log/apt/term.log:               Log started: 2013-05-23  09:57:05     Selecting previously unselected package less.     (Reading database ...      (Reading database ... 5%     (Reading database ... 10%     (Reading database ... 15%     (Reading database ... 20%     (Reading database ... 25%     (Reading database ... 30%     (Reading database ... 35%     (Reading database ... 40%     (Reading database ... 45%     (Reading database ... 50%     (Reading database ... 55%     (Reading database ... 60%     (Reading database ... 65%     (Reading database ... 70%     (Reading database ... 75%     (Reading database ... 80%     (Reading database ... 85%     (Reading database ... 90%     (Reading database ... 95%     (Reading database ... 100%     (Reading database ... 320906 files and directories currently installed.)     Unpacking less (from .../archives/less_458-1_amd64.deb) ...     Processing triggers for mime-support ...     Processing triggers for man-db ...     Setting up less (458-1) ...     Log ended: 2013-05-23  09:57:16          Log started: 2013-05-23  11:15:33     (Reading database ...      (Reading database ... 5%     (Reading database ... 10%     (Reading database ... 15%     (Reading database ... 20%     (Reading database ... 25%     (Reading database ... 30%     (Reading database ... 35%     (Reading database ... 40%     (Reading database ... 45%     (Reading database ... 50%     (Reading database ... 55%     (Reading database ... 60%     (Reading database ... 65%     (Reading database ... 70%     (Reading database ... 75%     (Reading database ... 80%     (Reading database ... 85%     (Reading database ... 90%     (Reading database ... 95%     (Reading database ... 100%     (Reading database ... 320928 files and directories currently installed.)     Preparing to replace locales 2.13-38 (using .../locales_2.17-3_all.deb) ...     Unpacking replacement locales ...     Preparing to replace libc6:i386 2.13-38 (using .../archives/libc6_2.17-3_i386.deb) ...     De-configuring libc6:amd64 ...     Checking for services that may need to be restarted...     Checking init scripts...     Unpacking replacement libc6:i386 ...     Preparing to replace libc6:amd64 2.13-38 (using .../libc6_2.17-3_amd64.deb) ...     Checking for services that may need to be restarted...     Checking init scripts...     Unpacking replacement libc6:amd64 ...     Processing triggers for man-db ...     Setting up libc6:amd64 (2.17-3) ...     Checking for services that may need to be restarted...     Checking init scripts...          Restarting services possibly affected by the upgrade:       samba: restarting...done.       mysql: restarting...done.       cron: restarting...done.       atd: restarting...done.       apache2: restarting...done.          Services restarted successfully.     Setting up libc6:i386 (2.17-3) ...     dpkg: error processing libc6:i386 (--configure):      subprocess installed post-installation script was killed by signal (Segmentation fault)     Setting up locales (2.17-3) ...     Installing new version of config file /etc/locale.alias ...     dpkg: error processing locales (--configure):      subprocess installed post-installation script was killed by signal (Segmentation fault)     Errors were encountered while processing:      libc6:i386      locales      Log ended: 2013-05-23 11:16:59 ![enter image description here](http://i.stack.imgur.com/sK2hQ.jpg)


title: Apache subdomain can not be resolved

text: <VirtualHost *:80>         ServerAdmin webmaster@localhost         ServerName domain.no-ip.org         ServerAlias www.domain.no-ip.org         DocumentRoot /var/www/main              ErrorLog /var/log/apache2/error.log         # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.         LogLevel warn         CustomLog /var/log/apache2/access.log combined     </VirtualHost>      These are my settings in `/etc/apache2/sites-enabled/000-default`. I have a webserver at home connected via "no-ip" (dynamic dns). When I try to go on "www.domain.no-ip.org" I get redirected to the site "http://navigationshilfe1.t-online.de/http://navigationshilfe1.t-online.de/dnserror?url=http://www.domain.no- ip.org/" of my ISP. The basename is `dnserror`. Nice little, very little, information. I don't know the mechanics of DNS. Can somebody tell me where the problem is? * * * Server version: Apache/2.2.22 (Debian)


title: perl script explanation please

text: > Write a perl program that reads in a text file containing one word per line. > Create a hash containing the words read as keys and the number of times they > have been read as the value. Print out each word and its frequency.               print $ARGV[0]."\n";          open (FILE,$ARGV[0]);     while ($line = <FILE>)     {             chomp($line);             if (exists($count{$line}))             {                 $count{$line}++;             }             else             {                 $count{$line} = 1;             }     }          while ( ($word,$occurrences) = each(%count))     {         print $word."  ".$occurrences."\n";          }        1. Shouldn't it be `open INFILE` instead of `FILE`?   2. `$count{$line}`: what is the role of `$count` in here? Can't you just write `$line++`?   3. Can you please explain this sentence?               while ( ($word,$occurrences) = each(%count))


title: How can I list the info for an array of /dev/disks using bash expansion or substitution?

text: I want the output of:               diskutil list; diskutil info [multiple devices]      Without having to do: `diskutil info disk0; diskutil info disk0s1; diskutil info disk1` ...etc For example, with many builtin commands like `touch` `rm` `mkdir`, etc. I can use bracket expansion to perform commands on multiple versions of a file:               mkdir njboot0{1,2,3}      Or, when searching, I can use special characters to specify matching specific patterns in a string, like:               find ~/ -type f \( -name *mp3 -or -name *mp4 \)      But:               diskutil info disk{0,0s1,1,1s1}    #syntax error          diskutil info /dev/*               #syntax error          (diskutil info disk$'')$'0|1|2'    #syntax error          diskutil info disk\(0,s0\)         #syntax error      etc...               diskutil info disk${disk}'0'$'s1'  #okay, getting somewhere. this works at least.         1. How do I perform the `diskutil` command mentioned above on multiple disks correctly?   2. Is there any **general** syntax I can follow for expansion/substitution? * * * As requested, this is the output of `diskutil list`:               /dev/disk0        #:                       TYPE NAME                    SIZE       IDENTIFIER        0:      GUID_partition_scheme                        *1.0 TB     disk0        1:                        EFI EFI                     209.7 MB   disk0s1        2:                  Apple_HFS Macintosh HD            999.7 GB   disk0s2        3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3


title: ssh-add in not persistent between reboots

text: I add a ssh key to the agent by               $ ssh-add ~/.ssh/id_rsa_mac     Identity added: /Users/alex/.ssh/id_rsa_mac (/Users/alex/.ssh/id_rsa_mac)      After reboot I don't have this key added anymore:               $ ssh-add -l      The agent has no identities. How come?


title: Has anyone got the Android NDK toolchains to run on ARM instead of x86 or x86_64?

text: I have been going over the "dev scripts" in the `$NDK/build/tools` directory of the Android NDK and have been modifying them to build host/build tool- chains that run on ARM instead of x86 or x86_64. For instance:               edge-case@Flubber:/opt/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt     /linux-x86/bin$ file arm-linux-androideabi-gcc     arm-linux-androideabi-gcc: ELF 32-bit LSB executable, Intel 80386,     version 1 (SYSV), dynamically linked (uses shared libs), for     GNU/Linux 2.6.8, stripped      I want it to be for ARM not Intel 80386 or any Intel derivative, unless its an Intel ARM (I think there are/was Strongarm? can't recall atm ;p). If not, I guess I can do it myself. Almost to the point where I think I can compile the gcc tools for arm without the scripts stopping me first. I can't really cross compile anything on my old a$$ HP right now, it only has 512MB of ram and my phone has 4x that with a dual core processor where as my HP is but one core and 10+ years old. I'm basically SOL after a borked Windows install on a partition of my Laptop (Just to play Neverwinter), which had 8 gigs of ram and a 2.6 ghz dual core 64 bit cpu, screwed up my BIOS, not sure what MS was doing with their dirty fingers all over my BIOS, but what ever, I never want to see a start menu for the rest of my life. I've borked at least 20 *nix based installs and never was my computer left inoperable, atm I can't even get into my BIOS to change anything, just a black screen no matter what I do. Anyways, I have tried Google'ing stuff like "Android NDK for arm" or "Android NDK run on arm" but can't find anything. The Ubuntu repos have the arm-linux- androideabi-* tools, but likewise, for x86 and x86_64 only. I don't need a cross compiler to compile native stuff, I need a native compiler to compile native stuff, hope that makes sense. Has this already been accomplished? It would save me some time, say if I could look over their build scripts and maybe incorporate them into the r9d revisions.


title: How can I install STREAMS in Linux?

text: I searched on Google, but found nothing useful. I use SUSE now, how can I install LiS on my computer? I'm hoping for a download link.


title: What could cause a NAS mount to respond slowly?

text: I've a directory on a NAS mount (from NetApp), that contains ~6300 image files, total size of this directory is ~ 300 MB. I get two different performances of `time ls`: First time (or after waiting 5-7 minutes):               time ls          real    0m4.505s     user    0m0.061s     sys     0m0.258s      Subsequent times:               time ls          real    0m0.340s     user    0m0.038s     sys     0m0.075s      I'm fairly new to storage and disks, but my questions are:   * what causes `ls` to be slow in some instances and 10+ times fast in others?   * how would I go about troubleshooting this issue? **Update** : Here is what I got back from the sysadmin on how NAS is mounted:               nashost:/vol/cmsprd/files    /app/files      nfs     noquota,proto=tcp       0       0      and here is what I see running for "nfs" on the host:               ps -ef | grep nfs     root      3234     2  0 Mar21 ?        00:00:02 [nfsiod]      I'm still looking for the connection speed. Thanks!


title: shadow files getting created automatically in /etc in solaris server.(SunOS 5.10)

text: In my Solaris server (SunOS 5.10) shadow files are getting created automatically every 10 minutes for two particular users in `/etc`. The content of the files is the same as `/etc/shadow`. Say `john` and `ron` are two users, then the files will be created every 10 minutes as `shadow_john_1404011142` and `shadow_ron_1404011142`(where `1404011142` is the current time the next file will be there with `1404011152`). How do I kill the process which is creating those files?


title: Setting NTP Server on Raspberry Pi with EM411 GPS Module

text: So for my little project, I'm trying to set up an ntp server using Raspberry Pi and GPS Modul EM411. First I connect the gps module, install gpsd, gpsd- clients, and python-gps. Then I run this:               sudo gpsd /dev/ttyAMA0 -n -F /var/run/gpsd.sock      to start gpsd. I check whether the gps receiving data or not with cgps -s and the result is               ┌───────────────────────────────────────────┐┌─────────────────────────────────┐     │    Time:       2014-06-04T06:43:34.000Z   ││PRN:   Elev:  Azim:  SNR:  Used: │     │    Latitude:     6.896813 S               ││   3    41    001    32      Y   │     │    Longitude:  107.607862 E               ││  11    65    174    38      Y   │     │    Altitude:   775.5 m                    ││  32    29    169    18      Y   │     │    Speed:      0.7 kph                    ││  19    57    004    32      Y   │     │    Heading:    83.3 deg (true)            ││  23    65    295    35      Y   │     │    Climb:      11.6 m/min                 ││  20    30    213    22      Y   │     │    Status:     3D FIX (2 secs)            ││  27    24    019    22      Y   │     │    Longitude Err:   +/- 13 m              ││  31    20    105    26      Y   │     │    Latitude Err:    +/- 7 m               ││   1    39    183    17      Y   │     │    Altitude Err:    +/- 42 m              ││  13    34    319    18      Y   │     │    Course Err:      n/a                   ││                                 │     │    Speed Err:       +/- 94 kph            ││                                 │     │    Time offset:     1.956                 ││                                 │     │    Grid Square:     OI33tc                ││                                 │     └───────────────────────────────────────────┘└─────────────────────────────────┘      So I think the gps module have been connected. Then I edit /etc/ntp.conf to allow ntpd to read from SHM driver:               # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help          driftfile /var/lib/ntp/ntp.drift          # Enable this if you want statistics to be logged.     #statsdir /var/log/ntpstats/          statistics loopstats peerstats clockstats     filegen loopstats file loopstats type day enable     filegen peerstats file peerstats type day enable     filegen clockstats file clockstats type day enable          # You do need to talk to an NTP server or two (or three).     #server ntp.your-provider.example     server 127.127.28.0 minpoll 4     fudge 127.127.28.0 time1 0.000 refid SHM          # pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server will     # pick a different set every time it starts up.  Please consider joining the     # pool: <http://www.pool.ntp.org/join.html>     server 0.id.pool.ntp.org iburst     server 1.id.pool.ntp.org iburst     server 2.id.pool.ntp.org iburst     server 3.id.pool.ntp.org iburst      and restarted ntpd. But when I checked with ntpq -p, it looks like ntpd isn't connected to shm driver (reach=0)                    remote           refid      st t when poll reach   delay   offset  jitter     ==============================================================================      SHM(0)          .NMEA.           0 l    -   16    0    0.000    0.000   0.000     -ntp.uii.net.id  103.1.106.69     2 u   95  128  177  147.792   60.964  90.883     +dns2.lipi.go.id 10.84.87.146     2 u   93  128  357  113.238    1.079  38.668     *ns2.king.net.id 130.149.17.21    2 u   94  128  157  140.766   21.119  23.014     +uranus.datautam 129.6.15.28      2 u   32  128  333  177.834  -12.765  22.652     -ntp.kim.lipi.go 133.243.238.243  2 u   99  128  377   92.180   25.108  59.973     +ns1.jkt.datauta 42.204.179.159   2 u   96  128  357  141.063   -9.681  24.305      I've check if gpsd is running fine. I've run gpsd with -n option. So where did it goes wrong? UPDATE: I've found out that ntpd is running as user ntp, while SHM can only be access as root (http://www.bentasker.co.uk/blog/general/254-ntpd-refusing-to- accept-time-from-gpsd). So I followed the instruction there by change the user ntpd run to root               sudo nano /etc/init.d/ntpd          ....     RUNASUSER=root     ....      Restarting the service and then check it whether ntpd running as root:               ps aux | grep ntp          root      8823  0.0  0.3   5520  1736 ?        Ss   14:24   0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 0:0     pi        8871  0.0  0.1   3548   800 pts/0    S+   14:34   0:00 grep --color=auto ntp      But ntp still can't get the time from shm driver. The result still like above.


title: Alternative keyboard-triggred launcher for specific file type in file managers (Dolphin and/or nautilus)

text: Is it possible to have an (or some) alternative launchers (i.e. Open With) for each file type and be able to trigger them using keyboard modifier keys (Shift, Ctrl & Alt) in linux's `KDE` and/or `Gnome` file managers (`Dolphin` and/or `Nautilus`)? For example I want to use both `mplayer` & `VLC` for playing video files but I want VLC be the main and mplayer be the alternative (#1); so when I double click or hit enter on a video file it will open with `VLC` but when I do the same holding Shift/Ctrl/Alt it open with `mplayer`... Is there such a feature? Thanks


title: TCP forwarding over SSH using non-root account

text: I've setup TCP forwarding over SSH using the following command:               ssh -N -L 1234:10.0.2.2:1234 root@10.0.2.1      This works no problem. So I decided to create a non-root account `user1` on 10.0.2.1 to do this in a more secure/safer way. However, I get a `permission denied` error message when I try to the same command with the `user1` account.


title: Command for taking a screenshot to a new file

text: I want to configure a global hotkey to take a new screenshot and save it, say, somewhere inside my home folder. I can take a screenshot with ImageMagick with this command:               import screenshot.jpg      However, if I execute this multiple times, screenshot.jpg will be overwritten multiple times. I want the application to write screenshot1.jpg, screenshot2.jpg, etc. automatically. What my command would look like in this case?


title: biosdevname is giving me "p120p1" instead of p1p1 -- is this correct?

text: I'm using biosdevname on a CentOS 6.3 server to name my interfaces in a rational way. On our new Dell PowerEdge C6145, we have 2 embedded ports and two PCI cards with 4 ports each. On our other Dell 815 servers with a similar configuration, we get em1, em2, (and actually em3 and em4 on those), and then p1p1, p1p2, p1p3, p1p4, and p2p1, p2p2, p2p3, p2p4. For whatever reason _this_ system gives "120" for the slot number rather than 1. Now, I can accept that it might not be slot one internally, but it's definitely also not the one hundred and twentieth. I updated to biosdevname 0.4.1 from Fedora Rawhide but am getting the same result. Since our puppet configuration is expecting the other names, this is a hassle. We can work around it, but I'd rather only do the workaround if there is a rational explanation — either a bug needing a temporary fix, or something that I don't understand which makes the large number actually sensible. So, is there such a explanation?


title: Burn remote data on to a disc

text: I have an ISO image in another system which I need to burn on my system. I can copy that image to my system using SCP and then do burning. But I would like to know, whether I can directly burn the remote data(image here) to the dvd? Both the systems have GNU/Linux.


title: Highlight extra white spaces and fixed length column in VIM

text: I want to highlight extra white spaces and fixed length column (e.g., 80 character in a line) using VIM I created two vimrc rule in my `.vimrc` file               highlight ExtraWhitespacea ctermbg=darkred guibg=#382424     match ExtraWhitespacea /\s\+$/     highlight OverLength ctermbg=green ctermfg=white guibg=#592929     match OverLength /\%81v.\+/      Now, problem is - these rules run exactly as I want if applied separately, but will not work together. Am I missing something here? How do I debug this?


title: How to update Wine in Debian Wheezy?

text: I'm trying to run Wine with the game EVE Online. It pops out an error               Error: Procedure not found. Could not load python dll      However. Then I figure I'll try updating the Wine to a newer version. I'm currently on Debian Wheezy stable. I saw on some forums:               sudo apt-get install wine1.6      But that doesn't work. I have the version 1.4.1. How do I update Wine? Do I have to get Debian unstable instead?


title: Pxeboot: Client not getting ip address from the DHCP Server

text: I am Working on Pxeboot. I have a Ubuntu system as KVM and in that system I installed Virtual machine manager. I also installed Ubuntu in the virtual machine. Before I start my virtual machine, I attached the Virtual network interface.               Source device: Host device eth0:macvtap     Device model : Hypervisor default     Mac Address  : 00:22:11:01:22:55     Source mode  : private      I installed DHCP server in the VM:               # apt-get install isc-dhcp-server      And configured in the `dhcpd.conf` file:               allow booting;     allow bootp;          filename "pxelinux.0"          subnet 10.5.5.0 netmask 255.255.255.0 {       range 10.5.5.5 10.5.5.100;       option domain-name-servers ns1.testworld.local.net;       option domain-name "testworld.local.net";       option routers 10.5.5.1;       option broadcast-address 10.5.5.254;       default-lease-time 600;       max-lease-time 7200;      }          host pxebootserver {       hardware ethernet 00:22:11:01:22:55             fixed-address 10.5.5.1      }      When I restart the isc-dhcp-server, I got this errors in syslog:               Jul  2 20:06:19 ubuntu dhcpd: Wrote 0 leases to leases file.     Jul  2 20:06:19 ubuntu dhcpd:      Jul  2 20:06:19 ubuntu dhcpd: No subnet declaration for eth0 (no IPv4 addresses).     Jul  2 20:06:19 ubuntu dhcpd: ** Ignoring requests on eth0.  If this is not what     Jul  2 20:06:19 ubuntu dhcpd:    you want, please write a subnet declaration     Jul  2 20:06:19 ubuntu dhcpd:    in your dhcpd.conf file for the network segment     Jul  2 20:06:19 ubuntu dhcpd:    to which interface eth0 is attached. **     Jul  2 20:06:19 ubuntu dhcpd:      Jul  2 20:06:19 ubuntu dhcpd:      Jul  2 20:06:19 ubuntu dhcpd: Not configured to listen on any interfaces!     Jul  2 20:10:26 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9     Jul  2 20:10:35 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21     Jul  2 20:10:56 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12     Jul  2 20:11:08 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17     Jul  2 20:11:25 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10     Jul  2 20:11:35 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12     Jul  2 20:11:47 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16     Jul  2 20:12:03 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11     Jul  2 20:12:14 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9     Jul  2 20:12:23 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11     Jul  2 20:12:34 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3     Jul  2 20:12:37 ubuntu dhclient: No DHCPOFFERS received.     Jul  2 20:12:37 ubuntu dhclient: No working leases in persistent database - sleeping.      Even clients cannot discover the dhcp server. Which virtual network adapter do I have to enable in the Client VM?


title: Parameters files, pfiles director: how to overwrite default settings

text: This is a quite general question that I am not sure to be able to address correctly. I must manage some `bash` or `tcsh` scripts that invoke other software's tools. These tools are invoked by name and parameters. Sometimes, it happens that the environment is not well set, and the script can not pass those parameters to the software. This is because it can not "interact" with the parameter files, in the `pfiles` directory, wherever it is. I would need some more information about how to manage this issue. I thought it was enough to create a parameters directory in my `/home`, and copy the parameter files from the parameter directory in the software directory. But this is not enough, because the script I run can not "overwrite" the default parameters in the file. I hope the question is clear enough. Any suggestion really appreciated.