Installing Flash Player for Safari in Ubuntu

I have installed Safari browser in Ubuntu 10.10 using Wine tricks. Now I wish to run a website which has Flash content. I am trying to install Adobe Flash but it is not working even though Flash is already installed in Ubuntu. Is there any work-around for this?


Impossible to login after crash

I am using Fedora 16. I have downloaded MySQL Server and tried to start it; while doing so my Fedora hung. So I shutdown by pressing the power button. When I try to log in next time then this error occurs: > Oh no! Something has gone wrong.A problem has occurred and the system can't > recover.Please contact a system administrator How do I recover my Fedora?


How to grep recursive UNIX tree results along with each tree node?

Here is what I do               tree -R /Applications/NetBeans/NetBeans\ 7.0.app/ | perl -e 'while (<>) { print if /java$/ }'      but of course this doesn't return the result I want. What I want is to display an **executable java file** along with its recursive directory so that I would know where that java file is. Something like this structure below               `-- Contents         `-- Resources             `-- NetBeans                 `-- ExecutableJavaEnv                     `-- java      This question is inspired from my question on SU. The structure display above actually is not really important because I'm not sure if I can get what I want using `find`. What I need is just **get the path** so that I can set my TextMate to run NetBeans' Java instead of `/usr/bin/java` from my Mac OS X 10.5.8. Advice? Help? 1st Edit: Thanks for answers so far, I appreciate it. Here is the result of the command I tried:               . find /Applications/NetBeans/NetBeans\ 7.0.app/ -name java     /Applications/NetBeans/NetBeans 7.0.app//Contents/Resources/NetBeans/java     . ll /Applications/NetBeans/NetBeans\ 7.0.app/Contents/Resources/NetBeans/     total 632     -rw-rw-r--   1 arie  admin   6.6K Apr  8 09:29 CREDITS.html     -rw-rw-r--   1 arie  admin   1.7K Apr  8 09:29 DISTRIBUTION.txt     -rw-rw-r--   1 arie  admin   2.1K Apr  8 09:30 LEGALNOTICE.txt     -rw-rw-r--   1 arie  admin    78K Apr  8 09:30 LICENSE.txt     -rw-rw-r--   1 arie  admin   5.4K Apr  8 09:30 README.html     -rw-rw-r--   1 arie  admin   158K Apr  8 09:30 THIRDPARTYLICENSE.txt     drwxrwxr-x   8 arie  admin   272B Apr  8 09:29 apisupport/     drwxrwxr-x   3 arie  admin   102B Apr  8 10:32 bin/     drwxrwxr-x   9 arie  admin   306B Jul  1 15:56 cnd/     drwxrwxr-x   9 arie  admin   306B Apr  8 09:29 dlight/     drwxrwxr-x   9 arie  admin   306B Apr  8 09:30 enterprise/     drwxrwxr-x   6 arie  admin   204B Apr  8 09:30 ergonomics/     drwxrwxr-x   6 arie  admin   204B Jun 11 22:17 etc/     drwxrwxr-x   7 arie  admin   238B Apr  8 09:30 groovy/     drwxrwxr-x  21 arie  admin   714B Jun 11 22:15 harness/     drwxrwxr-x  11 arie  admin   374B Jun 11 22:25 ide/     drwxrwxr-x  12 arie  admin   408B Jul  1 15:56 java/     drwxrwxr-x  10 arie  admin   340B Apr  8 10:15 mobility/     -rw-rw-r--   1 arie  admin    33K Apr  8 09:30 moduleCluster.properties     drwxrwxr-x  15 arie  admin   510B Jun 11 22:17 nb/     -rw-rw-r--   1 arie  admin    15K Apr  8 09:30 netbeans.css     drwxrwxr-x  11 arie  admin   374B Apr  8 09:30 php/     drwxrwxr-x  11 arie  admin   374B Jun 11 22:25 platform/     drwxrwxr-x  10 arie  admin   340B Apr  8 09:30 profiler/     drwxrwxr-x   3 arie  admin   102B Apr  8 08:43 ruby/     drwxrwxr-x   7 arie  admin   238B Apr  8 09:30 websvccommon/     .       And for another answer is this               . find /Applications/NetBeans/NetBeans\ 7.0.app -type f -executable -name java     find: -executable: unknown option


Remove green from Linux Mint browser

When I use Firefox in Linux Mint, everything has a kind of green shade to it. The monitor is fine. I'm guessing it's Mint branding. How do I remove it? **Edit** My original question wasn't clear - it's not the browser chrome that has the green shade, it's the pages themselves. Here's a screenshot - compare with the actual page, and you'll see what I mean. To prove it's not the monitor, I right click on the photo of the sausages (I bet that's the first time that word's appeared on unix.se.com!) and save the image to the desktop. Then I view the image by double clicking on the new file and it displays fine. http://imgur.com/qiX6H.png There are two plugins installed - `Mint Search Enhancer` and `Stylish` - deactivating these makes no difference.


Environment variable for ip address

I see somewhere people use:               IF_ADDRESS="$(echo "$IP4_ADDRESS_0" | cut -d'/' -f1)"      to get the IP address in a network configuration script. In my system, I create a script under the directory `/etc/network/if-up.d/` and test with:               echo "$IP4_ADDRESS_0" >> /tmp/test.log      but get nothing with this variable. What's wrong? My `/etc/network/interfaces` is like this:               auto lo     iface lo inet loopback          auto eth0     iface eth0 inet dhcp      My final purpose is to set up the IP routing policy with a script like this.


How to use 'unsquashfs' with lzma?

I'm using Ubuntu 12.04. I want to unsquash an lzma image. I have done               sudo apt-get squashfs-tools      Now, when I do               unsquashfs <squashed_image_filename>      I get               Filesystem uses lzma compression, this is unsupported by this version      I know my squashed image is lzma. How do I install support for lzma? I have downloaded the squashfs-tools from here: http://sourceforge.net/projects/squashfs/files/ It is my understanding that after extracting that tarball, I need to `cd` into `squashfs4.2/squashfs-tools` and edit the `Makefile` by uncommenting the line `LZMA_XZ_SUPPORT = 1`. Then I just need to run `make`. That does not work for me. I get the error:               gzip_wrapper.c:23:18: fatal error: zlib.: No such file or directory      I think I need to install `lzma-devel` and `xz-devel`. I have tried this and been Googling for a couple hours and haven't gotten anywhere or found any solid instructions that show how this should work. Can anyone who has done this help me out? **I am new to desktop Linux** so if you could be fairly verbose in your instructions that would be appreciated.


Debian Sid, AMD RS880 [Radeon HD 4250], black screen on boot

My computer booted under Debian Wheezy (3.2 kernel) with no graphics problems whatsoever. After updating to sid (3.10 kernel), the screen goes black (that is, the display flashes a bit and then goes into power-saving mode) and turns off whenever the kernel tries to set up the radeon framebuffer (both if I boot without the `nomodeset` option and if I load the module via `modprobe radeon modeset=1`). I then compiled the kernel (both 3.10 and 3.11), Mesa and the xorg driver for myself with the same results. `lspci -s 01:05.0 -vv`:               01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4250] (prog-if 00 [VGA controller])         Subsystem: ASRock Incorporation Device 9715         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-         Latency: 0, Cache Line Size: 64 bytes         Interrupt: pin A routed to IRQ 18         Region 0: Memory at d0000000 (32-bit, prefetchable) [size=256M]         Region 1: I/O ports at d000 [size=256]         Region 2: Memory at febf0000 (32-bit, non-prefetchable) [size=64K]         Region 5: Memory at fea00000 (32-bit, non-prefetchable) [size=1M]         Expansion ROM at <unassigned> [disabled]         Capabilities: [50] Power Management version 3             Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)             Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-         Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+             Address: 0000000000000000  Data: 0000             Kernel driver in use: radeon      `dmesg | grep -i 'drm|radeon'`:               [    6.995487] [drm] Initialized drm 1.1.0 20060810     [    7.744080] [drm] VGACON disable radeon kernel modesetting.     [    7.744125] [drm:radeon_init] *ERROR* No UMS support in radeon module!     [  395.010450] [drm] radeon kernel modesetting enabled.     [  395.010779] [drm] initializing kernel modesetting (RS880 0x1002:0x9715 0x1849:0x9715).     [  395.010828] [drm] register mmio base: 0xFEBF0000     [  395.010859] [drm] register mmio size: 65536     [  395.015827] radeon 0000:01:05.0: VRAM: 512M 0x00000000C0000000 - 0x00000000DFFFFFFF (512M used)     [  395.015863] radeon 0000:01:05.0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF     [  395.015898] [drm] Detected VRAM RAM=512M, BAR=256M     [  395.015930] [drm] RAM width 32bits DDR     [  395.016192] [drm] radeon: 512M of VRAM memory ready     [  395.016223] [drm] radeon: 512M of GTT memory ready.     [  395.016261] [drm] GART: num cpu pages 131072, num gpu pages 131072     [  395.030829] [drm] Loading RS780 Microcode     [  395.085860] [drm] PCIE GART of 512M enabled (table at 0x00000000C0040000).     [  395.085978] radeon 0000:01:05.0: WB enabled     [  395.086019] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8801f7aacc00     [  395.086065] radeon 0000:01:05.0: fence driver on ring 3 use gpu addr 0x00000000a0000c0c and cpu addr 0xffff8801f7aacc0c     [  395.086109] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).     [  395.086147] [drm] Driver supports precise vblank timestamp query.     [  395.086201] [drm] radeon: irq initialized.     [  395.086502] radeon 0000:01:05.0: setting latency timer to 64     [  395.118357] [drm] ring test on 0 succeeded in 0 usecs     [  395.118455] [drm] ring test on 3 succeeded in 1 usecs     [  395.118664] [drm] ib test on ring 0 succeeded in 0 usecs     [  395.118716] [drm] ib test on ring 3 succeeded in 0 usecs     [  395.119245] [drm] Radeon Display Connectors     [  395.119283] [drm] Connector 0:     [  395.119319] [drm]   VGA-1     [  395.119357] [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c     [  395.119397] [drm]   Encoders:     [  395.119433] [drm]     CRT1: INTERNAL_KLDSCP_DAC1     [  395.119470] [drm] Connector 1:     [  395.119505] [drm]   HDMI-A-1     [  395.119540] [drm]   HPD3     [  395.119577] [drm]   DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c     [  395.119617] [drm]   Encoders:     [  395.119652] [drm]     DFP3: INTERNAL_KLDSCP_LVTMA     [  395.119715] [drm] radeon: power management initialized     [  395.183376] [drm] fb mappable at 0xD0142000     [  395.183417] [drm] vram apper at 0xD0000000     [  395.184903] [drm] size 9216000     [  395.184939] [drm] fb depth is 24     [  395.184975] [drm]    pitch is 7680     [  395.185145] fbcon: radeondrmfb (fb0) is primary device     [  395.380720] radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device     [  395.380813] radeon 0000:01:05.0: registered panic notifier     [  395.381119] [drm] Initialized radeon 2.34.0 20080528 for 0000:01:05.0 on minor 0      My Xorg.log is here: http://lpaste.net/92865


Automatically set Linux timezone according to location

How can we automatically set the system default timezone in Linux using the Internet? As I see it, NTP servers can update only time, but not timezone. Is there any server that can change the timezone?


Creating an extended partition

I'm trying to create an extended partition. In GParted, I shrunk the size of the existing partition and now want to create a new EXTENDED partition in the free, unallocated space. GParted only lets me create a PRIMARY partition. What am I doing wrong here? Here's what I've got right now: http://i.stack.imgur.com/WkEIS.png You can actually ignore the flag for the swap as "boot." That was me just messing around trying to get it to work. I've removed that flag. Not sure how the question of boot affects all of this...maybe it factors in somehow.


`chattr +i` error on NFS

I'm trying to secure my `authorized_keys` file to prevent it from being modified. I run this:               [root@localhost]# chattr +i authorized_keys      chattr: Inappropriate ioctl for device while reading flags on authorized_keys      I think it may be due to the filesystem:               [root@localhost]# stat -f -c %T /home/user/     nfs      there is a way to modify it with chattr?


Running -march optimized software on another architechture?

I'm running an Athlon64 server with LFS and would like to have a local copy of the server in a virtual machine for testing purposes and building software. My PC uses an i7 and the existing server software was built with -march=athlon64. Despite the optimizations am I able to run this on my hardware?


Linux date/time - monthly "mongodump"

For MongoDB backups, I want to backup only the newest changes from the previous month instead of everything from the previous month. As part of the query I need to pass to "mongodump", I have to determine the first day/last month and the last day/last month, which I've done as follows:               date -d "-1 month -$(($(date +%d)-1)) days"     Sat Dec  1 21:05:21 UTC 2012          date -d "-$(date +%d) days -0 month"      Mon Dec 31 21:06:22 UTC 2012      As you can see this almost works, but the time portion of the above 'date' examples reflect the current time relative to my timezone. In order for only the newest backup data from the previous month to be 100% inclusive, I need to specify the timestamp portion for the first and last day of the previous month to instead be displayed as follows:               Sat Dec  1 00:00:00 UTC 2012     Mon Dec 31 23:59:59 UTC 2012      Is there a way to display the time portion of the date/time in the manner listed above?


convert arecord output to flac

I'm trying to convert arecord wav output to flac and it does work in part:               pi@raspberrypi /tmp $ arecord -d4 -f dat -t wav -r 48000 -c 2 |flac -f -o message.flac - --channels=1 --sample-rate=16000      it will create a file that's recognized and played as a valid flac file by mplayer:               pi@raspberrypi /tmp $ mplayer message.flac     ==========================================================================     Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders     libavcodec version 53.35.0 (external)     Mismatching header version 53.32.2     AUDIO: 48000 Hz, 2 ch, s16le, 125.8 kbit/8.19% (ratio: 15723->192000)     Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)     ==========================================================================      however, I can't figure how to properly tell flac I want a 16kHz 1 channel track as the result. When I use -d instead of plain '-' it will not accept it. _You may ask why I'm not setting arecord channel/rate to the target settings - the answer is that if I do that, the quality of sound captured is horrible, conversion to flac via sox/flac with lower settings works out much better._ _I initially wanted to use sox to record flac without having to recode wav to flac but it's giving me a segmentation fault and I couldn't find a way to overcome this yet._


How to Find a Fugitive Crontab

A few years ago I setup a cron job to automatically ping a URL every minute as part of a monitoring system (that's oversimplification, but it'll do for this question). Because I'm a horrible person, I didn't document this anywhere. Today, years later, I started having trouble with the application on the other end of the URL that's being pinged. I fixed it, but then realized, **I have no idea where this cron job is coming from**. Is there a way to quickly search through or cat out all the crontabs on a particular system? I have root access so permissions aren't a problem. I've only ever been a user of `cron`, I've never looked too deeply at its implementation, but my *nix instincts say there has to be a group of text files somewhere that hold all the crontabs. I just don't know where they'd be, and if I dug into it I'd be afraid of finding some, but not all of them, or missing some weird nuance of the system Also, I realize with root access I could   1. Get a list of all the users in the system   2. `su` as a user   3. `crontab -l`   4. Repeat with all the users but I'm looking for something a little less manual (and looking to learn something about cron's implementation)


Improve Fedora 17 fonts

Having installed Fedora 17, the fonts still not feel smooth enough... I've tried this, and they improved a lot, still I don't get Windows like smoothness. Using a Java IDE, called intellij so font rendering is very important. Any ideas on how to get them better? Using 24" display, 1920 x 1200 res It's basically this question updated for Fedora 17 (procedure there did not make much change) Here is a sample: ![enter image description here](http://i.stack.imgur.com/yfiKx.png) Here is a Consolas font (In Windows) (is different, I don't have the same font in Linux) ![enter image description here](http://i.stack.imgur.com/5pJSp.jpg)


way to select lines that show variations

I have a huge file that contains 80 genomes and five chromosomes. I was wondering is there is an easy way to select only the lines from ONE chromosome (for example 1) but only at the position showing SNP VARIATIONS.               1   180754  GGGGGGGCC        1   180755  CCCCCCCCC          1   180756  CCTCCCCTC        1   180757  AAAAAAAAA        1   180759  TTTTTTTTT        3   7874113 TTTTTTTTT        3   7874114 GGGGGGGGG        3   7874115 GGGGGGGGG        3   7874116 GGGGGGGGG      This is what I want to get in the end:               1   180754  GGGGGGGC             1   180756  CCTCCCCT


IP Tables / netfilters and modules

I am trying to understand how firewall works in linux... I have read documentation but i am not sure about some things.... Netfilters is included in the modern kernels which allows you using hooks to monitor packages without changing their content. Iptables they say that it is a software that uses netfilter and ip_tables module maybe..   My questions are....   * Does IPTables userspace software register any hook ?    * What does ip_table module do?    * Who does the processing iptables or the module ?   * What things IPtable do ?(Just manages the rules in memory?? or it has hooks and proccesses the traffic?)?


Arch installs but GRUB does not load

I installed Arch Linux from a USB flash drive. Everything went well, no errors at all. When I rebooted, however, I got only a blank screen with a blinking cursor. No GRUB. I cannot input anything. I'm sure I followed the installation instructions properly. Can anybody suggest what might be the problem? Edit: grub's menu.lst:               # Arch Linux     title Arch Linux     root (hd1,0)     kernel /vmlinuz26 root=/dev/disk/by-uuid/db9d5d80-d822-481e-885f-c93bf2927512 ro     initrd /kernel26.img          # Arch Linux fallback     title Arch Linux Fallback     root (hd1,0)     kernel /vmlinuz26 root=/dev/disk/by-uuid/db9d5d80-d822-481e-885f-c93bf2927512 ro     initrd /kernel26-fallback.img      A sketch of the drives and partitions, until I have a chance to boot to the USB again and get more certain details: sda: will be Windows 7 on 1st half of drive, data partition on second. Total size 1 TB. sdb: also 1 TB. If I recall correctly from Arch install, it has: 100MiB /boot, 256MiB swap, 20GiB /, remainder is /home. I think they're in that order, too. I believe /boot is ext2 and / and /home are ext3. Edited to add: output of `fdisk -l`:               Disk /dev/sdb: 100.2 GB, 100204886016 bytes     255 heads, 63 sectors/track, 121601 cylinders     Units=cylinders of 16065 * 512 = 8225280 bytes     Sector size (logical/physical): 512 bytes/512 bytes     I/O size (minimum/optimal): 512 bytes/512 bytes     Disk identifier: 0x00022eec             Device Boot Start    End    Blocks  ID System     /dev/sdb1  *       1     13    104391  83 Linux     /dev/sdb2         14     46    265072+ 82 Linux swap/Solaris     /dev/sdb3         47   2596  20482875  83 Linux     /dev/sdb4       2597 121601 955907662+ 83 Linux


how to access the running VMs?

A colleague of a friend of mine established a voluntary project for a gaming union. But the problem now is, that the person is unavailable and I don´t know how I should access the running VMs. I spent days in searching through the internet to find the solution. Now I know that the VMs are running under libvirt with qemu and kvm. It´s possible for me to start or to shutdown the VMs through the virsh command (which was also new for me).               ps ax | grep qemu      shows me the following:               16767 pts/0    S+     0:00 grep --color=auto qemu     18250 ?        Sl   388:50 /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 1000 -smp 4,sockets=4,cores=1,threads=1 -name Teamspeak1 -uuid a973dbb4-04e1-942b-1546-615f425b931b -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Teamspeak1.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/var/lib/libvirt/images/Teamspeak1.img,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=18,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:29:5f:61,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:0 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5     18295 ?        Sl    79:15 /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 1024 -smp 8,sockets=8,cores=1,threads=1 -name Webserver -uuid 14b56603-7323-2333-180c-227d02260acf -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Webserver.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -drive file=/var/lib/libvirt/images/Webserver.img,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=18,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:f6:a1:37,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:1 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5     18380 ?        Sl    19:32 /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 10000 -smp 8,sockets=8,cores=1,threads=1 -name Gameserver1 -uuid cb7b70e3-f049-7545-65d2-3adff36f34ff -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Gameserver1.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device ahci,id=ahci0,bus=pci.0,addr=0x6 -drive file=/var/lib/libvirt/images/Gameserver1.img,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/var/lib/libvirt/images/Gameserver1-1.img,if=none,id=drive-sata0-0-0,format=raw -device ide-drive,bus=ahci0.0,drive=drive-sata0-0-0,id=sata0-0-0 -netdev tap,fd=18,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:62:7d:6e,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:2 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5      He left me also the following notices: For the "Gameserver1":               root: kecks     user : game     pass: ***          ip: 192.168.122.161     FTP connection : ftp://***:2121          IP-Tables:             //FTP: (Chrooted)             49152-49153 (FTP Passive)             2121 -> 21             2020 -> 20             //CS:GO              27015      And also e. g. for the "Webserver":               ##User     root -> ***     webserver -> ***          192.168.122.198     Mysql root -> ***               ACCEPT     tcp  --  anywhere             192.168.122.198      state NEW,RELATED,ESTABLISHED tcp dpt:12001 // FTP     ACCEPT     tcp  --  anywhere             192.168.122.198      state NEW,RELATED,ESTABLISHED tcp dpt:12000 //FTP     ACCEPT     tcp  --  anywhere             192.168.122.198      state NEW,RELATED,ESTABLISHED tcp dpt:ftp-data     ACCEPT     tcp  --  anywhere             192.168.122.198      state NEW,RELATED,ESTABLISHED tcp dpt:ftp     ACCEPT     tcp  --  anywhere             192.168.122.198      state NEW,RELATED,ESTABLISHED tcp dpt:http      Maybe it´s helpful for system administrators which have already worked with this tools, but for me not really. The XML configuration files for the VMs are only generated. So in my opinion it´s not needed here. The server is running under Ubuntu 12.04.3 LTS. All my tryings to access it via complex ssh and vnc commands brought me only to the host machine, not to the VM. Of course I tried this locally with a ssh connection on the host machine, because I saw only class C local IPv4 address. Edit: Solved with the two answers below. The solution is to establish a ssh connection to class c ip-adresses inside the ssh session to the host machine.


Centos - executing a bash script from PHP

I have 3 scripts (I have removed the help_page function from the networkstats.sh script when I pasted here to save some space): api3.php               <?php          output = shell_exec('/bin/bash /usr/share/nginx/status/getnetworkstatsin.sh');     echo $output;          ?>      getnetworkstatsin.sh               #!/bin/bash     ssh -i /tmp/id_rsa1 root@centos7clone bash -s -- -I < ./networkstats.sh      networkstats.sh               #!/bin/bash          interface=enp0s3          read -r inbytesold outbytesold < <(awk -v dev="^$interface:" '$1 ~ dev {                   sub(/[^:]*:/,""); print $1, $9; exit }' /proc/net/dev)          sleep 1          read -r inbytesnew outbytesnew < <(awk -v dev="^$interface:" '$1 ~ dev {                   sub(/[^:]*:/,""); print $1, $9; exit }' /proc/net/dev)          kilobitsin=$(( ( ( inbytesnew - inbytesold ) * 8 ) / 1024 ))          kilobitsout=$(( ( ( outbytesnew - outbytesold ) * 8 ) / 1024 ))          show_outgoing() {     echo $kilobitsout     }          show_all() {     echo "kilobits in: $kilobitsin"     echo "kilobits out: $kilobitsout"     }          if [[ $# -eq 0 ]];     then             help_page             exit 1     fi          for arg in "$@"      do             case $arg in                     -h|--help)                     help_page                     ;;                          -I)                     show_incoming                     ;;                          -O)                     show_outgoing                     ;;                          -A|--all)                     show_all                     ;;             esac      done      The problem I have is that when I execute the api3.php script from console, it is able to execute and return a value. However when I try and execute from a webpage it fails to return anything. I believe it is not even executing when I load it via the webpage by navigating to localhost/api3.php. Can someone help, what is the reason behind this? I have added               nginx ALL=NOPASSWD: /usr/share/nginx/status/getnetworkstatsin.sh      To my visudo section, I have tried to change permissions of all files involved to 777 (temporally) without success. All these scripts are located inside /usr/share/nginx/status which nginx has access to.


Is it possible to auto translate words via scripting language?

Some words in String.log as following: English Home Wait Come Back And I want to translate words of String.log into French,like this: Anglais maison attendez venir arrière As we all know ,Google can do this,but if I have more then ten thousand words to translate,maybe do this via scripting language is more perfect. Update Question： I know about translation of a word depends heavily on context,so I just want to translate individual words, as @Gilles says,'it is a button for someone to click to switch to English'. By the way,customers need confirm translation,so it is accepted translations barely readable. Thanks for any help.


Conky - string formatting

I have conky the record:               ${color lightblue} Down: ${downspeed wlan0} Up: ${upspeed wlan0}      Conky prints link speed, but the text moves:               Down: OB  Up: OB      Down: 60B  Up: 60B     Down: 148B  Up: 148B     Down: 1KiB  Up: 1KiB     Down: 1.8KiB  Up: 1.8KiB     Down: 1.08KiB  Up: 1.08KiB     Down: 31.8KiB  Up: 31.8KiB      Based on this topic Creating Conky text variables with zero padding? I tried to format the output, but the text still moves.               ${color lightblue} Down: ${lua_parse format %7s ${downspeed wlan0}} Up: ${lua_parse format %7s ${upspeed wlan0}}      I want the printed output conky:               Down:      0B  Up:      0B     Down:     60B  Up:     60B     Down:    148B  Up:    148B     Down:    1KiB  Up:    1KiB     Down:  1.8KiB  Up:  1.8KiB     Down: 1.08KiB  Up: 1.08KiB     Down: 31.8KiB  Up: 31.8KiB


how to run new software without updating GLIBC?

I installed Mathematica 9 on an old Red Hat Enterprise Linux AS release 4 system. After the installation, I tried to start Mathematica, but following message came out: > > /home/wcbao/M/Wolfram/Mathematica/9.0/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: > /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by > /home/wcbao/M/Wolfram/Mathematica/9.0/SystemFiles/Libraries/Linux-x86-64/libML64i3.so) > > > /home/wcbao/M/Wolfram/Mathematica/9.0/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: > /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by > /home/wcbao/M/Wolfram/Mathematica/9.0/SystemFiles/Libraries/Linux-x86-64/libQtCore.so.4) I don't want to update the system glibc, because it's risky and the administrator don't allow me to do that. Someone suggested that it is possible to just install new version of glibc somewhere else, and run the program as               LD_LIBRARY_PATH=/lib/new your_application      and this will not affect the system. So I am asking here if this method really works. And if it works, I want to know how to do it step by step (I lack experience in Linux right now, and want to use Mathematica on Linux as soon as possible). **Edit** : I noticed that there is a software called "Ermine". It seems that it can deploy a software as standalone package which doesn't rely on the external environment. Unfortunately, it is a shareware. So I think since "Ermine" can do it, there must be a way to use new software on old system.


How do you output an info page to pdf?

If `man -t ls | ps2pdf - > ls.pdf` is useful for outputting the `ls` man page via `ps2pdf` to pdf, what about **info** pages? I've tried something like the following but with no success:               info -o info | ps2pdf - > info.pdf      All this does is output a blank pdf file called info.pdf and output the body into a text file.


USB3 Hard Drive Not Recognised by Linux

My external USB 3 hard drive is behaving very strangely:   * If I plug it into a USB 2 port, it works fine   * If I plug it into a USB 3 port, it doesn't work at all. It's not even mentioned in `/var/log/messages`.   * If I plug a USB 2 device (memory stick) into the same USB 3 port, it works fine.   * I _think_ the USB 3 drive is mentioned in `dmesg` during boot up when it's plugged into the USB 3 port, but it's hard to tell. There are no clear device names listed, just serial ids etc. The last time I used it on this machine, everything was alright, but that was at least a month ago. Since then I've gone through a few kernel upgrades and a number of package updates. My guess is something went wrong in the process, so I'm here to try and narrow that down. Useful information:   * I'm running Gentoo (kernel version: 3.7.4-gentoo)   * `CONFIG_USB_STORAGE` is enabled in the kernel (obviously, since USB 2 works)   * `CONFIG_USB_XHCI_HCD` is also enabled in the kernel The hardware involved is:   * Lenovo X1 laptop   * WD 1tb portable drive. There's no external power options, and I've never needed one (when it was working)


Why does wlan1 not get a static IP?

I have a Raspberry Pi with two USB wlan adapters. wlan0 is configured with DHCP and wlan1 is configured with a static IP address and hostapd (access point) is running on this interface. The adapter supports master mode. But wlan1 never gets it's IP address after boot and the network does not work properly. Any clues to why? /etc/network/interfaces looks like this:               auto lo          iface lo inet loopback          iface default inet dhcp          auto eth0     allow-hotplug eth0     iface eth0 inet static      address 192.168.2.201      netmask 255.255.255.0          auto wlan0     allow-hotplug wlan0     iface wlan0 inet manual     wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf          auto wlan1     iface wlan1 inet static     address 10.0.0.1     netmask 255.255.255.0      Directly after booting the RPi, **ifconfig** returns the following:               eth0      Link encap:Ethernet  HWaddr b8:27:eb:47:0d:a5           inet addr:192.168.2.201  Bcast:192.168.2.255  Mask:255.255.255.0           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:102 errors:0 dropped:1 overruns:0 frame:0           TX packets:91 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:11281 (11.0 KiB)  TX bytes:15674 (15.3 KiB)          lo        Link encap:Local Loopback           inet addr:127.0.0.1  Mask:255.0.0.0           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)          mon.wlan1 Link encap:UNSPEC  HWaddr 54-E6-FC-89-BE-4B-00-00-00-00-00-00-00-00-00-00           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:2665 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:810921 (791.9 KiB)  TX bytes:0 (0.0 B)          wlan0     Link encap:Ethernet  HWaddr 80:1f:02:84:f8:3f           UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:12 errors:0 dropped:14 overruns:0 frame:0           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:3672 (3.5 KiB)  TX bytes:1106 (1.0 KiB)          wlan1     Link encap:Ethernet  HWaddr 54:e6:fc:89:be:4b           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)      As you can see wlan1 is not assigned the expected 10.0.0.1 address. If I issue ifdown and then ifup it will get the IP address. The command **ip link** shows this before doing ifdown/ifup:               4: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000      and this afterwards:               4: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000      Any help is appreciated.


Plymouth keeps quitting

I'm setting up a customised single-purpose Linux image. It's based on OpenSUSE, and it uses Plymouth to display some nice graphics during startup and shutdown. The trouble is, for reasons beyond my comprehension, the Plymouth display keeps turning off. I need to prevent this from happening. In particular, if I shutdown or reboot while X11 is running, Plymouth displays for 6ms and then I get a black terminal screen that says `Starting LSB: X Window Display Manager [ OK ]`. But if I press Ctrl+Alt+F1 to switch to one of the vterms and _then_ issue a shutdown or reboot command, Plymouth displays perfectly. Similarly, when the OS is first installed, I've set a script to run which reconfigure the OS, and then reboots it. The script also writes various messages to the Plymouth screen to indicate that something is actually happening. Trouble is, about half way through this process, Plymouth just quits, revealing a terminal full of random text. And then when the system reboots, Plymouth comes back. But I don't want it to ever close! Does anybody know how I can fix these issues? Where to look for further troubleshooting? Anywhere that has any documentation for how Plymouth works?


Bash history in script: `!#:*`

I have been reading through the study guides for the LPIC-1.               echo "This is a sentence. " !#:* !#:1->text3      I'm having trouble understanding how the above line of code repeats the `echo` command multiple times. I know that it is using a feature of `bash`'s history but I can't find any documentation on `!#:*` or `!#:1`. Could someone explain this for me?


Can't mount drive in Thunar anymore

Today, I got a `Not authorized to perform operation.` message when I tried to mount a drive in Thunar.               # cat /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla      [Local Users]     Identity=unix-group:storage     Action=org.freedesktop.udisks2.*     ResultAny=yes     ResultInactive=no     ResultActive=yes      I'm in the `storage` group.


Debian kernel package update freezes

So I have a Debian squeeze i386 install, and I'm trying to update to 3.2. I added the sources to the backports, I updated apt-get, I installed the `firmware-linux-free`, and when I try to install the image it freezes. It prompts me to say yes, and seems to finish, but rather than returning to the console, it just displays this screen that says:               * Some HP Smart Array controllers are now handled by the new 'hpsa' driver, rather than the 'cciss' driver.          ...          blah blah blah some boring stuff          ...          -- Ben Hutchings <ben@decadent.org.uk> Wed, 16 Mar 2011 13:19:34 +0000          (END)      I read somewhere that this happens if you don't have the non-free firmware, which I installed. It still doesn't work. The computer is an HP(which is apparently the type of computers that have these problems). Does anybody know what I'm doing wrong? Maybe it's something entirely different, I've never updated the kernel before.


Message while booting : “can't allocate mem resource [0xc0000000-0xbfffffff]”

I get the following message on the console every time the Linux kernel boots:               pci 0000:00:00.0: BAR 0: can't allocate mem resource [0xc0000000-0xbfffffff]      Is this an error message? What causes this message? I am using Linux 2.6 kernel running on PowerPC (P2020). Updating the question with the output of lspci and content of /proc/iomem `lspci`:               0000:00:00.0 Class 0604: Unknown device 1957:0070 (rev 20)     0000:01:00.0 Class 0200: Unknown device 14e4:1692 (rev 01)     0001:02:00.0 Class 0604: Unknown device 1957:0070 (rev 20)     0001:03:00.0 Class 0200: Unknown device 14e4:1692 (rev 01)      `/proc/iomem`:               a0000000-bfffffff : /pcie@ffe09000     a0000000-bfffffff : PCI Bus 0000:01     a0000000-a000ffff : 0000:01:00.0     a0000000-a000ffff : tg3     c0000000-dfffffff : /pcie@ffe0a000     c0000000-dfffffff : PCI Bus 0001:03     c0000000-c000ffff : 0001:03:00.0     c0000000-c000ffff : tg3     ffe04500-ffe04507 : serial     ffe04600-ffe04607 : serial     ffe07000-ffe07fff : spi     ffe24000-ffe24fff : ethernet     ffe24520-ffe2453f : mdio     ffe25000-ffe25fff : ethernet


How on earth can I stop this CUPS-related message on my Debian 6 virtual machine?

I’ve got a Debian 6 VMWare virtual machine that I mostly use via SSH (but occasionally via the GUI). Every few minutes, the following message gets printed in my terminal:               CUPS config timestamp change detected but old config retrieved via interface!      For a while, I ignored it. Then, I uninstalled CUPS:               $ sudo apt-get remove cups     $ sudo apt-get autoremove      and restarted. I’m still getting the message. How on earth can I stop it? I’m never, ever going to want to print from this machine.


How does the sticky bit work?

SUID The _sticky bit_ applied to executable programs flagging the system to keep an image of the program in memory after the program finished running. But I don't know that what it's stored in memory. And how I can see them, in this case.?


Chaining commands within `watch`

Ok, this is driving me a bit nuts. I'm trying to watch the number of files in a set of subdirectories. `find . | wc -l` correctly returns the number of sub-folders and files. However, `watch 'find . | wc -l'` returns ` watch: find . | wc -l: No such file or directory` in the watch screen.   It returns the same with double-quotes, or backquotes (`). * * * This is on an **ancient** version of bash:   `GNU bash, version 3.00.16(2)-release (i486-slackware-linux-gnu)   Copyright (C) 2004 Free Software Foundation, Inc.` This is also an embedded device, so it's running busybox (`BusyBox v1.1.0 (2010.06.14-02:47+0000) multi-call binary`) rather then the normal gnu utils, so most of the switches and functionality of most of the common tools is not there either. So that has to be taken into account. However, the linux install is baked onto a disk-on-module, so there is no easy way to update it. The same command (`watch 'find . | wc -l'`) works correctly on a more recent linux install, so this question is more about dealing with out-of-date bash then what is wrong with this exact snippet (since it _seems to be correct elsewhere!_ ).


How do I install multiple java command-line programs?

I have a bunch of java command-line programs I've written and would like to install for all users. Building with NetBeans, I get a `/dist` directory which contains `myprog1.jar` and a `/libs` directory with all the necessary libraries. The usual method to run is to go there and `java -jar my.jar -options`. So what I'd like to do is just type `myprog1 -options` from anywhere and have it run. The method I have thought of is:   1. Create `/opt/myjava/myprog1` which contains `myprog1.jar` and its `/libs`.   2. Create a bash script `myprog1` in `/usr/local/bin` which simply redirects all of the command line args to `java -jar /opt/myjava/myprog1/myprog1.jar` I'm not too keen on bash scripting... if this is a reasonable method, what would that script look like, given that each program has a variable number and order of arguments? Does the script have to also worry about standard Unix bits such as output redirect `>` and pipes `|`?


Find the process id of a java application in a bash script (to see if the target application is already running)

I know there are a million questions on getting the process ID, but this one seems to be unique. Google has not given me the answer, so I hope stackexhange will help rather than close this question. When Java is involved it seems trickier to find a process ID (pgrep doesn't work afaik). Furthermore, I need to automate this in a bash script. One issue I've encountered is that when I use `ps aux | grep` the grep process itself always shows up, so handling the results in a simple bash script is not trivial enough for me to figure out a good solution on my own (with my limited bash skills). Some things I have tried: Example 1 - this returns a process even though there is no application by that name:               $ ps aux | grep -i anythingnotreal     user2   3040  0.0  0.0   4640   856 pts/3    S+   18:17   0:00 grep --color=auto -i anythingnotreal      Example 2 - this returns nothing even though "java_app" is currently running:               $ pgrep java_app      It returns nothing. However, here's proof that "java_app" is running:               $ ps aux | grep java_app     tester2   2880  0.7  2.8 733196 58444 ?        Sl   18:02   0:07 java -jar /opt/java_app2/my_java_app.jar     tester2   3058  0.0  0.0   4644   844 pts/3    S+   18:19   0:00 grep --color=auto java_app      What I need is a solution I can plug into a bash script that will tell me if the java application of interest (for which I know the jar file name and path) is currently running. (If it is running, I need to ask the user to close it before my script continues.)


Is collectd able to send data tagged as a host other than itself?

I log various stats both generic and custom from a lot of different servers using `collectd` to a single host running a network listener. The setup is pretty simple. All the systems run an instance of collectd. The collection server runs the rrdtool plugin to save the data and runs the network plugin in server mode to keep a port open and collect stuff from everybody else. All the other servers don't have any write plugins and just run the _network_ in client mode to pass on the data they collectd. The nice thing about this setup is that all the data written by `rrdtool` comes in a nice consistent file structure that is easy to process for graphs and other monitors. This works great for a simple layout with one hub that everybody can send to. I am now trying to configure a more complex setup. Still using the same central server and clients, the daemon running one of those clients is able to gather stats for several hosts other than itself that are unable to run the `collectd` daemon itself.                 A      /|\     B C D       |\       E F      I am able to setup the configs on C such that it reports the stats that it gathered from E and F. That much works. What I can't do is get C to report that data under several different hostnames. All the data it sends is labeled with it's own host, which is incorrect. How can I identify some of the _Plugin_ or _Type_ blocks in the `collectd.conf` to report themselves as belonging to a different host than the machine running the daemon?


How do i fix the to address when forwarding with mail/exim?

I am using debian squeeze (i believe, the box doesnt really say) i config exim4 to use gmail and put `root: someuser` in `/etc/aliases` then put my email address (name+box@gmail.com) in `.forward` I receive the email however the from is user@mysite.com which is correct and the to is `root@localhost` or `anotherUser@localhost` with name+box mentioned nowhere. I wanted to write a filter so all emails to name+box@gmail.com will be tagged as something but my name is not mentioned and it goes directly to spam How do i modify this so my name shows up in the email address?


Encrypt IP payload + URL

I need to encrypt IP payload + request URL so that my ISP can't understand my requests. Do you know any project such as `zebedee` except VPNs? Tor doesn't work with my ISP, because SSL was banned, so systems corresponding to Socks don't work.


"Wrong version of libnet" when configuring nemesis

Whenever I try to configure Nemesis it stops at "checking libnet version....no" and claims I have the wrong version. I have checked my libnet folder to make sure, and I do have the right version. Version 1.0.2a. So why is it believing that I have the wrong version? Configuration session:               dividan-System nemesis-1.4 # ./configure --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include --with-libnet-libraries=/usr/nembuild/Libnet-1.0.2a/lib     checking for a BSD-compatible install... /usr/bin/install -c     checking whether build environment is sane... yes     checking for gawk... gawk     checking whether make sets $(MAKE)... yes     checking build system type... x86_64-unknown-linux-gnu     checking host system type... x86_64-unknown-linux-gnu     checking for style of include used by make... GNU     checking for gcc... gcc     checking for C compiler default output file name... a.out     checking whether the C compiler works... yes     checking whether we are cross compiling... no     checking for suffix of executables...      checking for suffix of object files... o     checking whether we are using the GNU C compiler... yes     checking whether gcc accepts -g... yes     checking for gcc option to accept ANSI C... none needed     checking dependency style of gcc... none     checking for gcc option to accept ANSI C... none needed     checking for gcc... (cached) gcc     checking whether we are using the GNU C compiler... (cached) yes     checking whether gcc accepts -g... (cached) yes     checking for gcc option to accept ANSI C... (cached) none needed     checking dependency style of gcc... (cached) none     checking how to run the C preprocessor... gcc -E     checking for egrep... grep -E     checking whether gcc needs -traditional... no     checking for an ANSI C-conforming const... yes     checking for gawk... (cached) gawk     checking for a BSD-compatible install... /usr/bin/install -c     checking whether ln -s works... yes     checking for fabs in -lm... yes     checking for inet_ntoa in -lnsl... yes     checking for socket in -lsocket... no     checking for hstrerror in -lresolv... yes     checking for libnet_build_ip in -lnet... yes     checking for ANSI C header files... yes     checking whether time.h and sys/time.h may both be included... yes     checking for sys/types.h... yes     checking for sys/stat.h... yes     checking for stdlib.h... yes     checking for string.h... yes     checking for memory.h... yes     checking for strings.h... yes     checking for inttypes.h... yes     checking for stdint.h... yes     checking for unistd.h... yes     checking for unistd.h... (cached) yes     checking errno.h usability... yes     checking errno.h presence... yes     checking for errno.h... yes     checking for strings.h... (cached) yes     checking netdb.h usability... yes     checking netdb.h presence... yes     checking for netdb.h... yes     checking limits.h usability... yes     checking limits.h presence... yes     checking for limits.h... yes     checking machine/endian.h usability... no     checking machine/endian.h presence... no     checking for machine/endian.h... no     checking sys/time.h usability... yes     checking sys/time.h presence... yes     checking for sys/time.h... yes     checking sys/param.h usability... yes     checking sys/param.h presence... yes     checking for sys/param.h... yes     checking arpa/inet.h usability... yes     checking arpa/inet.h presence... yes     checking for arpa/inet.h... yes     checking netinet/in.h usability... yes     checking netinet/in.h presence... yes     checking for netinet/in.h... yes     checking libnet.h usability... no     checking libnet.h presence... no     checking for libnet.h... no             ERROR!  Libnet header not found, go get it from        http://www.packetfactory.net/projects/libnet/        or use the --with-libnet-* options, if you have it installed        in unusual place     dividan-System nemesis-1.4 #      Guide I followed exactly - http://insecurety.net/?p=54 After more attempts, the guide stops at "checking for libnet.h" instead of checking the version. I have checked where it is talking about and yes there is a `libnet.h` file in it. `config.log` extracts (full text: http://pastebin.com/dgb4BjBq):               This file contains any messages produced by compilers while     running configure, to aid debugging if configure makes a mistake.          It was created by configure, which was     generated by GNU Autoconf 2.59.  Invocation command line was            $ ./configure --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include --with-libnet-libraries=/usr/nembuild/Libnet-1.0.2a/lib          …          configure:5276: checking libnet.h usability     configure:5288: gcc -c -g -O2 -Wall -funroll-loops -pipe  -I/usr/nembuild/Libnet-1.0.2a/include -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/local/include -I/sw/include conftest.c >&5     In file included from conftest.c:70:0:     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:87:8: warning: missing terminating " character [enabled by default]     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:87:2: error: #error "byte order has not been specified, you'll     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:88:1: error: unknown type name 'need'     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:88:1: error: stray '#' in program     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:88:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'define'     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:88:10: error: unknown type name 'define'     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:89:50: warning: missing terminating " character [enabled by default]     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:89:1: error: missing terminating " character     configure:5294: $? = 1     configure: failed program was:     | /* confdefs.h.  */     |      | #define PACKAGE_NAME ""     | #define PACKAGE_TARNAME ""     | #define PACKAGE_VERSION ""     | #define PACKAGE_STRING ""     | #define PACKAGE_BUGREPORT ""     | #define PACKAGE "nemesis"     | #define VERSION "1.4"     | #define LINUX 1     | #define HAVE_LIBM 1     | #define HAVE_LIBNSL 1     | #define HAVE_LIBRESOLV 1     | #define HAVE_LIBNET 1     | #define STDC_HEADERS 1     | #define TIME_WITH_SYS_TIME 1     | #define HAVE_SYS_TYPES_H 1     | #define HAVE_SYS_STAT_H 1     | #define HAVE_STDLIB_H 1     | #define HAVE_STRING_H 1     | #define HAVE_MEMORY_H 1     | #define HAVE_STRINGS_H 1     | #define HAVE_INTTYPES_H 1     | #define HAVE_STDINT_H 1     | #define HAVE_UNISTD_H 1     | #define HAVE_UNISTD_H 1     | #define HAVE_ERRNO_H 1     | #define HAVE_STRINGS_H 1     | #define HAVE_NETDB_H 1     | #define HAVE_LIMITS_H 1     | #define HAVE_SYS_TIME_H 1     | #define HAVE_SYS_PARAM_H 1     | #define HAVE_ARPA_INET_H 1     | #define HAVE_NETINET_IN_H 1     | /* end confdefs.h.  */     | #include <stdio.h>     | #if HAVE_SYS_TYPES_H     | # include <sys/types.h>     | #endif     | #if HAVE_SYS_STAT_H     | # include <sys/stat.h>     | #endif     | #if STDC_HEADERS     | # include <stdlib.h>     | # include <stddef.h>     | #else     | # if HAVE_STDLIB_H     | #  include <stdlib.h>     | # endif     | #endif     | #if HAVE_STRING_H     | # if !STDC_HEADERS && HAVE_MEMORY_H     | #  include <memory.h>     | # endif     | # include <string.h>     | #endif     | #if HAVE_STRINGS_H     | # include <strings.h>     | #endif     | #if HAVE_INTTYPES_H     | # include <inttypes.h>     | #else     | # if HAVE_STDINT_H     | #  include <stdint.h>     | # endif     | #endif     | #if HAVE_UNISTD_H     | # include <unistd.h>     | #endif     | #include <libnet.h>     configure:5317: result: no     configure:5321: checking libnet.h presence     configure:5331: gcc -E  -I/usr/nembuild/Libnet-1.0.2a/include -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/local/include -I/sw/include conftest.c     In file included from conftest.c:36:0:     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:87:8: warning: missing terminating " character [enabled by default]     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:87:2: error: #error "byte order has not been specified, you'll     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:89:50: warning: missing terminating " character [enabled by default]     configure:5337: $? = 1     configure: failed program was:     | /* confdefs.h.  */     |      | #define PACKAGE_NAME ""     | #define PACKAGE_TARNAME ""     | #define PACKAGE_VERSION ""     | #define PACKAGE_STRING ""     | #define PACKAGE_BUGREPORT ""     | #define PACKAGE "nemesis"     | #define VERSION "1.4"     | #define LINUX 1     | #define HAVE_LIBM 1     | #define HAVE_LIBNSL 1     | #define HAVE_LIBRESOLV 1     | #define HAVE_LIBNET 1     | #define STDC_HEADERS 1     | #define TIME_WITH_SYS_TIME 1     | #define HAVE_SYS_TYPES_H 1     | #define HAVE_SYS_STAT_H 1     | #define HAVE_STDLIB_H 1     | #define HAVE_STRING_H 1     | #define HAVE_MEMORY_H 1     | #define HAVE_STRINGS_H 1     | #define HAVE_INTTYPES_H 1     | #define HAVE_STDINT_H 1     | #define HAVE_UNISTD_H 1     | #define HAVE_UNISTD_H 1     | #define HAVE_ERRNO_H 1     | #define HAVE_STRINGS_H 1     | #define HAVE_NETDB_H 1     | #define HAVE_LIMITS_H 1     | #define HAVE_SYS_TIME_H 1     | #define HAVE_SYS_PARAM_H 1     | #define HAVE_ARPA_INET_H 1     | #define HAVE_NETINET_IN_H 1     | /* end confdefs.h.  */     | #include <libnet.h>     configure:5357: result: no     configure:5392: checking for libnet.h     configure:5399: result: no          ## ---------------- ##     ## Cache variables. ##     ## ---------------- ##          ac_cv_build=x86_64-unknown-linux-gnu     ac_cv_build_alias=x86_64-unknown-linux-gnu     ac_cv_c_compiler_gnu=yes     ac_cv_c_const=yes     ac_cv_env_CC_set=     ac_cv_env_CC_value=     ac_cv_env_CFLAGS_set=     ac_cv_env_CFLAGS_value=     ac_cv_env_CPPFLAGS_set=     ac_cv_env_CPPFLAGS_value=     ac_cv_env_CPP_set=     ac_cv_env_CPP_value=     ac_cv_env_LDFLAGS_set=     ac_cv_env_LDFLAGS_value=     ac_cv_env_build_alias_set=     ac_cv_env_build_alias_value=     ac_cv_env_host_alias_set=     ac_cv_env_host_alias_value=     ac_cv_env_target_alias_set=     ac_cv_env_target_alias_value=     ac_cv_exeext=     ac_cv_header_arpa_inet_h=yes     ac_cv_header_errno_h=yes     ac_cv_header_inttypes_h=yes     ac_cv_header_libnet_h=no     ac_cv_header_limits_h=yes     ac_cv_header_machine_endian_h=no     ac_cv_header_memory_h=yes     ac_cv_header_netdb_h=yes     ac_cv_header_netinet_in_h=yes     ac_cv_header_stdc=yes     ac_cv_header_stdint_h=yes     ac_cv_header_stdlib_h=yes     ac_cv_header_string_h=yes     ac_cv_header_strings_h=yes     ac_cv_header_sys_param_h=yes     ac_cv_header_sys_stat_h=yes     ac_cv_header_sys_time_h=yes     ac_cv_header_sys_types_h=yes     ac_cv_header_time=yes     ac_cv_header_unistd_h=yes     ac_cv_host=x86_64-unknown-linux-gnu     ac_cv_host_alias=x86_64-unknown-linux-gnu     ac_cv_lib_m_fabs=yes     ac_cv_lib_net_libnet_build_ip=yes     ac_cv_lib_nsl_inet_ntoa=yes     ac_cv_lib_resolv_hstrerror=yes     ac_cv_lib_socket_socket=no     ac_cv_objext=o     ac_cv_path_install='/usr/bin/install -c'     ac_cv_prog_AWK=gawk     ac_cv_prog_CPP='gcc -E'     ac_cv_prog_ac_ct_CC=gcc     ac_cv_prog_cc_g=yes     ac_cv_prog_cc_stdc=     ac_cv_prog_egrep='grep -E'     ac_cv_prog_gcc_traditional=no     ac_cv_prog_make_make_set=yes     am_cv_CC_dependencies_compiler_type=none     am_cv_prog_cc_stdc=          ## ----------------- ##     ## Output variables. ##     ## ----------------- ##          ACLOCAL='${SHELL} /usr/nembuild/nemesis-1.4/missing --run aclocal-1.6'     AMDEPBACKSLASH='\'     AMDEP_FALSE='#'     AMDEP_TRUE=''     AMTAR='${SHELL} /usr/nembuild/nemesis-1.4/missing --run tar'     AUTOCONF='${SHELL} /usr/nembuild/nemesis-1.4/missing --run autoconf'     AUTOHEADER='${SHELL} /usr/nembuild/nemesis-1.4/missing --run autoheader'     AUTOMAKE='${SHELL} /usr/nembuild/nemesis-1.4/missing --run automake-1.6'     AWK='gawk'     CC='gcc'     CCDEPMODE='depmode=none'     CFLAGS='-g -O2 -Wall -funroll-loops -pipe'     CPP='gcc -E'     CPPFLAGS=' -I/usr/nembuild/Libnet-1.0.2a/include -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/local/include -I/sw/include'     DEFS=''     DEPDIR='.deps'     ECHO_C=''     ECHO_N='-n'     ECHO_T=''     EGREP='grep -E'     EXEEXT=''     INCLUDES=''     INSTALL_DATA='${INSTALL} -m 644'     INSTALL_PROGRAM='${INSTALL}'     INSTALL_SCRIPT='${INSTALL}'     INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'     LDFLAGS=''     LIBOBJS=''     LIBS='-lnet -lresolv -lnsl -lm  -L/usr/nembuild/Libnet-1.0.2a/lib '     LN_S='ln -s'     LTLIBOBJS=''     MAKEINFO='${SHELL} /usr/nembuild/nemesis-1.4/missing --run makeinfo'     OBJEXT='o'     PACKAGE='nemesis'     PACKAGE_BUGREPORT=''     PACKAGE_NAME=''     PACKAGE_STRING=''     PACKAGE_TARNAME=''     PACKAGE_VERSION=''     PATH_SEPARATOR=':'     SET_MAKE=''     SHELL='/bin/bash'     STRIP=''     VERSION='1.4'     ac_ct_CC='gcc'     ac_ct_STRIP=''     am__include='include'     am__quote=''     bindir='${exec_prefix}/bin'     build='x86_64-unknown-linux-gnu'     build_alias=''     build_cpu='x86_64'     build_os='linux-gnu'     build_vendor='unknown'     datadir='${prefix}/share'     exec_prefix='NONE'     host='x86_64-unknown-linux-gnu'     host_alias=''     host_cpu='x86_64'     host_os='linux-gnu'     host_vendor='unknown'     includedir='${prefix}/include'     infodir='${prefix}/info'     install_sh='/usr/nembuild/nemesis-1.4/install-sh'     libdir='${exec_prefix}/lib'     libexecdir='${exec_prefix}/libexec'     localstatedir='${prefix}/var'     mandir='${prefix}/man'     oldincludedir='/usr/include'     prefix='/usr/local'     program_transform_name='s,x,x,'     sbindir='${exec_prefix}/sbin'     sharedstatedir='${prefix}/com'     sysconfdir='${prefix}/etc'     target_alias=''          ## ----------- ##     ## confdefs.h. ##     ## ----------- ##          #define HAVE_ARPA_INET_H 1     #define HAVE_ERRNO_H 1     #define HAVE_INTTYPES_H 1     #define HAVE_LIBM 1     #define HAVE_LIBNET 1     #define HAVE_LIBNSL 1     #define HAVE_LIBRESOLV 1     #define HAVE_LIMITS_H 1     #define HAVE_MEMORY_H 1     #define HAVE_NETDB_H 1     #define HAVE_NETINET_IN_H 1     #define HAVE_STDINT_H 1     #define HAVE_STDLIB_H 1     #define HAVE_STRINGS_H 1     #define HAVE_STRINGS_H 1     #define HAVE_STRING_H 1     #define HAVE_SYS_PARAM_H 1     #define HAVE_SYS_STAT_H 1     #define HAVE_SYS_TIME_H 1     #define HAVE_SYS_TYPES_H 1     #define HAVE_UNISTD_H 1     #define HAVE_UNISTD_H 1     #define LINUX 1     #define PACKAGE "nemesis"     #define PACKAGE_BUGREPORT ""     #define PACKAGE_NAME ""     #define PACKAGE_STRING ""     #define PACKAGE_TARNAME ""     #define PACKAGE_VERSION ""     #define STDC_HEADERS 1     #define TIME_WITH_SYS_TIME 1     #define VERSION "1.4"          configure: exit


can't decompress .tgz using gunzip

I was able to archive and compress a folder with the following command:               tar -cvfz example2.tgz example1      I then removed the example1 folder and tried to unpack the archive using this command:               tar -xvfz example2.tgz       and tried               tar -zxvf example2.tgz       Niether of these commands worked. The error returned was:               gzip: example2.tgz: not in gzip format     tar: This does not look like a tar archive     tar: Exiting with failure status due to previous errors      It clearly used gzip compression since I passed tar the `z` qualifier in the initial command. What am I doing wrong? I am on Ubuntu 14.0.4


after ssh login and during apt-get update, is it wrong to suddenly logout?

there's a raspberry pi that I ssh logged into it works fine and then I `sudo apt-get update`ed it. during the process, I just turned off the terminal thinking that the update process should be running on its own... but after that, I tried to login again and it doesn't work. Was it wrong for me to suddenly log out like that? How can I make my raspberry do stuff even though I'm logged out?


Difference between ctime 1 and ctime +1 in find command

If I run the following command:               find . -name "*.jar" -type f -ctime +1      I get no results back, whereas if i run:               find . -name "*.jar" -type f -ctime 1      I get results.


How to hold <Caps Lock> when it sends a single event on key press and release?

Using the keyboard of a Macintosh IIcI (~1990) with remapping of the `Caps Lock` key to `Ctrl` in Xorg, it is impossible to use it, as holding it does not send events persistently. When holding other keys like `Ctrl` and reading from the keyboard's `/dev/input/`... device, I see data is constantly sent to the computer; but when holding `Caps Lock`, a single event is sent, then nothing, until I release `Caps Lock`, when another single event is sent. After testing with my previous keyboard I was able to confirm it does not have the same behavior; holding its `Caps Lock` key makes it send data constantly until the key is released. Is there a way I can configure Xorg to take this into account to allow me to remap my keys and save my pinky from Emacs? * * * In case someone asks, this is not related to the Xmodmap configuration; that works.


How to find and replace files contents that match a pattern?

Suppose we have a folder named _Project_. I would like find each file in the folder that contains the pattern `&$` at the function call. For example should replace:               AnyFunction(&$arg);      with               AnyFunction($arg);      Where `AnyFunction` is an unknown function that matches the pattern. I need this to try to solve this php problem. If possible I would like too, if a function matchs the pattern, its declaration changes too:               function AnyFunction(&$arg)      How can I perform this?


Copy/Backup all files except the most recent through scp

I have a program that is running on multiple machines and which is writing the results to `~/data/machine_name/`, each time the results file exceeds 1MB the program moves on and write to a new file. (All machines have the same directory architecture). I want to do an automatic backup of these files in case one of the machines fail. Knowing that the most recent accessed file is the one being written by the program, and hence, I would copy all the old files except this one. The next time the backup job fires, the most recent file omitted in the previous backup will be included and so on.. Right now I am using only a simple `scp` command, which copies even the file being open by the remote machine. Is there anyway to achieve this? a command line utility or a script for such a job?


tr command not working with octal sequences

I need to strip non-ASCII characters off a file. I was using the command - ` /usr/xpg4/bin/tr -cd '\0-\177' `<non-ASCII_file.dat` >ASCII_file.dat` Though it worked in the past, it is not working now. It is now stripping off all the alphabet along with non-ASCII characters. The only characters being left in the ASCII file are numbers and special characters in the ASCII set. OS is Solaris 9. What could be causing this issue? Is the Octal range being interpreted incorrectly? Something to do with my environment?


Grub2 RAID /boot

I'm using Gentoo on my HomeServer. My HDDs are raid1 mirrored with mdadm. My problem is how to boot the /boot partition correct?               /dev/md1 consists of /dev/sdc2 & /dev/sdd2 mounted on /boot      In my `grub.cfg` I have the uuid of `/dev/md1` but at boot time the array is of course not ready. simplest way would be to un-raid the /boot partitions, but that is not what I want to do. so, how do i find out the UUID of the raid members? `ls -l /dev/disk/by-uuid` only shows me the uuid of `/dev/md1`. And when I unraid the disks, I cannot mount them to get their UUID `mount: unknown filesystem type 'linux_raid_member'` so how can I let Grub2 boot those disks, will it be able to determine the contents before they are in raid? (they are in fact ext2). I should maybe add that I use gpt partition tables, therefore I have a small partition `/dev/sdc1 and /dev/sdd1` on both drives to host the bios_grub partition. those are not raided atm. As pointed out in the comments below Gilles' answer my problem persists. Grub won't find the device, telling me               error: no such device: 9f81a-(device uuid)-5580.     entering rescue mode...     grub rescue>       afterwards I added the lines               insmod part_msdos     insmod part_gpt     insmod raid     insmod mdraid      to my grub.cfg, just above the line where root is defined `root='(md0)'` I still get the same error. I did some more research and i really guess its an error related to the uuids:               # grub-probe -d --target=fs_uuid /dev/md1     9f81a35d-0813-481f-9ae0-e4fba57c5580     # blkid     /dev/sdc2: UUID="11adb545-0e80-61d1-61f6-565f18e8c3f0" UUID_SUB="88826c5e-d12b-307d-6e54-556d1ebb2458" LABEL="livecd:1" TYPE="linux_raid_member"     /dev/sdd2: UUID="11adb545-0e80-61d1-61f6-565f18e8c3f0" UUID_SUB="15150fb2-5066-edba-d39b-08b63219453c" LABEL="livecd:1" TYPE="linux_raid_member"     /dev/md1: UUID="9f81a35d-0813-481f-9ae0-e4fba57c5580" TYPE="ext2"     (I cut away the other drives here)      as you can see both partitions have the same UUID, so I edited the UUID of the drives in my grub.cfg and did `grub-install /dev/sdx` again, but I still get the error with the "old" /dev/md1 UUID.


TP-Link WN321G USB wlan  in VirtualBox Ubuntu guest

I am trying wifi usb stick tp-link wn321g @ ubuntu 11.04 (in virtualbox), so far I was able to scan the air, connect to a wpa2 network and do some basic information gathering using airodump-ng Now when it comes to packet injection, seems that firmware is not capable. to be more specific, I am locking the wlan0 to a specific channel for `aireplay- ng` and it ignores me completely, setting channel to -1               root@delta:~# iwconfig wlan0 channel 1     root@delta:~# airmon-ng start wlan0 1     Interface       Chipset         Driver          wlan0           Unknown         rt2800usb - [phy0]                                     (monitor mode enabled on mon0)     root@delta:~# iwconfig wlan0     wlan0 IEEE 802.11bg  ESSID:off/any           Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated           Tx-Power=20 dBm           Retry  long limit:7   RTS thr:off   Fragment thr:off           Encryption key:off           Power Management:on      airodump-ng -c1 mon0      CH  1 ][ Elapsed: 8 s ][ 2011-07-27 17:22 ][ fixed channel mon0: -1           BSSID              PWR RXQ  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID                BSSID              STATION            PWR   Rate    Lost  Packets  Probes          root@delta:~# aireplay-ng -0 1 -a 00:26:18:D8:CC:89 -c 00:1E:65:7B:81:34 mon0     17:43:56  Waiting for beacon frame (BSSID: 00:26:18:D8:CC:89) on channel -1     17:44:02  mon0 is on channel -1, but the AP uses channel 1     root@delta:~#      I have tried different modules ( rt2800usb, rt2870sta ) rt2800usb works for airodump-ng and information gathering, rt2870sta works with `wpa_supplicant` for network connection - not the other way around for some reason. Does anyone have an experience with this wifi card / chipset / firmware and successfully used aircrack suite for pen testing? below some specific data :               root@delta:~# uname -a     Linux delta 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 i686 i386 GNU/Linux          root@delta:~# lsusb     Bus 002 Device 002: ID 80ee:0021     Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub          Bus 001 Device 002: ID 148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub     root@delta:~# lsmod |grep ^rt     rt2800usb              22184  0     rt2800lib              52239  1 rt2800usb     rt2x00usb              19915  1 rt2800usb     rt2x00lib              47674  3 rt2800usb,rt2800lib,rt2x00usb


Fedora 15 address collision on Compaq CQ41?

I keep getting an address collision warning at boot time, between ACPI and Video Rom. If I add `acpi=off` to `grub.conf` the error goes away, but then I have no power management (battery icon, proper shutdown, etc.). Anyone know the cause or a possible solution?


Reading SIM data via file managers using USB datamodem

How to browse a GSM SIM card's filesystem in Linux / nautilus / pcmanfm filemanager, and read the files with suitable editors ? There is one related post: Howto read SMS stored on a SIM card? But this is related to reading the card via mobiles and synching it with computers. Could you direct me to appropriate links please? I have already read the link: How to access a SIM card programatically? The post contains no link related to my issue. The links are on different issue, useful for Windows computers. I use Linux systems only The SIM card is inserted into my Huawei USB datamodem e1731. Can I read it from there? I do not wish to buy a SIM card reader. Further, while researching about various linux packages that could potentially do this I came across the following: comex, Monosim, SIM_Brush, google_talk, minicom pysim_reader, wammu_gammu I tried with minicom but failed to make much headway. I have not read about anyone who has implemented these packages with success. My ultimate plan is to use the USB-datacard I have to make and receive phone calls using a close-talk microphone, and read and write SMSes. I posted my idea in the Debian and Knoppix forums, but have not heard anything positive. If Mobile-> Internet access Modem, why not datacard->mobile Voice call with softmodem, tel_Line & close-talk headset If Mobile-> Internet access Modem, why not datacard->mobile Is voice call possible through USBmodem with minicom? Then there is also Asterisk and Amatisoft. Since I have very little bandwidth at present I can't experiment with these packages. I have knoppix and I could experiment with it (that way I ensure that my system is not damaged while experimenting), had I some bandwidth. I have just about enough to read and write emails and posts in forums. I have had a detailed discussion with Amatisoft when I requested the company to have the live CD file released via rsync or torrent file. The company said that it does not wish to compromise security running rsync in their server. The company has remained mum on the torrent file. In the meanwhile, the amatixoffice was downloaded with kget last month, but the file is corrupt (minor). Had there been rsync running in their servers I would have had no difficulty in downloading the minor correction, and not the entire file once again! The same logic applies with bittorrent server. I was even contacted by one person from Portugal who wanted me to install and test the PBX system in tandem with him, but I could not help him because of the corrupt file that I have from Amatisoft. I did huge research last month, but the bandwidth issue is a dampener. Please read this page: http://www.voip-info.org/wiki/view/Asterisk+Install+CDROM Again, my limited bandwidth is not allowing me to research further. I also researched on servers that allow remote upload and syncing, the potential candidates being those listed in the Wikipedia, and these companies were sent emails. My idea was to upload the amatisoft file remotely and then repair the erroneous portion of the file in my download directory. It is found that none supports remote upload unless they are integrated with the host system, in this case Amatisoft. Also, asterisk has its own live CD at their website http://www.asterisk.org/downloads/asterisknow , but I am stuck. Could someone bridge the gap between Brian's post and mine, i.e., fulfilling my objective with my equipments such as the Huawei e1731 Datacard and the BSNL SIM card using the wisdom from Brian's post?


Taking file ownership when file and directory is readable/writable

### I got some files in directory:               drwxrws-wt 2 me      mygroup  4,0K 10.1. 12:34 .     -rw-r----- 1 someone mygroup  10G  10.1. 11:22 someonesfile      `me` and `someone` are regular users without supplementary groups. ### How to take ownership of that file using `me` account? If `me` do:               $ chown me someonesfile     chown: doing bla bla bla: permission denied      However `me` can " _change_ " ownership by replacing file with new one:               cp someonesfile myfile && mv -f myfile someonesfile`      So my main question is if there is any easier ( _cheaper_ ) way to change file ownership in described environment without using root account or other privilege elevations. Basically I wanted to know if `me` can somehow take advantage of directory permissions to somehow reset ownership/permissions without making copy of whole file. I've also noticed that editing file with `vim` and forcing overwrite with `:w!` will change owner of file, is that same as doing `cp && mv`? At least `touch someonesfile` will fail with permission denied.


Unix > overwrite command?

I'm doing a shell command (such as `sh run.sh > log.txt`). How do you overwrite the file each time (so each time I run it `log.txt` doesn't get appended) I'm doing this in a python script and I'm checking the log file each time for a specific number (and I don't want the numbers to get added onto the `log.txt`, just replaced)


How to partition my hard-drive to be used for dual OS?

I'm using HP G42 laptop with 320GB hard-drive and 4 GB memory. I'm pretty sure that, it can be used for dual OS(Windows 7 & fedora) Currently, I'm using only Windows 7, but, I need to install fedora. * * * This my hard-drive: Local disk(C) = 50GB(Windows 7 installed here)   Local disk(D) = rest(249GB) (Data) Both are formatted with NTFS file system. I need to access the data which I saved in _Local Disk D_ from both OSs. How can I do this?


Is the VG encrypted with dm_crypt OR luks? How to find out?

A system is installed with an encrypted VG. How can I find out if they used dm_crypt or luks? It's running Fedora 14, so I think it's one of those. Or are they the same thing?


Reinstall mysql keeping db intact

basically on my vps somehow mysql.sock vanished in tmp as well lib folder. I want to reinstall mysql but will db get lost?


Start QT Application on bootup on an Embedded Linux Device (Beaglebone Black)

Below is picture of the display on bootup. Expected display is overwritten by Angstrom screen ![enter image description here](http://i.stack.imgur.com/OaGb9.jpg) Expected Display ![enter image description here](http://i.stack.imgur.com/zbWUx.jpg) Application is been started as a service. Below is the content of the service file               [Unit]     Description=QTAccelerometer GUI     After=systemd-user-sessions.service          [Service]     WorkingDirectory=/home/root/projects/qt-projects     ExecStart=/home/root/projects/qt-projects/QTAccelerometer -qws     SyslogIdentifier=QTAccelerometer     Restart=on-failure     RestartSec=5          [Install]     Alias=display-manager.service      Below are the other options tried without success               [Install]     WantedBy=multi-user.target     WantedBy=graphical.target      The system sometimes boots up as expected. When the issue occurs the expected screen splashes followed by the Angstrom screen. Then the dynamic widget update the screen but the static information is not visible. Any thoughts as to how to fix this issue? **References**   * Creating Ångström System Services on BeagleBone Black   * What Is Systemd and How It Works (Part 1)


Explain the output of -D rates in GNU find

I did               ~/pythonsource1/python2.6-2.6.5$ find -D rates . -type d      and got               Predicate success rates after completion:     [need type] -type d [0.4] [280/4350=0.0643678] -a [0.4] [280/4350=0.0643678] -print [1] [280/280=1]       What does the `[0.4]` indicate ?


SSH Do not connect even with publickeys installed

I'm trying to connect two servers. I got the id_dsa.pub key from user john from server A and paste into authorized_keys of user mike from server B. Then I tried to connect from server A to server B using mike login, however it is still asking for password. In mike's .ssh/ directory I have only `authorized_keys` file, like this:               bash-3.00$ ls -l     total 16     -rw-------   1 mike users    2422 Oct  8 14:47 authorized_keys     bash-3.00$      The admin guy from server B assured that having only this file it's enough to let us connect at B server. Am I missing something? Thanks guys! EDIT: Here is the Log:               johndbb3:/home/john/.ssh> ssh -vvv mike@fpnld1.uk.db.com     Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f     debug1: Reading configuration data /etc/ssh/ssh_config     debug1: Rhosts Authentication disabled, originating port will not be trusted.     debug1: ssh_connect: needpriv 0     debug1: Connecting to fpnld1.uk.db.com [10.240.1.215] port 22.     debug1: Connection established.     debug1: identity file /home/john/.ssh/identity type -1     debug3: Not a RSA1 key file /home/john/.ssh/id_rsa.     debug2: key_type_from_name: unknown key type '-----BEGIN'     debug3: key_read: no key found     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug2: key_type_from_name: unknown key type '-----END'     debug3: key_read: no key found     debug1: identity file /home/john/.ssh/id_rsa type 1     debug3: Not a RSA1 key file /home/john/.ssh/id_dsa.     debug2: key_type_from_name: unknown key type '-----BEGIN'     debug3: key_read: no key found     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug3: key_read: no space     debug2: key_type_from_name: unknown key type '-----END'     debug3: key_read: no key found     debug1: identity file /home/john/.ssh/id_dsa type 2     debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.1.3     debug1: no match: Sun_SSH_1.1.3     debug1: Enabling compatibility mode for protocol 2.0     debug1: Local version string SSH-2.0-Sun_SSH_1.1     debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1     debug2: kex_parse_kexinit: ssh-rsa,ssh-dss     debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc     debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: none,zlib     debug2: kex_parse_kexinit: none,zlib     debug2: kex_parse_kexinit: i-default     debug2: kex_parse_kexinit: i-default     debug2: kex_parse_kexinit: first_kex_follows 0     debug2: kex_parse_kexinit: reserved 0     debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible     Unknown code 0     )     debug1: SSH2_MSG_KEXINIT sent     debug3: kex_reset_dispatch -- should we dispatch_set(KEXINIT) here? 0 && !0     debug1: SSH2_MSG_KEXINIT received     debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1     debug2: kex_parse_kexinit: ssh-rsa,ssh-dss     debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc     debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: none,zlib     debug2: kex_parse_kexinit: none,zlib     debug2: kex_parse_kexinit: i-default     debug2: kex_parse_kexinit: i-default     debug2: kex_parse_kexinit: first_kex_follows 0     debug2: kex_parse_kexinit: reserved 0     debug2: kex_parse_kexinit: gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1     debug2: kex_parse_kexinit: ssh-rsa,ssh-dss     debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc,aes192-ctr,aes192-cbc,aes256-ctr,aes256-cbc     debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc,aes192-ctr,aes192-cbc,aes256-ctr,aes256-cbc     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96     debug2: kex_parse_kexinit: none,zlib     debug2: kex_parse_kexinit: none,zlib     debug2: kex_parse_kexinit: ar-EG,ar-SA,bg-BG,ca-ES,cs-CZ,da-DK,de,de-AT,de-CH,de-DE,de-LU,el-CY,el-GR,en-AU,en-CA,en-GB,en-IE,en-MT,en-NZ,en-US,es,es-AR,es-BO,es-CL,es-CO,es-CR,es-EC,es-ES,es-GT,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et-EE,fi-FI,fr,fr-BE,fr-CA,fr-CH,fr-FR,fr-LU,he-IL,hr-HR,hu-HU,is-IS,it,it-IT,kk-KZ,lt-LT,lv-LV,mk-MK,mt-MT,nb-NO,nl-BE,nl-NL,nn-NO,pl,pl-PL,pt-BR,pt-PT,ro-RO,ru,ru-RU,sh-BA,sk-SK,sl-SI,sq-AL,sr-CS,sv,sv-SE,tr-TR,ar,ca,cz,da,el,et,fi,he,hu,lt,lv,nl,no,no-NO,no-NY,nr,pt,sr-SP,sr-YU,tr,i-default,uk-UA     debug2: kex_parse_kexinit: ar-EG,ar-SA,bg-BG,ca-ES,cs-CZ,da-DK,de,de-AT,de-CH,de-DE,de-LU,el-CY,el-GR,en-AU,en-CA,en-GB,en-IE,en-MT,en-NZ,en-US,es,es-AR,es-BO,es-CL,es-CO,es-CR,es-EC,es-ES,es-GT,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et-EE,fi-FI,fr,fr-BE,fr-CA,fr-CH,fr-FR,fr-LU,he-IL,hr-HR,hu-HU,is-IS,it,it-IT,kk-KZ,lt-LT,lv-LV,mk-MK,mt-MT,nb-NO,nl-BE,nl-NL,nn-NO,pl,pl-PL,pt-BR,pt-PT,ro-RO,ru,ru-RU,sh-BA,sk-SK,sl-SI,sq-AL,sr-CS,sv,sv-SE,tr-TR,ar,ca,cz,da,el,et,fi,he,hu,lt,lv,nl,no,no-NO,no-NY,nr,pt,sr-SP,sr-YU,tr,i-default,uk-UA     debug2: kex_parse_kexinit: first_kex_follows 0     debug2: kex_parse_kexinit: reserved 0     debug2: mac_init: found hmac-md5     debug1: kex: server->client aes128-ctr hmac-md5 none     debug2: mac_init: found hmac-md5     debug1: kex: client->server aes128-ctr hmac-md5 none     debug1: Peer sent proposed langtags, ctos: ar-EG,ar-SA,bg-BG,ca-ES,cs-CZ,da-DK,de,de-AT,de-CH,de-DE,de-LU,el-CY,el-GR,en-AU,en-CA,en-GB,en-IE,en-MT,en-NZ,en-US,es,es-AR,es-BO,es-CL,es-CO,es-CR,es-EC,es-ES,es-GT,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et-EE,fi-FI,fr,fr-BE,fr-CA,fr-CH,fr-FR,fr-LU,he-IL,hr-HR,hu-HU,is-IS,it,it-IT,kk-KZ,lt-LT,lv-LV,mk-MK,mt-MT,nb-NO,nl-BE,nl-NL,nn-NO,pl,pl-PL,pt-BR,pt-PT,ro-RO,ru,ru-RU,sh-BA,sk-SK,sl-SI,sq-AL,sr-CS,sv,sv-SE,tr-TR,ar,ca,cz,da,el,et,fi,he,hu,lt,lv,nl,no,no-NO,no-NY,nr,pt,sr-SP,sr-YU,tr,i-default,uk-UA     debug1: Peer sent proposed langtags, stoc: ar-EG,ar-SA,bg-BG,ca-ES,cs-CZ,da-DK,de,de-AT,de-CH,de-DE,de-LU,el-CY,el-GR,en-AU,en-CA,en-GB,en-IE,en-MT,en-NZ,en-US,es,es-AR,es-BO,es-CL,es-CO,es-CR,es-EC,es-ES,es-GT,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et-EE,fi-FI,fr,fr-BE,fr-CA,fr-CH,fr-FR,fr-LU,he-IL,hr-HR,hu-HU,is-IS,it,it-IT,kk-KZ,lt-LT,lv-LV,mk-MK,mt-MT,nb-NO,nl-BE,nl-NL,nn-NO,pl,pl-PL,pt-BR,pt-PT,ro-RO,ru,ru-RU,sh-BA,sk-SK,sl-SI,sq-AL,sr-CS,sv,sv-SE,tr-TR,ar,ca,cz,da,el,et,fi,he,hu,lt,lv,nl,no,no-NO,no-NY,nr,pt,sr-SP,sr-YU,tr,i-default,uk-UA     debug1: We proposed langtags, ctos: i-default     debug1: We proposed langtags, stoc: i-default     debug1: Negotiated lang: i-default     debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent     debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP     debug1: Remote: Negotiated main locale: C     debug1: Remote: Negotiated messages locale: C     debug1: dh_gen_key: priv key bits set: 129/256     debug1: bits set: 1594/3191     debug1: SSH2_MSG_KEX_DH_GEX_INIT sent     debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY     debug3: check_host_in_hostfile: filename /home/john/.ssh/known_hosts     debug3: check_host_in_hostfile: match line 120     debug3: check_host_in_hostfile: filename /home/john/.ssh/known_hosts     debug3: check_host_in_hostfile: match line 119     debug1: Host 'fpnld1.uk.db.com' is known and matches the RSA host key.     debug1: Found key in /home/john/.ssh/known_hosts:120     debug1: bits set: 1573/3191     debug1: ssh_rsa_verify: signature correct     debug2: kex_derive_keys     debug3: kex_reset_dispatch -- should we dispatch_set(KEXINIT) here? 0 && !0     debug1: newkeys: mode 1     debug1: SSH2_MSG_NEWKEYS sent     debug1: expecting SSH2_MSG_NEWKEYS     debug1: newkeys: mode 0     debug1: SSH2_MSG_NEWKEYS received     debug1: done: ssh_kex2.     debug1: send SSH2_MSG_SERVICE_REQUEST     debug2: service_accept: ssh-userauth     debug1: got SSH2_MSG_SERVICE_ACCEPT     debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive     debug3: start over, passed a different list gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive     debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password     debug3: authmethod_lookup gssapi-keyex     debug3: remaining preferred: gssapi-with-mic,publickey,keyboard-interactive,password     debug3: authmethod_is_enabled gssapi-keyex     debug1: Next authentication method: gssapi-keyex     debug2: we did not send a packet, disable method     debug3: authmethod_lookup gssapi-with-mic     debug3: remaining preferred: publickey,keyboard-interactive,password     debug3: authmethod_is_enabled gssapi-with-mic     debug1: Next authentication method: gssapi-with-mic     debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible     Unknown code 0     )     debug2: we did not send a packet, disable method     debug3: authmethod_lookup publickey     debug3: remaining preferred: keyboard-interactive,password     debug3: authmethod_is_enabled publickey     debug1: Next authentication method: publickey     debug1: Trying private key: /home/john/.ssh/identity     debug3: no such identity: /home/john/.ssh/identity     debug1: Trying public key: /home/john/.ssh/id_rsa     debug3: send_pubkey_test     debug2: we sent a publickey packet, wait for reply     debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive     debug1: Trying public key: /home/john/.ssh/id_dsa     debug3: send_pubkey_test     debug2: we sent a publickey packet, wait for reply     debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive     debug2: we did not send a packet, disable method     debug3: authmethod_lookup keyboard-interactive     debug3: remaining preferred: password     debug3: authmethod_is_enabled keyboard-interactive     debug1: Next authentication method: keyboard-interactive     debug2: userauth_kbdint     debug2: we sent a keyboard-interactive packet, wait for reply     debug2: input_userauth_info_req     debug2: input_userauth_info_req: num_prompts 1     Password:          johndbb3:/home/john/.ssh>


Why can I not copy a direcotry from *nix to a mounted smbfs share on Windows 7?

I've mounted a Windows 7 directory on my FreeBSD box via smbfs:               mount     ...     //ROOT@BARYONYX/GVKV on /usr/home/gvkv/win (smbfs)      but for some reason when I try to copy a directory:               cp .vim /win       I get the following error:               cp: .vim is a directory (not copied).      I can copy files just fine. Is there something special about directories and smb shares?


extract fields from "tail -f" of a syslog stream

Example line from syslog file:     Aug  1 10:25:50 10.10.10.1 id=firewall sn=XXXX time="2012-08-01 14:35:18 UTC" fw=x.x.x.x pri=6 c=1024 m=537 msg="Connection Closed" f=11 n=195273698 src=x.x.x.x:60246:X3: dst=x.x.x.x:443:X6:host.domain.com proto=tcp/https sent=181793 rcvd=649678      I want to do a               $ tail -f /var/log/log.log | SOMETHING      That will return               "src=x.x.x.x dst=x.x.x.x"      In plainspeak I want to be able to extract specific fields from text. I do not want to select these fields based on a field number (position in the line) because the order of things can change slightly with the system generating this file, so it doesn't work. Open to suggestions but would prefer it to be a one-liner.


The n mode on "iwlist wlan0 scan"

I know how to determine if scanned AP uses B or G mode, but how to know (using "iwlist wlan0 scan") it uses N protocol ? if I use "iw dev wlan0 scan" and see if the cell has a "HT capabilities" block. OK. "iw dev wlan scan" partially works, but i can not get data about the signal quality, Channel mode (is it master or ad hoc) and security options. I need to find all security algorithm options in one command. Is there other options? like third party commands? Any source code hack suggestions?


How to kill both process and subprocess?

I asked a question to know how to get multiple lines of message from Python's subprocess module. The problem is that in the course of testing, I had to kill the python process that runs gnuchess process. Using ^c in the command line seems to kill the python process, but not the gnuprocess. For killing gnuchess, I get the pid with **ps aux | grep gnuchess** and run **kill -9 PID**. Are there other methods to kill both python and gnuchess process?


Display a menu of files names and let the user select a file by entering a number

I have created a script that allows the user to select a file by copying and pasting that file. Then perform a grep on that file. I want to know is it possible to put a number in front of each files in the directory so the user will only have to type a number. What I have tried:   * Do `ls -l` then `ls | wc -l` then have the user select the corresponding file number, no luck.   * Next, `ls -i`, tried to perform a grep using the node number for that file, no luck.


Where can I find historical documentation for bash?

Are there any sources for documentation for old versions of some GNU software, in this case particularly `bash`? I have a embedded system that is running bash 3.00.16, and I'm trying to do some shell scripting, and things are not working as expected (no process substitution, apparently). Furthermore, since this is an embedded system, I don't have `man` or `info`, so there is really no help available on the system. Is there anywhere I can view the documentation for older versions of `bash` as they were for various releases?


Splitting WavPack files when the .cue file and .wv file have different names?

If a directory contains an album encoded as one large .wv file and a .cue file, splitting the entire album into individual .flac tracks is a simple task: `$ cuebreakpoints foo.cue | shnsplit -o flac foo.wv` What I'd like to know is how to split a file where the names don't match up, e.g.: 'foobar.wv' and 'foo.cue'. If I attempt this I get this error message:               shnsplit: warning: none of the builtin format modules handle input file: [foobar.wv]     shnsplit: error: cannot continue due to error(s) shown above      Do I need to alter the .cue file? Because simply renaming 'foobar.wv' to 'foo.wv' prior to splitting doesn't seem to work for me. Or is there something wrong with the `wavpack` package? PS: I didn't know how to tag this question properly. Sorry 'bout that. **Some more info** To be clear, I should point out that the text inside the .cue files points to the appropriate .wv files. **Yet more info** I'm having a bit of luck, for whatever reason, by decompressing the .wv to .wav and then altering the .cue file accordingly. Not ideal but it's working so far.


Is it possible to use one SSH key per account for each account on a given remote server?

Suppose I have a number of accounts on a server called _SERVER_. Let's call them _ACCOUNT1_ , _ACCOUNT2_ and _ACCOUNT3_. Suppose I don't want to have to type in the password for the account each time I ssh into one of those accounts from my local computer, _DESKTOP_. Obviously, I could use a single ssh key pair to allow myself passwordless login to all three accounts, but is it possible to use a different ssh key pair for each account?


Send file to opened editor using command line

Recently I found out a new very useful command. It is: > gnome-open or > xdg-open or just > open on mac. It opens file or directory in by default specified program. But, in the event that I need to open a file in an already running redactor (I mean send the file to a running processes somehow) I have no solution. I wonder if there is any way to achieve that or if it is possible to write a script that can do that. For example if I want to send it to an already running instance of eclipse. Kind of drag-and-drop through commandline.


Setting primary monitor in XFCE?

I have to monitors:               ------   ------     |VGA-1| |HDMI-1|     ------  --------      for some reason VGA-1 defaults to the primary monitor. Now this is what I have tried to fix this:   1. Go to settings edit and set primary on HDMI-1 to True   2. This: Fedora primary monitor selection   Now it seems it did a trick since HDMI-1 is primary according to "xrandr --current". However the panel is still on the left (VGA-1) monitor and I'm not sure that my HDMI-1 is primary at all. Is this a bug or I'm doing something wrong here?


Extract graphs from PDFs

I have a situation where I need to extract images from lots of PDF files and display them on a website. My PDFs have "regular" images as well as lots of graphs. I used pdf2xml and it pulls out the images in jpeg, ppm, pbm and vec formats. I see the "regular" images being extracted (for the most part) as jpeg/ppm/pbm, but I don't see the graphs being there - and so I am guessing that pdf2xml is storing them as .vec files. So the question is how to I get my graphs? I used `convert` that comes with imagemagick to convert .vec to jpeg/png etc but to no avail.


File manager that shows bit rate for mp3 files (Part 2)

A couple of hours ago I asked this question: File manager that shows bit rate for mp3 files. Since I am new to this site I cannot make comments on it, so I cannot ask for additional help and am forced to create this new thread. To summarize what I said: I use Fedora 20, use Thunar File Manager, and am looking for a file manager which, when viewing files in detailed-list-mode, has a column for the bit rate of the mp3 files so I don't have to go song by song to find out if they are 128kbps or 320kbps. A user answered that Nautilus has the feature, but when I downloaded it I found mine lacks the column. So I wonder if anybody know why is this and how can I fix it? Thanks.


Ricoh Aficio SP 100su E

After installing a Ricoh Aficio SP 100su E printer (it does scanning as well), I've tried a tenth of the GDI and PCL (5e/6) generic and Ricoh drivers without any success. I've learned from Ricoh that this printer uses GDI standard... but these drivers don't seem to work. No errors occur, but no pages are printed out. Has anybody succeeded to print under Linux with this one?


How to use keyboard instead of mouse middle-click for copy/paste?

> **Possible Duplicate:**   >  Pasting X selection (not clipboard contents) with keyboard Is there a shortcut for copy-paste under X? I'd like to use the keyboard for pasting.


RandR not recognizing monitor

I just plugged my EeePC to a Sony BRAVIA KDL-32EX710. Such TV supports resolutions up to 1920x1080, but RandR only let me use resolutions from 640x480 to 1024x768. In order to use full resolution I have to manually add a new mode to RandR at any boot.   * Why does this happen?   * Is there any clean way to let RandR know of this monitor? (cleaner than `xrandr --newmode`, `xrandr --addmode`)