How can I know if patch command is working?

I am trying to apply a patch that is provided by the seek-for-android project to code I downloaded from Cyanogenmod. The code compiled successfully with make, so I know all the files are there. I just can not get any visibility into what patch is doing or if it is even working. I tried the -verbose option. I don't know how long it takes for patch to traverse the directory and look for the files to update. I don't see much of an activity in my cpu. Here are the instructions I am following: enter link description here Here is a screen capture of what I see:                  root@ubuntu:~/android/system# ls         abi       cm-11-2      docs             Makefile   sdk         android   cm-11-3      external         ndk        smartcard-api-3_1_0         art       cts          frameworks       out        smartcard-api-3_1_0.tgz         bionic    dalvik       hardware         packages   system         bootable  developers   kernel           pdk        tools         build     development  libcore          prebuilt   vendor         cm-11     device       libnativehelper  prebuilts         root@ubuntu:~/android/system# cd smartcard-api-3_1_0         root@ubuntu:~/android/system/smartcard-api-3_1_0# cd ..         root@ubuntu:~/android/system# patch -p1 smartcard-api-3_1_0/smartcard-api.patch   ^C          root@ubuntu:~/android/system# patch -p1 -R smartcard-api-3_1_0/smartcard- api.patch          ^C         root@ubuntu:~/android/system# patch -p1 -verbose smartcard-   api-3_1_0/smartcard-           api.patch          patch 2.6.1         Copyright (C) 1988 Larry Wall         Copyright (C) 2003, 2009 Free Software Foundation, Inc.      I think in some cases, I should look for the target file? The output below seems to say that one patch was successful, while the other file was not found? I guess I have to find the target file and specify it? For some reason even a full path is not recognized.               root@ubuntu:~/android/system# patch -p1 < smartcard-api-3_1_0/uicc.patch      patching file frameworks/base/telephony/java/com/android/internal/telephony  /ITelephony.aidl     Hunk #1 FAILED at 304.     1 out of 1 hunk FAILED -- saving rejects to file frameworks/base/telephony /java/com/android/internal/telephony/ITelephony.aidl.rej     patching file frameworks/base/telephony/java/com/android/internal/telephony  /RILConstants.java     Hunk #1 FAILED at 55.     Hunk #2 FAILED at 262.     2 out of 2 hunks FAILED -- saving rejects to file frameworks/base/telephony/java/com/android/internal/telephony/RILConstants.java.rej     patching file frameworks/opt/telephony/src/java/com/android/internal/telephony /CommandException.java     Hunk #1 FAILED at 42.     Hunk #2 FAILED at 83.     2 out of 2 hunks FAILED -- saving rejects to file frameworks/opt/telephony  /src/java/com/android/internal/telephony/CommandException.java.rej     patching file frameworks/opt/telephony/src/java/com/android/internal/telephony /CommandsInterface.java     Hunk #1 succeeded at 1250 (offset 109 lines).     patching file frameworks/opt/telephony/src/java/com/android/internal/telephony /IccCard.java     Hunk #1 FAILED at 214.     1 out of 1 hunk FAILED -- saving rejects to file frameworks/opt/telephony  /src/java/com/android/internal/telephony/IccCard.java.rej     patching file frameworks/opt/telephony/src/java/com/android/internal/telephony  /RIL.java     Hunk #1 succeeded at 2592 (offset 253 lines).     Hunk #2 succeeded at 4109 (offset 467 lines).     Hunk #3 succeeded at 4619 (offset 543 lines).     patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/SipCommandInterface.java     Hunk #1 FAILED at 536.     1 out of 1 hunk FAILED -- saving rejects to file frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/SipCommandInterface.java.rej     patching file frameworks/opt/telephony/src/java/com/android/internal/telephony  /test/SimulatedCommands.java     Hunk #1 FAILED at 1655.     1 out of 1 hunk FAILED -- saving rejects to file frameworks/opt/telephony /src/java/com/android/internal/telephony/test/SimulatedCommands.java.rej     patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/IccCardProxy.java     Hunk #1 succeeded at 844 (offset 102 lines).     patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/UiccCardApplication.java     Hunk #1 FAILED at 44.     Hunk #2 succeeded at 437 (offset 100 lines).     Hunk #3 succeeded at 941 (offset 194 lines).     1 out of 3 hunks FAILED -- saving rejects to file frameworks/opt/telephony  /src/java/com/android/internal/telephony/uicc/UiccCardApplication.java.rej     patching file frameworks/opt/telephony/tests/telephonytests/src/com/android    /internal/telephony/gsm/UsimDataDownloadCommands.java     Hunk #1 succeeded at 651 with fuzz 2 (offset 21 lines).     can't find file to patch at input line 404     Perhaps you used the wrong -p or --strip option?     The text leading up to this was:     --------------------------      diff --git a/packages/apps/Phone/src/com/android/phone  /PhoneInterfaceManager.java b/packages/apps/Phone/src/com/android/phone    /PhoneInterfaceManager.java     |index 6600ae5..2ae6739 100644     |--- a/packages/apps/Phone/src/com/android/phone/PhoneInterfaceManager.java     |+++ b/packages/apps/Phone/src/com/android/phone/PhoneInterfaceManager.java     --------------------------     File to patch:


Lots of processes killed by SIGTRAP

Since yesterday, my Linux ( **Fedora 20** ) randomly kills processes for no reason at all (at least from my point of view), and the bugs reports say that all these processes are **"killed by SIGTRAP"**. It happens with evolution, gls, the weather app, Google Chrome, and so on ... Also, when trying to run a Scala Play Framework application, I get the error:               java.lang.OutOfMemoryError: unable to create new native thread      I stuck with this, it makes my Linux partition totally unusable! Does anyone have an idea about what causes this?


When I move a file to a different directory on the same partition, does the file's data actually move on disk?

I could see it going both ways. If the filesystem stores it's directory structure and list of files in each directory, and then points to the disk location of each of the files, it shouldn't require the file's data to actually be moved on disk in order to 'move' a file. On the other hand, I could see the 'move' being implemented by copying the file, checking the copy, and then deleting the original if the copy checks out. Does the answer depend on the type of filesystem?


Dual booting with Windows 7 and Fedora 20

I am creating a dual boot system for Windows 7 & Fedora 20. While installing to hard drive I get this error **Installation destination** `Error checking storage configuration`. I have shrunk my hard drive partition to have 30 GB of space. But the installer only shows 1.99 MB available. Now 1.99 MB is the amount of space on my Pen Drive, but the drive the installer picks is my hard drive listed as 479 GB. How do I proceed with my installation of Fedora 20? **using Parted -l** **output::**               Model: ATA WDC WD5000AAKX-0 (scsi)     Disk /dev/sda: 500GB     Sector size (logical/physical): 512B/512B     Partition Table: msdos     Disk Flags:           Number  Start   End    Size    Type      File system  Flags      1      1049kB  106MB  105MB   primary   ntfs         boot      2      106MB   210GB  210GB   primary   ntfs      3      210GB   294GB  84.2GB  primary   ntfs      4      294GB   500GB  206GB   extended               lba      5      294GB   500GB  206GB   logical   ntfs               Model: Kingston DataTraveler G2 (scsi)     Disk /dev/sdb: 4011MB     Sector size (logical/physical): 512B/512B     Partition Table: msdos     Disk Flags:           Number  Start   End     Size    Type     File system  Flags      1      4129kB  4011MB  4007MB  primary  fat32        boot               Model: Linux device-mapper (snapshot) (dm)     Disk /dev/mapper/live-osimg-min: 4295MB     Sector size (logical/physical): 512B/512B     Partition Table: loop     Disk Flags:           Number  Start  End     Size    File system  Flags      1      0.00B  4295MB  4295MB  ext4               Model: Linux device-mapper (linear) (dm)     Disk /dev/mapper/live-base: 4295MB     Sector size (logical/physical): 512B/512B     Partition Table: loop     Disk Flags:           Number  Start  End     Size    File system  Flags      1      0.00B  4295MB  4295MB  ext4               Model: Linux device-mapper (snapshot) (dm)     Disk /dev/mapper/live-rw: 4295MB     Sector size (logical/physical): 512B/512B     Partition Table: loop     Disk Flags:           Number  Start  End     Size    File system  Flags      1      0.00B  4295MB  4295MB  ext4      still problem is persist here are screen shots DOC link


Pimp rsyslogd to have less i/o (cron, pam,...) and less logging

On my raspberry I really don't need crons and pam logging and I want to have less i/o to make the SD card life a little longer.. I have already removed cron with the second line `cron.none`, I'm currently testing the `authpriv.none`               auth,authpriv.*                 /var/log/auth.log     *.*;auth,authpriv.none,cron.none             -/var/log/syslog     #cron.*                         /var/log/cron.log     daemon.*                        -/var/log/daemon.log     kern.*                          -/var/log/kern.log     lpr.*                           -/var/log/lpr.log     mail.*                          -/var/log/mail.log     user.*                          -/var/log/user.log      Basically, all I want to log is fatals, hardware stuff, kernel/dmesg, and failed logins What else can I improve?


tsocks doesn't redirect connection

After installing tsocks using slackbuilds I made /etc/tsocks.conf by the parameters for using tor.               server = 127.0.0.1     server_port = 9050     server_type = 5      Then I tried `tsocks firefox` to check it. But When I checked my IP (by whatismyipaddress.com and google) it was the same as I didn't use tor/tsocks. another strength is that when I run `tsocks on` and then `tsocks show` I get the output: `LD_PRELOAD=""`, Which I think seems not set the libtsocks.so library to `LD_RELOAD`! Is this incorrect? > I need tsocks for redirecting the connection of other applications than > firefox like wget and mininube. How can I get tsocks to redirect connection through tor?


problem with airmon-ng start waln0

I'm new in Kali Linux, I have a USB wireless adapter, Realtek RTL8187 wireless802.11b my command               airmon-ng      it shows the waln0, but when I type the command `airmon-ng start waln0`. It doesn't show that the network in mon mode Why is this?


How to assign shell command to key?

I want to assign my script to special key on my keyboard. xmodmap recognize this key as XF86AudioMute, but I want to execute my script when it pressed. How to do it? My window manager is Window Maker, but I am looking for a solution independent of wm.


gmrun stopped searching user added path

gmrun started ignoring the PATH variable I defined in `~/.bashrc` for no obvious reason. Anyone has any idea how I can find out a way to solve this annoying problem? ## EDIT I have not found the solution, but I ended up switch to bashrun2, which does what I need it to do.


Disk copying with two OS on it

I want to change HDD in my laptop to bigger one. I have installed WIN XP and Mageia Linux and GRUB ver 1 as bootloader. So I want to use such procedure for copying and changing disk:   * plug new one disk to USB enclose   * boot laptop from LIVE version of Linux Mageia (from DVD)   * connect new HDD to USB port   * run such command              dd if=/dev/sda of=/dev/sdb        * After copying, plug new one HDD to laptop, replacing older one.   * Boot to check the proper work   * boot again from LIVE DVD to use GParted for resizing partitions Is it correct way I want to preceded?


linux command stuck

I have strange problem on my Linux machine When I do the following simple command                chmod +x  /tmp/file      chmod is stuck and not returned the prompt what could be the problem?   * the same issue when I run other commands as **cp** or **ls –ltr**


Blender not starting Lubuntu 13.04 PowerPC

I have installed Blender via `apt-get` on a PowerPC G4 Mac Mini running Lubuntu 13.04, and now it will not start over **VNC**. Output from running `blender` in the terminal:               Color management: using fallback mode for management     Xlib:  extension "XInputExtension" missing on display "lubuntu:1".     connect failed: No such file or directory     /build/buildd/blender-2.66a/intern/ghost/intern/GHOST_WindowX11.cpp:192: X11 glXQueryVersion() failed, verify working openGL system!     initial window could not find the GLX extension, exit!      I know GLX is part of OpenGL, but I have no knowledge of how to install it.


MySQL 5.1.73 - community edition : Where is MySQL configuration file?

I have installed **MySQL 5.1.73-community edition** in my **Oracle LINUX 5** server. I am able to start / stop and execute MySQL commands. But, I am unable to locate the MySQL installation directory as well as my.cnf file where I can change the configuration as per my requirements.


convert bulk of text files to pdf with naming based upon header file

Knowing that "How to convert from text to .pdf" is already well answered here link and here link, I am looking for something more specific: Using Claws-Mail [website] and a Plug-In [RSSyl] to read RSS feeds I collected a lot of text files. These I want to convert into .pdf files. **Problem** : The files inside the folders are numbered [1, 2, …, 456]. Every feed has it's own folder, but inside I have 'just' numbered files. Every file contains a header [followed by the message's content]:               Date: Tue,  5 Feb 2013 19:59:53 GMT     From: N/A     Subject: Civilized Discourse Construction Kit     X-RSSyl-URL: http://www.codinghorror.com/blog/2013/02/civilized-discourse-construction-kit.html     Message-ID: <http://www.codinghorror.com/blog/2013/02/civilized-discourse-construction-kit.html>     Content-Type: text/html; charset=UTF-8          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">     <base href="http://www.codinghorror.com/blog/2013/02/civilized-discourse-construction-kit.html">
URL: http://www.codinghorror.com/blog/2013/02/civilized-discourse-construction-kit.html

           **Question** : A way to convert each file into a `.pdf` file and rename it, based upon the name given under _Subject_. Super-awsome would be converting and re-naming this way: `"folder.name"_"date"_"file name"` with each information taken from the header data. As this are a few hundred files, I am looking for a batch processing way. EDIT: The files are `html` formated, but without a `.htm[l]` suffix.


Problem running Google Chrome in Kali Linux

I want to run google-chrome in Kali Linux. But I am facing some problem.(otherwise why would I be asking a question :D ) I have installed google chrome by following the steps mentioned here. It is successfully installed with chrome being displayed on               Application -> Internet -> Google Chrome      To run google chrome I followed Part 3 of the same series. There are three different ways listed on how we can run chrome. One option is it says to edit the file using leafpad `leafpad /opt/google/chrome/google-chrome` find the lines `exec -a "$0" "$HERE/chrome" "$@"` and append it with **-user-data- dir**. But the same file is a bit different in my computer, it looks something like this.               exec -a "$0" "$HERE/chrome" "$PROFILE_DIRECTORY_FLAG" \     "$@"      But even though I tried to add **-user-data-dir** to the end which now looks like               exec -a "$0" "$HERE/chrome" "$PROFILE_DIRECTORY_FLAG" \     "$@"-user-data-dir.      But it is not working anyway. Then i tried another option. It says that first we have to create a user using   `useradd -m chromeuser` and then type `gksu -u chromeuser google-chrome` to run chrome. However I am getting the following error after running the last command. It says               /usr/bin/google-chrome: /usr/lib/i386-linux-gnu/libnss3.so: version `NSS_3.14.3' not found (required by /usr/bin/google-chrome)      How can I install chrome successfully?


CentOS 7 gnome Version Network issue

I just installed Cent-OS 7 with GUI Interface, but now I am logging in but I can not connect to network, in virtual machine I see it's connect with bridge (VMware) but I cannot connect to network, I don't know what should i do? I try to install some packages but I have no connection to internet? ![enter image description here](http://i.stack.imgur.com/BAvcE.jpg) In the above image you see + button, when I click on it the below menu coming I tried some but they did not work maybe I can't configure it will. ![enter image description here](http://i.stack.imgur.com/PLfXp.jpg)


Print output of some my data in a file that should start with first line without blank space

By using some shell command i filter some output Please can some one suggest how i can print this output in some file For example I filtered some line and save it to some file but problem is it is starting with 2 nd line in first line it is showing blank line in second line it is showing my output can any one suggest how i can print my data in first line of file means how we can delet that space               cat file1 | awk '{if ($2==$3) { print }}' | awk '{print $5, $6, $7, $8}' > file      Thanks Yisha


How to kill all processes for a given user that take longer then X time

When I list processes with `ps auxf` I often see some that are stuck and I need to manually kill them. How can I do it with one command? Example ps result:               $ ps auxf     USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME     COMMAND     tommass   7971 62.3  1.1 316428 45844 ?        R    Aug08 29133:14  xxxxxxxx     tommass   7978  0.0  2.6 455072 105964 ?       S    Aug08   8:56    xxxxxxxx     tommass   7979  0.0  2.6 454436 105360 ?       S    Aug08   8:57    xxxxxxxx     tommass  15034 67.8  1.1  51828 43760 ?        R    Aug14 26411:38  xxxxxxxx     tommass   7982  0.0  2.6 455012 105904 ?       S    Aug08   8:28    xxxxxxxx        1. How can I kill all processes for a given user "tommass" that take longer then 1 hour   2. How can I kill all processes for a given user "tommass" whose STAT is "R"


Change the size of my memory pages?

I would like to change my kernel's page size from 4KB to 4MB as I have had a large addition of RAM to my computer and I am never running out of anymore. The idea is that programs requiring large amounts of memory will spend less time on allocating pages. I suppose it would improve performance, and I would like to try. I can’t find anywhere when running `make menuconfig`. Is there a way to do that?


Is a monolithic kernel more secure than a microkernel?

I don't know much about what microkernels can do so bear with me if I'm being ignorant: In one instance, there are monolithic kernels which allow the user control over services before reaching hardware but this could compromise the kernel itself. On the other hand microkernels do the same thing and software does not reach the kernel but, since it speaks directly to the hardware through the servers, is this making it potentially unstable and insecure?


How to determine if and which linux security module (LSM) is available?

Is there a way to find out if and in case which linux security LSM (apparmor, selinux, grsecurity) is used by the kernel? To be more specific let's assume I am a legimate root user of the machine? If information available also it would be nice to furthermore know: With regard to the question, is there a difference with considering the machine being (a) a local computer, (b) a dedicated server and (c) a virtual server "vServer" ## update I know that I could for instance install the user-space stuff (on a debian for instance `apt-get install apparmor`) and check if it yields results related to the specific LSM. So I could do for apparmor `sudo apparmor_status` which would then for instance yield: `apparmor module is not loaded.` which helps me rule out that option. Yet I was looking for a more general approach covering most/all LSM. ## update2 I have discovered the path `/sys/kernel/security`. Maybe this is helpful finding an answer?


Advanced logrotate on huge number of files when single instance of logrotate cannot keep up

I'm managing a server which works as a remote log repository for huge number of files. Currently a single `logrotate` instance cannot keep up with this number of logs. What's the best way to accelerate log rotation, possibly running many instances in parallel? Below is the addendum for the clarification:   * Disk I/O is not the problem; also, I'm not losing any logs or entries.   * System is a beast when compared to this job (it's a quad core Xeon with sufficient power) the bottleneck is at compression. One core tops up w/ 1.00 load and cannot finish its compression queue.   * Logfiles are not copied. Only a daily backup is taken to another disk, but again is not a bottleneck.   * I can group the logfiles by patterns. Files are not huge, only they are a lot. I just don't know how to parallelize the logrotate altough I have ideas but unable to find any resources for it. Actually, the core of the question is _does logrotate spawn a child process for every stub in the config file or configuration file?_   * I'm a computer engineer and an experienced Linux user and developer. I also manage a cluster but somehow I'm new at "old school system management" issues. So you can go as technical / hardcore as you can get. I'll do my best to understand it.


Easy voice talk between 2 computers in 2 countries?

My plan is to enable 2 sets of unsophisticated users (children and their grandparents) in 2 different countries to talk easily. In practice I see it as:   1. A quiet linux computer is on all the time in both places.    2. The user at one computer should be able to switch to an already running application and call the other party in the other country.   3. The computer in the other country should ring.   4. The person in the other country hearing the ring, should be able to answer the call. Again - nothing more complicated than pressing a button in an application.   5. Video option is a bonus but not a must. I unfortunately have little experience with voip. But I could do a fair job setting up firewalls as it might be necessary in such scenario. I am also used to various linux distros. The question really is what applications could fit my purpose and if I must run a server (voip?) in one of the countries. As for users - less choice is better, if I could I would use this just for communication between these 2 "computer stations". Maybe even with telephone headsets :) Many thanks for your suggestions.


How does Google manage its service package installation and upgrade?

The RPM, yum or apt tools are very popular in the Linux world, but I don't know whether Google uses these tools in their internet service management work, and use these tools to manage the service version, service rollback.


What happens to UIDs upon mount of file system

I have a very basic question and still failed to find the answer after ~10 google requests and skimming through my unix textbook, so: Consider a system with 2 hard drives, having root file system at `/dev/sda1` and /home partition at `/dev/sdb1`. Now, a process with UID=1000:GID=1000 wants to mount `/dev/sdb1` file system at `/mnt/backup`. I can imagine 2 scenarios of how it happens: ![enter image description here](http://i.stack.imgur.com/D8peg.png) I wonder, under what UIDs and GIDs he freshly mounted file system is visible: **1.** The UIDs and GIDs might be preserved, as on the picture. ![enter image description here](http://i.stack.imgur.com/Lhcml.png) **2.** The UIDs and GIDs on the mounted file system might be set to the mounting process's UID and GID=1000. If there were no UIDs and GIDs in the file system at all, this case takes place: ![enter image description here](http://i.stack.imgur.com/7WgQL.png) My questions are:   1. In what situations cases 1 and 2 take place? What parameters of `mount` _system call_ determine, which of them takes place?   2. In case 2, how do I determine the actual UIDs and GIDs of the files. In my example both `/mnt/backup/john` and `/mnt/backup/jane` in the mounted filesystem are set to UID=1000, but in fact their UIDs were 1002 and 1003. How do I know them?   3. In case 1 what happens if the Jane's UID=1003 doesn't exist on the system?


Why are reboot, shutdown and poweroff symlinks to systemctl?

In Arch Linux, if I do `ls -l` in `/sbin`, I can see that `reboot`, `shutdown` and `poweroff` are all symlinks to `/usr/bin/systemctl`. But issuing `reboot`, `shutdown` and `systemctl` commands obviously does not all have the same behaviour. Is `ls -l` not showing me full information regarding symlinks? How can I, for example, know what the real symlink of `reboot` is?


How to know which firmware is loaded by kernel?

I have an Intel wireless card driven by `iwlwifi`, and I can see the following message in dmesg:               iwlwifi 0000:03:00.0: loaded firmware version 17.168.5.3 build 42301      But how do I know which firmware is loaded?


What is the most compatible tiny X server?

I've been building LFS/BLFS for about a month now, with multiple failures and almost no successes, and I've just been informed that there exist Xorg-like window systems that are incredibly tiny, as Xorg's LFS build is over _200MB of just source packages_. I Googled around the web, but the Wikipedia article on TinyX pointed me to a nonexistent home page for a nice Xorg clone. I'm looking to build a DSL-like distro (truthfully, it's a faster clone of ChromeOS), and I've got everything ready, except an X server. What I was looking for was the following:   * Something that's reasonably small, as I was hoping to get my distro down to 50MB when it is compressed.   * Something that is fairly compatible with the normal X server (I don't know what I'm talking about, but I was hoping for something that works with any X application).   * Something that will work fully (no hiccups!) with OpenBox or FluxBox (preferably OpenBox, as I've almost made my theme for it).   * Something that works with Plymouth, as an epic boot screen make a bad operating system look good in the eyes of simple users. Also, as a side question, how do I package my final build? I've built a small rendering system which I wish to distribute, but I can't figure out how to make an ISO out of it, like Ubuntu or DSL.


yum require an older version of a package as dependency

I have installed TexLive 2012 via the official site and want to install epydoc which depends on an older version. However, when I try to install epydoc which depends on texlive, I get the below error. How can I fix this?               ; sudo yum install epydoc          Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit, remove-     Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit, remove-                   : with-leaves     Loading mirror speeds from cached hostfile      * fedora: ftp.tudelft.nl      * livna: rpm.livna.org      * rpmfusion-free: ftp.upjs.sk      * rpmfusion-free-updates: ftp.upjs.sk      * rpmfusion-nonfree: ftp.upjs.sk      * rpmfusion-nonfree-updates: ftp.upjs.sk      * updates: ftp.tudelft.nl     Resolving Dependencies     --> Running transaction check     ---> Package epydoc.noarch 0:3.0.1-9.fc15 will be installed     --> Processing Dependency: texlive-latex for package: epydoc-3.0.1-9.fc15.noarch     Package texlive-latex-2007-66.fc16.x86_64 is obsoleted by 1:tex-latex-svn23639-1     .noarch which is already installed     --> Processing Dependency: texlive-dvips for package: epydoc-3.0.1-9.fc15.noarch     Package texlive-dvips-2007-66.fc16.x86_64 is obsoleted by 1:tex-dvips-svn26765-1     .noarch which is already installed     --> Finished Dependency Resolution     Error: Package: epydoc-3.0.1-9.fc15.noarch (fedora)                Requires: texlive-dvips                Available: texlive-dvips-2007-65.fc16.x86_64 (fedora)                    texlive-dvips = 2007-65.fc16                Available: texlive-dvips-2007-66.fc16.x86_64 (updates)                    texlive-dvips = 2007-66.fc16     Error: Package: epydoc-3.0.1-9.fc15.noarch (fedora)                Requires: texlive-latex                Available: texlive-latex-2007-65.fc16.x86_64 (fedora)                    texlive-latex = 2007-65.fc16                Available: texlive-latex-2007-66.fc16.x86_64 (updates)                    texlive-latex = 2007-66.fc16      You could try using --skip-broken to work around the problem      You could try running: rpm -Va --nofiles --nodigest


Unexpected ordering of strings in `sort` command

I'm trying to sort a text file using certain columns in the file as a sort key. Since the file doesn't have separators and fields sometimes stick to each other, I have to convert spaces to some distinctive character (like '@') and then extract columns from the whole string as from the field #1. I've stumbled upon a problem that `sort` orders strings in some manner unknown to me. Example:               $ cat aaa.txt      @1     @2      1      2     1      2       Now replace spaces by '@':               $ sed y/\ /@/ aaa.txt     @1     @2     @1     @2     1@     2@      Now try to sort them:               $sed y/\ /@/ aaa.txt | sort     @1     @1     1@     @2     @2     2@      And the result is embarassing. Lexically, '@' must be before or after the '1'. If '@'>'1' then why strings '@1' are before '1@'? If '@'<'1' then why strings '@2' are after '1@'?


From Ubuntu 10.10, how do you connect to a Windows 7 share without a password setup?

I have:   1. Ubuntu 10.10   2. Windows 7 in virtual box (let's call this vbox)   3. Then another Windows 7 machine (let's call this remote) in the network When I'm on vbox and browse (\ip.of.remote) I'm able to see the shared drives. No password was setup, and none was asked. When on Ubuntu, and I go to smb://ip.of.remote it asks for username/password. How do I fix this? Thanks! UPDATE   * **Jan 30 2011** : I'm able to connect from Xubuntu to Windows (via Gigolo). It allows me to press connect even if there's no username. With Ubuntu though, if I remove the username, the connect button is grayed out. Maybe then it's just an interface problem?


Query DHCP server leases from Perl script

I have a Windows 2003 server and need to poll the DHCP lease information from it with a perl script that is running on a Ubuntu server. Then I need to analyze & store the information in a mysql database. Is there a way to query the leases from a perl script? I can figure out how to process the info after I get it. Thanks.


Why my Http Proxy doesn't reply [SYN,ACK] after received a [SYN] packet from the client?

I have a http proxy running on Linux (RHEL 5.5), intermittently it doesn't reply [SYN,ACK] packet after received a [SYN] packet from the client. This issue can be recovered by restarting the proxy. I ran the gstack against the proxy process, however the stack of each thread doesn't indicate any problems(hanging). And there were less than 100 connections staying at the "SYN_RECV" state during this issue. Any ideas? For such issue, where should i start to debug? Any suggestions would be greatly appreciated.


Why is it better to use a 64bit OS?

Speed/Security? Why should we choose to use 64 bit instead of 32 bit?


why cannot read /dev/console after reboot AIX

I use `< /dev/console` when running Micro-Focus cobol programs in background cron jobs instead of `< /dev/null` because then we don't get an warning about the input file not supporting ioctl. The warning about the input file not supporting `ioctl` means that the script is not able to differentiate between this and a real error as the program returns the same value. Usually (on many different AIX servers) I set up these jobs to run as root because other users do not have permissions to read `/dev/console`. Over several years, I've had several problems that I just don't understand, and searching the internet for many hours hasn't helped. E.g.   1. a server changed, for no apparent reason, from where only root could use `< /dev/console` to where only a non-root user could use `< /dev/console`   2. a server where a non-root user was able to use `< /dev/console` changed after reboot so that only root could use `< /dev/console` The 2nd example is my most recent case. `lscons` shows the console is assigned to `/dev/tty0` and you can login on `/dev/tty0` fine. I don't think anyone has used `swcons` or `chcons` to reassign the console before the reboot. I've tried changing permissions on `/dev/console` & `/dev/tty0` to `666` but still only root can do, without error:               echo TEST < /dev/console      Does anybody understand what is happening or know how to change it so non-root users can read `/dev/console` ? Any suggestions for another device that supports `ioctl` and could be used as a dummy stdin by non-root users? (I suspect that the cobol program only opens stdin but doesn't actually read it when in the background). Permissions now:   crw-rw-rw- 1 root system 4, 0 Aug 20 1999 /dev/console   crw-rw-rw- 1 root system 16, 0 Aug 09 13:39 /dev/tty0 Before I did: `chmod 666` :   crw--w--w- 1 root system 4, 0 Aug 20 1999 /dev/console   crw------- 1 root system 16, 0 Aug 09 13:39 /dev/tty0


What do the device files in /dev actually do?

(Not a duplicate of Understanding /dev and its subdirs and files) I was browsing around my filesystem and for the first time I took a second to analyze my `/dev` directory. I was surprised by the amount of devices files in it, and couldn't make sense of all of them:               max@linux-vwzy:/dev> ls     adsp             disk      fd0u1760  initctl  mem                 root  sg0       tty    tty21  tty35  tty49  tty62    vboxdrv     vcsa2     audio            dri       fd0u1840  input    mixer               rtc   sg1       tty0   tty22  tty36  tty5   tty63    vboxnetctl  vcsa3     autofs           dsp       fd0u1920  kmem     mixer1              rtc0  sg2       tty1   tty23  tty37  tty50  tty7     vboxusb     vcsa4     block            dvd       fd0u360   kmsg     net                 scd0  sg3       tty10  tty24  tty38  tty51  tty8     vcs         vcsa5     bootsplash       dvdrw     fd0u720   log      network_latency     sda   sg4       tty11  tty25  tty39  tty52  tty9     vcs1        vcsa6     bsg              fb0       fd0u800   loop0    network_throughput  sda1  sg5       tty12  tty26  tty4   tty53  ttyS0    vcs10       vcsa7     btrfs-control    fd        fd0u820   loop1    null                sda2  sg6       tty13  tty27  tty40  tty54  ttyS1    vcs2        vga_arbiter     bus              fd0       fd0u830   loop2    nvram               sda3  sg7       tty14  tty28  tty41  tty55  ttyS2    vcs3        xconsole     cdrom            fd0u1040  full      loop3    oldmem              sdb   shm       tty15  tty29  tty42  tty56  ttyS3    vcs4        zero     cdrw             fd0u1120  fuse      loop4    port                sdc   snapshot  tty16  tty3   tty43  tty57  ttyS4    vcs5     char             fd0u1440  fw0       loop5    ppp                 sdc1  snd       tty17  tty30  tty44  tty58  ttyS5    vcs6     console          fd0u1600  hidraw0   loop6    psaux               sdd   sr0       tty18  tty31  tty45  tty59  ttyS6    vcs7     core             fd0u1680  hidraw1   loop7    ptmx                sde   stderr    tty19  tty32  tty46  tty6   ttyS7    vcsa     cpu              fd0u1722  hidraw2   mapper   pts                 sdf   stdin     tty2   tty33  tty47  tty60  uinput   vcsa1     cpu_dma_latency  fd0u1743  hpet      mcelog   random              sdg   stdout    tty20  tty34  tty48  tty61  urandom  vcsa10      I know that the `sd*`'s are my disks and filesystems, but what are `loopx`, `fd0uxxxx`, `sgx`, `vcsxxx` and all the other single files. Most of them are device files according to `ls`. I understand that fully answering this question would require a ton of information, so unless someone can provide a link with a great rundown of the different devices files in `dev` and what they are all used for, I propose we make a CW answer.


Why can't sudo redirect stdout to /etc/file, but sudo 'nano' or 'cp' can?

Why does redirection, using `sudo` give me an error for the following commands?               $ sudo printf "foo" >/etc/file     bash: /etc/file: Permission denied          $ sudo printf "foo" ~/file; cat ~file >/etc/file      bash: /etc/file: Permission denied      ...yet I have no such problem when I use an editor, or `cp`.   I don't think I've ever tried this before, so I don't know if there is something haywire on my system, or if this is normal. It seems a bit restrictive to be normal, but(?) maybe it is intended to be restrictive... (using Ubuntu)


Yum: How can I view variables like $releasever, $basearch & $YUM0?

I am setting up a yum repository, and need to debug some of the URLs in the yum.conf file. I need to know why is Scientific Linux trying to grab this URL, when I was expecting it to grab another URL:               # yum install package      http://192.168.1.100/pub/scientific/6.1/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"     Trying other mirror.     Error: Cannot retrieve repository metadata (repomd.xml) for repository: sl. Please verify its path and try again      The yum.conf(5) manpage gives some information about these variables: > Variables > > There are a number of variables you can use to ease maintenance of yum's > configuration files. They are available in the values of several options > including name, baseurl and commands. > > $releasever This will be replaced with the value of the version of the > package listed in distroverpkg. This defaults to the version of 'redhat- > release' package. > > $arch This will be replaced with your architecture as listed by > os.uname()[4] in Python. > > $basearch This will be replaced with your base architecture in yum. For > example, if your $arch is i686 your $basearch will be i386. > > $YUM0-$YUM9 These will be replaced with the value of the shell environment > variable of the same name. If the shell environment variable does not exist > then the configuration file variable will not be replaced. Is there a way to view these variables by using the `yum` commandline utility? I would prefer to not hunt down the version of the 'redhat-release' package, or manually get the value of os.uname()[4] in Python.


Use different authentication methods for OpenSSH server depending on client IP

I'm sure this has been answered before, but I could not locate the answer with Google, and this search. I currently only allow shared key authentication for openssh server on my box. However, I would like to be able to use password auth, when I am connecting locally, via my internal (192.168.1.x) subnet. Is it possible to use a per-host authentication method in OpenSSH? Thanks!


Installer not booting on Intel Atom 64bit CPU

I used to have Debian 6, the 64bit version working fine on this system. I'm now trying to install Arch (64bit) and the installer won't boot. Can anybody help me troubleshoot this issue? EDIT: My core: http://ark.intel.com/products/43098 Specs: http://pastebin.com/7KVgFch3


Hauppauge TV Tuner Card with Motorola STB and LIRC

I have a MythTV PV VM under Xen which I've spent about 2 weeks getting up and running. Everything seems to be working fine; PCI passthrough gives the card to the guest OS (OpenSUSE 11.4), the digital tuner works fine (I've successfully streamed Live HD TV to my PC), and I've very close to being very happy. BUT, I cannot get LIRC configured for the life of me. I've spent the past 3 nights googling and reading tutorial and how to after another. I've found the firmware (HVR-1600 card), and got it loaded with the lirc_zilog module. It's recognized, and configured (by the Kernel/LIRC). I cannot, however, get it to do the following:   1. I was able to capture IR signals from the stock Hauppauge Remote, but not the one from my DCT-700 STB (when I tried, I simply get a message that the gap length could not be determined, and no dots are shown).   2. I have not been able to get it to transmit ANYTHING. So, here's a quick example of some outputs: `dmesg` output:               ~ # dmesg | grep lirc     [   15.242456] lirc_dev: IR Remote Control driver registered, major 251      [   15.277047] lirc_zilog: module is from the staging directory, the quality is unknown, you have been warned.     [   15.277882] lirc_zilog: Zilog/Hauppauge IR driver initializing     [   15.282904] lirc_zilog: chip found with RX and TX     [   15.283556] i2c i2c-0: lirc_dev: driver lirc_zilog registered at minor = 0     [   15.338267] lirc_zilog: Zilog/Hauppauge IR blaster firmware version 2.1.0 loaded     [   15.339013] lirc_zilog: chip found with RX and TX     [   15.339638] i2c i2c-0: lirc_dev: driver lirc_zilog registered at minor = 1     [   15.369278] lirc_zilog: Zilog/Hauppauge IR blaster firmware version 2.1.0 loaded     [   15.369296] lirc_zilog: initialization complete      An `irsend` test:               ~ # irsend --device=/var/run/lirc/lircd SEND_ONCE dct700 OK     irsend: command failed: SEND_ONCE dct700 OK     irsend: transmission failed      The corresponding `/var/log/messages`               ~ # tail /var/log/messages     Jul 29 10:16:36 lal lircd-0.8.7[1090]: accepted new client on /var/run/lirc/lircd     Jul 29 10:16:36 lal lircd-0.8.7[1090]: write failed     Jul 29 10:16:36 lal lircd-0.8.7[1090]: Protocol error     Jul 29 10:16:36 lal lircd-0.8.7[1090]: error processing command: SEND_ONCE dct700 OK     Jul 29 10:16:36 lal lircd-0.8.7[1090]: transmission failed     Jul 29 10:16:36 lal kernel: [  227.063942] lirc_zilog: failed to get data for code 0, key 9050 -- check lircd.conf entries     Jul 29 10:16:36 lal lircd-0.8.7[1090]: removed client      Relevant portion of `/etc/lirc/hardware.conf`:               #Chosen IR Transmitter     TRANSMITTER="HVR 1600"     TRANSMITTER_MODULES="lirc_zilog"     TRANSMITTER_DRIVER=""     TRANSMITTER_DEVICE="/dev/lirc0"     TRANSMITTER_SOCKET=""     TRANSMITTER_LIRCD_CONF="/etc/lirc/lircd.conf"     TRANSMITTER_LIRCD_ARGS=""          #Enable lircd     START_LIRCD="true"          #Don't start lircmd even if there seems to be a good config file     #START_LIRCMD="false"          #Try to load appropriate kernel modules     LOAD_MODULES="true"      I'm quite sure the `dct700.conf` file is wrong. I copied it from a forum of someone who claimed to have this STB working, but it's for a USB MCE transmitter. Since I cannot get the receiver to record the signal from the remote, I cannot generate my own. SO, if anyone has a similar combination working, or knows someone who does, or sees something wrong and has a suggestion, I would be eternally grateful for any help.


What does dash "-" at the end of a command mean?

Given the following command:               gzip -dc /cdrom/cdrom0/file.tar.gz | tar xvf –      What does the `-` at the end of the command mean? Is it some kind of placeholder?


Which shell I am running on?

When I run `echo $SHELL` the output says `/bin/tcsh` which means that i am running tcsh. But for example when I issue the following command               alias emacs 'emacs -nw'       I get the following error:               bash: alias: emacs: not found     bash: alias: emacs -nw: not found      and when I issue `alias emacs="emacs -nw"` it runs fine! This is confusing since I am running tcsh but the commands are interpreted by bash. What could be the reason?


tool or technique to get a diff of two different linux installations

Albert Einstein quote > Insanity: doing the same thing over and over again and expecting different > results Often-times, Linux drives me mad because I'm doing the same thing over and over again and _getting_ different results from box to box. (See my previous question). For me, the biggest area of confusion is taking over a machine that someone else has installed (as is the case when signing up with a web hosting company). You just don't know what you're dealing with. **Is there some kind of clever _diff tool_ that I can run on an installation of Linux (Ubuntu) to give me a heads-up on how that machine has veered from the default installation?** i.e. Something that can show me a list of the commands that are going to behave surprisingly thus avoiding a trial and error approach.


To study SPARC executable structure with OpenSolaris on Intel

I want to study and compare executable file structure of elf, SPARC and PA- RISC. To perform the studies I want to install OpenSolaris on an Intel machine (Core2Duo). But I got a basic doubt will it work at all ? I know SPARC has its own assembly - grew in suspicion if it will work or is valid thought at all. I was aiming to write some programs disassemble them and with some help of tools study the file structures. I don't have any clue how to perform all this for HP-UX (PA-RISC); dont know any free OS for PA-RISC.


Detect if a (NTFS) drive is mounted or not. If not then mount it

I want to sync an USB drive with a folder located on a NTFS partition which is not mounted at boot time. I have found a command to do that: `rsync -axu /media/USB/folder /home/user/folder`. But I have to have the NTFS drive already mounted. How can I detect if a NTFS drive is mounted or not from a script and if is not to mount it? I use Linux (Ubuntu). This is the little script modified (the original is here) with your help!               #!/bin/bash     ## CONFIG SECTION     MOUNT_DRIVE=/dev/disk/by-id/scsi-SATA_Hitachi_HTS5416_SB3404GRGJRKBS-part5     MOUNT_POINT=/media/Windows/     # Local folder to sync with     SYNC_LOC=/media/Windows/vasia/Disertatie/     # Device folder to sync with     SYNC_DEV=Disertatie     #     ## SCRIPT SECTION     #verify if the drives are mounted     if mount | grep -q "/media/Windows/"; then     #device is mounted     echo "Windows NTFS Drive is mounted!"     else     #device is not mounted,let's mount it     mount $MOUNT_DRIVE $MOUNT_POINT     fi     # Wait for thumbdrive to settle     sleep 10     # Synchronize thumbdrive with local     rsync -axu /media/DISK_IMG/${SYNC_DEV}/ ${SYNC_LOC}/     # Synchronize local with thumbdrive     #rsync -axu ${SYNC_LOC}/ /media/disk/${SYNC_DEV}/     # Inform user that synchronization is complete.     zenity --title "Thumbdrive Sync" \            --info --text "File synchronization        complete."


Virtualenv creation seems to do nothing

I have a problem setting up a Virtualenv on my web host server (to install python modules later on) So far I tried this (over SSH):               wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.2.tar.gz     tar xzf virtualenv-1.5.2.tar.gz     ~/usr/lib/python2.4 virtualenv-1.5.2/virtualenv.py ~/data/env      and               ~/usr/lib/python2.4 setup.py install      I don't get any errors or output and cannot find the ~/data/env-directory that should be created. What is going wrong? Or what is the next step?


Duplicate selected words with sed and replace it

I have to modify a document containing xml data; one modification I couldn't set up with `sed`. I have to modify the following expressions from:               <Bild href_fmt="Bilder/Bildschirmfoto%202012-06_fmt.jpeg"      href="file:///user/folder/Desktop/Bildschirmfoto%202012-06-18%20um%2013.17.45.png"></Bild>      to:                     My problem: I couldn't duplicate the `Bildschirmfoto%202012-06_fmt.jpeg` to generate the correct new entry. The HTML tag is somewhere in the line, therefore I can't duplicate the whole line... How can I do this with `sed` or other Linux commands?


KDE windows maximize automatically?

There is a similar question on Askubuntu. One solution was Maximus, however it doesn't work on KDE, only on Gnome family DEs (Gnome Shell, Unity, Cinnamon). KDE settings are rich, but i didn't find how to setup Maximus-like behavior, which unwraps windows to take all possible and space and also hides window header (window title). There is System Settings → Window Behavior → Window Behavior → Advanced → Placement: Maximizing, but it doesn't hide window header (which is about 20 px) and incorrectly maximizes some applications (like Emacs). How to unfold every window to fullscreen automatically on launch in KDE?


Can I apply real time Linux kernel patch on Android kernel?

I would like to apply real time patch on the Android kernel (given I've found Kernel patch for corresponding Kernel version). Is it possible or should I create a patch specifically for the purpose of patching Android kernel? I know this question might sound trivial to many of you but I'm not into operating system, rather programming languages.


Why can I not chmod a file?

[nathanb@ka /x/sim/nathanb/nbsim1] ls -al ,nvram     -rw-r--r--    1 root     root      2097152 Jul  5  2011 ,nvram     [nathanb@ka /x/sim/nathanb/nbsim1] sudo chmod a+w ,nvram      chmod: changing permissions of `,nvram': Operation not permitted      The volume is mounted rw, obviously, since I can modify other stuff. But even if I su as root, I can't chmod this file.               [root@ka /x/sim/nathanb/nbsim1] chmod +w ,nvram     chmod: changing permissions of `,nvram': Operation not permitted      I did an strace on the chmod, and I see this:               stat64(",nvram", {st_mode=S_IFREG|0644, st_size=2097152, ...}) = 0     chmod(",nvram", 0666)                   = -1 EPERM (Operation not permitted)      Here's the output of stat               [root@ka /x/sim/nathanb/nbsim1] stat ,nvram     Name: ,nvram             Size: 2097152       Perms: 0644/-rw-r--r--     Type: Regular File     Blocks: 4120           User: 0/root     Inode: 205777           IOsize: 32768         Group: 0/root          Access Time: Sat Jul 23 09:27:31 2011         Links: 1     Modify Time: Tue Jul  5 18:36:35 2011     FS device: 28     Change Time: Sat Jul 23 09:30:35 2011       Maj/Min: 0/0      And just to prove that there's not weird uid stuff going on:               [root@ka /x/sim/nathanb/nbsim1] id     uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),503(mailman),21(slocate),30(gopher),500(http),14(uucp),188(xelus),16(radadmin)      Any ideas?


How do I extend my desktop to my 2nd monitor rather than just cloning it?

I have just installed Debian Wheezy for the first time and have had mixed success getting my system up and running. Currently my main issue is that I am unable to extend my desktop to my second screen. I have an ATI radeon HD 7700 series graphics card connected to 2 displays. Running `lspci` results in this line, among others: > 04:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cape > Verde [Radeon HD 7700 Series] Currently, both are cloned. I initially tried to follow the instructions for installing proprietary ATI drivers, which resulted in the 2nd display being detected but I was unable to extend the desktop rather than clone it (something about my virtual screen not being big enough). I gathered that support might be better for the free version so I followed these instructions for removing said drivers, followed by these instructions to install the free ones. As per the troubleshooting step in that page I ran this command: > dmesg | grep -E 'drm|radeon' | grep -iE 'firmware|microcode' which produced this output:               [    4.925773] [drm] Loading VERDE Microcode       [    4.990158] platform radeon_cp.0: firmware: agent loaded radeon/VERDE_pfp.bin into memory      [    5.152647] platform radeon_cp.0: firmware: agent loaded radeon/VERDE_me.bin into memory      [    5.236165] platform radeon_cp.0: firmware: agent loaded radeon/VERDE_ce.bin into memory [    5.260082] platform radeon_cp.0: firmware: agent loaded radeon/VERDE_rlc.bin into memory      [    5.376566] platform radeon_cp.0: firmware: agent loaded radeon/VERDE_mc.bin into memory      That's different to the outputs on that page but then they don't really give anymore information so I just assumed everything had worked. Anywho, now when I go to `System Tools` -> `Preferences` -> `System Settings` -> `Display` I just see a single display called `Unknown`, which clones across both of my monitors. running `xrandr -q` produces this output: > xrandr: Failed to get size of gamma for output default Screen 0: minimum > 1680 x 1050, current 1680 x 1050, maximum 1680 x 1050 default connected > 1680x1050+0+0 0mm x 0mm 1680x1050 0.0* FYI 1680x1050 is the native resolution of both monitors. I do not have a `/etc/X11/xorg.conf` file, and my `/etc/X11/xorg.conf.d/` directory seems to be empty. This is my first time running a linux system so I'm totally confused and would appreciate kind words and idiot-proof guidance.


Check SMTP server capabilities on the command line

I know an SMTP server's URL. I want to know about that SMTP server's capabilities: TLS, password encryption, etc. Evolution Mail knows how to report these. How can I get them from the command line? **UPD**. EHLO output               EHLO yandex.ru     250111.localdomain.ru Hello ac60.localdomain.ru [172.16.2.60] (may be forged), pleased to meet you     250-ENHANCEDSTATUSCODES     250-PIPELINING     250-8BITMIME     250-SIZE     250-DSN     250-ETRN     250-STARTTLS     250-DELIVERBY     250 HELP


cut command, order not preserved?

I have a sample file:-               [root@localhost base_filters]# cat shortlist     2233|charles harris  |g.m.     |sales     |12/12/52| 90000     9876|bill johnson    |director |production|03/12/50|130000     5678|robert dylan    |d.g.m.   |marketing |04/19/43| 85000     2365|john woodcock   |director |personnel |05/11/47|120000     5423|barry wood      |chairman |admin     |08/30/56|160000      I wanted to flip the names in the file such that there is a comma `,` after the last name i.e for example a name should appear as harris,charles. I tried the following command:-               [root@localhost base_filters]# tr -s ' ' < shortlist | cut -d\| -f2 | cut -d' ' -f2,1     charles harris     bill johnson     robert dylan     john woodcock     barry wood      I want last name to appear first so I specified field 2 and then 1 but this doesn't seem to work. Any Ideas about this?


Using zypper, how can I remove all packages installed from a specific repository?

Say I've added a repository using `zypper ar`. Then, I've gone and installed multiple packages from that repository, but now I want to remove all of them. Is there a command that allows me to remove all the packages that I've installed just from that specific repository?


Tray Icon Missing Rssowl Fedora 18

I have been an avid user of RSSOwl & now have ported mine OS to Fedora 18. Everything works fine including the transfer of .rssowl2 (backup folder) to new Fedora. However when minimised or exited to tray tray icon is missing... ![enter image description here](http://i.stack.imgur.com/im18l.png) notifications are OK I too can right-click tray icon... /* Details Added */ RssOwl can be downloaded as a zip file. it has a got a binary & an xpm file...You just execute binary (I symlinked it to /bin) & app starts so I manually created .desktop file:               [Desktop Entry]     Categories=Network;     Exec=rssowl     Icon=/home/usama/Programs/rssowl/RSSOwl.png     Name=RSSOwl     Terminal=false     Type=Application      I converted that .xpm file to .png to be used as desktop icon. Now I copied RSSOwl.png to /usr/share/pixmaps with **no success** & when copied RSSOwl.png to /usr/share/icons/gnome/24x24/apps well **success** happened but very tiny icon :(


Load my .profile for bash in Emacs terminal buffer? (multi-term mode)

I've got multi-term mode (derived from ansi-term) with bash started in Emacs 23.3, which is a terminal emulator running in Emacs. However, I noticed that it did not load my user profile, including environment variables, $PATH, etc. How do I tell multi-term to start bash with my user profile in ~/.profile? Thanks.


Tool for viewing top N items in stream

I'm looking for an existing Linux command-line tools that can accomplish the following: Consider there is an input stream `/dev/inputstream` which spews an infinite stream of data that looks like this:               A     A     B     A     C     Z     A     .     .     .      **NOTE:** (Each line is one character from the alphabet). The tool is used in the following fashion:               cat /dev/inputstream | tool      The output of the tool should be like the one from "top" command. It should be a continuously updated list of top N frequently occurring items. Eg:               A -- 10 times     B -- 8 times     Z -- 7 times     C -- 2 times     D -- 1 time      If the stream were not infinite I could have accomplished this using `sort` and `uniq`.


Share unchanging data from a central repository on a network

I have a bunch of different binary files (total size of all files is circa ~500GB) stored in a hard drive that is mounted to `machine001`. I have 200 other machines that need to access this data for **read-only** purposes. What is the best way to share this data with all other computers, so that reads are fastest? (I use Ubuntu Linux) Is there a different scheme that would be even better for fastest reads?


What does it mean that a distro is "based on" another distro?

Ubuntu is based on Debian. Mint is based on Ubuntu (except for Linux Mint Debian Edition, which is based on Debian.) When one distro is based on another, in what ways is it different from the parent distro? What has been added or taken out or changed? EDIT: After reading the answer from Chris Down I wonder if I should have approached this from a different angle, asking, What are the components of a distro other than the kernel and and applications?


Does linux have something like supercache?

I installed http://www.superspeed.com/desktop/supercache.php for windows and the result is awesome. Every program I run is faster. Basically it uses the memory to cache data. Simple idea. I also use delay write. Something like that in linux?


Where can I find a good tutorial for installing bcache?

Question is updated. Now bcache is part of the standard OS compilation. So it should be easy to install that now. I'll just order some SSD and some big HDD. Where can I found it? I found on the net and it's all too complicated. http://bcache.evilpiepirate.org/ for example seems like the official page for bache. Yet nothing is found there. How to install? How to set up? Nothing Some tutorial says that I have to make bcache, where can I download it? How do I download it? Some says that I have to recompile kernel. Some tutorial doesn't mention that. Which one is right? Nothing makes sense. Okay there is git. Then what? What to do with git?


If I rm -rf a symlink will the data the link points to get erased, too?

This is the contents of the `/home3` directory on my system:               ./   backup/    hearsttr@  lost+found/  randomvi@  sexsmovi@     ../  freemark@  investgr@  nudenude@    romanced@  wallpape@      I want to clean this up but I am worried because of the symlinks, which point to another drive. If I say `rm -rf /home3` will it delete the other drive?


When we do rm -rf * why we do not delete . and ..?

I am just curious. Is there a save guard there? . and .. is a "subdirectory" of the directory we are deleting right? I know it's not a subdirectory but linux treat it as a file with directory property.


How to keep track of changes in /etc/

I would like to keep track of changes in /etc/ Basically I'd like to know if a file was changed, by `yum update` or by a user and roll it back if I don't like the chage. I thought of using a VCS like git, LVM or btrfs snapshots or a backup program for this. What would you recommend?


Can grub2 detect processor architecture, and display options accordingly?

I have a bootable usb flash drive with grub2 handling booting of ISOs (mostly different spins of Ubuntu). I am editing the menu.cfg myself and have my own script to update grub because I don't want to waste time using external tools. I would like to hide 64-bit ISOs on a 32-bit system, so that I can't make the mistake of trying to boot an incompatible ISO. Is it possible for grub2 to detect whether the processor is x64 or i386 and display a different menu (or preferably enable/disable some menu options) accordingly? Edit: I'm aware of the grub2 CLI command `cpuid -l`, to check for long mode, but I'm not sure if or how that can be used in menu.cfg.


How to know <root of the kernel source tree>

In https://github.com/facebook/flashcache/ there is a saying > `make KERNEL_TREE=<root of the kernel source tree>` > > This builds both the flashcache.ko and 3 utilities. > > flascache-sa-guide.txt has details on how to create and load flashcache > volumes. > > Mohan Srinivasan Paul Saab What should I wrote to replace ?


Linux Fedora 19 - iptables failed to start

I've been trying to start the `iptables` firewall service, but it keeps failing. What's going wrong?               # systemctl status iptables.service     iptables.service - IPv4 firewall with iptables       Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled)       Active: failed (Result: exit-code) since Sat 2013-10-26 11:01:54 CDT; 41s ago      Process: 2114 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=1/FAILURE)          Oct 26 11:01:54 localhost.localdomain iptables.init[2114]: iptables: Applying firewall rules: iptables-restore: line 1 failed     Oct 26 11:01:54 localhost.localdomain systemd[1]: iptables.service: main process exited, code=exited, status=1/FAILURE     Oct 26 11:01:54 localhost.localdomain systemd[1]: Failed to start IPv4 firewall with iptables.     Oct 26 11:01:54 localhost.localdomain systemd[1]: Unit iptables.service entered failed state.


Initial delay in typing

I've noticed after I come back to my newly installed Fedora 20 system, there's a delay in typing. For example, if I have a terminal window open, and I leave it alone for a few minutes and return, when I type, it takes multiple seconds for my typing to manifest. It's fine after that, provided I don't wait too long between typing. This happens for any typing, not just the terminal. It could be the password on the lock screen, terminal sessions, web forms in FireFox, etc. My system has 32G of RAM, and it occurs with nothing active, except for a terminal or webpage, nothing significantly taxing. The keyboard is the build in laptop physical keyboard. The laptop is a Dell Inspiron 17R (17RM-16452sLV). Is there a known reason this occurs? How can I diagnose and fix the cause of the issue?


Comparing two directories in different servers

We copy our production code and data files to a testing server on a weekly basis. It can take hours, and sometimes it hasn't finished. What is the best method to confirm that the directories have been copied correctly from one server to another?   * I was hoping that `dircmp` could be used, but I don't see how it can be used between servers.   * My second option is to map (link) one of the directories to the other server, and then use `dircmp` on them.


Is GNU PDF Library in active development?

I've been hearing about The GNU PDF Library since 2007. Since then I've been looking forward to see this tool in the wild, but four years have passed and it seems to me that this is a painfully long time. I'm aware of the complexities of the project, but as I recall the GNU Foundation have marked it as a top priority project. What is going on?


KVM with directory rootfs

I'm currently working on an embedded system design and my test development machine is currently a VM running in KVM. Is it possible to have KVM mount a directory (like a chroot) and use that as the root file system for the VM? I currently have the root filesystem in a single sparse file, and I can mount it via loop to a directory, but when making and testing changes it would be much easier to have the root fs in a directory structure on my local machine.


setquota fails silently

I'm trying to set a file system quota for a bunch of users on my system with a command like:               setquota -b /mntpnt < /file/with/quotas      This seems to work for almost all users. However, when I do this:               getent passwd        | awk -F: '{ if ($3 >=1000 && $3 < 2000) print $1 }'        | xargs quota -u        | grep 'none'        | awk '{print $5}'      to print the names of those users not having a quota set for them, this pipeline reports two users whose names were included in `/file/with/quotas`. I even tried setting their quotas manually via a command like:               setquota -u user 1024 1024 0 0 /mntpnt      This reports nothing (as expected) and gives a zero exit status. However, `quota -u user` still reports that this user has no quota enabled. As far as I can see there's nothing special about the two rogue accounts that would set them apart. Can I make `setquota` more verbose? I tried `strace`ing it but this didn't produce any new information. Any suggestions on why it can be behaving like this? Kernel quota version: 6.5.1   OS: Debian Squeeze 6.0.1   FS: ext4 **Update** I have removed `/mntpnt/aquota.user` and recreated it with `quotacheck -c /mntpnt` because I had other reasons to think it was corrupt. All the symptoms described above took place with the brand new `aquota.user`.


Proprietary or Closed Parts of the Kernel

I've heard of lines of code that are distributed with the Linux Kernel that aren't open. Maybe some drivers or something like that. I'd like to know how much of that is true? Are there lines of code that are distributed with the Kernel (as when you download it from kernel.org) that aren't open at all? And how much that is of the total (if there's a way to know it, number of lines or percentage)? And where can I find more information about this? Maybe some articles to read... Thank you very much!


Disable USB power for USB controlled power strip

I have a USB controlled power strip that has a single usb port. ![enter image description here](http://i.stack.imgur.com/yNZnG.jpg) If my computer is turned on and connected via usb to the power strip, the power strip will provide electricity to all the sockets. I want to programatically disable power to the usb port on the computer which is connected to the power strip. This does not work:               $ echo suspend > /sys/bus/usb/devices/usb*/power/level     -bash: echo: write error: Invalid argument      Is there some other way to do this? I would like to be able to connect to my server from somewhere else and turn off power to all the devices connected to the power sockets.


Do any Linux distributions have a folder sync option (like briefcase in windows)?

I want to keep my local folder synchronized with a network folder. Is there any folder synchronization utility or feature in Linux?


How can I solve segmetation fault on ns2.35

I am trying to compile `make` on ns2.35 after I add patch of codel algorithm and it gives me this error make[1]: Leaving directory `/home/ashraf/Ns2/ns-allinone-2.35/ns-2.35/indep- utils/webtrace-conv/ucb' Can you please help me?


Bash pipe output to more

I am wondering about some bash environment setting here: is it possible to set stdout of bash as a pipe to /bin/more? You know, like using vi as editor for your commands it should be possible to avoid using Ctrl-PgUp or Ctrl-PgDown for looking on all the output (by default). To be more specific: I _don't_ want to pipe the output of a _single_ command to more like:               $> ls | more     a b c     ...     --more--      BUT: pipe _any_ output of my current session to more, so to get either all output printet as usual just beneath the prompt - or if it's too much, screen- wise.               # automatically piped to more:     $> ls      a b c     ...     --more--      Is there any bash-built-in to accomplish this? EDIT: I wasn't specific enough, sorry for that: I am aware of "script" and command grouping like               (cmdA; cmdB) | less      What I really would like is to automatically avoid getting a 100 page output at once but instead have a more-like behavior of bash'es stdout. As could be accomplished by adding                2>&1 | more      to all commands entered on command promt - just automatically.


Samba daemon hammering CPU on CentOS 5.6 VM on bootup

I have a problem where my Centos 5.6 VM is running _very_ slow on my Win7 machine, and looking at `top` I can see that the Samba daemon `smbd` is sitting at the top of the list hitting the CPU big time, with anywhere up to 65% usage! I have done a stop and start of the service, but for some reason it just comes back and takes all CPU again. I have a Samba share setup on my Win7 machine that points to the CentOS VM to let me access my code, so I need Samba running.               top - 09:18:01 up 21 min,  1 user,  load average: 0.83, 0.95, 0.86     Tasks:  98 total,   3 running,  95 sleeping,   0 stopped,   0 zombie     Cpu(s): 10.3%us,  8.3%sy,  0.0%ni, 29.0%id,  0.0%wa,  8.0%hi, 44.3%si,  0.0%st     Mem:    749148k total,   493376k used,   255772k free,    44448k buffers     Swap:  2064376k total,        0k used,  2064376k free,   208660k cached            PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND      2728 crmpicco  16   0  133m 3544 1936 R 65.5  0.5   0:59.99 smbd      What would cause this? I use the NetBeans IDE for web development, so could this be hitting the Samba share excessively causing the Samba daemon to behave in this way?


How do I use grep to find a text string in files in sub folders of a parent folder without -r switch

I'm using Solaris 10 and have two `grep` versions one in `/usr/bin` and one in `/usr/xpg4/bin`. I have been searching for an answer on how to search for text within files within sub folders of a parent directory using `grep`. All answers talk about `-r` or `-R` switches which I do not have available with my version of `grep`.


ip route match multiple fields

I have a Linux machine set up to forward IPv4 packets. I'm looking to do this: > if packet matches both source **and** destination, forward to GW X. How do I specify the source field? Do I need to use `iptables`?


Effect of compiling from source on already installed applications

I use Ubuntu 12.04. Say I have installed `package x` from the repository (with all its dependencies) at version 1.7 but I need some functionality that is only available in version 1.8, so I download the source tar and compile it:               ./configure       make       make install        * Does this overwrite the existing 1.7 binaries?    * If the existing binaries are overwritten, does the package manager reflect the new version (1.8) and can `package x` be updated by the package manager in the future?   * If `package y` has a dependency of `package x 1.8` - will it be satisfied? I have been trying to find a good source online that explains this. If you have any recommendations, please let me know.


How can I determine how directories/filesystems have been mounted?

I have access to a VM which on a different network at work using NIS. (Debian by the way) This VM has about 10 extra /directories in / when I log in. They do not exist on that VM alone, they are publicly hosted directories (I know where to access some of them via Windows shared drives as well). I'm trying to figure out how to create the same directory structure on my own VM where I have root access. But I've been unable to figure out how these were mounted (I'm kind of a beginner at Linux config). I searched the config and init files as best I could and didn't find anything useful, just some dead ends. Using the mount command I only see 3 mounts listed, all in deeper /sub/directories (ie. /home/myuser). Any ideas?


"E: Sub-process /usr/bin/dpkg returned an error code (1) " What does this mean?

I've seen this message several times whenever someone has a problem installing, upgrading or removing some piece of software, but I wonder, what does it mean, and more importantly, how can I solve it?


How to read commands from file?

I have som `php` scripts which I run sequential order like:               php index.php import file1 --offline &&     php index.php import file2 --deleteUnused &&     php index.php import file3      Now I have newly discovered the `paralell` command and I tried something like that:               parallel -j 3 -- "php index.php import file1 --offline" "php index.php import file2 --deleteUnused" "php index.php import file3"      And it works perfectly. Is it possible that I could have a file, where all the above commands are included and to start `parallel` with an option to read the command from the file? Something like this:               parallel -XX myFileWithCommands.txt


change time (date) in or from exif-data

On Change created date from exif data there are great scripts. But what if “Date and Time (original)” are bad in exif-data (because of wrong set time in camera). Is there a solution to change time for all files in a directory about +/- n minutes? Either correct the exif data (and then use one of the great scripts from the link above) or only correct the timestamp of the files.


How to fix link error under CMake for class QX11Info on Mac OS X

I'm trying to build kxstitch, which is designed for Linux, on OS X. I've gotten most of the way there by installing MacPorts, XCode, KDE, etc. and making minor changes to the build file, but am getting this error at the final stage of building the project:               Linking CXX executable kxstitch.app/Contents/MacOS/kxstitch     Undefined symbols for architecture x86_64:       "QX11Info::display()", referenced from:           Editor::keyPressAlphabet(QKeyEvent*) in Editor.o      The key line in the build script is: > cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. && make -j${THREADS} Here is CMakeLists.txt. The missing symbol seems to be part of Qt. As part of installing KDE through MacPorts, many Qt-related packages were installed, including qt4-mac, qt4-mac- devel, and qt4-x11. The output of cmake includes:               -- Looking for QT_MAC_USE_COCOA     -- Looking for QT_MAC_USE_COCOA - found     -- Found Qt-Version 4.8.2     --  -> QT_QMAKE_EXECUTABLE is /opt/local/bin/qmake     --  -> QT_INCLUDE_DIR is /opt/local/include     --  -> QT_QTCORE_INCLUDE_DIR is /opt/local/include/QtCore     --  -> QT_BINARY_DIR is /opt/local/bin     --  -> QT_LIBRARY_DIR is /opt/local/lib     --  -> QT_PLUGINS_DIR is /opt/local/share/qt4/plugins     --  -> QT_MKSPECS_DIR is /opt/local/share/qt4/mkspecs      I'd be grateful for any advice on how to proceed. UPDATE: I've since read about a problem with the QtGui library on OS X, although I don't know how to translate the solution to CMAKE.


PPP over USB from RJ11

I have an adapter which on 1 side offers an RJ11 male plug, and on the other side and USB Type A female port, I also have another adapter which is similar but it offers and USB Type A male plug. I would like to connect this to my computer and connect to the internet from there, removing the need for an external modem, anyone knows about how the drivers or the routing should be configured in this case ? * * * **_EDIT 1_** here is a picture of what I have ![http://cdn.shopclues.com/images/detailed/45/3.jpg](http://i.stack.imgur.com/dtYEo.jpg) here are the other sides ![enter image description here](http://i.stack.imgur.com/S4yq5.jpg) of course this is the variant with the female USB, I have one with a Type A male plug as well.


How can I avoid escaped delimiter characters in a Unix command?

I need to take the sum of a field which is tilde (~) delimited. Problem I have is that my data is also having delimiter escaped. ### Example               1~CEO~ashok\~kumar~1000      As we see in 3rd field above we have escaped delimitter which I want to avoid. I'm running the below command which doesn't handle this.               $ cat test.out|awk -F'~' 'BEGIN {sum=0} {sum+=$4} END{print sum}'      Assume the `test.out` data as:               1~CEO~ashok\~kumar~1000     2~CFO~Ranjan~2000     3~CEO~kumar~1000      So my output should be 4000. But currently with my command I get only 3000!


Terminal filesystem location

I'm using gnome 3 on debian. I want to create a launcher on the desktop for terminal. Where is terminal in the file system? I tried "which terminal" but it doesn't output anything


cannot find what has used all the memory

The server has about 24GB memory. By running `free -g` I find the memory is used up                            total       used       free     shared    buffers     cached     Mem:            23         23          0          0          0         18     -/+ buffers/cache:          4         19     Swap:           56          2         53      Then I did some research into what has used up all these memory by `top` then `M`. But it seems the memory is quite free in the `%MEM` column. What can I do to free some memory? This is a server for calculation so it is better not to restart the computer.


What does ".managed" mean in a babushka package name?

I did a search for java with babushka, and got the following results:               Name                 | Source                                               | Runs    |  ✓ | Command     ---------------------+------------------------------------------------------+---------+------+--------------------------------------------     java.managed         | git://github.com/all4miller/babushka-deps.git        | 1 ever  | 100% | babushka all4miller:java.managed     java.managed         | git://github.com/benhoskings/babushka-deps.git       | 2 ever  | 50%  | babushka benhoskings:java.managed     java environment     | git://github.com/compactcode/babushka-deps.git       | 4 ever  | 75%  | babushka compactcode:'java environment'     java dev environment | git://github.com/compactcode/babushka-deps.git       | 21 ever | 14%  | babushka compactcode:'java dev environment'     java.environment     | git://github.com/compactcode/babushka-deps.git       | 1 ever  | 100% | babushka compactcode:java.environment     java.managed         | git://github.com/compactcode/babushka-deps.git       | 1 ever  | 0%   | babushka compactcode:java.managed     java                 | git://github.com/cheef/babushka-deps.git             | 1 ever  | 100% | babushka cheef:java     java                 | http://chris-berkhouts-macbook-pro-2.local:9292/.git | 4 ever  | 25%  | ✣     java-6-sun           | https://github.com/cheef/babushka-deps.git           | 2 ever  | 0%   | babushka cheef:java-6-sun      "java.managed" looks the most promising, because I trust benhoskings more than the others. But what does the ".managed" mean?


How to choose the adequate Linux distribution for a given hardware set up?

We all have a common issue whereby there is an old PC lying around and we want to revive it using a secure Linux distro (vs. using the un-updated native OS, likely Windows) that is both user-friendly and snappy. Use case: > I have an old Dell Latitute 131 L (specs here). I am considering dual-boot > installing Linux (it already has XP). Specifications >   * 256 DDR2 RAM >   * 50+ gig free disk space >   * AMD Turion 64 X2 (64-bit dual-core mobile CPU) 1.6 GHz > How do we know which distribution to choose? Are there any risks to picking older versions of a given distribution?


How to prevent "Last Login:" message from showing up when using sftp?

In Ubuntu GNU/Linux 12.04, I have a user `johndoe` that is part of an `sftponly` group, set up to `sftp` to a `chroot` jail using               Subsystem sftp internal-sftp          Match Group sftponly             ChrootDirectory %h             ForceCommand internal-sftp             AllowTcpForwarding no      at the end of `/etc/ssh/ssh_config`. All components of the user's `home` directory are `root`-owned directories that are not writeable by any other user or group, as explained in `man sshd_config` (under `ChrootDirectory`). Inside his `chroot` jail, there is a writeable directory `files`:               sudo groupadd sftponly         sudo mkdir -p /home/sftponly/johndoe/files     sudo useradd -d /home/sftponly/johndoe -g sftponly -s /usr/sbin/nologin johndoe     sudo chmod go-w /home/sftponly/{,johndoe}     sudo chown johndoe:sftponly /home/sftponly/johndoe/files     sudo chmod ug+rwX /home/sftponly/johndoe/files      (Setting the shell to `/bin/false` did not work with either `ssh` or `sftp`. With `nologin` as the shell `ssh` connects, shows "MOTD", and then disconnects, which is the expected behavior.) But `sftp` fails with the message `Received message too long 1416128883`. I know this failure is caused by "MOTD" (Message Of The Day), as `sftp` expects a "clean login." I have tried disabling all "MOTD" pieces on the server using the following, with ( **these results** ):   * Adding `PrintLastLog no` and `PrintMotd no` to the end of `/etc/ssh/ssh_config` and restarting `ssh` using `restart ssh`. ( **No effect**. Testing with `ssh` shows both "MOTD" and "Last Login:".)   * Commenting out `session optional pam_motd.so` in `/etc/pam.d/sshd`. ( **Prevents MOTD**. But there is no corresponding entry for "LastLog" so, testing with `ssh`, "Last Login:" still shows up and hence **`sftp` still fails**.)   * Commenting out `session optional pam_lastlog.so` and `session optional pam_motd.so` in `/etc/pam.d/login`. ( **No effect**. Testing with `ssh` shows both MOTD and "Last Login:".)   * Creating the `.hushlogin` file on the client using `touch ~/.hushlogin`. ( **No effect**.) I am out of ideas. Where else may this "Last Login:" message be coming from and how can it be disabled (ideally only for `sftp` and not for `ssh` logins, but, I imagine as `sftp` uses `ssh`, the message is going to be there either for both or none)?


What commands have -h human readable option, and how can I enable it by default w/env variable?

I'm tired of using aliases or typing `-h`. I want human readable output 24/7. Is there a way to enable it all the time for all commands that offer it?


How do I check man pages for what single parameter of the command does?

Example: I am using `tar -zxvf` command but I don't know what 'x' stands for. How can I check this single parameter without having to scroll all the way through `man tar`?


How to debug SSH port forwarding

This is an extension to ssh port forward to access my home machine from anywhere I tried things mentioned there but I am not able to `ssh` to my machine. Netgear router settings for port forwarding:               Start Port: 22     End Port: 22     Server IP Address: IP address of by FreeBSD box      `/etc/ssh/sshd_conf` of my FreeBSD box:               PasswordAuthentication yes     AllowUsers root     X11Forwarding yes     AllowTcpForwarding yes **How I am trying to connect:** I've signed up for `dyndns.com` and got a URL that maps to my external IP address. From another machine in my home network, I do: `ssh -l root my_dyndns_ip` Which is just timing out. On the other hand, I can ping `my_dyndns_url` successfully. **Debugging** : How can I fix this so that I can `ssh` from anywhere to `my_dnydns_url` ? I tried to look into logs of my Netgear router but on failed ssh attempt, no log in generated on the router. I also looked into `/var/log/messages` but could not finding anything. **Edit:0** Running ssh in verbose mode (as per @jasonwryan suggested): I am noticing a weird thing: When I do ssh to the dyndns.com provided url, its trying to connect to other IP address than what I get from whatismyip.com. Isn't that wrong? **Edit:1** Problem with dyndns is now solved. Now when I try to ssh, it times out and I get error: _Connection timed out_ **Edit:2** Does iptables or NAT has anything to do with it? **Edit:3** I started `ssh` with `-d option` to capture debug messages. When I ssh to the freebsd box from any other machine in wlan, It works fine and I can see logs. But when I ssh to external ip (which should forward that to my freebsd box), I do not even see any logs - that means, request is not even reaching freebsd box. And it times out.


Creating and updating the packages for many Debian systems

I'm using a Lenny (Debian 5) for remotely controlled PC's (around 100 PC's) which will be pinging to my apache server. I'm developing a patch twice in a week to keep updated with the latest versions of my code and running it manually in all those PC's. Since they are controlled remotely, for some or the other reasons I will not be able to login and update in few of the PC's and hence the older version will not be present. I wanted to know how can I keep updated my PC with all the patches/ packages getting updated from the server automatically. Thought of using rsync and executing the *.run file in rsync folder from cron for every 3days. But I'm looking one similar to apt-get update. How can this be achieved?


sudo over ssh: no tty present and no askpass program specified

I keep getting this error and have tried several ways discussed online to fix this and none are working for me. I have setup SSH keys so when I run `'ssh newton@host.com'` it automatically logs me in, I have also set this user in visudo to be `'newton ALL=(ALL:ALL) ALL'` I then also tried to add `'newton ALL=NOPASSWD: /var/www/script.sh'` Unfortunately everytime I run `ssh newton@host.com 'sudo /var/www/script.sh'` from cygwin I get back. I have also tried to add -t -t but then it prompts me for the password...               total size is 21209180  speedup is 314.69     sudo: no tty present and no askpass program specified     Sorry, try again.     sudo: no tty present and no askpass program specified     Sorry, try again.     sudo: no tty present and no askpass program specified     Sorry, try again.     sudo: 3 incorrect password attempts     sudo: no tty present and no askpass program specified     Sorry, try again.     sudo: no tty present and no askpass program specified     Sorry, try again.     sudo: no tty present and no askpass program specified     Sorry, try again.     sudo: 3 incorrect password attempts


Linux mutex spins

On Solaris I can use `mpstat` to see the `smtx` (i.e., spins on mutex or in other words locks not acquired on the first try) value. This value increasing indicates that swap is being hit too frequently and indicates that you need more RAM. The output of `mpstat` on Linux is not at all like Solaris. Is there any way I can see this (or an equivalent/related) value?