title: Postfix is sending and receiving mail locally, but not to external mailbox

text: I have a CentOS box running my Apache website and Postfix, but whenever I try PHP's mail() function to my @aevidi email, it sends to my local mailbox in ~/mail, but is not visible in Zoho's webmail. When I send an email from my Gmail account to my @aevidi email, I see it in Zoho but not in my local mailbox (expected result). Here is my setup:   * Zoho as my email host for my custom domain   * CentOS box with my site and mail server (postfix) I followed this tutorial for my Zoho/SES/Postfix high level setup (honestly not sure where SES comes into play) I followed this tutorial to setup Postfix (and Dovecot before I realized what it did, but have removed it since). * * * `/var/log/maillog after executing mail()`               Aug  3 20:05:37 aevidi postfix/pickup[7702]: 31ADD40BDD: uid=48 from=<michael@chtoen.com>     Aug  3 20:05:37 aevidi postfix/cleanup[7707]: 31ADD40BDD: message-id=<20140804000537.31ADD40BDD@aevidi>     Aug  3 20:05:37 aevidi postfix/qmgr[7703]: 31ADD40BDD: from=<xxx@aevidi.com>, size=344, nrcpt=1 (queue active)     Aug  3 20:05:37 aevidi postfix/local[7709]: 31ADD40BDD: to=<xxx@aevidi.com>, relay=local, delay=0.03, delays=0.02/0.0     1/0/0, dsn=2.0.0, status=sent (delivered to maildir)     Aug  3 20:05:37 aevidi postfix/qmgr[7703]: 31ADD40BDD: removed      * * * `/etc/postfix/main.cf`               myhostname = aevidi #This is my FQDN when I type 'hostname -f'     mydomain = aevidi.com     myorigin = $mydomain     home_mailbox = mail/     mynetworks = 127.0.0.0/8     inet_interfaces = all     mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain     smtpd_sasl_auth_enable = yes     smtpd_sasl_type = cyrus     smtpd_sasl_security_options = noanonymous     broken_sasl_auth_clients = yes     smtpd_sasl_authenticated_header = yes     smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination     smtpd_tls_auth_only = no     smtp_use_tls = yes     smtpd_use_tls = yes     smtp_tls_note_starttls_offer = yes     smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key     smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt     smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem     smtpd_tls_received_header = yes     smtpd_tls_session_cache_timeout = 3600s     tls_random_source = dev:/dev/urandom          relayhost = email-smtp.us-east-1.amazonaws.com:25     smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd     smtp_tls_security_level = encrypt     smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt      * * * `DNS configuration` ![Cloudflare DNS](http://i.imgur.com/pkO64Yu.pngg) * * * Any help is appreciated!


title: How to write a literal dot in ed?

text: What would be the right way to write a line containing only `.` to a file in `ed`? The only way I came up with is something like this:               a     .     s/^$/./


title: Send the Output of an HTML file within the email body using mailx

text:
**Problem Statement:-** Currently I am sending an email using `mailx` by attaching an html file within the email. But I want to send an email using `mailx` command instead of attaching the `html file` in an email, I want to show the results of `html file` within an email body. Below is the script I am using to send an email with some content in the body of an email and `attaching chart.html file` in an email. And `instead of attaching html file` in an email, I want to show the `output of html file within an email body`. Can anyone show me an example basis on my below script what changes I need to make to accomplish this?               mailx -s "LIP for $DATE_YEST_FORMAT1" -r techgeeky@host.com techgeeky@host.com <<EOF          Total Items Purchased: `echo $QUERY1 | awk '{print $1}'`          Total Items Missingo: `echo $QUERY1 | awk '{print $2}'`          Error Percentage: $QUERY2          `uuencode /tmp/chart.html chart.html`          EOF      And this is my `chart.html file` which draws a graph- So I need to show this graph within the email body.

                  Any help will be appreciated. And I am running `SunOS`               bash-3.00$ uname -a     SunOS lvsaishdc3in0001 5.10 Generic_142901-02 i86pc i386 i86pc


title: How can I rotate one camera but not the other, in motion?

text: I have two webcams configured in motion. Due to the way I'm positioning one of these cameras, it needs to be rotated upside down (180 degrees). I tried putting this in it's tread.cfg file:               rotate 180      But this turned **both** the cameras upside down. How can I make it effect just one of them? **UPDATE:** Never mind, I got it to work by messing around with the web-based setting interface.


title: Per executable UDP port redirection possible?

text: I have a black box program which listens on a particular UDP port. I'd like it to listen to a UDP port of my choosing. Is there a way to trick the executable into listening on a differen port. I might imagine there exists a library which could be injected with LD_PRELOAD that might incercept the system calls and facilitate this. A virtual machine of course is the heavy handed option, but that's not an option for me.


title: bash function output to pipe

text: I made a bash function to beautify `svn` output, this function show logs one line per commit, it is great! I like it, but if I use it with pipe it does not work. You can find it on github svn-beautify               $ svn -log -l 2     r22  fabio  2014-03-27 12:38:10 +0100 (gio, 27 mar 2014)  1 line  Some comments     r23  fabio  2014-03-27 13:35:17 +0100 (gio, 27 mar 2014)  1 line  Some comments      it would be nice if I could use it with `| grep`.


title: how to check if mysql table is used or an application accesses the table in shell script?

text: A shell script is doing dump for a `mysql` table, but before dumping the table I want to check if this table is used by any other application. If so, I want to wait and enter in a loop until the application stops loading the table and continue with the `mysqdump` after it finishes.


title: How to know function name inside helm

text: I just installed `helm` in Emacs. It works fine, but I want to change some key bindings. For example, `Go to precedent level` inside `find-file` is binding with `C-l`. I want to rebind it with `C-w`. I can't call `describe-key` because it is inside mini buffer. How do I know which function is called when a specified key is hit with `helm-mode`?


title: xterm no longer starting as root user on RHEL6

text: I am totally stuck even after reading both this and this (if it isn't already obvious I don't have much experience with Linux.) I am trying to install `WebSphere 8.5` on `RHEL6`. Everything was going fine with the Installation Manager GUI, then after `IBMHTTPServer`, `Web Server Plugin`, and `WebSphere Customization Toolbox`, I was unable to start the installation manager. Searching the internet let me to believe that testing if even `xterm` worked would be a good idea and unfortunately it does not.               # whoami     root     # xterm     Warning: This program is an suid-root program or is being run by the root user.     The full text of the error or warning message cannot be safely formatted     in this environment. You may get a more descriptive message by running the     program as a non-root user or by removing the suid bit on the executable.     xterm Xt error: Can't open display: %s      I am connected to the Linux box using `mobaXterm` and the xterm command works fine on a cloned VM via the same connection.               # echo $DISPLAY     localhost:10.0     # xauth list     ap01/unix:10  MIT-MAGIC-COOKIE-1  7f20dc9e52baff302a442c46bbd4869b      Again, I am new to this so may not be understanding what is relevant, please let me know if I can post further information. The IBMIM error (removed due to character limit):               ./IBMIM     (IBMIM:22290): GLib-GObject-WARNING **: invalid (NULL) pointer instance     (IBMIM:22290): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed          ...          (IBMIM:22289): Pango-CRITICAL **: pango_layout_get_line_count: assertion `layout != NULL' failed Floating point exception (core dumped)~      Adding `xlock`, `xmag`, and `ssh -v` output:               ssh -v root@<ip_address>     OpenSSH_6.2p2, OpenSSL 1.0.1c 10 May 2012     debug1: Reading configuration data /etc/ssh_config     debug1: Connecting to <ip_address> [<ip_address>] port 22.     debug1: Connection established.     debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1     debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1     debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1     debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1     debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1     debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1     debug1: Enabling compatibility mode for protocol 2.0     debug1: Local version string SSH-2.0-OpenSSH_6.2     debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3     debug1: match: OpenSSH_5.3 pat OpenSSH_5*     debug1: SSH2_MSG_KEXINIT sent     debug1: SSH2_MSG_KEXINIT received     debug1: kex: server->client aes128-ctr hmac-md5 zlib@openssh.com     debug1: kex: client->server aes128-ctr hmac-md5 zlib@openssh.com     debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent     debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP     debug1: SSH2_MSG_KEX_DH_GEX_INIT sent     debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY     debug1: Server host key: RSA f6:69:0b:e8:73:a6:8e:5a:e5:de:95:96:cb:61:2e:4a     debug1: Host '<ip_address>' is known and matches the RSA host key.     debug1: Found key in /home/mobaxterm/.ssh/known_hosts:2     debug1: ssh_rsa_verify: signature correct     debug1: SSH2_MSG_NEWKEYS sent     debug1: expecting SSH2_MSG_NEWKEYS     debug1: SSH2_MSG_NEWKEYS received     debug1: Roaming not allowed by server     debug1: SSH2_MSG_SERVICE_REQUEST sent     debug1: SSH2_MSG_SERVICE_ACCEPT received     debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password     debug1: Next authentication method: publickey     debug1: Trying private key: /home/mobaxterm/.ssh/id_rsa     debug1: Trying private key: /home/mobaxterm/.ssh/id_dsa     debug1: Trying private key: /home/mobaxterm/.ssh/id_ecdsa     debug1: Next authentication method: password     root@<ip_address>'s password:     debug1: Enabling compression at level 6.     debug1: Authentication succeeded (password).     Authenticated to <ip_address> ([<ip_address>]:22).     debug1: channel 0: new [client-session]     debug1: Requesting no-more-sessions@openssh.com     debug1: Entering interactive session.     debug1: No xauth program.     debug1: Requesting X11 forwarding with authentication spoofing.     Last login: Thu Mar 27 15:43:13 2014 from <build_machine_ip_address>     # xlock     -bash: xlock: command not found     # xmag     Error: Can't open display: localhost:12.0      Verification of `xauth` install and `PATH` (honestly I wasn't 100% that the below is sufficient, what is the difference between `xauth` and `xorg-x11-xauth`?, just need parent directory included in `PATH`?, etc):               [root@vm-ap01 apps]# yum whatprovides xauth     Loaded plugins: product-id, refresh-packagekit, security, subscription-manager     This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.     1:xorg-x11-xauth-1.0.2-7.1.el6.x86_64 : X.Org X11 X authority utilities     Repo        : myrepo     Matched from:     Other       : xauth                    1:xorg-x11-xauth-1.0.2-7.1.el6.x86_64 : X.Org X11 X authority utilities     Repo        : installed     Matched from:     Other       : Provides-match: xauth                    [root@vm-ap01 apps]# rpm -ql xauth     package xauth is not installed     [root@vm-ap01 apps]# rpm -ql xorg-x11-xauth     /usr/bin/mkxauth     /usr/bin/xauth     /usr/share/doc/xorg-x11-xauth-1.0.2     /usr/share/doc/xorg-x11-xauth-1.0.2/AUTHORS     /usr/share/doc/xorg-x11-xauth-1.0.2/COPYING     /usr/share/doc/xorg-x11-xauth-1.0.2/ChangeLog     /usr/share/doc/xorg-x11-xauth-1.0.2/NEWS     /usr/share/doc/xorg-x11-xauth-1.0.2/README     /usr/share/man/man1/mkxauth.1x.gz     /usr/share/man/man1/xauth.1.gz     [root@vm-ap01 apps]# echo $PATH     /usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin      I'm not exactly sure about "from the remote side", but below is the output when connected via `mobaxterm` from my workstation to RHEL box:               [root@vm-ap01 apps]# echo $DISPLAY     localhost:13.0     [root@vm-ap01 apps]# xauth list | awk '{print $1, $2}'     vm-ap01/unix:10 MIT-MAGIC-COOKIE-1     vm-ap01/unix:11 MIT-MAGIC-COOKIE-1     vm-ap01/unix:12 MIT-MAGIC-COOKIE-1     vm-ap01/unix:13 MIT-MAGIC-COOKIE-1     vm-ap01/unix:14 MIT-MAGIC-COOKIE-1          [root@vm-ap01 apps]# strace xclock     execve("/usr/bin/xclock", ["xclock"], [/* 34 vars */]) = 0     brk(0)                                  = 0xc2b000     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611d5000     access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)     open("/etc/ld.so.cache", O_RDONLY)      = 3     fstat(3, {st_mode=S_IFREG|0644, st_size=99025, ...}) = 0     mmap(NULL, 99025, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f08611bc000     close(3)                                = 0     open("/usr/lib64/libXaw.so.7", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@|!\3601\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=412648, ...}) = 0     mmap(0x31f0200000, 2506392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31f0200000     mprotect(0x31f025a000, 2093056, PROT_NONE) = 0     mmap(0x31f0459000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x59000) = 0x31f0459000     close(3)                                = 0     open("/usr/lib64/libXmu.so.6", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0pf`/:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=107600, ...}) = 0     mmap(0x3a2f600000, 2201280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a2f600000     mprotect(0x3a2f618000, 2097152, PROT_NONE) = 0     mmap(0x3a2f818000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x3a2f818000     close(3)                                = 0     open("/usr/lib64/libXt.so.6", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p1\2418:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=412832, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611bb000     mmap(0x3a38a00000, 2508640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a38a00000     mprotect(0x3a38a5f000, 2093056, PROT_NONE) = 0     mmap(0x3a38c5e000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5e000) = 0x3a38c5e000     mmap(0x3a38c64000, 1888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3a38c64000     close(3)                                = 0     open("/usr/lib64/libX11.so.6", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\334\3412:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=1300376, ...}) = 0     mmap(0x3a32e00000, 3394936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a32e00000     mprotect(0x3a32f37000, 2097152, PROT_NONE) = 0     mmap(0x3a33137000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x137000) = 0x3a33137000     close(3)                                = 0     open("/usr/lib64/libXrender.so.1", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\30\3404:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=42472, ...}) = 0     mmap(0x3a34e00000, 2135176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a34e00000     mprotect(0x3a34e09000, 2097152, PROT_NONE) = 0     mmap(0x3a35009000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x3a35009000     close(3)                                = 0     open("/usr/lib64/libXft.so.2", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320? ::\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=88632, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611ba000     mmap(0x3a3a200000, 2181216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a3a200000     mprotect(0x3a3a214000, 2097152, PROT_NONE) = 0     mmap(0x3a3a414000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x3a3a414000     close(3)                                = 0     open("/usr/lib64/libxkbfile.so.1", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320J`\3601\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=151792, ...}) = 0     mmap(0x31f0600000, 2245768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31f0600000     mprotect(0x31f0623000, 2097152, PROT_NONE) = 0     mmap(0x31f0823000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x31f0823000     mmap(0x31f0824000, 1160, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x31f0824000     close(3)                                = 0     open("/lib64/libm.so.6", O_RDONLY)      = 3     read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p> 0:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=599384, ...}) = 0     mmap(0x3a30200000, 2633912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a30200000     mprotect(0x3a30283000, 2093056, PROT_NONE) = 0     mmap(0x3a30482000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x82000) = 0x3a30482000     close(3)                                = 0     open("/lib64/libc.so.6", O_RDONLY)      = 3     read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\356!/:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=1926800, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611b9000     mmap(0x3a2f200000, 3750152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a2f200000     mprotect(0x3a2f38b000, 2093056, PROT_NONE) = 0     mmap(0x3a2f58a000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18a000) = 0x3a2f58a000     mmap(0x3a2f58f000, 18696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3a2f58f000     close(3)                                = 0     open("/usr/lib64/libXext.so.6", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3006 3:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=80944, ...}) = 0     mmap(0x3a33200000, 2174216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a33200000     mprotect(0x3a33212000, 2097152, PROT_NONE) = 0     mmap(0x3a33412000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0x3a33412000     close(3)                                = 0     open("/usr/lib64/libXpm.so.4", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`/\340\3571\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=72832, ...}) = 0     mmap(0x31efe00000, 2165496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31efe00000     mprotect(0x31efe11000, 2093056, PROT_NONE) = 0     mmap(0x31f0010000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x31f0010000     close(3)                                = 0     open("/usr/lib64/libSM.so.6", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\32`?:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=34024, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611b8000     mmap(0x3a3f600000, 2126776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a3f600000     mprotect(0x3a3f607000, 2097152, PROT_NONE) = 0     mmap(0x3a3f807000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x3a3f807000     close(3)                                = 0     open("/usr/lib64/libICE.so.6", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0pM`>:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=101608, ...}) = 0     mmap(0x3a3e600000, 2208960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a3e600000     mprotect(0x3a3e617000, 2097152, PROT_NONE) = 0     mmap(0x3a3e817000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x3a3e817000     mmap(0x3a3e818000, 13504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3a3e818000     close(3)                                = 0     open("/usr/lib64/libxcb.so.1", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\230`2:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=124728, ...}) = 0     mmap(0x3a32600000, 2217576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a32600000     mprotect(0x3a3261d000, 2097152, PROT_NONE) = 0     mmap(0x3a3281d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x3a3281d000     close(3)                                = 0     open("/lib64/libdl.so.2", O_RDONLY)     = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\340.:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=22536, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611b7000     mmap(0x3a2ee00000, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a2ee00000     mprotect(0x3a2ee02000, 2097152, PROT_NONE) = 0     mmap(0x3a2f002000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3a2f002000     close(3)                                = 0     open("/usr/lib64/libfontconfig.so.1", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\\`4:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=223040, ...}) = 0     mmap(0x3a34600000, 2316776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a34600000     mprotect(0x3a34634000, 2097152, PROT_NONE) = 0     mmap(0x3a34834000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x34000) = 0x3a34834000     close(3)                                = 0     open("/usr/lib64/libfreetype.so.6", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\310\2404:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=644912, ...}) = 0     mmap(0x3a34a00000, 2737840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a34a00000     mprotect(0x3a34a98000, 2093056, PROT_NONE) = 0     mmap(0x3a34c97000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x97000) = 0x3a34c97000     close(3)                                = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611b6000     open("/lib64/libuuid.so.1", O_RDONLY)   = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\25 ;:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=18936, ...}) = 0     mmap(0x3a3b200000, 2111272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a3b200000     mprotect(0x3a3b204000, 2093056, PROT_NONE) = 0     mmap(0x3a3b403000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x3a3b403000     close(3)                                = 0     open("/usr/lib64/libXau.so.6", O_RDONLY) = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\r\2402:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=13168, ...}) = 0     mmap(0x3a32a00000, 2106112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a32a00000     mprotect(0x3a32a02000, 2097152, PROT_NONE) = 0     mmap(0x3a32c02000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3a32c02000     close(3)                                = 0     open("/lib64/libexpat.so.1", O_RDONLY)  = 3     read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320<`3:\0\0\0"..., 832) = 832     fstat(3, {st_mode=S_IFREG|0755, st_size=167648, ...}) = 0     mmap(0x3a33600000, 2260432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a33600000     mprotect(0x3a33626000, 2093056, PROT_NONE) = 0     mmap(0x3a33825000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x3a33825000     close(3)                                = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611b5000     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611b4000     mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611b2000     arch_prctl(ARCH_SET_FS, 0x7f08611b2740) = 0     mprotect(0x3a30482000, 4096, PROT_READ) = 0     mprotect(0x3a2f58a000, 16384, PROT_READ) = 0     mprotect(0x3a2f002000, 4096, PROT_READ) = 0     mprotect(0x3a2ec1f000, 4096, PROT_READ) = 0     munmap(0x7f08611bc000, 99025)           = 0     open("/usr/lib/locale/locale-archive", O_RDONLY) = 3     fstat(3, {st_mode=S_IFREG|0644, st_size=99158576, ...}) = 0     mmap(NULL, 99158576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f085b321000     close(3)                                = 0     brk(0)                                  = 0xc2b000     brk(0xc4c000)                           = 0xc4c000     open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3     fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611d4000     read(3, "MemTotal:        1923456 kB\nMemF"..., 1024) = 1024     close(3)                                = 0     munmap(0x7f08611d4000, 4096)            = 0     socket(PF_NETLINK, SOCK_RAW, 0)         = 3     bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0     getsockname(3, {sa_family=AF_NETLINK, pid=30849, groups=00000000}, [12]) = 0     sendto(3, "\24\0\0\0\26\0\1\3\320\3545S\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20     recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\320\3545S\201x\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108     recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\320\3545S\201x\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128     recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\320\3545S\201x\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20     close(3)                                = 0     socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3     connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)     close(3)                                = 0     socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3     connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)     close(3)                                = 0     open("/etc/nsswitch.conf", O_RDONLY)    = 3     fstat(3, {st_mode=S_IFREG|0644, st_size=1688, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611d4000     read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1688     read(3, "", 4096)                       = 0     close(3)                                = 0     munmap(0x7f08611d4000, 4096)            = 0     open("/etc/host.conf", O_RDONLY)        = 3     fstat(3, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611d4000     read(3, "multi on\n", 4096)             = 9     read(3, "", 4096)                       = 0     close(3)                                = 0     munmap(0x7f08611d4000, 4096)            = 0     getpid()                                = 30849     open("/etc/resolv.conf", O_RDONLY)      = 3     fstat(3, {st_mode=S_IFREG|0644, st_size=355, ...}) = 0     mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08611d4000     read(3, "# Generated by NetworkManager\n\n\n"..., 4096) = 355     read(3, "", 4096)                       = 0     close(3)                                = 0     munmap(0x7f08611d4000, 4096)            = 0     open("/etc/ld.so.cache", O_RDONLY)      = 3     fstat(3, {st_mode=S_IFREG|0644, st_size=99025, ...}) = 0     mmap(NULL, 99025, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f08611bc000     close(3)                                = 0     open("/lib64/tls/x86_64/libnss_files,dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)     stat("/lib64/tls/x86_64", 0x7fff58448b00) = -1 ENOENT (No such file or directory)     open("/lib64/tls/libnss_files,dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)     stat("/lib64/tls", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0     open("/lib64/x86_64/libnss_files,dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)     stat("/lib64/x86_64", 0x7fff58448b00)   = -1 ENOENT (No such file or directory)     open("/lib64/libnss_files,dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)     stat("/lib64", {st_mode=S_IFDIR|0555, st_size=12288, ...}) = 0     open("/usr/lib64/tls/x86_64/libnss_files,dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)     stat("/usr/lib64/tls/x86_64", 0x7fff58448b00) = -1 ENOENT (No such file or directory)     open("/usr/lib64/tls/libnss_files,dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)     stat("/usr/lib64/tls", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0     open("/usr/lib64/x86_64/libnss_files,dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)     stat("/usr/lib64/x86_64", 0x7fff58448b00) = -1 ENOENT (No such file or directory)     open("/usr/lib64/libnss_files,dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)     stat("/usr/lib64", {st_mode=S_IFDIR|0555, st_size=69632, ...}) = 0     munmap(0x7f08611bc000, 99025)           = 0     open("/usr/lib64/X11/XtErrorDB", O_RDONLY) = -1 ENOENT (No such file or directory)     getuid()                                = 0     geteuid()                               = 0     getuid()                                = 0     write(2, "Error: ", 7Error: )                  = 7     write(2, "Can't open display: localhost:13"..., 34Can't open display: localhost:13.0) = 34     write(2, "\n", 1     )                       = 1     exit_group(1)                           = ?     [root@vm-ap01 apps]#      Looks like SE Linux is enabled as well:               [root@vm-ap01 apps]# sestatus     SELinux status:                 enabled     SELinuxfs mount:                /selinux     Current mode:                   enforcing     Mode from config file:          enforcing     Policy version:                 24     Policy from config file:        targeted


title: How to obtain more brightness levels using Fn+keys in Xfce?

text: When using keyboard's keys to adjust brightness I'm only getting 10 values (levels) of screen brightness. Meanwhile using Xfce plugin for brightness, I can fine-tune brightness. However I want a highly adjustable brightness level. Is there any way to change brightness level of adjustment to "finer steps" (let's say 30 steps) using `Fn`+`key` in Xfce ?


title: Repartion multiple disks and reallocate storage

text: I’m trying to re-partition from an Arch Linux install disc. I’m doing so because my current OS is corrupted. When running `fdisk –l` this is what it looks like:               /dev/sda1 * start=2048 end=1026047 blocks=512000 id=83 system=linux          /dev/sda2   start=10264048 end=625141759 blocks=312057856 id=8e system=linux LVM      I need to wipe everything clean, partition `/sda1` for 15gb for the OS install, and then partition `/sda2` to have the rest. What is the cleanest and least time consuming way to accomplish this? One option I've found to do this is using this type of command:               dd if=/dev/zero of=/dev/sda      However, I'm not entirely sure if I should do this to both disks or one, or the other. I'm not entirely sure that would solve my problem and I know it is very time consuming. Can anyone provide some guidance on how to handle this situation?


title: Deluge crashes when deleting a torrent

text: When I go to delete a torrent, Deluge version 1.3.3 on Linux Mint LMDE 64-bit w/ MATE crashes and fails to delete the torrent. 4GB RAM, Lenovo SL400, 450GB disk space free. Happens reliably, 90% of the time. How may I collect the data to solve this?


title: rsync most recent x GB

text: I'm looking for a command/script to allow the most recently modified files (up to) 10GB be copied to another computer. So if there are 4 files 4 GB each, only 2 of them should be transferred by the script, If there are 12 files 1GB big, only the most recent 10 should be transferred.


title: Android w/ Glibc stack, how can I set-up audio w/ nvlc? Is it possible with ALSA(Debian)?

text: With the help of the book "Embedded Android" by Karim Yaghmour I managed to learn enough about Android's build process last fall. With enough fiddling around and Google'ing I learned a sufficient amount of *nix commands with just enough Bash scripting to make myself a little CM-10.1 ROM, which mounts a Linux `.img` file during boot. My laptop recently became inoperable after a batched Windows install, so this little ROM has become my only source of sufficient computing power. History aside, I have been messing around with some command-line utilities such as `nvlc` and `stagefright`. `stagefright` works to no surprise as it is a "native" Android application. Using the following command:               stagefright -ao test.mp3      I can launch a song and listen to it, while `ssh`'ed into my device. I generally use terminal emulator to use CM's `su` to get the glibc `sshd` running like so:               su -c '/bin/su'     service ssh start      Then I `ssh` in from my **ancient** tower, which has a keyboard and a large screen. Since I am `ssh`ing into the glibc based `ssh` server, it uses PAM's unix2 module to authenticate with `/etc/passwd` and `/etc/shadow`. This is nice, since I can configure it like I am used to. From there though, say I want to launch `nvlc` to jam out, it won't work. And well, `stagefright` isn't as nice as `nvlc` in my opinion. This is some output of what I have done so far:               root@Flubber:/sdcard/Music$ lspci     pcilib: Cannot open /proc/bus/pci     lspci: Cannot find any working access method.          root@Flubber:/etc/init.d# aplay --list-devices     **** List of PLAYBACK Hardware Devices ****     card 0: msm8960sndcard [msm8960-snd-card], device 0: MultiMedia1 (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 1: MultiMedia2 (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 2: CS-Voice (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 3: VoIP (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 4: LPA (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 5: SLIMBUS_0 Hostless (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 6: INT_FM Hostless (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 7: AFE-PROXY RX msm-stub-rx-7 []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 9: COMPR (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 10: AUXPCM Hostless (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 11: HDMI_RX_HOSTLESS (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 12: VoLTE (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 13: Voice2 (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 14: MultiMedia5 (*) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 15: (Internal BT-SCO Playback) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 17: (Internal FM Playback) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 19: (HDMI Playback) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 20: (AFE Playback) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 22: (AUX PCM Playback) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 24: (Voice Farend Playback) []       Subdevices: 1/1       Subdevice #0: subdevice #0     card 0: msm8960sndcard [msm8960-snd-card], device 27: (Primary I2S Playback) []       Subdevices: 1/1       Subdevice #0: subdevice #0          root@Flubber:/etc/init.d# ./alsa-utils start 0     [ ok ] Setting up ALSA card 0...done.          brainard@Flubber:/sdcard/Music$ cvlc SlipKnoT\ -\ Spit\ It\ Out\ \[DUBSTEP\ REMIX\ by\ Elysium\]\ \*with\ musicvideo\*\ \[HD\ \].mp3      VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)     [0x92c0c8] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11     [0x92c0c8] main interface error: no suitable interface module     [0x8b4b80] main interface error: no suitable interface module     [0x8943e8] main libvlc error: interface "globalhotkeys,none" initialization failed     [0x8b4b80] dummy interface: using the dummy interface module...     shm_open() failed: Permission denied     [0x8b5448] pulse audio output error: PulseAudio server connection failure: Connection refused     shm_open() failed: Permission denied     [0x8b5448] alsa audio output error: cannot open ALSA device "default": Invalid argument     [0x8b5448] main audio output error: Audio output failed     [0x8b5448] main audio output error: The audio device "default" could not be used:     Invalid argument.     [0x8b5448] oss audio output error: cannot open audio device (/dev/dsp)     [0x8b5448] main audio output error: no suitable audio output module     [0x8b7f80] main decoder error: failed to create audio output     [0x9200b0] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 300 ms)     [0x9200b0] main input error: ES_OUT_RESET_PCR called     ^C      I have installed the `alsa-utils` as you can see, as well as `pulseaudio` and assigned my user to the audio group of `GID 1005`, because that's the GID of audio on Android. I'm not sure if this is a configuration issue, a driver issue, or something else. I've never had to configure audio before, it's always just worked on Linux. Since this is on an Android device, I didn't expect it to work, but then again other things work like network access and writing to sdcards do. I had to create groups and add my user to them though to gain permission from Android.   * Is there anything I can do?   * Is the way audio works on Android just too different? As far as I know, Android uses tiny-alsa sometimes, and may use HAL but at that point, its a bit over my head. What would be a good source of info? I don't really want to spend a whole lot of time on this, a week or two tops, bad info has wasted a lot of my time in the past which can be really frustrating. * * * ## Update I stumbled across a thread at the Gentoo forums while Google'ing some of the errors I have been getting and it turns out tmpfs actually has to get mounted to `/run/shm`. So I put this in my `/etc/fstab` file , as per the thread at Gentoo forums:               none    /dev/shm        tmpfs   nodev,nosuid,noexec     0       0      and then executed `sudo mount /dev/shm`. Then I did:               brainard@Flubber:/sdcard/Music$ aplay -vv Track_1.wav      **aplay: main:682: audio open error: Invalid argument**      and got that output: `no failure to open shared memory`. Also, in `/proc/asound` :               brainard@Flubber:/proc/asound$ ls     card0  cards  devices  hwdep  msm8960sndcard  pcm  timers  version          brainard@Flubber:/proc/asound$ cat version      Advanced Linux Sound Architecture Driver Version 1.0.25.      And the `speaker-test` :               brainard@Flubber:/proc/asound/card0$ speaker-test -Ddefault:0 -twav     speaker-test 1.0.25          Playback device is default:0     Stream parameters are 48000Hz, S16_LE, 1 channels     WAV file(s)     Playback open error: -22,Invalid argument      Hopefully that might help someone help me, and thank you in advance. If you need any more info, just ask, I'll be happy to. **Update 2** I popped open `alsamixer` and discovered well over 300 different "items" (more like 400+, I stopped counting at 300) related to this single card. Some of them have to do with HDMI, others with VoIP, some with VoLTE, most are muted, off, or at zero and I have no idea what they are for. I suppose if someone knew what they were doing and got this working, it could be rather powerful. I ran this: `alsactl init`               root@Flubber:/etc/init.d# alsactl init     Found hardware: "msm8960-snd-car" "" "" "" ""     Hardware is initialized using a generic method      And it seems after all this, `stagefright` doesn't work any more. It just returns `segfault` I guess thats my fault ;) Hopefully a reboot fixes it.


title: Is there a way to discover why my server had a high load

text: Just now I was forced to remotely reboot my CentOS 6.3 system due to a ultra high load (75!) that paralyzed the system. This is a web/mail server that serves a wordpress blog (mySQL + PHP). Is there any log I can analyze and try to discover what cause that? This is the email I have received now from the system about the event yesterday:               This is an automated message notifying you that the 5 minute load average on your system is 75.91.     This has exceeded the 10 threshold.          One Minute      - 83.24     Five Minutes    - 75.91     Fifteen Minutes - 39.35          top - 22:25:30 up 122 days,  7:28,  0 users,  load average: 99.14, 80.70, 42.31     Tasks: 298 total,   1 running, 297 sleeping,   0 stopped,   0 zombie     Cpu(s):  1.2%us,  0.5%sy,  0.0%ni, 98.1%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st     Mem:   1020176k total,   956828k used,    63348k free,     2788k buffers     Swap:  4194296k total,  1391900k used,  2802396k free,    25164k cached           PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                1 root      20   0 19352  448  444 S  0.0  0.0   0:08.27 /sbin/init                                                                                2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [kthreadd]                                                                                3 root      RT   0     0    0    0 S  0.0  0.0   0:09.43 [migration/0]                                                                                4 root      20   0     0    0    0 S  0.0  0.0   1884:48 [ksoftirqd/0]                                                                                5 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 [migration/0]                                                                                6 root      RT   0     0    0    0 S  0.0  0.0   0:06.06 [watchdog/0]                                                                                7 root      RT   0     0    0    0 S  0.0  0.0   0:07.81 [migration/1]                                                                                8 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 [migration/1]                                                                                9 root      20   0     0    0    0 S  0.0  0.0   7:25.62 [ksoftirqd/1]                                                                                10 root      RT   0     0    0    0 S  0.0  0.0   0:04.58 [watchdog/1]                                                                                11 root      20   0     0    0    0 S  0.0  0.0   4:48.95 [events/0]                                                                                12 root      20   0     0    0    0 S  0.0  0.0   9:13.85 [events/1]                                                                                13 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [cgroup]                                                                                14 root      20   0     0    0    0 S  0.0  0.0   0:08.21 [khelper]                                                                                15 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [netns]                                                                                16 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [async/mgr]                                                                                17 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [pm]                                                                                18 root      20   0     0    0    0 S  0.0  0.0   0:21.72 [sync_supers]                                                                                19 root      20   0     0    0    0 S  0.0  0.0   0:20.65 [bdi-default]                                                                                20 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [kintegrityd/0]                                                                                21 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [kintegrityd/1]                                                                                22 root      20   0     0    0    0 S  0.0  0.0   5:26.09 [kblockd/0]                                                                                23 root      20   0     0    0    0 S  0.0  0.0   0:22.90 [kblockd/1]       I am not sure if this can help. Everything appears to be using 0% of CPU... this is another email...               This is an automated message notifying you that the 5 minute load average on your system is 70.53.     This has exceeded the 10 threshold.          One Minute      - 94.79     Five Minutes    - 70.53     Fifteen Minutes - 32.68          top - 22:23:34 up 122 days,  7:26,  0 users,  load average: 96.88, 74.74, 35.91     Tasks: 283 total,   2 running, 281 sleeping,   0 stopped,   0 zombie     Cpu(s):  1.2%us,  0.5%sy,  0.0%ni, 98.1%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st     Mem:   1020176k total,   970440k used,    49736k free,     3196k buffers     Swap:  4194296k total,  1249404k used,  2944892k free,    29836k cached           PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                6715 apache    20   0  217m 7804 3252 D  1.9  0.8   0:00.28 /usr/sbin/httpd -k start -DSSL                                                                                6770 apache    20   0  218m 8772 3368 D  1.9  0.9   0:00.28 /usr/sbin/httpd -k start -DSSL                                                                                6799 apache    20   0  301m 8088 3184 D  1.9  0.8   0:00.14 /usr/sbin/httpd -k start -DSSL                                                                                7265 root      20   0 15160 1220  808 R  1.9  0.1   0:00.02 /usr/bin/top -c -b -n 1                                                                                7266 root      20   0 15160 1220  808 R  1.9  0.1   0:00.02 /usr/bin/top -c -b -n 1                                                                                1 root      20   0 19352  448  444 S  0.0  0.0   0:08.27 /sbin/init                                                                                2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [kthreadd]                                                                                3 root      RT   0     0    0    0 S  0.0  0.0   0:09.43 [migration/0]                                                                                4 root      20   0     0    0    0 S  0.0  0.0   1884:48 [ksoftirqd/0]                                                                                5 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 [migration/0]                                                                                6 root      RT   0     0    0    0 S  0.0  0.0   0:06.06 [watchdog/0]                                                                                7 root      RT   0     0    0    0 S  0.0  0.0   0:07.81 [migration/1]                                                                                8 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 [migration/1]                                                                                9 root      20   0     0    0    0 S  0.0  0.0   7:22.58 [ksoftirqd/1]                                                                                10 root      RT   0     0    0    0 S  0.0  0.0   0:04.58 [watchdog/1]                                                                                11 root      20   0     0    0    0 S  0.0  0.0   4:48.95 [events/0]                                                                                12 root      20   0     0    0    0 S  0.0  0.0   9:13.85 [events/1]                                                                                13 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [cgroup]                                                                                14 root      20   0     0    0    0 S  0.0  0.0   0:08.21 [khelper]                                                                                15 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [netns]                                                                                16 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [async/mgr]                                                                                17 root      20   0     0    0    0 S  0.0  0.0   0:00.00 [pm]                                                                                18 root      20   0     0    0    0 S  0.0  0.0   0:21.72 [sync_supers]                             Yes, I am using Apache. 75 is the load average saw on top for the last 5 minutes.


title: shutdown ubuntu server after 2 days at midnight

text: **without using a cronjob** how would I have a ubuntu server shutdown after 2 days (2880 minutes) at midnight? The essence of what I want to do is this: `bash shutdown -r +2880 00:00 ` which would tell shutdown to shutdown after 2880 minutes, but to make sure that it is midnight before actually shutting down.


title: Mint 15 Second monitor window sizing mess up

text: I'm running Mint 15 Cinnamon 64-bit on Dell Lattitude E6430 with external 24" Dell Monitor. The laptop has 1600x900 and the 24" has 1900x1080 resolution. I'm on standing desk with the 24" monitor configured **_on top_** of the laptop screen. Roughly like this:               _____________________________     |                            |     |                            |     |                            |     |        24"                 |     |                            |     |                            |     |                            |     ------------------------------         |                    |         |                    |         |     14" laptop     |         |                    |         |____________________|      However any app on the 24" monitor has issue with window sizing, maximising it put it on the edge of the screen either left or right side. It looks like it only figure out the max window size is the 320 pixels on the edge only like this:               _____________________________     |                        |   |     |                        | A |     |                        | P |     |        24"             | P |     |                        |   |     |                        |   |     |                        |   |     ------------------------------         |                    |         |                    |         |     14" laptop     |         |                    |         |____________________|      I hope that makes sense. So how do I solve this problem?


title: Get space details without drive names

text: if there a way to get drives space details without drive names. E.g., the output of               df -h          Filesystem            Size  Used Avail Use% Mounted on     /dev/sda3              20G   15G  4.2G  78% /     /dev/sda6              68G   39G   26G  61% /u01     /dev/sda2              30G  5.8G   22G  21% /opt     /dev/sda1              99M   19M   76M  20% /boot     tmpfs                  48G  8.2G   39G  18% /dev/shm     /dev/mapper/vg3-KPGBKUP4                        10T  7.6T  2.5T  76% /KPGBKUP4      I want the output as below:               20G   15G  4.2G  78%      68G   39G   26G  61%      30G  5.8G   22G  21%      99M   19M   76M  20%      48G  8.2G   39G  18%      10T  7.6T  2.5T  76%      Why I want this? I have several servers and have to make report everyday. This will reduce my work to one tenth. Any suggestion is highly appreciated.


title: Why are new cronjobs ignored unless crond is restarted in SLES?

text: I added a new cronjob with a user (SUSE LINUX Enterprise Server 9.4):               # su - XXX     $ crontab -e      and this is what I added:               * * * * * echo `date` >> /home/XXX/a.txt      but the a.txt isn't created... it will be ONLY created when root restarts the crond... **Q:** Why? UPDATE:               machine:~ # chage -l XXX     Minimum:    1     Maximum:    99999     Warning:    7     Inactive:   -1     Last Change:        Apr 11, 2011     Password Expires:   Never     Password Inactive:  Never     Account Expires:    Never     machine:~ #       so the user or it's password doesn't expired. UPDATE: cron version:               cron-3.0.1-920.18      and I tried to add a new crontab to the root user.. it's the same :D the new root cronjobs aren't running too.. :D **it looks like "crontab -e" doesn't reloads CROND or something...**


title: Ip connectivity with two interfcaes

text: I have two network interfaces in Linux machine , eth0 and eth1. IP is assigned to both interface from two different VLANs and default gateway to eth0. Now if interface eth0 is down I am unable to route traffic outside as default gateway is also unavailable. Is there is any way to address this scenarios?


title: Allocating more than 1 GB DMA memory

text: Is it possible to allocate more than 1 GB DMA memory on a machine, say with 24 GB RAM? If not, what makes it impossible?


title: Exit status of an asynchronous process

text: Although the following command returns an exit status that depends on the existence of the remote file:               ssh $userAtServer "ls $targetDir/$targetFile" > $sshOutputFile     lsReturnValue=$?      which I can then test to do some stuff, it **sometimes** hangs (1 out of 10 or 20) and blocks further code execution. So I need to run a ssh command like this one and to retrieve the exit value of the ls function:               (ssh $userAtServer "ls $targetDir/$targetFile" > $sshOutputFile ; lsReturnValue=$?) &     timeOutProcess $!      However, lsReturnValue always return an empty string. timeOutProcess is a function that kills my command if it lasts for too much time:               timeOutProcess() {         processId=$1              #from http://www.bashcookbook.com/bashinfo/source/bash-4.0/examples/scripts/timeout3         timeout=45         interval=2         delay=5         (             ((t = timeout))                  while ((t > 0)); do                 sleep $interval                 kill -0 $processId || return 0                 ((t -= interval))             done             # Be nice, post SIGTERM first.             # The 'exit 0' below will be executed if any preceeding command fails.             kill -s SIGTERM $processId && kill -0 $processId || exit 0             sleep $delay             kill -s SIGKILL $processId         ) 2> /dev/null       }      I wonder how could I get the $? value from the ssh command ?


title: How to recover grub after Windows installation

text: Usually when we install Windows after installing GNU/Linux, we usually lose the Grub. Which is the best way to recover grub when we lost grub or what are the possible different ways.


title: setgid binary doesn't have permission, mount's right, I'm missing something, but what, please?

text: I'm sorry, I know this has to be something simple but I've checked the manpages, the mount, the permissions ... (edit: combined history into one sequence as requested. Starting to seem a not-simple problem. Nothing new since last edit, just bundled up all pretty)               ~/sandbox/6$ editfunc doit     ~/sandbox/6$ -x doit     + doit     + find     .     + cp /bin/ln /bin/id .     + sudo chown jthill:jthill id ln     + chmod g+s id ln     + mkdir protected     + chmod 770 protected     + touch data     + set +xv     ~/sandbox/6$ ls -A     data  id  ln  protected     ~/sandbox/6$ ls -Al     total 92     -rw-r--r-- 1 jthill jthill     0 Nov  8 02:39 data     -rwxr-sr-x 1 jthill jthill 31432 Nov  8 02:39 id     -rwxr-sr-x 1 jthill jthill 56112 Nov  8 02:39 ln     drwxrwx--- 2 jthill jthill  4096 Nov  8 02:39 protected     ~/sandbox/6$ sudo su nobody     [nobody@home 6]$ ./id     uid=619(nobody) gid=617(nobody) egid=1000(jthill) groups=617(nobody)     [nobody@home 6]$ ./ln ln protected     ./ln: failed to create hard link ‘protected/ln’ => ‘ln’: Operation not permitted     [nobody@home 6]$ ./ln data protected     ./ln: failed to create hard link ‘protected/data’ => ‘data’: Operation not permitted     [nobody@home 6]$ ln ln protected     ln: failed to create hard link ‘protected/ln’ => ‘ln’: Permission denied     [nobody@home 6]$ ln data protected     ln: failed to create hard link ‘protected/data’ => ‘data’: Permission denied     [nobody@home 6]$ exit     ~/sandbox/6$


title: Filesystem not showing correct size in Mac OSX

text: I installed a new HDD and transferred my old data to it by using `dd` on my old HDD and then `dd` again to the new HDD. However, when booting from the new HDD, it does not recognize the new, larger disk space, and still thinks it has the old size. My old HDD was 160 GB and it was near capacity, new HDD is 1TB. The command I ran to write to my new harddrive was               >: sudo dd if=/dev/rdisk3 of=/dev/rdisk0s2 bs=131072          >: df -h     Filesystem      Size   Used  Avail Capacity  Mounted on     /dev/disk0s2   149Gi  146Gi  2.4Gi    99%    /          >: diskutil list     /dev/disk0        #:                       TYPE NAME                    SIZE       IDENTIFIER        0:      GUID_partition_scheme                        *1.0 TB     disk0        1:                        EFI                         209.7 MB   disk0s1        2:                  Apple_HFS Macintosh HD            999.9 GB   disk0s2      How should I fix this? I can run another round of `dd` again if need be.


title: Unmount external drive with LVM2 Physical Volume on it

text: I've got my Ubuntu 13.04 install backed up to my external hard drive using deja-dup. I formatted the drive with lvm so I could use the rest of the drive for external storage while having the resize capeabilites of an lv. When I plug the drive in to backup, it mounts and runs properly. Backup's done, I hit the eject button to unmount the backup lv, everything still green. I unplug the drive, noting the activity light is on but doesn't go off. After doing this I want to access the storage, so I plug the drive in but get an error which reads:               Unable to access “storage” Error mounting /dev/dm-2 at /media/alex/storage:      Command-line `mount -t "ext4" >-o "uhelper=udisks2,nodev,nosuid" "/dev/dm-2" "/media/alex/storage"' exited >with non-zero exit status 32:      mount: wrong fs type, bad option, bad superblock >on /dev/mapper/VG1-storage,           missing codepage or helper program, or other error           In some cases useful info is found in syslog - try           dmesg | tail  or so      I've messed around Linux and the command line long enough to know it's not mounting properly because it wasn't unmounted properly, but after a couple of week's worth of searching and hacking I'm still resorting rebooting in order to fix it. What's the procedure to "unmount" a physical volume?


title: Bridged network on OS X only gets UDP broadcast traffic

text: I've created a bridged network Mac OS X 10.8.5 using `ifconfig` and TUNTAP for OS X to bridge my wireless connection, `en0`, with a virtual interface, `tap0`, which I can use for guest VMs:                   $ sudo sysctl -w net.inet.ip.forwarding=1         $ sudo sysctl -w net.link.ether.inet.proxyall=1         $ sudo sysctl -w net.inet.ip.fw.enable=1              $ sudo ifconfig bridge0 create         $ sudo ifconfig bridge0 addm en0 addm tap0         $ sudo ifconfig bridge0 up              $ ifconfig         en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500             ether 28:cf:xx:xx:xx:xx             inet6 xxxx::xxxx:xxxx:xxxx:xxxx%en0 prefixlen 64 scopeid 0x4             inet 192.168.100.64 netmask 0xffffff00 broadcast 192.168.100.1             media: autoselect             status: active         bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500             ether ac:de:xx:xx:xx:xx             Configuration:                 priority 0 hellotime 0 fwddelay 0 maxage 0                 ipfilter disabled flags 0x2             member: en0 flags=3<LEARNING,DISCOVER>                      port 4 priority 0 path cost 0             member: tap0 flags=3<LEARNING,DISCOVER>                      port 8 priority 0 path cost 0         tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500             ether ca:3d:xx:xx:xx:xx             open (pid 88244)      However, if I `tcpdump -i tap0`, I only see broadcast traffic. Shouldn't I see a mirror of everything on `en0`? (192.168.100.33, the host doing the broadcasting, is another unrelate, noisy server on my LAN.) ![broadcast packets](http://i.stack.imgur.com/jU64I.png) (I asked a similar question here and will probably close it.)


title: Comparing text files on Emacs

text: I have a couple of questions about comparing text files on Emacs   1. I have been playing with `M-x compare-windows` and I read in the documentation that, if I pass it a numeric argument, Emacs ignores whitespaces on the comparison, but how do I pass a numeric argument to this command? (e.g.. if I type `M-x compare-windows` and then I press `space`, it will try to autocomplete with a `-`)   2. Are there any other more powerful tools or plugins for Emacs (maybe third-party?) for comparing text files?  For example, on WinMerge for Windows, you can compare two documents side-by- side and the program automatically highlights the differences. On WinMerge I can also simultaneously scroll both windows, and it aligns regions with identical text on both windows for easy comparison. **See a snapshot** here. Is there anything like this for Emacs?


title: Are there naming conventions for variables in shell scripts?

text: Most languages have naming conventions for variables, the most common style I see in shell scripts is `MY_VARIABLE=foo`. Is this the convention or is it only for global variables? What about variables local to the script?


title: Is a virtual encrypted disk stored in a file on a NAS allowing for concurrent R/W access?

text: I'd like that all the data stored in a NAS is encrypted. The NAS is used for a) daily backups AND b) as a **shared** hard disk for users, allowing thus concurrent read/write access. All machines are Linux, so no need to take into account Windows (eg Samba). I plan to build on this NAS a virtual encrypted disk using a loop device and cryptsetup. Some questions:   * Several users will mount this virtual drive and access in read/write, is this ok or could there be problems?   * Would the performance of this method by reasonable or are there faster approaches for shared encryption?


title: Can I get full video capabilities in Arch Linux guest on Virtual Box?

text: I'm trying out arch linux on my win7 host on a VB and I have it installed just fine, the problem is that when I try to use gnome-shell it goes back to fallback mode because it detects that my video drivers aren't capable of rendering it. Since it's a VM I know it's not detecting my actual video card but I'd like to know if it's possible to get full 2d/3d video support so I can test the OS properly in the VM. I installed the `virtualbox-archlinux- additions` package and I added the `vboxguest vboxsf vboxvideo` modules to my rc.conf file and it's working fine I believe. Can you guys help me with this? I'm not very good with linux my previous experience has been with Ubuntu and Fedora so please be gentle :)


title: Random mac address at startup

text: I would like to get a random mac address everytime I turn on my linux machine (debian). Is this possible? If so, how?


title: selecting rows that have the same value

text: I have a problem in selecting rows that have the same value. My data is too huge to go row by row to do that. I want you guys to let me know scripts that can perform this. My data looks like as below: file name: `temp`               Start day   hour    end day        hour Value     01/04/2000  22:00   01/05/2000  09:00   -9     01/05/2000  09:00   01/06/2000  09:00   -9     01/06/2000  09:00   01/07/2000  09:00   -9     01/07/2000  09:00   01/08/2000  09:00   -9     01/08/2000  09:00   01/09/2000  09:00   -9     01/09/2000  09:00   01/10/2000  09:00   -9     01/10/2000  09:00   01/11/2000  09:00   -9     01/11/2000  09:00   01/11/2000  21:30   -9     01/11/2000  22:30   01/12/2000  09:00   -9     01/12/2000  09:00   01/13/2000  09:00   -9     01/15/2000  09:00   01/16/2000  09:00   -9     01/16/2000  09:00   01/17/2000  09:00   -9     01/17/2000  09:00   01/18/2000  09:00   -9     01/18/2000  09:00   01/18/2000  22:45   -9     01/18/2000  22:50   01/19/2000  09:00   0.15     01/19/2000  09:00   01/20/2000  09:00   -9     01/20/2000  09:00   01/21/2000  09:00   -9     01/21/2000  09:00   01/22/2000  09:00   -9     01/22/2000  09:00   01/23/2000  09:00   -9     01/23/2000  09:00   01/24/2000  09:00   -9     01/24/2000  09:00   01/25/2000  09:00   -9     01/25/2000  09:00   01/26/2000  00:35   -9     01/26/2000  00:35   01/26/2000  09:00   -9     01/26/2000  09:00   01/27/2000  09:00   -9      Above 01/18/2000 for instance appears twice as the "Start day", and twice as the "end day". Therefore, I want to include the lines that have `01/18/2000` as the "Start day" or "end day". I want my output from the above data be:               Start day   hour    end day        hour Value     01/10/2000  09:00   01/11/2000  09:00   -9     01/11/2000  09:00   01/11/2000  21:30   -9     01/11/2000  22:30   01/12/2000  09:00   -9     01/17/2000  09:00   01/18/2000  09:00   -9     01/18/2000  09:00   01/18/2000  22:45   -9     01/18/2000  22:50   01/19/2000  09:00   0.15     01/25/2000  09:00   01/26/2000  00:35   -9     01/26/2000  00:35   01/26/2000  09:00   -9     01/26/2000  09:00   01/27/2000  09:00   -9


title: Mirror displays on Mint 15 login screen

text: I have the _Mirror Displays_ enabled on my Linux Mint 15 Cinnamon 64-bit box, which has a GTX 680 graphics card installed with recommended drivers. I selected the top green one in this screenshot. However, when on the login screen, the display is not mirrored; it's displayed on the primary monitor only. I really would like to have the WebGL clouds (the flyover one) MDM login screen projected on a 108″ screen before login. Is there any way I could do this? * * * **Edits for updates:** I notice that the _Mirror Displays_ setting is account-specific. Is there a "default" user at the login screen whose settings I could tweak to enable this? I've tried `sudo su -l mdm` in an attempt to `cinnamon-settings` the display to mirrored, but `sudo su -l mdm` has no effect (very strangely): I retain my shell prompt, and a single `exit` kills the terminal.


title: record audio on Linux - capture both sides of a VoIP conversation

text: I want to use Audacity (or similar) to record audio for podcasting. The podcasts will be interviews conducted via voice-over-IP (SIP) telephone. I came across an excellent tutorial here: http://www.linux.com/learn/tutorials/367395-weekend-project-record-from-skype- calls-and-other-apps-on-linux It gives most of the steps I need. Most importantly, it describes how to capture both sides of the call from apps that don't support recording. "The real solution to capturing both sides of the call is to construct a virtual PulseAudio device that connects to both of them" and "Then record the null sink, capturing the merged audio in a single file." However, I want to do one thing differently. I don't want the audio of the conversation entirely "merged." I want one side of the conversation in one channel and the other side in another channel. There is actually a hardware device that does this and that's where I got the idea. The device is the JK Audio Inline Patch found here: http://www.jkaudio.com/inline-patch_dtails.htm It offers "a mini stereo output jack, caller on left channel, local voice on right channel." That's similar to what I want. I think I can do it like the tutorial describes without having to buy a $250 US hardware device. The original tutorial steps are:               pacmd info     cp /etc/pulse/default.pa ~/.pulse/default.pa      then open default.pa in your favorite editor and add something like this (based on the info from pacmd info):               # set up null sink and loopbacks to record voice calls     load-module module-null-sink sink_name=mywiretap     load-module module-loopback source=alsa_output.pci-0000_00_06.1.analog-surround-40.monitor sink=mywiretap     load-module module-loopback source=alsa_input.pci-0000_00_06.1.analog-stereo sink=mywiretap      From the tutorial: What's extra nice about this setup is that PulseAudio stores the application connection details automatically, so the next time you log in, you will not have to repeat the process of connecting the recording app to the Null Output Monitor — just fire up your audio recorder, phone your [interview subjects], and start talking... My question is, How do I capture my audio in one channel and the interview subject's audio in another channel of a stereo recording? Or how do I capture them entirely separately (if necessary) using Audacity? I fooled around with Audacity and I cannot open two windows and record two separate sources using Audacity (at least not that I could figure out). In case it is of interest my SIP client is Twinkle.


title: du command show a slash after directories?

text: How to use `du` command show a slash after directories? For example: > du -ab /root/test/php-5.4.8/ Result:               1781    /root/test/php-5.4.8/main/internal_functions.c.in     973596  /root/test/php-5.4.8/main     3841    /root/test/php-5.4.8/netware/start.c     577     /root/test/php-5.4.8/netware/sendmail_nw.h     8514    /root/test/php-5.4.8/netware     4957    /root/test/php-5.4.8/README.TESTING2     4561    /root/test/php-5.4.8/.gitignore      However I want directories to include trailing slash, for example:               1781    /root/test/php-5.4.8/main/internal_functions.c.in     973596  /root/test/php-5.4.8/main/     3841    /root/test/php-5.4.8/netware/start.c     577     /root/test/php-5.4.8/netware/sendmail_nw.h     8514    /root/test/php-5.4.8/netware/     4957    /root/test/php-5.4.8/README.TESTING2     4561    /root/test/php-5.4.8/.gitignore      I have managed to do `find` command but it will not include total file size of the directories and that is why I have to use `du` command               find /root/test/php-5.4.8/ \( -type d -printf "%s %p/\n" , -type f -printf "%s " -print \)


title: Install downloaded packages with dependencies

text: I sometimes download .deb packages from the internet and install them with `dpkg -i package.deb` If the packages have unmet dependencies. How can I install the dependencies automatically (similar to `apt-get install package`, and mark these dependencies as installed automatically instead of manually.


title: Stuck in login loop after editing /etc/profile

text: I edited my /etc/profile in root to attempt to run a script at login, but apparently I did that wrong. The issue now, after rebooting the VM, the login loops. If I type in my user name and then password, it will successfully login, display the time of my last login, and then return me back to the login screen after a second or so. I've tried logging in as root and my normal login. I read somewhere else that booting into a recovery mode could help, but I can't find that option when booting Arch. I have options for:   1. Arch Linux pkg-linux-kernel   2. Arch Linux pkg-linux-kernel (fallback initramfs)   3. Arch Linux   4. Advanced options for arch linux I've tried all of these boot options


title: No volume control in Nexuiz fullscreen mode

text: While playing Nexuiz on my Ubuntu in fullscreen mode the volume control buttons on my laptop don't work at all, externally after minimizing the game increasing/decreasing the sound solves the problem but there is no in-game vol control? Also when on headphones the game music plays on the laptop speakers as well as on the headphones! What could the problem be? Is this a sound driver issue or x-org issue? its also happening with someone i know while playing Warzone2100 on Ubuntu 12.04.


title: Byobu creates infinite spawn of "byobu-status -> tmux" children under tmux

text: When I launch Byobu, my System Monitor shows a new tmux process with a continuously growing set of byobu-status -> tmux children eating-up all my memory... -> tmux -> byobu-status -> tmux -> byobu-status -> tmux -> byobu-status -> tmux -> ... -> ... -> ... ... ... ... This continues with memory growing every second, and I can't find where the issue is being triggered. Upon booting into the system, when tmux is launched on it's own before and separately from byobu, this issue WILL NOT happen in THAT tmux session. After byobu is launched for the first time and any subsequent time following that, tmux on it's own WILL cause this issue. I don't doubt that it's a configuration issue in some rc file, but can't for the life of me find where it is...these are the files I've tried looking through: _**~/.byobu/profile.tmux_**               source $BYOBU_PREFIX/share/byobu/profiles/tmux      _**/usr/share/byobu/profiles/tmux_**               ###############################################################################     #    tmux common profile     #      This tmux configuration profile is intended to correspond to Byobu's     #      traditional GNU Screen profile     #     #    Copyright (C) 2011 Dustin Kirkland     #     #    Authors: Dustin Kirkland <kirkland@ubuntu.com>     #     #    This program is free software: you can redistribute it and/or modify     #    it under the terms of the GNU General Public License as published by     #    the Free Software Foundation, version 3 of the License.     #     #    This program is distributed in the hope that it will be useful,     #    but WITHOUT ANY WARRANTY; without even the implied warranty of     #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     #    GNU General Public License for more details.     #     #    You should have received a copy of the GNU General Public License     #    along with this program.  If not, see <http://www.gnu.org/licenses/>.     ###############################################################################          # Initialize environment, clean up     set-environment -g BYOBU_BACKEND tmux     new-window -d byobu-janitor     set -s escape-time 0          # Change to Screen's ctrl-a escape sequence     source /usr/share/doc/tmux/examples/screen-keys.conf     # On Archlinux, this file is not under the same directory     source /usr/share/tmux/screen-keys.conf          # Add F12 to the prefix list     set -g prefix ^A,F12          # Byobu's Keybindings     source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux          set-option -g set-titles on     set-option -g set-titles-string '#(whoami)@#H - byobu (#S)'     set-option -g pane-active-border-bg $BYOBU_ACCENT     set-option -g pane-active-border-fg $BYOBU_ACCENT     set-option -g pane-border-fg $BYOBU_LIGHT     set-option -g history-limit 10000     set-option -g display-panes-time 150     set-option -g display-panes-colour $BYOBU_ACCENT     set-option -g display-panes-active-colour $BYOBU_HIGHLIGHT     set-option -g clock-mode-colour $BYOBU_ACCENT     set-option -g clock-mode-style 24     set-option -g mode-keys vi     set-option -g mode-bg $BYOBU_ACCENT     set-option -g mode-fg $BYOBU_LIGHT          set-window-option -g window-status-attr default     set-window-option -g window-status-bg $BYOBU_DARK     set-window-option -g window-status-fg $BYOBU_LIGHT     set-window-option -g window-status-current-attr reverse     set-window-option -g window-status-current-bg $BYOBU_DARK     set-window-option -g window-status-current-fg $BYOBU_LIGHT     set-window-option -g window-status-alert-bg $BYOBU_DARK     set-window-option -g window-status-alert-fg $BYOBU_LIGHT     set-window-option -g window-status-alert-attr bold     set-window-option -g window-status-activity-bg $BYOBU_DARK     set-window-option -g window-status-activity-fg $BYOBU_LIGHT     set-window-option -g window-status-activity-attr bold     set-window-option -g automatic-rename off     set-window-option -g aggressive-resize on     set-window-option -g monitor-activity on          # Cannot use:     #  - screen-bce, screen-256color-bce: tmux does not support bce     #  - screen-256color: vim broken without -bce     set -g default-terminal "screen"          # The following helps with Shift-PageUp/Shift-PageDown     set -g terminal-overrides 'xterm*:smcup@:rmcup@'          # Must set default-command to $SHELL, in order to not source ~/.profile     # BUG: Should *not* hardcode /bin/bash here     set -g default-command $SHELL          set -g status-bg $BYOBU_DARK     set -g status-fg $BYOBU_LIGHT     set -g status-interval 1     set -g status-left-length 256     set -g status-right-length 256     set -g status-left '#(byobu-status tmux_left)'     set -g status-right '#(byobu-status tmux_right)'     set -g message-bg $BYOBU_ACCENT     set -g message-fg white          # Allow local overrides     source $BYOBU_CONFIG_DIR/.tmux.conf      /usr/share/byobu/profiles/tmuxrc               ###############################################################################     #    Load:     #     * the stock byobu profile     #     * any windows     #     * and the local byoburc (instead of .screenrc)     #    Used at startup but not profile refresh     #     #    Copyright (C) 2009-2011 Canonical Ltd.     #     #    Authors: Dustin Kirkland <kirkland@ubuntu.com>     #     #    This program is free software: you can redistribute it and/or modify     #    it under the terms of the GNU General Public License as published by     #    the Free Software Foundation, version 3 of the License.     #     #    This program is distributed in the hope that it will be useful,     #    but WITHOUT ANY WARRANTY; without even the implied warranty of     #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     #    GNU General Public License for more details.     #     #    You should have received a copy of the GNU General Public License     #    along with this program.  If not, see <http://www.gnu.org/licenses/>.     ###############################################################################          source-file $HOME/.byobu/color.tmux     source-file $BYOBU_CONFIG_DIR/profile.tmux     source-file $BYOBU_CONFIG_DIR/keybindings.tmux     source-file $HOME/.byoburc.tmux      /?I'm not too sure where to look next, of if I'm looking right at it and don't realize. Any help is appreciated!


title: invoking bash with the -t option

text: Can anyone tell me about the `-t` option when invoking bash? I found the following handy command to use a lightweight terminal window as an application launcher               urxvt -geometry 80x3 -name 'bashrun' -e sh -c "/bin/bash -i -t"      Through a little investigation of its behavior i see that the `-t` essentially makes bash exit after executing one command, but I am curious if there is any more to that specific `-t` option. I cant actually find any documentation about it, and I've looked through the following docs:   * `man bash`   * Invoking Bash   * standard bash options I find it odd that `-t` is not as clearly laid out as the rest of the options


title: Grep lines from foe to foe2 (not included), regexp

text: The file is organized in entries of the form:               foe,       1....       2....       3....     foe2,       1....       2....      All sub-items begin with four spaces, and then text or number item. All entries like foe, begin without space. So, the next entry begins when an element doesn't have blank space at the beginning of the line. The whole file is like that and each entry can have different length. I want a regexp that would output an entry like foe, and the subitems (but won't include the next item, foe2).


title: Running 'diff 'command after the 'find' command

text: I'm running this code on shell               mv -f ~/sites/text1.txt  ~/sites/text2.txt;find ~/sites/ -type f -exec sha1sum {} >> ~/sites/text.txt \;diff ~/sites/text1.txt ~/sites/text2.txt;      However every time I'm having this error:               find: missing argument to `-exec'      Please anyone figure out how to get this code work?


title: What are good online resources for learning shell scripting?

text: I am a beginner to shell scripting. I have not yet hardly coded a single program, but I am interested in learning it completely. Can anyone suggest some good online resources which will guide me?


title: How to install java on CentOS VPS through ssh

text: I wrote a little Java servlet and, in order to run it, acquired a VPS which runs Centos 5. Now, in order to run it, I guess the first thing to do is to install the latest JRE. I have ssh access and googled the web for tutorials on how to install Java through ssh, but most of them are very old, have broken links, or are very confusing. Can anyone give a simple step by step instruction on how to install the latest JRE through ssh?


title: Get correct number of lines in diff output

text: I want to get the correct number of lines in the output of diff(specifically with `-y` and `--suppress-common-lines` options). Using a simple `wc -l` does _not_ work, because if both files end without a newline and their last line is different `wc -l` wont count the last line. Is there a simple and efficient solution to avoid this? For example, if you have files "a":               a     b     c     d   #no newline here      And "b":               a     b     c     D    #no newline here      The output is:               $ diff -y --suppress-common-lines a b | wc -l     0      Which is obviously incorrect since `diff` _does_ output a line.


title: Rename directory based on date of file in directory

text: I am looking for a smart way to bulk rename directories in my photo library based on the date the pictures were taken. My specific use case: Export the image library from iPhoto or Aperture on OS X to a more permanent and OS-independent file and folder structure. The input list of directories would look like this:               1.2.2012     input_directory_name      The renamed output should look like this:               2012-02-01 - 2012-02-22     2012-03-14 - 2012-03-14 input_directory_name      The dates should be picked either from the creation dates of the pictures in the directory (oldest / newest date) or alternatively from the metadata of the files (JPEG, TIFF, RAW...). If the input_directory_name is looking like a date "1.2.2012" then it should be skipped. If the input_directory_name contains text the text should be added to the new directory name. Reason: Unnamed events in iPhoto / Aperture are autmatically tagged with a date which unfortunately has the badly sortable order of DD.MM.YYYY I googled a bit but couldn't easily find a clever way - possibly someone else has encountered this issue before?


title: How do use the define_webjump in conkeror

text: I have started to use conkeror yesterday and so far I like it it has a good documentation apart from one wierd thing. I want to add duck duck go to my webjump options. I have found that I _need_ to use the syntax                   define_webjump(name,target)      (I'm not sure that this is the right name but it is symilar). What I couldn't find is _where_ should I use that command. Does any of you know?


title: Restoring Windows XP from grub

text: Previously I had a dual boot with Windows XP and Fedora. I have deleted Fedora and extended the C drive using Mini Tool Partition Wizard. Then I restarted the system with the Windows XP bootable CD. The CD is not detected and the following is displayed:               GNU GRUB version 0.97 (637K lower/513920K upper memory)     [Minimal BASH-like line editing is supported.For the first word,     TAB lists possible command completions.Anywhere else      TAB lists the possible completions of a device/filename]          grub>      Please help me to restore Windows XP.


title: Aliases for programs in /sbin/

text: I have a weird problem, unfortuantely I don't know what I did to cause this, since I tried out lots of stuff on my Linux (Archlinux, 2.6.38 kernel). The problem is: My shell is not finding programs in /sbin anymore. It looks like this:               [chris@myhost ~] insmod     bash: insmod: command not found     [chris@myhost ~] ls -l /sbin/insmod     -rwxr-x-r-x root root 7888 Mar 23 10:14 /sbin/insmod     [chris@myhost ~] /sbin/insmod     -- Works      So as you can see, the program (the problem occurs for every executable in sbin) is still there, I can start it using /sbin/name, only the short name alias seems to be corrupted. How can I fix this?


title: Copy-pasting in gnome-terminal

text: Can I configure it to allow:   * select right-click to copy   * right-click or ctrl-v to paste?


title: Passing results of "find" to zenity

text: The result of the following script:               results=$(find -iname "*.mp4")     echo $results;      is something like:               file1 file2 file3      How do I pass the results of the find command to a variable, as it is shown when I run the following command in terminal:               find -iname "*.mp4"      which prints:               file1     file2     file3


title: Is there a way to know which options were used at compile time?

text: Take a look at the following command line:               gcc -o hello -Wall -D_BSD_SOURCE hello-world.c      Now, is there a way to know about these options by doing some processing on the 'hello' executable.


title: Is there any way to use chown/chgrp without modifying the last modified date?

text: As the title says, I'm recovering files from an old hard drive and I need to keep the last modified date from the drive. The reason they are updating is because I need to change the ownership of the files to a new user.


title: No sound with the newest kernel version - is this a kernel bug or something else?

text: I have an external USB sound card on a Fedora 17 system (64 bit). It stopped playing sound after I updated the kernel to 3.5.4-1 (the problem persists under 3.5.4-2). As the sound card still plays sound when I boot 3.5.3-1, I assume that the problem is neither hardware-related nor a matter of badly configured settings. I still checked the usual suspects for bad settings (Phonon, alsamixer, pavucontrol), but everything looks OK there as far as I can tell. I assumed that this is a kernel bug, and even submitted it. But now a friend sent me a link to a Google Plus post which seems to say that a similar (the same?) problem is not a kernel bug, but comes from a kernel module not being loaded. > it looks like the new alsa-utils or whatever now require SND_SEQUENCER lsmod does not list SND_SEQUENCER on my system. I don't know Linux well. In my understanding, if the problem is in alsa-utils, but only occurs with the new kernel, it means that either the new kernel is not loading a module the old one did load, or that booting with the new kernel also starts an old version of alsa-utils. Both explanation sound improbable to me, but I could be wrong. My actual questions:   1. Could this really be a matter of the module not loading, despite the fact that alsa still works with the old kernel?    2. How do I get my system to load the module? (Do I have to install it first, and where does it come from?)   3. If this doesn't work, do you have other suggestions for trying to resove the problem (or at least determining for sure that it is indeed a kernel bug and so not resolvable with my limited knowledge)? I don't know where to start.


title: How to install FreeBSD 10 from USB Hard drive?

text: I need to install FreeBSD 10 on an old PC with no CD drive but it has a USB port. I'm on a laptop running Windows 8.1 and have downloaded the FreeBSD 10 DVD ISO image. I have an external USB hard drive. I have the DVD ISO image. How do I go about preparing the external HDD with the files so that I can boot and install from this external HDD? I tried UNETBOOTIN from Windows but it does not recognize the external USB HDD.


title: What killed tty main process suddenly?

text: I'm doing some stress testing of a piece of software that can run shell commands. Periodically, the system logs me out during stress testing. My record of the commands that triggered this always yields commands that run just fine on their own and do not log out. How can I tell what triggered an unexpected logout? Edit in response to comments: Using: Ubuntu 12.04, x64. Shell commands are more or less arbitrary combinations of a large command set, but do not include kill or other methods for halting a process directly. Example command sequence that induces a crash:               cd /tmp     pwd     dmesg     date -u     *some internal program calls happen here*     *logout happens here*      My guess is that it's something internal to my program, so I mention the shell commands only for completeness. Running with valgrind piped to a logfile shows a clean exit, akin to what would happen if I stopped the process normally during logout. No memory leaks or invalid access issues at all. Makes it hard to figure out what's going on! Edit2: More details after trawling through syslog. All I have is this:               Oct  1 14:39:26 my_hostname pulseaudio[7519]: [pulseaudio] pid.c: Daemon already running.     Oct  1 14:39:37 my_hostname kernel: [499969.564820] init: tty4 main process (1031) killed by TERM signal     Oct  1 14:39:37 my_hostname kernel: [499969.565018] init: tty5 main process (1037) killed by TERM signal     Oct  1 14:39:37 my_hostname kernel: [499969.565201] init: tty2 main process (1052) killed by TERM signal     Oct  1 14:39:37 my_hostname kernel: [499969.565391] init: tty3 main process (1053) killed by TERM signal     Oct  1 14:39:37 my_hostname kernel: [499969.565595] init: tty6 main process (1055) killed by TERM signal     Oct  1 14:39:37 my_hostname kernel: [499969.565798] init: cron main process (1065) killed by TERM signal     Oct  1 14:39:37 my_hostname kernel: [499969.566014] init: irqbalance main process (1120) killed by TERM signal     Oct  1 14:39:37 my_hostname kernel: [499969.566233] init: tty1 main process (1391) killed by TERM signal     Oct  1 14:39:38 my_hostname kernel: [499969.875817] init: plymouth-upstart-bridge main process (7542) terminated with status 1      and then what looks like a huge dump of kernel messages also at 14:38:37 that look like the system resetting itself prior to login.


title: Using Munpack to extract attachments of specific file type (Debian/Squeeze)

text: I configured `Munpack` on my Debian/Linux to extract attachments from incoming emails. (For additional context, `Getmail` fetches the emails and pipes it to `Procmail`. A `Procmail` recipe then pipes it to `Munpack`.)               | munpack -q -C directory/      For some reason, when I get emails with (a) inline attachments (usually `images`) AND (b) document attachments (usually `.csv`), the `.csv` files are completely ruined. _(Note that this issue doesn't arise when there is only one attachment, which typically is a`.xls` file._ Is there a way to configure Munpack to:               1. Save **ONLY** attachments with the `.csv` extension in the email.          2. Make sure that the **.csv** files are saved as is.      Thanks!


title: How to enable IOMMU on the debian sid Kernel

text: I'm trying to enable IOMMU on my debian sid and with this kernel version :               root@ziomario-Z87-HD3:/home/ziomario# uname -r     3.14-2-amd64      the motherboard of my computer is : GIGABYTE Z87-HD3 this is what happens :               root@ziomario-Z87-HD3:/home/ziomario# qemu-system-x86_64 -enable-kvm -m 512 -boot c -net none -hda /home/ziomario/Scrivania/windows1.img -device pci-assign,host=01:00.0     qemu-system-x86_64: -device pci-assign,host=01:00.0: No IOMMU found.  Unable to assign device "(null)"     qemu-system-x86_64: -device pci-assign,host=01:00.0: Device initialization failed.     qemu-system-x86_64: -device pci-assign,host=01:00.0: Device 'kvm-pci-assign' could not be initialized                    root@ziomario-Z87-HD3:/home/ziomario# dmesg | grep -e DMAR -e IOMMU     [    0.000000] ACPI: DMAR 00000000ba1e7d40 000090 (v01 INTEL      HSW  00000001 INTL 00000001)     [    0.000000] Your BIOS is broken; DMAR reported at address 0!     [    0.008983] dmar: parse DMAR table failure.     [    0.384339] AMD IOMMUv2 driver by Joerg Roedel <joerg.roedel@amd.com>     [    0.384340] AMD IOMMUv2 functionality not available on this system      what should I do ? thanks.


title: How to pipe the stdout to a file if the current command is already being piped through gzip

text: So I have this command I need to run then disown:               innobackupex-1.5.1 --user=root --password=**** --stream=tar ./ | gzip - > /data/myfile.tar.gz      How do I pipe any output to a file? adding another >> to the end of this command only appends the gzip data. to be more specific; innobackupex has progress output - I want this output appended/piped to a file (not just errors). The normal way of doing this (by adding >>) will not work in this case due to the gzip already piping


title: Which distro to study for LPIC?

text: Which Linux distribution would you recommend for preparing myself for LPIC and gain some experience in configuring the system?


title: How can I synchronize processes started in different TMUX panes?

text: Consider this:               tmux split-window -d program1     program2 # this program depends on some side effects produced by program1      In this case, `program2` will start before `program1` is ready. `program1` will send signals/output when it has produced side-effects that can be consumed by `program2`. My question: How can I write a shell script that will wait until `program1` is ready before starting `program2`? Observation: `program2` does not consume `program1` output, so this is not solved by connecting the processes with a pipe.


title: Problem installing JDT in Eclipse on linux

text: I installed Eclipse on Fedora Core 14 using `yum install eclipse-platform`. I ran eclipse and tried to install the java development tools, but then this error came up:               Cannot complete the install because of a conflicting dependency.      Software being installed:      Eclipse Java Development Tools 3.6.2.r362_v20101117-0800-7z8XFW6FLFlmjJcvz03jyeFBLS_F (org.eclipse.jdt.feature.group 3.6.2.r362_v20101117-0800-7z8XFW6FLFlmjJcvz03jyeFBLS_F)      Software currently installed:      Eclipse Platform 3.6.1 (Eclipse Platform 3.6.1)      Only one of the following can be installed at once:      Eclipse IDE UI 3.6.1.M20100825-0800 (org.eclipse.ui.ide 3.6.1.M20100825-0800)      Eclipse IDE UI 3.6.0.I20100601-0800 (org.eclipse.ui.ide 3.6.0.I20100601-0800)      Eclipse IDE UI 3.6.2.M20101201-0800 (org.eclipse.ui.ide 3.6.2.M20101201-0800)      Cannot satisfy dependency:      From: Eclipse Platform 3.6.1 (Eclipse Platform 3.6.1)      To: org.eclipse.ui.ide [3.6.1.M20100825-0800]      Cannot satisfy dependency:      From: Eclipse Java Development Tools 3.6.2.r362_v20101117-0800-7z8XFW6FLFlmjJcvz03jyeFBLS_F (org.eclipse.jdt.feature.group          3.6.2.r362_v20101117-0800-7z8XFW6FLFlmjJcvz03jyeFBLS_F)      To: org.eclipse.platform.feature.group 3.6.2      Cannot satisfy dependency:      From: Eclipse Platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi (org.eclipse.platform.feature.group          3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi)      To: org.eclipse.ui.ide [3.6.2.M20101201-0800]      What should I do?


title: Why Samba needs the VFS module?

text: ![enter image description here](http://i.stack.imgur.com/WLwCp.png) I came across this picture when learning samba. I am confused with the VFS module in this image.   1. Why we need this VFS module in samba server instead of passing directly the intend system call to the C library? I understand in the client side we need a cifs.ko or smbfs for the kernel to understand the mounted file system. For example, when the client wants to read a file. It passes the corresponding protocol command to the server over network. And the server's Ethernet card will receive it and transmit to application layer. Then the CIFS protocol in the application layer will interpret this command and passes it to the c library which will eventually lead to the sys_read() system call. And in this procedure the VFS seems unnecessary.   2. Is this module obligatroy? If not, how can I check if it is compiled? Thanks Supplement: The picture aims to describe the smbd process architecture. It want to express that smbd has a multi-process and single thread architecture. I saw this in an article that compare the Samba 3.0 and another CIFS server called Likewise.


title: Directory special permission problem

text: When I write: chmod g=rws,u=rwx,o=rx folder_name I get: drwxrwSr-x But S is not the same as s, right?