title: Linux not finding Serial Ports

text: I have debian6.0 installed on my machine. It has four comports of which 2 cannot be found. From looking that the systems bios I can see that the ports address are:               PORT      ADDRESS      IRQ     1         3F8          4     2         2F8          3     3         3E8          10     4         2E8          11      Ports 1 and 2 are found by debian but 3 and 4 are not. From what I understand I can setup the ports with this information using `setserial`. I tried:               setserial /dev/ttyS2 port 0x03e8 irq 10 baud_base 115200      but I recieve:               /dev/ttyS2: No such file or directory      Is it safe to create a file in `/dev` named `ttyS2`? and try to run the same command again? **edit:** As per jordanm's request:               # cat /proc/devices     Character devices:       1 mem       2 pty       3 ttyp       4 /dev/vc/0       4 tty       4 ttyS       5 /dev/tty       5 /dev/console       5 /dev/ptmx       7 vcs      10 misc      13 input      29 fb     128 ptm     136 pts     180 usb     189 usb_device     253 rtc     254 hidraw          Block devices:     259 blkext       7 loop       8 sd      65 sd      66 sd      67 sd      68 sd      69 sd      70 sd      71 sd     128 sd     129 sd     130 sd     131 sd     132 sd     133 sd     134 sd     135 sd      **EDIT:** so I made the device file with:               mknod -m 666 /dev/ttyS2 c 4 66      Than I tried to setup the com-port with:               setserial /dev/ttyS2 port 0x03e8 irq 10 autoconfig      but recieved:               /dev/ttyS2: No such device or address      There is in fact hardware for two additional serial ports.


title: Logout user with systemd

text: I start my window manager with systemd service units (following this tutorial). After I log in at `tty1` the following gets executed in `.zlogin` (I'm using ZSH as a login shell):               if [[ -z "$DISPLAY" && $(tty) = /dev/tty1 ]]; then       nohup systemd --user > ~/.xlog 2>&1 &       disown %2       logout     fi      Systemd starts a X server, a window manager, ... through service units. The problem starts when I want to logout.   _Should I simply execute`kill $MANAGERPID` to kill the systemd daemon ?_   It seems much cleaner to do a `loginctl terminate-session $XDG_SESSION_ID` but this command requires further privileges. **Here's the question: What is the preferred way to log out with the setup described above ?**


title: Open multiple files in Vim with a filelist

text: I have a file 'filelist' that contains the following lines:               text1.txt     text2.txt     text3.txt       I am looking for a command line invocation that opens the 3 files in vim. I tried the following:               $ cat filelist | vim -       and               $ vim < cat filelist      but those do not yield the desired result.


title: Grab certain contents of a file

text: So I know tools exist for this problem because I've heard about them, but I don't know what they are. I want to do something like filter out all data but the usernames in /etc/passwd. For example, I would want to grab user1, user2, and user3 from the following file. In this case, the logic could be "Grab text up to the first ':' on each line of the file".               user1:x:1:4     user2:x:2:5     user3:x:3:6      The output would be:               user1     user2     user3


title: Command 'date +FORMAT' — What are %a, %A, %b, etc. called?

text: The `date` command outputs the current date and time like this: `Fri Apr 12 15:04:03 UTC 2013`. To have the output date-time in a custom format we can use `date +FORMAT`, for example, like this: `date "+%Y-%m-%dT%H:%M:%S%:z"` which gives something like `2013-04-12T15:04:37+00:00`. But I want to know what the `%Y`, `%m`, `%d`, `%H`, `%M`, `%S`, etc. are collectively called (i.e. the terminology). Also, what's the `T` called, as it's different from the rest?


title: Is it possible to affect the behavior of all vim commands in normal mode?

text: Is there a way to affect the behavior of all vim normal-mode commands? Say, after every command succeeds, I want to trigger some post-behavior.


title: Terminal-based spreadsheets and wordprocessor?

text: Are there any (good) _terminal based_ (ie. runs in a VT, not in GUI/X) spreadsheets or wordprocessors for Unix/Linux? Can anybody remember the name of such programs which were popular before (eg. before X became so widespread)? I know the "correct" way of doing wordprocessing in Unix is using a markup- language like LaTeX or GROFF together with a simple editor like vi or emacs... But what I'm wondering about, is if there is - or was (anybody remember an older program that did this?) - something like the old MS-DOS (pre-Windows) WordPerfect-like program for Unix? Where you didn't have true WYSIWYG, but where things like emphesize and underline was marked in the text with colors, reverse video and such. Programs that are more "front ends" for LaTeX or some XML-format to create wordprocess-documents are also of interest, provided they use the terminal and use colors and such to mark things like emphesized text (rather than you see the latex format-code). Eg. you press CTRL-I, the text you write turns reverse video, and is written to file inbetween format-codes for emphesize.


title: Live diff-mode editing in vim

text: I want a live view of diffs while I am editing a file. `vimdiff` is able to do something I want, like highlighting the differences between two files. However there are two drawbacks of `vimdiff` that holds me back. First, it cannot buffer the same file independently to allow a `diff` comparison. This problem can be easily worked around. I have the following shell script (call it `diffvim`) to make `vimdiff` buffer the same file independently (by making a temporary copy of the file under editing).               #!/bin/sh          # Differentially Viming          TMPDIR=/tmp/diffvim     FILENM=$1     FILEBN=$(basename $FILENM)          if [ ! -d "$TMPDIR" ]; then       mkdir $TMPDIR     fi          cp $FILENM $TMPDIR/$FILEBN && vimdiff $FILENM $TMPDIR/$FILEBN      The second drawback of `vimdiff` is that editing the _non-diff_ parts of one of the two copies of the same file does not trigger `diff` to recalculate the differences. One has to do it manually by invoking `:diffupdate`. I want this recalculation to be automated. The relatively convenient way I feel is to trigger it when I exit the _INSERT_ mode and enter the _NORMAL_ mode. This again can be easily done by adding the following mapping to my `.vimrc` file:               inoremap <Esc> <Esc>:diffu<CR>      However, it is not the perfect solution yet. Because if I do some editing in the _NORMAL_ mode, that is without entering and then exiting the _INSERT_ mode, recalculation will still not be triggered automatically after the editing is done. So I add another mapping to my `.vimrc` file:               nnoremap <Esc> :diffu<CR>      But this time, something strange happens. When I open a file for editing, some of the standard key bindings malfunction. For example, if I press key `h` or `l` (that is, any of them being the first command I issue after opening the file), all get me into _INSERT_ mode, while key `j` or `G` delete a line or the whole content, etc. But if after opening the file, I press key `Esc` first, then those commands work fine. Any idea what goes wrong? Do you have a work-around?


title: Reprepro : How to add the whole packages of different OS

text: First, I would like to apologize if this is an easy question to some. I am just a newbie so I am asking for your patience... I am trying to use Reprepro for my software repository. My question is how do I add the whole OS package to it. I plan to add wheezy, squeeze, lenny etc. Do I need to download it first or can Reprepro do the download itself.


title: VT100 terminal emulation to use with a Java-based 8-bit computer emulator

text: I'm successfully using GNU Screen as serial terminal to "talk" to my Altair 8800 clone (http://altairclone.com/) using serial line. The command I use is:               screen -istrip /dev/ttyUSB0      Screen does the VT100 emulation, strips off MSB from output etc. - works perfect. Now, I'm writing an emulator of the Altair 8800 in Java and would like to use some terminal emulator to connect and talk to it, just like it was a real machine through a serial device. What is the best way to solve this in the Linux world? Is there a way to use `screen` for that? Something tells me the solution is trivial, but I just don't know it yet.


title: Use awk results as parameters to another command

text: I'm extracting rows from a set of text files with awk. The files look like this:               1000    1    75     1000    2    76     1001    1    76     1001    2    80      I'm searching several directories of these with this command:               awk -F"\t" '$3 == "76" { print $1"\t"$2}' ../benchmark/*/labels.txt      awk is giving me the correct output:               1000    2     1001    1      Now for each found row I must execute a script passing these two numbers as parameters, like this:               ./build.oct 1000    2      What's the correct way to do that? I don't really care about script console output (it produces files).


title: Why does apache not define where to log by default?

text: When searching the occurrence of the chain `/var/log` in default configuration files of apache this cannot be found anywhere. But log files are defined as such               # part of httpd.conf     ErrorLog logs/error_log      I cannot understand how does apache decide where to placed its error log file. Why does not apache define exactly where the log files will be sent? Or, if you prefer, where is defined the root directory for log files in apache? Thanks for reading


title: Suppresss "~/Mail does not exist" in mutt

text: I use Mutt (1.5.21 on a headless Debian 7.2 Wheezy VPS) only occasionally, to see and delete messages from cron and the likes. However, it keeps pestering me with this non-existent ~/Mail folder. ![Mutt pestering](http://i.stack.imgur.com/Ap5Um.png) No need to say that it works perfectly with the folder not being created; I'm kind of miss the whole point of asking this every time. Can I disable the message? (Or if that fails, change the path to something invisible?)


title: Where is the appropriate place to deploy web apps?

text: I am a new sysadmin (by default). We have an ubuntu 14 server with two users. Both users need to deploy web apps to the (production) server. My plan is to create a folder off of root               /apps/      and then put each app in a folder there. Then add each user to a group and give that group permissions to read and write in that folder? Is that the clean/standard way to do this? Am I missing something? Interested in doing this properly.


title: How to get vhosts for a psyBNC?

text: I am not 100% sure if this is the right section, but I checked all the StackExchange sites and found this one to be the closest to my problem. I am currently setting up a psyBNC on a server. So far this works. I can connect to it with my IRC client. Now my problem is about the vhosts. When thinking about this point, I have several ideas in my mind (virtual hosts used with a web server or virtual hosts used for dynamic IP addresses) and no idea what to do with this point in psyBNC. I want to use a virtual host for IP address masking. What is required to set this up? Do I need to register somewhere like for a dynamic IP host? Or can I write down numerous fictive host names? What do I need to get and to set up to tie things together?


title: Permanent background ssh connection to create reverse tunnel: what is correct way?

text: Related question: initiate ssh connection from server to client Answer from there helped me a lot, this command does what I need:               ssh -R 2225:localhost:22 loginOfServerWithPublicIP@publicIP      So I wrote the script to reconnect all the time:                #!/bin/bash           while true; do         echo "try to connect..."         ssh -o ServerAliveInterval=240 -R 2225:localhost:22 user@host         echo "restarting in 5 seconds.."         sleep 5      done      And added it to the `/etc/crontab`. But I found out that works if only I execute it "by hand" from shell, but if it is called by cron, ssh connects and immediately finishes. (so, the script above reconnects all the time) From `man ssh`, I found that for background connections I should call it with `-n` key, but it didn't help. Then, I just looked around for similar scripts and I found that it works if I call `tail -f something`, i.e. some "neverending" command, so I just created empty file `/tmp/dummy_file` and now my ssh command looks like this:               ssh -o ServerAliveInterval=240 -R 2225:localhost:22 -n user@host tail -f /tmp/dummy_file      It works now! But, this solution seems a bit ugly, plus I don't really understand actual reasons of that behavior. Just by chance, I tried to call `bash` instead of `tail -f` (`bash` seems to me "neverending" command, too), but it doesn't work. So, could anyone please explain this behavior, and what is the correct way to create background ssh connection to keep reverse ssh tunnel up?


title: XRandR crops displayed area on certain multi-monitor configurations

text: I have total of four monitors. One (1680x1050) is connected to integrated Intel display adapter, and three (1440x900 and two 1920x1080) are connected to dedicated ATI display adapter. With certain XRandR configurations some monitors have their display area cropped, so that for example lower part of the screen is not usable. I'd like to use configuration like this one:               xrandr \         --output VGA-1 --mode 1440x900 --pos 780x1080 --rotate left \         --output HDMI2 --mode 1680x1050 --pos 0x30 --rotate normal \         --output HDMI-3 --mode 1920x1080 --pos 1680x1080 --rotate normal \         --output DVI-0 --mode 1920x1080 --pos 1680x0 --rotate normal      But the lower part (below the bottom edge of the bottom right screen) of the bottom left screen is cut off: ![Failure](http://i.stack.imgur.com/yUdiC.png) On the other hand, this configuration works:               xrandr \         --output VGA-1 --mode 1440x900 --pos 780x1050 --rotate left \         --output HDMI2 --mode 1680x1050 --pos 0x0 --rotate normal \         --output HDMI-3 --mode 1920x1080 --pos 1680x1080 --rotate normal \         --output DVI-0 --mode 1920x1080 --pos 1680x0 --rotate normal       , as shown here: ![Success 1](http://i.stack.imgur.com/guXIQ.png) Also this configuration works:               xrandr \         --output VGA-1 --mode 1440x900 --pos 780x0 --rotate left \         --output HDMI2 --mode 1680x1050 --pos 0x1440 --rotate normal \         --output HDMI-3 --mode 1920x1080 --pos 1680x1440 --rotate normal \         --output DVI-0 --mode 1920x1080 --pos 1680x360 --rotate normal       , as shown here: ![Success 2](http://i.stack.imgur.com/nsSsZ.png) In addition, the configuration below works               xrandr \         --output VGA-1 --mode 1440x900 --pos 780x1080 --rotate left \         --output HDMI2 --mode 1680x1050 --pos 0x30 --rotate normal \         --output HDMI-3 --mode 1920x1080 --pos 1680x1440 --rotate normal \         --output DVI-0 --mode 1920x1080 --pos 1680x0 --rotate normal      as shown here: ![Success 3](http://i.stack.imgur.com/9fwfL.png) **UPDATE:** Strangely, I managed to get the wanted layout by command sequence:               xrandr \         --output VGA-1 --mode 1440x900 --pos 780x1080 --rotate left \         --output HDMI2 --mode 1680x1050 --pos 0x30 --rotate normal \         --output HDMI-3 --mode 1920x1080 --pos 1680x1440 --rotate normal \         --output DVI-0 --mode 1920x1080 --pos 1680x0 --rotate normal          xrandr \         --output HDMI2 --mode 1680x1050 --pos 0x30 --rotate normal \         --output DVI-0 --mode 1920x1080 --pos 1680x0 --rotate normal \         --output VGA-1 --mode 1440x900 --pos 780x1080 --rotate left \         --output HDMI-3 --mode 1920x1080 --pos 1680x1080 --rotate normal \             --primary      so that it works on freshly started Xorg instance, but I don't have a clue why it works. Besides, that solution seems a bit ugly. Can anybody enlighten me on this issue, please? My OS is Arch Linux, window manager is i3, and the version of XRandR is 1.4.2. Xorg configuration files have only InputClass and Files sections.


title: Alt-Left to skip words does not work in terminal emulators

text: On a Debian Wheezy machine at previous job, I got used to Alt+Left and Alt+Right to skip between words on active command-line (in bash). However, since at home I have upgraded to Jessie (Debian 8.0, testing branch) this does not work anymore: instead of skipping to previous word, Alt-Left prints something like `D` or `[D`. OTOH, if I open ssh and connect to my headless Debian Wheezy, it does work perfectly. Furthermore, I just installed Fedora 20 in my new job and here the behavior is the same. This applies to bash, csh and ksh (started under `env -i`), as well as rxvt-unicode and xfce4-terminal, so it must be something outside these level. Where else in the stack should I look to find the difference?


title: Can't run boinc on fedora

text: I'm trying to install boinc to fedora 17 from packages. Everything is fine, client starts properly, I added port 31416 to firewall exception. However cannot add any project or execute any command on it. boincmgr cannot connect to the core client any command on boinccmd returns status: Error -1 Operation failed: Error -1 How do I solve it?


title: Running application ends with "Segmentation Fault"

text: I have a command line application that when run does not do what it is supposed to do and at a certain point leaves the message:               Segmentation fault      What does this mean? What should I do?


title: awk extended pattern matching (embedding pattern matching in actions for already matched strings)

text: I want handle strings of the form:               PREFIX_TYPE_N,DATA      So, does the *awk (gawk, mawk, nawk) support including pattern matching in the action for already matched string? Something like this (of course, doesn't work for me):               *awk 'BEGIN { FS="," }          /PREFIX/ {                     /TYPE_1/  {printf "[TYPE1] [DATA: $2]"}    // <-- included pattern                      /TYPE_2/  {printf "[TYPE2] [DATA: $2]"}    // <-- another included pattern                     ...                                        // <-- some more included patterns                   }' "filename"      Or do I still need if/else or switch/case?


title: Boot-Repair ineffective

text: I was attempting to install a linux partition(Kali to be specific) alongside Windows8(Not 8.1) and I seem to have run into some trouble. My system information is located at : paste.ubuntu.com/7512281 I was immediately pushed into the grub cli, where I set my root to (hd1,gpt2) and then attempted to boot using the grub bootloader. I was presented with options, but none of them had my linux partition. I had two windows options and a Lenovo option(I am using a Lenovo T430) I am completely lost at this point, does anyone have any suggestions? Thanks for your time!


title: How to set umask so that directories to be `r-x` and files to be `---`

text: I want to set the default permissions for newly created directories to have `r-x` for _others_ and those of newly created files (non-directory files) to have `---`. If I set the umask to 2, directory permissions get `r-x` but files' get `r--`. I couldn't find any way to achieve what I want with `umask`. Ultimately, I want _others_ to be able to traverse the directories but not to read the content of the files. I think that is a very reasonable demand but eventually there seems to be no such setting.


title: Image set compression

text: Is there a good open source (not exclusive to Linux) for compression of a set of similar images? I have thousands of documents scanned but I do not access them often. The documents are forms, with little changes (the values, and sometimes the font, and so). I found a lot of papers about this, but neither one app. We use both Windows and Linux, so a cross-platform would be nice.


title: One way diff between 2 directories

text: I am looking to perform a diff between 2 directories, both of which contain may files and subdirectories. I am hoping to perform a one-way diff between a source and target directory that will return only the following:   1. Files that exist in source but not in target   2. Files that have changes in source that do not exist in target So this would exclude:   1. Files that exist in the target but not in the source   2. Any additions that have been made to files in the target directory that do not conflict with a line in the source   3. Any changes related to whitespace Is this possible? I am using Cygwin.


title: Touchpad doesn't wake up from suspend

text: I've been trying to figure out how I can make my touchpad work after waking up from suspend. Until recently I could at least reactivate it by typing:               ls /lib/modules/`uname -r`/kernel/drivers/input/mouse     sudo modprobe -v synaptics_i2c      (btw how can I actually determine which driver is handling my touchpad? `lspci -k` isn't helping me and I'm fairly new to linux?) A recent kernel update caused this method to not work anymore. I've found this solution, but it doesn't work               sudo touch /etc/pm/sleep.d/0000trackpad     sudo gedit /etc/pm/sleep.d/0000trackpad      and paste in the following:               #!/bin/sh     case "$1" in         suspend|hibernate)              modprobe -r psmouse ;;         resume|thaw)             modprobe psmouse ;;     esac      Finally, making it executable:               sudo chmod +x /etc/pm/sleep.d/0000trackpad      How can I get my touchpad to work after waking from suspend?


title: Using ACL with Multiple Default Groups

text: I have looked though the answers to similar questions and refreshed my memory on ACLs by reading tutorials on Linux ACLs. Yet, I am still stumped. What have I done wrong, or what do I not understand? I have a file system mounted with the `acl` option.               user@host:/srv$ grep srv /etc/fstab     UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /srv ext4 relatime,nodev,nosuid,user_xattr,acl 0 2      The user, _user_ , is a member of the _devs_ group.               user@host:/srv$ id     uid=1000(user) gid=1000(user) groups=1000(user),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),1001(devs)      The umask is normal.               user@host:/srv$ umask     0022      A directory is created; group ownership and permissions are set.               user@host:/srv$ sudo mkdir lib; sudo chmod 0750 lib && sudo chgrp www-data lib     user@host:/srv$ ls -l     total 24     drwxr-x---  2 root www-data  4096 May 21 18:00 lib     drwx------  2 root root     16384 Feb 17 18:22 lost+found     drwxr-xr-x  3 root www-data  4096 May 21 17:25 www      An ACL is applied to the new directory.               user@host:/srv$ sudo setfacl -d -m g:devs:5 lib/     user@host:/srv$ getfacl lib     # file: lib     # owner: root     # group: www-data     user::rwx     group::r-x     other::---     default:user::rwx     default:group::r-x     default:group:devs:r-x     default:mask::r-x     default:other::---      I think I should be able to get a directory listing, but I cannot.               user@host:/srv$ ls lib/     ls: cannot open directory lib/: Permission denied


title: if else statement in one line using && and ||

text: I would like to know if these 2 ways are equivalent: First:               #!/bin/bash     if [ -x $FILE ]     then       echo "You have execution permission to a "$FILE""     else       echo "You don't have execution permission to a "$FILE""     fi      Second:               #!/bin/bash     [ -x $FILE ] && echo "You have execution permission to a "$FILE"" || echo "You don't have execution permission to a "$FILE""


title: More tiling with KDE

text: I fear that I go into conflicting requirements here, but I still want to ask. I have been using KDE for a while now and I do like its software (Konsole, Okular, Dolphin). I like KWin with its features a lot:   * Splitting windows on the left/right side, even with multiple monitors.   * Splitting windows into the quadrants of each screen.   * Compositing. Windows should wobble.   * Pinning windows to the very top.   * Options for each program and window that can be persisted. However, on my 24" screen with its 1920 times 1200 pixels, I feel that three colums would be a better use of the space. Especially since I am considering to buy 2560 times 1200. See this: ![](http://chaos.stw-bonn.de/users/mu/uploads/2013-11-10/screenshot1.png) I know that three columns would be easily achieved with a tiling windows manager like Awesome WM. But I have two friends that use Awesome WM and I would like it avoid for the following reasons:   * KDE System Settings is something that I use often, and I want my system to work, not work on the command line to get my printer working.   * You will have to tinker to get a battery widget into a systray area.   * Solely tiling is not what I want either, free floating windows are preferred for Firefox, Thunderbird and other things.   * Since I use a lot of the KDE applications, using Plasma and KWin seems to make sense. Is there some way to get some more advanced actions like not only snapping windows into corners, but also into three columns with KWin? Performance, or anything being lightweight, is no concern at all. KDE runs just fine, at that is as large as it gets.


title: How to add parens around text

text: How can I use sed to replace text and also append to end of line for the match in question? I have a sed file which is doing many substitutions. One of them changes `~=` to `match(` using `/=\~/ s/=\~/match( /` When doing this, I also want to add a "`)`" (space + end paren) at the end of the line in question (that met the original match) I tried this with this sed line:               /=\~/ s/=\~/match(/ s/$/ )/      but I got our favorite `sed: -e expression #1, char 77: unknown option to`s'`   (line 77 'cos this sed has lots of other stuff (omitted)). How can I append a `)` for these lines? Can I do it within this match or do I need another line for it? I would like it to only be for these matches or I might end up adding an extra `)` for "existing" `match()` expressions. fwiw the full sed is..                 sed -i 's/\.should/)\.to/               /\.to ==/s/==/eq/               /=\~/ s/=\~/match(/ s/$/ )/  <--- line in question               /[^}.to|end.to]\.to[[:space:]]/ s/\(\S\)/expect(\1/               /[^}.to|end.to]\.to_not[[:space:]]/ s/\(\S\)/expect(\1/               s/[^}.to|end.to].to[[:space:]]/).to /               s/to_receive/to receive/               s/to_not_receive/to_not receive/' ../_spec_seded/"$file"


title: Problem installing Debian 7 64bit on UEFI laptop Fujitsu Lifebook NH532

text: I have installed Debian 7 64bit on my brand new laptop Fujitsu Lifebook NH532. As I understood lately this is UEFI-enabled laptop. At first installation attempt I've not created EFI boot partition, so after the istallation process the system simply didn't boot. Then I reinstalled and during the partitioning process created an EFI boot partition. After the reinstall system still was not able to boot, saying               PXE-E61: Media test failure, check cable     PXE-MOF: Exiting PXE ROM     Boot Failure      Suddenly I've noticed that the boot menu (triggered by F12) has a new line "debian". When selecting that, Debian loads just fine. But why doesn't load it by default? Why should I have to press F12 and select "debian". When I played with the bios settings and disabled CSM (Compatibility Support Module in Advanced bios tab) Debian starts loading immediately after power on, BUT the GUI doesn't start ("_" blinking at top). Ctrl-Alt-(F1 - F6) consoles work fine. What have I done wrong and how can I make it start Debian just after power on?


title: Error installing gdb-arm-linux-gnueabi

text: I get an error when I try to install the `gdb-arm-linux-gnueabi` package. This is the error that I obtain when I run `apt-get install gdb-arm-linux-gnueabi`:               $ env LC_ALL=C sudo apt-get install gdb-arm-linux-gnueabi      Reading package lists... Done     Building dependency tree     Reading state information... Done     Suggested packages:       gdb-doc     The following NEW packages will be installed:       gdb-arm-linux-gnueabi     0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.     Need to get 0 B/1848 kB of archives.     After this operation, 3887 kB of additional disk space will be used.     (Reading database ... 246473 files and directories currently installed.)     Unpacking gdb-arm-linux-gnueabi (from .../gdb-arm-linux-gnueabi_7.2-1_amd64.deb) ...     dpkg: error processing /var/cache/apt/archives/gdb-arm-linux-gnueabi_7.2-1_amd64.deb (--unpack):      trying to overwrite '/usr/share/gdb/syscalls/sparc-linux.xml', which is also in package gdb 7.4.1+dfsg-0.1     dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)     Errors were encountered while processing:      /var/cache/apt/archives/gdb-arm-linux-gnueabi_7.2-1_amd64.deb     E: Sub-process /usr/bin/dpkg returned an error code (1)


title: Unable to reconnect to a WiFi network on Fedora 20?

text: # Problem After leaving my Fedora 20 laptop running overnight, I open it back up and it prompts me to re-enter the password for my home WiFi network. The password is already typed in and censored, but it wants me to to confirm and hit _Connect_. I have deliberately made sure the password I am typing in is correct. Once I type the password into the prompt, I press _Connect_ and the prompt disappears. About five to ten seconds later, without displaying an error message of any sort, it brings up the exact same prompt with the password already entered. Just to be sure, I've tried just pressing _Connect_ without editing the password, and I have also retyped the password and tried again to no avail. # Guaranteed Fix As of right now, the only way I know I can indefinitely fix the problem is by restarting my laptop, which leads me to believe that either **my home WiFi network is misconfigured** in the _WiFi Settings_ , or there is something that **Fedora isn't handling properly**. Ideally, yes, I could just restart my laptop, but for example, let's say I'm uploading a significant amount of files over FTP, and if I restart my computer, that means I have to reupload a few thousand files because I have no idea which ones have been uploaded, which is just a huge delay. # Network Setup My network is a Westell modem connected to an Apple AirPort Extreme router. As far as I know, it's a pretty standard setup. The router handles DHCP and NAT, which does cause a small problem with the modem (a double NAT), and AT&T told us that if we want to use the features from our AirPort Extreme, we will have to deal with it. But it hasn't affected Internet usage on any other devices for the past year and a half since we set it up. This is the AirPort Utility's description of a Double NAT, if it helps any: > This AirPort base station has a private IP address on its Ethernet WAN port. > It is connected to a device or network that is using Network Address > Translation (NAT) to provide private IP addresses. Change your AirPort base > station from using DHCP and NAT to bridge mode. Using bridge mode disables some of the most important features of our AirPort Extreme base station, including guest networking. But as I said previously, having the Double NAT hasn't affected Internet usage on any other device for the past two years.


title: What does ^@^@^@ mean in a text file?

text: Sometimes I have problems with opening a file using a graphical text editor -- I'm using `geany`. The file can be read by `vim` without a problem. I checked the file, and there wasn't anything wrong with it, except some lines. This is for example `.bash_history` file:                776 reboot      777 ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^     @^@^@^@^@^@^@geany /etc/fstab     ....     ....      823 reboot       824 ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@exit      I don't know what `^@` is, but after removing each line that has it, the file can be read again in `geany`. Maybe the reboot action has to do something with it? But I have other `reboot` entries in the file and the `^@` characters appear only in two or three places. This is only an example file, I saw the characters in some other files, one thing seems to be the same -- it concerns only big files, those that have many lines. Does anyone know what `^@` means, where it came from and why `vim` has no problems with reading the file whereas `geany` can't read it at all?


title: comparing lines with awk vs while read line

text: I have two files one with 17k lines and another one with 4k lines. I wanted to compare position 115 to position 125 with each line in the second file and if there is a match, write the entire line from the first file into a new file. I had come up with a solution where i read the file using 'cat $filename | while read LINE'. but it's taking around 8 mins to complete. is there any other way like using 'awk' to reduce this process time. my code               cat $filename | while read LINE     do       #read 115 to 125 and then remove trailing spaces and leading zeroes       vid=`echo "$LINE" | cut -c 115-125 | sed 's,^ *,,; s, *$,,' | sed 's/^[0]*//'`       exist=0       #match vid with entire line in id.txt       exist=`grep -x "$vid" $file_dir/id.txt | wc -l`       if [[ $exist -gt 0 ]]; then         echo "$LINE" >> $dest_dir/id.txt       fi     done


title: Properly Setting Red Hat Daemon Umask

text: I've been trying to figure out the proper location to set daemon umasks in RedHat 5. All my searches lead to setting it in `/etc/init.d/functions` or `/etc/sysconfig/init`. What are the pros/cons of setting the `umask` in one place over another? Is one location more secure than the other?


title: SSH login via IPv6 successfull while using IPv4 to the same host yields "Permission denied"

text: I'm currently stumped by a strange problem… I have a dual stack host to which I want to SSH. If I connect via IPv6 everything works like expected               datenwolf@foo ~/ > ssh -6 bar.example.com     Password:          datenwolf@bar ~/ >      However when doing the same via IPv4 it fails               datenwolf@foo ~/ > ssh -4 bar.example.com     Password:     Permission denied (publickey,keyboard-interactive).          datenwolf@foo ~/ >      Excerpt from `/var/log/sshd` for the failing login               Apr 24 16:34:03 [sshd] SSH: Server;Ltype: Version;Remote: www.xxx.yyy.zzz-38427;Protocol: 2.0;Client: OpenSSH_5.9p1 Debian-5ubuntu1     Apr 24 16:34:03 [sshd] SSH: Server;Ltype: Kex;Remote: www.xxx.yyy.zzz-38427;Enc: aes128-ctr;MAC: hmac-md5;Comp: none [preauth]     Apr 24 16:34:04 [sshd] SSH: Server;Ltype: Authname;Remote: www.xxx.yyy.zzz-38427;Name: wolfgangd [preauth]     Apr 24 16:34:07 [sshd] pam_access(sshd:account): access denied for user `datenwolf' from `foo.example.com'     Apr 24 16:34:07 [sshd] error: PAM: User account has expired for datenwolf from foo.example.com     Apr 24 16:34:07 [sshd] Connection closed by www.xxx.yyy.zzz [preauth]      Of course the account did not expire and I can perfectly log in via IPv6. Using Google I found various reports on the log messages but none of them matched my problem (in the sense that applying the proposed solutions didn't work for my case). I'm pretty much out of ideas here. * * * ### Update `/var/log/sshd` for successfull IPv6 login _on the very same target machine_ :               Apr 24 16:56:42 [sshd] SSH: Server;Ltype: Version;Remote: 2001:x:x:x:x:x:x:x-46025;Protocol: 2.0;Client: OpenSSH_5.9p1 Debian-5ubuntu1     Apr 24 16:56:42 [sshd] SSH: Server;Ltype: Kex;Remote: 2001:x:x:x:x:x:x:x-46025;Enc: aes128-ctr;MAC: hmac-md5;Comp: none [preauth]     Apr 24 16:56:43 [sshd] SSH: Server;Ltype: Authname;Remote: 2001:x:x:x:x:x:x:x-46025;Name: datenwolf [preauth]     Apr 24 16:56:47 [sshd] Accepted keyboard-interactive/pam for datenwolf from 2001:x:x:x:x:x:x:x port 46025 ssh2     Apr 24 16:56:47 [sshd] pam_unix(sshd:session): session opened for user datenwolf by (uid=0)      I tried logging in from various machines all the same result: IPv6 works, IPv4 doesn't. * * * ### Update 2 For reference this are the used IP tables. Note that _these are battle tested_ , i.e. they are in use for several years now and were not changed recently. Remote login via IPv4 _did_ work with them. IPv4 iptables:               Chain INPUT (policy ACCEPT 2144 packets, 336K bytes)      pkts bytes target     prot opt in     out     source               destination                132 20762 fail2ban-SSH  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22       12M   14G ACCEPT     all  --  ppp0   *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED      3111 95984 ACCEPT     icmp --  ppp0   *       0.0.0.0/0            0.0.0.0/0                18692 1123K ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22         2   112 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:1194         0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:1194      4633  288K ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpts:6880:6899      2826  154K ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpts:6880:6899         4   160 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:123         0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:123     44165 3069K REJECT     all  --  ppp0   *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable          Chain FORWARD (policy ACCEPT 48032 packets, 44M bytes)      pkts bytes target     prot opt in     out     source               destination                  0     0 REJECT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:631 reject-with icmp-port-unreachable         0     0 REJECT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:515 reject-with icmp-port-unreachable         0     0 REJECT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:631 reject-with icmp-port-unreachable         0     0 REJECT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:515 reject-with icmp-port-unreachable         0     0 REJECT     all  --  ppp0   ppp0    0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable      133K 8347K TCPMSS     tcp  --  *      ppp0    0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 TCPMSS clamp to PMTU          Chain OUTPUT (policy ACCEPT 14378 packets, 2172K bytes)      pkts bytes target     prot opt in     out     source               destination                   Chain fail2ban-SSH (1 references)      pkts bytes target     prot opt in     out     source               destination                132 20762 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0       IPv6 ip6tables               Chain INPUT (policy DROP 0 packets, 0 bytes)      pkts bytes target     prot opt in     out     source               destination                  0     0 DROP       all      *      *       ::/0                 ::/0                 rt type:0 segsleft:0      484K   86M ACCEPT     icmpv6   *      *       ::/0                 ::/0                      105K 7943K ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpt:22         0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpt:1194         0     0 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpt:1194         0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpts:6880:6899         0     0 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpts:6880:6899         0     0 ACCEPT     tcp      *      *       ::/0                 ::/0                 tcp dpt:123         0     0 ACCEPT     udp      *      *       ::/0                 ::/0                 udp dpt:123         0     0 ACCEPT     all      ppp0,sixxs *       ::/0                 ::/0                 ctstate RELATED,ESTABLISHED     4164K  466M ACCEPT     all      !ppp0,sixxs *       ::/0                 ::/0                         0     0 REJECT     all      *      *       ::/0                 ::/0                 reject-with icmp6-port-unreachable          Chain FORWARD (policy DROP 0 packets, 0 bytes)      pkts bytes target     prot opt in     out     source               destination                  0     0 DROP       all      *      *       ::/0                 ::/0                 rt type:0 segsleft:0      2864  311K ACCEPT     icmpv6   *      *       ::/0                 ::/0                         0     0 REJECT     tcp      *      *       ::/0                 ::/0                 multiport ports 631 reject-with icmp6-port-unreachable         0     0 REJECT     udp      *      *       ::/0                 ::/0                 multiport ports 631 reject-with icmp6-port-unreachable         0     0 REJECT     tcp      *      *       ::/0                 ::/0                 multiport ports 515 reject-with icmp6-port-unreachable         0     0 REJECT     udp      *      *       ::/0                 ::/0                 multiport ports 515 reject-with icmp6-port-unreachable         0     0 REJECT     all      ppp0,sixxs ppp0,sixxs  ::/0                 ::/0                 reject-with icmp6-port-unreachable         0     0 accept_with_pmtu_clamp  tcp      ppp0,sixxs *      !2001:x:x::/48   2001:x:x::/48   tcp dpt:22       18M   14G accept_with_pmtu_clamp  all      *      *       ::/0                 ::/0                 ctstate RELATED,ESTABLISHED     65503 5289K accept_with_pmtu_clamp  all      !ppp0,sixxs *       ::/0                 ::/0                         0     0 REJECT     all      *      *       ::/0                 ::/0                 reject-with icmp6-port-unreachable          Chain OUTPUT (policy ACCEPT 8099K packets, 11G bytes)      pkts bytes target     prot opt in     out     source               destination                  0     0 DROP       all      *      *       ::/0                 ::/0                 rt type:0 segsleft:0          Chain accept_with_pmtu_clamp (3 references)      pkts bytes target     prot opt in     out     source               destination                  0     0 TCPMSS     tcp      *      ppp0,sixxs  ::/0                 ::/0                 tcp flags:0x06/0x02 TCPMSS clamp to PMTU       18M   14G ACCEPT     all      *      *       ::/0                 ::/0       * * * ### Update 3 This is `/etc/sshd/sshd_config` of the system I try connect to, stripped of all comments:               Port 22     ListenAddress 0.0.0.0     ListenAddress ::          PubkeyAuthentication yes     PasswordAuthentication no     UsePAM yes          AllowAgentForwarding yes     AllowTcpForwarding yes     X11Forwarding yes     X11DisplayOffset 10     X11UseLocalhost yes     PrintMotd no     PrintLastLog no     UseDNS yes          Subsystem       sftp    /usr/lib64/misc/sftp-server


title: Recover Partially Formatted Hard Drive

text: I'm running Ubuntu 12.04, and recently tried to safely remove my external hard drive using the GUI, but the "Format" button was right next to the "Safely Remove" button. I stopped the format as soon as it started, but the hard drive won't mount now and I can't access any of the files. I tried to do a data rescue using GParted, but it couldn't find any partitions... any suggestions for recovering the lost data? Needless to say, I now have a vendetta against GUIs.


title: Mount a device as another user

text: Is there a command (on Debian Wheezy) that a `testuser` that belongs only to the group `testuser` can run (maybe he needs to be listed in sudoers first) in order to mount a USB stick as if he belonged to the group `plugdev` or `floppy`?. So he can't access the mounted USB stick directly (since he is not in `plugdev/floppy`) but could `cp` to it (if he is in sudoers and can run `cp` as a `floppy` group member). Maybe there is a way to realize it using regular mount and sudoers? Can a user mount a device as another user (member of another group) without having access to the device?


title: Discovering the number of running and blocked processes in Mac OS X

text: In Linux, I could discover the number of running and blocked processes running               grep "procs_running" /proc/stat      and               grep "procs_blocked" /proc/stat      Is there a way to do it in Mac OS X? Preferably, a way which I could use in a shell script?


title: How do I type the degree symbol under X11 (using a default English keyboard layout)?

text: I'm trying to put in an email the temperature outside in degrees. On my Mac, the degree symbol (`°`) is `Option`+`Shift`+`8`. But I'm writing the email in Thunderbird on an Ubuntu 10.10 with the default US English keyboard layout. What key combination do I use to get the degree symbol under X11? **EDIT:** Gert successfully answered the question... but, bonus points for any easier to use keystroke than what's in his answer!


title: How to add SLED 11 system to windows domain

text: I have a small Windows domain, contains DHCT, DNS, Active Directory, CA etc. I'm trying to connect a SLED 11 to the domain according to found-by-Google- search guides but all what I've found was irrelevant and not up to date. Can someone please link me to an up to date, clear one? (What I want to be able to do is to log-on to the SUSE machine with a Windows active directory user, and to mount Windows shared folders). Thank you very much!!


title: How to use diff tool to take a diff between directories with libraries and source?

text: I would like to know if i can use the **diff** tool to take the difference between two folders which contain sources as well as libraries and executable. Right now i gave > diff -Naur dir1/ dir2/ It is comparing the executables within the directories and is dumping junk values.   Is there any way to remove the libraries and executable while comparing these directories.


title: install java sdk 6, wheezy

text: Followed debian Java Sun wiki, and later 1[open jsk 7 ]2 which has a note on installing 6 : link to java 7 on debian > aptitude install sun-java6-jdk > > No candidate version found for sun-java6-jdk No candidate version found for > sun-java6-jdk No packages will be installed, upgraded, or removed. 0 > packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need > to get 0 B of archives. After unpacking 0 B will be used. Then I downloaded the Java sdk bin file (should i download the rpm bin?) Opened terminal again, su ed and typed make but get error no make! How do I get make? How do I install Java 6 sdk? Update: Looks like it was a newbie question, bins are just scripts with attachments. They are installer. Just : > cd to folder su (enter password) chmod 755 xxx.bin ./xx.bin This executes the script and it extracts to a folder jdk1.6.0_45 in the current folder. Now what?


title: cleaning up an hacked ubuntu server

text: They have hacked my VPS and changed the root passowrd. Fortunately my provider has reset it for me and now I got control back again. The thing is that now I would like to make sure the don't have installed any stuff or service (e.g. for exploiting it for some illegal download/upload etc) which I'm not aware of. Is there any tool or practice to make sure my server is clean? I would like to avoid reinstalling it from scratch.


title: Copy a directory containing links and their targets in Linux

text: I have a directory:               /home/username1/dir_1      This directory contains two folders, folder_1 and folder_2. In folder_2 are links to files present in folder_1. Now, I want to copy dir_1 into /home/username2/dir_2, and the links that are in the new folder_2 should point to the files that are in the new folder_1. So, the new directory /home/username1/dir_1 is completely independent from the old one /home/username2/dir_2. Is that possible ?


title: Installing `setfacl` on Cent OS 6

text: My apologies if this is the wrong Stack Exchange for this sort of question — it seems like the most appropriate. Which `yum` package should I install to get the `setfacl` command on my linux virtual server running Cent OS 6. Or is `yum` not the way to do this? Or does Cent OS 6 have a different way of setting up ACLs? Or something else? I'm a developer — I've setup a virtual server with a VPS hosting company. They're imaged a virtual machine with Cent OS for me. However, I don't have access to the `setfacl` command. I need this command to correctly setup directory access for my Symfony log and caching folders (per their instructions). My assumption is my VPS host set me up with a very bare installation and I need to have some security or access related package installed, but I can't seem to google up that package myself. I plan on asking their support — but 1. We know how awful support can be sometimes, and 2. I'd like to know from the experts what the "right" way to do this is in case support is as awful as I think they'll be. Any help is appreciated — (and don't worry, I only plan to use this VPS for IP restricted development)


title: How to install g++ by command line in opensuse 13.1

text: How can I install g++ by command line in Opensuse? I don't want to use YaST.


title: tar: short read

text: I get an error when I uncompress my `tar`. I do this:               tar xvf VM_DECOMPTES.tar      and after some time I get the following error:               tar: short read      What is going wrong here? > tar: unrecognized option `--version' BusyBox v1.9.1-VMware-visor-klnext-2965 > (2010-04-19 12:53:48 PDT) multi-call binary


title: Parallelize a Bash FOR Loop

text: I have been trying to parallelize the following script, specifically each of the three FOR loop instances, using GNU Parallel but haven't been able to. The 4 commands contained within the FOR loop run in series, each loop taking around 10 minutes. It'd be greatly appreciated if any one could help me set this up in parallel using any tool on Unix-based systems, and save on time.               #!/bin/bash          kar='KAR5'     runList='run2 run3 run4'     mkdir normFunc     for run in $runList     do      fsl5.0-flirt -in $kar"deformed.nii.gz" -ref normtemp.nii.gz -omat $run".norm1.mat" -bins 256 -cost corratio -searchrx -90 90 -searchry -90 90 -searchrz -90 90 -dof 12      fsl5.0-flirt -in $run".poststats.nii.gz" -ref $kar"deformed.nii.gz" -omat $run".norm2.mat" -bins 256 -cost corratio -searchrx -90 90 -searchry -90 90 -searchrz -90 90 -dof 12      fsl5.0-convert_xfm -concat $run".norm1.mat" -omat $run".norm.mat" $run".norm2.mat"     fsl5.0-flirt -in $run".poststats.nii.gz" -ref normtemp.nii.gz -out $PWD/normFunc/$run".norm.nii.gz" -applyxfm -init $run".norm.mat" -interp trilinear          rm -f *.mat     done


title: kickstart copy file to new system

text: I've finished writing my kickstart file but one thing bugs me the whole day. I've searched all over the net, found numerous posts with different solutions and none of them helped me. I did a fresh install from my `kickstart-ed` ISO which contains several files. I would like to copy those files to the newly installed system and start one of those files as a service (it is a service). This is my `%post` right now:               %post --log=/root/ks-post.log     exec < /dev/tty6 > /dev/tty6 2> /dev/tty6     chvt 6     clear     cp /mnt/source/JOTC/src/mongod.conf /etc/     cp -r /mnt/source/JOTC/src/jotc/ /opt/     cp /mnt/source/JOTC/src/service /etc/init.d/jotc      Errors are fairly reasonable; `/mnt/source/JOTC/src/mongod.conf: no such file or directory`. However, if I switch to virtual terminal 2 manually and do a quick `ls /mnt/source/JOTC/src/` there IS that `mongod.conf` file. What am I doing wrong?


title: Runs monit as non-root user

text: I'm using Monit to monitor my nodejs process. Right now `monit` itself runs as the root user which may lead to security holes. How could I run `monit` via the 'monit' user? I installed `monit` by using `apt-get install monit`. So at the moment, it starts at system start up. I just want accomplish the rule that all services that listen on port must be run as a non-root user. I've found a vulnerability that makes me prefer not to run monit as root. Or at least disable access via http interface.


title: Containers running on ARM

text: I've been doing some research and decided to implement OpenVZ since it allows each container to be isolated from other containers, unlike LXC. However, OpenVZ is still not supported for ARM processors. Any way to work around the container isolation issue in LXC?


title: How to learn kernel programming from the start?

text: I have completed my graduation recently. And I have only basic knowledge in C. But I would like to work on the Linux Kernel, and customize it according to my needs. Not only customize I would also like to contribute my own ideas to Linux kernel. But I am starting from 0 now! So please suggest me how tostart and where to start with !


title: Compilation of gtkdialog with gcc fails on Solaris (cc1: error: invalid option `t')

text: I have Solaris 10 x86 just installed on my VBox, but I have problem with `make` and `make install` command. When I try to run this command I got error related to gcc compiler option `-t`: Here is config.log                $ ./configure           ## --------- ##     ## Platform. ##     ## --------- ##          hostname = unknown     uname -m = i86pc     uname -r = 5.10     uname -s = SunOS     uname -v = Generic_147148-26          /usr/bin/uname -p = i386     /bin/uname -X     = System = SunOS     Node = unknown     Release = 5.10     KernelID = Generic_147148-26     Machine = i86pc     BusType = <unknown>     Serial = <unknown>     Users = <unknown>     OEM# = 0     Origin# = 1     NumCPU = 1          /bin/arch              = i86pc     /usr/bin/arch -k       = i86pc     /usr/convex/getsysinfo = unknown     hostinfo               = unknown     /bin/machine           = unknown     /usr/bin/oslevel       = unknown     /bin/universe          = unknown          PATH: /opt/gnome/bin     PATH: /usr/local/bin     PATH: /opt/netscape     PATH: /usr/ccs/bin     PATH: //bin     PATH: /usr/sbin     PATH: /usr/bin     PATH: /usr/openwin/bin     PATH: /usr/ucb     PATH: //bin     PATH: /usr/sbin     PATH: /usr/bin     PATH: /root/bin     PATH: /usr/bin     PATH: /usr/sbin     PATH: /usr/local/bin     PATH: /usr/local/sbin     PATH: /bin     PATH: /sbin     PATH: /opt/csw/bin     PATH: /opt/csw/sbin     PATH: /opt/csw/gcc3/bin     PATH: /usr/sfw/sbin     PATH: /usr/sfw/bin     PATH: /opt/csw/mysql5/bin               ## ----------- ##     ## Core tests. ##     ## ----------- ##          configure:1392: checking for a BSD-compatible install     configure:1447: result: ./install-sh -c     configure:1458: checking whether build environment is sane     configure:1501: result: yes     configure:1566: checking for gawk     configure:1595: result: no     configure:1566: checking for mawk     configure:1595: result: no     configure:1566: checking for nawk     configure:1582: found //bin/nawk     configure:1592: result: nawk     configure:1602: checking whether make sets $(MAKE)     configure:1622: result: yes     configure:1792: checking whether to enable maintainer-specific portions of Makefiles     configure:1801: result: no     configure:1830: checking for style of include used by make     configure:1858: result: GNU     configure:1929: checking for gcc     configure:1955: result: gcc     configure:2199: checking for C compiler version     configure:2202: gcc --version </dev/null >&5     gcc (GCC) 3.3.2     Copyright (C) 2003 Free Software Foundation, Inc.     This is free software; see the source for copying conditions.  There is NO     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.          configure:2205: $? = 0     configure:2207: gcc -v </dev/null >&5     Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs     Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls     Thread model: posix     gcc version 3.3.2     configure:2210: $? = 0     configure:2212: gcc -V </dev/null >&5     gcc: `-V' option must have argument     configure:2215: $? = 1     configure:2238: checking for C compiler default output file name     configure:2241: gcc  -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include  conftest.c  >&5     configure:2244: $? = 0     configure:2290: result: a.out     configure:2295: checking whether the C compiler works     configure:2301: ./a.out     configure:2304: $? = 0     configure:2321: result: yes     configure:2328: checking whether we are cross compiling     configure:2330: result: no     configure:2333: checking for suffix of executables     configure:2335: gcc -o conftest  -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include  conftest.c  >&5     configure:2338: $? = 0     configure:2363: result:      configure:2369: checking for suffix of object files     configure:2390: gcc -c  -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:2393: $? = 0     configure:2415: result: o     configure:2419: checking whether we are using the GNU C compiler     configure:2443: gcc -c  -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:2449: $? = 0     configure:2453: test -z                   || test ! -s conftest.err     configure:2456: $? = 0     configure:2459: test -s conftest.o     configure:2462: $? = 0     configure:2475: result: yes     configure:2481: checking whether gcc accepts -g     configure:2502: gcc -c -g -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:2508: $? = 0     configure:2512: test -z                   || test ! -s conftest.err     configure:2515: $? = 0     configure:2518: test -s conftest.o     configure:2521: $? = 0     configure:2532: result: yes     configure:2549: checking for gcc option to accept ANSI C     configure:2619: gcc  -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:2625: $? = 0     configure:2629: test -z                   || test ! -s conftest.err     configure:2632: $? = 0     configure:2635: test -s conftest.o     configure:2638: $? = 0     configure:2656: result: none needed     configure:2674: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     conftest.c:2: error: parse error before "me"     configure:2680: $? = 1     configure: failed program was:     | #ifndef __cplusplus     |   choke me     | #endif     configure:2815: checking dependency style of gcc     configure:2905: result: gcc3     configure:2923: checking for library containing strerror     configure:2953: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include  conftest.c  >&5     configure:2959: $? = 0     configure:2963: test -z                   || test ! -s conftest.err     configure:2966: $? = 0     configure:2969: test -s conftest     configure:2972: $? = 0     configure:3042: result: none required     configure:3095: checking for gcc     configure:3121: result: gcc     configure:3365: checking for C compiler version     configure:3368: gcc --version </dev/null >&5     gcc (GCC) 3.3.2     Copyright (C) 2003 Free Software Foundation, Inc.     This is free software; see the source for copying conditions.  There is NO     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.          configure:3371: $? = 0     configure:3373: gcc -v </dev/null >&5     Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs     Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls     Thread model: posix     gcc version 3.3.2     configure:3376: $? = 0     configure:3378: gcc -V </dev/null >&5     gcc: `-V' option must have argument     configure:3381: $? = 1     configure:3384: checking whether we are using the GNU C compiler     configure:3440: result: yes     configure:3446: checking whether gcc accepts -g     configure:3497: result: yes     configure:3514: checking for gcc option to accept ANSI C     configure:3621: result: none needed     configure:3639: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     conftest.c:2: error: parse error before "me"     configure:3645: $? = 1     configure: failed program was:     | #ifndef __cplusplus     |   choke me     | #endif     configure:3780: checking dependency style of gcc     configure:3870: result: gcc3     configure:3895: checking how to run the C preprocessor     configure:3930: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c     configure:3936: $? = 0     configure:3968: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c     conftest.c:11:28: ac_nonexistent.h: No such file or directory     configure:3974: $? = 1     configure: failed program was:     | /* confdefs.h.  */     |      | #define PACKAGE_NAME "gtkdialog"     | #define PACKAGE_TARNAME "gtkdialog"     | #define PACKAGE_VERSION "0.7.9"     | #define PACKAGE_STRING "gtkdialog 0.7.9"     | #define PACKAGE_BUGREPORT "pipas@linux.pte.hu"     | #define PACKAGE "gtkdialog"     | #define VERSION "0.7.9"     | /* end confdefs.h.  */     | #include <ac_nonexistent.h>     configure:4013: result: gcc -E     configure:4037: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c     configure:4043: $? = 0     configure:4075: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c     conftest.c:11:28: ac_nonexistent.h: No such file or directory     configure:4081: $? = 1     configure: failed program was:     | /* confdefs.h.  */     |      | #define PACKAGE_NAME "gtkdialog"     | #define PACKAGE_TARNAME "gtkdialog"     | #define PACKAGE_VERSION "0.7.9"     | #define PACKAGE_STRING "gtkdialog 0.7.9"     | #define PACKAGE_BUGREPORT "pipas@linux.pte.hu"     | #define PACKAGE "gtkdialog"     | #define VERSION "0.7.9"     | /* end confdefs.h.  */     | #include <ac_nonexistent.h>     configure:4125: checking for egrep     configure:4135: result: egrep     configure:4140: checking for ANSI C header files     configure:4165: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:4171: $? = 0     configure:4175: test -z                   || test ! -s conftest.err     configure:4178: $? = 0     configure:4181: test -s conftest.o     configure:4184: $? = 0     configure:4273: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include  conftest.c  >&5     configure:4276: $? = 0     configure:4278: ./conftest     configure:4281: $? = 0     configure:4296: result: yes     configure:4310: checking for flex     configure:4326: found /usr/sfw/bin/flex     configure:4336: result: flex     configure:4349: checking for yywrap in -lfl     configure:4379: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include  conftest.c -lfl   >&5     ld: fatal: library -lfl: not found     ld: fatal: file processing errors. No output written to conftest     collect2: ld returned 1 exit status     configure:4385: $? = 1     configure: failed program was:     | /* confdefs.h.  */     |      | #define PACKAGE_NAME "gtkdialog"     | #define PACKAGE_TARNAME "gtkdialog"     | #define PACKAGE_VERSION "0.7.9"     | #define PACKAGE_STRING "gtkdialog 0.7.9"     | #define PACKAGE_BUGREPORT "pipas@linux.pte.hu"     | #define PACKAGE "gtkdialog"     | #define VERSION "0.7.9"     | #define STDC_HEADERS 1     | /* end confdefs.h.  */     |      | /* Override any gcc2 internal prototype to avoid an error.  */     | #ifdef __cplusplus     | extern "C"     | #endif     | /* We use char because int might match the return type of a gcc2     |    builtin and then its argument prototype would still apply.  */     | char yywrap ();     | int     | main ()     | {     | yywrap ();     |   ;     |   return 0;     | }     configure:4411: result: no     configure:4416: checking for yywrap in -ll     configure:4446: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include  conftest.c -ll   >&5     configure:4452: $? = 0     configure:4456: test -z                   || test ! -s conftest.err     configure:4459: $? = 0     configure:4462: test -s conftest     configure:4465: $? = 0     configure:4478: result: yes     configure:4489: checking lex output file root     configure:4500: flex conftest.l     configure:4503: $? = 0     configure:4515: result: lex.yy     configure:4520: checking whether yytext is a pointer     configure:4536: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include  conftest.c  -ll >&5     configure:4542: $? = 0     configure:4546: test -z                   || test ! -s conftest.err     configure:4549: $? = 0     configure:4552: test -s conftest     configure:4555: $? = 0     configure:4569: result: yes     configure:4587: checking for bison     configure:4603: found /usr/sfw/bin/bison     configure:4613: result: bison -y     configure:4676: checking for pkg-config     configure:4694: found //bin/pkg-config     configure:4706: result: //bin/pkg-config     configure:4721: checking pkg-config is at least version 0.9.0     configure:4724: result: yes     configure:4735: checking for GTK     configure:4743: $PKG_CONFIG --exists --print-errors "$pkg_modules"     configure:4746: $? = 0     configure:4761: $PKG_CONFIG --exists --print-errors "$pkg_modules"     configure:4764: $? = 0     configure:4840: result: yes     configure:4850: checking for GTHREAD     configure:4858: $PKG_CONFIG --exists --print-errors "$pkg_modules"     configure:4861: $? = 0     configure:4876: $PKG_CONFIG --exists --print-errors "$pkg_modules"     configure:4879: $? = 0     configure:4955: result: yes     configure:4965: checking for GLADE_LIB     configure:4974: $PKG_CONFIG --exists --print-errors "\               $glade_lib"     configure:4978: $? = 0     configure:4995: $PKG_CONFIG --exists --print-errors "\               $glade_lib"     configure:4999: $? = 0     configure:5042: result: yes     configure:5067: checking for sys/types.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5067: checking for sys/stat.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5067: checking for stdlib.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5067: checking for string.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5067: checking for memory.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5067: checking for strings.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5067: checking for inttypes.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5067: checking for stdint.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5067: checking for unistd.h     configure:5083: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5089: $? = 0     configure:5093: test -z                   || test ! -s conftest.err     configure:5096: $? = 0     configure:5099: test -s conftest.o     configure:5102: $? = 0     configure:5113: result: yes     configure:5139: checking locale.h usability     configure:5151: gcc -c -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c >&5     configure:5157: $? = 0     configure:5161: test -z                   || test ! -s conftest.err     configure:5164: $? = 0     configure:5167: test -s conftest.o     configure:5170: $? = 0     configure:5180: result: yes     configure:5184: checking locale.h presence     configure:5194: gcc -E -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include conftest.c     configure:5200: $? = 0     configure:5220: result: yes     configure:5255: checking for locale.h     configure:5262: result: yes     configure:5283: checking for setlocale     configure:5340: gcc -o conftest -g -O2 -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include  conftest.c  >&5     configure:5346: $? = 0     configure:5350: test -z                   || test ! -s conftest.err     configure:5353: $? = 0     configure:5356: test -s conftest     configure:5359: $? = 0     configure:5371: result: yes     configure:5507: creating ./config.status          ## ---------------------- ##     ## Running config.status. ##     ## ---------------------- ##          This file was extended by gtkdialog config.status 0.7.9, which was     generated by GNU Autoconf 2.59.  Invocation command line was            CONFIG_FILES    =        CONFIG_HEADERS  =        CONFIG_LINKS    =        CONFIG_COMMANDS =        $ ./config.status           on unknown          config.status:709: creating Makefile     config.status:709: creating gtkdialog.spec     config.status:709: creating src/Makefile     config.status:709: creating doc/Makefile     config.status:709: creating examples/Makefile     config.status:813: creating config.h     config.status:925: config.h is unchanged     config.status:1105: executing depfiles commands          ## ---------------- ##     ## Cache variables. ##     ## ---------------- ##          ac_cv_c_compiler_gnu=yes     ac_cv_env_CC_set=set     ac_cv_env_CC_value=gcc     ac_cv_env_CFLAGS_set=     ac_cv_env_CFLAGS_value=     ac_cv_env_CPPFLAGS_set=set     ac_cv_env_CPPFLAGS_value='-I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include'     ac_cv_env_CPP_set=     ac_cv_env_CPP_value=     ac_cv_env_GLADE_LIB_CFLAGS_set=     ac_cv_env_GLADE_LIB_CFLAGS_value=     ac_cv_env_GLADE_LIB_LIBS_set=     ac_cv_env_GLADE_LIB_LIBS_value=     ac_cv_env_GTHREAD_CFLAGS_set=     ac_cv_env_GTHREAD_CFLAGS_value=     ac_cv_env_GTHREAD_LIBS_set=     ac_cv_env_GTHREAD_LIBS_value=     ac_cv_env_GTK_CFLAGS_set=     ac_cv_env_GTK_CFLAGS_value=     ac_cv_env_GTK_LIBS_set=     ac_cv_env_GTK_LIBS_value=     ac_cv_env_LDFLAGS_set=     ac_cv_env_LDFLAGS_value=     ac_cv_env_PKG_CONFIG_set=     ac_cv_env_PKG_CONFIG_value=     ac_cv_env_build_alias_set=     ac_cv_env_build_alias_value=     ac_cv_env_host_alias_set=     ac_cv_env_host_alias_value=     ac_cv_env_target_alias_set=     ac_cv_env_target_alias_value=     ac_cv_exeext=     ac_cv_func_setlocale=yes     ac_cv_header_inttypes_h=yes     ac_cv_header_locale_h=yes     ac_cv_header_memory_h=yes     ac_cv_header_stdc=yes     ac_cv_header_stdint_h=yes     ac_cv_header_stdlib_h=yes     ac_cv_header_string_h=yes     ac_cv_header_strings_h=yes     ac_cv_header_sys_stat_h=yes     ac_cv_header_sys_types_h=yes     ac_cv_header_unistd_h=yes     ac_cv_lib_fl_yywrap=no     ac_cv_lib_l_yywrap=yes     ac_cv_objext=o     ac_cv_path_ac_pt_PKG_CONFIG=//bin/pkg-config     ac_cv_prog_AWK=nawk     ac_cv_prog_CPP='gcc -E'     ac_cv_prog_LEX=flex     ac_cv_prog_YACC='bison -y'     ac_cv_prog_ac_ct_CC=gcc     ac_cv_prog_cc_g=yes     ac_cv_prog_cc_stdc=     ac_cv_prog_egrep=egrep     ac_cv_prog_lex_root=lex.yy     ac_cv_prog_lex_yytext_pointer=yes     ac_cv_prog_make_make_set=yes     ac_cv_search_strerror='none required'     am_cv_CC_dependencies_compiler_type=gcc3     am_cv_prog_cc_stdc=     pkg_cv_GLADE_LIB_CFLAGS='-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  '     pkg_cv_GLADE_LIB_LIBS='-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lsocket -lnsl -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  '     pkg_cv_GTHREAD_CFLAGS='-mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  '     pkg_cv_GTHREAD_LIBS='-mt -lgthread-2.0 -lglib-2.0  '     pkg_cv_GTK_CFLAGS='-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  '     pkg_cv_GTK_LIBS='-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  '          ## ----------------- ##     ## Output variables. ##     ## ----------------- ##          ACLOCAL='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run aclocal-1.9'     AMDEPBACKSLASH='\'     AMDEP_FALSE='#'     AMDEP_TRUE=''     AMTAR='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run tar'     AUTOCONF='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run autoconf'     AUTOHEADER='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run autoheader'     AUTOMAKE='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run automake-1.9'     AWK='nawk'     CC='gcc'     CCDEPMODE='depmode=gcc3'     CFLAGS='-g -O2'     CPP='gcc -E'     CPPFLAGS='-I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include'     CYGPATH_W='echo'     DEFS='-DHAVE_CONFIG_H'     DEPDIR='.deps'     ECHO_C=''     ECHO_N='-n'     ECHO_T=''     EGREP='egrep'     EXEEXT=''     GLADE_LIB_CFLAGS='-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  '     GLADE_LIB_LIBS='-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lsocket -lnsl -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  '     GTHREAD_CFLAGS='-mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  '     GTHREAD_LIBS='-mt -lgthread-2.0 -lglib-2.0  '     GTK_CFLAGS='-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  '     GTK_LIBS='-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  '     HAVE_GLADE_LIB='1'     INSTALL_DATA='${INSTALL} -m 644'     INSTALL_PROGRAM='${INSTALL}'     INSTALL_SCRIPT='${INSTALL}'     INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'     LDFLAGS=''     LEX='flex'     LEXLIB='-ll'     LEX_OUTPUT_ROOT='lex.yy'     LIBOBJS=''     LIBS=''     LTLIBOBJS=''     MAINT='#'     MAINTAINER_MODE_FALSE=''     MAINTAINER_MODE_TRUE='#'     MAKEINFO='${SHELL} /Desktop/gtkdialog-0.7.9/missing --run makeinfo'     OBJEXT='o'     PACKAGE='gtkdialog'     PACKAGE_BUGREPORT='pipas@linux.pte.hu'     PACKAGE_NAME='gtkdialog'     PACKAGE_STRING='gtkdialog 0.7.9'     PACKAGE_TARNAME='gtkdialog'     PACKAGE_VERSION='0.7.9'     PATH_SEPARATOR=':'     PKG_CONFIG='//bin/pkg-config'     SET_MAKE=''     SHELL='/bin/bash'     STRIP=''     VERSION='0.7.9'     YACC='bison -y'     ac_ct_CC='gcc'     ac_ct_STRIP=''     ac_pt_PKG_CONFIG='//bin/pkg-config'     am__fastdepCC_FALSE='#'     am__fastdepCC_TRUE=''     am__include='include'     am__leading_dot='.'     am__quote=''     am__tar='${AMTAR} chof - "$$tardir"'     am__untar='${AMTAR} xf -'     bindir='${exec_prefix}/bin'     build_alias=''     datadir='${prefix}/share'     exec_prefix='${prefix}'     host_alias=''     includedir='${prefix}/include'     infodir='${prefix}/info'     install_sh='/Desktop/gtkdialog-0.7.9/install-sh'     libdir='${exec_prefix}/lib'     libexecdir='${exec_prefix}/libexec'     localstatedir='${prefix}/var'     mandir='${prefix}/man'     mkdir_p='$(mkinstalldirs)'     oldincludedir='/usr/include'     prefix='/usr/local'     program_transform_name='s,x,x,'     sbindir='${exec_prefix}/sbin'     sharedstatedir='${prefix}/com'     sysconfdir='${prefix}/etc'     target_alias=''          ## ----------- ##     ## confdefs.h. ##     ## ----------- ##          #define HAVE_INTTYPES_H 1     #define HAVE_LOCALE_H 1     #define HAVE_MEMORY_H 1     #define HAVE_SETLOCALE 1     #define HAVE_STDINT_H 1     #define HAVE_STDLIB_H 1     #define HAVE_STRINGS_H 1     #define HAVE_STRING_H 1     #define HAVE_SYS_STAT_H 1     #define HAVE_SYS_TYPES_H 1     #define HAVE_UNISTD_H 1     #define PACKAGE "gtkdialog"     #define PACKAGE_BUGREPORT "pipas@linux.pte.hu"     #define PACKAGE_NAME "gtkdialog"     #define PACKAGE_STRING "gtkdialog 0.7.9"     #define PACKAGE_TARNAME "gtkdialog"     #define PACKAGE_VERSION "0.7.9"     #define STDC_HEADERS 1     #define VERSION "0.7.9"     #define YYTEXT_POINTER 1          configure: exit 0      After make command I get this below. Guys suggested me to remove `-mt` flag, but then I get other error's.I'm not so good in Solaris, to solve this problem, and still I'm stuck here:               bash-3.2# make     make  all-recursive     make[1]: Entering directory `/Desktop/gtkdialog-0.7.9'     Making all in src     make[2]: Entering directory `/Desktop/gtkdialog-0.7.9/src'     make  all-am     make[3]: Entering directory `/Desktop/gtkdialog-0.7.9/src'     if gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/opt/gnome/include -I/usr/openwin/share/include/X11/extensions -I/usr/openwin/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DHAVE_GLADE_LIB=1 -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \             then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi     cc1: error: invalid option `t'     make[3]: *** [main.o] Error 1     make[3]: Leaving directory `/Desktop/gtkdialog-0.7.9/src'     make[2]: *** [all] Error 2     make[2]: Leaving directory `/Desktop/gtkdialog-0.7.9/src'     make[1]: *** [all-recursive] Error 1     make[1]: Leaving directory `/Desktop/gtkdialog-0.7.9'     make: *** [all] Error 2


title: Why isn't there any shell command to create files?

text: ### Attention please: I am _not_ asking how to make a file from the command line! * * * I have been using `touch` for making files for years without paying attention that its main purpose is something else. If one wants to create a file from command line there are so many possibilities:               touch foo.bar     > foo.bar     cat > foo.bar     echo -n > foo.bar     printf '' > foo.bar      And I'm sure there are more. But the fact is, none of the commands above are actually designed for creating files. For example, `man touch` suggests this command is for changing file timestamps. Why doesn't an OS as complete as Unix (or Linux) have a command solely designed for creating files?


title: Why can't I create an LVM RAID1 or mirror volume?

text: I'm running Ubuntu 12.04 and have just added 2 new hard drives into my server. The idea being that I would create a volume group that would include them and create a bunch of logical volumes on them that would be mirrored. I've partitioned the 2 drives to have a a primary partition on each of type 8E (LVM):               /dev/sdc1            2048  3907029167  1953513560   8e  Linux LVM     /dev/sdd1            2048  3907029167  1953513560   8e  Linux LVM      Then added them as physical devices, created a volume group and added the to the volume group:               --- Volume group ---     VG Name               vmdata     System ID                  Format                lvm2     Metadata Areas        2     Metadata Sequence No  8     VG Access             read/write     VG Status             resizable     MAX LV                0     Cur LV                0     Open LV               0     Max PV                0     Cur PV                2     Act PV                2     VG Size               3.64 TiB     PE Size               4.00 MiB     Total PE              953862     Alloc PE / Size       0 / 0        Free  PE / Size       953862 / 3.64 TiB     VG UUID               2zdfc7-1fj2-kMdy-7OUq-eadi-AsF2-Sujbes          --- Physical volumes ---     PV Name               /dev/sdc1          PV UUID               kAU93m-4S5V-MD1V-EkTA-m0u7-bmQn-3pyVmk     PV Status             allocatable     Total PE / Free PE    476931 / 476931          PV Name               /dev/sdd1          PV UUID               erVnaJ-vp5S-0LHW-oRSx-joer-VXPX-KG0uDb     PV Status             allocatable     Total PE / Free PE    476931 / 476931      When I try to create a new logical volume of type RAID 1 it fails:               $ lvcreate --type raid1 -m 1 -L 64G -n fred vmdata     WARNING: Unrecognised segment type raid1     Insufficient suitable allocatable extents for logical volume : 16384 more required     Unable to allocate extents for mirror(s).      When I try to create it as a plain mirror it also fails:               $ lvcreate -m 1 -L 64G -n fred vmdata     Insufficient suitable allocatable extents for logical volume : 16384 more required     Unable to allocate extents for mirror(s).      What am I missing?


title: Giving more priority to a USB device

text: I have a keyboard with USB cable connected to computer through a USB 2.0 socket. But when I type fast, Ubuntu ignores some key messages (e.g. I may type _CORRECT_ but what is typed may be _CORET_ ) . After restarting the system everything is good for a while. I have tested another USB keyboard and I'm sure there's nothing wrong with the keyboard. I think this is because this USB device has low priority. How can I urge the system to give more priority to the keyboard?


title: Creating a virtual microphone

text: I run a CentOS Server with VNC enabled and some services require a microphone to work properly, but it doesn't have to be used for recording, just a microphone device available. So I was wondering if I can create a virtual recording device that can be used as a microphone, but it doesn't have to input any sound. I run alsa tools but doing `modprobe sound-aloop` says that the operation is not permitted. Any suggestion will be greatly appreciated.


title: Remove the newline before `/etc/issue` in tty

text: I want to remove the default newline inserted before the content of `/etc/issue` on login prompt in `tty`. I'm using `agetty` and `systemd`. I tried to add the `--nonewline` option to my `getty@tty5.service` :               ExecStart=/sbin/agetty --nonewline --noclear %I $TERM      That result in :               # systemctl status -l getty@tty5.service     ● getty@tty5.service - Getty on tty5       Loaded: loaded (/usr/lib/systemd/system/getty@.service; disabled)       Active: failed (Result: start-limit) since sam. 2014-05-17 23:50:13 CEST; 56s ago         Docs: man:agetty(8)               man:systemd-getty-generator(8)               http://0pointer.de/blog/projects/serial-console.html      Process: 14538 ExecStart=/sbin/agetty --nonewline --noclear %I $TERM (code=exited, status=1/FAILURE)     Main PID: 14538 (code=exited, status=1/FAILURE)          systemd[1]: getty@tty5.service has no holdoff time, scheduling restart.     systemd[1]: Stopping Getty on tty5...     systemd[1]: Starting Getty on tty5...     systemd[1]: getty@tty5.service start request repeated too quickly, refusing to start.     systemd[1]: Failed to start Getty on tty5.     systemd[1]: Unit getty@tty5.service entered failed state.      And I get :               # journalctl --no-pager -b -u getty@tty5.service     -- Logs begin at sam. 2013-10-12 00:20:12 CEST, end at sam. 2014-05-17 23:52:49 CEST. --     systemd[1]: Starting Getty on tty5...     systemd[1]: Started Getty on tty5.     agetty[14497]: Usage:     agetty[14497]: agetty [options] <line> [<baud_rate>,...] [<termtype>]     agetty[14497]: agetty [options] <baud_rate>,... <line> [<termtype>]     agetty[14497]: Options:     agetty[14497]: -8, --8bits                assume 8-bit tty     agetty[14497]: -a, --autologin <user>     login the specified user automatically     agetty[14497]: -c, --noreset              do not reset control mode     agetty[14497]: -E, --remote               use -r <hostname> for login(1)     agetty[14497]: -f, --issue-file <file>    display issue file     agetty[14497]: -h, --flow-control         enable hardware flow control     agetty[14497]: -H, --host <hostname>      specify login host     agetty[14497]: -i, --noissue              do not display issue file     agetty[14497]: -I, --init-string <string> set init string     agetty[14497]: -l, --login-program <file> specify login program     agetty[14497]: -L, --local-line[=<mode>]  control the local line flag     agetty[14497]: -m, --extract-baud         extract baud rate during connect     agetty[14497]: -n, --skip-login           do not prompt for login     agetty[14497]: -o, --login-options <opts> options that are passed to login     agetty[14497]: -p, --login-pause          wait for any key before the login     agetty[14497]: -r, --chroot <dir>         change root to the directory     agetty[14497]: -R, --hangup               do virtually hangup on the tty     agetty[14497]: -s, --keep-baud            try to keep baud rate after break     agetty[14497]: -t, --timeout <number>     login process timeout     agetty[14497]: -U, --detect-case          detect uppercase terminal     agetty[14497]: -w, --wait-cr              wait carriage-return     agetty[14497]: --noclear              do not clear the screen before prompt     agetty[14497]: --nohints              do not print hints     agetty[14497]: --nonewline            do not print a newline before issue     agetty[14497]: --nohostname           no hostname at all will be shown     agetty[14497]: --long-hostname        show full qualified hostname     agetty[14497]: --erase-chars <string> additional backspace chars     agetty[14497]: --kill-chars <string>  additional kill chars     agetty[14497]: --help                 display this help and exit     agetty[14497]: --version              output version information and exit     agetty[14497]: For more details see agetty(8).     systemd[1]: getty@tty5.service has no holdoff time, scheduling restart.     systemd[1]: Stopping Getty on tty5...      Why `agetty` don't want to recognize the option ? Is there another way to do that ?


title: What is the difference between minicom and gammu-smsd?

text: My understanding of minicom: Minicom is a text-based modem control program (allows you to communicate with modem via at commands on a text-based terminal) using serial port communications. Therefore, you can configure a modem using minicom and even have the modem send SMS messages:               at+CMGS=954xxxxxxx     > Hello World     +CMGS: 8      My understanding of gammu-smsd: gammu-smsd is a program that periodically scans modem for received messages, stores them in defined storage (e.g. postgresql/mysql database) and also sends messages enqueued (stored in a queue) in this storage. So both programs can send SMS messages using a modem. Both need to be configured to listen to the /dev/ttyS0 (assuming the modem is attached to first serial port) and both use the at command set and baud rates. So are both needed or can you just use gammu-smsd without having to use minicom?


title: Building a Security System using Raspberry Pi

text: I have a spare USB webcam at home and I plan to order a Raspberry Pi Model B which will capture video and stream it live. This will be my first time handling a Raspberry Pi. Before oredring the Raspberry Pi, I just wanted to confirm that this is infact possible and that the Raspberry Pi Model B will suffice for the task or I need to order a higher spec board. Any information would be hugely helpful Thanks


title: How to make `helm-execute-persistent-action` not to follow symlink original path

text: I want to complete by `Tab` when using `find-file`, so I bind a function `helm-execute-persistent-action` to `Tab` like this.               ;; For find-file etc.     (define-key helm-read-file-map (kbd "TAB") 'helm-execute-persistent-action)     ;; For helm-find-files etc.     (define-key helm-find-files-map (kbd "TAB") 'helm-execute-persistent-action)      This is much better for me. But there is small problem still, the function expand symlink to original path. Is there option to disable expanding symbolic link?


title: using `lpr` to get file name and page numbers printed on pdf

text: I have a PDF file and I want to print it with the file name and page numbers added somewhere on the page. Is this possible with `lpr`? If not, what utility can I use to transform the PDF file first? I'm on Solaris 10.


title: Shutdown doesnt work

text: I've installed `dwm` window manager on linux mint 15, configured it and now shutdown doesn't work. I typed `shutdown -P now` in terminal, dwm closed successfully and now I'm seeing black screen with: ` xsetroot unabel to open display '' ` and that's all. The computer continues to operate. How can I fix it?


title: How can I set gdm login screen time to 24 hour format?

text: I installed CentOS 6.4 within VMWare 7 by easy setup. Afterwards I had to change locale settings to German. Everythings works fine accept that the clock on the login screen is still in 12-hours-AM/PM-format. I want to change it to the 24-hour-format. GDM Version is 2.30.4. I tried the suggestions from the answers to a similiar question and another question. However, the suggested command `gconf-editor` seems not to provide a way to configure the clock format at the login screen. The other command `gsettings` is not available in my environment. How can I obtain it? There are other suggestions involving `gdm.conf` but the only `gdm.conf` in my environment is a XML file and not located in the directories specified in these suggestions. At Red Hat there seems to be a support article about this issue, however bp;dr. How can I set the login screen time to the 24 hour format?


title: Are there additional ways to protect SSH connections besides firewall and RSA Keys?

text: Sometimes I don't have a static IP and need to administrate my web server remotely. I'm looking for any additional layers of protection I could add to make opening port 22 safer. Currently I have disabled root password login via SSH. It requires RSA key to login (the private key is stored on a usb smart card). Are there any known risks with my configuration if port 22 was opened to the public? Besides port 22, iptables only has port 80 and port 443 open to the public. I'm using a Windows computer to connect to Centos 6 Linux with Putty. Are there any additional statements I can add to the firewall or SSH config to further limit access to port 22 to only my specific computer so that the port doesn't appear open to people scanning ports? I'm using iptables for the firewall currently.


title: scp refuses to do anything but print usage

text: I'm trying to copy a file on my home network using `scp`. However, every time I run it, it just prints usage instructions.               $ scp alex@192.168.0.4:ipdetect-0.6.tar.bz2     usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]                [-l limit] [-o ssh_option] [-P port] [-S program]                [[user@]host1:]file1 ... [[user@]host2:]file2      What am I doing wrong?


title: [FreeBSD] rc.conf, loader.conf vs static kernel linking

text: I'm curious: What, exactly are the benefits to statically linking modules into the kernel rather than loading through rc.conf, etc? For example: To add linux emulation, I could add `linux_enable="YES"` to `/etc/rc.conf`, or I could link it into the kernel by adding `options COMPAT_LINUX` to my kernel config. Is there actually an advantage to this? If so, what?


title: Duplicity Centos 6 Error

text: I am trying to verify backup from ftp server using this command.               duplicity verify ftp://xxx.net@ftpback-bhs1-15.ip-198-100-151.net/ /home      I am getting this error               Difference found: File home/nginx has permissions 0:0 700, expected 500:500 700     Difference found: File home/nginx/domains has permissions 0:0 700, expected 500:500 755     Difference found: File home/nginx/domains/enxxxgd.com has permissions 0:0 700, expected 500:500 755     Difference found: File home/nginx/domains/enxxxgd.com/log has permissions 0:0 700, expected 500:500 755     python: ERROR: (rs_file_copy_cb) unexpected eof on fd417     python: ERROR: (rs_job_complete) patch job failed: unexpected end of input     Traceback (most recent call last):       File "/usr/bin/duplicity", line 1411, in <module>         with_tempdir(main)       File "/usr/bin/duplicity", line 1404, in with_tempdir         fn()       File "/usr/bin/duplicity", line 1340, in main         verify(col_stats)       File "/usr/bin/duplicity", line 757, in verify         for backup_ropath, current_path in collated:       File "/usr/lib64/python2.6/site-packages/duplicity/diffdir.py", line 269, in collate2iters         relem1 = riter1.next()       File "/usr/lib64/python2.6/site-packages/duplicity/patchdir.py", line 499, in integrate_patch_iters         final_ropath = patch_seq2ropath( normalize_ps( patch_seq ) )       File "/usr/lib64/python2.6/site-packages/duplicity/patchdir.py", line 479, in patch_seq2ropath         misc.copyfileobj( current_file, tempfp )       File "/usr/lib64/python2.6/site-packages/duplicity/misc.py", line 166, in copyfileobj         buf = infp.read(blocksize)       File "/usr/lib64/python2.6/site-packages/duplicity/librsync.py", line 80, in read         self._add_to_outbuf_once()       File "/usr/lib64/python2.6/site-packages/duplicity/librsync.py", line 94, in _add_to_outbuf_once         raise librsyncError(str(e))     librsyncError: librsync error 103 while in patch cycle


title: Add Ubuntu to Arch linux Dual boot, Keeping Syslinux, without GRUB

text: ### Situation I have Arch Linux installed on `/dev/sda1` (15GB/ext4). `/` and `/boot` are both on `/dev/sda1` and `/home` is on `/dev/sda2` (100GB/ext4). I made a 15GB/ext4 `/dev/sda3` partition for Ubuntu. I installed Syslinux as the bootloader. ### Problem How do I dual-boot-install Ubuntu onto `/dev/sda3` without installing GRUB, without ruining my Syslinx bootloader and how do I share the home partition `/dev/sda2` between the two OS's? * * * ### Update I learned how to boot into Ubuntu correctly and found out that chainloading is unnecessary. Here's what I did:   1. Wiped Ubuntu off `/dev/sda3` and reinstalled it in the same place.   2. Made a new directory on `/dev/sda1` named `/boot/ubuntu`,   3. Copied all of `/boot` from `/dev/sda3` to the new directory in step 1 (because the the kernel and initrd files for Ubuntu were there),   4. Edited `/boot/syslinux/syslinux.cfg` from `/dev/sda1`. See below for the entry:              LABEL Ubuntu          MENU LABEL Ubuntu          LINUX ../ubuntu/vmlinuz-3.5.0-23-generic          APPEND root=/dev/sda3 ro          INITRD ../ubuntu/initrd.img-3.5.0-23-generic      If I were smart, I would probably have a dedicated boot partition. Oh well, it wasn't part of the original question so I'll just worry about that later. However, I was hoping that Ubuntu would use `/dev/sda2` as the shared home partition and it didn't :( **Anybody know how to fix the`/home/user` folder so it's on `/dev/sda2`?**