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


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. :)


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?


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?


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.


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


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?


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


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?


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.


Querying Microsoft SQL SERVER 2008 from Linux

Basically I want to write all the lines of a text file present in linux machine to Microsoft SQL server database. I need a shell script to connect from my Linux machine to a remote Microsoft SQL Server (2008) database and do insertion. How do I do this?


couldn't ping router, although it offered an IP-address

I've installed Linux Mint 16 on my HP envy 6. It activated automatically the proprietary driver, which recognized the WiFi interface and called it eth1.   I could connect to my router, I get the IP address 192.168.0.100, but I'm still not able to get an internet connection, or ping the routers IP. ### Questions   * What could be a solution for that problem?   * Is the power management of the interface a problem? Output of `traceroute` and `ip route show`:               $ traceroute 8.8.8.8       traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets       1 * * *       2 * * *       3 * * *       4 * * *       5 * * *       6 * 72.14.238.153 (72.14.238.153) 399.087 ms *       7 * * *       8 * * *       9 * * *       10 * * *       11 * * * 12 8.8.8.8 (8.8.8.8) 261.041 ms 260.956 ms *           $ ip route show       default via 192.168.0.1 dev eth0 proto static       192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.112 metric 1       192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.100 metric 9


Users home path in a bash script

I'm writing a bash-script that will be run as a cron job everyday. Very basic, I was wanting to change the wallpaper daily. I have mint-14 with mate. The thing I'm getting caught up on right now is, I want to have the user's home path detected automatically. If I don't do this I would have to change it for all other users that run the script. So far I have tried:               homedir=${HOME}/Pictures/daily          mateconftool-2 -t string -s /desktop/mate/background/picture_filename $homedir;      This doesn't work but,               echo $homedir      Prints out the correct path? EDIT: When I tried `~user` like @vonbrand was suggesting there is no difference.               mateconftool-2 -t string -s /desktop/mate/background/picture_filename ~user/Pictures/daily;


3G-modem for Linux supporting USB 3.0

I've laptop with three USB3.0-ports.OS is Linux Mint 13 (yeah, it's Ubuntu- based). My modem **Huawei E1552/E1800** could work in two modes: 1) as flash with drivers 2) modem The device is operating as modem and seen in _Network Manager_ if only it's attached before OS loading. If after, it's detected as flash. The all mine attempts and games with _usb_modeswitch_ are in vain and wasn't came to good. So I would like to ask if there are such modems' model (it's not important what the manufucturer is): 1) that has single operating mode (modem) or 2) if it supports 2 modes, I'll be able to swich device into the mode without much hassle.


groupadd failure while writing changes to /etc/group

I have been following this guide on installing debian-kit on my Sony Xperia Tablet Z and the installation goes fine until I try to `apt-get install andromize` which fails with the error `groupadd: failure while writing changes to /etc/group`. I also get the same message if I try to add a user with `adduser`. I have partitioned my external SD card to 10gb FAT32 and 20GB ext2 and used the `mk-debian -i /dev/block/vold/179:37` which is the correct partition. If I look in `/etc/` I can see that there are additional files called `group-` and `passwd-` as well as `group` and `passwd` but I have no idea if this is relevant. I'm logged in as root and the partition is loaded readwrite because all other apt-get installs work, it just fails on any that modify the users / groups. `ls -l /etc/group` returns the following...               -rw-r--r--. 1 root root 476 Jul17 19:13 /etc/group


cumulative totals with shifted column

Apologies in advance since I am sure this is an easy problem. Nevertheless, here goes.               cat blah.txt     aa+2     bb+4     cc+10     dd+31      I would like to process blah.txt to produce the folowing:               aa+0     bb+2     cc+6     dd+16      The notion here is that the first column might be a list of songs, and the second their start times. My hunch was to do this using awk. I thought of two arrays with numeric indices storing $1 and the running total of $2. My idea was to shift the numeric index for the running totals by 1.               tail -r blah.txt |      awk -F "+" '{ for(i=0;i<=NR;i++) arr[i+1]+=$2; farr[i]=$1 } END      { for(i=NR+1;i>1;i--) {if (i==NR) {print farr[NR] FS 0 }      else { print farr[i] FS arr[i]}}}'      This isn't concise, and what's more doesn't work. I am befuddled by the failure of the array making above all. Anyway, 'nuf said, could some kind person please put me out of my misery ? Tom


What's the best way to list size of / in Terminal?

I want to see how much total space `/` is taking, but I don't know how to do that. I can use `ls -hal` and add up the subtotals, or I can use `fdisk` to tell me the size of that partition, but is there a better way?


Missing/broken dependancies on OpenSUSE, normal?

Re-installing our little LAMP server at work, a bit tired of Ubuntu server so I had a look around and decided on OpenSUSE, nicely supported, well maintained blah blah however pretty much every package I try to install seems to have missing dependencies. I'm trying to get apache2 and it's various modules like PHP and docs etc... installed but I'm constantly hitting missing dependencies using both YaST and zypper. I am well aware of how to resolve them but in truth I shouldn't have to and I just can't be bothered. Perhaps I'm a terrible human being but is this a result of bad install/config somewhere or is this normal for OpenSUSE? In terms of repos _zypper lr -d_ tells me that all the standard repos (non- oss, repo-oss, update, update-non-oss) are all enabled, only the source and debug repos are disabled. Never used OpenSuse before so I am likely missing something here, any pointers on getting repos that actually work/have better dependencies? ------------------------ Edit 1 --------------------------------               Loading repository data...     Reading installed packages...     Resolving package dependencies...          Problem: apache2-mod_php5-5.4.20-12.1.x86_64 requires php5 = 5.4.20, but this requirement cannot be provided       uninstallable providers: php5-5.4.20-1.2.x86_64[openSUSE-13.1-1.10]                        php5-5.4.20-1.2.i586[repo-oss]                        php5-5.4.20-1.2.x86_64[repo-oss]                        php5-5.4.20-12.1.i586[repo-update]                        php5-5.4.20-4.1.i586[repo-update]                        php5-5.4.20-8.2.i586[repo-update]                        php5-5.4.20-12.1.x86_64[repo-update]                        php5-5.4.20-4.1.x86_64[repo-update]                        php5-5.4.20-8.2.x86_64[repo-update]      Solution 1: deinstallation of patterns-openSUSE-minimal_base-conflicts-13.1-13.6.1.x86_64      Solution 2: do not install apache2-mod_php5-5.4.20-12.1.x86_64      Solution 3: do not install apache2-mod_php5-5.4.20-12.1.x86_64      Solution 4: break apache2-mod_php5-5.4.20-12.1.x86_64 by ignoring some of its dependencies          Choose from above solutions by number or cancel [1/2/3/4/c] (c):       Repeat for _zypper in php5_ except it needs _smtp_daemon_ which then gives a conflict with an existing mail daemon installed with the base OS. Can't remember the last time I had to deal with dependency issues! * * *


expr command used to work and stopped

I am on SunOS machine trying to get the date string of the past minute, yesterday I used this command I found on the internet               expr `date +%Y%m%d%k%M` - 1      which is worked just fine and I saw the output and this is the output I got from my session that is still opened:               bash-3.00$ expr `date +%Y%m%d%k%M` - 1     201303131641      Now I am trying to run this command on the same session and I got this output:               bash-3.00$ expr `date +%Y%m%d%k%M` - 1     expr: syntax error      My machine is running this OS:               bash-3.00$ uname -a     SunOS mySunOS 5.10 Generic_144488-11 sun4v sparc SUNW,Netra-T2000      I think there is some environmental variable or something that have been changed, can anyone help me out with this?


UEFI and Puppy Linux

I recently installed Puppy Linux on a USB stick using the Universal USB Installer, but I have not being able to boot from it. My notebook came with Windows 8 and had the secure boot activated at UEFI. I disabled the secure boot option, but I am still not able to boot from the USB stick (it is not being shown in the list of bootable devices). Interestingly, a live USB with certain Linux distros are recognized on my computer, such as Linux Mint Cinnamon and Ubuntu. But others, such as Puppy, Zorin, Elementary OS and Mint MATE are not working. Basically all advice I found online is to disable the secure boot option, which I already did. Is there anything else I can do in order to boot from my usb stick?


libusb_init() returns -99

I have successfully built both `libfreenect` (driver for Xbox Kinect) and `libusb` (which is a dependency). However, if I try to open the Kinect using the `freenect_init(...)` function, it returns `-99`. I tracked down the error to the funtion `libusb_init(...)` which is returning this error, `LIBUSB_ERROR_OTHER`. As I use a minified custom kernel configuration (version: 2.6.37) I think I missed to enable an important config option. Kernel config is available on pastebin.com. The Kinect gets successfully recognized (reported in dmesg including correct product/vendor information). Does anyone has an idea how to get rid of this error? **UPDATE:** After setting the `LIBUSB_DEBUG` environment variable to `3` I got the following message: `[op_init] could not find usbfs`


How do I get this Bash-script to work?

> **Possible Duplicate:**   >  How to name a file in the deepest level of a directory tree How do I get this script to work? The goal is to find the directory at the deepest level in the directory tree and print the name of a file, a random file, maybe the first.               find -type d | declare COUNT=-1; declare P=""; while read LINE ;      do        echo $LINE        declare C        C=$(echo $LINE | cut -c3- | sed "s/\//\n\//g" | grep '/' -c)        echo $C        if [ $COUNT -gt $C ]        then            let COUNT=$C            let P=$LINE            echo "Done"        fi     done      Better solutions are also welcome but they should be one-liners.


Convert newline-delimited list with spaces into arguments

I'm trying to write a script that I can run from the context menu in Caja (a clone of Nautilus). Its purpose is to pass the files that are selected in the file manager to a given program (for example, 7zip). A list of selected files is provided in the system variable `$CAJA_SCRIPT_SELECTED_FILE_PATHS`, separated by newlines. I want to pass each line of this variable to the program as an argument, even if they contain spaces. After failing at quote-wrapping, I tried the following line:               echo "$CAJA_SCRIPT_SELECTED_FILE_PATHS" | xargs -d "\n" 7z a archive.7z      While it worked for 7zip, I changed the script so that the arguments are passed to a program I wrote and something went wrong, so I want a way to execute this in a terminal to get output from the program. I was using `xterm -hold -e`, but I haven't been able to make a command with a pipe in it execute this way because the shell will try to pipe output from xterm. I also tried shell redirection (by adding `> log.txt` to the end of the line), and it made a file for 7zip's usual output but a blank file for my program, which outputs messages just fine in the terminal. Finally, I want a POSIX-compliant (or otherwise standard) solution so that it will work the same way on BSD and Linux. EDIT: To clarify, I want to change some thing like this:               /path/with/a space     /another/path      Into what I would hypothetically get from something like this:               char *argv[]={"/path/with/a space", "/another/path"};      EDIT2: That's how it should be in the program recieving the arguments, not the shell!


Replacing Multiple Debian Packages from Compiled Source

I've had to download and install a version of a library from its source code repository. The problem is is that other packages from the Kubuntu package manager require this library to be installed. Right now I'm working with ffmpeg, but I've had to do it before (e.g. OpenCV) and I'm looking into the best way of doing this for the future... So what I'm trying to do is create a debian package that I can install with dpkg using checkinstall. I've since decompressed the deb file to modify it trying to get it working correctly The problem is, ffmpeg is split into multiple packages in the package manager and I don't want to have to write the 5/6 packages to replace each and every one if I don't have to. I have made sure it is properly compiled with everything that is required for all these packages. I've been trying to use the "Requires" and "Replaces" but it just doesn't seem to work correctly. When I try to install VLC afterwards, it asks to install all the ones from the package manager. I've also made sure the version number is later than the ones in the package manager. ![VLC Pre-Requisites](http://i.stack.imgur.com/yd5CL.png) Here's what's written in my deb control file. As far as I can see, this is all recognised in the muon package manager.               Package: ffmpeg     Priority: extra     Section: checkinstall     Installed-Size: 172216     Maintainer: root@skund     Architecture: amd64     Version: 8:1.2.1-git-2     Provides: ffmpeg,libav-tools,libpostproc52,libavdevice53,libavutil51,libavformat53,libavcodec53,libswscale2     Replaces: ffmpeg,libav-tools,libpostproc52,libavdevice53,libavutil51,libavformat53,libavcodec53,libswscale2     Description: Package created with checkinstall 1.6.2      And here it is installed in the package manager: ![ffmpeg package manager](http://i.stack.imgur.com/M6vQ5.png) ![ffmpeg package manager 2](http://i.stack.imgur.com/YW9Wn.png) Does anyone have any ideas on getting this working?


How to force a file location in equivs-build

I have some files that I would like to install using `.deb` files created using `equivs-build`. What I cannot understand is the syntax required in the `.equivs` file. This is my file layout:               myapp.equivs     myapp/       files/         script.sh      What I want to tell `equivs-build` is to install the `script.sh` file at `/usr/share/myapp/script.sh`. I did some tests, but none of the following syntaxes for `Files` seems to work as intended. **Test 1**               Files: ./myapp/files/script.sh /usr/share/myapp/script.sh      Result: file installed in `/usr/share/myapp/script.sh/myapp/files/script.sh`. **Test 2**               Files: ./demo/files/script.sh /usr/share/myapp/      Result: file installed in `/usr/share/myapp/myapp/files/script.sh`. **Test 3**               Files: ./demo/files/script.sh /usr/share/myapp      Result: file installed in `/usr/share/myapp/myapp/files/script.sh`. How can I instruct equivs-build to install a file at an arbitrary location?


Configuring Pulse Audio for easy use with multiple USB DACs?

I have 3 Behringer UCA-202 DACs going into a mixer. I want something similar to this setup:   1. 1 DAC: Misc Audio to be mixed: output to go to the mixer.   2. 1 DAC: Audio In: Record/Broadcast: input to come from the mixer.   3. 1 DAC: Input to come from `AUX send 1` on the mixer, and Output to go to the mixer on another channel. This will be used for Skype. I have one laptop, I want it to handle all of this. I can get all of this working properly however it takes _way_ to much time for my liking. Is there anyway I can ease this process. All of these DAC's have the same USB ID, 08bb:2902. They're all plugged into the same USB hub though (which I keep on my desk). Further, I'll plug that USB hub into the same input on my computer. This yields static `device.bus_paths` in Pulse,               "pci-0000:00:1d.7-usb-0:2.1:1.0"     "pci-0000:00:1d.7-usb-0:2.2:1.0"     "pci-0000:00:1d.7-usb-0:2.3:1.0"      Can I always associate a sink with a specific bus_path? Every time I plug or unplug the USB hub I get new sink addresses? This would permit me to script the rest of what I need to do with easy `PULSE_SINK=`, commands.


How to repair Ubuntu after upgrade? (from recovery mode)

I have gone through countless threads on the following error and none have helped.                Your screen, graphics card, and input device settings could not be detected      correctly. You will need to configure these yourself.      I have tried countless things but nothing works. This pops up every time I reboot. The computer was running fine then all of a sudden it crashed and I got this error. I can enter recovery mode, mount the system read/write, go to the root shell, connect to the internet and run apt-get. As said above, I have **already tried lots of solution from other forums** , what I decided now is to reinstall all packages related to this. How can I make a list of thing to reinstall with apt-get? Like everything related to the "screen, graphics card, and input device settings" part. Or could I even re-install completely all system files (preserving my programs) from this command line? As alternative, I'd install a different Ubuntu version (also from recovery mode). I have space in the HDD.


Arch time zone: Wrong time due to local-time hardware clock

My hardware clock is set to local time (GMT +2) and my fresh Arch installation apparently thinks that it is not, so it adds 3 hours to it. I've fiddled with `hwclock` and `timedatectl` without hope. I'm hesitant to touch time settings in BIOS. How can I fix this? Below is the output from `timedatectl`:                     Local time: Sun 2013-06-23 06:44:12 EEST       Universal time: Sun 2013-06-23 03:44:12 UTC             Timezone: Europe/Istanbul (EEST, +0300)          NTP enabled: n/a     NTP synchronized: no      RTC in local TZ: yes           DST active: yes      Last DST change: DST began at                       Sun 2013-03-31 02:59:59 EET                       Sun 2013-03-31 04:00:00 EEST      Next DST change: DST ends (the clock jumps one hour backwards) at                       Sun 2013-10-27 03:59:59 EEST                       Sun 2013-10-27 03:00:00 EET          Warning: The RTC is configured to maintain time in the local time zone. This              mode is not fully supported and will create various problems with time              zone changes and daylight saving adjustments. If at all possible use              RTC in UTC, by calling 'timedatectl set-local-rtc 0'.


How to redirect output of a running program to /dev/null

I know that in order to suppress the output of a program I can redirect it to `/dev/null`, for example to hide all error and warning messages from chromium I can start the program like this               chromium-browser 2> /dev/null &      However, if I happen to forget about the error messages and type               chromium-browser &      (which is quite annoying when they appear in the middle of a command) I don't know what to do except for stopping the application and starting it again properly. Can I somehow redirect error output without restarting the application?


bash script - need date command variable

I am trying to create a script that will parse the `/var/log/secure` file for failed login attempts for today's date only and redirect those attempts into a separate file so I can view those attempts only in that file. I am having a problem with getting the script to work with the date command output. This is my script:               #!/bin/bash     mydate=$(date '+%D')     mytime=$(date '+%H:%M')     monthday=$(date '+%b %d)     error=$(grep Failed /var/log/secure | grep $monthday >> ~/logs/failed.log      With this code, it will not work. However, if I hard code the date in like this:               error=$(grep Failed /var/log/secure | grep 'Feb 28' >> ~/logs/failed.log      it works. How can I make it so that the `$monthday` is the thing grep'd?


About Linux Memory Compaction (CONFIG_COMPACTION)

I have a question regarding memory compaction on Linux. Generally compaction is triggered when system cannot satisfy a large contiguous memory allocation. This causes the compaction to run on all zones to defrag the memory. What if I force compaction to run on every memory allocation and compact one pageblock of a zone? Will this be a overhead?


How to reinstall apt on Debian?

I accidently removed apt-get from my Debian system by issuing:               dpkg --force-depends --purge apt      How can I reinstall it?


Detecting headphone connection/disconnection in Linux

I am trying to detect a signal when a headphone is connected or disconnected from the system. What is the best way to do this? If there is a special board with drivers, that will be my preferred way.


Is there any option with 'ls' command that I see only the directories?

Sometimes, I need to check only the directories not files. Is there any option with the command ls? Or is there any utility for doing that? **EDIT** : I'm using Mac OS X, and `ls -d` gives me `.` even though I have directories.


How to test what shell I am using in a terminal?

How to check what shell I am using in a terminal? What is the shell I am using in MacOS?


Determine current shell name

> **Possible Duplicate:**   >  How to test what shell I am using in a terminal? How do I determine the current shell path or shell name? I only really need to distinguish `sh` and `bash`, however a portable solution would be nice.


how to detect command interpreter from within a shell script

> **Possible Duplicate:**   >  How to test what shell I am using in a terminal? For example the following script               #!/bin/bash          issue_interpreter_name      would issue:               bash


On some the shell can be read on in the command prompt, other can be seen when `help` is ran. But this are not covered by all the shells. Is there a general command to see what shell is running?


How to interpret this top command

top - 04:36:16 up 32 days,  2:33,  1 user,  load average: 251.72, 250.54, 231.19     Tasks: 785 total, 249 running, 522 sleeping,   2 stopped,  12 zombie     Cpu(s):  8.9%us, 90.5%sy,  0.4%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.2%si,  0.0%st     Mem:  16313868k total,  7021336k used,  9292532k free,   432196k buffers     Swap:  4194296k total,   295012k used,  3899284k free,   514320k cached            PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND     18873 nudenude  20   0 97.8m  26m 4944 R  4.0  0.2   0:09.35 php     18140 nudenude  20   0 93984  22m 4940 R  3.7  0.1   0:11.04 php     18178 nudenude  20   0 99.6m  26m 4912 R  3.7  0.2   0:11.11 php     18537 nudenude  20   0  100m  26m 4936 R  3.7  0.2   0:10.31 php     18726 nudenude  20   0 98.3m  25m 4868 R  3.7  0.2   0:09.82 php     18977 nudenude  20   0  101m  25m 4952 R  3.7  0.2   0:09.14 php     19049 nudenude  20   0 99.5m  28m 4920 R  3.7  0.2   0:08.87 php     19852 nudenude  20   0  100m  30m 4912 R  3.7  0.2   0:07.08 php     20504 nudenude  20   0 93024  18m 4880 R  3.7  0.1   0:04.86 php     20562 nudenude  20   0  100m  31m 4940 R  3.7  0.2   0:04.73 php     20681 nudenude  20   0 90912  14m 4940 R  3.7  0.1   0:04.40 php     20685 nudenude  20   0 90656  15m 4928 R  3.7  0.1   0:04.38 php      Some things are strange. Why system utilize tons of CPU for %sy? It seems to me the tasks use a lot of virtual memory even though there are still plenty of memory left. So I wonder why? Also what does 15m, 14m means in res and VIRT. Nothing is shown in man top. I checked http://unixhelp.ed.ac.uk/CGI/man-cgi?top and non of it is shown. Note: the load used to be 50%. Moreover, column VIRT is usually 0. However, once in a while it goes to this stuck mode where 90% of CPU is used by kernel. Don't know what the hell is that kernel doing. very little CPU is used by users. No wonder load is extremely high. But what? What is the kernel doing>


setxkbmap configuration

I'm using Lubuntu 13.04 without executing `lxpanel` (I killed it on purpose because I don't want to use it for the project I'm working on now). The problem is that, without `lxpanel` executing, the run prompt (`Alt`+`F2`) doesn't work, and I need a way to execute programs hitting `Alt`+`F2` without `lxpanel` being executed. Diggin' on the internet I found that you can configure your keyboard with _setxkbmap_ , for example with: *setxkbmap -option terminate:ctrl_alt_bksp*, you terminate the session. I'm trying to make something like this: `setxkbmap -option execute:alt_f2`, but it doesn't work. Does anybody know the list of available options for the `-option` attribute and if the option "execute" is available? Do you know if there's a way to do this?


Locate a directory from a relative path in ps output

When I executed the command to give the pid of my processes running, it gave me like this -               user@machineA:/$ ps -eo pid,command | grep exhibitor | grep java | grep -v grep      1615 java -jar ./exhibitor-1.2.3/lib/exhibitor-1.2.3-jar-with-dependencies.jar --fsconfigdir /opt/exhibitor/conf --hostname machineA      Now I saw this path in the above output -               ./exhibitor-1.2.3/lib/exhibitor-1.2.3-jar-with-dependencies.jar      Now I am trying to understand where this folder is `./exhibitor-1.2.3/` as I am not able to find out. Does this folder on the same ubuntu machine? Is there any way to find out that directory where it is? I am running Ubuntu 12.04


How to make postfix create maildir?

How do you make postfix create maildir folders automatically for all users? I have these two lines in postfix main.cf, which supposed do create maildir folder after the first mail but it is not working. What am I missing?               home_mailbox = Maildir      mailbox_command =       At the moment mail looks to sent, but nowhere to be found.


how to by nscd for DNS

I am using NSCD for DNS now , but I sometimes see NSCD dying by itself . so is there any way to bypass the NSCD for DNS and what will be the disadvantage ?


Multiply certain numbers in a text -file by certain constant

I want an alternative solution to this jQuery hack, tasting a bit reinventing the wheel -- look I am sure I could do this with some one-liner using basic *ix tools. Look much easier and straightforward way is to find all numbers appended with px, some `\d+px` -match and then multiply it with a constant but `\d` will fail -- match only if not prepended by a digit `[^\d]\d+px` and then do the replacement/multiplication. The simplest and the most elegant solution wins, how can you do the match- multiply-replace? _I use Vim but open to new ideas._


How can I tell GRUB I want to reboot into Windows—before I reboot?

I have a dual boot Linux/windows system set up, and frequently switch from one to the other. I was thinking if I could add a menu item in one of the menus to reboot directly into windows, without stopping at the GRUB prompt. I saw this question on a forum, that's exactly what I want but it's dealing with lilo, which is not my case. I thought of a solution that would modify the default entry in the GRUB menu and then reboot, but there are some drawbacks, and I was wondering if there was a cleaner alternative. (Also, I would be interested in a solution to boot from Windows directly into Linux, but that might be harder, and does not belong here. Anyway, as long as I have it in one way, the other way could be set up as the default. **UPDATE** It seems someone asked a similar question, and if those are the suggested answers, I might as well edit `/boot/grub/grubenv` as `grub-reboot` and `grub-set-default` and `grub-editenv` do. ) Thanks in advance for any tips. **UPDATE** : This is my GRUB version: `(GRUB) 1.99-12ubuntu5-1linuxmint1` I tried running `grubonce`, the command is not found. And searching for it in the repositories gives me nothing. I'm on Linux Mint, so that might be it... Seeing `man grub-reboot`, it seems like it does what I want, as `grubonce` does. It is also available everywhere (at least it is for me, I think it is part of the grub package). I saw two related commands: `grub-editenv` and `grub-set-default`. I found out that after running `sudo grub-set-default 4`, when running `grub- editenv list` you get something similar to:               saved_entry=4      And when running `grub-reboot 4`, you get something like:               prev_saved_entry=0     saved_entry=4      Which means both do the same thing (one is temporary one is not). Surprisingly, when I tried:               sudo grub-reboot 4     sudo reboot now      It did not work, as if I hadn't done anything, it just showed me the menu as usual, and selected the first entry, saying it will boot this entry in 10s. I tried it again, I thought I might have written the wrong entry (it is zero- based, right?). That time, it just hanged at the menu screen, and I had to hard-reset the PC to be able to boot. If anyone can try this out, just to see if it's just me, I'd appreciate it. (mint has been giving me a hard time, and that would be a good occasion to change :P). Reading the code in `/boot/grub/grub.cfg`, seems like this is the way to go, but from my observations, it's just ignoring these settings...


qemu - two clients (tap0 & tap1) via br0 can't ping eachother but server pings ok

I've got:   * A host system running Ubuntu with KVM (functional)   * Two clients, one Ubuntu and one Windows 7, nothing fancy. I've also setup (see below) a bridge via br0 for the clients:   * br0: 192.168.2.1 (with DHCP running)   * eth0 -> br0   * tap0 -> br0   * tap1 -> br0 br0 can give IP to the clients, they get:   * Windows 7: 192.168.2.29   * Ubuntu: 192.168.2.30 ## Here's my problem:   * Windows ICMP -> br0: Works   * Ubuntu ICMP -> br0: Works   * Ubuntu ICMP -> Windows: Fails http://www.youtube.com/watch?v=5C1VvJezouI    * * * I played around with some NAT (which i'm getting the hang of via iptables) and that works like a charm! Without any issues both the clients can ping www.google.se and fetch data etc, but not between each other?! * * *    Here's the commands i'm running from the beginning to end:               tc qdisc del dev wlan0 root 2>/dev/null     tc qdisc del dev wlan0 ingress 2>/dev/null     iptables -P INPUT ACCEPT     iptables -F INPUT     iptables -P OUTPUT ACCEPT     iptables -F OUTPUT     iptables -P FORWARD DROP     iptables -F FORWARD     iptables -t nat -F PREROUTING     iptables -t nat -F OUTPUT     iptables -t nat -F POSTROUTING     iptables -t nat -F     iptables -t mangle -F     ip route flush table main     iptables -t mangle -A PREROUTING -p tcp -j CONNMARK --restore-mark          modprobe ifb numifbs=1     modprobe ip_conntrack     modprobe xt_mark     modprobe iptable_nat          echo "1" > /proc/sys/net/ipv4/ip_forward     echo "0" > /proc/sys/net/bridge/bridge-nf-call-arptables     echo "0" > /proc/sys/net/bridge/bridge-nf-call-iptables     echo "0" > /proc/sys/net/bridge/bridge-nf-call-ip6tables          ifconfig br0 192.168.2.1 netmask 255.255.255.0     route add -net 192.168.2.0 netmask 255.255.255.0 dev br0     ip route add default via 192.168.2.1 dev wlan0          kpartx -av win7.img     kpartx -av ubuntu.img          tunctl -u `whoami` -t tap0     ip link set tap0 up     brctl addif br0 tap0          tunctl -u `whoami` -t tap1     ip link set tap1 up     brctl addif br0 tap1          kvm -no-reboot -m 1300 -hda /dev/mapper/loop0p1 -boot order=c -net nic,macaddr="DE:AD:BE:EF:EC:B6" -net tap,ifname=tap0,script=/etc/qemu-dummy          kvm -no-reboot -m 1300 -hda /dev/mapper/loop1p1 -boot order=c -net nic,macaddr="DE:AD:BE:EF:EC:B7" -net tap,ifname=tap1,script=/etc/qemu-dummy      At this point, i'm trying to ping between the clients without success so i close down the systems and run:               brctl delif br0 tap0     brctl delif br0 tap1     ifconfig tap0 down     ifconfig tap1 down     tunctl -d tap0     tunctl -d tap1     kpartx -dv win7.img     kpartx -dv ubuntu.img


Command : must be run from a terminal

I have a shared hosting account, I logged using ssh. when I type for example `su` I had this output : `su: must be run from a terminal` Is this error relative to the fact that I don't have sufficient permissions or to something else ?


Why OpenSuse (ver.13) does no install a lot of basic softwares for development. But their GUI and widget softwares are all over the place. For example, there is no `gcc` installed. there is no `make` installed. There is no `git` installed. There is no basic kernel header installed. So after fresh installation of Suse. I have to manually install a lot of things in order just to compile one of my project.


How to set Cols and Lines for a Subprocess

I have a script that runs a series of scripts numbered 001,002,003,004... etc down to 041 right now, will be more in the future - and these scripts them selves use some cursor control to print a progress bar and other status information and get the width and height of the terminal from `tput cols` and `tput lines` respectively. Without rewriting the sub-scripts, I would like to reserve _one_ line at the bottom for _overall_ status information for the outer script. I was curious if there was a way to set what tput replies for lines and cols. There must be a way because tmux achieves it. I was thinking there may be an environmental variable but the only change I can see that tmux makes when running env is setting the $TERM to screen. Any help would be greatly appreciated


Invert colors of the active window

Sometimes I work in low light and I need to invert the color of specific windows to reduce my eye strain. This could be my pdf viewer to web pages for reference work. I know how to invert the entire screen:               xcalib -invert -alter      But I can't find any man pages, docs or posts how to invert _a single window only_. I did this before yet cannot find how. Bizarre! Searching the repos for other xorg tools I found xpdf, it has invert support but won't help for anything other than viewing pdf's. I don't use compositing so please don't suggest Compiz. I use Openbox WM. Thanks all. **Update** Instead of a general all-purpose tool to invert any window, I focused my search on how to invert colors for a Google Chrome tab instead. I found Color Bookmarklets, you drag them to the browser toolbar and hit them to change the page content to invert the colors (invert lightness).


Copy a folder and its content to all Nginx vhosts host

I am interested to know if a single command line that would allow me to recursively copy a folder to all of our NGINX Virtual Host htdocs folders: I need to copy that folder to all hosts located in vhosts :               /var/www/vhosts/*/htdocs/


Compare the similar file and not similar files display below output in awk?

I'd like to compare the following 2 files and display a comparison of the 2 files with each other. File #1:               DATE       DS      2012-08-02 1     2013-06-23 1     2013-06-27 2     2013-06-28 2     2013-06-29 779      File #2:               DATE       DE     2013-06-16 5     2013-06-17 1     2013-06-18 3     2013-06-19 1     2013-06-20 5     2013-06-21 6     2013-06-22 6     2013-06-23 6     2013-06-24 5     2013-06-25 9     2013-06-26 7     2013-06-27 22     2013-06-28 59     2013-06-29 334     2013-06-30 11      Comparison of file #1 & #2:               DATE       DS   DE      2012-08-02 -    1     2012-08-05 -    2     2013-06-16 5    -       2013-06-17 1    -       2013-06-18 3    -       2013-06-19 1    -       2013-06-20 5    -       2013-06-21 6    -     2013-06-22 6    -     2013-06-23 6    -     2013-06-24 5    -     2013-06-25 9    -     2013-06-26 7    1     2013-06-27 22   2     2013-06-28 59   2     2013-06-29 334  779     2013-06-30 11   -      Above the file1, DATE and DS means "data selected" for a particular date of how many selected. It's showing from file1 and file2 also the same, but different dates for how many "deactivated" (DE). Now I want to display from file1 & file2 using AWK. Date for $1 from both files, $2 from file1, $2 from file2. If a particular date is compared also it will display DE, DA. For example:               DATE      DE DS     2012-08-1 -   1 # Date is present in $1 from file1 but file2 is not there.                      # This is the date I want. Also I want to display a (-) for                      # DE which is not there.


Is there a shortcut in bash to delete the last segment of a path?

I've become pretty proficient with a number of bash shortcut keys that make my bash-ing faster: C-a/C-e, C-u, C-w, M-f/M-b, C-r etc. One common task that I haven't found a good shortcut for though is when I want to delete the last segment of a path: Say I have               ls ~/projects/arcaneweb/libraries      and I realize I actually meant               ls ~/projects/arcaneweb/sources      Is there a way to just delete `libraries`, saving a load of keystrokes?


Udev: running a shellscript that accesses an X display

After getting my 3g-modem to work in `Arch Linux` I wanted to eliminate some manual labour required in the process. Hence I needed to create an udev rule. After some trial and error I came up with the following rule named `11-my- rule.rules` which I placed at `/etc/udev/rules.d/`:               # start at sdb to ignore the system hard drive     KERNEL!="sd[b-z]*", GOTO="my_media_automount_end"          # run the script and create a testdir to verify the rule works     ACTION=="add", RUN+="/myscript.sh", RUN+="/bin/mkdir -p '/media/pendrive'"          #remove the testfolder on removal of usb     ACTION=="remove", RUN+="/bin/rm -R '/media/pendrive'"          # exit     LABEL="my_media_automount_end"      My testscript which is meant to be ran is as follows:               #!/bin/bash          DISPLAY=:0 xterm      Which displays xterminal. I have tested the script itself and it works. Also the second **RUN+** that creates the test-directory works as well. Hence I am at a loss just what am I doing wrong.


CentOS - Issue with write permissions

I am running CentOS 6.4 and I have installed Wordpress on it. (along with LAMP) Now the problem is, that I cannot make any write changes to any files in the wordpress editor: eg. header.php, style.css etc. Wordpress says the following where the 'update' button is suppose to be: You need to make this file writable before you can save your changes. Notes:   * Now Apache is running as the root user (default)    * Here are the permissions on the themes folder where all the above mentioned files lie: drwxrwxr-x. 5 root bluegig 4096 Jul 7 17:32 themes drwxrwxr-x. 3 root apache 4096 Jul 7 23:15 uploads I ran the **chmod 775** command on both 'themes' and 'uploads', Now doing a _chmod 777 gets me write permissions, but I don't believe that is very safe... Is there any other/better way of doing it?_ (bluegig is the name of my domain, don't know why that is there...) What I can do:   * I can read and execute in Wordpress   * I can upload files into the uploads folder from within wordpress I cannot:   * Make any changes to files within wordpress (via the editor)   * How do I enable write permissions so that I can modify files in wordpress? Note, I did not log into an ftp account from within WP.


KVM guest machine graphics problem

I'm new to KVM. I use the following way to create and start a guest KVM machine.               qemu-img create -f raw centos.img 100G     /usr/libexec/qemu-kvm -hda ./centos.img -cdrom /usr/local/CentOS_5.6_Final.iso -m 1024 -smp 1 -boot d     /usr/libexec/qemu-kvm -hda ./centos.img -m 1024 -smp 1 -boot c      When the login page appears, everything seems right. ![enter image description here](http://i.stack.imgur.com/EHydW.jpg) When I log into the system, it show me like this. Note the following image shows what I saw when I just log into the system, without move my mouse or press a key. ![enter image description here](http://i.stack.imgur.com/bng8H.jpg) Take a closer look. ![enter image description here](http://i.stack.imgur.com/Qr88d.jpg) When I click the left mouse button, it shows me this menu. ![enter image description here](http://i.stack.imgur.com/ulTB7.jpg) Anyone can help me with my problem? How to fix the graphics in the guest machine? Thanks in advance.


Why is my /home separate from /?

I was confused why I was getting out of space errors so I ran `df` and saw this:               [me@fedlap /]$ df -h     Filesystem                     Size  Used Avail Use% Mounted on     rootfs                          43G  9.4G   34G  23% /     ...     /dev/mapper/vg_fedlap-lv_root   43G  9.4G   34G  23% /     ...     /dev/mapper/vg_fedlap-lv_home   22G   21G   12M 100% /home      The partition is about 69GB so the sum of everything is correct, but I have no idea why `/home` is allocated this way. Gparted shows one 500MB ext4 partition and one lvm2 69Gb partition. What exactly is `/dev/mapper` and is there a way to remove it? I have no idea what the ratio of installed programs to user data will be in the future so I have no need to separate these on a single user system. This is on Fedora 16 with one physical disk.


recursive statistics on file types in directory?

I did a website scrape for a conversion project. I'd like to do some statistics on the types of files in there -- for instance, 400 .html files, 100 .gif, etc. What's an easy way to do this? It has to be recursive. **Edit:** With the script that maxschelpzig posted, I'm having some problems due to the architecture of the site I've scraped. Some of the files are of the name `*.php?blah=blah&foo=bar` with various arguments, so it counts them all as unique. So the solution needs to consider `*.php*` to be all of the same type, so to speak.


Boot windows from grub rescue command prompt

Previously I had installed the Ubuntu 10.04 and Windows 7. Now I logged on to Windows, opened thepartition editor and deleted the volume containing the Ubuntu (Thought it will delete the Ubuntu and it might help me install another OS)and I restarted the system. Grub rescue prompt is there. I want to logon to Windows. How can I do that? In Grub rescue, I tried the following:               ls     (hd0) (hd0,3) (hd0,2) (hd0,1) (hd1) (hda1,1)      Tried all combination of the ls (hdax)/, which threw me error: Unknown Filesystem. I tried this: 1) rootnoverify (hd0,0) 2) chainloader +1 3) makeactive 4) boot. It threw me Unknown command. EDIT: I installed Ubuntu from the USB. Now when I restarted the system, I got the grub, showing old Windows and the newly installed Ubuntu. I happily logged onto windows. Then I used standard procedure to remove ubuntu, so as not to have grub rescue.


Copy files via a complex ssh connection?

Suppose I have host _A_ from which I ssh to host _B_ , where I `sudo -U some_role` and from under it ssh to host _C_. My goal is an interactive shell on _C_. Assume that from _C_ I cannot ssh back to _A_. What is the best way to _copy a file_ from _A_ to _C_ using the connection built above? What preparations / changes should I introduce into the chain to make infrequent, simple file copying possible? Of course I can run `cat > target_file` inside the interactive shell and copy- paste via the terminal, but for large binary files this is not exactly convenient.


Unique file name for different files

I'm working with graphic design. I've downloaded many files (`EPS` files, `PSD` files, etc) from various websites. Because it come from various websites, after downloaded from more than 10 different websites, I got many same files with same size, and same everything but different file name (2 to 4 copies for same file). To remove the duplication by manually open one by one is very time consuming I hope there is a way to rename all downloaded files to be unique name for different files (I don't mind if the new name is not descriptive). For example, 2 same file: file `nice-sun.eps` downloaded from site 1, while `678.eps` downloaded from site 2. It will become same file name after renamed.


Smitty like solution under Linux or BSD?

Are there any solutions similar to AIX smit for Linux based OSes? Basically this would be some kind of _'terminal menu-driver'_ script collection perhaps using ncurses for doing things that system administrators regurarly do.


How to move a directory, file by file? (instead of "copy then remove")

My computer has one 500GB drive. I want to move 400GB of data from `/unencrypted` to `/encrypted`. Both directories are on the same partition, but `/encrypted` is handled by ecryptfs, so `mv /uncrypted/* /encrypted` would:   1. Copy all files to destination   2. Then remove them from source ...which I can't afford, because it requires 800GB.   If files were moved one-by-one, there would be no problem (the ecryptfs zone is dynamic). Is there an `mv` option or another tool, that moves a directory file-by-file?   There is a huge number of files, so ARG_MAX might be a problem for script- based solutions.


Browse LDAP strcuture using Solaris pre-packaged command?

I have used ldapsearch to pull details on accounts but is there a way to browse the different levels in the LDAP directory just like we do with files in a directory?


How to install Debian package with file extension .deb

I am trying to install a Debian package, but it gives error as "sudo: dpkg: command not found". I installed SUDO, and it still giving the same error. I went to the dir where .deb is saved, and ran command as               sudo dkpg -i file.deb      I tried installing the debian support package from "http://packages.debian.org/wheezy/all/dpkg-dev/download", but these files also are in .deb format, so I am unable to install this. Any suggestions...


How do I backup everything?

What can I use to create a backup image of my entire system that will be saved on a LAN computer via SSH? If I break anything later, I want to be able to restore my entire system as it was before the backup in minutes. Is there a Live CD that can "save backup image to ssh://..." and "restore from backup image ssh://..."?


Moving dot files using bash and creating symlinks

Trying to move selected `dotfiles` from `~` directory into new directory `dotfiles` and create `symbink`, with this code:                 1 #!/bin/bash.       2 # This file moves selected files to newly created .dotfile folder and creates symbolic synblinks.       3        4 # STEPS:.       5 # 1. create and array of with .dotfiles elements.       6 # 2. create a new directory .dotfiles if this directory does not exits.       7 # 3. move selected .dotfiles from step 1 into directory created in step 2.       8 # 4. create symbolic links for all .dotfiles from step 1.       9 # 5. initialize a git repo.      10       11 # 1. declare an array with .dotfiles element for versioning:.      12 declare -a Dotfiles=('bash_profile' 'bashrc' 'gitconfig' 'gitignore' 'profile' 'vimrc' 'vimrc.after' )      13       14 # inform the user and print the whole array on the screen:      15 echo 'going to move the following selected .dotfiles:'      16 echo ${Dotfiles[@]}      17       18 # 2. create a variable for new directory for storing dotfiles..      19 dir = ~/dotfiles      20 cd ~ && mkdir -p $dir      21 echo 'directory created'      22       23 # move selected dotfiles to new directory .dotfiles      24       25 for dotfile in "${Dotfiles[@]}";do      26   echo "moving $dotfile into directory $dir"      27   mv ~/.$dotfile $dir      28   echo "creating symblik for $dotfile"      29   ln -s $dir/$dotfile ~/.$dotfile      30 done      31 echo 'done'      When I run it, new directory is created, but original dotfiles are not moved and symblink are not running as well. **Questions are**   1. What is missing in this code?    2. Do you have some suggestions for refactoring?


What are your favorite *painful* Unix moments

How about sharing your favorite _lessons learned_ moments?


Joe,pico,emacs missing

I've installed a 'linux in a box' at home using FreeBSD and Virtual Box.But when I tryed to make a C file,joe,emacs and pico give me 'Command not found'. `joe z.c`,`emacs z.c`, `pico m.c` are the commands I've tryed.The only available editor seems to be vi,which opens a file.How can I get the other editors to work?


Command to restore filesystem to state after installation of the OS

How can I wipe all the changes to the filesystem **since** installing the OS?   It's not that I want to destroy the files because they contain sensitive data or anything like that; I just want to start over without reformatting the SD card, etc. (I'm on a Raspberry Pi, running Occidentalis, which is basically Raspbian, which is basically ARM Debian). I know about `rm`, but I don't want to delete the OS -- just all the stuff I've done since running it the first time.


How can I replace a string in a file(s)?

Replacing strings in files based on certain search criteria is a very common task. How can I   * replace string `foo` with `bar` in all files in the current directory?   * do the same recursively for sub directories?   * replace only if the file name matches another string?   * replace only if the string is found in a certain context?   * replace if the string is on a certain line number?   * replace multiple strings with the same replacement   * replace multiple strings with different replacements


agonizing over the Unix epoch

I am having some trouble understanding what exactly `00:00:00 Coordinated Universal Time (UTC), 1 January 1970` means. Below are two possible ways to interpret `00:00:00` according to my understanding, or rather, according to my confusion:   * a point in time of zero duration, functioning as a divider between days. Under such a definition, being a divider, it belongs to no day, falls on no day in particular, and is rather defined not by a single day but rather by the two days it divides, so `00:00:00 1 January 1970` doesn't make sense. What would make sense under this definition would be to say _00:00:00 between 31 December 1969 and 1 January 1970_ , or simply (since that's redundant) _the point in time between 31 December 1969 and 1 January 1970_.   * an interval in time having a duration of 1 second starting from the beginning of 1 January 1970 and ending 1 second later. Under the second definition `00:00:00 1 January 1970` makes sense but then the concept of **seconds elapsed since`00:00:00 UTC, 1 January 1970`** doesn't make sense as you can't measure distance from an interval but only from a point. Unless what we really mean (under this definition) is **seconds elapsed since the beginning of`00:00:00 UTC, 1 January 1970`** I.e. since the beginning of the interval denoted by `00:00:00 UTC, 1 January 1970`. **UPDATE** Based on the answers I received I think the correct way to view it is a point in time of zero duration that by convention indicates the earliest point in time in the day next to which it appears. Yet I am not fully convinced that this is a rigorous definition. It's like defining 1 to be the lowest number in the set [1, 2). It's a circular definition as the duration of the day is itself defined using the `00:00:00` point in time. Maybe I am indeed reading too much into it.


Problem with vim when logged in as root

When I login as root or edit a file by `sudo` mode all of the options in my `/etc/vimrc` are not working (e.g. highlight line-number etc.)


Vim - Bind a key to a bash command

In VIM, is there a way to bind a key to a shell command? For example when F3 is pressed `git commit -a -m "test"` should be executed.


how to extract part of a filename before '.' or before extension

I have files in format below:               abc_asdfjhdsf_dfksfj_12345678.csv     hjjhk_hkjh_asd_asd_sd_98765498.csv     hgh_nn_25342134.exe      I want to get the value before the `.` and after the last `_`. The result would look like:               abc_asdfjhdsf_dfksfj_12345678.csv   ----> 12345678     hjjhk_hkjh_asd_asd_sd_98765498.csv  ----> 98765498     hgh_nn_25342134.exe                 ----> 25342134


Does the Linux loader (ld.so) follow symlinks?

I have stumbled upon a problem by trying to move the ld.so.cache file to another location. I have tried to create a symlink for it in its previous location -- `/etc/` -- but it seems that the loader cannot follow this symlink. Also, a hardlink is not viable since the new location is on another partition. My final purpose is to have a read-only root filesystem and this is maybe the last thing which stops me from this. Thank you in advance!


Storing a keyfile in an encrypted LVM

I'm using RHEL 6.5 and I want to encrypt some of my logical volumes (LVM). In order to not have to enter the passphrase multiple times, I want to store a keyfile in an encrypted LV. Example: `/var/xxx` will be encrypted and the passphrase will be asked during the boot.   `/var/xxx/yyy` will be encrypted and the keyfile will be under `/var/xxx/keyfile` (for more security). This way the passphrase has to be entered only one time. My `crypttab`:               LogVolXxx          /dev/vg/LogVolXxx         none     LogVolXxxYyy       /dev/vg/LogVolXxxYyy      /var/xxx/keyfile  luks      My `fstab`:               [...]     /dev/mapper/vg-LogVolAaa      /Aaa           ext4    noatime        1 2     /dev/mapper/LogVolXxx         /var/Xxx       ext4    noatime        1 2     /dev/mapper/LogVolXxxYyy      /var/Xxx/Yyy   ext4    noatime        1 2     [...]      A problem appears during the boot, the keyfile is not found. I suppose the system is trying to decrypt the device before mounting it. How can I handle this?


Kermit locked after suspend

I use kermit to communicate through RS-232 with my embedded system target. My host is Ubuntu 14.04. Every time I suspend my host while kermit still is connected to the target, I cannot reconnect with kermit after resuming my session.               gauthier@sobel:~ $ sudo kermit     [sudo] password for gauthier:      ?SET SPEED has no effect without prior SET LINE     C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5 (64-bit)      Copyright (C) 1985, 2011,       Trustees of Columbia University in the City of New York.     Type ? or HELP for help.     (/home/gauthier/) C-Kermit>connect     Sorry, you must SET LINE or SET HOST first     (/home/gauthier/) C-Kermit>set line /dev/ttyUSB0     Sorry, write access to UUCP lockfile directory denied.          *************************     HINT (Use SET HINTS OFF to suppress future hints):     Please read the installation instructions file, ckuins.txt,     or the UNIX appendix of the manual, "Using C-Kermit"     or visit http://www.columbia.edu/kermit/ckuins.html      *************************          (/home/gauthier/) C-Kermit>         My `~/.kermrc`:               set line /dev/ttyUSB0     set speed 115200     set carrier-watch off     set handshake none     set flow-control none     robust     set file type bin     set file name lit     set rec pack 1000     set send pack 1000     set window 5      It looks like kermit cannot accept `set line`, apparently due to some kind of lock. This is why I tried to run with `sudo`. I learned there that `show comm` could show me where the lock file should be:               (/home/gauthier/) C-Kermit>show comm          Communications Parameters:      Line: /dev/tty, speed: unknown, mode: remote, modem: generic      Parity: none, duplex: full, flow: none, handshake: none      Carrier-watch: off, close-on-disconnect: off      Lockfile directory: /var/lock      Typical port device name: /dev/ttyS0      and `/var/lock` is a symlink to `/run/lock`               gauthier@sobel:/run/lock $ ll     total 0     drwxrwxrwt  3 root     root      60 Jun 18 10:01 ./     drwxr-xr-x 28 root     root     980 Jun 18 09:24 ../     drwxr-xr-x  2 whoopsie whoopsie  60 Jun 17 10:58 whoopsie/     gauthier@sobel:/run/lock $ ls whoopsie/     lock     gauthier@sobel:/run/lock $ more whoopsie/lock      whoopsie/lock: Permission denied     gauthier@sobel:/run/lock $ sudo more whoopsie/lock      gauthier@sobel:/run/lock $       I don't thinkg `whoopsie` has much to do with this particular error, but I tried to remove the `whoopsie` folder altogether and kill the `whoopsie` process. As expected, it did not help. I have read section 10 of this, but I cannot make much sense of it. Logging off and on does not help, rebooting the host does. How can I unlock kermit?


creating shortcuts to executables on IRIX64 6.5

I'm telnetting into an IRIX 64 server and I'm trying to create shortcuts to emacs, gvim, and other executables that are stored in a certain directory. I tried using the `alias` command on the command line in the following manner:               alias gvim="/usr/.../gvim"     alias emacs="/usr/.../emacs"     ...      but whenever I try this and run emacs/gvim, it still doesn't work. And when I run `alias -p`, nothing shows up. What am I doing wrong?


IMAP caching proxy for sharing connections

I'm trying to find an IMAP proxy in which multiple clients will share a single connection to the same server. The reason for this is because most mail providers only allow a limited number of IMAP connections. This is problematic with the IMAP protocol as each folder gets it's own connection. Once you throw in a few folders, multiplied by several clients (2 computers, phone, tablet, etc), you easily go over these connection limits. I'm looking for some sort of proxy which will let multiple clients share the same connection to the same folder. So that if 2 clients are accessing "INBOX", they'll both use the same connection to the IMAP server.   The catch is that it also needs to handle things like deletions. Such that if one client adds or deletes a message, the other client should get updated. This is under unix/linux as the proxy server needs to run on Linux. The goal is to run this proxy on a single server, and then configure all my clients to connect to it instead of the real IMAP server.


Secure access to remote SSH tunnel

So I wish to be able to access my Raspberry Pi (which I keep at home behind a firewall) remotely. One option is to use a static IP address, but as a poor student I don't want to fork out for one, and most of the free options are a bit messier (require regular maintenance etc.). As I understand it, another option is to set up a remote SSH tunnel to a server outside my firewall, which will forward connections to a specified localhost port (say 9999) on the server onwards to port 22 on my Raspberry Pi (through said remote SSH tunnel). Broadly I would be following the steps from Raspberry Pi: Phoning Home Using a Reverse Remote Ssh Tunnel, except for a different purpose. As it happens my university has a student Linux server which I have a shell account on, so setting all that up should be fine. My question is this: given that the student server is shared, will any user with a shell account be able to use the tunnel to my Pi if they happen upon whichever localhost port I've selected (9999 in the above example)? Or will it only allow me to use that port? Is it possible to create such a restriction? Obviously I'm not that keen on relying upon security by obscurity to protect the connection and would rather that it is only available to me.


Newbie struggles with grep, sed, awk to filter html

I am a beginner linux user, trying to teach myself how to use linux tools on a cygwin install. I decided to make up a project to try to teach myself the basics of shell scripting and simultaneously accomplish some personal education. My original project was to save the html pages from every winner of the Sakharov Prize into a folder, and to write a script that would process all the html text files and return the name, year, birth and death in a hyphenated format, and country of origin. Due to certain inconsistencies in date formatting (18 July 1918 vs January 23, 1938), as well as an inability to handle dead people vs live people with no death date or figure out how to tell a computer how to recognize country names without manually listing out all the countries myself, I've basically given up on this project. Now, I'm just trying to return the year, name, and country of origin of each recipient from the html table taken from the Sakharov Prize wikipedia page. So, given the following sample html:
     1988	     Mandela, NelsonNelson Mandela	     South Africa	     Anti-apartheid activist and later President of South Africa	     [5]

     1988	     Marchenko, AnatolyAnatoly Marchenko (posthumously)	     Soviet Union	     Soviet dissident, author and humans rights activist	     [5]
      what is the best way to return just the year, name, and country of origin of each recipient? Right now I'm thinking about just writing an awk script that returns everything that does not match /<*>/, but that is not exactly what I want. Can someone give me some pointers or ideas of how to pick out the names, year, and countries specifically? Or at least some books with better and more manageable sample problems than ones that I could come up with myself? None of this sounded unreasonable when I started...


how os running in virtualbox effect original os speed in laptop

Suppose I want to run ubuntu on virtual box.. how it effect original windows in terms of speed ?? like we used ram for ubuntu can not be used for windows like that??


In vim, search backwards for matching braces/parens

As most of you probably know, you can use `%` to search forwards on the line to find the next paired brace/bracket/paren and move to its matched partner:               |a|rray[index] = value;     " |e| is the cursor; hit %:     array[index|]| = value;      I am hoping there is a similar key that searches backwards on the line, e.g.:               array[index] = value|;|     " |;| is the cursor again, hit the key I'm looking for:     array|[|index] = value;      Most vim commands have both a backwards and forwards, so it seems this should to. Does it not have a partner? If so, is that because once it's _on_ a paired character they would act the same?


Printing and deleting the first line of a file using `sed`

I can print the first line of a file using               sed -n 1p file.txt      I can delete the first line of a file using               sed -i 1d file.txt      Is there a way to print-and-delete in `sed`? Kind of like a FIFO `pop()` or Perl's `shift`.


I'm trying to get this package because I need it to build software on CentOS 6, but I'm getting this error:               No package community-mysql-devel available      I'm logged in as root, using `yum`. Could it be because I installed this from a non-net install CD? I had the same problem with Scientific Linux 6 (non-net CD)


Can't run su after changing permissions to su file

I am running Linux Slackware 14.0. I wanted to allow to do `su` only to the members of wheel group, so I modified the permissions of `/bin/su` and `/usr/bin/sudo` files to this:               bash-4.2# ls -la /bin/su     -rws--s--- 1 root wheel 59930 Sep 14  2012 ./su          bash-4.2# ls -la ./sudo     -rws--s--- 1 root wheel 107220 Jun 29 2012 ./sudo      Now when I am a member of wheel group and run `su`, it promts for password, I enter it. No errors are shown, but doesn't switch me to root. Probably, I set some permissions wrong?


How can I customize the look of Thunderbird's mailbox list, message list, and headers?

Mozilla Thunderbird's message list, mailbox list, and headers use a font size that is so large, I can barely see any content in the message preview pane. I'd like to reduce these to 10px, and reduce the headers to 8px or less. How can I do this?


Permisison/Ownership issue with secondary FTP account

I have Centos 6.5 final. I have chroot setup and working properly and I also installed vsftpd. I now need to create a new user named `extDeveloper` and give this user access to a specific account. I setup the user using (adding the new account to an existing account):               adduser extDeveloper -d /var/www/vhosts/domain.com     passwd extDeveloper       I also added this user to the apache group so they could access the files. The issue I have is the extDeveloper user is not able to write new files. I thought about making the group writable but then was concerned over security for this. What I am trying to do is create a secondary account (eventually more for this purpose) that I can give access to a few domains. Currently I only need 1 domain but this user may need to access more. I need the user to modify files and push new files but I need these files associated to the proper account:group. My accounts are setup using `domain_user:apache` where apache only has read access. Isn't it bad to let apache have write access? Is the setup I want possible? I assume so as I have been able to have multiple FTP accounts on other servers and they wrote files back using the proper permissions. Rackspace told me this is not how Linux works... I am learning as I go so any assistance or push in the right direction is very much appreciated. Thanks