title: How do I see how many blocks I have free on my filesystem?

text: I know df is supposed to provide this information, but when I run df it shows the number of 1k blocks free, yet my filesystem is using 4k blocks. I could simply divide by four of course, but this wouldn't necessarily be correct, due to the difference in granularity. For example, four 1k files would use four 1k blocks on a filesystem using 1k blocks, but four 1k files would use four 4k blocks on a filesystem using 4k blocks. (So dividing by four would produce the wrong answer.)


title: How to get an Wacom Intuos CTH-480 to work under Easy Peasy 1.6 (Ubuntu 10.04)?

text: Is there any way to make a Wacom Intuous CTH-480 work under Easy Peasy 1.6 (Ubuntu 10.04)? I have installed the Wacom Driver files according these instruction, replacing 3.7 with 2.6.30, as Easy Peasy 1.6 uses kernel 2.6.32-21-generic: http://matthewwittering.com/blog/ubuntu-tips/how-to-install-a-wacom-intuos- ctl-480-tablet-on-ubuntu.html and I have installed               sudo apt-get install xserver-xorg-input-wacom      The device is now detected as follows:               ~$ xinput list          ⎡ Virtual core pointer                      id=2    [master pointer  (3)]          ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]          ⎜   ↳ USB Optical Mouse                         id=10   [slave  pointer  (2)]          ⎜   ↳ SynPS/2 Synaptics TouchPad                id=14   [slave  pointer  (2)]          ⎜   ↳ Macintosh mouse button emulation          id=15   [slave  pointer  (2)]          ⎜   ↳ Wacom Intuos PT S Finger pad              id=16   [slave  pointer  (2)]          ⎜   ↳ Wacom Intuos PT S Finger                  id=17   [slave  pointer  (2)]          ⎜   ↳ Wacom Intuos PT S Pen eraser              id=18   [slave  pointer  (2)]          ⎜   ↳ Wacom Intuos PT S Pen                     id=19   [slave  pointer  (2)]          ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]          ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]          ↳ Power Button                              id=6    [slave  keyboard (3)]          ↳ Video Bus                                 id=7    [slave  keyboard (3)]          ↳ Power Button                              id=8    [slave  keyboard (3)]          ↳ Sleep Button                              id=9    [slave  keyboard (3)]          ↳ Dell Dell USB Keyboard                    id=11   [slave  keyboard (3)]          ↳ WebCam                                    id=12   [slave  keyboard (3)]          ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]                $lsusb | grep Wacom     Bus 003 Device 002: ID 056a:0302 Wacom Co., Ltd     ~$ lsmod | grep wacom     wacom                  43114  0 Still, programs such as Mypaint (I am using version 0.8.2) don't 'see' the device.   * Can this be made to work?   * Do I have to upgrade to a newer Ubuntu distro / Kernel (I'd rather not, as I am perfectly satisfied with my current OS)? In case it is relevant: I'm using an Aspire One notebook.


title: Do I have to swap IP sets, or can I add/remove on the fly?

text: I was wondering about the semantics of `ipset(8)`. Is it possible to add a rule matching a set to `iptables` and then manipulate the set, or can I only create a set and swap it for an older set in order to apply it to an `iptables` rule matching the name? **I.e. can I add/remove to/from an IP set ad hoc, or can I exchange whole sets while the sets are in active use?** * * * The reason I ask is this is as follows. Say I create a set               ipset create PCs hash:ip     ipset add PCs 1.1.1.1     ipset add PCs 2.2.2.2      ... et cetera. And a rule that allows access to HTTP:               iptables -A INPUT -p tcp --dport 80 -m set --set PCs src -j ACCEPT      What happens when I run:               ipset add PCs 3.3.3.3      will the `iptables` rule now take immediate effect for IP 3.3.3.3 as well? I saw it's possible to use `-j SET --add-set ...` to manipulate IP sets ad hoc from within `iptables` rules. This makes me think it should work to manipulate a set at any given point. However, the `ipset` project site seems to suggest that swapping a new (adjusted) set for another is the better alternative. Be it via `ipset swap` or via `ipset restore -!`. Can anyone shed light on this?


title: Is there a command which lists installed applications based on whether they use GTK2 or GTK3?

text: I'm using Lubuntu 12.10 and I know of two ways to tell if a specific program uses GTK2 or GTK3:   * I can make changes in `~/.themes/theme_name/gtk-2.0/gtkrc`, for example, and see if a specific application's appearance is altered.   * I can run `ldd /usr/bin/specific_application | grep gtk` Both these work on a **per-app** basis. Is there a way to get a list of installed applications based on whether they use GTK2 or GTK3?


title: RTL8180 kernel module freezing with Realtek RTL8185L chipset

text: I've recently purchased a PEAK wireless PCI board. I needed a card with removable antenna capability to test a high gain antenna that I had laying around. Went to my local hardware store and I got this one. It comes with a RTL8185L chip. In the times of kernel 2.6, Realtek had a driver that seamed to have solved the problem. I've downloaded that one, but it does not compile under kernel 3.10 (Yes, i was going for wishful thinking). My box is a Slackware 14.0 (updated from current) with kernel 3.10.5-smp. Has anyone had any issue with kernel module rtl8180 freezing the system after an `ifconfig wlanN up`?


title: Speed up zgrep on a multi-core computer

text: I'm running `zgrep` on a computer with 16 CPUs, but it only takes one CPU to run the task. Can I speed it up, perhaps utilize all 16 cores? P.S The IO is just fine, I could just copy the gzipped file into memory disk


title: what do I need to do with "man: can't set the locale; make sure $LC_* and $LANG are correct"

text: I typed `man sudoers` but got               man: can't set the locale; make sure $LC_* and $LANG are correct     No manual entry for sudoers      What does this mean?


title: How do I know a specified user's permissions on Linux with root access?

text: I have root access to my local server. And some days ago my colleague created a user on that server, giving me the uesrname and password. But the user has a minimized permissions. Like the user can't even create a file under its own home directory. Is there any concept about "the permissions of a user"? If there is, how do I check/modify it?


title: Proper options for openssl with simple ciphertext

text: Last weekend there was a cryptographic challenge where the ciphertext was the following hex:               FC 89 BF C2 B0 5F 1C 2E 64 B8 78 43 92 78 3A C9      I know for sure that this is encrypted using AES/Rijndael 128-bit ECB, the key is REDRYDER and a solution for this has already been posted to confirm this. The plain text is FLAG=DAISY. I wrote a simple PHP mcrypt script that decrypts this with no salt or no IV string and it decrypts properly. However, when I tried to use openssl, I don't get the plain text:               echo "0: FC 89 BF C2 B0 5F 1C 2E 64 B8 78 43 92 78 3A C9" | xxd -r | openssl aes-128-ecb -d -k REDRYDER -nosalt -nopad ; echo      This just outputs some binary data. I also tried passing the input through dd conv=swab to do a byte swap. What am I doing wrong?


title: ssh-agent: How to set it up so my CentOS server will only ask for passphrase once?

text: On my Macbook, my SSH private key is encrypted, but I never have to re-enter the passphrase even if I reboot the machine. The system must be unlocking it along with my user account. Is it possible to set it up the same way for my user account on a CentOS server? There should be some sort of option that would basically encrypt the privatekey with the user account password (or at least encrypt the passphrase with the user password). I do not want the private key in plaintext on the hard disk, and would prefer not to have to enter many passwords. If the answer is no, then I probably will need to enter it once each time the server is booted. That is less good, but since that should be a rare occurrence, that would be tolerable.


title: How do I turn off the backlight but leave the LCD on?

text: How do I set zero brightness on laptops that have a nonzero minimum brightness on the brightness control? The solution should work regardless of X. I.e. it should also work in the virtual terminals.


title: Prevent GRUB from showing up by default?

text: Whenever I boot on Ubuntu, I see the entire GRUB menu by default. Is there a way I could make it simply auto-boot if uninterrupted within X seconds? I remember that this was the case on previous releases of Ubuntu, it would only show the GRUB menu if you held down a button during the boot. How can I make GRUB do this by default and just get on with the boot process?


title: How does ssh server defines which key to use first having more than 1?

text: I have just found out that on my Ubuntu machine I have more public keys to serve in `/etc/ssh` directory:               $ ll /etc/ssh     total 296K     -rw-r--r-- 1 root root 237K lip  3  2013 moduli     -rw-r--r-- 1 root root 1.7K kwi 17 12:43 ssh_config     -rw-r--r-- 1 root root 1.7K mar 25 23:06 ssh_config.dpkg-old     -rw-r--r-- 1 root root 1.7K kwi 17 12:43 ssh_config.lwidentity.bak     -rw-r--r-- 1 root root 1.7K mar 25 23:06 ssh_config.lwidentity.orig     -rw-r--r-- 1 root root 2.6K kwi 17 12:43 sshd_config     -rw-r--r-- 1 root root 2.6K kwi 17 12:43 sshd_config.lwidentity.bak     -rw-r--r-- 1 root root 2.5K mar 25 23:06 sshd_config.lwidentity.orig     -rw------- 1 root root  672 sty  4  2014 ssh_host_dsa_key     -rw-r--r-- 1 root root  605 sty  4  2014 ssh_host_dsa_key.pub     -rw------- 1 root root  227 sty  4  2014 ssh_host_ecdsa_key     -rw-r--r-- 1 root root  177 sty  4  2014 ssh_host_ecdsa_key.pub     -rw------- 1 root root 1.7K sty  4  2014 ssh_host_rsa_key     -rw-r--r-- 1 root root  397 sty  4  2014 ssh_host_rsa_key.pub     -rw-r--r-- 1 root root  338 kwi 17 12:36 ssh_import_id      Having this and :               $ find /etc/ssh  ~/.ssh -name "*.pub" -exec ssh-keygen -l -f {} \;     256 da:f0:03:79:68:f8:04:b1:07:d8:8f:fe:3d:91:0e:aa  root@icanseeyou (ECDSA)     2048 3f:d7:9f:68:1b:b3:1a:a9:47:5b:47:5b:27:88:8c:aa  root@icanseeyou (RSA)     1024 7f:24:ca:0f:e3:84:8e:f9:1c:b3:49:d1:f4:39:a1:aa  root@icanseeyou (DSA)     4096 ae:86:c9:88:36:36:37:2f:84:5b:83:b4:45:17:41:aa  USER@icanseeyou (RSA)      I always get the ECDSA key as the first one (the one that is served)               $ ssh -p 222 USER@localhost     The authenticity of host '[localhost]:222 ([127.0.0.1]:222)' can't be established.     ECDSA key fingerprint is da:f0:03:79:68:f8:04:b1:07:d8:8f:fe:3d:91:0e:aa.     Are you sure you want to continue connecting (yes/no)?       `/etc/ssh/sshd_config`                11 HostKey /etc/ssh/ssh_host_rsa_key      12 HostKey /etc/ssh/ssh_host_dsa_key      13 HostKey /etc/ssh/ssh_host_ecdsa_key      How does this work ? Why is the ECDSA key the first one to be served ?


title: how does time command work

text: So when I type `time <some_program>` I have nice CPU time measurement. But exactly how is this achieved? Also does this have any performance impact on the `some_program`?


title: How to open cups in debian squeeze to all clients

text: The standard CUPS configuration on debian squeeze allows only access from localhost. I would like to allow all LAN users the same permissions. The LAN is behind a secured router. Access to the eb interface and ürinting and full job control is the minimal that all clients should be able to do without login. What do I need to change and where in my cups configuration? * * * Edit For others looking for an answer, try this howto http://dev.shyd.de/2011/03/debian-printserver-scanserver-hplip-cups-sane/


title: How do I disable the left-(meta|windows) key binding in gnome-shell

text: I changed the keybinding to `Show the activities overview` in the panel `System Settings / Keyboard / Shortcuts` to `Shift-ESC`, but the left-meta or left-windows key is still bringing it up. How do I disable that binding?


title: What does sdptool do in this script?

text: Here I want to know about this `sdptool` command does in the following script snippet:               if [ `sdptool browse $BD_ADDR | wc -l` -lt 5 ]      I understand `sdptool browse $BD_ADDR` as well as `wc -l` -- it's used for new line counts in result of `sdptool browse $BD_ADDR`. but what about `-lt 5`?


title: Distributions that only ships Python 3.X

text: Is it possible currently? I tried to remove python in Fedora 19 but yum depends on it.


title: Using mutt to fetch email from hotmail?

text: OK so I have mutt installed. But can't properly configure my hotmail acccount. I need some sample for hotmail configuration.


title: Can't compile rTorrent with xmlrpc-c

text: I'm trying to setup xmlrpc-c with rTorrent but for some reason I failed:               checking for XMLRPC-C... failed      Here's my build script:               output_dir=/home/world/apps          curl -Lso - http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c%20Super%20Stable/1.25.24/xmlrpc-c-1.25.24.tgz/download | tar xzf -     cd xmlrpc-c-1.25.24     ./configure --prefix=$output_dir     make && make install     cd ..          curl -Lso - http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-2.2.10.tar.bz2 | tar xjf -     cd libsigc++-2.2.10     ./configure --prefix=$output_dir     make && make install          export sigc_CFLAGS=-I$output_dir/include     export sigc_LIBS=$output_dir/lib          curl -Lso - http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.3.tar.gz | tar xzf -     cd libtorrent-0.13.3     ./configure --prefix=$output_dir     make && make install     cd ..          export libtorrent_CFLAGS=-I$output_dir/include     export libtorrent_LIBS=$output_dir/lib     export PATH=$PATH:$output_dir/bin          curl -Lso - http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz | tar xzf -     cd rtorrent-0.9.3     ./configure --with-xmlrpc-c=$output_dir/bin/xmlrpc-c-config --prefix=$output_dir     make && make install      How come it' fails to check for XMLRPC-C?


title: xvfb-run aborting on cluster

text: I'm trying to run a python script with `xvfb-run` on a cluster using `SLURM`; when I use an interactive session (`srun`) it works fine, but when submitting to a queue (`sbatch`) it aborts/fails without much information.               /usr/bin/xvfb-run: line 166: 34566 Aborted                 DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1      in /usr/bin/xvfb-run:               ...     164: # Start the command and save its exit status.                                                                                165: set +e     166: DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1     167: RETVAL=$?     168: set -e     ...      any ideas why this would fail? I've tried specifying my .Xauthority file, but that doesn't help, i.e.               xvfb-run --server-args="-screen 0 1024x768x24" -f ~/.Xauthority python DrawStreams.py      EDIT: the problem does **not** occur if I just print out the `env` (i.e. if I replace 'python DrawStreams.py' with 'env'). So its some sort of combination of the job queue, xvfb-run, **and** python all together...


title: Packages still not found even after apt-get update

text: I am working on a Linux Mint 16 computer and since recently, every time I want to install something via `apt-get install`, the log message says that the packages couldn't be authenticated. I go ahead and try to install them without authetication and it turns out most of the packages are not found. At the end of the process, the console message suggests me to use `apt-get update` or `\--fix-missing`. So that's what I do:`sudo apt-get update` and immediateley after I try again to install with `sudo apt-get install nginx` but I still get the same message error. What is the problem? Am I missing something? Note: I would have copy/pasted the logs but they are in Spanish so they would probably wouldn't have been of much help to most. UPDATE: I managed to get the logs in English thanks to @Flup. Here they are: For `apt-get install`:               ricardo@toshi ~$ sudo apt-get install nginx     Reading package lists... Done     Building dependency tree            Reading state information... Done     The following packages were automatically installed and are no longer required:       libnet-daemon-perl libplrpc-perl     Use 'apt-get autoremove' to remove them.     The following extra packages will be installed:       nginx-common nginx-full     The following NEW packages will be installed:       nginx nginx-common nginx-full     0 upgraded, 3 newly installed, 0 to remove and 17 not upgraded.     Need to get 404 kB of archives.     After this operation, 1246 kB of additional disk space will be used.     Do you want to continue [Y/n]? Y     WARNING: The following packages cannot be authenticated!       nginx-common nginx-full nginx     Install these packages without verification [y/N]? y     Err http://archive.ubuntu.com/ubuntu/ raring-updates/universe nginx-common all 1.2.6-1ubuntu3.3       404  Not Found [IP: 91.189.88.153 80]     Err http://security.ubuntu.com/ubuntu/ raring-security/universe nginx-common all 1.2.6-1ubuntu3.3       404  Not Found [IP: 91.189.92.200 80]     Err http://security.ubuntu.com/ubuntu/ raring-security/universe nginx-full amd64 1.2.6-1ubuntu3.3       404  Not Found [IP: 91.189.92.200 80]     Err http://security.ubuntu.com/ubuntu/ raring-security/universe nginx all 1.2.6-1ubuntu3.3       404  Not Found [IP: 91.189.92.200 80]     Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/n/nginx/nginx-common_1.2.6-1ubuntu3.3_all.deb  404  Not Found [IP: 91.189.92.200 80]     Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/n/nginx/nginx-full_1.2.6-1ubuntu3.3_amd64.deb  404  Not Found [IP: 91.189.92.200 80]     Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/n/nginx/nginx_1.2.6-1ubuntu3.3_all.deb  404  Not Found [IP: 91.189.92.200 80]     E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?      For `apt-get update`:               ricardo@toshi ~$ sudo apt-get update     Hit http://dl.google.com stable Release.gpg     Ign http://es.archive.ubuntu.com raring Release.gpg                                                                                Hit http://archive.canonical.com raring Release.gpg                                                                                Hit http://dl.google.com stable Release.gpg                                                                                Hit http://ppa.launchpad.net raring Release.gpg                                                                                Ign http://es.archive.ubuntu.com raring Release.gpg                                                                                Ign http://archive.ubuntu.com raring Release.gpg                                                                                Hit http://dl.google.com stable Release                                                                                Hit http://archive.canonical.com raring Release                                                                                Ign http://es.archive.ubuntu.com raring Release                                                                                Hit http://ppa.launchpad.net raring Release.gpg                                                                                Ign http://archive.ubuntu.com raring-updates Release.gpg                                                                                Hit http://dl.google.com stable Release                                                                                Ign http://security.ubuntu.com raring-security Release.gpg                                                                                Ign http://es.archive.ubuntu.com raring Release                                                                                Hit http://archive.canonical.com raring/partner amd64 Packages                                                                                Ign http://archive.ubuntu.com raring Release                                                                                Hit http://ppa.launchpad.net raring Release                                                                                Hit http://downloads-distro.mongodb.org dist Release.gpg                                                                                Hit http://dl.google.com stable/main amd64 Packages                                                                                Get:1 http://packages.linuxmint.com olivia Release.gpg [198 B]                                                                                Ign http://archive.ubuntu.com raring-updates Release                                                                                Hit http://archive.canonical.com raring/partner i386 Packages                                                                                Hit http://dl.google.com stable/main i386 Packages                                                                                Hit http://ppa.launchpad.net raring Release                                                                                Ign http://security.ubuntu.com raring-security Release                                                                                Ign http://archive.ubuntu.com raring/main amd64 Packages/DiffIndex                                                                                Hit http://ppa.launchpad.net raring/main Sources                                                                                Ign http://archive.ubuntu.com raring/restricted amd64 Packages/DiffIndex                                                                          Get:2 http://packages.linuxmint.com olivia Release [18.5 kB]                                                                                Hit http://ppa.launchpad.net raring/main amd64 Packages                                                                                Ign http://archive.ubuntu.com raring/universe amd64 Packages/DiffIndex                                                                            Ign http://security.ubuntu.com raring-security/main amd64 Packages/DiffIndex                                                                      Hit http://dl.google.com stable/main amd64 Packages                                                                                Hit http://downloads-distro.mongodb.org dist Release                                                                                Ign http://archive.ubuntu.com raring/multiverse amd64 Packages/DiffIndex                                                                          Hit http://ppa.launchpad.net raring/main i386 Packages                                                                                Hit http://dl.google.com stable/main i386 Packages                                                                                Ign http://archive.ubuntu.com raring/main i386 Packages/DiffIndex                                                                                Ign http://security.ubuntu.com raring-security/restricted amd64 Packages/DiffIndex                                                                Ign http://archive.ubuntu.com raring/restricted i386 Packages/DiffIndex                                                                           Ign http://archive.ubuntu.com raring/universe i386 Packages/DiffIndex                                                                             Ign http://security.ubuntu.com raring-security/universe amd64 Packages/DiffIndex                                                                  Ign http://archive.ubuntu.com raring/multiverse i386 Packages/DiffIndex                                                                           Hit http://toolbelt.heroku.com ./ Release.gpg                                                                                Hit http://ppa.launchpad.net raring/main Sources                                                                                Get:3 http://packages.linuxmint.com olivia/main amd64 Packages [23.5 kB]                                                                          Hit http://downloads-distro.mongodb.org dist/10gen amd64 Packages                                                                                Hit https://get.docker.io docker Release.gpg                                                                                Hit http://ppa.launchpad.net raring/main amd64 Packages                                                                                Ign http://security.ubuntu.com raring-security/multiverse amd64 Packages/DiffIndex                                                                Ign http://archive.canonical.com raring/partner Translation-en                                                                                Hit http://ppa.launchpad.net raring/main i386 Packages                                                                                Hit https://get.docker.io docker Release                                                                                Ign http://archive.canonical.com raring/partner Translation-es                                                                                Ign http://security.ubuntu.com raring-security/main i386 Packages/DiffIndex                                                                       Hit http://toolbelt.heroku.com ./ Release                                                                                Hit http://downloads-distro.mongodb.org dist/10gen i386 Packages                                                                                Hit https://get.docker.io docker/main amd64 Packages                                                                                Get:4 http://packages.linuxmint.com olivia/upstream amd64 Packages [9249 B]                                                                       Ign http://security.ubuntu.com raring-security/restricted i386 Packages/DiffIndex                                                                 Hit https://get.docker.io docker/main i386 Packages                                                                                Get:5 http://packages.linuxmint.com olivia/import amd64 Packages [39.2 kB]                                                                        Ign http://security.ubuntu.com raring-security/universe i386 Packages/DiffIndex                                                                   Hit http://toolbelt.heroku.com ./ Packages                                                                                Ign http://archive.ubuntu.com raring-updates/main amd64 Packages/DiffIndex                                                                        Ign http://security.ubuntu.com raring-security/multiverse i386 Packages/DiffIndex                                                                 Ign http://archive.ubuntu.com raring-updates/restricted amd64 Packages/DiffIndex                                                                  Ign http://dl.google.com stable/main Translation-en                                                                                Ign http://archive.ubuntu.com raring-updates/universe amd64 Packages/DiffIndex                                                                    Ign http://dl.google.com stable/main Translation-es                                                                                Ign http://archive.ubuntu.com raring-updates/multiverse amd64 Packages/DiffIndex                                                                  Ign http://dl.google.com stable/main Translation-en                                                                                Ign http://archive.ubuntu.com raring-updates/main i386 Packages/DiffIndex                                                                         Get:6 http://packages.linuxmint.com olivia/main i386 Packages [23.5 kB]                                                                           Ign http://dl.google.com stable/main Translation-es                                                                                Ign http://archive.ubuntu.com raring-updates/restricted i386 Packages/DiffIndex                                                                   Ign http://archive.ubuntu.com raring-updates/universe i386 Packages/DiffIndex                                                                     Ign http://archive.ubuntu.com raring-updates/multiverse i386 Packages/DiffIndex                                                                   Get:7 http://packages.linuxmint.com olivia/upstream i386 Packages [9237 B]                                                                        Ign http://ppa.launchpad.net raring/main Translation-en                                                                                Get:8 http://packages.linuxmint.com olivia/import i386 Packages [40.1 kB]                                                                         Ign http://ppa.launchpad.net raring/main Translation-es                                                                                Ign http://ppa.launchpad.net raring/main Translation-en                                                                                Ign http://ppa.launchpad.net raring/main Translation-es                                                                                Ign http://toolbelt.heroku.com ./ Translation-en                                                                                Ign http://toolbelt.heroku.com ./ Translation-es                                                                                Ign http://downloads-distro.mongodb.org dist/10gen Translation-en                                                                                Ign http://downloads-distro.mongodb.org dist/10gen Translation-es                                                      Err http://es.archive.ubuntu.com raring/main amd64 Packages                                        404  Not Found [IP: 91.189.92.201 80]     Err http://es.archive.ubuntu.com raring/universe amd64 Packages                                               404  Not Found [IP: 91.189.92.201 80]     Err http://es.archive.ubuntu.com raring/main i386 Packages                                                    404  Not Found [IP: 91.189.92.201 80]     Err http://es.archive.ubuntu.com raring/universe i386 Packages               404  Not Found [IP: 91.189.92.201 80]     Ign http://es.archive.ubuntu.com raring/main Translation-en                Ign http://es.archive.ubuntu.com raring/main Translation-es                Ign http://es.archive.ubuntu.com raring/universe Translation-en            Ign http://es.archive.ubuntu.com raring/universe Translation-es            Err http://es.archive.ubuntu.com raring/main amd64 Packages                  404  Not Found [IP: 91.189.92.201 80]     Err http://es.archive.ubuntu.com raring/universe amd64 Packages              404  Not Found [IP: 91.189.92.201 80]     Err http://es.archive.ubuntu.com raring/main i386 Packages                   404  Not Found [IP: 91.189.92.201 80]     Err http://es.archive.ubuntu.com raring/universe i386 Packages               404  Not Found [IP: 91.189.92.201 80]     Ign http://es.archive.ubuntu.com raring/main Translation-en                                                                                Ign http://es.archive.ubuntu.com raring/main Translation-es                                                                                Ign http://es.archive.ubuntu.com raring/universe Translation-en                                                                                Ign http://es.archive.ubuntu.com raring/universe Translation-es                                                                                Ign http://packages.linuxmint.com olivia/import Translation-en                                                                                Ign http://packages.linuxmint.com olivia/import Translation-es                                                                                Ign https://get.docker.io docker/main Translation-en                                                                                Ign http://packages.linuxmint.com olivia/main Translation-en                                                                                Ign http://packages.linuxmint.com olivia/main Translation-es                                                                                Ign http://packages.linuxmint.com olivia/upstream Translation-en                                                                                Ign https://get.docker.io docker/main Translation-es                                                                                Ign http://packages.linuxmint.com olivia/upstream Translation-es                                                                                Ign http://archive.ubuntu.com raring/main Translation-en                                                                                Ign http://archive.ubuntu.com raring/main Translation-es                                                                                Ign http://archive.ubuntu.com raring/multiverse Translation-en                                                                                Ign http://archive.ubuntu.com raring/multiverse Translation-es                                                                                Ign http://archive.ubuntu.com raring/restricted Translation-en                                                                                Ign http://archive.ubuntu.com raring/restricted Translation-es                                                                                Ign http://archive.ubuntu.com raring/universe Translation-en                                                                                Ign http://archive.ubuntu.com raring/universe Translation-es                                                                                Ign http://archive.ubuntu.com raring-updates/main Translation-en                                                                                Ign http://archive.ubuntu.com raring-updates/main Translation-es                                                                                Ign http://archive.ubuntu.com raring-updates/multiverse Translation-en     Ign http://archive.ubuntu.com raring-updates/multiverse Translation-es     Ign http://archive.ubuntu.com raring-updates/restricted Translation-en     Ign http://archive.ubuntu.com raring-updates/restricted Translation-es     Ign http://security.ubuntu.com raring-security/main Translation-en     Ign http://archive.ubuntu.com raring-updates/universe Translation-en     Ign http://archive.ubuntu.com raring-updates/universe Translation-es     Ign http://security.ubuntu.com raring-security/main Translation-es     Err http://archive.ubuntu.com raring/main amd64 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://archive.ubuntu.com raring/restricted amd64 Packages       404  Not Found [IP: 91.189.92.200 80]     Ign http://security.ubuntu.com raring-security/multiverse Translation-en     Err http://archive.ubuntu.com raring/universe amd64 Packages       404  Not Found [IP: 91.189.92.200 80]     Ign http://security.ubuntu.com raring-security/multiverse Translation-es     Err http://archive.ubuntu.com raring/multiverse amd64 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://archive.ubuntu.com raring/main i386 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://archive.ubuntu.com raring/restricted i386 Packages       404  Not Found [IP: 91.189.92.200 80]     Ign http://security.ubuntu.com raring-security/restricted Translation-en     Err http://archive.ubuntu.com raring/universe i386 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://archive.ubuntu.com raring/multiverse i386 Packages       404  Not Found [IP: 91.189.92.200 80]     Ign http://security.ubuntu.com raring-security/restricted Translation-es     Err http://archive.ubuntu.com raring-updates/main amd64 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://archive.ubuntu.com raring-updates/restricted amd64 Packages       404  Not Found [IP: 91.189.92.200 80]     Ign http://security.ubuntu.com raring-security/universe Translation-en     Err http://archive.ubuntu.com raring-updates/universe amd64 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://archive.ubuntu.com raring-updates/multiverse amd64 Packages       404  Not Found [IP: 91.189.92.200 80]     Ign http://security.ubuntu.com raring-security/universe Translation-es     Err http://archive.ubuntu.com raring-updates/main i386 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://archive.ubuntu.com raring-updates/restricted i386 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://archive.ubuntu.com raring-updates/universe i386 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://security.ubuntu.com raring-security/main amd64 Packages       404  Not Found [IP: 91.189.91.15 80]     Err http://archive.ubuntu.com raring-updates/multiverse i386 Packages       404  Not Found [IP: 91.189.92.200 80]     Err http://security.ubuntu.com raring-security/restricted amd64 Packages       404  Not Found [IP: 91.189.91.15 80]     Err http://security.ubuntu.com raring-security/universe amd64 Packages       404  Not Found [IP: 91.189.91.15 80]     Err http://security.ubuntu.com raring-security/multiverse amd64 Packages       404  Not Found [IP: 91.189.91.15 80]     Err http://security.ubuntu.com raring-security/main i386 Packages       404  Not Found [IP: 91.189.91.15 80]     Err http://security.ubuntu.com raring-security/restricted i386 Packages       404  Not Found [IP: 91.189.91.15 80]     Err http://security.ubuntu.com raring-security/universe i386 Packages       404  Not Found [IP: 91.189.91.15 80]     Err http://security.ubuntu.com raring-security/multiverse i386 Packages       404  Not Found [IP: 91.189.91.15 80]     Fetched 163 kB in 15s (10.9 kB/s)     W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/universe/a/aufs-tools/aufs-tools_3.0+20120411-3ubuntu1_amd64.deb/dists/raring/main/binary-amd64/Packages  404  Not Found [IP: 91.189.92.201 80]          W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/universe/a/aufs-tools/aufs-tools_3.0+20120411-3ubuntu1_amd64.deb/dists/raring/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.92.201 80]          W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/universe/a/aufs-tools/aufs-tools_3.0+20120411-3ubuntu1_amd64.deb/dists/raring/main/binary-i386/Packages  404  Not Found [IP: 91.189.92.201 80]          W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/universe/a/aufs-tools/aufs-tools_3.0+20120411-3ubuntu1_amd64.deb/dists/raring/universe/binary-i386/Packages  404  Not Found [IP: 91.189.92.201 80]          W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx_1.4.6-1ubuntu3_all.deb/dists/raring/main/binary-amd64/Packages  404  Not Found [IP: 91.189.92.201 80]          W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx_1.4.6-1ubuntu3_all.deb/dists/raring/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.92.201 80]          W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx_1.4.6-1ubuntu3_all.deb/dists/raring/main/binary-i386/Packages  404  Not Found [IP: 91.189.92.201 80]          W: Failed to fetch http://es.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx_1.4.6-1ubuntu3_all.deb/dists/raring/universe/binary-i386/Packages  404  Not Found [IP: 91.189.92.201 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/main/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.91.15 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.91.15 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/universe/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.91.15 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.91.15 80]          W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.15 80]          W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.15 80]          W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.15 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/main/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.15 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/main/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/universe/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]          W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]          E: Some index files failed to download. They have been ignored, or old ones used instead.


title: ldap user dose not exist in centos 6.5

text: Hope everyone doing good. Let me come to point, i have setup-ed a LDAP server and client machines Server works perfect, while make a search from client machine it too get the Query from LDAP server, But while i switch user it says user not exists               [root@ldapc ~]# su - babin     su: user babin does not exist      I have tried this from client machine and i got the below reply               # ldapsearch -x -b dc=tecmintlocal,dc=com -h ldap.tecmintlocal.com      * * *               # extended LDIF     #     # LDAPv3     # base <dc=tecmintlocal,dc=com> with scope subtree     # filter: (objectclass=*)     # requesting: ALL     #          # tecmintlocal.com     dn: dc=tecmintlocal,dc=com     dc: tecmintlocal     objectClass: top     objectClass: domain          # People, tecmintlocal.com     dn: ou=People,dc=tecmintlocal,dc=com     ou: People     objectClass: top     objectClass: organizationalUnit          # Group, tecmintlocal.com     dn: ou=Group,dc=tecmintlocal,dc=com     ou: Group     objectClass: top     objectClass: organizationalUnit          # tecmint_gp1, Group, tecmintlocal.com     dn: cn=tecmint_gp1,ou=Group,dc=tecmintlocal,dc=com     objectClass: posixGroup     objectClass: top     cn: tecmint_gp1     userPassword:: YWRtaW4xMjMk     gidNumber: 20000          # babin, People, tecmintlocal.com     dn: uid=babin,ou=People,dc=tecmintlocal,dc=com     uid: babin     cn: babin babin     objectClass: account     objectClass: posixAccount     objectClass: top     objectClass: shadowAccount     userPassword:: YWRtaW4xMjMk     shadowLastChange: 16120     shadowMin: 0     shadowMax: 99999     shadowWarning: 7     loginShell: /bin/bash     uidNumber: 2000     gidNumber: 20000     homeDirectory: /home/babin          # tecmintclient, People, tecmintlocal.com     dn: uid=tecmintclient,ou=People,dc=tecmintlocal,dc=com     uid: tecmintclient     cn: tecmintclient tecmintclient     objectClass: account     objectClass: posixAccount     objectClass: top     objectClass: shadowAccount     userPassword:: YWRtaW4xMjMk     shadowLastChange: 16120     shadowMin: 0     shadowMax: 99999     shadowWarning: 7     loginShell: /bin/bash     uidNumber: 2000     gidNumber: 20000     homeDirectory: /home/tecmintclient          # search result     search: 2     result: 0 Success          # numResponses: 7     # numEntries: 6


title: Find on AIX with output to file

text: find /apps/dynalife/clients/. ! -path "train" -type f -mtime +90 ! \( -name "*.p" -o -name "*.i" -o -name "*.w" -o -name "*.cls" -o -name "*.inf" -o -name "*.bat" \) -exec {} \; > /apps/dynalife/util/delFile.lst      I am trying to find all files older than 90 days in `/apps/dynalife/clients/` and all subfolders. But I exclude the subfolder `/apps/dynalife/clients/train/` and I also want to exclude all files with extensions ending in one of a few values `p` / `i` / `w` / `cls` / `inf` / `bat` The script is just producing an empty file. The idea is to have a file I can check and then use as input for the `rm` command to remove all the files found. Updated Find:               find /apps/dynalife/clients/ ! -path "*/mapwrk/*" -type f -mtime +90 ! \( -name "*.p" -o -name "*.i" -o -name "*.w" -o -name "*.cls" -o -name "*.inf" -o -name "*.bat" -o -name "*.ini" -o -name "*.pf" -o -name "*.wob" -o -name "*CIM900*" \) -print > /apps/dynalife/util/delFile.lst      Updated Delete:               xargs rm < /apps/dynalife/util/delFile.lst


title: colourize the first part of each line

text: I have some chat logs like:               (15:12:56) rubo77: mist migration     (15:05:22) hans: ist hugo da?     (15:36:13) rubo77: test     (13:30:15) rubo77: what are the access data?     (15:06:38) someone@jabber.ccc.de: user :  test@test.de (https://somewhere.de:8080/index.php#)     (15:06:38) someone@jabber.ccc.de: password :  test      How can I replace this using `sed` so the usernames will be in a different color? Or is there a simpler tool than `sed`?


title: How to download a folder from google drive using terminal?

text: I want to download a folder from my google drive using terminal? Is there any way to do that? I tried this:  `wget "https://drive.google.com/folderview?id=0B-Zc9K0k9q-WWUlqMXAyTG40MjA&usp=sharing"` But it is downloading this text file: `folderview?id=0B-Zc9K0k9q-WdEY5a1BCUDBaejQ&usp=sharing` Is there any way to download google drive folder from terminal?


title: Performance implications of enabling sadc to collect system activity information

text: I would like to enable `sadc` to collect system activity information so that I could use `sar`. **What are the performance implications of enabling this?** The server in question has very little system resources (Amazon Web Services Micro instance: 1 CPU, 613 MiB RAM). Obviously I cannot benchmark before and after as this is the utility that I would be using to judge system resource usage, but _in general_ how does this affect the system?


title: Choose system reliable Linux Distribution?

text: My question is about choosing Linux distribution that don't cause hardware errors. Here is my problem, I have Western Digital 500 hard drive, and first Linux I use it was Ubuntu 9.04 and everything was ok, that I move to Ubuntu 10.04 LTS. After a while the Diagnostic Tool show me that HD has bad sectors. The store that I bought my computer replace the hard drive. I install Ubuntu 10.04, and after 4-5 mouths the Diagnostic Tool show me bad sectors. My HD is still on warranty and they again will replace it but, I must replace the Linux Distribution, this is too much for my nerves.   Someone can give me explanation to which distro to move. My experience with Linux is: openSuse 10.02 (some problems with flash drivers)   Ubuntu 9.04 and Ubuntu 10.04.


title: Setting up a static IP. Please can someone explain the process

text: I have just installed Linux Fedora 20 on my laptop; I have it already on my main home computer. I maintain a number of files, mostly my own notes, hints and reminders about how to do things, that I would like to synchronise so that I can edit the files on either machine. I understand that I can do this via the internet, and that one of the first steps is to give each machine a static IP. The instructions to set a static IP seem to involve a lot of editing of special files, but I hesitate to start the process, in case I fumble it, because I do not know what is going on, and so some irrevocable damage. There is a bewildering number of suggestions out there, but they all leave me with the feeling that I am missing something I should already know about. So I have two related questions: 1) How do I choose a static IP, or is that created automatically as part of the process? 2) A longer one, sorry: please can someone explain the process, i.e. what is altered, and why? * * * Solved (so far) Thank you to @mat and @Stefan Schmiedl. I have followed the process Stefan suggested and both machines nicely pinged the other. Now I must look into what to do next, but so far it's nice and easy. If I need to I will put further questions in a separate post. I follow what mat says, but one of the troubles with programming and many other pursuits is that, to be able to ask a sensible question, you need quite a lot of previous knowledge of what is available and appropriate to what you want to do. If you already have that knowledge, then you may not need to ask the question. References tell you the details, but you do also need to know what particular details you want to find out about. There are two kinds of explanation: those that allow the experts to nod wisely to one another, and those that make things clear to the naive enquirer. I was after the second one, which Stefan kindly supplied * * * One more supplementary question: is this the approach to take if one machine is at home and the other is at a different location with a different internet address, router etc.? I have joined a Linux User Group that meets in council offices in another town, and would like the file synchronisation to work from there too.


title: I can't ssh on localhost at a certain port on os x

text: Here are basics information:               $ which ssh     /opt/local/bin/ssh      It's like that because I'm using MacPorts and it did install there. I did the `sudo port load openssh` When doing a netstat -an | grep LISTEN on reboot. I have this:               tcp4       0      0  *.2222                 *.*                    LISTEN     tcp6       0      0  *.2222                 *.*                    LISTEN     tcp46      0      0  *.5900                 *.*                    LISTEN     tcp4       0      0  *.88                   *.*                    LISTEN     tcp6       0      0  *.88                   *.*                    LISTEN     tcp4       0      0  *.631                  *.*                    LISTEN     tcp6       0      0  *.631                  *.*                    LISTEN     tcp4       0      0  *.22                   *.*                    LISTEN     tcp6       0      0  *.22                   *.*                    LISTEN     tcp4       0      0  *.139                  *.*                    LISTEN     tcp4       0      0  *.445                  *.*                    LISTEN     tcp4       0      0  *.548                  *.*                    LISTEN     tcp6       0      0  *.548                  *.*                    LISTEN     tcp4       0      0  127.0.0.1.631          *.*                    LISTEN     tcp6       0      0  ::1.631                *.*                    LISTEN      then here are the results of nmap:               -pierre@evian.local ~ nmap -p 22 localhost                                                                                0 --15:23--          Starting Nmap 5.50 ( http://nmap.org ) at 2011-02-10 15:24 CET     Nmap scan report for localhost (127.0.0.1)     Host is up (0.000083s latency).     PORT   STATE SERVICE     22/tcp open  ssh          Nmap done: 1 IP address (1 host up) scanned in 0.19 seconds     -pierre@evian.local ~ nmap -p 2222 localhost                                                                                0 --15:24--          Starting Nmap 5.50 ( http://nmap.org ) at 2011-02-10 15:25 CET     Nmap scan report for localhost (127.0.0.1)     Host is up (0.000072s latency).     PORT     STATE SERVICE     2222/tcp open  EtherNet/IP-1          Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds      Now what happen when I try to ssh on localhost               -pierre@evian.local ~ ssh localhost                                                  0 --15:30--     Connection closed by 127.0.0.1      When specifying the 2222 port.               -pierre@evian.local ~ ssh localhost -p 2222                                        255 --15:31--     Last login: Thu Feb 10 15:18:00 2011 from localhost      Succeed! The reason: I found it in the sshd_config file on the /opt/local/etc/ location. port 2222 here the file:               -pierre@evian.local ~ cat /opt/local/etc/ssh/sshd_config | less                      0 --15:29--          #       $OpenBSD: sshd_config,v 1.81 2009/10/08 14:03:41 markus Exp $          # This is the sshd server system-wide configuration file.  See     # sshd_config(5) for more information.          Port 2222      So I decided to change the port in that file to 22 relaunch the service with unload/load as follow:               -pierre@evian.local /opt/local/etc/ssh ssh localhost -p 2222                         0 --15:35--     Last login: Thu Feb 10 15:32:15 2011 from localhost     -pierre@evian.local ~ sudo port unload openssh                                       0 --15:35--     -pierre@evian.local ~ sudo port load openssh                                         0 --15:36--     -pierre@evian.local ~ ssh localhost -p 2222                                          0 --15:36--     ssh: connect to host localhost port 2222: Connection refused      Well, I'm feeling lucky and I try ssh localhost               -pierre@evian.local ~ ssh localhost                                                255 --15:36--     Connection closed by 127.0.0.1      No such a thing as luck I suppose. Here is a -vv of the command:               -pierre@evian.local ~ ssh -vv localhost                                            255 --15:37--     OpenSSH_5.6p1, OpenSSL 1.0.0c 2 Dec 2010     debug1: Reading configuration data /opt/local/etc/ssh/ssh_config     debug2: ssh_connect: needpriv 0     debug1: Connecting to localhost [127.0.0.1] port 22.     debug1: Connection established.     debug2: key_type_from_name: unknown key type '-----BEGIN'     debug2: key_type_from_name: unknown key type '-----END'     debug1: identity file /Users/pierre/.ssh/id_rsa type 1     debug1: identity file /Users/pierre/.ssh/id_rsa-cert type -1     debug2: key_type_from_name: unknown key type '-----BEGIN'     debug2: key_type_from_name: unknown key type '-----END'     debug1: identity file /Users/pierre/.ssh/id_dsa type 2     debug1: identity file /Users/pierre/.ssh/id_dsa-cert type -1     debug1: Remote protocol version 1.99, remote software version OpenSSH_5.2     debug1: match: OpenSSH_5.2 pat OpenSSH*     debug1: Enabling compatibility mode for protocol 2.0     debug1: Local version string SSH-2.0-OpenSSH_5.6     debug2: fd 3 setting O_NONBLOCK     debug1: SSH2_MSG_KEXINIT sent     debug1: SSH2_MSG_KEXINIT received     debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1     debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss     debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se     debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib     debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib     debug2: kex_parse_kexinit:      debug2: kex_parse_kexinit:      debug2: kex_parse_kexinit: first_kex_follows 0      debug2: kex_parse_kexinit: reserved 0      debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1     debug2: kex_parse_kexinit: ssh-rsa,ssh-dss     debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se     debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: none,zlib@openssh.com     debug2: kex_parse_kexinit: none,zlib@openssh.com     debug2: kex_parse_kexinit:      debug2: kex_parse_kexinit:      debug2: kex_parse_kexinit: first_kex_follows 0      debug2: kex_parse_kexinit: reserved 0      debug2: mac_setup: found hmac-md5     debug1: kex: server->client aes128-ctr hmac-md5 none     debug2: mac_setup: found hmac-md5     debug1: kex: client->server aes128-ctr hmac-md5 none     debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent     debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP     debug2: dh_gen_key: priv key bits set: 127/256     debug2: bits set: 520/1024     debug1: SSH2_MSG_KEX_DH_GEX_INIT sent     debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY     debug1: Host 'localhost' is known and matches the RSA host key.     debug1: Found key in /Users/pierre/.ssh/known_hosts:1     debug2: bits set: 534/1024     debug1: ssh_rsa_verify: signature correct     debug2: kex_derive_keys     debug2: set_newkeys: mode 1     debug1: SSH2_MSG_NEWKEYS sent     debug1: expecting SSH2_MSG_NEWKEYS     debug2: set_newkeys: mode 0     debug1: SSH2_MSG_NEWKEYS received     debug1: Roaming not allowed by server     debug1: SSH2_MSG_SERVICE_REQUEST sent     debug2: service_accept: ssh-userauth     debug1: SSH2_MSG_SERVICE_ACCEPT received     debug2: key: /Users/pierre/.ssh/id_rsa (0x10030e540)     debug2: key: /Users/pierre/.ssh/id_dsa (0x10031dcf0)     debug1: Authentications that can continue: publickey,keyboard-interactive     debug1: Next authentication method: publickey     debug1: Offering RSA public key: /Users/pierre/.ssh/id_rsa     debug2: we sent a publickey packet, wait for reply     Connection closed by 127.0.0.1      I feel like a noob. :/ What do you think?


title: rc control user

text: I am playing around with rc scripts. I am starting a daemon from rc.local. I would like to know how I start the process under a specific user instead of root?


title: Using newline delimited list as parameter

text: There have been several situations where I have had some output such as               thing1     thing2     thing3      But have wanted to do something like:               *command* thing1     *command* thing2     *command* thing3      An example of this would be: let's say I want to kill all screen sessions. Is there any way I can get one command to use somthing like:               screen -ls      which might result in               88.mine (detached)     22.mine (detached)      Can I do something that would result in all of the possible commands such as this:               screen -S 88.mine test -X     screen -S 88.mine test -X      in one fell swoop?


title: Utility script framework

text: We have a couple dozen utility scripts that run on various machines to do things like application level backups, pruning out old data, cleaning up disk space, etc. They were written by multiple developers over time and there's not much common structure among them. Some log to a file, some log to syslog, some send email alerts, others fail silently, some email on success, others succeed silently, some scripts run every minute and spam us with alerts every minute when there are problems, etc. These have grown organically over several years and as we migrate to new hardware, I'd like to clean them up. How do others handle these types of "one-off" scripts that are different for every application, but we still want some structure for log files, alerts, etc. Is there a framework script that will help with this? The scripts themselves are a written in Perl, Python, and Bash, but a common invocation script could still be used to point to log files, send alerts on success/failure, etc. I've looked around for one but I'm not even search what to search for. Or are alerts better handled through Nagios or other general monitoring system?


title: Clipboard sharing between the host OS and a virtual console of a VirtualBox linux guest

text: I have a CentOS guest OS running without X11. Is there anyway I can paste text from the host clipboard into the virtual terminals or highlight text in the vt via the console mouse daemon and paste it into the host OS? I am aware I can ssh into the guest with putty. I want to know if its possible from the console.


title: Script not getting executed as per expectation

text: I have two Perl scripts at a predefined location in Unix. This predefined location is set in path variable (`$PATH`). Now when i try to run first script (from any location) the script runs successfully while for second script (at same path as that of previous script) throws an error saying               ScriptB: Command not found      My shell is tcsh and permissions given to both scripts are the same. What can be the probable reason for such erroneous behaviour?


title: What is rpc.statd, what ports should it be listening on, and how to kill it?

text: I have found `rpc.statd` running from a `netstat -tunap` command, on several ports (TCP:59061, UDP:40594, UDP:919) on my Debian server. I believe it's to do with NFS but I'm not running an nfs server (AFAIK!). (Another question mentions this problem, but the packages referred to there don't exist on my system.) So what ports should it be running on, and if I don't need it (I connect to an NFS share, but I don't serve any) how do I get rid of it?


title: Debian: plymouth splash screen does not change

text: on my Debian box, I have installed Plymouth for a splash screen. I have tried updating the theme but everytime I use the commands: `/usr/sbin/plymouth-set-default-theme myTHEME` and then try to update it with: `update-initramfs -u` and add the word `splash` to the `/etc/default/grub` file and update the grub by: `update-grub` the theme i get are simple blue and white bars at the bottom of the screen and the word `Debian` appears. I've tried changing to the default installed themes and still i have the same theme. Is there something I'm not doing to update it properly?


title: Why are there internet utilities in my initial ramdisk?

text: I have a fairly standard initial ramdisk created using `mkinitcpio`. I'm on Arch GNU/Linux. A while ago I got dropped to a rescue shell and poked around in the `/bin` of the ramdisk to see what was available. For some reason, there was a bunch of utilities that seemed irrelevant (think things like `ping` - why would you want that in a rescue environment?).               alex@alexs-arch-imac:/tmp$ mkdir initramfs     alex@alexs-arch-imac:/tmp$ cd initramfs     alex@alexs-arch-imac:/tmp/initramfs$ cp /boot/initramfs-linux.img .     alex@alexs-arch-imac:/tmp/initramfs$ cat initramfs-linux.img | unlzma - >           initramfs-linux # needed because unlzma complains that it doesn't recognize the .img extension     alex@alexs-arch-imac:/tmp/initramfs$ cpio -iV < initramfs-linux     .............................................................................................................................................................................................................................................................................................................................................................     24225 blocks     alex@alexs-arch-imac:/tmp/initramfs$ ls     bin  buildconfig  config  dev  etc  hooks  init  init_functions  initramfs-linux  initramfs-linux.img  lib  lib64  new_root  proc  run  sbin  shutdown  sys  tmp  usr  VERSION     alex@alexs-arch-imac:/tmp/initramfs$ ls -l bin     lrwxrwxrwx 1 alex alex 7 Mar 24 17:06 bin -> usr/bin     alex@alexs-arch-imac:/tmp/initramfs$ ls bin     [         blkid    chown       cttyhack  dirname  egrep    free    hexdump   ip       iptunnel  less      ls      mkfifo    mount       nslookup  ping6     readlink  route    sha1sum    stat              tac     touch    uniq    yes     [[        busybox  chroot      cut       dmesg    env      getopt  ifconfig  ipaddr   kbd_mode  ln        lsblk   mknod     mountpoint  openvt    poweroff  reboot    sed      sha256sum  strings           tail    true     uptime     ash       cat      clear       dd        dmsetup  expr     grep    init      iplink   kill      loadfont  lsmod   mktemp    mv          pgrep     printf    rm        seq      sha512sum  switch_root       telnet  udevadm  vi     awk       chgrp    cp          depmod    du       false    halt    insmod    iproute  killall   loadkmap  md5sum  modinfo   nc          pidof     ps        rmdir     setfont  sleep      sync              test    umount   wc     basename  chmod    cryptsetup  df        echo     findmnt  head    install   iprule   kmod      losetup   mkdir   modprobe  netstat     ping      pwd       rmmod     sh       sort       systemd-tmpfiles  tftp    uname    wget     alex@alexs-arch-imac:/tmp/initramfs$       Notice that the image has the _weirdest_ utilities. Just looking at it, I see `wget`, `ping`, `telnet`, `sha1sum`... why are these here? Here's the output of my `/etc/mkinitcpio.conf`. Images were generated using `mkinitcpio -p linux`.               # vim:set ft=sh     # MODULES     # The following modules are loaded before any boot hooks are     # run.  Advanced users may wish to specify all system modules     # in this array.  For instance:     #     MODULES="piix ide_disk reiserfs"     MODULES=""          # BINARIES     # This setting includes any additional binaries a given user may     # wish into the CPIO image.  This is run last, so it may be used to     # override the actual binaries included by a given hook     # BINARIES are dependency parsed, so you may safely ignore libraries     BINARIES=""          # FILES     # This setting is similar to BINARIES above, however, files are added     # as-is and are not parsed in any way.  This is useful for config files.     FILES=""          # HOOKS     # This is the most important setting in this file.  The HOOKS control the     # modules and scripts added to the image, and what happens at boot time.     # Order is important, and it is recommended that you do not change the     # order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for     # help on a given hook.     # 'base' is _required_ unless you know precisely what you are doing.     # 'udev' is _required_ in order to automatically load modules     # 'filesystems' is _required_ unless you specify your fs modules in MODULES     # Examples:     ##   This setup specifies all modules in the MODULES setting above.     ##   No raid, lvm2, or encrypted root is needed.     #    HOOKS="base"     #     ##   This setup will autodetect all modules for your system and should     ##   work as a sane default     #    HOOKS="base udev autodetect block filesystems"     #     ##   This setup will generate a 'full' image which supports most systems.     ##   No autodetection is done.     #    HOOKS="base udev block filesystems"     #     ##   This setup assembles a pata mdadm array with an encrypted root FS.     ##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.     #    HOOKS="base udev block mdadm encrypt filesystems"     #     ##   This setup loads an lvm2 volume group on a usb device.     #    HOOKS="base udev block lvm2 filesystems"     #     ##   NOTE: If you have /usr on a separate partition, you MUST include the     #    usr, fsck and shutdown hooks.     HOOKS="base udev autodetect modconf keyboard block encrypt resume filesystems fsck shutdown"          # COMPRESSION     # Use this to compress the initramfs image. By default, gzip compression     # is used. Use 'cat' to create an uncompressed image.     #COMPRESSION="gzip"     #COMPRESSION="bzip2"     COMPRESSION="lzma"     #COMPRESSION="xz"     #COMPRESSION="lzop"     #COMPRESSION="lz4"          # COMPRESSION_OPTIONS     # Additional options for the compressor     #COMPRESSION_OPTIONS=""


title: Migrate from thunderbird to sylpheed while preserving folder structure

text: Is there an automatic way migrate a `thunderbird` mailbox to `sylpheed` while preserving the folder structure. I tried the importexport extension for `thunderbird` and got a directory with multiple mbox files and subfolder which contain again mbox file. For example               inbox1     inbox2     foo.sdb        foo1inbox1        foo2inbox1        foofoo.sdb           foofoo1inbox1           foofoo1inbox2            foo2.sdb        foo2inbox1        foo2inbox2      Sure I can import manually every single mbox file with sylpheed, but is there an automatic way to import all at once and preserve the folder structure?


title: Can I set my Debian box to use OpenDNS nameservers if it uses DHCP?

text: I have a Debian box with this in /etc/network/interfaces:               auto eth0     allow-hotplug eth0     iface eth0 inet dhcp          auto wlan0     iface wlan0 inet dhcp         wpa-ssid NetworkName         wpa-psk NetworkPass      and this in /etc/resolv.conf (presumably this stuff gets pulled from my Cisco router automatically?)               domain cable.myisp.com     search cable.myisp.com     nameserver isp_nameserver_ip1     nameserver isp_nameserver_ip2      I'd like to use OpenDNS (or Norton Secure DNS, basically just some other DNS server), so can I just remove the first two lines from /etc/resolv.conf and update the last two with new nameserver IP addresses? Is there anything else I'd need to do? I can change the settings on my router easy enough but is it possible to do this within the OS?


title: LMDE: Install latest Iceweasel or Firefox

text: I am using LMDE (Linux Mint Debian Edition).   By default, this ships with a quite old Firefox version (21.0). And if you install Iceweasel, it does not get better. There are a number of forum posts about installing a newer version of Iceweasel OR Firefox. Ultimately a lot of them lead here: http://mozilla.debian.net/, where I am asked to add this repository to /etc/apt/sources.list               deb http://cdn.debian.net/debian experimental main      and to install as follows               $ apt-get update     $ apt-get install -t experimental iceweasel      Unfortunately, this gets me into the following error:               The following packages have unmet dependencies:      iceweasel : Depends: libc6 (>= 2.17) but 2.13-37 is to be installed                  Depends: xulrunner-23.0 (>= 23.0-2) but it is not going to be installed     E: Unable to correct problems, you have held broken packages.      If this is relevant, here is my /etc/apt/sources.list               deb http://packages.linuxmint.com/ debian main upstream import     deb http://mirror.rts-informatique.fr/linuxmint/debian/latest testing main contrib non-free     deb http://mirror.rts-informatique.fr/linuxmint/debian/latest/security testing/updates main contrib non-free     deb http://mirror.rts-informatique.fr/linuxmint/debian/latest/multimedia testing main non-free          deb http://repository.spotify.com stable non-free          # Opera sources added by smxi     deb http://deb.opera.com/opera sid non-free          # for Iceweasel 4     deb http://cdn.debian.net/debian experimental main      and my /etc/apt/sources.bk (which is probably just a backup file, is it?)               deb http://packages.linuxmint.com/ debian main upstream import     deb http://debian.linuxmint.com/latest testing main contrib non-free     deb http://debian.linuxmint.com/latest/security testing/updates main contrib non-free     deb http://debian.linuxmint.com/latest/multimedia testing main non-free


title: Make system robust against unexpected power loss

text: Are there any common or standard ways to make a system more robust against unexpected power loss (I.e., without proper shutdown)? I was using a UPS but the battery is dying and I haven't had a chance to replace it yet. During the last power loss (when I turned off the UPS to remove it), one of my file systems got thoroughly butchered. It's an ext3 filesystem that was corrupted, and most of my current filesystems are ext3. Are there filesystems that will be more resilient? Are there any other actions I can take to make the system safer in this regard?


title: Automating excel report

text: Could you please help me for the below concerns.   1. I'll be executing one script which gives some output   2. Have to arrange them in a table format in excel   3. Attach the excel and send it through mail Anyone please suggest idea for automating the above steps. I can do 1st and 3rd step but i've no idea regarding the second step :(


title: Check if SSH is enabled or Disabled in Solaris 11

text: **How can I check to see if SSH is enabled on Solaris 11?** I have tried typing `ssh` in the terminal, and it came back with a list of options, which none of them made sense to me. All I want to know is if it is enabled or not. I am trying to use `PuTTY` to connect remotely, so I know my IP address that I'm connecting to is correct, but I'm not sure if SSH is enabled on this system. The reason I tried just typing `ssh`, was because I normally test to see if `gcc` is enabled, by typing `gcc` in the terminal. So I thought it would be the same concept. Thanks for your help.


title: Can tree be used to list the number of files per level?

text: As title, I need to look into a particular directory and list the number of files per level. The directory is pretty large, about 10-15 levels deep. For instance, if I have the following:               D1     |     |-- D2A (5 files in this directory)     |    |-- D3A (6 files in this directory)     |    |-- D3B (7 Files in this directory)     |     |-- D2B (1 file in this directory)      Then it should tell me that level 3 has 13 files and level 2 has 6 files (or 6+13, doesn't matter). Can `Tree` accomplish this? I've tried around mixing the options but it does not seem to work.


title: Cannot connect to internet in Fedora 19

text: I am brand new to linux and am unable to connect to the internet in Fedora 19. When I type `ifconfig` I get:               lo: flags=73  mtu 65536             inet 127.0.0.1  netmask 255.0.0.0             inet6 ::1  prefixlen 128  scopeid 0x10             loop  txqueuelen 0  (Local Loopback)             RX packets 150  bytes 12792 (12.4 KiB)             RX errors 0  dropped 0  overruns 0  frame 0             TX packets 150  bytes 12792 (12.4 KiB)             TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0          p9p1: flags=4163  mtu 1500             inet6 fe80::96de:80ff:fe2d:8274  prefixlen 64  scopeid 0x20             ether 94:de:80:2d:82:74  txqueuelen 1000  (Ethernet)             RX packets 85  bytes 11964 (11.6 KiB)             RX errors 0  dropped 0  overruns 0  frame 0             TX packets 0  bytes 0 (0.0 B)             TX errors 0  dropped 94 overruns 0  carrier 0  collisions 0 Also when I type `netstat` I get:               Active Internet connections (w/o servers)     Proto Recv-Q Send-Q Local Address           Foreign Address         State           Active UNIX domain sockets (w/o servers) I have tried to find what I can do to connect to the internet and I have been unsuccessful. I am using a wired connection through a router. I can ping 127.0.0.1 but cannot ping out. Edit 1 When I open /etc/sysconfig/network-scripts ifcfg-profile_1-1 I get this TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME="Profile 1" UUID=d5d3e20c-6ef1-4e11-bf40-0cf5a7c6b463 ONBOOT=yes Since PEERRDNS=yes what server information am I putting in the /etc/resolve.conf since mine is blank? Also in my network-scripts file I have ifcfg-lo and ifcfg-profile_1 and ifcfg-profile_1-1 Edit 2 When I type sudo dhclient p9p1 -v I get dhclient (2039) is already running -and exiting. this version of USC dhcp is based on the release available on FTP.isc.org. features have been added and other changes have been made to the base software release in order to make it work better with this distribution.


title: make ls display current date and time

text: I'm new to Linux and I'd like ls to display current date and time as a side effect every time I use `ls`. How do I go about changing what a command does?


title: Is it possible to disable verbose in the middle of running?

text: I am running a program `fls` (from the Sleuth Kit) with option `-v` for verbose mode. However it takes too long, and the program is still running since yesterday. I guess it will run faster without verbose mode, but I am not sure how long it takes to finish running and whether it is worth to stop and rerun it without verbose. so I wonder if it is possible to turn off verbose mode in the middle of running and resume the running after that? Thanks!


title: open of .rpm failed: Permission denied

text: Whenever I try to install some .rpm I've downloaded, I'm getting:               > sudo rpm -i something.rpm     error: open of something.rpm failed: Permission denied      It seems that the choice of rpm doesn't matter. I've chmodded the the .rpm first (777) but it doesn't make a difference. What am I missing? Using `rpm -i -v` doesn't reveal any additional information. System is RHEL6 64-bit.


title: Squid doesn't block non-ascii domans

text: I have the following lines in `/etc/squid/squid.conf`:               acl bad_url url_regex "/etc/squid/block.acl"     http_access deny bad_url      All of the urls in `block.acl` must be blocked by the proxy server. It works for all ASCII domains, but when I add a non-ascii domain such as `helfende- hände.de` to `/etc/squid/block.acl`, the domain is not blocked. How do I fix this?


title: Apache folder permission error

text: I have a folder name `public` that I set up Apache to serve files out of, for some reason I was getting a 403 with the error message: > You don't have permission to access / on this server. My solution was to create another folder (`test`) alongside it and use that to serve files out of. What I don't understand is why if the permissions, as far as I can tell are identical between the two folders, yet using the first folder gives me permission errors. How can I diagnose this further? `ls -l` gives:               drwxrwxr-x 2 daniel daniel 4096 Apr 26 19:10 public     drwxrwxr-x 2 daniel daniel 4096 Apr 26 19:10 test      **Edit** Contents of `/etc/apache2/sites-available/000-default.conf`               <VirtualHost *:80>         DocumentRoot /home/daniel/public/default/public/         DirectoryIndex index.html index.php         LogLevel warn         ErrorLog /home/daniel/public/default/log/error.log         CustomLog /home/daniel/public/default/log/access.log combined     </VirtualHost>      I have the following directive setup in `/etc/apache2/apache2.conf`               <Directory /home/daniel/public/>             Options Indexes FollowSymLinks             AllowOverride All             Require all granted     </Directory>      From under `/home/daniel/public/default` running `ls -Zd public test` gives               drwxrwxr-x 2 daniel daniel ? 4096 Apr 28 13:44 public     drwxrwxr-x 2 daniel daniel ? 4096 Apr 28 13:44 test


title: Application launcher with grid like hotkeys

text: Is there a desktop enviroment or tool wich can provide the following functionality? If I press a self defined hotkey, a menu of self defined shortcuts/launchers is shown somewhere on the screen where the icons are aligned in a 5x3 (Should be adjustable) grid. Every position in this grid has a matching key on the keyboard like: Icons in the first row are assigned to q,w,e,r,t Icons in the second row are assigned to a,s,d,f,g ... Some people maybe know this kind of hotkeys from games like Starcraft or Warcraft III. Here's a picture for better visualisation: grid hotkeys So much for the basic functionality. Because of the limited space, there should be a subgrouping functionality like folders. It would be also nice if it's themeable and supports effects like transparency.


title: printing problems with DDST (aka PCL6) printer RICOH Aficio SP C240DN

text: I'm having big problems printing on a RICOH Aficio SP C240DN (a color laser printer). CUPS/OpenPrinting doesn't have a driver for exactly this printer. There are similar numbers but not 240DN. It also seems there is no PPD file for this printer, as it doesn't accept PostScript at all. There are only so-called DDST and ICM drivers for Windows and Mac, but no PPD as opposed to slightly older models from RICOH (320DN for example). The technician at the company where I bought the printer said that DDST is a stripped-down version of PCL6. The connection to the printer works, I can access the web interface for management, I can print test pages via buttons on the printer or via the web interface. If I try any other driver (320DN for example), the printer shows that it is receiving data, the spool on the computer is processing, and then it just thinks the job is finished and done but the printer does nothing. I'm planning to return it, but was wondering if somebody could explain a bit about drivers (what is DDST?), and if somebody knows if there is any chance that such driver for Linux will be out in any time soon. I'm actually ready to donate a small amount to somebody who would hack an open-source driver (for CUPS).


title: ping not working for google alone

text: one of my friend changed some **network config** in my laptop at home, He said he tried **something related to block a website(he tested it with www.google.com** ).Now `www.google.com` not loading . Even he dont no what to do now . Now Everytime when i try `www.google.com` in chrome browser its saying , **could't connect to www.google.com** ,i tried it even with different browsers,but same result.But not problems with other domain names. Instead of domain name i am using the the **ip address** of `www.google.com` ,That time it's loading But no problem in other google websites like www.google.co.in , www.google.co.uk , www.gmail.com , i guess the problem is in dns settings . But i am not familier with networking .               Details of file /etc/hosts          127.0.0.1   localhost     127.0.1.1   karthi-Vostro-1550     192.168.1.1 www.google.com          # The following lines are desirable for IPv6 capable hosts     ::1     ip6-localhost ip6-loopback     fe00::0 ip6-localnet     ff00::0 ip6-mcastprefix     ff02::1 ip6-allnodes     ff02::2 ip6-allrouters          **this is the result of nslookup**          Server:     127.0.1.1     Address:    127.0.1.1#53          Non-authoritative answer:     Name:   www.google.com     Address: 74.125.236.180     Name:   www.google.com     Address: 74.125.236.178     Name:   www.google.com     Address: 74.125.236.177     Name:   www.google.com     Address: 74.125.236.179     Name:   www.google.com     Address: 74.125.236.176      **result of Ping www.google.com - 100 % packet loss** My friend changed the config in my home. Now i am in college .The same problem is happening in my college too . But there is a difference _In home_ When i enter into a website that enabled google adsense then the google chrome asking username and password . But even though that page is loading . _In college_ Chrome not asking for any username or password . But www.google.com not loading If any further details needed i am ready to give


title: Creating Static Binary

text: I installed an application [ e.g. fdisk ]. But it required libraries for execution. I am looking for utility/tool which will help me to create a static binary from _already_ installed binaries. So that I can use it anywhere. The only reliable tools that I found is `ErmineLight` from here , but this one is share-ware. Is there any open-source software is available for the same ? `EDIT` fdisk is just an example. I most of the time work on LFS, So If I have to use any utility, I need to follow the steps as >   1. Download the source >   2. configure >   3. make >   4. make test >   5. make install, > So just-to-save time, I am looking for a solution in which I will make a static binary from debian or from fedora or from other distrbution, try it on LFS, and If it works fine or as per my requirement, I will go with source-code for compilation.


title: ./configure, syntax error: unexpected token (lighttpd)

text: I want to build a modified version of lighttpd. I follow this tutorial: Downloading and building the H264 Streaming Module for Lighttpd (version 2) This is what I've done so far:               apt get install lighttpd     apt get install automake autoconf libtool      cd /var/tmp     wget http://h264.code-shop.com/download/lighttpd-1.4.18_mod_h264_streaming-2.2.9.tar.gz     tar -zxvf lighttpd-1.4.18_mod_h264_streaming-2.2.9.tar.gz     wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.gz     tar ...       After I copied all files and data to the directory and Makefile.am I entered:               ./autogen.sh               ./autogen.sh: running `libtoolize --copy --force'     libtoolize: putting auxiliary files in `.'.     libtoolize: copying file `./ltmain.sh'     libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.     libtoolize: copying file `m4/libtool.m4'     libtoolize: copying file `m4/ltoptions.m4'     libtoolize: copying file `m4/ltsugar.m4'     libtoolize: copying file `m4/ltversion.m4'     libtoolize: copying file `m4/lt~obsolete.m4'     ./autogen.sh: running `aclocal -I m4'     ./autogen.sh: running `autoheader'     ./autogen.sh: running `automake --add-missing --copy --foreign'     Makefile.am:8: lib_LTLIBRARIES must be set with `=' before using `+='          ./configure --enable-maintainer-mode --prefix=${HOME}/test/lighttpd-1.4.28      The console returns:                   ...             checking for pkg-config... no             checking for libev support... ./configure: line 12184: syntax error near unexpected token `LIBEV,'     ./configure: line 12184: `      PKG_CHECK_MODULES(LIBEV, libev, ,'     root@foo...      Some people solved this by installing "pkg-config". I installed this package but I still can't run the configuration. EDIT: this is the source of the configure file at this line               LIBEV_CFLAGS=""     LIBEV_LIBS=""              if test "$WITH_LIBEV" != "no"; then                 PKG_CHECK_MODULES(LIBEV, libev, ,                         dnl no pkg-config for libev, searching manually:                              if test "$WITH_LIBEV" != "yes"; then                                 LIBEV_CFLAGS="-I$WITH_LIBEV/include"                                 LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"       else                    AC_CHECK_HEADERS([ev.h],[                                     AC_CHECK_LIB([ev], [ev_loop], [                                                     LIBEV_CFLAGS=""                                                     LIBEV_LIBS="-lev"                                             ],[                                             AC_MSG_ERROR([libev not found])                                             ]                                     )],[                                             AC_MSG_ERROR([libev not found])                                     ]                             )                     fi             )


title: rsync 3.1.0 is creating empty backup directories

text: I just noticed that there is a discrepancy between version 3.0.9 and 3.1.0 of rsync. Running the command `$ rsync -a --delete --backup --backup-dir=../old source/ dest/` with version 3.1.0 gives the output `Created backup_dir ../old/` even when no files are copied to the backup directory. I usually add the current time to the backup directory name, which means I end up with many empty directories. With version 3.0.9 of rsync, a backup directory was only created if needed. My questions are:   1. Is this an intended behaviour, and if so, is it possible to suppress the creation of empty backup directories?   2. Can I install version 3.0.9 of rsync alongside with version 3.1.0 such that one is called say rsync309 and the other one rsync310, and then have an alias linking rsync to either of the two (which in my case means that I would keep using rsync 3.0.9 as I found this new behaviour annoying)?


title: Does fetchmail support SSL or TLS when using SMTP to forward email?

text: I am trying to forward emails that are fetched with `fetchmail` to another SMTP host, which enforces `STARTTLS`. I could not find a way to enable TLS in `fetchmail`. Is this possible at all? If so, how?


title: Delete last N lines from bash history

text: When accidentally pasting a file into the shell it puts a ton of ugly nonsense entries in the bah history. Is there a clean way to remove those entries? Obviously I could close the shell and edit the `.bash_history` file manually but maybe there's some kind of API available to modify the history of the current shell?


title: Is it possible to see cp speed and % copied?

text: I'm having problems when copy large files using nautilus (it gets stuck) so I need to copy using cp. I would like to know if there is any parameter that shows the % copied and also the transfer speed.


title: Using vim-latex with latexmk and evince results in garbled text (GLib-GObject-CRITICAL)

text: When I compile a latex file in vim with the vim-latex plugin with `\ll` using`latexmk`, my vim terminal text content gets littered with error messages like the following dispersed through the text:               (evince:10013): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed      It looks to me as if evince dumps its log output into the vim window, can I prevent that somehow? **Solved** Thanks to @maxschlepzig, I solved it by adding `let g:Tex_ViewRule_pdf = "evince 2>/dev/null"`to my `~/.vimrc`.


title: view history of opened programs Manjaro Linux

text: Is there a way to view a log, or history of all programs opened in Manjaro Linux?


title: How to create LDAP bind account in Centos/RedHat that allows me to search by ldapbind@server.com

text: I am creating an LDAP directory and searching by the full DN shows the proper results.               $ ldapsearch -x -D "cn=ldapbind,dc=server,dc=com" -w bind      I want / **need** to be able to search using the email address as in:               $ ldapsearch -x -D ldapbind@server.com -w bind     ldap_bind: Invalid DN syntax (34)         additional info: invalid DN      We have an Active Directory that allows `ldapsearch` to do that kind of search but I don't know what configuration changes do I need in order to have that in LDAP. I am not attaching my slapd.conf because I want someone to show me the right configuration to do this, and mine is quite minimal.


title: Routing Tables: What is the effect of the RTF_IFSCOPE flag?

text: (Related to this question I posted a while ago on apple.stackexchange.) What is the difference between the following two routing table entries:               default            E.F.G.H     UGSc            0        0     en1     default            E.F.G.H     UGScI          25        0     en1      (Where E.F.G.H is some gateway IP address.) Specifically what effect does the `RTF_IFSCOPE` flag have on the routing table entry?


title: Search a string with last two characters as numeric

text: Suppose I have a file like this:               adasfddfd09     dsassd90897     323sdsdsdsd     sdddsdf56     dfdf45fdfdf      I want to search only those strings which have last two characters numeric with `sed`, `grep` and `awk`.


title: sed, grep, or tr command that returns only Latin characters from a UTF-8 file

text: I am working with the text of the 300 tang poems, which unfortunately is a single file containing both Chinese and English. Since I am interested in 'extracting' the English, I hope to use `sed, grep,`or`tr` to simply return all lines that contain Latin characters. So, for example, this text:               051     七言古詩     李頎     聽安萬善吹觱篥歌          南山截竹為觱篥， 此樂本自龜茲出。      流傳漢地曲轉奇， 涼州胡人為我吹；      傍鄰聞者多歎息， 遠客思鄉皆淚垂。      世人解聽不解賞， 長飆風中自來往。      枯桑老柏寒颼飀， 九雛鳴鳳亂啾啾。      龍吟虎嘯一時發， 萬籟百泉相與秋。      忽然更作漁陽摻， 黃雲蕭條白日暗。      變調如聞楊柳春， 上林繁花照眼新。      歲夜高堂列明燭， 美酒一杯聲一曲。          Seven-character-ancient-verse     Li Qi     ON HEARING AN WANSHAN PLAY THE REED-PIPE          Bamboo from the southern hills was used to make this pipe.      And its music, that was introduced from Persia first of all,      Has taken on new magic through later use in China.      And now the Tartar from Liangzhou, blowing it for me,      Drawing a sigh from whosoever hears it,      Is bringing to a wanderer's eyes homesick tears....      Many like to listen; but few understand.      To and fro at will there's a long wind flying,      Dry mulberry-trees, old cypresses, trembling in its chill.      There are nine baby phoenixes, outcrying one another;      A dragon and a tiger spring up at the same moment;      Then in a hundred waterfalls ten thousand songs of autumn      Are suddenly changing to The Yuyang Lament;      And when yellow clouds grow thin and the white sun darkens,      They are changing still again to Spring in the Willow Trees.      Like Imperial Garden flowers, brightening the eye with beauty,      Are the high-hall candles we have lighted this cold night,      And with every cup of wine goes another round of music.      I would like a command that returns only the line 051, skips the Chinese, then returns the line 'seven character ancient verse' and everything following.


title: pad a number with zeroes

text: I need have put 0 on the results of my grep so my script format will be fine and i don't have any idea how to do it. here's my grep result :               261 : 261 = 0 | 1192 : 1184 = 8 |      283 : 283 = 0 | 666 : 659 = 7 |      267 : 267 = 0 | 631 : 620 = 11 |       283 : 283 = 0 | 787 : 781 = 6 |      278 : 279 = -1 | 963 : 957 = 6 |      **i wish to output something like this :**               261 : 261 = 000  | 1192 : 1184 = 0008 |        283 : 283 =  000  | 0666 : 0659 = 0007 |      267 : 267 =  000  | 0631 : 0620 = 0011 |      283 : 283 =  000  | 0787 : 0781 = 0006 |      278 : 279 = -001  | 0963 : 0957 = 0006 |      **to get that result here is my script :**               count100=`grep -ach "0100 $GivenBIN" $line`     count110=`grep -ach "0110 $GivenBIN" $line`     filename=`echo $line | awk -F"/" '{print $NF}'`     echo -e "$filename     $count100 : $count110 = $ans1| $count220 : $count230 = $ans4 |"


title: edit keyboard keys result

text: When we press `A` key on keyboard, OS write `A` character as result.   How can we change keyboard keys result?   For example when we press `A`, OS write `B` or `Ä` or `آ`.


title: Can I unfreeze bash or vim when SSH session freezes from timeout?

text: When my SSH session times out, the whole terminal freezes. Is there any way to break out of that connection? `CTRL`+`C` doesn't cut it.


title: How do I background an SSH session?

text: > **Possible Duplicate:**   >  How can I break away from an SSH session that has crashed? I have started an SSH session on the command line, but now I want to get back to my local command line. For any other process, I would hit `Ctrl`+`Z`, then run `bg`. However, the `Ctrl`+`Z` get's sent to the remote, rather than the local SSH process. How do I send it to the local SSH process?


title: Configure postfix to send and receive to and from localhost

text: Does anyone know what needs to be configured for postfix so that emails can be sent to localhost and received from localhost? **e.g.** send an email to user1@localhost will:   * result in user1 receiving an email in their mail client (configured to receive local emails)   * user1 can then respond to user2@localhost   * Both user1 and user2 are configured on the same machine i.e. if there is no internet/network connection both these users can still send and receive to/from each other. The reason I ask is because I want to set this up for a dev environment so that I can test an application I am developing.