How to remove Dropbox

I am trying to remove Dropbox from my computer. So far I have done the following:               sudo aptitude remove dropbox     sudo aptitude purge dropbox      But this didn't get rid of it 100%               oshiro@debian:~$ locate dropbox     /usr/share/nmap/scripts/broadcast-dropbox-listener.nse     /var/cache/apt/archives/dropbox_1.6.1_i386.deb     /var/lib/apt/lists/linux.dropbox.com_debian_dists_wheezy_Release     /var/lib/apt/lists/linux.dropbox.com_debian_dists_wheezy_Release.gpg     /var/lib/apt/lists/linux.dropbox.com_debian_dists_wheezy_main_binary-i386_Packages     oshiro@debian:~$       I know I can delete each of those manually, but wanted to know if that is the correct way of removing a .deb installed application?


good unix troubleshooting book

I've been trying to learn *nix and I think I'm doing pretty good as far as basic commands, and I think I understand a lot of the "monitoring" type commands etc... in short, I think I'm doing okay with syntax type stuff. And doing stuff like setup of xyz is more or less straight forward...but I really want to start learning how to do is troubleshoot/diagnose problems and be able to fix them. For example, if I go to my website and it's not loading...what would be the first thing I should check for? That sort of thing. So I figured there's probably some good books out there about what to do when things go wrong, what to start looking for, how to identify what is going wrong and how to fix it etc...so I was looking for some recommendations on where I should turn to for that? Ideally I would like book recommendations because I'm old fashioned and like being able to have something in my hands but also for bathroom reading situations :) Any good books out there? I did do a little bit of researching before posting here...but after a while of trying to look at various books, it became clear to me that I am currently too much of a noob to figure out whether the book I'm getting is really going to give me what I"m after...seems like most books I've looked at so far focus on install, backup and general syntax...but that stuff is easy and straight forward to digest...I'm looking for the stuff that will help me become a better detective and *nix problem solver... p.s. - I'm currently using centOS 5.3 but from what I can tell, a lot of things are generic and can work from *nix system to *nix system so I don't think I necessarily need it to be centOS specific... Edit: I ended up getting 3 books: Linux Troubleshooting Bible Linux Server Hacks **Linux Server Hacks, Volume 2** (can't post link due to posting restrictions but you can find it easy enough from first link)


Find filesystem of an unmounted partition from a script

I'm writing a custom automated install using AIF (Arch Installation Framework), and I need to find the filesystem on a partition given a partition. So far I have this:               grok_partitions () {         local partitions=         for label in `ls /dev/disk/by-label | grep "Arch"`         do             if [ $label == "Arch" ]             then                 mount_point="/"             else                 IFS="-" read base mount <<< "${label}"                 mount_point="/${mount}"             fi                  local partition=$(readlink -f /dev/disk/by-label/${label})             local part_no=$(echo ${partition} | grep -Po '\d+')             local fs=$(parted -mls | grep "^${part_no}" | cut -d: -f5)             partitions+="${partition} raw ${label} ${fs};yes;${mount_point};target;no_opts;${label};no_params\n"         done              # do the swap         if [ -e /dev/disk/by-label/swap ]         then             local partition=$(readlink -f /dev/disk/by-label/swap)             partitions+="$partition raw swap swap;yes;no_mountpoint;target;no_opts;swap;no_params"         else             # if there's no labeled swap, use the first one we find             local partition=$(fdisk -l | grep -m1 swap | awk '{ print $1 }')             if [ ! -e $partition ]             then                 echo "No swap detected. Giving up."                 exit 1             fi             partitions+="$partition raw no_label swap;yes;no_mountpoint;target;no_opts;no_label;no_params"         fi              echo -n ${partitions}     }      This worked fine on my machine with only one hard drive, but it failed (obviously) when running in my VM running on a LiveCD (the LiveCD was being picked up as another drive, /dev/sr0). I've thought of a couple of hacks I could try:   * `mount $partition; grep $partition /etc/mtab | awk ...`   * use `parted -mls`, but pull out the partition I care about with clever scripting, then parse as I already do in the scriptt Is there a better, simpler way of doing this? I already have the partitions I'm interested in, and I only need to find their filesystems (as well as find available swap).


How to show the filesystem type via the terminal?

> **Possible Duplicate:**   >  How to tell what type of filesystem you’re on?   >  Find filesystem of an unmounted partition from a script How can I quickly check the filesystem of the partition? Can I do that by using `df`?


How to tell what type of filesystem you're on?

Is there a command to tell what type of filesystem you're using?


Finding which filesystem

I have an external hard drive and would like to know what kind of a file system it has. How do I find that out using the terminal?


How to know file system of any medium like hard disk, CD/DVD, flash drive?

Is there any command or any way to know what file system is there on a medium like hard disk or CD/DVD or flash drive etc. From GUI gparted one can know the type on hard disks/pen drive but not of CD/DVD. I ran the below command to mount my DVD.               ravbholua@ravbholua-Aspire-5315:~/Documents/Other$ sudo mount -t iso9660  /dev/cdrom ~/Downloads     mount: block device /dev/sr0 is write-protected, mounting read-only     mount: wrong fs type, bad option, bad superblock on /dev/sr0,            missing codepage or helper program, or other error            In some cases useful info is found in syslog - try            dmesg | tail  or so          ravbholua@ravbholua-Aspire-5315:~/Documents/Other$      From the error thrown by `mount`, I feel that the file system that I had given in the command i.e. 'iso9660' may not be right. From this it strikes my mind to 1st know the f.s. present on the DVD. I'm working on Ubuntu 13.04.


crontab and DST disagreement with different timezone

From a server hosted in Poland (UTC +01:00), is there a way I can consistently have a crontab entry run at 9am New York time (UTC -05:00)? For me this wasn't trivial since the daylight saving time ended last Sunday in Poland, so jobs that I have scheduled to run at 15:00 their local time most of the year are late this week by an hour from the point of view of US stock exchanges. I remember Congress' decision a few years ago to extend DST, which put things out of sync for a few weeks per year. One workaround I am not even sure would work (which I prefer to avoid anyhow) is that when I have a task:               0 14 * * * something      I fetch NY's time `TZ=":US/Eastern" date +%s` and compare using bash arithmetic whether I should `sleep 3600` or not before running `something`


FreeBSD: Opening X applications after su to root?

Using FreeBSD 8.2. I'm accessing my machine over vnc using tightvnc. I log in as my normal user. This is okay. I can open X applications and they display fine. Then I su to root and they won't open. I used to be able to do xhost +localhost but this doesn't work anymore. I read online about copying .Xauthority, so now in my .cshrc for root I do this:               if ($user != "root") then       setenv XAUTHORITY /home/$user/.Xauthoriy     endif      This gets me further but now I get an error:               GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed ..      I searched for this online and someone said to prefix the command with dbus- launch first:               dbus-launch emacs      I tried this and it works but it seems kludgy. How do I get this working so I can launch X based programs after su'ing to root seamlessly (like I could with FreeBSD 6.x)?


Debian Squeeze: connect to A2DP (bluetooth) through command line

I would like to turn my Lacie NAS into a A2DP bluetooth source, in order to stream audio to a bluetooth audio sink. The NAS runs Debian Squeeze in a chroot environment, and is connected to a Bluetooth dongle. I have no GUI installed on this NAS. I can get bluetooth up with `hciconfig hci0 up`, and I can pair with the audio sink. I created a file `~/.asoundrc` with the following contents:               pcm.btheadset {         type bluetooth         device C8:84:47:02:59:F4         profile “auto”     }      Then I executed `hciconfig hci0 voice 0x0060`, which gave no output. After that, I executed               pactl load-module module-alsa-sink device=btheadset      which gave the following error:               socket(): Address family not supported by protocol     Connection failure: Connection refused      Did I skip a step? Or is there anything else to accomplish what I want? UPDATE: I think the underlying problem is that the required kernel modules are not loaded. I have currently the following modules running:               snd_page_alloc     soundcore      btusb     uhci_hcd     rfcomm     l2cap     bluetooth     ftdi_sio      usbserial     usblp      ehci_hcd     loop     usb_storage     usbcore      Are there any other sound-specific kernel modules that I need to get sound over bluetooth working?


What does `env COLUMNS=%S ps …` do?

I have seen the syntax `env COLUMNS=%s`in shell scripts, e.g. see the line below from the Helm package in Emacs:               env COLUMNS=%s ps -axo pid,user,pri,nice,ucomm,tty,start,vsz,%%cpu,%%mem,etime,command      What does `env COLUMNS=%s` do? How is it different for example from `COLUMNS=%s` or `export COLUMNS=%s` ? Finally, does anyone know if such syntax is supported in OS X?


How to block HTTPS site using RHEL Squid?

I want to block HTTPS sites using Linux Squid server. How can I do this?


Why does this command create an enormously large file?

I was experimenting today with some append operations and, in my curiosity, ran this (where **file1.txt** was non-empty and **file2.txt** was empty):               $ cat file1.txt >> file2.txt >> file1.txt      When I saw it taking a while, I hit `Ctrl`+`C` to end it. By then, **file1.txt** was hundreds of MB in size. Switching the file names doesn't produce the same effect; only when the files are in this order does the infinite redirection happen. What exactly is going on that causes this?


gawk: Summing floats formatted with comma separator

I'm trying to sum floats which use the comma as separator, and gawk does integer calculations. Here's the script:               BEGIN {       FS=";"       OFS=";"       CONVFMT = "%2.2f"     }     {        print $1       print $2       print $1+$2      }      I'm using this data file:               4,3;5,7      and calling the script like this:               LC_ALL=fr_BE gawk -f test.awk < t.txt      I get this output:               4,3     5,7     9      I have the fr_BE locale set up, but the result is still incorrect. How can I fix this?


How to upgrade Apache 2.2.15 to 2.4.4 in CentOS

I want to upgrade Apache from 2.2.15 to 2.4.4 in CentOS. Do I need to download update files to a folder and update Apache? Is this even possible?


Access local UPNP and port forwarding while using OpenVPN

I have a laptop with Arch Linux and NetworkManager. When I connect to any wireless network I establish client OpenVPN connection to PrivateInternetAccess (my VPN provider) for privacy. SSH and Minecraft servers stop working after that. I've found some sloution for it. But RetroShare can't forward ports with UPNP (some of my friends are behind NAT) and Tomahawk even doesn't show my friends online. Is it possible to allow access to UPNP and incoming connections on local network while using VPN's tun0 as my primary route (for email/surfing/etc) or to route RetroShare and Tomahawk bypassing VPN? I think it can be a NetworkManager.dispatcher script or something like that...


Graphics and Wireless Driver Problems on Crunchbang

I started using Crunchbang. However, I still have problems with graphics card and wireless drivers. My graphics card is **ATI Radeon HD 7670M** and notebook model is **Acer Aspire V3-551G**. I have downloaded the graphics card driver from this link: http://support.amd.com/en- us/download/desktop?os=Linux%20x86_64 . When I install it and reboot my PC, it doesn't start anymore and I have to reinstall Crunchbang again. My **lspci** output:               01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Thames XT/GL [Radeon HD 7600M Series]     02:00.0 Ethernet controller: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet (rev c0)     03:00.0 Network controller: Atheros Communications Inc. AR9462 Wireless Network Adapter (rev 01)


Why does KDEPIM add “pbecbengr-rivy-znaqngrq-ba” to the domain part of outgoing Message-ID headers?

When I send an eMail with Kontact (KDEPIM), my `Message-ID` headers look like this:               Message-ID: <1548233.Ax4hfq5P2Q@pbecbengr-rivy-znaqngrq-ba.tglase.lan.tarent.de>      In contrast, my regular MUA uses:               Message-ID: <alpine.DEB.2.11.1408151037370.23325@tglase.lan.tarent.de>      So, why does KMail not use just the FQDN of my host, and why does it use the string “pbecbengr-rivy-znaqngrq-ba” (which is rot13 for “corporate-evil- mandated-on”)? Duckduckgoïng and googling for either string does not yield anything informative or at all…


Using Awesome window manager on CentOS 7

Awesome works fine on Fedora 19, so it should work on CentOS 7, right? Well, I tried and failed to get it to work. After a long time, I managed to compile it from source and set GDM to boot from an `~/.xinitrc`. However, all I got was the window manager starting but none of the keybinds (keyboard or mouse) were working at all. I am looking for a usable step by step installation procedure.


Why only one active group at a time?

As far as I understand the users in Unix system can belong to multiple groups and one of them will become the primary group for that user. Others will be supplementary groups. All of this User/Group infrastructure is facilitated by /etc/group and /etc/passwd files. Now group permission of the user is determined exclusively by the active group which can be changed by `newgrp` command. The active group on login is the primary group defined in /etc/passwd file. So the question is what is the fundamental reason on why the designers chose to have this concept of a single active group even though allowing the user to have more than one supplementary groups? What would be the issue if all the groups were active simultaneously?


psad: do not block access to HTTP

I want to block intruders via `psad`, but HTTP and HTTPS should not be blocked. For example, if someone is scanning my dedicated server via `nmap`, `psad` should block him for 2 hours, but he should still see the contents from my domain. I set `AUTO_BLOCK_TIMEOUT` to a value of 7200, so everyone scanning me is completely blocked for 2 hours. Woefully the attacker is also blocked from seeing my webpage, which is not my intention. Is there any possibility to set up a partial blockage via `psad`?


Can a crontab job run concurrently with itself?

If I have a crontab job that runs, for instance, every hour, but that job may take more than an hour to complete, will the next job fail to run?


Sharing files with NFS and Unix Permissions

I'm kind of new to using NFS in the context of Linux permissions, so I'm a little lost on how I can make this work. Here's my setup:   * `alpha` writes files as `root` to the mounted NFS share.   * `beta` serves NFS and reads files from the shared directory, as well as serves the files out over HTTP. The HTTP server runs as user `blaster` with group `server`.  The dilemma I'm facing is that files are written as `root` on `alpha` and can't read or written by user `blaster` of group `server` on `beta`. The question is: how can I fix this? Do I have to create user `blaster` and group `server` on `alpha` and write files using this user and group in order to allow things to be shared with `beta`?


Recommended way to login to root?

After I found out hundreds of hacking attempts are made in a day I decided I want to disable logging in to root remotely via a password. But then I found I can't switch users in WinSCP so I can't easily upload/download/edit files. After I figured out how to disable remote logins it appeared I can't login remotely via a key. So I allowed it and disabled the password. But it turns out it disables passwords on all users. How do you recommend protecting myself when logging in to my server? Someone mentioned he uses one time login tokens, but I am unsure how to use that. But anyways, how do I disable password login for root but allow it for everyone else? I must be able to `su` into root from the other accounts `bc` primary I log into `acidzombie24` then `su` to root and carry on normally.


How to auto generate resolv.conf on Centos 6.5

I just installed CentOS 6.5 and configured the following files: `/etc/sysconfig/network-scripts/ifcfg-eth0`               DEVICE=eth0     HWADDR=aa:bb:dd:dd:ee:ff     TYPE=Ethernet     UUID=adfddfaf-9sda-adse-dfs4-asdfsdfdfg97     ONBOOT=yes     NM_CONTROLLED=no     BOOTPROTO=dhcp      `/etc/sysconfig/network`               NETWORKING=yes     HOSTNAME=localhost.IM     NTPSERVERARGS=iburst      When I reboot the computer, `ifconfig eth0` shows an IP address but the `resolv.conf` file is empty. All it says inside is `search IM`. There are no `nameservers` listed in the file. However, after bootup, if I do `dhclient -r` to release the IP address and then type `dhclient eth0` to get an IP address, `resolv.conf` is populated correctly with my DNS name servers. Why isn't this happening automatically from my configuration files? I thought `dhcp` enabled in my `ifcfg-eth0` file should take care of this. The CentOS documentation says setting `NETWORKING=yes` starts networking at boot time: http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp- configuring-client.html. Any help is appreciated.


Mirror mode openldap perfromance is slow when either mirrored node fails

I'm managing two openldap servers in mirrored mode. When either server fails ldap performs poorly, 30 seconds to several minutes to authenticate. Affected services include ssh and X11 (XDMCP). A mirrored dns also runs on both servers. Running openldap 2.4.23-32 on RHEL 6.3.


How do I disable remote root login via ssh? I want to log into my server (I use keys on my main comp) then `su` into root instead of access root directly. I am using Debian. I follow guides online which say add `PermitRootLogin no` to the file and another mention `Protocol 2`. Then reset ssh. `/etc/init.d/ssh restart`. I did this and it did not work. I was able to log into root using putty. How do I disable remote root login on Debian?


How can I create a multi-boot USB using livecd-tools?

While going through the man page, I found some options that seem to suggest that the command line tool `livecd-iso-to-disk` is capable of creating a multiple-boot USB:               --multi         Used when installing multiple image copies to signal configuration of         the boot files for the image in the --livedir <dir> parameter.          --livedir <dir>         Used with multiple image installations to designate the directory <dir>         for the particular image.      I have a 32 bit ISO image file and a 64 bit one in the directory `/var/Installers/Fedora-20`. I would like to be able to select either one from the grub menu when booting from the USB. I tried running the following:               # livecd-iso-to-disk --efi --multi --livedir /var/Installers/Fedora-20 /dev/sdc1      But it didn't work because the `<source>` argument is missing. I have two ISO images, it seems counter-intuitive to ask for the `<source>` when the directory to the image files is provided. Am I missing something here?


Installing SolveigMM Video Splitter under Wine

@ wine-1.4.1 I have been using Linux for about four years now but haven't found a nice GUI to trim videos WITHOUT recoding...perhaps I solely fall in love with SolveigMM Video Splitter I have tried various old versions of this applications which can be found at http://solveigmm-video-splitter.soft32.com/old-version/ but while installing I encounter following problems anyone please help               err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     fixme:sfc:SfcIsFileProtected ((nil), L"C:\\Program Files\\Common Files\\Solveig Multimedia\\msvcp71.dll") stub     p11-kit: invalid config filename, will be ignored in the future: /etc/pkcs11/modules/gnome-keyring-module     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_Trimmer.ax" failed with error 0     err:module:import_dll Library WMVCore.DLL (which is needed by L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_EditEngine.dll") not found     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MPEG4TrimmerFA.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\LC.dll" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MediaJointer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MP2TrimmerFA.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_FileWriter.ax" failed with error 0     err:module:import_dll Library WMVCore.DLL (which is needed by L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_ASFMuxer.ax") not found     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_KFrManager.ax" failed with error 0     err:module:import_dll Library WMVCore.DLL (which is needed by L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_EditEngine.dll") not found     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_Trimmer.ax" failed with error 0     usama@crunchbang:~/downloads$ wine "SolveigMM Video Splitter 2.2.1005.17.exe"     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     fixme:sfc:SfcIsFileProtected ((nil), L"C:\\Program Files\\Common Files\\Solveig Multimedia\\msvcp71.dll") stub     p11-kit: invalid config filename, will be ignored in the future: /etc/pkcs11/modules/gnome-keyring-module     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_Trimmer.ax" failed with error 0     err:module:import_dll Library WMVCore.DLL (which is needed by L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_EditEngine.dll") not found     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MPEG4TrimmerFA.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\LC.dll" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MediaJointer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MP2TrimmerFA.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_FileWriter.ax" failed with error 0     err:module:import_dll Library WMVCore.DLL (which is needed by L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_ASFMuxer.ax") not found     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_KFrManager.ax" failed with error 0     err:module:import_dll Library WMVCore.DLL (which is needed by L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_EditEngine.dll") not found     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_Trimmer.ax" failed with error 0      **UPDATE** Via winetricks I installed WMP10 (Windows Media Player 10) along with FFDSHOW codecs. I got a running copy (video/audio playback) of WMP10. After that I reinstalled SolveigMM Video Splitter got rid of errors about missing DLLs but perhaps I am stuck particularly at this error               fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MP2TrimmerFA.ax"      I assume that .ax files are producing errors that are beyond my comprehension GUI does popup but closes with following error log               Unhandled exception: page fault on read access to 0x00000014 in 32-bit code (0x7ebebdcc).     Register dump:      CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b      EIP:7ebebdcc ESP:0033c98c EBP:0033ca14 EFLAGS:00010246(  R- --  I  Z- -P- )      EAX:00516e41 EBX:7ec40ff4 ECX:000a1204 EDX:006c3c38      ESI:00000000 EDI:00000000     Stack dump:     0x0033c98c:  00000000 00000018 00000000 00b68000     0x0033c99c:  00000000 0014303c 0033ca60 0033c9d4     0x0033c9ac:  00b68014 7ec411dc 7eba0000 00000000     0x0033c9bc:  0033c9e0 005171fe 00661ef4 000001bf     0x0033c9cc:  7eba0000 7ec41914 7ec42010 006c0084     0x0033c9dc:  00000003 0033c9fc 005172c3 006c3c38     Backtrace:     =>0 0x7ebebdcc GetCharacterPlacementW+0x3c() in gdi32 (0x0033ca14)       1 0x004fa06e in smmvsplitter (+0xfa06d) (0x00c03ce4)       2 0x00000001 (0x0065b154)       3 0x004fa2e0 in smmvsplitter (+0xfa2df) (0x0057598d)     0x7ebebdcc GetCharacterPlacementW+0x3c in gdi32: movl   0x14(%esi),%eax     Modules:     Module  Address         Debug info  Name (133 modules)     PE    400000-  a58000   Export          smmvsplitter     PE   31e0000- 3298000   Deferred        smm_kfrmanager.ax     PE   33b0000- 34ab000   Deferred        smm_editengine     PE   70d0000- 710a000   Deferred        wmasf     PE   86d0000- 8916000   Deferred        wmvcore     PE  10000000-101c3000   Deferred        smm_ocxslider     ELF 7b800000-7ba3a000   Deferred        kernel32<elf>       \-PE  7b810000-7ba3a000   \               kernel32     ELF 7bc00000-7bcd4000   Deferred        ntdll<elf>       \-PE  7bc10000-7bcd4000   \               ntdll     ELF 7bf00000-7bf04000   Deferred        <wine-loader>     ELF 7d08a000-7d0a7000   Deferred        libgcc_s.so.1     ELF 7d0bc000-7d129000   Deferred        ieframe<elf>       \-PE  7d0c0000-7d129000   \               ieframe     ELF 7d14c000-7d186000   Deferred        usp10<elf>       \-PE  7d150000-7d186000   \               usp10     ELF 7d1ca000-7d208000   Deferred        libxslt.so.1     ELF 7d208000-7d22f000   Deferred        mpr<elf>       \-PE  7d210000-7d22f000   \               mpr     ELF 7d22f000-7d2a5000   Deferred        wininet<elf>       \-PE  7d240000-7d2a5000   \               wininet     ELF 7d2a5000-7d337000   Deferred        urlmon<elf>       \-PE  7d2b0000-7d337000   \               urlmon     ELF 7d337000-7d35e000   Deferred        liblzma.so.5     ELF 7d35e000-7d4b2000   Deferred        libxml2.so.2     ELF 7d4c7000-7d570000   Deferred        msxml3<elf>       \-PE  7d4d0000-7d570000   \               msxml3     ELF 7d570000-7d58e000   Deferred        msxml<elf>       \-PE  7d580000-7d58e000   \               msxml     ELF 7d68e000-7d6a9000   Deferred        spoolss<elf>       \-PE  7d690000-7d6a9000   \               spoolss     ELF 7d6a9000-7d6cb000   Deferred        localspl<elf>       \-PE  7d6b0000-7d6cb000   \               localspl     ELF 7d6cb000-7d6d4000   Deferred        librt.so.1     ELF 7d6d4000-7d6dd000   Deferred        libffi.so.5     ELF 7d6dd000-7d6e1000   Deferred        libgpg-error.so.0     ELF 7d6e1000-7d72c000   Deferred        libdbus-1.so.3     ELF 7d72c000-7d768000   Deferred        libp11-kit.so.0     ELF 7d768000-7d7ed000   Deferred        libgcrypt.so.11     ELF 7d7ed000-7d7ff000   Deferred        libtasn1.so.3     ELF 7d7ff000-7d813000   Deferred        libresolv.so.2     ELF 7d813000-7d818000   Deferred        libkeyutils.so.1     ELF 7d818000-7d821000   Deferred        libkrb5support.so.0     ELF 7d821000-7d84b000   Deferred        libk5crypto.so.3     ELF 7d84b000-7d91d000   Deferred        libkrb5.so.3     ELF 7d91d000-7d92f000   Deferred        libavahi-client.so.3     ELF 7d92f000-7d9f8000   Deferred        libgnutls.so.26     ELF 7d9f8000-7da36000   Deferred        libgssapi_krb5.so.2     ELF 7da36000-7da8c000   Deferred        libcups.so.2     ELF 7da90000-7daa1000   Deferred        gnome-keyring-pkcs11.so     ELF 7dacf000-7db05000   Deferred        uxtheme<elf>       \-PE  7dae0000-7db05000   \               uxtheme     ELF 7db05000-7db0f000   Deferred        libxcursor.so.1     ELF 7db11000-7db16000   Deferred        libcom_err.so.2     ELF 7db16000-7db24000   Deferred        libavahi-common.so.3     ELF 7db7d000-7dba5000   Deferred        libexpat.so.1     ELF 7dba5000-7dbdb000   Deferred        libfontconfig.so.1     ELF 7dcdb000-7dcea000   Deferred        libxi.so.6     ELF 7dcea000-7dced000   Deferred        libxcomposite.so.1     ELF 7dced000-7dcf5000   Deferred        libxrandr.so.2     ELF 7dcf5000-7dcff000   Deferred        libxrender.so.1     ELF 7dcff000-7dd23000   Deferred        imm32<elf>       \-PE  7dd10000-7dd23000   \               imm32     ELF 7dd23000-7dd46000   Deferred        libxcb.so.1     ELF 7dd46000-7de7e000   Deferred        libx11.so.6     ELF 7de7e000-7de90000   Deferred        libxext.so.6     ELF 7de90000-7dea9000   Deferred        libice.so.6     ELF 7dea9000-7deb1000   Deferred        libsm.so.6     ELF 7deb5000-7debb000   Deferred        libxfixes.so.3     ELF 7dec6000-7df62000   Deferred        winex11<elf>       \-PE  7ded0000-7df62000   \               winex11     ELF 7df62000-7df7b000   Deferred        libz.so.1     ELF 7df7b000-7e017000   Deferred        libfreetype.so.6     ELF 7e017000-7e049000   Deferred        hhctrl<elf>       \-PE  7e020000-7e049000   \               hhctrl     ELF 7e06a000-7e070000   Deferred        libxxf86vm.so.1     ELF 7e070000-7e073000   Deferred        libxinerama.so.1     ELF 7e073000-7e079000   Deferred        libxdmcp.so.6     ELF 7e080000-7e0ba000   Deferred        winhttp<elf>       \-PE  7e090000-7e0ba000   \               winhttp     ELF 7e0ba000-7e138000   Deferred        gdiplus<elf>       \-PE  7e0d0000-7e138000   \               gdiplus     ELF 7e138000-7e163000   Deferred        msvfw32<elf>       \-PE  7e140000-7e163000   \               msvfw32     ELF 7e163000-7e1ac000   Deferred        dsound<elf>       \-PE  7e170000-7e1ac000   \               dsound     ELF 7e1ac000-7e281000   Deferred        quartz<elf>       \-PE  7e1c0000-7e281000   \               quartz     ELF 7e281000-7e390000   Deferred        oleaut32<elf>       \-PE  7e2a0000-7e390000   \               oleaut32     ELF 7e390000-7e42e000   Deferred        msvcrt<elf>       \-PE  7e3b0000-7e42e000   \               msvcrt     ELF 7e42e000-7e458000   Deferred        msacm32<elf>       \-PE  7e430000-7e458000   \               msacm32     ELF 7e458000-7e4d8000   Deferred        rpcrt4<elf>       \-PE  7e460000-7e4d8000   \               rpcrt4     ELF 7e4d8000-7e602000   Deferred        ole32<elf>       \-PE  7e4f0000-7e602000   \               ole32     ELF 7e602000-7e6b3000   Deferred        winmm<elf>       \-PE  7e610000-7e6b3000   \               winmm     ELF 7e6b3000-7e6f0000   Deferred        winspool<elf>       \-PE  7e6c0000-7e6f0000   \               winspool     ELF 7e6f0000-7e7d4000   Deferred        comdlg32<elf>       \-PE  7e700000-7e7d4000   \               comdlg32     ELF 7e7d4000-7e8d6000   Deferred        comctl32<elf>       \-PE  7e7e0000-7e8d6000   \               comctl32     ELF 7e8d6000-7e94a000   Deferred        shlwapi<elf>       \-PE  7e8e0000-7e94a000   \               shlwapi     ELF 7e94a000-7eb71000   Deferred        shell32<elf>       \-PE  7e960000-7eb71000   \               shell32     ELF 7eb71000-7eb8b000   Deferred        version<elf>       \-PE  7eb80000-7eb8b000   \               version     ELF 7eb8b000-7ec58000   Dwarf           gdi32<elf>       \-PE  7eba0000-7ec58000   \               gdi32     ELF 7ec58000-7edac000   Deferred        user32<elf>       \-PE  7ec70000-7edac000   \               user32     ELF 7edac000-7ee18000   Deferred        advapi32<elf>       \-PE  7edc0000-7ee18000   \               advapi32     ELF 7ee18000-7ee24000   Deferred        libnss_files.so.2     ELF 7ee24000-7ee2f000   Deferred        libnss_nis.so.2     ELF 7ee2f000-7ee46000   Deferred        libnsl.so.1     ELF 7ee46000-7ee4e000   Deferred        libnss_compat.so.2     ELF 7efc5000-7efeb000   Deferred        libm.so.6     ELF 7efec000-7f000000   Deferred        msimg32<elf>       \-PE  7eff0000-7f000000   \               msimg32     ELF b7401000-b7407000   Deferred        libuuid.so.1     ELF b7408000-b740c000   Deferred        libdl.so.2     ELF b740c000-b7570000   Deferred        libc.so.6     ELF b7571000-b758a000   Deferred        libpthread.so.0     ELF b758a000-b76cd000   Dwarf           libwine.so.1     ELF b76cd000-b76d0000   Deferred        libxau.so.6     ELF b76e4000-b7702000   Deferred        ld-linux.so.2     ELF b7702000-b7703000   Deferred        [vdso].so     Threads:     process  tid      prio (all id:s are in hex)     0000000e services.exe         00000027    0         0000001e    0         00000015    0         00000010    0         0000000f    0     00000012 winedevice.exe         0000001c    0         00000019    0         00000014    0         00000013    0     0000001a plugplay.exe         00000020    0         0000001d    0         0000001b    0     00000023 explorer.exe         00000024    0     00000040 (D) C:\Program Files\Solveig Multimedia\SolveigMM Video Splitter\SMMVSplitter.exe         00000041    0 <==     System information:         Wine build: wine-1.4.1         Platform: i386         Host system: Linux         Host version: 3.2.0-4-686-pae      While installing this was terminal output               fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a060, {485e7de8-0a80-11d8-ad15-505054503030}, 1, 0x33fde0, (null), (null), 0x100a068,): stub     fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a080, {485e7de9-0a80-11d8-ad15-505054503030}, 1, 0x33fde0, (null), (null), 0x100a088,): stub     fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0a0, {485e7dea-0a80-11d8-ad15-505054503030}, 1, 0x33fde0, (null), (null), 0x100a0a8,): stub     fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0c0, {485e7deb-0a80-11d8-ad15-505054503030}, 1, 0x33fde0, (null), (null), 0x100a0c8,): stub     fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0e0, {485e7dec-0a80-11d8-ad15-505054503030}, 1, 0x33fde0, (null), (null), 0x100a0e8,): stub     fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a100, {485e7ded-0a80-11d8-ad15-505054503030}, 1, 0x33fde0, (null), (null), 0x100a108,): stub     fixme:win:RegisterDeviceNotificationW (hwnd=0x133618, filter=0x54e91c,flags=0x00000001) returns a fake device notification handle!     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     err:richedit:ReadStyleSheet skipping optional destination     fixme:sfc:SfcIsFileProtected ((nil), L"C:\\users\\usama\\Temp\\1KQ759CF\\SolveigMM_Video_Splitter_3_7_1312_23\\presetup\\Common\\SMM_BatchSplit.exe") stub     p11-kit: invalid config filename, will be ignored in the future: /etc/pkcs11/modules/gnome-keyring-module     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_Trimmer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_KFrManager.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_ASFMuxer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_FileWriter.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MP2TrimmerFA.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MediaJointer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_WavMux.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_ASF_Trimmer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MP4Demuxer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MP4Muxer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MPEG4TrimmerFA.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MKVMuxer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MKVSplitter.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MPADemuxer.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_SilenceGen.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_VP8TrimmerFA.ax" failed with error 0     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_VorbisDecoder.ax" failed with error 0     fixme:quartz:Inner_QueryInterface No interface for {00000126-0000-0000-c000-000000000046}     fixme:ole:TLB_ReadTypeLib Header type magic 0x00905a4d not supported.     err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program Files\\Common Files\\Solveig Multimedia\\SMM_MP4VTrimmerFA.ax" failed with error 0     p11-kit: invalid config filename, will be ignored in the future: /etc/pkcs11/modules/gnome-keyring-module     fixme:msxml:domdoc_get_parseError (0x146854)->(0x33f1bc): creating a dummy parseError


How do I create a separate partition for my /home directory?

I was reading http://docs.fedoraproject.org/en- US/Fedora/14/html/Installation_Guide/s1-diskpartitioning-x86.html, but it's not clear to me what this means. What's an LVM Volume Group versus a Hard Drive? I want to make sure that my home directory is on it's own partition so that I can more easily reinstall and upgrade the os. EDIT: If /home is on its own logical volume, will I be able to easily reinstall the os, or is a logical volume a different type of entity from a partition?


How to source /etc/profile and .bashrc while starting vncserver

I have an installation of RHEL5.10 (2.6.18-371.11.1.el5) with `vncserver`:               # rpm -qa | grep vnc     libvncserver-0.9.7-2.el5     vnc-server-4.1.2-14.el5_6.6     x11vnc-0.9.13-8.el5      While my other installations of same versions do `source /etc/profile` and `~/.bashrc` and `~/.bash_profile`, this server ignores it. Where should I look in order to find what is missing?


partitions problem with Debian Squeeze and Windows 7 (Partition 1 does not end on cylinder boundary)

I have just installed Debian Squeeze in a hard disk where also Windows 7 is installed. Now, if I run cfdisk, I get the following message:               "FATAL ERROR: Bad primary partition 3: Partition ends in the final partial cylinder".      Is there a way to fix it without reinstalling everything? **EDIT** : Output from `fdisk -l`:               Disk /dev/sda: 250.1 GB, 250059350016 bytes                                                                                255 heads, 63 sectors/track, 30401 cylinders                                                                                Units = cylinders of 16065 * 512 = 8225280 bytes                                                                                Sector size (logical/physical): 512 bytes / 512 bytes                                                                                I/O size (minimum/optimal): 512 bytes / 512 bytes                                                                                Disk identifier: 0x1f244dbd                                                                                Device Boot      Start         End      Blocks   Id  System                                                                                /dev/sda1               1         154     1228800    7  HPFS/NTFS                                                                                Partition 1 does not end on cylinder boundary.                                                                                /dev/sda2             154        9673    76464844    7  HPFS/NTFS                                                                                Partition 2 does not end on cylinder boundary.                                                                                /dev/sda3            9673       29127   156262401    5  Extended                                                                                Partition 3 does not end on cylinder boundary.                                                                                /dev/sda4           29127       30402    10240000    7  HPFS/NTFS                                                                                Partition 4 does not end on cylinder boundary.                                                                                /dev/sda5            9673       16968    58593280   83  Linux     /dev/sda6           16968       17430     3709952   82  Linux swap / Solaris     /dev/sda7           17430       28372    87889920   83  Linux     /dev/sda8           28372       29127     6066176   83  Linux


Is it possible to fake destination directory path with zip?

Given a bunch of files in the current directory, I want to be able to zip them such that, when extracted, they'd be placed in some given directories. For example, say I have these in `$PWD`:               ls     fsck     xz     chroot      And when I run `unzip foo.zip`, they each get extracted to these directories:               /bin     /sbin     /usr/bin     /usr/sbin      The closest I could find is that these files must already exist in whatever directory paths I want the files to be extracted to (using `$PWD` as root directory):               $ zip foo.zip bin/ls sbin/fsck usr/bin/xz usr/sbin/chroot      Then, on a system where I want this extraction to happen, I would have to:               $ cd /     $ sudo unzip foo.zip


Fan error during boot but it boots well

I installed the second linux distro along with Ubuntu, something went wrong, it was to choosing a wrong nvidia driver, and I decided to remove that distro completely by deleting the partition and creating it again (I'll persist installing it) from Ubuntu. However, I had (after the installation the 2nd distro) and am having (after I've removed it) an issue: during boot there 2 beeps and the label "Fan error" on the black screen before the boot menu appears. It does boot well (Ubuntu) but that error slows down the boot and it generally not normal. I tried boot-repair but the error has remained up til now. I'm on x64 system and UEFI.


Black screen on resume from suspend to RAM

This is my first post so please bear with me. I have Xubuntu(12.04) and Fedora17KDE spin installed on my netbook. While Xubuntu wakes up neatly, Fedora gets stuck at the black screen while resuming. After going through the `pm-suspend.log` file I realized that `vbetools` was not installed. I installed the `vbetools` package. Still resume throws up a black screen. Now the log file has something different to say:               Thu Aug 16 16:07:46 IST 2012: performing suspend     Thu Aug 16 16:07:51 IST 2012: Awake.     Thu Aug 16 16:07:51 IST 2012: Running hooks for resume     Running hook /usr/lib64/pm-utils/sleep.d/99video resume suspend:     Function not supported      Also `vbetools` was having trouble with SELinux. I went ahead and disabled SELinux. I don't think that has anything to do with this. I have come across many similar posts but am not able to find a solution. Here is the output of `lspci | grep VGA`:               00:02.0 VGA compatible controller: Intel Corporation Cedarview Integrated Graphics Controller (rev 09)      Slightly off-topic: Also the brightness keys wont work. I manage to change the brightness using the setpci method. Any help would be greatly appreciated. :)


Extract several pages from a djvu file

I have a djvu file of multiple pages. I wonder how to extract a new djvu file that consists of only a subset of multiple pages? For example, a djvu file has 10 pages, and I would like to extract a new djvu file consisting of pages 3-6 of the original djvu file. Can it be done with some commands of djvulibre, such as djvused, djvm, ...? I am using Ubuntu Linux. Consider two different cases: extract without removal of pages from the original djvu file, and extract without removal. Thanks!


Bridge not working

We want to create bridge (`mybridge`) on our board over `eth0` and `eth1` interface. The board runs Linux 2.6.34.9. Following are the commands:               brctl addbr mybridge     ifconfig eth1 0.0.0.0     ifconfig eth0 0.0.0.0     brctl addif mybridge eth1     brctl addif mybridge eth0     ifconfig mybridge up      PC-----ETH1-----mybridge-------ETH0 When we ping the board from a PC, we are able to receive packet on `eth1` (`eth1` rx counter increasing), but they are not getting transferred to `mybridge`, since the rx counter on `mybridge` is not increasing. After little search on net we found that `mybridge` is up but not going to RUNNING mode. Unless it goes to RUNNING mode, the bridge will not work. Can anyone please let us why `mybridge` is not entering RUNNING state?               / # ifconfig     eth0      Link encap:Ethernet  HWaddr BC:9A:78:56:34:12                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1               RX packets:0 errors:0 dropped:0 overruns:0 frame:0               TX packets:0 errors:0 dropped:0 overruns:0 carrier:0               collisions:0 txqueuelen:1000                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)          eth1      Link encap:Ethernet  HWaddr 00:E0:0C:BC:E0:00                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1               RX packets:101 errors:0 dropped:0 overruns:0 frame:0               TX packets:3 errors:0 dropped:0 overruns:0 carrier:0               collisions:0 txqueuelen:1000                RX bytes:7200 (7.0 KiB)  TX bytes:126 (126.0 B)          lo        Link encap:Local Loopback                 inet addr:127.0.0.1  Mask:255.0.0.0               UP LOOPBACK RUNNING  MTU:16436  Metric:1               RX packets:0 errors:0 dropped:0 overruns:0 frame:0               TX packets:0 errors:0 dropped:0 overruns:0 carrier:0               collisions:0 txqueuelen:0                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)          mybridge  Link encap:Ethernet  HWaddr 00:E0:0C:BC:E0:00                 UP BROADCAST MULTICAST  MTU:1500  Metric:1               RX packets:0 errors:0 dropped:0 overruns:0 frame:0               TX packets:0 errors:0 dropped:0 overruns:0 carrier:0               collisions:0 txqueuelen:0                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)      Any sort of input will be of great help.


How to bind "Ctrl-Alt-b" to the prefix of tmux?

Tmux uses `Ctrl``b` as its prefix, but `Ctrl``b` conflict with Emacs. I want to bind `Ctrl``Alt``b` to tmux's prefix. I guess it may be `C-M-b` but didn't work...


What happens when I do "cat debian.iso > /dev/sdX"?

I'm creating a live-USB and don't understand precisely: what happens when I copy a file (or even a file system) directly to a device node (as opposed to a file system)?


Dual graphics cards in Mint & Ubuntu

I have a triple boot machine with Windows 7, Mint 13 (with XFCE) and Ubuntu 12. Only under Windows 7 does my second screen attached to a second graphics card come on. Under both Mint and Ubuntu, the second screen is blank and under my display properties I only seen on screen (the second screen enters power saving mode because it is receiving no signal). They both show up under `lshw` (as well as the on-board GPU on my motherboard but I don't wish to use this). Do I need to 'tweak' something specifically in Mint or Ubuntu to enable a second GPU?               *-pci:0          description: PCI bridge          product: Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port          vendor: Intel Corporation          physical id: 1          bus info: pci@0000:00:01.0          version: 09          width: 32 bits          clock: 33MHz          capabilities: pci normal_decode bus_master cap_list          configuration: driver=pcieport          resources: irq:40 ioport:e000(size=4096) memory:f6000000-f70fffff ioport:e0000000(size=301989888)        *-display             description: VGA compatible controller             product: GT218 [GeForce 210]             vendor: NVIDIA Corporation             physical id: 0             bus info: pci@0000:01:00.0             version: a2             width: 64 bits             clock: 33MHz             capabilities: vga_controller bus_master cap_list rom             configuration: driver=nouveau latency=0             resources: irq:16 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f7000000-f707ffff        *-multimedia             description: Audio device             product: High Definition Audio Controller             vendor: NVIDIA Corporation             physical id: 0.1             bus info: pci@0000:01:00.1             version: a1             width: 32 bits             clock: 33MHz             capabilities: bus_master cap_list             configuration: driver=snd_hda_intel latency=0             resources: irq:17 memory:f7080000-f7083fff     *-pci:1          description: PCI bridge          product: Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port          vendor: Intel Corporation          physical id: 1.1          bus info: pci@0000:00:01.1          version: 09          width: 32 bits          clock: 33MHz          capabilities: pci normal_decode bus_master cap_list          configuration: driver=pcieport          resources: irq:41 ioport:d000(size=4096) memory:f4000000-f50fffff ioport:c0000000(size=301989888)        *-display             description: VGA compatible controller             product: GT218 [GeForce 210]             vendor: NVIDIA Corporation             physical id: 0             bus info: pci@0000:02:00.0             version: a2             width: 64 bits             clock: 33MHz             capabilities: vga_controller bus_master cap_list rom             configuration: driver=nouveau latency=0             resources: irq:17 memory:f4000000-f4ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:d000(size=128) memory:f5000000-f507ffff        *-multimedia             description: Audio device             product: High Definition Audio Controller             vendor: NVIDIA Corporation             physical id: 0.1             bus info: pci@0000:02:00.1             version: a1             width: 32 bits             clock: 33MHz             capabilities: bus_master cap_list             configuration: driver=snd_hda_intel latency=0             resources: irq:18 memory:f5080000-f5083fff     *-display          description: Display controller          product: 2nd Generation Core Processor Family Integrated Graphics Controller          vendor: Intel Corporation          physical id: 2          bus info: pci@0000:00:02.0          version: 09          width: 64 bits          clock: 33MHz          capabilities: bus_master cap_list          configuration: driver=i915 latency=0          resources: irq:56 memory:f7400000-f77fffff memory:b0000000-bfffffff ioport:f000(size=64)      ![Mint display properties](http://i.stack.imgur.com/B1A1d.png)


How do I mcast multiple pcap files simultaneously with guaranteed ordering and controllable speed?

We capture many pcap files every day on many different multicast groups. For the purposes of testing & benchmarking, we wish to replay these files in an isolated environment and in a controlled way. These pcap files are captured simultaneously, but on different multicast groups & ports. I want to replay these files back on to the network (possibly with ttl=0 or 1) in the order in which the packets were recorded, and on different (and specifyable) multicast groups. This ordering must be synchronized accross _all_ of the files being played back. For example, suppose we have two capture files, `foo.pcap` and `bar.pcap`. We want to replay `foo.pcap` packets on mcast group 239.255.0.1:30001, and the `bar.pcap` packets should be replayed on 239.255.0.2:30002. `foo.pcap` has packets recorded at time offsets 0, 1, and 5. `bar.pcap` has packets recorded at time offsets (relative to `foo.pcap`) 3, 4, and 5. So what I'm looking for is a way to replay these packets _in an order synchronized accross both`foo.pcap` and `bar.pcap`_. In other words, the first 2 packets from `foo.pcap` should go out on to 239.255.0.1:30001, and then the first two packets from `bar.pcap` should go out on 239.255.0.2:30002, and then the last packet from `foo.pcap` should go out _at the same time_ (or close to it) as the last packet from `bar.pcap`. We also need to be able to tune the rate at which packets are replayed. eg, at recorded speed; 10x recorded speed; 1 GB/sec; etc. How can I accomplish this? I have looked in to tools such as tcpreplay and bittwist, but these tools either won't send on different groups, or won't synchronize the egress order across all the files.


Piped Logs in Apache?

Can someone walk me though how the data flows? Need to understand how I can intercept the log data, make changes to that data in situ, then save to a file.


How to make dot matrix printer print every line of 'tail -f'

I have a dot matrix printer, an Epson LQ-500. It works well with CUPS, and I use it to print listings sometimes, text files, etc. now, I'd like to use it as a logging printer. for that, I need it to print a line, when it is appended to a file or named pipe. I was thinking about using something like this:               tail -n1 -f file | lpr -l -h -P Epson-LQ-500      but it doesn't work, the print job is constantly held. Then I tried this:               tail -n1 -f file | lp -d Epson-LQ-500 -o raw -H immediate      and it doesn't work either, the print job is held indefinitely. When using `tail` without `-f`, or when using `cat` it all works fine, but CUPS just won't let it print line-by-line. So, how do I do that?


Execution of a command in a variable with eval

I am trying to use grep to color some log files . I wrote a script and a part of it looks like this :               #!/bin/bash     com="GREP_COLOR=\"1;36\" egrep --color=always  '[^a-zA-Z0-9]' $log |less -R"     log="/var/log/syslog"     eval $com      The execution was missing $log ! I tried this :               #!/bin/bash     com="`GREP_COLOR=\"1;36\" egrep --color=always  '[^a-zA-Z0-9]' $log |less -R`"     log="/var/log/syslog"     eval $com      Nothing happened ! Could you see any mistake in my code ?


Map IDE drive to /dev/hda

I run a small home server with one IDE drive (for the system) and a few SATA drives (for a software RAID). The IDE drive used to be at `/dev/hda` and the SATA drives at `/dev/sd*`. After a power outage the IDE drive claims to be `/dev/sde` and wreaks havoc with my RAID. How do I get my IDE drive to behave well again?


How to get CPU info on a vmware guest

This is a server that is running on Vmware ESXi:               SERVER:/root # cat /etc/SuSE\-release                              SUSE Linux Enterprise Server 11 (x86_64)     VERSION = 11                    PATCHLEVEL = 2                  SERVER:/root # rpm -qa|grep -i vmware                              vmware-open-vm-tools-common-8.0.3-258828.sles11sp1     vmware-open-vm-tools-nox-8.0.3-258828.sles11sp1     vmware-tools-nox-8.0.3-258828.sles11sp1     vmware-tools-common-8.0.3-258828.sles11sp1     SERVER:/root #       How can I figure out how many physical CPUs are assigned to the vmware guest? I only have access to the guest, not the host


Proprietary ATI driver on linux not working with GLUT

I have a laptop with an ATI Radeon 3450 Graphic card (Lenovo U330). I have Crunchbang Linux (basically Debian Squeeze). After installing the proprietary ATI drivers (ati-driver-installer-11-12-x86.x86_64.run) I can't run a GLUT sample scene. I'm using freeglut3. The program compiles, but when I try to execute it, I get a strange error...               freeglut (./TEST_GLUT):  ERROR:  Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow     X Error of failed request:  BadWindow (invalid Window parameter)       Major opcode of failed request:  4 (X_DestroyWindow)       Resource id in failed request:  0x0       Serial number of failed request:  30       Current serial number in output stream:  33      I tried `glxinfo` and I get this..               name of display: :0.0     Error: couldn't find RGB GLX visual or fbconfig      When I try `glxdemo` the error is:               Error: couldn't get an RGB, Double-buffered visual      Any help?


filter file for specific date

My OS is Solaris 10 (64 bit) and I have many files in a logs directory where we receive 40-50 logs every day. I have last 20 days file present in this directory and I want to move each day file to a particular directory whose name is appended with the date of file. For example               File_name  date     1.txt      31-jul-20122      2.txt      01-Aug-2012      then create a directory for old files belongs to 31-jul-2012 and move to new directory 31-jul RIO_31-Jul-2012 and move them and like wise for 01-aug files. I have written a scripts which is running fine for current date but i don't know how t modify it to accomdate old date. My scripts is as below               NEWDIR=RIO_31-Jul-2012     mkdir /ersdg3/ERS/ERS_INPUT_LOGS/RIO/LOGS/$NEWDIR     cd /var/opt/ers/logs/rio     touch -t `date +%Y%m%d0000` dummy     find . -newer dummy -type f  |     while read fname     do         mv $fname /ersdg3/ERS/ERS_INPUT_LOGS/RIO/LOGS/$NEWDIR     done


file missing from Desktop screen but can be seen using "ls" under the Desktop directory

I downloaded some files onto desktop. After typing `ls` under the `Desktop` directory, I can see these files. However, I cannot see the icons on my desktop corresponding to the files I see with `ls`. I use CentOs.


installing own Git Server, push code after granted permission

I'm trying to install a Git Server in a RedHat 6.5 box   I'm folowing this tutorials : 1,2,3, and to be honest the more I read the more things get obscure. If I'm to create a git user wich will be the owner of the main repos and also in charge of doing the commits, how do I prevent a developer from pushing a bad code (gitolite, is there something neweer?)?   What is the simplest configuration for the git server( I would love gitlab but my boss will not alow that) while alowing the developer push only when the code has been reviewed, and granted permission to do the push. note: All the developers have ssh access to the server. and I have collected theirs ssh.pub keys


npm issues with uglify-js

I'm trying to use node.js to run a project on my Raspberry Pi (following this guide: http://blog.donaldderek.com/2013/06/build-your-own-google-tv-using- raspberrypi-nodejs-and-socket-io/ ) and I've run into a bit of a problem with npm. When I try `npm install` I get a bunch of errors, the first of which being `npm ERR! error installing uglify-js@2.2.5` `npm ls` gives               npm WARN jade * Unmet dependency in /home/pi/app/RaspberryPiTV     npm WARN base64id 0.1.0 Unmet dependency in /home/pi/app/RaspberryPiTV/node_modules/socket.io     npm WARN policyfile 0.0.4 Unmet dependency in /home/pi/app/RaspberryPiTV/node_modules/socket.io     npm WARN socket.io-client 0.9.11 Unmet dependency in /home/pi/app/RaspberryPiTV/node_modules/socket.io     GoogleTV-rPi@1.2.1 /home/pi/app/RaspberryPiTV     âââ¬ express@3.1.1     â âââ buffer-crc32@0.2.1     â âââ commander@0.6.1     â âââ¬ connect@2.7.4     â â âââ buffer-crc32@0.1.1     â â âââ bytes@0.2.0     â â âââ formidable@1.0.11     â â âââ pause@0.0.1     â â âââ qs@0.5.1     â âââ cookie@0.0.5     â âââ cookie-signature@0.0.1     â âââ debug@0.7.2     â âââ fresh@0.1.0     â âââ methods@0.0.1     â âââ mkdirp@0.3.5     â âââ range-parser@0.0.4     â âââ¬ send@0.1.0     â   âââ mime@1.2.6     âââ UNMET DEPENDENCY jade *     âââ omxcontrol@0.0.1     âââ¬ socket.io@0.9.14     â âââ UNMET DEPENDENCY base64id 0.1.0     â âââ UNMET DEPENDENCY policyfile 0.0.4     â âââ UNMET DEPENDENCY socket.io-client 0.9.11     âââ uglify-js@1.3.5  extraneous      And here's my package.json file:               {       "name": "GoogleTV-rPi",       "version": "1.2.1",       "private": false,       "scripts": {         "start": "node app.js"       },       "dependencies": {         "express": "3.1.1",         "jade": "*",         "socket.io": "0.9.14",         "omxcontrol": "*"       },       "devDependencies": {},       "optionalDependencies": {},       "engines": {         "node": "*"       }     }      Node version is v0.10.7 npm version is 1.1.4 Any ideas what I'm doing wrong, or if there are any workarounds?


How given script makes executables in /usr/local/bin/

While doing project , I found a script that is bounced over my head. Can you help me to understand this script . Please explain this script step by step. **SCRIPT**               if ! [ -f /usr/local/bin/XXX -a -f /usr/local/bin/YYY -a -f /usr/local/bin/ZZZ ]     then         if [ "`uname`" = "Linux" ]         then             UUDECODE="uudecode -o /dev/stdout"         else             UUDECODE="uudecode -p"         fi         cat $0 | awk 'printme == "1" {print} /^DATA BEGINS HERE/ {printme = "1"}' | ${UUDECODE} | (cd /usr/local/bin ; sudo tar xzf - --unlink)         sudo chmod AAAA /usr/local/bin/XXX /usr/local/bin/YYY     fi      **My understanding so far**   1. This script checks if XXX , YYY , ZZZ is present in /usr/local/bin , is present or not.   2. If not then it enters in the body of if.   3. If current OS is Linux, then it do    4. But after that I didn't understand. Strange after running this script these three executables are in /usr/local/bin. Explain below script line by line please. **One thing that I mention that, at the end of script, there is some unreadable data is there, starting from "DATA BEGINS HERE". Is this script copies this data to /usr/local/bin ?**


How to identify which application is trying to access the unixbuild server?

The error message I am seeing is:               Failed publickey for raj from 10.*.*.** port 34355 ssh2     Mar 18 05:22:34      unixbuild sshd[16956]: [ID 1000034 auth.info] Failed password for raj from 10.*.*.* port 34355 ssh2


Read only mode in gdb

Is there `gdb` read only mode ? Is there way I can restrict gdb level to read only. So I will not be able to modify current data in gdb. Can gdbserver or any other tool help in this case?


Auditing of gdb commands

Is there a way I can log all gdb commands executed by a user? And do user level logging? Is any other tool like gdbserver can help in this case ?


emacs-nox doesn't load the files I ask it to at command line

I have a few different Ubuntu installs and this is the first time I've experienced this. I have `emacs-nox` installed, because I hate graphical versions of emacs. Normally when I type `emacs test.txt` it will load `test.txt` if it exists and load a blank file if it does not exist. Instead, on this machine, it says:               File exists: /home/myusername/.emacs.d/      And loads a blank file, even if it exists. Then when I try to save it, it makes me specify a full path, like I had not told it where I wanted it to save when I called it from the command line. Any thoughts on what might be causing this? I didn't customize my emacs install in any way, and I've tried removing and re-installing the package to no avail. **Edit to add requested details**               user@comp:~$ ls -l ~/.emacs.d     ls: cannot open directory /home/user/.emacs.d: Permission denied     user@comp:~$ sudo ls -l ~/.emacs.d     total 0


Reduce the over use of files in text processing

Currently, I have a file (`Results.txt`) which has 27k rows. The file content is as below.               45008657        |       A.      |               |       Long    |       0     49210987        |       A.      |               |       Steven  |       3262     49600694        |       A.      |               |       Steven    |       4772     467814  |       A.      |       Rafeal    |       Nadal|       4133     53111047        |       A.      |       Mike    |       Tyson  |       13484      I need to remove the extra white spaces, which am doing like below.               cat Results.txt | tr -d " \t\r" > Results1.txt      The file (`Results1.txt`) is neatly formatted with no extra white spaces.               45008657|A.||Long|0     49210987|A.||Steven|3262     49600694|A.||Steven|4772     467814|A.|Rafeal|Nadal|4133     53111047|A.|Mike|Tyson|13484      Now, I need to convert all the alphabets to lowercase and append columns 2 to 4.               awk 'BEGIN { FS = "|" } ; { print $1"|"tolower($2) tolower($3) tolower($4)"|"$5 }' Results1.txt > Results2.txt      My `Results2.txt` file will look like below.               45008657|a.long|0     49210987|a.steven|3262     49600694|a.steven|4772     467814|a.rafealnadal|4133     53111047|a.miketyson|13484      Is there any way I could accomplish all the above mentioned steps in my initial file (`Results.txt`) itself? I want to reduce over usage of files so that it would be easy for debugging in later stages. **EDIT** : I simply do not want to remove the files once after creating a new file which doesn't seem an elegant solution to me.


In bash, how to convert 8 bytes to an unsigned int (64bit LE)?

How can I 'read/interpret' 8 bytes as an **unsigned** int _(Little Endian)_?   Perhaps there is a Bash-fu magic conversion for this? UPDATE:   It seems that something got cross-wired in the interpretation of my question. Here is a broader example of what I am trying to do. I want to read the first (and last) 64k of a file. Each 8-byte word is to be interpreted as a 64-bit Little-Endian unsigned integer. These **integers** are to be used in a hashing computation which uniquely identifies the file. So there are a lot of calculations to make, ∴ speed is preferred, but not critical. (Why am I doing it? Because `smplayer` hashes the names of its played-media .ini files, and I want to access, and modify these files, so I am mimicking the smplayer's C++ code in Bash.) A solution which caters to accepting a piped input would be optimal, and is probably essential because of the way Bash variables can't handle \x00.. I realize that something like this is probably better suited to the likes of Python, Perl, and C/C++, but I don't know Python and Perl, and although I could do it in C++, it's been years since I've used it and I'm trying to focus on Bash. Short Perl and Python snippets are good. Bash is preferred (but not at the sacrifice of speed).


How to display the server time inside Vim

I want to know how to display the server time inside the Vim editor, if possible.


A Live CD distro for getting data off a NTFS partition without X Windows

The Windows partition on my laptop seems to refuse to boot, and since I lack the original install CD, I was thinking of installing my preferred Linux distro, Arch on it. I want to recover data off the Windows hard drive (and onto my external) first before installing Arch, so I intend to use a Live CD to do so. Both the Windows HD and my external HD are formatted using NTFS. However, the display requires manual configuration in order to use X, which precludes the use of a Live CD that will boot directly into X. What Live CD distros are available that support reading and writing to NTFS (preferably using ntfs-3g) and boot into text mode?


How to specify the media directory in MediaTomb

I have mediatomb in ubuntu. I have started it with "sudo service mediatomb start", and its process shows in ps. But in the config I cant find where to specify the media directory. I searched the web too, with no luck.


Denyhosts: how to always allow certain known users?

With Denyhosts, how can I "whitelist" a known good user by username plus the fact that they have a valid RSA keypair (or in combination with some other known fact about the user such as MAC address)? Some background: On a Ubuntu server, denyhosts is blocking some SSH users (but not all) from logging in. The users are all configured exactly the same -- even using the same Linux user account. Every user has an RSA key pair and logs in via keypair only. No password based SSH logins are allowed. (These are automated SSH logins to an update server.) If I add the problematic users's IP addresses to Denyhost's hosts.allow file (and remove the address from any restricted/deny files), the user can login just like the other users. But none of these users have static IP addresses, so this isn't a solution. Given the fact that these users have a valid RSA key and they have a Linux user account, is there a way I can make denyhosts stop blocking them (without weaking its proper functioning, especially for all the would-be attackers who try to log in with invalid passwords)? Update:   I have `PasswordAuthentication no` and `AllowUsers foo@*` in `/etc/ssh/sshd_config` along with the other relevant settings so that my users can only log in with RSAAuthentication. Of course, I could always stop using Denyhosts. But my question is how can I make Denyhosts work the way I intend so I don't have to stop using it.


Bad utf8 display with tmux

When I press the "é" key multiple times on my keyboard, here is what tmux print (notice the spaces) :               arcanis@~ > é é é é é é é é é é é é é      It also broke emacs when the file contains utf8 characters. My locale is :               arcanis@~ > locale     LANG=en_US.UTF-8     LC_CTYPE="en_US.UTF-8"     LC_NUMERIC="en_US.UTF-8"     LC_TIME="en_US.UTF-8"     LC_COLLATE="en_US.UTF-8"     LC_MONETARY="en_US.UTF-8"     LC_MESSAGES="en_US.UTF-8"     LC_PAPER="en_US.UTF-8"     LC_NAME="en_US.UTF-8"     LC_ADDRESS="en_US.UTF-8"     LC_TELEPHONE="en_US.UTF-8"     LC_MEASUREMENT="en_US.UTF-8"     LC_IDENTIFICATION="en_US.UTF-8"     LC_ALL=      How can I fix this ?


zsh doesn't work correctly in Mint

I successfully installed zsh, change config on my old, but it's not working properly. I don't know how this feature calls. When i write something - `sudo` for instance, and press ↑ (arrow up) it doesn't searching line with this start text in history, it's just return previous line. this is my zshrc file Of course, the history contains expected lines.


Run a dbus program in crontab , how to know about the SESSION id?

I need to run some program within crontab , but how can the program know about dbus session id ? it's only available for programs launched by session managers.


How to clean a home directory to install from scratch a previously installed distro?

I am using linuxmint-10-KDE.   I have several partitions that I will reuse. One of them is `/home`.   This `/home/nomikos` has a lot of gnome related files that I want to delete before install the new linuxmint-12-gnome.   So how could I make some clean in my home directory to achieve the cleanest installation? EDIT1: The main idea of this clean process is don't use old and erroneous configuration files. Maybe deleting some .gnome/ or .gtk directories? EDIT2: Resuming: "I want to keep most of /home intact except for .gnome stuff." (THX @jw013)


How to add a GUI to a minimal install of CentOS?

I did a minimal install of CentOS 6.3 and now want to add a GUI. I tried using `yum` to install a GUI, but it is unable to resolve the CentOS repository server `mirror.centos.org`. I tried to install networking packages but I get `directory not found` for `/etc`. How can I install and enable Gnome Desktop on CentOS?


lsof - age of file

The *nix command `lsof` gives you a list of open files. Is anyone aware of a way that would also list how long a particular file has been open? Either by using `lsof` or any other command. I'm using CentOS 5.3 and unfortunately I can't install additional repositories so I'd have to work from the default CentOS repos. Thanks


Command-line tool to search docx files

Is there a command-line tool to text-search a docx file? I tried `grep`, but it doesn't work with docx even though it works fine with txt and xml files. I could convert the docx to txt first, but I'd prefer a tool that operates directly on docx files. I need the tool to work under Cygwin. OP edit: Later I found out that the easiest way to achieve the grep is actually to convert those docx to txt then grep over them.


Unable to install libhighgui-dev package in 11.10

I the `libhighgui-dev` package has unmet dependencies in 11.10. what should I do? Synaptic says:               libhighgui-dev:      Depends: libgtk2.0-dev but it is not going to be installed      Depends: libjasper-dev but it is not going to be installed      where               libgtk2.0-dev:      Depends: libgtk2.0-0 (=2.24.6-0ubuntu5) but 2.24.6-0ubuntu5linuxmint1 is to be installed      Depends: libpango1.0-dev but it is not going to be installed      Depends: libcairo2-dev but it is not going to be installed      Recommends: debhelper but it is not going to be installed      and so on.. **Update:** /etc/apt/sources.list:               # deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/          # deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted          # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to     # newer versions of the distribution.          ## Major bug fix updates produced after the final release of the     ## distribution.          ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu     ## team. Also, please note that software in universe WILL NOT receive any     ## review or updates from the Ubuntu security team.     # deb http://ir.archive.ubuntu.com/ubuntu/ oneiric universe     # deb-src http://ir.archive.ubuntu.com/ubuntu/ oneiric universe     # deb http://ir.archive.ubuntu.com/ubuntu/ oneiric-updates universe     # deb-src http://ir.archive.ubuntu.com/ubuntu/ oneiric-updates universe          ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu      ## team, and may not be under a free licence. Please satisfy yourself as to      ## your rights to use the software. Also, please note that software in      ## multiverse WILL NOT receive any review or updates from the Ubuntu     ## security team.     # deb http://ir.archive.ubuntu.com/ubuntu/ oneiric multiverse     # deb-src http://ir.archive.ubuntu.com/ubuntu/ oneiric multiverse     # deb http://ir.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse     # deb-src http://ir.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse          ## N.B. software from this repository may not have been tested as     ## extensively as that contained in the main release, although it includes     ## newer versions of some applications which may provide useful features.     ## Also, please note that software in backports WILL NOT receive any review     ## or updates from the Ubuntu security team.               ## Uncomment the following two lines to add software from Canonical's     ## 'partner' repository.     ## This software is not part of Ubuntu, but is offered by Canonical and the     ## respective vendors as a service to Ubuntu users.     deb http://archive.canonical.com/ubuntu oneiric partner     deb-src http://archive.canonical.com/ubuntu oneiric partner          ## This software is not part of Ubuntu, but is offered by third-party     ## developers who want to ship their latest software.     deb http://extras.ubuntu.com/ubuntu oneiric main     deb-src http://extras.ubuntu.com/ubuntu oneiric main     deb http://archive.ubuntu.com/ubuntu oneiric multiverse restricted universe main     deb-src http://archive.ubuntu.com/ubuntu oneiric restricted main multiverse universe #Added by software-properties      **2nd update:**               dpkg -l | grep linuxmint      prints:               ii  gir1.2-gtk-2.0                         2.24.6-0ubuntu5linuxmint1                The GTK+ graphical user interface library -- gir bindings     ii  grub-common                            1.99-12ubuntu5-1linuxmint1               GRand Unified Bootloader (common files)     ii  grub-pc                                1.99-12ubuntu5-1linuxmint1               GRand Unified Bootloader, version 2 (PC/BIOS version)     ii  grub-pc-bin                            1.99-12ubuntu5-1linuxmint1               GRand Unified Bootloader, version 2 (PC/BIOS binaries)     ii  grub2-common                           1.99-12ubuntu5-1linuxmint1               GRand Unified Bootloader (common files for version 2)     ii  libgail-common                         2.24.6-0ubuntu5linuxmint1                GNOME Accessibility Implementation Library -- common modules     ii  libgail18                              2.24.6-0ubuntu5linuxmint1                GNOME Accessibility Implementation Library -- shared libraries     ii  libgtk2.0-0                            2.24.6-0ubuntu5linuxmint1                The GTK+ graphical user interface library     ii  libgtk2.0-bin                          2.24.6-0ubuntu5linuxmint1                The programs for the GTK+ graphical user interface library     ii  libgtk2.0-common                       2.24.6-0ubuntu5linuxmint1                Common files for the GTK+ graphical user interface library     ii  libgtk2.0-dev                          2.24.6-0ubuntu5linuxmint1                Development files for the GTK+ library     ii  libplymouth2                           0.8.2-2ubuntu28-1linuxmint2              graphical boot animation and logger - shared libraries     ii  libyelp0                               3.2.0-0ubuntu1-1linuxmint1               Library for the GNOME help browser     ii  plymouth                               0.8.2-2ubuntu28-1linuxmint2              graphical boot animation and logger - main package     ii  plymouth-label                         0.8.2-2ubuntu28-1linuxmint2              graphical boot animation and logger - label control     ii  plymouth-theme-ubuntu-logo             0.8.2-2ubuntu28-1linuxmint2              graphical boot animation and logger - ubuntu-logo theme     ii  plymouth-theme-ubuntu-text             0.8.2-2ubuntu28-1linuxmint2              graphical boot animation and logger - ubuntu-logo theme     ii  python-software-properties             0.81.13.1-1linuxmint3                    manage the repositories that you install software from     ii  software-properties-common             0.81.13.1-1linuxmint3                    manage the repositories that you install software from (common)     ii  software-properties-gtk                0.81.13.1-1linuxmint3                    manage the repositories that you install software from (gtk)     ii  unity-greeter                          0.1.1-1linuxmint1                        Unity Greeter     ii  usb-creator-common                     0.2.34-1linuxmint1                       create a startup disk using a CD or disc image (common files)     ii  usb-creator-gtk                        0.2.34-1linuxmint1                       create a startup disk using a CD or disc image (for GNOME)     ii  yelp                                   3.2.0-0ubuntu1-1linuxmint1               Help browser for GNOME


How do I make my USB Bluetooth dongle work? (Can't init device hci0: Connection timed out (110))

I have a USB bluetooth dongle:               root@maiko-cce-lin:~# lsusb | grep Bluetooth     Bus 001 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)      It rarely works, and when I do get it to work it stops working when I reboot. It isn't software blocked:               root@maiko-cce-lin:~# rfkill list     0: phy0: Wireless LAN         Soft blocked: no         Hard blocked: no     1: hci0: Bluetooth         Soft blocked: no         Hard blocked: no      My device is recognized by `hciconfig`               root@maiko-cce-lin:~# hciconfig -a     hci0:   Type: BR/EDR  Bus: USB         BD Address: 00:1F:81:00:01:1C  ACL MTU: 1021:4  SCO MTU: 180:1         DOWN          RX bytes:330 acl:0 sco:0 events:8 errors:0         TX bytes:24 acl:0 sco:0 commands:30 errors:22         Features: 0xff 0x3e 0x09 0x76 0x80 0x01 0x00 0x80         Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3          Link policy:          Link mode: SLAVE ACCEPT       but I can't turn on my hci interface:               root@maiko-cce-lin:~# hciconfig hci up     Can't init device hci0: Connection timed out (110)      I don't understand why; the `hcitool` command doesn't show any devices:               root@maiko-cce-lin:~# hcitool dev     Devices:      I've tried to restart my bluetooth service too with this command (and then repeated all the previous commands again) but it didn't work:               root@maiko-cce-lin:~# service bluetooth restart      * Stopping bluetooth                                                    [ OK ]       * Starting bluetooth                                                    [ OK ]      root@maiko-cce-lin:~#       What could be wrong?


Why is mono-complete completely outdated on all versions of Debian?

The current stable Debian 7/Wheezy is running on my server.   With `apt-get` the latest mono version I can get is 2.10 which is three years old.   I looked up the mono-complete package and even on unstable Debian 9/Sid all you get is version 3.2.8, when the latest stable version is 3.6 and 3.8.1 is available. I have two questions:   1. **Is there a way to get an at least somewhat recent version of mono with`apt-get`?** Following a guide to install the latest mono was rather uncomfortable to me and I dread the next time I want to do an update.    2. **Why are only those horribly outdated packages available (even on unstable, future versions of Debian), when there are new, stable versions that are years ahead?**


Script to ssh and run a command doesn't work

Below is the script. I wanted to login several servers and check for the kernel version.               #!/bin/bash     #input server names line by line in server.txt     cat server.txt | while read line     do     sshpass -p password ssh root@$line << EOF     hostname     uname -r     EOF     done      I would expect output which goes like..               server1_hostname     kernel_version     server2_hostname     kernel_version      and so on.. I ran this script with about 80 servers in server.txt And the output i got was like.....               Pseudo-terminal will not be allocated because stdin is not a terminal.      Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.          ========================================================================     ================================ WARNING ===============================     ========================================================================     This system is solely for the use of authorized personnel. Individuals     using this system are subject to having some or all of their activities     monitored and recorded. Anyone using this system expressly consents to     such monitoring and is advised that any unauthorized or improper use of     this system may result in disciplinary action up to and including     termination of employment. Violators may also be subject to civil and/or     criminal penalties.     ========================================================================          Warning: no access to tty (Bad file descriptor).     Thus no job control in this shell.     xxxxdev01     2.6.32-431.23.3.el6.x86_64     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.     Pseudo-terminal will not be allocated because stdin is not a terminal.      Here I got output for only 1 host, which is `xxxxdev01` and that too comes with the ssh banner and other warning. I need output of all other hosts and without ssh banner.. What is going wrong here?


What's the cleanest way to schedule autoexec.bat like command in Linux?

I want to create a small script for my Linux system that would do some simple things on PC boot. The script is most likely going to be Python, but maybe I'll resort to C or shell. The problem is that I'm a Windows developer, and the tutorials on the web look suspicious. Some of them close all file descriptors, some don't, some implement restart, force-restart, some don't. With later ones seemingly being against the spec. Then there is the whole gid thing, that confuses me. So basically, I don't know which script base I can use for a stable daemon, and which ones are works-on-my-machine-so-it's-correct type. Then I stumbled upon http://manpages.ubuntu.com/manpages/hardy/man1/daemon.1.html which seems to be an official process that creates daemons, SAFELY. But then again, it's scripts in init.d that do the start-up, if I understand correctly, not existing processes. Then there is "nice" which should be used for long running tasks, if I got it right, and probably some other gotchas. So I'm lost here. Can anyone give me a few warnings, don'ts and maybe an idea where to look for the information online? P.S. The script I'm going to call will have to call processes, does that mean the daemon will fork for each of them?


What are the settings to correct vsftpd "500 OOPS: cannot change directory" error?

My question is what settings do I need to change and/or commands to run to allow me to log into my vsftpd system? I am getting this error, when I login using ftp instead of sftp:               Name (localhost:dbadmin): dbadmin     331 Please specify the password.     Password:     500 OOPS: cannot change directory:/home/dbadmin     Login failed.     ftp>       This works when logging in using `sftp@`, but my server is behind a firewall, and I need to be able to login using ftp as well as sftp. I have been looking at quite a few posts about the "OOPS" error but so far have had no luck logging in. Here is some information about my system and settings: I am running CentOS 6.4. iptables and ip6tables are stopped and disabled. My home directory is protected 700, and I have tried 750, just to see if that made a difference. It did not. Here are the active lines in `/etc/vsftpd/vsftpd.conf`               anonymous_enable=NO     local_enable=YES     write_enable=YES     local_umask=022     dirmessage_enable=YES     xferlog_enable=YES     connect_from_port_20=YES     xferlog_std_format=YES     listen=YES     pam_service_name=vsftpd     userlist_enable=YES     tcp_wrappers=YES      My login name is not in user_list.


Break a large file into smaller pieces

How do I break a large, **+4GB** file into smaller files of about **500MB** each. And how do I **re-assemble** them again to get the original file?


Procmail: Denying special privileges for "/etc/procmailrcs/default.rc"

I'm trying to setup postfix, dovecot and procmail to work together with virtual users. In the end I want to have virtual users and the possibility to add rules to sort incoming rules. For the last thing, I need procmail (right?). When I send an email to my server, I don't get it in my Maildir, and see this in mail.log:               Jun 17 21:01:03 cs postfix/smtpd[24811]: connect from dub0-omc2-s13.dub0.hotmail.com[157.55.1.152]     Jun 17 21:01:03 cs postfix/smtpd[24811]: D8C9F44D88: client=dub0-omc2-s13.dub0.hotmail.com[157.55.1.152]     Jun 17 21:01:03 cs postfix/cleanup[24816]: D8C9F44D88: message-id=<DUB115-W85D8D79486AEC1D4346693C0830@phx.gbl>     Jun 17 21:01:04 cs postfix/qmgr[24806]: D8C9F44D88: from=<my-test-email>, size=1617, nrcpt=1 (queue active)     Jun 17 21:01:04 cs procmail[24818]: Denying special privileges for "/etc/procmailrcs/default.rc"     Jun 17 21:01:04 cs postfix/smtpd[24811]: disconnect from dub0-omc2-s13.dub0.hotmail.com[157.55.1.152]     Jun 17 21:01:04 cs postfix/pipe[24817]: D8C9F44D88: to=<my-virtual-email>, relay=virtualprocmail, delay=0.18, delays=0.15/0/0/0.02, dsn=2.0.0, status=sent (delivered via virtualprocmail service)     Jun 17 21:01:04 cs postfix/qmgr[24806]: D8C9F44D88: removed      How can I fix the line "Denying special privileges" procmail spits out?               camilstaps@cs:/# ls -al /etc/procmailrcs     total 12     drwxr-xr-x  2 root  vmail   4096 Jun 17 19:48 .     drwxr-xr-x 97 root  root    4096 Jun 17 19:47 ..     -rw-------  1 vmail postfix   44 Jun 17 19:48 default.rc      Here's my `/etc/postfix/master.cf`:               smtp      inet  n       -       -       -       -       smtpd     submission inet  n       -       n       -       -       smtpd     pickup    unix  n       -       -       60      1       pickup     cleanup   unix  n       -       -       -       0       cleanup     qmgr      unix  n       -       n       300     1       qmgr     tlsmgr    unix  -       -       -       1000?   1       tlsmgr     rewrite   unix  -       -       -       -       -       trivial-rewrite     bounce    unix  -       -       -       -       0       bounce     defer     unix  -       -       -       -       0       bounce     trace     unix  -       -       -       -       0       bounce     verify    unix  -       -       -       -       1       verify     flush     unix  n       -       -       1000?   0       flush     proxymap  unix  -       -       n       -       -       proxymap     proxywrite unix -       -       n       -       1       proxymap     smtp      unix  -       -       -       -       -       smtp     relay     unix  -       -       -       -       -       smtp     showq     unix  n       -       -       -       -       showq     error     unix  -       -       -       -       -       error     retry     unix  -       -       -       -       -       error     discard   unix  -       -       -       -       -       discard     local     unix  -       n       n       -       -       local     virtual   unix  -       n       n       -       -       virtual     lmtp      unix  -       -       -       -       -       lmtp     anvil     unix  -       -       -       -       1       anvil     scache    unix  -       -       -       -       1       scache     maildrop  unix  -       n       n       -       -       pipe       flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}     uucp      unix  -       n       n       -       -       pipe       flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)     ifmail    unix  -       n       n       -       -       pipe       flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)     bsmtp     unix  -       n       n       -       -       pipe       flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient     scalemail-backend unix  -       n       n       -       2       pipe       flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}     virtualprocmail unix - n n - - pipe flags=DRXhuq user=vmail       argv=/usr/bin/procmail -m E_SENDER=$sender E_RECIPIENT=$recipient ER_USER=$user ER_DOMAIN=$domain ER_DETAIL=$extension NEXTHOP=$nexthop /etc/procmailrcs/default.rc     mailman   unix  -       n       n       -       -       pipe       flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py       ${nexthop} ${user}      I'm on Ubuntu Server 13.04.


Parse a dragged path from a remote machine

I am writing an application that needs to be able to parse a path that is dragged from a remote server onto the command line. However, when I drag a path from a remote machine to the terminal I get something that looks like the following: `/home/user/.gvfs/sftp for Name on server-alias/the/full/path/is/here.file`. I would like just `/the/full/path/is/here.file` to be parsed. I was wondering if there's a setting I can tweak to prevent this extra path prefix (preferable) or if there's some built in functionality somewhere in linux to do this. I can of course use regexs to parse this, but I would like to avoid that if possible. I'm on ubuntu 10.04 LTS.


Mounting Windows share on startup without storing password in plain text

I have the following in my `/etc/fstab` on a Red Hat 5 system:               //share/folder /mnt/folder cifs username=<my username>,password=<my password>,ro,soft,nounix      Can I replace this with something that will still mount `//share/folder` on my Linux box on startup without storing my plain text password in fstab?


Tab completion when `patch` asks for filename

When the patch command doesn't find the file to patch, it asks for a filename. Is there any way to get this to use tab complete?


Screen doesn't always shut off on its own

It seems like when I have certain web pages focused, my screensaver will kick in, but the screen won't turn itself off. Does anyone have any ideas why this might be? Is there a way to disable whatever is keeping DPMS from kicking in?


How to reboot/shut down gracefully in Awesome WM?

My current configuration uses               kdesu shutdown -[rh] now      to reboot/shut down. The entire shutdown procedure takes about 1-2 seconds. But after every boot Firefox says it was shut down prematurely, very likely indicating that it was brutally murdered rather than laid to rest. How do I configure a "normal" WM shutdown procedure (something like `kill -SIGTERM && sleep 10 && kill -SIGKILL`, but preferably using **an existing tool** ) in Awesome WM? Related question for GDM.