Fedora 15 Gnome Shell Pauses on certain wireless networks

Whenever I connect to my girlfriend's wireless network, gnome shell will "pause" randomly. Gnome shell quits updating or drawing. The clock is set to use seconds, and will pause for anywhere from 1 to 15 seconds (no render updates, then suddenly jumps). X seems to still be running- when these pauses happen, any text I type will appear when gnome is unpaused and the mouse cursor is very responsive. During these pauses, I can also switch to a different terminal (Ctrl+Alt+F2) and work normally. This does not happen on any other wireless networks. I have not tested connecting to the AP over ethernet. Any ideas on what could be causing this? AP is a Verizon licensed Actiontec MI424-WR Rev.D               [~]$ lspci | grep -i net     03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)     [~]$ lspci -vv -s 03:00.0     03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)         Subsystem: Intel Corporation Centrino Ultimate-N 6300 3x3 AGN         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 52         Region 0: Memory at ded00000 (64-bit, non-prefetchable) [size=8K]         Capabilities: <access denied>         Kernel driver in use: iwlwifi         Kernel modules: iwlwifi     [~]$ modinfo iwlwifi (http://pastie.org/3455752)      [Edit]               --- 192.168.1.1 ping statistics ---     109 packets transmitted, 107 received, 1% packet loss, time 108140ms     rtt min/avg/max/mdev = 0.817/5.932/96.705/14.555 ms      No noticeable changes in ping times during a "pause" event. [Edit 2] Nothing in dmesg or /var/log/messages [Edit 3, answers for Kaptk2] WEP encryption, AP does DHCP, I am assuming Wireless N because the AP and card are both modern, but cannot confirm that. PS How do I confirm that? `iw dev wlan0 station dump` does not have the needed info. [Edit 4, more on the AP]               [~]$ iw wifi0 scan ssid VL440     BSS 00:1f:90:e2:73:17 (on wlan0) -- associated         TSF: 198981120700 usec (2d, 07:16:21)         freq: 2462         beacon interval: 100         capability: ESS Privacy ShortPreamble SpectrumMgmt ShortSlotTime (0x0531)         signal: -41.00 dBm         last seen: 99 ms ago         Information elements from Probe Response frame:         SSID: VL440         Supported rates: 1.0* 2.0* 5.5* 6.0 9.0 11.0* 12.0 18.0          DS Parameter set: channel 11         Country: US     Environment: Indoor/Outdoor                 Channels [1 - 11] @ 27 dBm         Power constraint: 0 dB         ERP: <no flags>         Extended supported rates: 24.0 36.0 48.0 54.0          WMM:     * Parameter version 1                  * u-APSD                  * BE: CW 15-1023, AIFSN 3                  * BK: CW 15-1023, AIFSN 7                  * VI: CW 7-15, AIFSN 2, TXOP 3008 usec                  * VO: CW 3-7, AIFSN 2, TXOP 1504 usec


pxe boot: problems with /etc/resolv.conf

I'm pxe booting a node (Ubuntu 11.10). The image of the node is created with debootstrap. Works great. Everything is loaded. When I login to the node I see that /etc/resolv.conf is empty. In the base image it's empty also but I expected the ubuntu boot process to fill it with a nameserver. When, on the node, I do `sudo service networkinging {start,restart}` nothing changes to `etc/resolv.conf`. When I do a `dhclient` I get: `RNETLINK answers: File exists` but `/etc/resolv.conf` then contains the correct nameserver from my dhcp-server.   * The linuxrc I use can be found on github.    * (Part) of the bootscreen can be found on imgur. I'd rather not add static entries to /etc/network/interfaces because I don't know if all the nodes have the same configuration. I'd rather have this more dynamic. If I'd add eth0 with a dhcp option to /etc/network/interfaces it works. What am I doing wrong? Why doesn't ubuntu fill the /etc/resolv.conf on boot? Is there a network-manager kind of package for the commandline without too many dependencies?


Xorg ignoring wine application

A wine application (Anarchy online, great game try it some time) is behaving very strangely. While rendering correctly, Xorg isn't picking up on it's existence, and because of this the game only refreshes it's image when another application requests that portion of the screen to be updated. For example, I will get maximum framerate if I move the window, or go into the compiz cube, while placing a terminal with top running in it behind the game will make that portion of the screen render at 3 fps (In the video I will link it's running `top -d 1.0` hence the 1 fps) whereas a quickly updating window shows the game at a more reasonable framerate. In the video I have uploaded you can see this strange behavior, as the output from the game and the `top` combine to basically split the game between fast fps and slow fps in real-time. Video of Xorg/wine issue (AFAIK can only be opened in totem and VLC, recordmydesktop is bugged) Wine bug report Does anyone know how to fix this problem? Quick xorg config file? Recompile wine? I'll settle for a cheap trick (Other than putting a looping terminal behind the game every time, that really drains CPU) Edit: Turned out it was a d3d bug, fixable by compiling 1.2.2 instead


zsh alias expansion

Is it possible to configure zsh to expand global aliases during tab completion? For example, I have the common aliases:               alias -g '...'='../..'     alias -g '....'='../../..'      but when I type for example `cd .../some<tab>` it won't expand to `cd .../something` or `cd ../../something`. Consequently, I frequently won't use these handy aliases because I can't tab complete where I want to go.


How do you derive the passphrase from hexadecimal wep key?

I have a hexadecimal WEP key in the setting of my router. When I try to connect, the system asks me for the WEP _passphrase_. **How can I derive it from my _hexadecimal_?** This is what I have:               84:12:7D:13:4D:08:31:89:A4:AF:97:07:21      What is the way to get it? Thanks a lot.


Multiple MODULEPATH entries in .modulesbeginenv

I'm switching between paths/code projects. At each place I have different modules. To handle this there is a setup script that modifies what to use. This is handled with the tool 'module'. **NOTE:** `modules` is a package for managing the environment allowing it to be reconfigured so that various applications are present on the `$PATH` or not. Problem is that each time a module path is updated a new entry is added to the file `~/.modulesbeginenv`               #!/user/bin/env tcsh          module unuse $path1     module use $path2          module add project_module      This short example adds two lines to `~/.modulebeginenv` at each call. First `MODULEPATH='paths'` without `$path1` and then `MODULEPATH='paths'` with `$path2`. It seems strange to me that the change is appended instead of updated. Is there any configuration to control this or any other way to solve it?


Get the last minute dated lines from list

If I have an input file with a list of users and their dates they were last signed in, how can I select with a `sort | awk` function the last minute lines? The dates are written in a `+%H:%M:%S` format. Example:               George 12:00:15      Max    12:01:03      Kate   10:32:54      Adam   08:21:47      Andrea 12:00:10      Current date is `12:01:04` Outcomes of an if function would be 1st, 2nd and 5th lines


Is getline in awk command safe to use?

I got weird comments on posting an `awk` answer on SO which uses the `getline` function. Here is the link to that answer. After posting my answer, a user came up with the below comment,(I don't criticize him.) > Not a good solution, it will join lines regardless of content and not > process more lines if needed. And you should avoid using getline. It states that we should avoid the `getline` function in `awk`. So my questions are,   * Is it safe to use `getline` function in awk?    * In what circumstances should we use `getline` in what cases shouldn't we?   * If this function produces unexpected results then why don't we file a bug report?


Is it secure to connect remotly to Mysql using shell?

I have created a shell script to connect to a DB and do some queries:               #/!bin/bash     ...     ...     mysql -h remote -u root --password='pw' MatchingDB      some SQL queries       My question is : Is this connection considered as Secured connection, Can any attacker sniff any query I send to the remote DB or maybe change the queries I have sent ?


du cannot access file - No such file or directory error

I have lots of subfolders inside a particular folder which in turn contains lots of smaller files. They are created programmatically and so I do not know how many of them are there inside. I decided to remove all these sub-folder and files and so I issued the command,               rm -rf foldername/      However, the rm command is taking so much time to execute which I believe is perfectly normal since it has to unlink all the files. But, I decided to check if the size of this folder is getting reduced by issuing the command,               du -sh foldername/      However, the above command gives me the error as,               du: cannot access `foldername/file': No such file or directory      Why is this error happening?


Error in compiling file using gcc: "/bin/sh: g++: command not found"

I want to compile a c++ program in Fedora Linux, but the program isn't compiled correctly. I got the following error:               /bin/sh: g++: command not found     make[1]: [*.o] Error 127      make[1]: Leaving directory      Why?


Best Practices for Configuring/Reading Sensor Devices

I have a gadget with a number of environmental sensors attached via an I2C bus, and would like to be able configure and read these sensors via an unprivileged application. Unfortunately, there doesn't appear to be a consistent way of doing this, and I was wondering what the prevailing practices were. To take a specific example: The ISL29023 is an ambient light sensor chip which has a kernel driver. In kernel 3.10.x, this device issues its reports as an input device with the input code `ABS_MISC`. The current measurement can also be read out of sysfs, alongside a pile of other entries that let you configure the chip's measurement parameters. (No entry is created under `/dev`.) If you're running as root, this is fine, but I don't want applications or servers running as root if they don't have to. The way I've been handling this so far is to create a udev rule which runs `/bin/chmod` and `/bin/chown` on the sysfs entries to change them to be writeable to members of a certain group (say, "ambilux"). Then I create a user who is a member of the ambilux group, and run the app as that user. This approach works, but messing around in sysfs this way seems fraught with peril, and was wondering if there was some superior approach that I've been missing.


Why does SPACE sometimes not work with more (or less)

Usually with `|more` I press space to get another screenful. But with some commands space just does nothing, and I need to actually keep doing SPACE- ENTER to scroll forward a screen at a time. Both `more` and `less` behave the same. On this machine this command shows both behaviours:               php -i |more;tree -A |more      With PHP I need to press ENTER after each space; with `tree` I just press SPACE and it scrolls. I've tried a few tricks, such as `2>&1` and using bash, but no luck, e.g.               bash -c "php -i 2>&1;tree -A" | more      Joining the commands like that means SPACE-ENTER is needed for the whole output. So I'm wondering if PHP is outputting some control character that upsets `more`? I've tried another machine, over SSH, and `php -i` does not have this behaviour. (I have `LESS` set to `-FRX`. However I've cleared that variable and the behaviour is the same.) This is just a minor irritant, so I'm not going to start pulling the two systems apart looking for the difference... just wondered if it rang a bell with anyone.


Starting GNU Parallel in background?

Is it possible to start GNU Parallel in the background, or somehow, send it to the background? I want to do this so that I can use two commands that run `parallel` at the same time. And why dont I execute everything in one parallel command? Two reasons, 1. parallel slows down after a while, 2. because I want to separate it so I can stop execution of one group without stoping everythnig


How can I bind together several wifi adapters into one internet connection?

I would like to get around an unnecessary and extremely tight (20k) speed cap per wifi client on a wifi network providing internet. Each client passes through a captive portal that requires just clicking a button for 24 hours of use. What are some basic recipes for configuring a Linux box with four wifi adapters to combine them into a single 80k link that is transparent to applications, so for example if I go to speedtest.com in a browser, it will read 80k? Secondly, is there any way of doing this with only one wifi adapter, but simulate four by connecting to the wifi network with four different Mac addresses?


Can't print pdf file with lpr

I am currently using Arch linux. I am trying to print a pdf file for the command line, it is easier that way as I need to print several range of pages. Just for testing I issue a command to print a text file:               lpr a.txt      And it prints ok. Now I want to print the pdf file:                lpr -P HP_LaserJet_2300_series       -o page-ranges=80-81       -o media=a4       -o sides=two-sided-long-edge       -o scaling=110      "Introductory and Intermediate Algebra - Aufmann 4th.pdf"      When I issue `lpq` this is the result:               HP_LaserJet_2300_series is ready     Rank    Owner   Job     File(s)                           Total Size      1st     alber   321     Introductory and Intermediate A   32868352 bytes      So the file is in the queue but is not printing and there are no processing jobs on the printer either. I then access CUPS web interface. I look at state of the pending jobs and the following message appears:               stopped  "Exception: /var/spool/cups/d00321-001      (file position 32580806): unknown token while reading object (PDF)"


Compare users out of an array with /etc/shadow file

I want to check for all users who do not have a password set. For example, a user with the following entry in `/etc/passwd`               test01::15164: ...*       has no password set. I would like to list all such users.               declare -a liste=(test 01 test02)     for a in `echo ${liste[@]}`     do         for b in `cat /etc/shadow`         do             if [[ "$a" == "$b" ]]             then                 echo $a             fi         done     done      The code doesn't give any output or errors **Solution** The entry in the shadow file witout a password are usertest01 & tecusertest01               declare -a liste=(usertest01 usertest 02 tecusertest01 tecusertest02)          for sdw in `awk -F: '$2 == ""' /etc/shadow`                  do                          user=`echo "$sdw" | awk -F: '{print $1}'`                          echo "$user"                          echo  "${liste[@]}" | grep "$user" > /dev/null                          if [ $? -eq 0 ]                             then                                          echo "Human user"                                          echo "$user"  | passwd "$user" --stdin                                  else                                          echo "Technical User"                          fi                  done      **Output**               usertest01     Human user     usertest01     Changing password for user usertest01.     passwd: all authentication tokens updated successfully.     tecusertest01     Technical User


Basic syslog confusion

When an application logs using syslog does it mean that it stores the logs somewhere under /var/log? Or can it be elsewhere as well?


How to read user input in pipe?

Let's assume I have a file named `confirmation.sh` with the following content:               #!/bin/bash          echo -n "Are you sure [Y/n]? "     read line     case "$line" in         n|N) echo "smth"             ;;         y|Y) echo "smth"             ;;     esac      and I want to run this script in the following way:               cat confirmation.sh | sh      I see `Are you sure [Y/n]?` and script is interrupted. What's the problem? Thanks!


nc: bind failed: Address already in use

I am trying to execute `nc` command from a script , my script is executing `nc` command on different ports of Destination using the same source port. **e.g:**               nc -p 8140 -z -v -n 10.X.X.9 9090     nc -p 8140 -z -v -n 10.X.X.9 9091     nc -p 8140 -z -v -n 10.X.X.9 9092     nc -p 8140 -z -v -n 10.X.X.9 9093     and so on ...      After the 1st nc execution , for the remaining of all the lines I am getting below mentioned error message.               nc: bind failed: Address already in use     nc: bind failed: Address already in use     nc: bind failed: Address already in use      Is there any way of avoiding this situation. Please help.


How to copy three files at once instead of one file at a time in bash shell scripting?

I am running my shell script on `machineA` which copies the files from `machineB` and `machineC` to `machineA`. If the file is not there in `machineB`, then it should be there in `machineC` for sure. So I will try to copy file from `machineB` first, if it is not there in `machineB` then I will go to `machineC` to copy the same files. In `machineB` and `machineC` there will be a folder like this `YYYYMMDD` inside this folder -               /data/pe_t1_snapshot      So whatever date is the latest date in this format `YYYYMMDD` inside the above folder - I will pick that folder as the full path from where I need to start copying the files - so suppose if this is the latest date folder `20140317` inside `/data/pe_t1_snapshot` then this will be the full path for me -               /data/pe_t1_snapshot/20140317      from where I need to start copying the files in `machineB` and `machineC`. I need to copy around `400` files in `machineA` from `machineB` and `machineC` and each file size is `2.5 GB`. Earlier, I was trying to copy the files one by one in `machineA` which is really slow. Is there any way, I can copy "three" files at once in `machineA` using threads in bash shell script? Below is my shell script which copies the file one by one in `machineA` from `machineB` and `machineC`.               #!/usr/bin/env bash          readonly PRIMARY=/export/home/david/dist/primary     readonly FILERS_LOCATION=(machineB machineC)     readonly MEMORY_MAPPED_LOCATION=/data/pe_t1_snapshot          PRIMARY_PARTITION=(0 548 272 4 544 276 8 556 280 12 552 284 16 256 564 20 260 560 24 264 572) # this will have more file numbers around 200          dir1=$(ssh -o "StrictHostKeyChecking no" david@${FILERS_LOCATION[0]} ls -dt1 "$MEMORY_MAPPED_LOCATION"/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | head -n1)     dir2=$(ssh -o "StrictHostKeyChecking no" david@${FILERS_LOCATION[1]} ls -dt1 "$MEMORY_MAPPED_LOCATION"/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | head -n1)          ## Build your list of filenames before the loop.      for n in "${PRIMARY_PARTITION[@]}"     do         primary_files="$primary_files :$dir1"/t1_weekly_1680_"$n"_200003_5.data     done          if [ "$dir1" = "$dir2" ]     then         find "$PRIMARY" -mindepth 1 -delete         rsync -avz david@${FILERS_LOCATION[0]}"${primary_files}" $PRIMARY/ 2>/dev/null         rsync -avz david@${FILERS_LOCATION[1]}"${primary_files}" $PRIMARY/ 2>/dev/null     fi        So I am thinking instead of copying one file at a time, why not just copy "three" files at once and as soon these three files are done, I will move to another three files in the list to copy at same time? I tried opening three putty instances and was copying one file from those three instances at the same time. All the three files were copied in ~50 seconds so that was fast for me. And because of this reason, I am trying to copy three files at once instead of one file at a time. Is this possible to do? If yes, then can anyone provide an example on this? I just wanted to give a shot and see how this is working out. @terdon helped me with the above solution but I wanted to try copying three files at once to see how it will behave. **Update:-** Below is the simplified version of the above shell script. It will try to copy files from `machineB` and `machineC` into `machineA` as I am running the below shell script on `machineA`. It will to try copy file numbers which are present in `PRIMARY_PARTITION`.               #!/usr/bin/env bash          readonly PRIMARY=/export/home/david/dist/primary     readonly FILERS_LOCATION=(machineB machineC)     readonly MEMORY_MAPPED_LOCATION=/data/pe_t1_snapshot          PRIMARY_PARTITION=(0 548 272 4 544 276 8 556 280 12 552 284 16 256 564 20 260 560 24 264 572) # this will have more file numbers around 200          dir1=/data/pe_t1_snapshot/20140414     dir2=/data/pe_t1_snapshot/20140414          ## Build your list of filenames before the loop.      for n in "${PRIMARY_PARTITION[@]}"     do         primary_files="$primary_files :$dir1"/t1_weekly_1680_"$n"_200003_5.data     done          if [ "$dir1" = "$dir2" ]     then         # delete the files first and then copy it.         find "$PRIMARY" -mindepth 1 -delete         rsync -avz david@${FILERS_LOCATION[0]}"${primary_files}" $PRIMARY/         rsync -avz david@${FILERS_LOCATION[1]}"${primary_files}" $PRIMARY/     fi


Merging /usr/bin and /usr/sbin into /bin (GNU/Linux)

I've read quite a number of discussions about people wanting to merge /bin and /sbin into /usr/bin. The same cannot be said for doing it the other way around. Is there any technical reason why one would not want to merge /usr/bin and /usr/sbin into /bin, or is it mainly a personal preference/design choice?


error while executing make commad in ubuntu terminal

While trying to install the `som_pak-3.1-NAcMoS.tar.gz` file, I've used the below commands:               $ tar xvf som_pak-3.1-NAcMoS.tar.gz     $ cd som_pak-3.1     $ cp makefile.unix makefile     $ make     $ cd ..     $ ln -s som_pak-3.1 $NACMOS_HOME/som_pak      But while executing the `make` command I'm getting the following error: > _*_ missing separator (did you mean TAB instead of 8 spaces?). Stop.   * Can anybody tell me the reason for the error?   * Is there any packages need to include with this?


"Error inserting microcode" on new install of Fedora 15

I started getting an error that looked like this the other day, and I Googled the problem but couldn't find the solution (probably because I don't quite to know what to Google), so I reinstalled the OS, but the error continues. What is the problem, and how can I go about fixing it? ![Fedora 15 boot error](http://i.stack.imgur.com/N1qN4.jpg) The `modprobe` error near the end is: > modprobe: FATAL: Error inserting microcode > (/lib/modules/2.6.40.6-0.fc15.i686/kernel/arch/x86/kernel/microcode.ko): > Invalid argument > > udev-work[520]: '/sbin/microcode_ctl -Qu' unexpected exit with status 0x000f At the moment, my CMOS battery has died and my BIOS is running with the default settings (whether this would make any difference, im not sure).


OpenBSD NFS server with Linux NFS clients -- file size limit?

I've set up an NFS server on OpenBSD 4.9. The client is Arch Linux x86-64. The mount has no problems with small files but when trying to read large files (in the example, an 7.4G iso file) it will simply freeze. Any program that tries to read from it seems to just get stuck. For example I tried               hexdump -n 100 big.iso      and it ends up doing nothing. And I end up having to kill hexdump and I always have to force an unmount on the NFS mount. I'm mounting it as so on Linux:               sudo mount -t nfs -o noatime,intr,vers=3 192.168.1.50:/home/shared /mnt      The OpenBSD /etc/exports file is as so:               /home/shared -alldirs -ro -mapall=remote -network=192.168.1.0 -mask=255.255.255.0      And I've checked and making a small text file in the shared directory can be be read from Linux. And the small text file and big iso file have the same permissions and owners. Has anyone else had this problem? According to the man pages, OpenBSD's nfs server should implement NFSv3.


Executable symbolic link results in "command not found"

I created a symbolic link (yesterday) like this:               sudo ln -s bin/python /usr/bin/prj-python      When I run:               prj-python file.py      I get:               prj-python: command not found      When I try creating the link again, I get: > ln: creating symbolic link `/usr/bin/prj-python': File exists Why is that happening? My `$PATH` is: > > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/real/RealPlayer


Fedora 15: Linux 2.6.40 + tg3 = pain

I have an IBM BladeCenter blade running Fedora 15. Everything works fine with 2.6.38 kernels, but when I boot with a 2.6.40 kernel, I lose connectivity after a few seconds. Removing and then re-inserting the `tg3` module restores connectivity for about five seconds, after which I lose connectivity again. These are dual-Xeon blades. This one has two 2.8GHz Xeons with HT and 2GB of RAM. The blade is an 8832-L1X running BIOS version 1.13. The output of `lspci` is:               00:00.0 Host bridge: Broadcom CMIC-LE Host Bridge (GC-LE chipset) (rev 33)         00:00.1 Host bridge: Broadcom CMIC-LE Host Bridge (GC-LE chipset)         00:00.2 Host bridge: Broadcom CMIC-LE Host Bridge (GC-LE chipset)         00:01.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)     00:0f.0 Host bridge: Broadcom CSB6 South Bridge (rev b0)     00:0f.1 IDE interface: Broadcom CSB6 RAID/IDE Controller (rev b0)     00:0f.2 USB Controller: Broadcom CSB6 OHCI USB Controller (rev 05)     00:0f.3 ISA bridge: Broadcom GCLE-2 Host Bridge     00:10.0 Host bridge: Broadcom CIOB-E I/O Bridge with Gigabit Ethernet (rev 12)     00:10.2 Host bridge: Broadcom CIOB-E I/O Bridge with Gigabit Ethernet (rev 12)     01:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5704S Gigabit Ethernet (rev 02)         01:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5704S Gigabit Ethernet (rev 02)      Here's a `dmesg` excerpt with kernel-PAE-2.6.38.8-32.fc15.i686 (working):               [11.545123] tg3.c:v3.116 (December 3, 2010)     [11.545152] tg3 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16     [11.599499] tg3 0000:01:00.0: eth0: Tigon3 [partno(BCM95704A41) rev 2002] (PCIX:133MHz:64-bit) MAC address     [11.599510] tg3 0000:01:00.0: eth0: attached PHY is serdes (1000Base-SX Ethernet) (WireSpeed[0])     [11.599518] tg3 0000:01:00.0: eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[0]     [11.599525] tg3 0000:01:00.0: eth0: dma_rwctrl[769f4000] dma_mask[64-bit]     [11.599577] tg3 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17     [11.627997] tg3 0000:01:00.1: eth1: Tigon3 [partno(BCM95704A41) rev 2002] (PCIX:133MHz:64-bit) MAC address     [11.628066] tg3 0000:01:00.1: eth1: attached PHY is serdes (1000Base-SX Ethernet) (WireSpeed[0])     [11.628074] tg3 0000:01:00.1: eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]     [11.628082] tg3 0000:01:00.1: eth1: dma_rwctrl[769f4000] dma_mask[64-bit]     [22.000286] tg3 0000:01:00.0: eth0: Link is up at 1000 Mbps, full duplex     [22.000294] tg3 0000:01:00.0: eth0: Flow control is off for TX and off for RX      And here's one from kernel-PAE-2.6.40.6-0.fc15.i686 (not working):               [10.262141] tg3.c:v3.119 (May 18, 2011)     [10.262177] tg3 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16     [10.309325] tg3 0000:01:00.0: eth0: Tigon3 [partno(BCM95704A41) rev 2002] (PCIX:133MHz:64-bit) MAC address              [10.309336] tg3 0000:01:00.0: eth0: attached PHY is serdes (1000Base-SX Ethernet) (WireSpeed[0], EEE[0])     [10.309344] tg3 0000:01:00.0: eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]     [10.309351] tg3 0000:01:00.0: eth0: dma_rwctrl[769f4000] dma_mask[64-bit]     [10.309431] tg3 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17     [10.361613] tg3 0000:01:00.1: eth1: Tigon3 [partno(BCM95704A41) rev 2002] (PCIX:133MHz:64-bit) MAC address              [10.361624] tg3 0000:01:00.1: eth1: attached PHY is serdes (1000Base-SX Ethernet) (WireSpeed[0], EEE[0])     [10.361633] tg3 0000:01:00.1: eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]     [10.361640] tg3 0000:01:00.1: eth1: dma_rwctrl[769f4000] dma_mask[64-bit]     [21.054276] tg3 0000:01:00.0: eth0: Link is up at 1000 Mbps, full duplex     [21.054284] tg3 0000:01:00.0: eth0: Flow control is off for TX and off for RX      Again, the symptom is that networking works fine for a few seconds but then completely stops. Doing an `rmmod tg3` followed by a `modprobe tg3` restores connectivity for a few seconds. Nothing unusual appears in any logs. I've tried a few kernel option workarounds. I don't remember exactly which, but I know I tried `acpi=noirq`, `acpi=ht`, `irqpoll`, and `noapic`. `modinfo`, minus the many `alias` lines shows:               filename: /lib/modules/2.6.40.6-0.fc15.i686.PAE/kernel/drivers/net/tg3.ko     firmware:       tigon/tg3_tso5.bin     firmware:       tigon/tg3_tso.bin     firmware:       tigon/tg3.bin     version:        3.119     license:        GPL     description:    Broadcom Tigon3 ethernet driver     author:         David S. Miller (davem@redhat.com) and Jeff Garzik (jgarzik@pobox.com)     srcversion:     389C3BA89E4ECF8460A74C0     depends:         vermagic:       2.6.40.6-0.fc15.i686.PAE SMP mod_unload 686     parm:           tg3_debug:Tigon3 bitmapped debugging message enable value (int)      Fedora reports the kernel at 2.6.40 for "compatibility with older userspace". **Update** : Doing `ifconfig eth0 down` followed by a new `ifconfig` to bring it up and adding the appropriate routes makes everything work indefinitely. Doing an `rmmod tg3` followed by a `modprobe tg3` makes it work for a few seconds and then break again. So at least I have a workaround for now -- adding `/etc/rc.d/init.d network restart` into `rc.local`. I'd still like to know what's wrong and whether there's a proper fix.


Lightweight feature-rich alternatives to OpenOffice and LibreOffice

I really like LibreOffice however I'm having issues with it freezing up and I can't seem to start a new instance of the writer on multiple desktops (I'm using dwm and want several documents open). For this reason, I need a writer application (don't use spreadsheets or presentations that much) that has all the features of LibreOffice but can be launched independently of other instances. The features I require the most would be:   * Rich text editing (bold/italics/fonts/font sizes/etc)   * Ability to add headers and footers to pages   * Ability to add formulas to pages (I'm sure this can be accomplished with a LaTeX plugin of some sort)   * Portrait/Landscape view   * Split text into columns   * Export to pdf (not essential but makes it easier if its integrated) I've tried alternativeto.net without much success. Any ideas? Maybe my problem with LibreOffice can be fixed.


How to make an application run automatically?

I am trying to run my application when a user logs in. So I've added a script in `~/.bash_profile` as follows:               # for Buluttdepo     /usr/bin/myapp > /dev/null 2>&1 &     export MYAPP_HOME=/opt/myapp      It is run successfully, but should I add the script in `.bash_profile`? Otherwise I can add in `/etc/profile` or add a script file as `/etc/profile.d/myapp_run.sh` . If I do it this way, myapp is run by root. But I don't want to run it by root. I should run by any user. Therefore, I'm building an RPM package. I want to add the script when the RPM package installer is run. Because the RPM package is installed by root, it doesn't know which `.bash_profile` to add to, so it can add only to `/etc/profile` or `/etc/profile.d/`.   * Which file should I add it to?      * If the file is `~/bash_profile`, how to add the script in `bash_profile` for _any user_ by `root` via `rpm`?     * If the file is `/etc/profile` , how can any user run `myapp`?     * Can you suggest a simpler way to do it?


Apt-get dist-upgrade fails

I'm trying to upgrade from Mint 13 to Mint 15, but receive the following error:               Calculating upgrade... Failed     The following packages have unmet dependencies:      mate-media : Depends: mate-media-gstreamer but it is not going to be installed or                            mate-media-pulse but it is not going to be installed     E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.      It seems that `mate-media-gstreamer` and `mate-media-pulse` conflict with each other. Could someone help with this?


Forget where link is to custom conf file?

I cannot remember if somewhere else I must have a link to my `/etc/httpd/conf.d/mycustom.conf` file? I am trying to get two domain names on same IP to link to different folders but so in the url you go to example.com and it goes to one site and when you go to other.net it goes to another site and not the same site as example.com or only be accessible via other.net/site So now thinking I need two separate custom conf files for virtual hosts? As it stands when I try and add a virtual host for second site in my one and only conf file it just leads back to first or you have to go to the folder where sites resides. So for one IP do you require only one custom conf or one for each domain name if you want them directed to different folders?


Can't get SSH working anymore on Debian after upgrade

I have a vServer and can only login via SSH. After the latest `apt-get upgrade` command, I can't login anymore and get the following error message:               "Network error: Connection refused".       It seems that port 22 is not open anymore? Fortunately, I'm able to use Virtuozzo offered by my provider that creates a repair container. From that I'm able to login in a special container (seems to be a new environment where all my files are mapped to a `/repair` folder). I checked the `auth.log` file already:               Jul  7 22:29:13 v34913 saslauthd[1675]: detach_tty      : master pid is: 1675     Jul  7 22:29:13 v34913 saslauthd[1675]: ipc_init        : listening on socket: /var/run/saslauthd/mux        * Does that help?   * What else can I check why the ssh server is not running anymore?


How do you prevent a DHCP release during shutdown?

I am currently using Ubuntu 14.04, but expect this to be applicable for different distros. I would like to prevent a DHCP release during shutdown, and opt for either the lease to expire or for a DHCP renew (if needed) on startup. Is this possible?


Specific string hangs [, [[

While fuzz testing I've found that it's possible, by defining               var=$'\365\\'      , to make both of the following commands (used to remove everything up to the last newline) **hang indefinitely, consuming 100% CPU** in Bash 4.2.25(1)-release (x86_64-pc-linux-gnu):               [ -n "${var##*$'\n'}" ]     [[ -n "${var##*$'\n'}" ]]      The runaway `bash` process can't be interrupted with `SIGINT` (`Ctrl`-`C` or `kill -SIGINT $pid`) or `SIGTERM`, but have to be killed with `SIGKILL`. I tried to inspect the value using               uniname -bcp <<<"$var"      but that also hangs. `uniname`, however, is killable with `SIGINT`. I also checked some other basic commands, but all of them work fine:               echo "$var"     printf '%q\n' "$var"     touch -- "$var"     rm -- "$var"      What's going on here? Is this reproducible by others? And is this defined behavior?


Multiple virtual interfaces all bridged to eth0

I'm following this tutorial for setting up bridged a bridged Ethernet interface using `uml-utilities` and `bridge-utils` and it works for 2 interfaces but no more than 2. What I'm trying to achieve is the sort of VirtualBox style bridging where you can have many different interfaces all with their own assigned IP from the router. Ideally I'd want something like this:               eth0 - 192.168.1.12 -- host IP     tap0 - 192.168.1.13 -- ip of first virtual adapter     tap1 - 192.168.1.14     ...      Where I'm getting hung up on is this, when I try to add `eth0` to be part of `br1`, as well as `br0`.               ~ # brctl addif br1 eth0     device eth0 is already a member of a bridge; can't enslave it to bridge br1.          Other commands:               ~ # brctl show     bridge name bridge id       STP enabled interfaces     br0     8000.3209ba59de51   no      eth0                                         tap0     br1     8000.000000000000   no            `br0` _has_ an IP, it's different from what `eth0` used to have. `eth0` _does not have_ an IP, since I ran the command `sudo ifconfig eth0 0.0.0.0 promisc` from the tutorial. `tap0` _does not_ have an ip. * * * I can bring `eth0`'s IP back, if I do a `dhclient eth0` and it becomes what it previously was, different from `br0`'s current IP.


Is it possible to define a command in bash?

For example, can I set               gb = cd /media/Dan/evolution      So that everytime I execute `gb` in bash, I can `cd` to that particular directory? I find something online, `alias` command. But It seems can't do the work above. Is it possible to do it? How?


How to create Linux header for newly compiled kernel?

In Debian when I want to compile my kernel module I need to install `linux- header-*` package and then I need to write some `makefile` like this:               obj-m := hello.o     KDIR := /lib/modules/$(shell uname -r)/build     PWD := $(shell pwd)     default:             $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules      But now I have downloaded specific kenel from kernel.org and compile it. So how can I address the `KDIR` variable in my `makefile`? I want to know, how Debian mainteners create `linux-header-*` packages?


Extend Workspace on Kali using VMware

I'm using Kali on Windows via VMware. The web browser and other things sometimes seem too much zoomed in and I can't get to certain links or buttons. How do I zoom out or expand the area? (clicking maximize doesn't do anything) Provided is a screen shot to better illustrate what I mean: ![enter image description here](http://i.stack.imgur.com/UrXD0.jpg) As you can see, I can't get to what's below.   So far I've been managing with the tab key, but it's stressful.


F4-key mysteriously reassigned

In the middle of today, my `F4` key started producing the letter `p`, without my conscious acting and I can't seem to revert this change. Whenever I press `F4`, `p` appears instead. How can I change this back? Pressing `p`, `xev` returns:               KeyPress event, serial 38, synthetic NO, window 0x4400001,         root 0x150, subw 0x0, time 581565, (696,-17), root:(698,55),         state 0x0, keycode 33 (keysym 0x70, p), same_screen YES,         XLookupString gives 1 bytes: (70) "p"         XmbLookupString gives 1 bytes: (70) "p"         XFilterEvent returns: False          KeyRelease event, serial 38, synthetic NO, window 0x4400001,         root 0x150, subw 0x0, time 581605, (696,-17), root:(698,55),         state 0x0, keycode 33 (keysym 0x70, p), same_screen YES,         XLookupString gives 1 bytes: (70) "p"         XFilterEvent returns: False      Pressing `F4`, `xev` returns:               KeyPress event, serial 38, synthetic NO, window 0x4400001,         root 0x150, subw 0x0, time 582298, (696,-17), root:(698,55),         state 0x0, keycode 33 (keysym 0x70, p), same_screen YES,         XLookupString gives 1 bytes: (70) "p"         XmbLookupString gives 1 bytes: (70) "p"         XFilterEvent returns: False          KeyRelease event, serial 38, synthetic NO, window 0x4400001,         root 0x150, subw 0x0, time 582318, (696,-17), root:(698,55),         state 0x0, keycode 33 (keysym 0x70, p), same_screen YES,         XLookupString gives 1 bytes: (70) "p"         XFilterEvent returns: False      As far as I'm concerned, both keys appear to me as one and the same key. Where can I revert or change such low-level behavior? **Update:** I plugged in an external keyboard for which `F4` works as expected. So... is my keyboard broken? **Update:** While in GRUB, before the kernel starts, `F4` simply does nothing as opposed to produce a `p`. To me, this can only mean that it's an OS problem. **Update:** In the ttys (1 to 3, 5 and 6 (I can't access the fourth through `Ctrl`-`Alt`-`F4`)), `F4` equally produces `p`.


vim: how do I set :match and :2match search results to different colors?

For example, I want something along the lines of:               :match search /<div/ guib=Green     :match search /<\/div>/ guibf=Blue      only that doesn't work.


apple-like momentum scrolling in linux?

is there a way to make the scrolling on a linux machine (running X11) more like apple's natural scrolling? With 'natural scrolling' I mean the fact that you can flick trough the pages, there is momentum in the scrolling. I have a macbook running Arch Linux and I would like to make the trackpad experience a bit better.


Is it good practice to create a background job within an init script if the process can not daemonize itself?

I am fairly new to *nix, and have come across the need to drop multiple processes, that should be run 100% of the time. to background using `&`. I use the following line in an init.d script to do this (running as the user `user`: `su -c 'process arg1 arg2 -w - | process2 arg1 -r - &' user` (where -w writes to and -r reads from STDOUT, STDIN) Specifically, I know this is not generally acceptable, as the processes aren't well shielded from outside influence. Is it acceptable to create background jobs for "services?" Should I instead use a FIFO/named pipe to handle the interprocess communication? If so, should I still create both processes as background jobs? Is this stable? For specifics, please refer to this mailing list thread. Thanks, Matt


Best Practices for SSH, tmux & GnuPG Agent

I'm attempting to consolidate my encryption software to GnuPG, and I'm running into a confusing problem. My primary unit is a headless server, and I exclusively work in tmux. There is no X session, and therefore I've configured gpg-agent to use pinentry-curses. I've configured gpg-agent to be called on login with ssh-agent emulation with this script:               if pgrep -u "${USER}" gpg-agent >/dev/null 2>&1; then         eval `cat $gnupginf`         eval `cut -d= -f1 $gnupginf | xargs echo export`     else                       eval `gpg-agent -s --enable-ssh-support --daemon`     fi      I've already added my ssh key to gpg-agent, however when I attempt another ssh session the command hangs. I've discovered that if I kill gpg-agent and create a new login shell, the agent works as it should (calling pinentry-curses then working like ssh- agent). If, however, I create another login shell (by, say, popping open another tmux pane) and attempt to ssh, the command hangs and the pinentry-curses window is printed over the contents of the login shell that originally launched the agent. Further, if I've closed the shell that originally launched the agent, pinentry-curses is called anyway and causes a cpu-crippling infinite loop. (Known bug, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559936.) In essence, I'd like to know what to change about my setup to make GnuPG agent work as seamlessly as ssh-agent. Thanks for any help!


How to do nothing forever in an elegant way?

I have a program which produces useful information on `stdout` but also reads from `stdin`. I want to redirect its standard output to a file without providing anything on standard input. So far, so good: I can do:               program > output      and don't do anything in the tty. However, the problem is I want to do this in the background. If I do:               program > output &      the program will get suspended ("suspended (tty input)"). If I do:               program < /dev/null > output &      the program terminates immediately because it reaches EOF. It seems that what I need is to pipe into `program` something which does not do anything for an indefinite amount of time and does not read `stdin`. The following approaches work:               while true; do sleep 100; done | program > output &     mkfifo fifo && cat fifo | program > output &     tail -f /dev/null | program > output &      However, this is all very ugly. There _has_ to be an elegant way, using standard Unix utilities, to "do nothing, indefinitely" (to paraphrase `man true`). How could I achieve this? (My main criteria for elegance here: no temporary files; no busy-waiting or periodic wakeups; no exotic utilities; as short as possible.)


Change tmux prefix control keyboard shortcut to alt keyboard shortcut

Is it possible to change the _tmux_ prefix keyboard shortcut `ctrl+B` to `alt+B`?


Running a command based on output of previous command

Consider the following command. I want to echo "yes" if grep has output and echo "no" if grep returns no output. `cat myfile | grep "something"` Can I do this without `if` command?


Having Linux port remap to itself

I have a scenario: I have 4 server and 3 web inbound requests that I have to allow through a modem/router. the ports are https(ssl)443 ssh22 and http80. All 4 servers want them. I had set up the server to use port forwarding and remapping like this:               2241->port 22 on ip 192.168.0.41     2242->port 22 on ip 192.168.0.42     2243->port 22 on ip 192.168.0.43     2244->port 22 on ip 192.168.0.44          and so on using 44341(..2..3..4) and 8041(..2..3..4)      I love this set up. Behind the firewall I can use default ports ( I prefer this), from outside I can (as I need to) colon:in. However two things happened. The modem old router died I bought a new one (expensive) this new tech didn't allow more than 8 ports to be remapped. Bad. Artificial glass ceiling. I then set it up at the customers offices > I went to the customer theirs didn't even have any port forwarding at all, so I bought them a brand new modem router (even more expensive) fearing it would need to do more than 8 ports, and fearing that this kind of port remapping role is now a "premium" feature. I was wrong. The *even*more* expensive new modem router will only allow the ports to be forwarded flatly, it won't allow the ports to be remapped. just forward them on. SO I digressed massively . But is there a way I can still have port remapping I thought to myself? can I use something like the following to help me?               iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 2202 -j REDIRECT --to-port 22      is there any reason to avoid this use?


My VirtualBox Virtual Machine doesn't detect my USB attached disk

I'm using the latest version of both Virtual Box (4.1) and CentOS (6.2). I would like my Western Digital USB drive to be recognized by my VirtualBox guest operating system. My host system, Windows 7, recognizes it. It is also recognized when I open the settings of my VM. I've checked both `Enable USB Controller` and `Enable USB 2.0 Controller` and I've installed the Extension Pack for Virtual Box. But when I launch the VM the USB devices icon in the right bottom corner shows " _No USB Devices attached_ " and, of course, no USB drives are detected by CentOS.


What is a framebuffer device and is it required to obtain a higher resolution?

I am running a gentoo guest OS on qemu-kvm. I can only get resolution of 800x600 in it. I want to be able to get a higher screen resolution. `xrandr` gives the following output : > xrandr: Failed too get size of gamma for output default > > Screen 0: mimimum 640x480, current 800x600, maximum 800x600 `Xorg -configure` fails with segmentation fault : > open /dev/fb0: No such file or directory > > Segmentation fault at address (nil) I am using default vga settings for qemu and lspci shows : > VGA compatible controller: Cirrus Logic GD 5446 So my question is:   1. what is this frame buffer ? Is it required to do Xorg -configure?   2. Is there any other way to increase screen resolution ?


Set Transmission as default program when opening magnet links

How can I set up Chromium to open Transmission when clicking on a magnet link such as on TPB? Chromium says that it will use xdg-open but that generally doesn't do anything System: Manjaro Linux 0.8.5.2 fully upated Desktop Environment: Xfce 4.10


Always redirect error to /dev/null

I know I can redirect the error messages from a command to `/dev/null` using the following syntax:               command arg1 arg2 2>/dev/null      But is there a way to do this by default so that the error messages always go to `/dev/null`, unless I specify otherwise?


How to use better driver (nouveau) instead of generic VESA with NVIDIA Quadro NVS 140M?

I've got laptop with NVIDIA Quadro NVS 140M and have no Gnome-shell which I like very well. I use: > Debian GNU/Linux jessie /sid \n \l When I run Debian as live USB everything works fine. How to get gnome3-shell instead of failback? I've tried to replace dir               /etc/X11      with the one from live USB but this fails. Please help.


what does the linux standard base specify about the kernel?

I was taking a look at the Linux standard base (lsb) and could not find much interesting info on the kernel. Does the LSB specify anything at all about the kernel or kernel interface? Is it kernel agnostic? By interface I mean things like:   * where does a bootloader look for the kernel? How does the bootloader load the kernel?   * system calls   * kernel module API   * proc and sys filesystems. As @jofel mentioned, there has been some discussion, but it does not seem to be implemented. If it did specifies things like that, then it would be possible to plug in different kernels without problem. Of course, maybe it is too early to thing about those things, since the Linux Kernel dominates LSB systems and sets a de facto standard anyway.


How to create as many variables as needed from shell script(bash)?

I'm making a script for monitoring some user processes with Upstart but, since its for the company I work for, they asked me to do it generic...how's so? Well, the number of processes being monitored could vary, as in number as in name so I need to create it so a user can input "n" number of processes and give the shell its pathname's so I can store them in variables and pass Upstart a script with them so my question is: how can I create as many variables as needed? Here's my script so far… `./script input`               #!/bin/bash          FILENAME=$1     i=1          while read LINE     do     [rutaServ$i]=$LINE     echo "ruta -> [rutaServ$i]"     i=`expr $i + 1`     done < $FILENAME      As you can see I am taking the pathname provisionally from a plain text file with nothing more than `/home/user` lines in it but, when I run this script I get the following error `[rutaServ1]=/home/user: The file or directory doesn't exists` What is the correct way of doing this?


The meaning of Linux Kernel bug output

I have a quick, (maybe naive),question about Linux kernel's output. When I issue a command, the system (Ubuntu 12.04) freezes, the serial port output of this system is as follows:               [  373.805067] BUG: soft lockup - CPU#1 stuck for 23s! [migration/1:14]     [  373.805069] BUG: soft lockup - CPU#2 stuck for 23s! [migration/2:19]     [  373.805070] BUG: soft lockup - CPU#3 stuck for 23s! [migration/3:24]      My question is: What does `[migration/1:14]` mean? I know 1 stands for the CPU#1, but I'm confused at the meaning of `14`.


grep device name and look for next value :

I have this output from a find command:               abc,10.11.13.14,def,1.2.3.4,geh,6.7.54.23      where abc,def and geh are device names and could be of any length and others are IP address belong to devices. Like`abc,10.11.13.14` for device `abc`. IP shall be next to comma delimiter. How can I use sed, grep or awk to print the associated IP when I grep for a device name? In short I want the IP to be displayed next to device name.


Is there a way to determine the optimal value for the bs parameter to dd?

On occasion I've seen comments online along the lines of "make sure you set 'bs=' because the default value will take too long," and my own extremely- unscientific experiences of, "well that seemed to take longer than that other time last week" seem to bear that out. So whenever I use 'dd' (typically in the 1-2GB range) I make sure to specify the bytes parameter. About half the time I use the value specified in whatever online guide I'm copying from; the rest of the time I'll pick some number that makes sense from the 'fdisk -l' listing for what I assume is the slower media (e.g. the SD card I'm writing to). For a given situation (media type, bus sizes, or whatever else matters), is there a way to determine a "best" value? Is it easy to determine? If not, is there an easy way to get 90-95% of the way there? Or is "just pick something bigger than 512" even the correct answer? I've thought of trying the experiment myself, but (in addition to being a lot of work) I'm not sure what factors impact the answer, so I don't know how to design a good experiment.


Building rtmpdump on RHEL x86 without yum and no root rights

I have an `ssh` connection to a RHEL x86 machine, and I can't use `yum` and I don't have root rights. Is there a way to still install `rtmpdump`? By looking at this tutorial, it seems that installing `rtmpdump` on CentOS (as I understand, CentOS and RHEL are similar) is pretty easy, but only if you have `yum`? So what are my options?


Boot linux from USB, but my medium is corrupt/damaged, what to do?

I'm having the following problem. I was installing Linux from USB and during the installation I had a power outage. Now I've apparently broken GRUB and I can't boot from the USB. What to do? I don't have a CDROM/DVD of the installation, only USB. I cannot recover GRUB because I have an apparently empty `(hd0,msdos)` partition(s).


Docker: How to get image size?

We can search for available image files on the docker website like this:   * https://index.docker.io/search?q=ubuntu How can I tell what the download size(s) will be prior to pulling?               docker.io pull [image]


SMTP server that works with gmail?

I'm running debian and in the past I used google apps free edition. That is no longer available so I won't be able to use it for my new domain on my new box. In the past when I tried to setup a smtp server I could not send emails to my gmail account. I believe the problem was I didn't have SSL How do I setup a fairly straightforward SMTP server? I need 1 or 2 outgoing email address and I'll want a catchall that forwards a copy to my main email address. I don't know what words to do a search for. Also is it possible to send emails to gmail without a SSL certificate? Perhaps using an IP address instead of a domain? IE me@123.456.789.10 to me@gmail.com?


In Fedora, how do I select a proper Norwegian keyboard layout?

I just installed Fedora 19 in VirtualBox using an image from virtualboxes.org. However, I'm unable to select a proper Norwegian keyboard. When I open the keyboard layout, it shows an US layout. A Norwegian layout should have Æ, Ø, Å keys and a lot of other stuff. ![Keyboard Layout](http://i.stack.imgur.com/cBjyu.png)


How to show CPU time for processes via top without 'root' procs

Okay, So I've been attempting this for about three hours now without success. How do you search/display/use the `top` command (or `ps` command if it works...) to output a list of all procs, sorted by CPU time Excluding procs owned by 'root'. My attempts so far:               top -b -S -n 1 | grep -v root     top -b -S -n 1 | egrep -ve root          ps -eo pid,user,args,etime,time,%cpu --sort etime | egrep -v root      That and various attempts at running top in batch mode, outputting to a file and attempting to `awk/grep/sort` through it and sort it properly by the amount of CPU time (mostly unable to find the right column / manage to sort the right column in any seemingly useful way). Forgive me if that seems a bit of a muddle; tl;dr: I just want some way to easily read top without root procs and sorted by CPU time.


UEFI install (14.04) boots to GRUB command prompt, no GUI

I just installed zorin 9 core (14.04) on my Hard-Disk in UEFI mode. But, when I boot, all that comes up is a GRUB2 command line. I've searched for solution and came up with this command `configfile (hd0,2)/boot/grub/grub.cfg` and it boots just fine. This command was from arch-linux and they said to copy the grub.cfg to the efi partition, but i dont know exactly what to copy or if i'm even in the right place. they also mentioned `"grub-mkimage"` but i'm not that much of an advanced user to get what all they were saying. could i just create a startup script that has that command in it? Here is the link - GRUB 2 showing prompt instead of menu.


Find the maximum length of characters in a field

Can you tell me how to find the maximum length of characters in a given field? For instance, with this input file:               s.no,name     1,ATM     35,money     63,back      The maximum length in field 1 is 2. So, I want the output to be:               s.no,name     01,ATM     35,money     63,back      Here, we just add the zeros before number if it is <2\. Please help me.


Solaris 10 IPMP and zones

Is there a way to have an IPMP group Virtual IP only be assigned to a none global zone ? The reason I ask is the need to reduce the number of IP addresses, as we only have so many spare. If I have an IPMP group in my global zone and then wish to use that IPMP group in a none global zone- I believe I need 4 IP addresses , 3 for the GZ and 1 for the NGZ. Is there any way I can use IPMP in a NGZ using just the 3 IP addresses ?


`wait` doesn't wait for `wget --background`

I have gone through several SE posts on the unix wait command and none of the posts resolve my problem. I have a weather forecast model to run. It has first to prepare some folders, then download data using wget, then run the forecast. The data download can take anything up to 30-60 minutes due to low speed. What happens is that when the data download starts the program goes ahead to run commands before the data is ready. Below is my crontab entry to start the run               15 09 * * * /bin/bash /home/zmumba/WRF/SCRIPTS/wrf_run_00.sh &      This is to run at 09 15 everyday, every week and every month. The files to run in wrf_run_00.sh are               !/bin/bash     year=`date "+%Y"`     month=`date "+%m"`     day=`date "+%d"`      source /home/zmumba/.bashrc          perl /home/zmumba/WRF/SCRIPTS/wrf_Namelists_and_Dirs_00_Daily.pl     perl /home/zmumba/WRF/SCRIPTS/download-file_gen00.pl          wget --directory-prefix=/home/zmumba/WRF/DATA/${year}${month}${day}00 --background --continue --progress=bar --input-file=/home/zmumba/WRF/SCRIPTS/download-file-list-one_deg_00.txt           wait$!          cd /home/zmumba/WRF/WPS      and the rest of the commands to run the model follow. Any assistance will be appreciated.


Ubuntu under VirtualBox 4.3.12 r93733 run slow on Windows7 with AVG free 2011

Ubuntu VM **speed is subjectively 5 to 10 times slow**. Tried setting CPU number, PIIX3/ICH9, Display 3D acceleration. Still slow. Any pointers appreciated. VirtualBox installed with all default setting. Ubuntu 14.04 Desktop installed as the only VM. In separate test, Ubuntu run fine as USB Stick LIVE (without install to hard disk) Intel i5, 2.8GHz, 4 cores, 4G RAM, Windows 7 At first, installed latest VirtualBox 4.3.14. Run error. Web postings refers to bug ticket stating that it conflicts with several anti virus software and recommend use 4.3.12 and I did that. It **runs slow. Tested a few functions, seem ok**.


grep: match pattern on a particular position

I need to match a pattern with grep, only if it starts at position 16. Lets suppose I want to match the string `' pattern'` (starting with space) the following should match               bla bla bla bla pattern      whereas following should not match, because the search pattern does not start at pos. 16:               bla bla bla bla foo foo pattern      I have tried using regular expression               egrep '.*\{15\} pattern'      but this does not seem to work as desired. Can somebody please suggest a solution?


Symlink all subdirectories in a directory to another directory

I'm trying to symlink every directory in a folder to another folder. For example, in the structure below, I need the subfolders symlinked to folder2.               - /home/chris/folder1     -- subfolder1     -- subfolder2          - /home/john/folder2     -- subfolder1     -- subfolder2      This is what I have tried so far, but my bash skills are rusty and this does not work.               find /home/chris/folder1 -type d -maxdepth 1 -mindepth 1 -exec ln -s {} /home/john/folder2/{} \;


. (dot) shows up as path separator

I'm hunting a really strange bug:               arian@orel:~$ ls ._cache.<tab><tab>     Display all 205 possibilities? (y or n)     ._cache.apt-file/     ._cache.chromium/     ._cache.chromium.Default/     ._cache.chromium.Default.Cache/     ._cache.chromium.Default.Media Cache/     ._cache.dconf/     ._cache.evolution.mail/     ._cache.evolution.mail.1370283652_17412_21@orel/     ._cache.evolution.mail.1370283652_17412_21@orel.folders/     ._cache.evolution.mail.1370283652_17412_21@orel.folders.Archives/     ._cache.evolution.mail.1370283652_17412_21@orel.folders.Archives.subfolders/     ...      it's like the dot acts as a path separator, except tab completition does not treat it as a path separator and displays the directory recursively. I've seen this behaviour only in this directory. Neither in parent nor child directories and it's not on a separate filesystem. This also shows when accessed from installation media, so seems not to be my operating system. Also shows when accessing via sshfs. `ls` and `find` only show normal paths, but `du` does also show these period-stuff. I did fsck on the FS I noticed a file named               playlist.pls\?action\=playlist\&type\=pls\&sid\=545\&stream_id\=1711      in the directory. on moving this somewhere else, the behaviour vanished. So it seems there is some bug in handling these characters, right? Well, I can chdir where I moved the file, create some files and directories and this behaviour did not show up. I `touch`ed some files with `\&`,`\?` and `\=` and combinations in their names, with normal behaviour. I moved the `playlist.pls\?action\=playlist\&type\=pls\&sid\=545\&stream_id\=1711` file back and no abnormal behaviour showed up. I am not really sure on what to do here. There is some bug for sure, at least fsck should detect possible error on disk if all code worked correctly, right? I have also no idea what code is faulty. I could not reproduce this bug once I moved said file.


Merging Kali with Tails

I want to get into Linux penetration testing, but still want to have the benefits from anonymous surfing. Is it possible to setup a good and 'secure' (Yes I know, TOR!=security, blabla) merge from `Kali` and `Tails`, starting with `Kali`?   And how?


Chrome OS on non chrome hardware

I want to see how it is to hi a on `Chrome OS` for a week, so how can I install a fairly up to date Chrome system on my hardware? I know it may not be supported, so is there projects that work like it with similar `UI`? Also what kernel is Chrome running on?


Wireless driver issue slowing and sometimes freezing pc on start up

Can anyone tell me how to remove this start up error message or fix it? lspci: > 02:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n > Wireless LAN Controller (rev 01) Currently when I boot up my laptop which is a : Lenovo G580 I get the BIOS then a black screen, then off screen then this: > [ 9.625943] Support for cores revisions 0x17 and 0x18 disabled by module > param allhwsupport=0. Try b43.allhwsupport=1


Taking away a User's Read/Write/Execute Permission

So I have a user that is able to go in `/etc` and read files like `httpd.conf`. I would like to deny that user access to any critical locations such as `/etc`, `/var` and so on. What would be the best way to do so? I don't really want to modify my whole folder/file permission just for one user.


Limit CPU and memory usage for PHP-FPM and Nginx processes in CentOS

I want to limit CPU and memory usage for PHP-FPM and Nginx processes in CentOS. I came across following tools   * cpulimit    * cggroups   * memory resource locater which will more efficient and how can I configure for limiting resources for PHP-FPM and Nginx processes ?


Extra bridge interfaces get added automatically

I have a bridge set up between `eth0` and `br0`, the bridge works fine, but sometimes, for unknown reasons and circumstances, I keep getting these off vethXXXXXX interfaces added to the bridge. When this happens my LXC instances can't talk to the internet. When I run `brctl delif br0 vethNbUtXk && brctl delif br0 vethYqTf0F`, all is well again. Any idea where these odd looking interfaces are coming from?               root@ubuntuserver:/var/lib/lxc# brctl show     bridge name     bridge id               STP enabled     interfaces     br0             8000.080027ca5f7a       no              eth0                                                             vethNbUtXk                                                             vethYqTf0F     lxcbr0          8000.000000000000       no     virbr0          8000.000000000000       yes      Example ifconfig when one of these odd vethXXXXXX adapters got created               vethPBkvAC Link encap:Ethernet  HWaddr fe:14:5c:cb:62:d6               inet6 addr: fe80::fc14:5cff:fecb:62d6/64 Scope:Link               UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1               RX packets:3194 errors:0 dropped:0 overruns:0 frame:0               TX packets:3214 errors:0 dropped:0 overruns:0 carrier:0               collisions:0 txqueuelen:1000               RX bytes:309019 (309.0 KB)  TX bytes:311213 (311.2 KB)


Decrypting a file encrypted on a different system

My home server runs OpenBSD 5.3 with Samba serving files to several Windows machines. I wrote a script to backup video files by encrypting each file with `openssl enc -aes-256-cbc` and uploading it to Amazon S3. To test one possible restore scenario, I tried running the script on a file, downloading the file to one of the Windows machines, and decrypting it using several programs advertised as decrypting AES-encrypted files, but they weren't able to decrypt it. Can a file encrypted by OpenSSL be decrypted only by OpenSSL? Can a file encrypted by OpenSSL on OpenBSD be decrypted only by OpenSSL on OpenBSD? For the record, I had no problem downloading the file to my server and decrypting it using OpenSSL. However, I'm interested in knowing if my videos on S3 (quickly archived to Glacier) can remain accessible regardless of my choice of server setup.


Unable to install Texmaker on Gentoo 3.8.13

I am using Gentoo 3.8.13 x86_64. I am trying to install Texmaker but I am facing some problem. ## emerge -av texmaker These are the packages that would be merged, in order:               Calculating dependencies... done!          [ebuild  N     ] dev-libs/kpathsea-6.1.0_p20120701  USE="-doc -source -static-libs" 128,853 kB     [ebuild  N     ] app-text/dvipsk-5.992_p20120701  USE="-doc -source" 94 kB     [ebuild  N     ] app-text/ps2pkm-1.5_p20120701  0 kB     [ebuild  N     ] sys-apps/ed-1.6  85 kB     [ebuild  N     ] dev-tex/bibtexu-3.71_p20120701  0 kB     [ebuild  N     ] dev-qt/qtxmlpatterns-4.8.4:4  USE="(-aqua) -c++0x -debug -pch" 0 kB     [ebuild  N     ] media-libs/netpbm-10.51.00-r2  USE="jpeg png tiff xml zlib -X -jbig -jpeg2k -rle (-svga)" 1,800 kB     [ebuild  N     ] app-text/psutils-1.17-r2  40 kB     [ebuild  N     ] virtual/perl-Getopt-Long-2.380.0-r2  0 kB     [ebuild   R    ] dev-libs/libxml2-2.9.1-r1:2  USE="ipv6 python readline -debug -examples -icu* -lzma -static-libs {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_5 -python2_6 -python3_1 (-python3_3)" 0 kB     [ebuild   R    ] app-text/poppler-0.22.2-r2:0/35  USE="cairo cxx introspection jpeg lcms png qt4* tiff utils -cjk -curl -debug -doc -jpeg2k" 0 kB     [ebuild  N     ] dev-qt/qtwebkit-4.8.4:4  USE="exceptions gstreamer jit (-aqua) -debug -icu -pch" 0 kB     [ebuild  N     ] app-text/texlive-core-2012-r1  USE="-X -cjk -doc -source -tk -xetex" 998 kB     [ebuild  N     ] dev-texlive/texlive-documentation-base-2012  USE="-source" 1,441 kB     [ebuild  N     ] dev-libs/zziplib-0.13.60-r1  USE="sdl -doc -static-libs {-test}" 670 kB     [ebuild  N     ] dev-tex/luatex-0.70.1-r2  USE="-doc" 9,014 kB     [ebuild  N     ] dev-texlive/texlive-basic-2012  USE="-doc -source" 5,190 kB     [ebuild  N     ] dev-texlive/texlive-fontutils-2012  USE="-doc -source" 215 kB     [ebuild  N     ] dev-texlive/texlive-latex-2012  USE="-doc -source" 889 kB     [ebuild  N     ] dev-texlive/texlive-latexrecommended-2012-r1  USE="-doc -source" 6,631 kB     [ebuild  N     ] virtual/latex-base-1.0  0 kB     [ebuild  N     ] app-office/texmaker-4.0.1  12,760 kB          Total: 22 packages (20 new, 2 reinstalls), Size of downloads: 168,674 kB          !!! Multiple package instances within a single package slot have been pulled     !!! into the dependency graph, resulting in a slot conflict:          dev-libs/libxml2:2       (dev-libs/libxml2-2.9.1-r1::gentoo, ebuild scheduled for merge) pulled in by         dev-libs/libxml2:2[!icu?] required by (dev-qt/qtwebkit-4.8.4::gentoo, ebuild scheduled for merge)            (dev-libs/libxml2-2.9.1-r1::gentoo, installed) pulled in by         dev-libs/libxml2:2/2=[icu] required by (www-client/chromium-28.0.1500.95::gentoo, installed)         dev-libs/libxml2:=[icu] required by (www-client/chromium-28.0.1500.95::gentoo, installed)      It may be possible to solve this problem by using package.mask to prevent one of those packages from being selected. However, it is also possible that conflicting dependencies exist such that they are impossible to satisfy simultaneously. If such a conflict exists in the dependencies of two different packages, then those packages can not be installed simultaneously. You may want to try a larger value of the `--backtrack` option, such as `--backtrack=30`, in order to see if that will solve this conflict automatically. For more information, see MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. Can anyone suggest me, how can I solve this problem?


Tiny font on Fedora 16

I'm finding that several programs have tiny font with Fedora 16. Google Chrome, for example, has miniscule font in the tabs. MATLAB has tiny font in the menus (File, Edit, etc.) I have the "larger font" accessibility option enables, but it doesn't affect these programs. On Windows, "larger font" does improve the font sizes of these programs. What can I do about this?


Setting repeat rate of USB keyboard automatically

I often connect a USB keyboard to my laptop, and when I plug it in, the default repeat rate is not what I want. I tried changing it using a `udev` script by adding a rule               `ACTION=="add", ATTRS{name}=="Dell Dell Multimedia Pro Keyboard", RUN+="set-keyboard.sh"`      with the `set-keyboard.sh` script calling               xset -display :0 r rate 500 50; xset -display :0 b off      The problem is that this sets the repeat rate and beep of the laptop built-in keyboard, not the USB keyboard. (That is, if I type `xset q` on the built-in keyboard, it shows the right settings, but if I type `xset q` on the USB keyboard, it's still set to the wrong rate.) Is there a way to let `xset` know which keyboard to set, or some other way to go about this?


Very weak wireless connection on Debian live image install

I'm having a problem with the wireless connection on a fresh install of Debian 7.4 which I didn't have before, I had Debian installed before and WiFi was working great, the only thing that changed this time is installing it from a live install image instead of the CD/DVD images. My wireless card is **Atheros AR5005G** , and ath5k is already installed. I'm trying to fix this problem and I searched about the issue but everything I found was about increasing `txpower` using `iwconfig` or setting `power` to `off` which is already off in my case. So what could be the problem:   * I remember that it was working fine on an old Debian distribution which had the madwifi driver   * I'm dual booting Debian with Windows and on windows it's working fine   * My laptop connects to the router without any problems   * I had a live USB using the same image which had the same problem   * I didn't have this problem before when I installed from the regular CD/DVD images   * I have to be very close to the router to be able to access the internet   * Pinging the router or any website takes a long time with many lost packets   * 408 (Request Timeout) errors occur while browsing Running `lspci -v` shows:               0a:03.0 Ethernet controller: Atheros Communications Inc. AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] (rev 01)         Subsystem: AMBIT Microsystem Corp. Device 0418         Flags: bus master, medium devsel, latency 168, IRQ 18         Memory at d0000000 (32-bit, non-prefetchable) [size=64K]         Capabilities: [44] Power Management version 2         Kernel driver in use: ath5k      **Update** : Here are the `dmesg` related messages:               ...     [7.485709] ath5k 0000:0a:03.0: registered as 'phy0'     ...     [8.429871] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'     [8.430578] ath5k phy0: Atheros AR2413 chip found (MAC: 0x78, PHY: 0x45)      And this is the full output of `dmesg` on pastebin.


How to search, replace and append a pattern to the end of each line

I have the following list of items:               bigBone     fishMarket     dogCollar     ...      I need to generate a two character mapping like this:               bigBone -> bb     fishMarket -> fm     dogCollar -> dc     ...      How can I create the above mapping using `sed`? I have tried something like:               sed -i -r 's/^([a-z]{1})[a-z]+([A-Z]{1})[a-zA-Z]+/ -> \1\L\2/' file      I saw this question, but not sure how to incorporate the concept here. Thanks.


Why can yum still not update GCC 4.9.0?

GCC 4.9.0 has been released since April 22. However, I can still not update it through the following command:               $yum update gcc      Why does the yum repository lag so much behind gcc.gnu.org?


How can I change 'change' date of file?

How can I change 'change' date?               $ touch -t 9901010000 test;stat test       File: `test'       Size: 0           Blocks: 0          IO Block: 4096   regular empty file     Device: fe01h/65025d    Inode: 11279017    Links: 1     Access: (0644/-rw-r--r--)  Uid: ( 1000/    x)   Gid: ( 1000/    x)     Access: 1999-01-01 00:00:00.000000000 +0100     Modify: 1999-01-01 00:00:00.000000000 +0100     **Change: 2012-04-08 19:26:56.061614473 +0200**      Birth: -


Linux Mint 16 (Petra) returns always to login screen when shutdown

I've installed a Mint 16 Cinnamon on my notebook. When I want to shutdown or restart the system, Mint returns to, and stays at, the login screen. Does somebody know such a behaviour?


How umask is calculated in Linux?

So I know `umask` can restrict privileged users, using this format `umask ugo`. I understand that the read = 4, write = 2, and exec = 1. However, when I type `umask`, it returns 4 digits which is `0022` or `0073`. I have no understanding of how does this work now because there is an extra digit. What is that extra digit and what does `0022` mean? Note: Migrating this question that will be closed from Stackoverflow per this recommendation.


Multiple SSH private keys, possible?

Is it possible to have multiple SSH key in a single client, and let ssh choose the right one automatically?


what is `firewalld --nofork`

I carelessly killed the following process               root       470     1  0 Jun06 ?        00:00:13 /usr/bin/python /usr/sbin/firewalld --nofork      Is there any consequence from killing the process? Are there any ways to restart it?


Is there a BSD operating system that can be booted off a logical drive partition?

From several BSD operating systems' documentation, there is a requirement for it to be booted off a primary partition. Is there any BSD that can be booted off a logical partition in some indirect manner? If not, what is/are the technical reason(s)?


sudo command after long sleep call without re-prompting sudo password

I'm trying to write a simple bash function that sleeps X-number of mins and then runs a system sleep command (for me it's `sudo pm-suspend` since I'm on Ubuntu) right now the function looks like this:               function sleepin {       sleep $(bc <<< $1*60); sudo pm-suspend     }      The first argument is after how many mins the sleep is supposed to happen. The problem is that after the sleep the script prompts me for the sudo password. ### How should I re-write the script so that it doesn't prompt me for the sudo password after the sleep? (I've tried to call `sudo sleepin 30` but it still prompts me for the password. Note that if the sleep call is small enough bash doesn't prompts for password, but for a longer sleep it will..)


How to add mimetype bindings?

I got an error message when launching "xdg-open" , `No applications found for mimetype: inode/mount-point` How should I add a binding for "dolphin" ?


maldet and possible false positives?

I have been using `maldet` for many months and it's worked fine up until now. As of about a week ago, it is detecting a mass `{HEX}PHP.Bypassshell` in nearly every PHP file. I even downloaded a clean copy of Joomla 3 and it still detected that within the PHP files. Any thoughts on what the problem could be? Sample results: > malware detect scan report for xxxxxxxx: SCAN ID: 072513-1957.12823 TIME: > Jul 25 19:58:04 -0400 PATH: /home/xxxxx/public_html/testnew/ TOTAL FILES: > 5549 TOTAL HITS: 361 TOTAL CLEANED: 0 > > NOTE: quarantine is disabled! set quar_hits=1 in conf.maldet or to > quarantine results run: maldet -q 072513-1957.12823 FILE HIT LIST: > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/administrator/templates/hathor/html/com_categories/categories/default.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/administrator/templates/hathor/html/com_menus/items/default.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/administrator/templates/hathor/html/layouts/joomla/edit/details.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/administrator/components/com_cache/models/cache.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/administrator/components/com_cache/controller.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/administrator/components/com_content/models/article.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/administrator/components/com_content/models/fields/modal/article.php > .......... {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/form/field.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/form/fields/color.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/form/fields/checkbox.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/form/fields/databaseconnection.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/form/fields/note.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/form/rule.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/oauth1/client.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/session/storage.php > {HEX}PHP.Bypassshell : > /home/xxxxxx/public_html/testnew/libraries/joomla/profiler/profiler.php > ..........


No mouse and close/maximize button Elementary OS

I've downloaded and installed Elementary OS in my laptop, but something weird is happening with me. I made an USB Flash Drive installation, using UNetbootin. I was able to test it (like a Live-CD) and everything went just fine. So I decided to install it. When I installed it, these bugs started to happen:   * The mouse pointer takes ~30 seconds to appear (i'm still able to click things), and when it does, all I see is an "X" on my screen. Perhaps this is the standard mouse pointer, right?   * When I try to close or maximize a window, the top bar with these options just doesn't exists. I'm able to drag the window across the screen, but when I double-click (hoping the window will maximize), the system stops working for a while, and then the window crashes.   * I've tested Elementary OS before installing. When I click something in the Plank, a small animation starts playing. This doesn't happen in the installed version. There are other things happening, but these are the "main bugs" I can remember now. I tried to do these:   * I tried reinstalling the system. Still the same.   * I tried to update the system. 100mb of updates, and the bugs didn't go away.   * A friend of mine asked me to type "sudo apt-get update" and "sudo-apt get upgrade" in the terminal. Still the same. Since I've always been a Windows user, I don't know why this is happening and neither I know how can I fix this. My laptop config is: Dell Inspiron 14R (5420), Core i7 3612QM 2.10GHz, 8GB RAM, nVidia 630GT 1GB and 1TB storage. Any thoughts?


Mounted volume name in terminal is different from in GUI

The basic problem is that in the GUI shows a directory name with no space but when I cd to it in the terminal, the directory name has a space in it. What would cause the names to be different? The full story is: I have been trying to backup my computer to a WD hard drive that I was previously using when I used Windows. When I initially mounted the hard drive it named itself "My Book". I changed the name of the mounted file to MyBook through GParted as explained on Ubuntu Wiki. I also reformatted the hard drive file system to ext3. I navigated to the media directory where it is now mounted, and the directory name was still "My Book". So I changed the name from the command line with (also according to the instructions on Ubuntu Wiki). The directory name still has a space in the terminal but not in the GUI. I am using Ubuntu 14.04. More info: I ran the 2 commands requested by mikeserv. ~>$ lsblk -f               NAME   FSTYPE LABEL        MOUNTPOINT     sda                             ├─sda1                     /     ├─sda2                          └─sda5                     [SWAP]     sdb                             └─sdb1                     /media/cynthia/MyBook     sr0                             sr1    udf    WD SmartWare /media/cynthia/WD SmartWare      ~>$ findmnt               TARGET                        SOURCE                           FSTYPE   OPTIONS     /                             /dev/disk/by-uuid/1871174a-d18f-4f97-921c-428a917e4851                                                                    ext4     rw,relat     ├─/sys                        sysfs                            sysfs    rw,nosui     │ ├─/sys/fs/cgroup                                             tmpfs    rw,relat     │ │ └─/sys/fs/cgroup/systemd  systemd                          cgroup   rw,nosui     │ ├─/sys/fs/fuse/connections                                   fusectl  rw,relat     │ ├─/sys/kernel/debug                                          debugfs  rw,relat     │ ├─/sys/kernel/security                                       security rw,relat     │ └─/sys/fs/pstore                                             pstore   rw,relat     ├─/proc                       proc                             proc     rw,nosui     │ └─/proc/sys/fs/binfmt_misc  binfmt_misc                      binfmt_m rw,nosui     ├─/dev                        udev                             devtmpfs rw,relat     │ └─/dev/pts                  devpts                           devpts   rw,nosui     ├─/run                        tmpfs                            tmpfs    rw,nosui     │ ├─/run/lock                                                  tmpfs    rw,nosui     │ ├─/run/shm                                                   tmpfs    rw,nosui     │ └─/run/user                                                  tmpfs    rw,nosui     │   └─/run/user/1000/gvfs     gvfsd-fuse                       fuse.gvf rw,nosui     ├─/media/cynthia/WD SmartWare /dev/sr1                         udf      ro,nosui     └─/media/cynthia/MyBook       /dev/sdb1                        ext3     rw,nosui


Filtering the result of the find command, so that it returns only directories

Is it possible to get only the results from find that are directory paths? Using find with some option, or using grep or some other utility the results are piped into as a filter? I thought something like `find | grep */$` might work, but it doesn't. From some other testing where I "grepped for" a folder with a specific name it seems like I get a hit for `folder_name$` but not for `folder_name/$`. This seems conterintuitive. How can I grep for lines that end with `/`?


How can you schedule a computer to boot at a specific time?

Usually BIOSes have an option to schedule a time to which to boot at. Is there a Unix/Linux interface to specify the scheduled boot?


Is there any other way to use tail -f for grep -q && operation?

I found this solution: http://stackoverflow.com/questions/7178888/grep-q-not- exiting-with-tail-f but is there any other possible? UPD: I want to do `tail -f | grep -q something && echo 'found!'` but it doesn't work because tail -f prevents pipe from being closed, so `echo` command don't have a chance to be executed.


Fedora 17: plugged in iphone, but nothing happens

The title says it all but to expand a bit; I upgraded to fedora 17 from a fresh install. On f16, I had an issue mounting when they had the issue with the lockdown, but I was able to resolve that. Seems like a different mounting issue is occurring, although this time, no error messages even pop up to give me an indication on where to begin. I believe I have all the necessary libraries (ifuse, gtkpod, libimobiledevice, gfvs, etc..) relevant info from `dmesg`:               [  374.543085] fuse init (API version 7.18)     [  374.577633] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts     [  374.628339] SELinux: initialized (dev fusectl, type fusectl), uses genfs_contexts     [  387.773718] SELinux: initialized (dev proc, type proc), uses genfs_contexts     [  451.292158] usb 1-4: new high-speed USB device number 5 using ehci_hcd     [  451.409558] usb 1-4: New USB device found, idVendor=05ac, idProduct=129c     [  451.409572] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3     [  451.409583] usb 1-4: Product: iPhone     [  451.409591] usb 1-4: Manufacturer: Apple Inc.     [  451.409598] usb 1-4: SerialNumber: c8f6b8e7a41a3b70c5f4ad2959e712a6b230631f     [  452.066930] ipheth 1-4:4.2: Apple iPhone USB Ethernet device attached     [  452.068094] usbcore: registered new interface driver ipheth     [  452.147433] ADDRCONF(NETDEV_UP): eth0: link is not ready     [  558.884407] SELinux: initialized (dev proc, type proc), uses genfs_contexts     [ 1651.445841] usb 1-4: USB disconnect, device number 5     [ 1651.458101] ipheth 1-4:4.2: Apple iPhone USB Ethernet now disconnected     [ 1655.071163] usb 1-4: new high-speed USB device number 6 using ehci_hcd     [ 1655.190166] usb 1-4: New USB device found, idVendor=05ac, idProduct=129c     [ 1655.190180] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3     [ 1655.190191] usb 1-4: Product: iPhone     [ 1655.190198] usb 1-4: Manufacturer: Apple Inc.     [ 1655.190206] usb 1-4: SerialNumber: c8f6b8e7a41a3b70c5f4ad2959e712a6b230631f     [ 1655.303304] ipheth 1-4:4.2: Apple iPhone USB Ethernet device attached     [ 1655.459916] ADDRCONF(NETDEV_UP): eth0: link is not ready      `lsusb`:               Bus 001 Device 006: ID 05ac:129c Apple, Inc.      * * * > **Solution:** > > https://bugzilla.redhat.com/show_bug.cgi?id=815491#c2 > > Per the bugzilla for this issue, there is a comment saying that the > 1.0.8-2.fc17 has the fix in it. However, until this fix is pushed, you can > fix it by editing: `lib/udev/rules.d/85-usbmuxd.rules` > > and changing: `OWNER="usbmux"` to `OWNER="usbmuxd"` > > and this solved it for me.


How to place the toolbar to the top in fluxbox?

The default location of toolbar is in the bottom of the screen. Is it possible to place it to the top instead?


How can I increase the acceleration of the mouse wheel via xinput?

I have a Microsoft wireless USB mouse whose scroll wheel seems to have absolutely no acceleration whatsoever on Linux. On Windows and OSX, the faster I scroll, the faster the page scrolls, and vice versa. I managed to use xinput to change the mouse sensitivity settings following this guide, and it worked great. But when I follow the same steps to change the mouse wheel settings, nothing seems to change. Here is the output of `$ xinput --list-props` on my device:               Device 'Microsoft Microsoft® 2.4GHz Transceiver v8.0':         Device Enabled (133):   1         Coordinate Transformation Matrix (135): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000         Device Accel Profile (259): 0         Device Accel Constant Deceleration (260):   1.000000         Device Accel Adaptive Deceleration (261):   1.500000         Device Accel Velocity Scaling (262):    0.125000         Device Product ID (250):    1118, 1970         Device Node (251):  "/dev/input/event2"         Evdev Axis Inversion (263): 0, 0         Evdev Axes Swap (265):  0         Axis Labels (266):  "Rel X" (143), "Rel Y" (144), "Rel Horiz Wheel" (256), "Rel Dial" (257), "Rel Vert Wheel" (258)         Button Labels (267):    "Button Left" (136), "Button Middle" (137), "Button Right" (138), "Button Wheel Up" (139), "Button Wheel Down" (140), "Button Horiz Wheel Left" (141), "Button Horiz Wheel Right" (142), "Button Side" (254), "Button Extra" (255), "Button Unknown" (253), "Button Unknown" (253), "Button Unknown" (253), "Button Unknown" (253)         Evdev Middle Button Emulation (268):    0         Evdev Middle Button Timeout (269):  50         Evdev Third Button Emulation (270): 0         Evdev Third Button Emulation Timeout (271): 1000         Evdev Third Button Emulation Button (272):  3         Evdev Third Button Emulation Threshold (273):   20a         Evdev Wheel Emulation (274):    0         Evdev Wheel Emulation Axes (275):   0, 0, 4, 5         Evdev Wheel Emulation Inertia (276):    10         Evdev Wheel Emulation Timeout (277):    200         Evdev Wheel Emulation Button (278): 4         Evdev Drag Lock Buttons (279):  0      I've modified properties 274 to 278, but no changes resulted. My distribution is Debian Linux, desktop environment is Xfce, and computer is a Lenovo Thinkpad X201, though this problem seems to only be specific to this mouse rather than any of those things. Am I missing something via the xinput method, or should I try something else entirely? edit: I should specify that I am trying to _increase_ the speed of the mouse wheel, preferably via acceleration, as scrolling is painfully slow at the moment.


How to escape spaces etc in passed variable, for system call to cp in awk

As the title suggests, this problem has enough layers of complexity to make simple escaping characters difficult for me. I have a bash script which, for a large part, has an embedded awk script that reads a file delimited by semicolons. In this text file, one of the fields is a directory path to some JPEGs. I'd like to copy the JPEGs somewhere else, but the original directory path has spaces in it (and could potentially have other strings that could do damage). I can't refer to the directory in question with single quotes because this stops the awk interpreter, and double quotes turns it into a literal string in awk. I'm using gawk 4.1.1. Here's some awk code of what I'm trying to accomplish:               imageDirectory = $1;     cpJpegVariable="cp -r " imageDirectory " assets";     #screws up if imageDirectory has spaces and other naughty characters     system(cpJpegVariable);


Mint fan control

I've installed Mint 15 on my Alienware m14x and can't figure out one thing. For some reason CPU overheats and fan does not respond to that. It always stays calm and quiet. How exactly I can change that? ![enter image description here](http://i.stack.imgur.com/jEvUW.png)


Trust a self signed PEM certificate

1. I have set up a proxy server with SSL using a PEM certificate. Now, there is a couple of machines of mine that I would like to trust this certificate automatically (without the web browser complaining). How can I install a PEM certificate on each machine?   2. Also, what is more recommended: generating a self signed certificate or concatenating the snakeoil certificate?


How to I scan using find for all files that do have execute bit set?

I want to write a permission fix script that uses find to fix permissions on files. Mainly what I need is a find command that is able to list all files with execute bit set, regardless of the other permissions on the file (that's the trick).


Need to create a ksh script for transferring files between application server and db server

I have a requirement where I need to automate the transfer of a particular file from one location in the application server to the database server. I can do it manually by using these steps but I need it in the script               #! /bin/ksh          directory path where the file need to be          ftp (hostname of the application server)           username           password          file location in the apps server          get filename          quit      Any help is really appreciated.


Have grep output spaced for each file

When I do grep on a bunch of files, and several file have the word I am looking for, the output is hard to read as it's one after the other. Is there anyway to insert additional \n's after the matching output of each file. Example, current output what I get               $ grep word daily_log.201407*     <daily_log.20140702-matches  about 100 lines>     <daily_log.20140704-matches  about 10 lines>     <daily_log.20140706-matches  about 50 lines>      Trying to achieve something like               $ grep word daily_log.201407*     <daily_log.20140702-matches  about 100 lines>               <daily_log.20140704-matches  about 10 lines>               <daily_log.20140706-matches  about 50 lines>      Hope the question is clear. Any way to do this?


What command do I use to see the start and end block of a file in the file system?

Is there any command that will output the beginning and ending blocks of any file?


What is the PKG_PATH for NetBSD 6.0.1 Binary Installs?

What is the value or URL for `PKG_PATH` used to inform NetBSD 6.0.1 where to download binary packages from? There seems to be a change in both servers as well as the path or directory layout for the packages directory. I have tried and failed to figure it out. I am using NetBSD on an `i386` architecture.


How to make fonts look similar to windows on Slackware 14 with KDE?

I am having a hard time reading anything. I've had to increase the text size to in same amounts that take up most of my 23 inch monitor... So far I've done some of the things suggested on http://duganchen.ca/writings/slackware/fonts/ It didn't really help much, but taxing my eyes like this is very hard.


Partitioning correctly for GPT in BIOS system

I am in doubt whether I have partitioned my hdd correctly as GPT on a BIOS motherboard. I used _gparted_ to partition and I don't know if I aligned the beginning/end of the disk correctly, used correct flags etc. The disk in question is `sdc`:                   $ sudo lsblk -f     NAME   FSTYPE LABEL           MOUNTPOINT     sda                                ├─sda1 ntfs   System Reserved      ├─sda2 ntfs   win7                 └─sda3 ntfs   WINYANCI             sdb                                ├─sdb1                             └─sdb5 ext4   YAHSI                sdc                                ├─sdc1                             ├─sdc2 swap                   [SWAP]     ├─sdc3 ext4                   /     ├─sdc4 ext4                   /home     ├─sdc5 ext4   store1               └─sdc6 ntfs   store2               sdd                                ├─sdd1                             ├─sdd2 ntfs   DEPO                 └─sdd5 ntfs   HUSUSI               sr0        here is what `gdisk` shows:               $ sudo gdisk /dev/sdc     GPT fdisk (gdisk) version 0.8.8          Partition table scan:       MBR: protective       BSD: not present       APM: not present       GPT: present          Found valid GPT with protective MBR; using GPT.          Command (? for help): p     Disk /dev/sdc: 1953525168 sectors, 931.5 GiB     Logical sector size: 512 bytes     Disk identifier (GUID): 2758BB06-C7E7-451B-9C92-F1B278721BB6     Partition table holds up to 128 entries     First usable sector is 34, last usable sector is 1953525134     Partitions will be aligned on 2048-sector boundaries     Total free space is 3437 sectors (1.7 MiB)          Number  Start (sector)    End (sector)  Size       Code  Name        1            2048            6143   2.0 MiB     EF02          2            6144         8394751   4.0 GiB     8200          3         8394752        76754943   32.6 GiB    EF00          4        76754944       174409727   46.6 GiB    0700          5       174409728      1346283519   558.8 GiB   0700          6      1346283520      1953523711   289.6 GiB   0700        and `parted` shows this. Are there any mistakes?


Ksh features incorporated into Zsh?

I have been a user of Bash for some time. I want to learn at least one other shell now, so I have been picking up the Korn Shell. However, it doesn't look like Ksh has had major updates for almost twenty years, and I have read that Zsh incorporates features from it. I have been reading many of the shell comparison questions on the StackExchange network, but have not found an answer to this: _Are there features from Korn Shell that Zsh does not incorporate?_ If so, what are they?


Traffic stats per network port

I have two machines with two applications that talk to each other on few network ports (TCP and UDP). I want to count traffic that they send and receive. I need not only overall count but stats per machine per port per day. I tried darkstat, but it doesn't provide stats per day, but only overall counters. Is there other way that I can count that traffic (I can put some proxy or gateway between that two machines).