title: personal document management system

text: I'm looking for a personal document management system that would:   * track changes in documents in a configured directory tree   * save new files to a content repository (thus allowing of their versioning)   * offer some kind of web gui for browsing the repository - ideally it would allow tracking changes in documents etc The files I'd like it to support are:   * microsoft word files (doc, docx, xls)   * open office files   * pdf files   * txt files I've looked through a couple of such systems (DMS-grade) but haven't noticed them having the autonomous scanning option. What I'd like to have is a unobtrusive solution that wouldn't require users to upload documents through web gui. All the versioning, backing up stuff should be transparent to them. Only if they were actually interested in downloading the older version they would fire up the web gui. Any comments and suggestions are welcomed.


title: Symbolic link starting with .#

text: I have a symlink in one of my directories that has the following name:               lrwxrwxrwx  1 XXXX ZZZ   37 Jan 15 18:18 .#perl.org -> XXX@YYY.com.2980:1344441539      I am wondering what this symlink represents and which program/action created it. By the way, I have a file in this directory called `perl.org` that I have been working on for the last few days. I connect with `ssh -Y` and then run `emacs` to edit this and other files.


title: Wicd and NetworkManager both not working in Debian Jessie

text: I recently installed Debian, and I was able to get the WiFi to work using the command line. After a while, it stopped working. I figured that it had something to do with the fact that my intel iwlwifi driver is proprietary and had to be installed separately. It wasn't until I installed NetworkManager over ethernet that I realized that I had accidentally used a hardware switch to disable my WiFi (haha). I still had some problems though, so I decided to reinstall the system. This time, I immediately upgraded to Jessie (currently testing) to see if it would fix things. Everything works fine when I connect to WiFi using the command line. However, I was tired of always having to connect manually, so I installed NetworkManager. The problem is, it wasn't showing available networks. At one point, it did, but when I tried to connect, it just told me that I had the wrong password. I figured that NM just didn't want to work with Xfce (for whatever reason), so I gave Wicd a try. This time, it was at least showing me available networks. However, I would try to connect, and it wouldn't connect. I would click `Connection information` and it just said connecting. It never even asked for a password. What I am trying to figure out now, is why I can connect manually, but anytime I try to use some sort of network manager, it doesn't work. I would post error messages, but to be honest, I am not really sure where wicd puts them. I am currently trying to fix Wicd, since it seemed to work better than NM. Although I wouldn't mind using anything at this point, as long as it works. I really want to get this working, as I have been working on it for at least two weeks, and everything else is working pretty nicely.


title: How can I install Arch Linux on a Laptop with Intel GMA 4500 MHD?

text: I would like to install Arch Linux on my Acer TravelMate 5735Z. Sadly, it has a Intel GMA 4500 MHD graphic card. This means, I suffer from Kernel Bug [GM45] black screen at boot (0 backlight?). When I boot from the installation CD for Arch Linux 2013.10.01, I can see the menu that lets me choose to install arch/boot the installed system (Ubuntu 10.04, I think)/Power off. But when I choose to install Arch, the screen gets black. In this German article, the author seems to have found a solution for Linux Mint. But he begins with "start LiveCD in compatibility mode". As there is no such thing in the Arch Menu, I thought I had to edit the installation parameters. But when I hit tab, I get some cryptic stuff:               . linux boot/x86_64/vmlinuz archisobasedir=arch archisolabel=ARCH_201310 init     rd=boot/x86_64/archiso.img      I only have WLAN, so I can't try a network installation. How can I install Arch Linux on this computer?


title: How to copy to a formatted image without root privileges?

text: I have formatted an image file using the `mkfs` command, and I would now like to copy files to that image file without root privileges. I have already tried to mount the image to a local directory, which did require root privileges for some reason. (feel free to comment why) Is there a widely supported way to copy files into a formatted image without requiring root privileges. _Edit:_ The image is formatted as FAT-32.


title: Minimal Command Line Distro

text: So, I want to have a VM of a very minimal x86 Linux install, with networking support so I can download packages. All this VM is going to be used for is to learn NASM assembly, since all of the other Linux installs I have anywhere area all x86_64 installs. Thanks!


title: Augeas not reading all yum.repos.d files. Why?

text: I'm trying to use Augeas to manage some options in yum.repos.d but it's not reading all repo files in there. Any hint?               # ls -l /etc/yum.repos.d/     total 24     -rw-r--r-- 1 root root  200 Nov 10 15:50 3rd.repo     -rw-r--r-- 1 root root  279 Sep 10 14:21 Citrix.repo     -rw-r--r-- 1 root root  172 Nov 10 16:17 epel.repo     -rw-r--r-- 1 root root  172 Nov 10 15:21 ius.repo     -rw-r--r-- 1 root root 1308 Nov 10 15:21 os.repo      And in augtool:               # augtool ls /files/etc/yum.repos.d/     os.repo/ = (none)     Citrix.repo/ = (none)      Trying to debug in augtool:               # augtool ls /augeas/files/etc/yum.repos.d/     os.repo/ = (none)     Citrix.repo/ = (none)      Thanks in advance!


title: How to clear terminal after logging out?

text: Currently on my laptop when I log out I can still see traces of my last activities (in tty). How can I tell it (Gentoo) to clear the screen before logging out?


title: Mount USB (FAT) in Gentoo

text: Can somebody show me how to make Gentoo mount my USB? This is what I got when trying `mount /dev/sdb1 /mnt`: > mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing > codepage or helper program, or other error In some cases useful info is > found in syslog - try dmesg | tail or so `dmesg` says: > FAT: codepage cp437 not found


title: Is there any way for group "owners" to have full rights of a file or directory owner?

text: Is it possible with the normal Unix permissions system to enable group members to have the right to change a file's permissions? In other words, suppose we have a file `awesome.rb` which is owned by user `brandon` who belongs to group `developers`, and user `darryl` (also a member of `developers`) needs to make a particular file executable. Is there any way to make this possible?


title: Installing Ossec on an existing centos 6.4 machine

text: I have an existing machine running centos 6.4. Is it ok to install now the Ossec or it's not worth any more as the machine is already running for few months. Which is the best mechanism to install because I saw one is from the source and some recommend atomicorp repo? Any recommendation please?


title: Debian's ReportBug equivalent on Fedora/Gnome?

text: When I was using Debian, there was a tool called "ReportBug" - or something like that. Ironically, the tool itself was probably the buggiest program I have ever used. I was never, ever actually able to make a successful bug report in the graphical mode. However, the tool seems to be a good idea. I don't have to go through some online identification process, or do any browser-business - I'd just fire up a program, fill out a few forms, and that was it. Is there something like that for the Fedora operating system? Or for Gnome itself? Because, sometimes, I encounter weird bugs and errors, and I think it would come in handy to have such a tool at my fingertips.


title: Problem compiling a driver : "No rule to make target"

text: First of all I am running a CentOS 6.4 installation. My computer is a laptop and I am trying to install the drivers for my ethernet card, because this week end I lost my ability to connect to the Internet. So I downloaded the driver : jmebp-1.0.8.5 I installed gcc, kernel-devel and since it wasn't working I finally installed the group Development Tools (in case I had forgot something). When I               make install      I get this error :               *** No rule to make target `internet/jmebp-1.0.8.5'.  Stop.     Leaving directory `/lib/modules/2.6.32-358.6.1.el6.x86_64/build'      My makefile is :                   MODNAME := jme     obj-m := $(MODNAME).o          ifneq ($(KERNELRELEASE),)     #########################     # kbuild part of makefile     #########################     EXTRA_CFLAGS += -Wall -O3     #EXTRA_CFLAGS += -DTX_DEBUG     #EXTRA_CFLAGS += -DREG_DEBUG          else     #########################     # Normal Makefile     #########################     TEMPFILES := $(MODNAME).o $(MODNAME).mod.c $(MODNAME).mod.o Module.symvers .$(MODNAME).*.cmd .tmp_versions modules.order Module.markers Modules.symvers          ifeq (,$(KVER))     KVER=$(shell uname -r)     endif     KSRC ?= /lib/modules/$(KVER)/build     MINSTDIR ?= /lib/modules/$(KVER)/kernel/drivers/net          all: modules         @rm -rf $(TEMPFILES)     modules:         @$(MAKE) -C $(KSRC) M=$(shell pwd) modules          checkstack: modules         objdump -d $(obj-m) | perl $(KSRC)/scripts/checkstack.pl $(shell uname -m)         @rm -rf $(TEMPFILES)          namespacecheck: modules         perl $(KSRC)/scripts/namespace.pl         @rm -rf $(TEMPFILES)          install: modules         install -m 644 $(MODNAME).ko $(MINSTDIR)         depmod -a $(KVER)          patch:         @/usr/bin/diff -uar -X dontdiff ../../trunc ./ > bc.patch || echo > /dev/null          buildtest:         SRCDIRS=`find ~/linux-src -mindepth 1 -maxdepth 1 -type d -name 'linux-*' | sort -r -n`; \         SRCDIRS="$${SRCDIRS} `find ~/linux-src/centos -mindepth 2 -maxdepth 2 -type d -name 'linux-*' | sort -r -n`"; \         SRCDIRS="$${SRCDIRS} `find ~/linux-src/fedora -mindepth 2 -maxdepth 2 -type d -name 'linux-*' | sort -r -n`"; \         for d in $${SRCDIRS}; do \             $(MAKE) clean && $(MAKE) -C . KSRC=$${d} modules; \             if [ $$? != 0 ]; then \                 exit $$?; \             fi; \         done         $(MAKE) clean          clean:         @rm -rf $(MODNAME).ko $(TEMPFILES)          %::         $(MAKE) -C $(KSRC) M=`pwd` $@          endif      Any suggestions ?


title: How to setup backup if the filesystem is read only

text: My remote server file system is read-only & its because my hard disk is broken .I want to take backup for taking any further action.   1. Is it possible to setup a manual backup for the affected server (as its file system is read only).    2. If possible then how to perform or add this affected server to my backup server as client.   3. Or any other possible solution . **NOTE:** This remote server is a VM inside an ESXi server.(i.e. ESXi>Affected Server).


title: Install Ubuntu partitions

text: I am a completely newbie. I want to install Ubuntu 14.04 in my laptop on which windows 8.1 is installed. I have read in some sites that I have to use Gparted or similar tools, but there are also sites that don´t this kind of tools, just shrink the volume of C:. What is the difference between using Gparted or similar and not using it, to install Ubuntu for dual boot. Thanks


title: Activating Audio System in Arch Linux

text: I wanted to get the audio system going on Arch Linux, and I followed the very concise instruction I found on Archlinux.org, but it didn't help. Has anyone done this personally, therefore knowing the practical shortcut? I'd be glad to know of it. Thank you.


title: Why can I access to my C: or D: drives from Ubuntu?

text: Why can I access to my C: or D: drives from Ubuntu when I install Ubuntu 14.04. Why does this happen?


title: calling library functions from different language

text: As we know libraries are precompiled codes, so we do not need to compile them. Can we call library functions of one language from a different language?


title: Mutt: can I define my own rules for quoted message detection?

text: I recently started using mutt with my gmail IMAP mail address. Because I loved it so much, I also set it up with my college email address. This, sadly, is hosted by the college ICT team under Outlook Webapp, which seems not to adhere to some vary basic standards such as message quoting. On every mail service I've used (not many but hey), a message is quoted using the following method:               This is my new message     >this is      >a quoted message     >> this is a      >> quoted message inside the quoted message      or something similar. Mutt seems to pick this up and colorize them appropriatly. However, the Outlook Webapp has following qutoing scheme:               This is my new message          -----Original Message-----     From: Foo@Bar     Subject: Foobar     Date: 1st of Foo, 2012 20:18     To: Bar@Baz          this is      a quoted message          -----Original Message-----     From: Bar@Baz     Subject: Foobar     Date: 1st of Foo, 2012 20:13     To: Foo@Bar          this is     a quoted message inside the quoted message      Is there a way to tell mutt how to pick this up? Note that when different users have different languages set in the web app this will also reflect in the quoting, eg a Dutch person will have `-----Oorspronkelijk bericht-----` instead of it's english counterpart, and it will be sent around like that. So there will be some mixing up. It feel saddened by the lack of respect for simple standards like this, because they make life so much harder than it has to be. Note: I have renounced using the outlook webapp, and thus I set up a new gmail account. My outlook webmail get's forwarded to this gmail account and I can reply to it using my normal college email adress from the gmail webapp or mutt. The bad quotin remains a problem though.


title: Fedora 18: can't resolve hosts

text: My Fedora 18 machine is having problems with resolving hosts: `Could not resolve host: ...; No address associated with hostname]` `HTTP error on [https://lon.auth.api.rackspacecloud.com/v2.0/tokens], curl code [6] message [Could not resolve host: lon.auth.api.rackspacecloud.com; No address associated with hostname]'` How do I fix this?


title: "Acpi-State" in slabtop's output gets increased — what is it? Is it a bug?

text: Since boot it gets increased occupying even more RAM than anything else:                Active / Total Objects (% used)    : 680608 / 719176 (94.6%)      Active / Total Slabs (% used)      : 17390 / 17390 (100.0%)      Active / Total Caches (% used)     : 72 / 113 (63.7%)      Active / Total Size (% used)       : 78756.64K / 89892.73K (87.6%)      Minimum / Average / Maximum Object : 0.01K / 0.12K / 8.00K            OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME                        212109 211201  99%    0.08K   4159       51     16636K Acpi-State     203776 200343  98%    0.06K   3184       64     12736K kmalloc-64      66682  65275  97%    0.18K   3031       22     12124K vm_area_struct       7974   3826  47%    0.88K    443       18      7088K xfs_inode       8596   5811  67%    0.55K    614       14      4912K radix_tree_node      * * * And after several hours it still grows even larger:                Active / Total Objects (% used)    : 699321 / 782632 (89.4%)      Active / Total Slabs (% used)      : 18711 / 18711 (100.0%)      Active / Total Caches (% used)     : 72 / 113 (63.7%)      Active / Total Size (% used)       : 82030.29K / 95484.77K (85.9%)      Minimum / Average / Maximum Object : 0.01K / 0.12K / 8.00K            OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME                        243933 222506  91%    0.08K   4783       51     19132K Acpi-State     231104 210673  91%    0.06K   3611       64     14444K kmalloc-64      68574  66749  97%    0.18K   3117       22     12468K vm_area_struct       7218   2706  37%    0.88K    401       18      6416K xfs_inode       8498   8123  95%    0.55K    607       14      4856K radix_tree_node


title: Excessively high disk usage freezes my server

text: I have a laptop converted to a Linux Mint server running a variety of services. Recently, it started being unaccessible at random. The situation seems intermittent. The server is usually blazing fast. I can still ping the server, but any attempt to access its services (ssh, web, etc) takes a prohibitive amount of time. When I try to access the server with SSH, it can take over 15 minutes before I get to the login screen. The hard drive activity light stays on and the machine is running hotter than usual but not dangerously so. If I reboot the machine, it is super fast for some time, until it randomly becomes unresponsive again, maybe days later. I have tried using `iotop`, but I've spent the past 45 minutes just waiting for it:               user@machine~ $ sudo iotop     [sudo] password for user: debug3: Received SSH2_MSG_IGNORE     debug3: Received SSH2_MSG_IGNORE     debug3: Received SSH2_MSG_IGNORE          debug2: client_check_window_change: changed     debug2: channel 0: request window-change confirm 0      **EDIT** I power cycled the server and took a look at all the logs. These were the last entries in syslog. There were several hundred of identical lines preceding it:               Jul 17 20:35:16 t510-mint pulseaudio[2106]: [pulseaudio] protocol-native.c: Warning! Too many connections (64), dropping incoming connection.     Jul 17 20:35:40  pulseaudio[2106]: last message repeated 673 times     Jul 17 20:35:40 t510-mint rsyslogd-2177: imuxsock begins to drop messages from pid 2106 due to rate-limiting     Jul 17 20:35:41 t510-mint rsyslogd-2177: imuxsock lost 6 messages from pid 2106 due to rate-limiting     Jul 17 20:35:41 t510-mint pulseaudio[2106]: [pulseaudio] protocol-native.c: Warning! Too many connections (64), dropping incoming connection.     Jul 17 20:36:05  pulseaudio[2106]: last message repeated 673 times     Jul 17 20:36:05 t510-mint rsyslogd-2177: imuxsock begins to drop messages from pid 2106 due to rate-limiting     Jul 17 20:36:06 t510-mint rsyslogd-2177: imuxsock lost 6 messages from pid 2106 due to rate-limiting     Jul 17 20:36:06 t510-mint pulseaudio[2106]: [pulseaudio] protocol-native.c: Warning! Too many connections (64), dropping incoming connection.     Jul 17 20:37:19  pulseaudio[2106]: last message repeated 567 times


title: Can't get out of foreground mode in STunnel

text: I was trying to debug an STunnel installation on my Raspberry Pi (using Raspbian) and so I set the foreground mode to yes (which is something suggested in the official documentation). Unfortunately, now every time the Raspberry Pi boots up, it will present the log to me in the foreground, with no way for me to run any other command, browse the file system, etc. I tried `Ctrl`+`Z`, but that didn't work. The only thing that seems to work is `Ctrl`+`Alt`+`Delete`, but that just reboots the Raspberry Pi.


title: How to enable TCP connection in Debian Squeeze?

text: I need enable TCP connections to my system, for use graphical applications in marionnet, network simulation system, in debian squeeze. In older versions of debian it is achieved with System|Administration|Login Window -> uncheck “Deny TCP connections to the Xserver”. but in squeeze I have no idea. ?? EDIT: I have the answer: take a look here


title: create multipath for local partition

text: Is it possible to create multipath to local partition? I got partition /dev/sda3 and I need /dev/mapper/mpath01 to be pointing to it. This is what I added in my kickstart (rhel 5.7)               part /my_mount_point --size=2500 --ondisk=sda --fstype ext3     multipath --name=mpath01 --device=/dev/sda3 --rule=failover      Partition is created ok but I don't have /dev/mapper/mpath01 file   multipath -l also shows nothing (service is running)


title: Trying customize Fedora rescue image - how do I go about this?

text: Most of what I've found on this involves changing install discs - which I don't really need. I just want to install a handful of extra packages and maybe some helpful scripts onto the Fedora rescue image and burn it to a disc for me and my boss to use when we image or tinker with computers (our imaging process is over NFS). Is there a good straightforward process to this or am I looking at rolling my own whole setup? Thanks for any input!


title: Script SFTP with password - HP-UX

text: I would like create a script in HP-UX to send in sftp with password. I have this command               sftp -o PasswordAuthentication=      but if I answer yes or no after, I have this issue "Host key verification failed"


title: Add GUI to Oracle Linux 6.4

text: I've installed Oracle Linux 6.4 on VirtualBox VM. As I understand, because of the fact that this is the server version, no GUI is installed by default. Can you guide me how to install/enable it? I believe that my Oracle Linux installation ISO file contains required packages but don't know how to mount it in Linux and reconfigure yum to use this local source instead of internet repository.


title: /usr/bin/host not picking up changes to /etc/hosts even after reboot

text: I have a Ubuntu Server 12.04 (`amd64`) machine on which, when I change `/etc/hosts`, the changes aren't picked up, even after a reboot. I am using `/usr/bin/host` to test, but none of the other programs seems to pick it up either. This is a server and `nscd` and `dnsmasq` aren't installed. Also, the file `/etc/nsswitch.conf` contains the line:               hosts:          files dns      so that I would expect it to work. I also checked that the `mtime` of the file changes with editing and tried running `service networking restart` (against all odds) and also `resolvconf -u`. All commands where run as `root` where needed. The machine has network configured manually in `/etc/network/interfaces` and not via Network Manager (it isn't installed either). Basically what I want to achieve is that the IP for a few hosts can be manipulated. The reason being that inside our network I get an IP to which I have no route, but I can use the external IP for that service via HTTPS. What am I missing? **Note:** no DNS server is locally running and the `nameserver` lines in `/etc/resolv.conf` (and the respective lines in `interfaces`) point to the DNS server that gives me the wrong IP. **Also note:** I've searched on the web and read through the "similar questions", but my case doesn't seem to be covered. `/etc/host.conf` is:               # The "order" line is only used by old versions of the C library.     order hosts,bind     multi on


title: What is the easiest way for me to take a video of what I'm doing on a Linux desktop?

text: Sort of like the Windows counterpart of CamStudio.


title: Book on how Linux works from an administrator's point of view?

text: I did find this book, but I was wondering whether there's a newer book on the market, because this one was released in 2004. I'm sure a lot has changed in the past 7 years? I need a book that helps me understand linux, instead of just giving me console recipes to reach certain goals. I need an overview picture of all its important components and how they work together, without going too much into kernel internals. Any help would be appreciated on finding an appropriate book for an administrator who is interested in this wonderful OS called Linux. I'm not a newbie to Linux, I just want to get the bigger picture, without turning myself into a kernel hacker. I already know what the Linux kernel is and does, I just want to know how it is leveraged in the larger scheme of things, and how everything that sits on top of it is organized, and the reason why certain things are organized the way they are.


title: Net-SNMP Application

text: I don't know if this is the right place to ask this question, but, does anyone knows about Net-SNMP. Is it possible to not truncate the log file whenever snmptrapd is restarted? The logs are being rotated by logrotate. But whenever I restart the snmp listener using this command:               /etc/init.d/snmptrapd restart      Or using this:               /etc/init.d/snmptrapd start      The log file for snmptrapd is being restarted to 0KB (restarted), previous logs are being deleted. We don't want that to happen.


title: How to install LuaJIT on FreeBSD without using Gmake?

text: Has anyone been able to install LuaJIT v2 on FreeBSD AMD64(x64) without using Gmake (just freebsd-make)? If so how? When I attempt to use freebsd-make, LuaJIT doesn't build.


title: Disable scroll lock

text: We have a shell/tty based application that has ~1,000 users. It is running in an environment where X Server is not available. If a user accidently turns on the `Scroll Lock`, it makes it seem as if the application is frozen because it quits responding to keyboard input. Is there a way to disable the `Scroll Lock` or remap it to something less intrusive for this use-case?


title: How to avoid a useless use of cat when parsing a file?

text: I have a file containing a list of directories. For instance               /foo/bar/dir1     /foo/bar/dir2     /foo/bar/dir3      I want to create all these directories. Here's what I did:               for dir in $(cat myfile); do mkdir $dir; done      What would be the correct way of doing this while avoiding the "useless use of cat"? Ideally, answers would focus on Ksh88, but I'm also interested in other shells


title: iptables rule adviser script

text: There is a server without any iptables defense: `ACCEPT all..` There could be custom applications on this server. If we should need to harden this server (so deny all, and only let what is needed by the applications) with strict iptables rules, we have to find out by hand that which app uses which `dst/src` `port/protocol` and then we have to write the iptables rules for them.. **The question** : are there any scripts that can help collecting these informations from a running machine? (from the logs?) - And automatically generating the iptables rules? Like there is the `audit2allow` on `SELinux`. Just for `iptables`! **The machine cannot have any outage!** Ex.: the "MAGIC" script should run a week/month on the machine, collecting informations, then, after a week/month, the script will be able to produce an iptables rule file that we can use. Many people could get in this situation (how to harden a server regarding iptables). And it would be great if there were a script/solution that can do this :\


title: ls -ld list files inside a folder which is having only execute permission

text: In Linux, I gave only `execute` permission to a directory named `test`. after switching to the directory `test`, when I run `ls -ld` it was showing some hidden files. Please explain this.


title: bash script calling itself with different arguments

text: I just can not get it right. Script takes two arguments, target and command. Valid targets are specified within an array. If target is 'all', script should iterate through all targets.               #!/bin/bash     # recur.sh          targets=('aaa' 'bbb' 'ccc' 'ddd')          if [ "$1" == "all" ] ; then         for i in $targets ; do             echo $2" --> "$i             ./$0 $i $2         done         exit 0     fi          echo "Target "$1" just received command '"$2"'"          exit 0      I expect the following output:               $ recur all boggle     boggle --> aaa     Target aaa just received command 'boggle'     boggle --> bbb     Target bbb just received command 'boggle'     boggle --> ccc     Target ccc just received command 'boggle'     boggle --> ddd     Target ddd just received command 'boggle'      But the script exits at the first iteration:               $ recur all boggle     boggle --> aaa     Target aaa just received command 'boggle'


title: Unix Command to return all files that end with single digit and TXT extension

text: Which command returns all files that end with a single digit and have the TXT extension ?


title: Building unprivileged (userns) LXC container from scratch, by migrating a privileged container to be unprivileged

text: How can I build a privileged LXC (1.0.3) container (that part I know) and then migrate it successfully to be run unprivileged? That is, I'd like to `debootstrap` it myself or adjust the `lxc-ubuntu` template (commonly under `/usr/share/lxc/templates`) in order for this to work. Here's why I am asking this question. If you look at the `lxc-ubuntu` template, you'll notice:               # Detect use under userns (unsupported)     for arg in "$@"; do         [ "$arg" = "--" ] && break         if [ "$arg" = "--mapped-uid" -o "$arg" = "--mapped-gid" ]; then             echo "This template can't be used for unprivileged containers." 1>&2             echo "You may want to try the \"download\" template instead." 1>&2             exit 1         fi     done      Following the use of `LXC_MAPPED_GID` and `LXC_MAPPED_UID` in the referenced `lxc-download` template, though, there seems to be nothing particularly special. In fact all it does is to adjust the file ownership (`chgrp` \+ `chown`). But it's possible that the extended attributes in the `download` template are fine-tuned already to accomplish whatever "magic" is needed. In the comments to this blog post by Stéphane Graber Stéphane tells a commenter that > There’s no easy way to do that unfortunately, you’d need to update your > container config to match that from an unprivileged container, move the > container’s directory over to the unprivileged user you want it to run as, > then use Serge’s uidshift program to change the ownership of all files. ... and to:   * have a look at https://jenkins.linuxcontainers.org/ for the packages built for the `download` template   * check out `uidmapshift` from here     * This program appears to roughly do `lxc-usernsexec -m b:0:1000:1 -m b:1:190000:1 -- /bin/chown 1:1 $file` as explained in `lxc-usernsexec(1)` But there are no further pointers. **So my question is: how can I take an ordinary (privileged) LXC container that I have built myself (having`root` and all) and migrate it to become an unprivileged container?** Even if you can't provide a script or so, it would be great to know which points to consider and how they affect the ability to run the unprivileged LXC container. I can come up with a script on my own and pledge to post it as an answer to this question if a solution can be found :) _Note:_ Although I am using Ubuntu 14.04, this is a _generic_ question.


title: How to try every bit of a Linux distro without installing it?

text: Using a live CD\USB to try a Linux distribution failed me to test aspects like graphics\wireless drivers. I remember when I tried an Ubuntu live CD it was loaded using a virtual machine so I couldn't test if my graphics drivers will be stable or not. So is there a way to fully test Linux distributions without having to install them which is a time consuming task and requires formatting the hard-disk with every installation ? Or at least test the graphics drivers availability ?


title: AWK-Find maximum value in a row & print with header

text: I need to read a file, find the maximum value in each row, and print the ID of the row, the column the maximum value came from (`sno#`), and the value from the associated `lc#` column. If the maximum value occurs more than once, I need to include all matches. For example: ### input.txt (tab-delimited)               Id  sno1  lc1  sno2  lc2    sno3  lc3  sno4 lc4     RM1  98   ss1   88   ms1    78    gs1   45  rs1     RM2  23   ss2   44   ms2    98    gs2   15  rs2     RM3  45   ss3   100  ms3    33    gs3   10  rs3     RM4  45   ss4   45   ms4    12    gs4   11  rs4      ### output.txt               RM1 ss1 sno1     RM2 gs2 sno3     RM3 ms3 sno2     RM4 ss4,ms4 sno1,sno2


title: User preferences not saved in Nemo file browser in Linux Mint 14 Cinnamon edition

text: I started using Linux Mint 14 (Nadia) recently, and kind of like it better for the Gnome experience its gives using Cinnamon DE. My question is, the file browser (NEMO 1.1.1) fails the save the defaults - the way I want it to display the folders and stuff. For example, I would like to have the folders listed in the 'List' form instead of the icon format, and would also like to have the "Location Entry" as default, instead of the bread crumbs model address bar in the file browser. I tried updating the preferences using the Edit > Preferences tool, however the updates are not stored, or getting reflected. I tried restarting Cinnamon, no effect. Also, I see that there is a toggle button to toggle between the bread crumbs mode and full address typing mode for the address bar, however I couldn't find a place which lets me select which one I need by default. Please suggest where I need to edit so that these settings can be saved permanently.


title: -bash: android: command not found

text: I'm on a Mac running Mavericks trying to learn how to develop Android apps (in the process I'm learning bash too). To run on the emulator they suggest the command `android avd`. I always get the error in the title of this post. I've searched all over and the issue seems to lie with changing the PATH. I've amended .bash_profile as such: `export PATH=/usr/local/bin:$PATH export PATH=/usr/local/bin:$PATH export PATH=/development/dev_android/sdk/tools:$PATH` but it's still not working. Any thoughts?


title: Modifying menu color of a gtk 3.0 theme

text: I'm trying to integrate a GTK3.0 theme with xfwm4 theme, ![enter image description here](http://i.stack.imgur.com/83MQf.png) Now I need to change the menu background color, so I get the color value with `gcolor` and tried to `grep` for that value, nothing found under the `gtk-3.0` folder. What's the right way of doing it? **EDIT** Faience GTK3.0 theme ZukiMac xfwm4 theme


title: Permissions on `/`

text: What should the permissions be for `/`? I ask because I completely removed all files from my drive and reinstalled the OS, but I still get "permission denied" errors for `/bin/zsh` when I try to log in as a non-root user. The only thing that is the same is the root of the drive. If that's the issue, I would like to not have to format and reinstall again to fix it. (any suggestions for that problem would be appreciated too.)


title: Kernel can not boot after upgrade on Fedora OS 15

text: I am using Fedora 15, and want to upgrade to version 16. I followed the official link Upgrading Fedora using yum - FedoraProject to upgrade my OS by the following command:               yum update kernel* --releasever=16     yum groupupdate Base  --releasever=16     reboot      After reboot, the OS does not start. It just prints the following message on screen:               could not start boot splash: No such file or directory      and nothing else. I have installed a lot of software on my previous OS, and I don't want to format my system partition. How to bring Fedora back to life without reinstalling the OS? Reinstall the OS would mean that I have to install a lot of software and do much configuration. It's a waste of time.


title: dump out some tables of the database

text: I am using **MySQL** v5.1 on **Ubuntu** machine. I have a database named `db_test` which contain tables like `cars`, `customers`, `departments`, `prices` , and so on. I know I can use the following commands to **dump out** the `db_test` database and **dump** the database **back** into a new database in following way:               mysqldump -u username -p -v db_test > db_test.sql     mysqladmin -u username -p create new_database     mysql -u username -p new_database < db_test.sql      But for my `new_database` , I **only needs some tables from** `db_test` database, **not all the tables**. So, How can I dump out some tables from `db_test` database and dump these tables back to my `new_database` ?


title: How to stop bash replacing commands in history with asterisks ? (‘*’)

text: I have some commands replaced with `*` in the bash history, e.g.               1094  apt-get update     1095*      1096  dpkg -i /var/cache/apt/archives/libssl1.0.0_1.0.0h-1_amd64.deb      How to prevent this?


title: Reporting Network and Vital Statistics and writing to db and image

text: I am looking for a versatile tool that can write either to a MySQL db, or possibly simply even just write some image charts (that i can display on a PHP dashboard) to monitor my network health. Is the best approach to run some type of daemon on my Debian box and somehow capture data from remote hosts via SSH? Also any CPU and process info would be useful in a tool like this. I've seen it done on routers' web interfaces, and I would like to be able to capture this data.


title: Why using rpm if there's yum?

text: As we know yum is a package management system which was built on top of rpm. It's also a command line utility which is a(rudely speaking) broader version of rpm, it resolves many problems(the main is obviously dependencies) which rpm doesn't care of. Is there any particular case when using rpm command would be more appropriate than yum?


title: mounting/converting v2i image in linux

text: Is it possible to mount a `v2i` image in linux?   Is there any `mount.v2i` program?   Or is there any convertion tool to convert `v2i` image to something else like `iso` ?   How can i Mount/Convert a `v2i` image? Thanks


title: How to run programs with arguments like 'arg=val' (e.g. dd) in rc shell (Linux version ported from Plan9 OS)?

text: I'm trying to use rc shell (Linux port from Plan9 OS) and get 'syntax error' messages when using programs with arguments like **arg=val**.               ; dd if=/dev/zero of=/dev/null     syntax error     ; ls --color=auto     syntax error      My guess is that rc shell sees **=** sign and treats the statement as variable assignment, not a program run. May be there's no dd program or other programs using this type of arguments in Plan9. But how can I use it in Linux where they are widely used? I tried escaping **=** like `dd if\=... of\=`, it didn't help. I tried quoting arguments like `dd 'if=/dev/zero' 'of=/dev/null' 'bs=1M' 'count=1'` and it worked. But it's not very comfortable. Is there any other more handy way? I'm using rc shell from Ubuntu 11.10 repository: package version 1.7.1-3ubuntu1.


title: Can't access Apache log folder

text: I want to see apache log file. This is what I tried: I granted most all permissions to **apache2** folder.               hieund@hieund:/var/log$ sudo chmod a+rw apache2/*      But I can't cd to it. So I add my user to group "root", "adm"               hieund@hieund:/var/log$ groups hieund     hieund : hieund root adm sudo www-data      But I still can't... It shows:               hieund@hieund:/var/log$ cd apache2/     bash: cd: apache2/: Permission denied     drwxrwxrw- 2 root              adm     4096 2011-11-27 11:12 apache2      I'm so confused about it. How to see log files?


title: Parse and remove a series of html files

text: I'd like to remove a series of elements like:               div-id="st-head" class="noprint"      from a html file.


title: Binding Shift-Enter to insert a newline without evaluating the current expression

text: I try to bind `Shift-Enter` to insert a newline without evaluating the current expression in the terminal and in repl modes. Reading through the ArchWiki, I tried setting this in my `~/.Xmodmap` file and reloading `~/.Xmodmap` with `xmodmap ~/.Xmodmap`. This however, does not work. Here is my detailed setup: content of:                   ~/.Xmodmap:         keysym Return = Return Linefeed      `~/.Xmodmap` is automatically resourced when logging in by setting:                   if [ -s ~/.Xmodmap ]; then             xmodmap ~/.Xmodmap              fi      in my `~/.xinitrc`. _Additional relevant info:_ (1) I set vi editing mode on in my `~/.bashrc` and my `~/.inputrc`. However, results did not differ when taking these options out. (2) Using `keysym Return = Return Linefeed` was suggested here.* Other methods did not work either. (3) My `$TERM` is set to `xterm-256color`. Thanks for any help! * * * *Update: The solution suggested on this page (if still to be found) cannot work in the specific case discussed there as the programming language is using its own repl implementation. So this does not have any bearing on the case at hand.


title: Apache2 userdir enabled, but still have no access

text: I am trying to set up an apache server on my Kubuntu 13.04 laptop. I have installed the apache2 package and `sudo a2enmod userdir; sudo service apache2 restart`, but still when I visit `http://localhost/~user`, it says something like this:               Forbidden          You don't have permission to access /~user on this server.          Apache/2.2.22 (Ubuntu) Server at localhost Port 80      Result of `tail /var/log/apache2/access.log`               127.0.0.1 - - [02/Aug/2013:16:22:01 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:16:22:02 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:17:35:30 +0200] "GET /~kaiyin HTTP/1.1" 403 501 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:17:35:30 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:17:35:30 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:17:36:26 +0200] "GET /favicon.ico HTTP/1.1" 404 499 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:17:36:26 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:21:05:17 +0200] "GET /~kaiyin HTTP/1.1" 403 501 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:21:05:17 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"     127.0.0.1 - - [02/Aug/2013:21:05:17 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36"      Result of `tail /var/log/apache2/error.log`               [Fri Aug 02 21:05:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico     [Fri Aug 02 21:05:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico     [Fri Aug 02 21:06:54 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico     [Fri Aug 02 21:06:54 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico     [Fri Aug 02 21:06:59 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~kaiyin denied     [Fri Aug 02 21:06:59 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico     [Fri Aug 02 21:06:59 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico     [Fri Aug 02 21:07:17 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~kaiyin denied     [Fri Aug 02 21:07:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico     [Fri Aug 02 21:07:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico


title: can't uninstall netbeans in ubuntu

text: I am using netbeans8.0 new version, I want to uninstall lower version netbeans7.4 I tried using the following command in my `terminal`: > root@selvaksa-OEM:/usr/local/netbeans-7.4# sh uninstall.sh while executing this I get the following error:               Specified target component -nb-base/7.4.0.0.201310111528      was not found in the registry. the Installer      can continue as if the target component was not specified.     Click yes to continue, no to exit      if I click `yes`, it is asking to `uninstall` and then click `uninstall` to continue it is showing click `finish` to finish the IDE setup. > netbeans7.4 IDE


title: export PATH only once per login in zsh

text: I need to alter my `PATH` variable so I put `export PATH=$PATH:somedir` in my `$HOME/.profile` which is sourced by my `$HOME/.zshrc`. This works, yet whenever I open a new terminal (`urxvt` in `X11`), `.zshrc` and thus `.profile` is read, adding the `:somedir` to the `PATH` again. In my day to day computer use, the terminal windows come and go a lot, so after three hours of usage the `PATH` variable contains hundreds of clones of the `:somedir` appendix. How do I fix this? Is there a config file which is read by `zsh` only on login?


title: Services in /etc/rc.local prevent the system from finishing to boot

text: I start some services such as Tomcat and MySQL from a shell script `/etc/rc.local`. There is a while loop to restart the services. This loop is continuously running and my system is not booting. How can I solve this?


title: Counting files on a remote server with ssh and an expect script

text: Below is my script to take count for files which are present in remote server. But it is not working. Please help me.               #!/usr/bin/expect          spawn ssh sduser@172.0.0.2     expect "123"     send "123"     interact     destPath='/archive/Input/ERICIN/AIR/EMG'     dayStamp=`(date --date='1 day ago' '+%Y%m%d')`     if [ -d $destPath ]     then          cd $destPath          `cat 'emg_audit_1_'$dayStamp.csv|grep 'ACTPSO_NE_'$dayStamp|wc -l > /home/stsuser/eastregioncount/NEremote$dayStamp.txt`     else             echo "ERROR: Path $destPath Does not Exists."     fi


title: Fully Disable PrntScr Key

text: I recently came across a Linux feature I have never seen before, where pressing the PrntScr button on the keyboard prints a physical piece of paper with the contents of my console. I really need to find out how to disable this. It is driving me crazy. I followed a guide on creating a custom keymap, and I tried remapping it to Escape and loading my custom keymap instead, but it didn't seem to work. By disabling, I mean I would preferably like the key to not send any input at all, and ideally I would like to allow CUPS to continue running. What exactly controls this behavior? And are there any specific man pages I can read about this? **EDIT:** A little bit of additional info I should have given: I launch Openbox after logging into a TTY rather than using a DM. I am looking for a solution that would disable printing even if I were on a TTY, since PrntScr prints from a TTY as well.


title: How do I configure my tty session such that a form feed `\f` character will clear the terminal?

text: I'm connecting to a USB-serial connection on /dev/ttyACM0. The code on the sender side is sending a `\f` character at regular intervals.                   print("----------------------------\n\r");         print("-- LED CONTROLLER 00.01   --\n\r");         print("-- (c) 2013 STACEY RIECK  --\n\r");         print("----------------------------\n\r");         print("\n\f");      However, when I run `cat /dev/ttyACM0` from console, the output scrolls down my screen instead of refreshing at the top. I've dug through the current `stty` settings (by typing `stty -F /dev/ttyACM0 -a`) which gives the following output:               speed 115200 baud; rows 0; columns 0; line = 0;     intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^A; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;     flush = ^O; min = 1; time = 0;     -parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts     -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8     -opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0     -isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke      Reading the `stty --help` page gives the form feed delay (`ff0`), but doesn't indicate how to change anything else. I also found this page which indicates that I can set the FormFeed character like so `FormFeed=014`, but that syntax didn't work for my stty version (`stty --version` gives `stty (GNU coreutils) 8.5`). Putty in Windows exhibits the correct behaviour, but I'm struggling to get this to work in Debian 6. Does anyone know how I can configure stty to interpret a form feed as a terminal clear?


title: Concatenate filename inside of CSV file for each line for multiple CSV files

text: I have lots of CSV files and I need the filename of each specific CSV file in every line of each file. Original file content of `abc123.csv`:               ColVal_1;ColVal_2;ColVal_3     ColVal_4;ColVal_5;ColVal_6      New file content:               ColVal_1;ColVal_3;ColVal_3;abc123.csv     ColVal_4;ColVal_5;ColVal_6;abc123.csv      All CSV files are in the same directory. I don't want to specify the name of each file.


title: Permissions under a 700 (rwx------) directory

text: If a directory `/foo/bar/baz` has 700 (`rwx------`) for its permissions, thereby making it inaccessible to all but its owner (and the superuser), does it matter what the "group" and "other" permissions are for the directories and files under `/foo/bar/baz`? * * * What motivated this question is that I noticed that the files               /root/.bashrc     /root/.profile      in a freshly-installed Debian system have 644 (`rw-r--r--`) as their permissions. I would have expected 600 (`rw-------`) instead. But then I realized that `/root` itself has permission 700. This made me wonder whether a 700 permission of a directory would render moot the g- and o- permissions of anything under it. (If the answer is "no", i.e., if the g- and o- permissions of the contents _still_ matter even when a component along the path has 700 permissions, then I'd like to know if there's any reason _not_ to change the permissions of the files above to 600.)


title: Display conky always only on LVDS screen

text: I use the following settings in my `.conkyrc` to display a top bar on my laptop screen (LVDS).               background yes     update_interval 60     total_run_times 0     # Show umlauts     override_utf8_locale yes          # Font settings     use_xft yes     xftfont Noto Sans:style=normal:size=10     xftalpha 1          # Run in own window     own_window yes     own_window_class conky     own_window_type desktop          # Semi-transparent background     # http://th0th.me/log/conky-and-semi-transparency/     own_window_transparent no     own_window_argb_visual yes     own_window_argb_value 140          # Don't show in window lists and on all desktops     own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager     own_window_colour bcbcbc     double_buffer yes     draw_shades no     draw_outline no     draw_borders no     draw_graph_borders no     default_color 000000     alignment tl     maximum_width 1265     minimum_size 1265     #gap_x 10     gap_y 3     no_buffers yes     uppercase no     cpu_avg_samples 2      It is displayed as follows at the top of my screen: ![enter image description here](http://i.stack.imgur.com/zp6Cl.png) Now when plugging in an external monitor, I want to restrict the conky bar always to just my internal LVDS screen instead of displaying it across both screens.   * Output of xrandr without an external monitor connected   * Output of xrandr with external connected and LVDS to the right   * Output of xrandr with external connected and LVDS to the left Is it possible to tell conky to always stay on LVDS?


title: Screencast on a virtual monitor

text: is it possible to create virtual monitor (virtual area) and cast it to LAN? I would like to have something like external monitor, like Miracast, but not mirror. I think it is possible to create virtual area, record it (and compress by h264 or vp8) and share it by e.g. DLNA. Like http://realmike.org/blog/2011/02/09/live-desktop-streaming-via-dlna-on- gnulinux/ but with virtual monitor.


title: Java plugin not working with FireFox 24.3.0 on Red Hat Enterprise Linux 5.10

text: In the about:plugin tab, there is not Java plugin. I have created the symbolic link as suggested. The output of the 'ls -al' command is:               lrwxrwxrwx 1 shehab shehab   58 Jun  4 11:21 libnpjp2.so ->     /export/tools/oracle/jdk1.7.0_60/jre/lib/amd64/libnpjp2.so      The permission of the libnpjp2.so file is `-rwxr-xr-x` When I run the Java verifier at www.java.com I am getting the following error. > We are unable to verify if Java is currently installed and enabled in your > browser. > > If you have installed Java and there is an error with the verification, > there could be a configuration issue (eg. browser, Java control panel, > security settings). Try restarting your browser before trying to verify the > installation again. The Java console is not also available in the FF Tools menu. In the `~/.mozilla/firefox/lcus6cpf.default/pluginreg.dat` file I see the following:               [INVALID]     /import/projects/FPGA_tools/tools/linux/sun/jdk1.7.0_60/jre/lib/amd6/libnpjp2.so:$     1399495476000:$      Any clues what is going on? My Linux admin can run FireFox with Java with his account.


title: How to replicate a currently installed Linux system as an installation CD?

text: I have an installation of **Ubuntu 13.04** which I have customized to be just the way I want it (default applications, user accounts, desktop environment settings, ...). Now, I want to be able to basically put this system on a CD and install it to other PCs, just like a regular Ubuntu installation but with all of my customizations intact. Such a CD should be independent of my currently installed system but it should still be the regular Ubuntu (use the Ubuntu repositories for software updates etc.). How can I create such a CD? Where would I begin? * * * ## Progress and updates I installed **remastersys** following the kosnick answer which worked good:   * the ISO file was created   * I burned the ISO file on a DVD   * I inserted the DVD to another computer and installed it The issues I have now are:   * Some configuration files are missing. For example: `.vimrc` is missing   * theme files are missing (the KDE theme was not installed, but Oxigen default KDE theme was installed) How can I include them into my backup ISO?


title: Clonezilla won't boot up

text: I'm new to Ubuntu, and trying to make a backup with Clonezilla, but I can get only to the Clonezilla menu and after that I get a blank screen. I tried different USBs, but with no result. I also tried different Clonezilla versions. I have Ubuntu 12.04 and Windows 7 installed. What can cause that problem?


title: PHP exec and amixer

text: I'm trying to make php lower the dB level of amixer using exec, but it seems like php isn't able to perform the task which requires sudo-access. What should be the best way to solve this? I tried: PHP (each line is a own attempt)               echo shell_exec("sudo -u MYUSERNAME sh /var/www/html/music/volume.sh");     echo exec("sudo -u MYUSERNAME sh /var/www/html/music/volume.sh");     echo exec("sudo -u MYUSERNAME /var/www/html/music/volume.sh");      VISUDO               # Members of the admin group may gain root privileges     %admin ALL=(ALL) ALL          # Allow members of group sudo to execute any command     %sudo   ALL=(ALL:ALL) ALL          # See sudoers(5) for more information on "#include" directives:          #includedir /etc/sudoers.d     www-data ALL=(MYUSERNAME) NOPASSWD: /var/www/html/music/volume.sh


title: rsyslog: execute script on matching log event

text: I have the following line in my `/etc/rsyslog.conf`               :programname, contains, "suhosin" /var/log/suhosin.log      which logs all php security related incidents to `/var/log/suhosin.log`. That is nice, but I would like rsyslog to execute my script `action.sh` instead of logging to file. How could I do that?


title: Notification message tray?

text: Cinnamon desktop environment has a rather nifty idea of a tray in the systray that holds all notification messages till their read and cleared, and then becomes empty. How can I have the same thing in fluxbox please? I think it needs to be done via a bash script but I haven't the faintest idea where to start! This would be used on a debian testing machine under fluxbox desktop environment, but would hopefully be usable under ones like razor-qt as well.


title: pam: action on (unsuccessful) login

text: I know how to execute an action on login, by adding a line to `/etc/profile`. But that only gets executed, if the login was successful. I would like to have action executed even when login fails. For example run a script `script.sh`. I suspect, this can be set up in `pam`, but I have no idea where to start.


title: odd output from df command on a SLES

text: I know I'm not very good at math...but check out this output:               SERVER:~ # df -h /ORACLE/LOGS/b     Filesystem              Size    Used    Avail   Use%    Mounted on     /dev/mapper/LOGSdatavg-LOGSb_lv 96G 82G 9.0G    91% /ORACLE/LOGS/b     SERVER:~ #      SERVER:~ # df -i /ORACLE/LOGS/b     Filesystem              Inodes      IUsed   IFree       IUse%   Mounted on     /dev/mapper/LOGSdatavg-LOGSb_lv 12746752    30  12746722    1%  /ORACLE/LOGS/b     SERVER:~ # mount | grep -i /ORACLE/LOGS/b     /dev/mapper/LOGSdatavg-LOGSb_lv on /ORACLE/LOGS/b type ext3 (rw)     /dev/mapper/LOGSdatavg-LOGSblog_lv on /ORACLE/LOGS/b/log type ext3 (rw)     SERVER:~ #      SERVER:~ # uname -a     Linux SERVER 2.6.16.60-0.91.1-smp #1 SMP Tue Oct 18 21:40:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux     SERVER:~ # cat /etc/SuSE-release      SUSE Linux Enterprise Server 10 (x86_64)     VERSION = 10     PATCHLEVEL = 4     SERVER:~ #       Does anybody know why is 82G+9G=96G? Because I think it's 91G.


title: Content of AUTHORS file

text: Pedantic question. GNU recommend make `AUTHORS` file for list of authors and contributos of a program. But how many "levels" of authors and contributors should contain the file? E.g. I write a program `foo`, that actively use some library. Should I include authors of the library in the `AUTHORS`? It seems to yes, because total code of `foo` contain code from library. But if yes, I should include also authors of all others libraries, including standard libraries of compiler, authors of the compiler and other tools for producing final executable code, authors of OS... When I should stop?


Is it possible to compress a very large file (~30 GB) using gzip? If so, what commands, switches, and options should I use? Or is there another program (preferably one commonly available on Ubuntu distributions) that I can use to compress/zip very large files? Do you have any experience with this?


title: urxvt: how to scroll terminal output / hide mouse pointer

text: Two things that I miss in `urxvt` from `xterm` are:   1. How do you scroll up and down with the keyboard? In `xterm` I used Shift + Page Up (or Down), but that doesn't work.   2. A cool `xterm` feature is that when you type, the mouser pointer gets invisible. Anyway to get that in `urxvt`?


title: What's the right way to reuse this one-liner?

text: I recently came up with the following one-liner:               for f in *.mp3; do sha1sum $f | sed -r 's/[a-z]//g' | cut -c1-2 | awk '{ print ($1 >= 255) ? $1 - $1 + (1/3)*$1 : $1 }' | xargs -i id3v2 -T {} $f; done      I needed it because I've got an MP3 player that does not have a shuffle function. It was the only way I could find (in about an hour of trying) to give a suitably random distribution to track names. (At first I used `jot`, but this program does not update its random seed often enough to produce anything like random results. By the way, if anyone can think of a good way of doing this that actually works, I'm interested to hear about it.) I tried storing it as an alias and got:               awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:           ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                   ^ syntax error     awk: cmd. line:1: { print ( >= 255) ?  -  + (1/3)* :  }     awk: cmd. line:1:                                  ^ syntax error      It just seems like there should be a suitably easy way of storing it in my `.bashrc`. I'm aware that I could write it to a file and `chmod +x` it inside my `$path` with a shebang, but I prefer to use my `.bashrc` for things wherever possible.


title: How to configure an OpenWrt 10.03 router to forward an IPv6 connection to the clients?

text: So I have a TL-WR1043ND router with OpenWrt 10.03 on it. I have clients connected to it through the LAN ports. My ISP provides me a /64 IPv6 block, and I'm using PPPoE authentication. How can I configure this "average" set-up? (IPv6 day is coming! :) ) so that the connecting clients can use (visit sites over) IPv6 and IPv4 too? (no I don't want to use any tunneling)


title: History of Bash globbing

text: Is there a historical reason why Bash "globbing" and regular expressions are not identical? For example, I believe that in Bash `[1-2]*` matches anything that starts with a 1 or a 2 followed by anything else, while as a regular expression `[1-2]*` would match only a sequence of 1s and 2s. My Bash scripting and REGEX foo are both pretty weak and I regularly run into problems associated with these differences which made me curious was to why they are different.


title: Why Unix has ring like architecture , why not windows?

text: Unix has a architecture which looks like concentric rings, Windows has a rectangular architecture. Why is that so? Any specific reason for this kind of difference?


title: How can I make sense of wpa_supplicant's different signal level outputs?

text: I'm using wpa_supplicant 2.0 on Linux x64 with a USB wifi adapter (rtl8192cu). When I do a scan from wpa_cli, I get wildly different numbers (alternating between positive and negative) even for the same access point without moving anything. I'm trying to show this data to the user in a GUI, so I need it to be in a consistent format, preferably something I can ultimately convert to a percentage with. For example, SSID "one" sometimes has a signal level of around -40, and sometimes it's just the number 10. Even if it was consistently outputting regular dBm (negative) numbers, I have no idea what the scale is in this case, as every OS/application seems to handle it a little differently. Some documents on the web suggest valid values as -50 to -100, some say something totally different, and some make up their own numbers. Here it doesn't even seem to follow any standard:               bssid / frequency / signal level / flags / ssid     XX:XX:XX:XX:XX:01       2437    -38     [WPA2-PSK-CCMP][WPS][ESS]       one     XX:XX:XX:XX:XX:02       2427    -38     [ESS]   \x00\x00\x00\x00\x00\x00\x00          bssid / frequency / signal level / flags / ssid     02:00:00:00:01:01       2437    10      [WPA2-PSK-CCMP][ESS]    two     02:00:00:00:00:01       2437    10      [WPA2-PSK-CCMP][ESS]    three     XX:XX:XX:XX:XX:01       2437    10      [WPA2-PSK-CCMP][WPS][ESS]       one     XX:XX:XX:XX:XX:02       2427    -39     [ESS]   \x00\x00\x00\x00\x00\x00\x00          bssid / frequency / signal level / flags / ssid     02:00:00:00:01:01       2437    10      [WPA2-PSK-CCMP][ESS]    two     02:00:00:00:00:01       2437    -40     [WPA2-PSK-CCMP][ESS]    three     XX:XX:XX:XX:XX:01       2437    10      [WPA2-PSK-CCMP][WPS][ESS]       one     XX:XX:XX:XX:XX:02       2427    -39     [ESS]   \x00\x00\x00\x00\x00\x00\x00          bssid / frequency / signal level / flags / ssid     02:00:00:00:01:01       2437    10      [WPA2-PSK-CCMP][ESS]    two     02:00:00:00:00:01       2437    10      [WPA2-PSK-CCMP][ESS]    three     XX:XX:XX:XX:XX:01       2437    -42     [WPA2-PSK-CCMP][WPS][ESS]       one     XX:XX:XX:XX:XX:02       2427    -41     [ESS]   \x00\x00\x00\x00\x00\x00\x00          bssid / frequency / signal level / flags / ssid     02:00:00:00:01:01       2437    10      [WPA2-PSK-CCMP][ESS]    two     02:00:00:00:00:01       2437    10      [WPA2-PSK-CCMP][ESS]    three     XX:XX:XX:XX:XX:01       2437    10      [WPA2-PSK-CCMP][WPS][ESS]       one     XX:XX:XX:XX:XX:02       2427    -41     [ESS]   \x00\x00\x00\x00\x00\x00\x00      Is there a way to convert these signal levels into a consistent scale I can present to the user? Also, if the user uses a different wifi adapter/driver, will the signal level be in an even different format that I need to worry about?


title: How to create user credentials / policies allowing a certain number of cores / CPUs on a linux cluster

text: We are having a cluster, and on that cluster we have number of users, some users are important and some are temporary or not having that same importance. Is it possible to assign users so that they can be restricted to use only the number of cores/CPUs allotted to them and not more than that?


title: loop to paste specific files in different directories

text: I some directories that contain a similarly named file eg (*Sample_name*.base.coverage.txt). And I would like to paste all of the *base.coverage.txt files together. I have something written, but its not quite right as I don't think I am actually pasting them together.               cd /g/bo/vir/analysis     find -type d  |     while read dir; do     if [ -f $dir/*.base.coverage.txt ]; then         paste  $dir/*.base.coverage.txt >> paste_all_l30.p90.base.cov.norm          fi     done      I am also thinking of a different loop method, but I am unsure how to get the list of directories into an array.               for x in $dir; do cat /$x/*.base.coverage.txt;done > paste_all_l30.p90.base.cov.norm      Any help? thanks


title: ssh-agent: don't forward authentication for the whole keyring

text: I have two private ssh keys :   * one to access my _personnal_ machines,    * one to access servers at my _job_.  I add those two keys to my ssh-agent with `ssh-add`. Now, when I do `ssh -A root@jobsrv` I would like to forward agent authentication only for my job key (the one I'm using to connect `jobsrv`). I want this because anyone having root access to `jobsrv` can use my agent to authenticate himself to my personnal machines. Is there a way to achieve this isolation?


title: What's the most appropriate directory where to place files shared between users?

text: Or: **where can I put files belonging to a group?** Suppose there are two users on a Unix system: _joe_ and _sarah_. They are both members of the _movies-enthusiast_ group. Where should I put their movie files?   * `/home/{joe,sarah}/movies` are not appropriate because those directories belongs to _joe_ / _sarah_ , not to their group;   * `/home/movies-enthusiast` is not appropriate too, because _movies-enthusiast_ is a group, not a user;   * `/var/movies-enthusiast` might be an option, but I'm not sure this is allowed by the FHS;   * `/srv/movies-enthusiast` might be an option too, however movies are not files required by system services.


title: dircolors on zsh: Unrecognized keywords: MULTIHARDLINK, RESET & CAPABILITY

text: I am trying to get the solarized color theme to work in my terminal. I read the instructions here but I get the following dircolors error:               dircolors: `/home/avazquez/.dircolors_zsh':90: unrecognized keyword RESET     dircolors: `/home/avazquez/.dircolors_zsh':94: unrecognized keyword MULTIHARDLINK     dircolors: `/home/avazquez/.dircolors_zsh':103: unrecognized keyword CAPABILITY      when running:               if [ -x /usr/bin/dircolors ]; then         test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"     fi      from my `.zshrc` in zsh (latest version) (which I remotely access `ssh -X` from `gnome-terminal` in Ubuntu). The path to the `.dircolors` file in question is here and the troubling lines seem to be some of the special files definitions:               ## Special files          NORMAL 00;38;5;244 # no color code at all     #FILE 00 # regular file: use no color at all     RESET 0 # reset to "normal" color     DIR 00;38;5;33 # directory 01;34     LINK 01;38;5;37 # symbolic link. (If you set this to 'target' instead of a      # numerical value, the color is as for the file pointed to.)     MULTIHARDLINK 00 # regular file with more than one link     FIFO 48;5;230;38;5;136;01 # pipe     SOCK 48;5;230;38;5;136;01 # socket     DOOR 48;5;230;38;5;136;01 # door     BLK 48;5;230;38;5;244;01 # block device driver     CHR 48;5;230;38;5;244;01 # character device driver     ORPHAN 48;5;235;38;5;160 # symlink to nonexistent file, or non-stat'able file     SETUID 48;5;160;38;5;230 # file that is setuid (u+s)     SETGID 48;5;136;38;5;230 # file that is setgid (g+s)     CAPABILITY 30;41 # file with capability     STICKY_OTHER_WRITABLE 48;5;64;38;5;230 # dir that is sticky and other-writable (+t,o+w)     OTHER_WRITABLE 48;5;235;38;5;33 # dir that is other-writable (o+w) and not sticky     STICKY 48;5;33;38;5;230 # dir with the sticky bit set (+t) and not other-writable     # This is for files with execute permission:     EXEC 01;38;5;64


title: Centos 6.4 (64) skype 4.2 no sound notification

text: Everything works fine. I can hear and others can hear me. But no sound notification. In options -> sound devices "Make a test sound" button is disabled. Other button show "PulseAudio server (local)". At the bottom:It appears your system has PulseAudio running: to change sound settings you need to use your desktop manager volume control or PulseAudio volume control. In gnome volume control alert is on and is unmuted. How can I fix that?


title: What is the purpose of Apache2's configuration files?

text: Why does Apache2 have multiple configuration files? What are their roles? I found some information about older Apache versions, but it's usually deprecated, and the official Apache documentation doesn't explain the logic of splitting up the configuration files and what they're for


title: Thunar doesn't auto-mount USB devices with default setup

text: After installing and configuring Thunar Volume Manager for Arch Linux it doesn't mount any USB devices automatically:               $ thunar     thunar-volman: Unsupported USB device type.     thunar-volman: Unsupported USB device type.     thunar-volman: Could not detect the volume corresponding to the device.     thunar-volman: Could not detect the volume corresponding to the device.      (Both messages are printed twice when inserting a single USB drive.) Polkit seems to be running as expected:               $ loginctl show-session $XDG_SESSION_ID     Id=c1     Timestamp=Tue 2013-11-19 20:54:41 GMT     TimestampMonotonic=33281762     VTNr=7     Display=:0.0     Remote=no     RemoteUser=root     Service=slim     Scope=session-c1.scope     Leader=308     Audit=0     Type=x11     Class=user     Active=yes     State=active     IdleHint=no     IdleSinceHint=0     IdleSinceHintMonotonic=0     Name=username      There are a bunch of random tips in this thread, but at least some of them seem at odds with the wiki: `gvfs` is mentioned, although the wiki only mentions it as a requirement for browsing remote locations. Manual mounting works fine:               $ sudo mount /dev/sde1 /media/foo     $ mount | grep sde1     /dev/sde1 on /media/foo type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)


title: How do I find out if my wireless card supports 5ghz?

text: I have the               03:00.0 Network controller: Intel Corporation Centrino Wireless-N 2200 (rev c4)      Hwo do I find out if that card/driver support 5 GHz?


title: Thunar crashes when trying to unmount removable devices

text: After manually mounting a USB device it shows up in Thunar with the standard "eject" icon next to the device name. However, clicking this invariably results in a crash with the following output:               $ thunar     (thunar:1906): GLib-CRITICAL **: g_source_attach: assertion 'source->context == NULL' failed     (thunar:1906): GLib-GObject-CRITICAL **: g_object_get_data: assertion 'G_IS_OBJECT (object)' failed     Segmentation fault (core dumped)      The device is _not_ unmounted. Nautilus simply informs me that it is "Unable to eject [device name] - Not authorized to perform operation," so that's clear enough. Is it necessary to configure Thunar to show such a message instead of crashing?


title: Splitting bash command line argument

text: Is this the best way to split up a colon separated bash command line argument?               #!/bin/bash     hostlist=`echo $1| awk '{split($0,Ip,":")} END{for (var in Ip) print Ip[var];}'`     for host in $hostlist      do       ....      done


title: Determine whether XBOX 360 is on

text: I want to determine in close to real-time (up to 5s lag would be OK) when my XBOX 360 is switched on or off over the network. The XBOX gets a static IP address which I know. However the XBOX seems to be very much like a black hole in that it does not respond to pings and seems to have no ports open all the time (TCP 1029 is open when in XBOX Home, but not when actually playing a game). What other ways could there be to find out whether the XBOX is online?


title: Group and lock certain windows to a workspace in Gnome 3

text: Is it possible to group certain windows to always occupy the same area and always be in the same workspace? If so, how? For example I'm using Eclipse and I have multiple detached windows and for some reason lots of times these windows get move between workspaces and moved around too. I would like to keep them all on workspace 1 for example.


title: How to generate new var names on the fly

text: I'm trying to generate dynamic var names in a shell script to process a set of files with distinct names in a loop as follows:               SAMPLE1='1-first.with.custom.name'     SAMPLE2='2-second.with.custom.name'          for (( i = 1; i <= 2; i++ ))     do       echo SAMPLE{$i}     done      I would expect the output:               1-first.with.custom.name     2-second.with.custom.name      but i got:               SAMPLE{1}     SAMPLE{2}      Is it possible generate var names in the fly?


title: Linux script or program to shorten filenames

text: I haven't had much success in finding a Linux version of namemangler, which I need to rename 1000 of files so they are readable on Windows. Does anyone know of a Linux program that can do this? If not, then a script might work as I only need to rename all files in a folder to, say, the first 16 characters. I suspect that the script route might be worth going down but not sure where to start.


title: Use `less` to view comma-aligned data

text: I have a _big_ CSV file. I would like to view my file using `less` or some command like it which doesn't have to read the whole file at once to show me part of it. Is there a command out there which can show me my file in comma-aligned columns?


title: How to pipe md5 hash result in shell

text: I am looking for a simple way to pipe the result of `md5sum` into another command. Something like this:               $echo -n 'test' | md5sum | ...      My problem is that `md5sum` outputs not only the hash of the string, but also an hypen, which indicates that the input came from stdin. I checked the man file and I didn't find any flags to control output.


title: TWAIN API support on FreeBSD

text: Does FreeBSD support in any way the TWAIN API? If not, what is the API that could be used to read data from imaging devices (webcams) - preferably in a portable way.


title: Run two commands based upon output of first

text: I'm new to unix commands but have a need. I have a mixed Win/Mac environment where I use Win AD for user accounts and the Mac as the file storage. There is a command on Mac that automatically creates the home folders for users and sets appropriate permissions 'createhomedir -s' in my situation. The output of this command is:               creating home directories for (cloud.mc.net.mackillop)     created (/Network/Servers/cloud.mc.net.mackillop/data/18goodki/files)     created (/Network/Servers/cloud.mc.net.mackillop/data/18langre/files)     created (/Network/Servers/cloud.mc.net.mackillop/data/16gibsga/files)     created (/Network/Servers/cloud.mc.net.mackillop/data/17gibssa/files)     created (/Network/Servers/cloud.mc.net.mackillop/data/99bowmam/files)     created (/Network/Servers/cloud.mc.net.mackillop/data/99newtal/files)     created (/Network/Servers/cloud.mc.net.mackillop/data/99daypa/files)      What I need to then also do is set additional permissions on these newly created home folders, to provide myself with read/write access as well as _www (Apache web host) as we use OwnCloud.org to supply web based cloud access to users files. These are the two commands I run to achieve this:               sudo chmod -R +ai "_www allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" data          sudo chmod -R +ai "ittech allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,file_inherit,directory_inherit" data      Running these two commands over the entire 'data' folder of all users and subfolders takes ages (973 user accounts!) and really slows down the server. What I would like to to is only run these two commands on newly created users from the first command to greatly reduce time and overhead. I've been reading on grep, awk etc but not really sure how to achieve this. So basically I want to get `createhomedir -s` to run, then extract each username from the output of this command, then use these usernames to run the two chmods in place of the 'data' folder (/data/%USERNAME% instead).


title: using xargs to grep multiple patterns

text: I have a file that has terms I want to grep for, with each term being one line in the file. I was thinking I could do this with xargs. What I'm able to glean from examples from the man page like this               find ./work -print0 | xargs -0 rm      is that xargs appends the output of the pre-pipe command to the end of its arguments. So if the find returned `report.doc`, then xargs would construct `rm report.doc`. Is this understanding correct? So since I want the values in my file to be in the middle of the grep command, I need to specify a placeholder. In playing around, I tried `{}`, but it didn't work:               $> cat strings.txt | xargs grep {} subdirectory/*     grep: string1: No such file or directory     grep: string2: No such file or directory      Is xargs the right tool? If so, what is the syntax?


title: Slow down a process without affecting other processes

text: 1. I have a program. When it is running, the CPU temperature raise from 50 to 80 Celcius, which is my major concern.  I can control the CPU frequency to slow it down, but other processes will be slowed down as well which I don't want. Is it possible to slow down a particular process without affecting other processes to keep the CPU cool? My OS is Ubuntu 10.10.   2. I tried to set the priority of the process by `nice -n 15 myprogram`, and am not sure if that will work. The CPU is 77 Celcius high.  Does `nice` only set relative priority of a process wrt other processes? I.e., if other processes are not running, will this niced process run fast? I would like to set the process to be running slow all through. Thanks and regards!


title: prepend digit to filenames which begin with digits (with zmv, please)

text: I have a directory with files named like `19.png`, `20.jpeg`, and `README00.txt` I want to rename these to `119.png`, `120.jpeg`, and `README00.txt`. I would like to do this with zmv as it works well in so many other cases, but I cannot get zmv to make an action based on the first character of a filename being a digit. I can easily get `1README00.txt`, but that is not what I desire.


title: Cygwin installation message

text: I want to ask about this error? The error states : > This is the first time you've installed Cygwin 1.7.x. Please be advised that > this is a major release. If you have not done so already, please check out > the documentation at http://cygwin.com/ to see how the upgrade could > potentially affect any existing Cygwin instalation.


title: Is there a way to get German text to speech in festival?

text: Searching for info about German text to speech, I came across a "Dialog-based Human-Technology Interaction by Coordinated Analysis and Generation of Multiple Modalities", as well as this page, which I can't really parse. I mean, it _mentions_ festival several times... Hm... I've loaded voices and languages into `festival` using `apt-get`, for Finnish, Spanish, Czech, and Russian. I've also loaded voices into `festival` by `wget`-ing some files and renaming them in accordance with festival's directory structure. So... is there a way to use either of those two methods to enable German text to speech on my machine?


title: Find web server group? Permissions problem

text: I'm trying to make Wordpress work. I currently have this error message: > Could not create directory. /var/www/html/wp-content/upgrade/theme_name when trying to upload a theme. This is the permissions set to /var/www/html/wp-content/upgrade/ > drwxrwxr-x 3 ec2-user apache 4096 Jun 21 00:30 upgrade chmod 777 upgrade makes the error go away. But that is not considered best practice. However, I think this should work too... why not? _I guess the web server may not be included by the above permissions. What group should I use to allow the web server to write?_ (My setup is Amazon EC2, Amazon Linux AMI with httpd)


title: How does the linux update manager work?

text: I want to know how the update manager for linux works. For instance, how does my linux distro check to see if there are any available updates for download and which servers to download these updates? If I am dealing with 3rd party software not apart of the main distro, how do those programs interact with my update manager to notify me that those programs have available updates? Lastly what would be some good literature on the subject?


title: grub-install no bias drive

text: While trying to fix this problem, I came up with tyring to use a live CD and running grub-install. I mount the directory holding my new linux install files (in /dev/sda7) with:               su -     mkdir /mnt/tmp     mount /dev/sda7 /mnt/tmp      Then I when I try grub-install I get this:               [root@localhost tmp]# grub-install --root-directory=/mnt/tmp/ /dev/sda     /dev/sda does not have any corresponding BIOS drive.      I read that the problem can be solved with the recheck flag, but I get:               Probing devices to guess BIOS drives. This may take a long time.     /dev/mapper/../dm-0 does not have any corresponding BIOS drive.      How can I fix this problem?


title: Resume mirroring via wget

text: I want to mirror all files for example KDEs to local directory. I used               $ wget -m -P ./kde http://alien.slackbook.org/ktown/current/4.12.1/x86_64/kde/      But after a while it broke. To continue I added `-c` option and tried again. As :               $ wget -c -m -P ./kde http://alien.slackbook.org/ktown/current/4.12.1/x86_64/kde/      But got the following error (I get error in second time I tried if it downloaded `index.html` previously): > Saving to: > './kde/alien.slackbook.org/ktown/current/4.12.1/x86_64/kde/index.html' > > [ <=> ] 0 --.-K/s in 0s > > Cannot write to > './kde/alien.slackbook.org/ktown/current/4.12.1/x86_64/kde/index.html' > (Success). Converted 0 files in 0 seconds. And downloading breaks again at this point. How should I continue a `wget` mirroring?


title: How can I create a "base" for other aliases to refer to and enable cd base/x command directories?

text: I have `.bash_aliases` with:               alias c1='cd /home/me/code/php'     alias c2='cd /home/me/code/jquery'     alias c3='cd /home/me/code/ruby'     alias c4='cd /home/me/code/c'      How can I DRY this up and loosen the coupling to that entire directory structure? I have tried:               alias code_base='/home/me/code/'     alias c1='cd code_base/php'     alias c2='cd code_base/jquery'     alias c3='cd code_base/ruby'     alias c4='cd code_base/c'      but I get the error 'is a directory' when I try and use `c1` through `c4`. I also tried:               alias c1='cd `code_base`/php'      but that didn't work; it gave me: > bash: cd: /php: No such file or directory I tried `alias c1='cd '+`work`+'/php'`, but that gave me the directory error too.