nc missing option -z
by Suvayu Ali
Hi,
I used to use netcat to check if a particular host is up or if I have
internet connection before I run a few scripts. I would use the -z
option in particular. But now I see that has been removed:
$ nc -z imap.gmail.com 993 && sync-my-email.sh
ncat: invalid option -- 'z'
Here is the excerpt from the old manual page:
-z Specifies that nc should just scan for listening daemons, without
sending any data to them. It is an error to use this option in
conjunction with the -l option.
Any ideas what happened to it? What can I use as replacement?
Thanks for any ideas.
--
Suvayu
Open source is the future. It sets us free.
7 years, 7 months
compile XV?
by dirt bag
I know its not been updated in years, but this is still a must have for me. I just upgraded to fedora 24 (64bit)
and Im trying to compile it from source because the rpms Ive found are either broke or dont work right.
Im following these instructions..
wget ftp://ftp.cis.upenn.edu/pub/xv/xv-3.10a.tar.gz
wget http://prdownloads.sourceforge.net/png-mng/xv-3.10a-jumbo-patches-2005050...
wget http://www.ulich.org/hints/resources/xv-3.10a-jumbo20050501-1.diff.gz
tar xvzf xv-3.10a.tar.gz
tar xvzf xv-3.10a-jumbo-patches-20050501.tar.gz
gzip -d xv-3.10a-jumbo20050501-1.diff.gz
cd xv-3.10a
patch -p1 < ../xv-3.10a-jumbo-fix-patch-20050410.txt
patch -p1 < ../xv-3.10a-jumbo-enh-patch-20050501.txt
patch -p1 < ../xv-3.10a-jumbo20050501-1.diff
make
and Ive gotten as far as ...
[jason@badman xv-3.10a]$ make
gcc -O3 -Wall -DDOPNG -I/usr/include -I/usr/include -DDOJPEG -I/usr/include -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX -I/usr/include -DDOPDS -DUSLEEP -DLINUX -L/usr/X11R6/lib -DMGCSFXDIR=\"/usr/X11R6//lib/\" -DSYSCONFDIR=\"/etc\" -DXVEXECPATH=\"/usr/X11R6//lib/\" -c xvpng.c
xvpng.c: In function ‘CreatePNGW’:
xvpng.c:97:56: error: ‘Z_NO_COMPRESSION’ undeclared (first use in this function)
DCreate(&cDial, pngW, 12, 25, DWIDE, DHIGH, (double)Z_NO_COMPRESSION,
^~~~~~~~~~~~~~~~
xvpng.c:97:56: note: each undeclared identifier is reported only once for each function it appears in
xvpng.c:98:19: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
(double)Z_BEST_COMPRESSION, COMPRESSION, 1.0, 3.0,
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/pngconf.h:50:0,
from /usr/include/png.h:371,
from xvpng.c:31:
xvpng.c: In function ‘WritePNG’:
xvpng.c:427:21: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’
if (setjmp(png_ptr->jmpbuf)) {
^
xvpng.c:453:11: error: dereferencing pointer to incomplete type ‘png_info {aka struct png_info_def}’
info_ptr->width = w;
^~
xvpng.c: In function ‘png_xv_error’:
xvpng.c:1054:18: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’
longjmp(png_ptr->jmpbuf, 1);
^~
xvpng.c: In function ‘VersionInfoPNG’:
xvpng.c:1078:5: error: ‘ZLIB_VERSION’ undeclared (first use in this function)
ZLIB_VERSION, zlib_version);
^~~~~~~~~~~~
xvpng.c:1078:19: error: ‘zlib_version’ undeclared (first use in this function)
ZLIB_VERSION, zlib_version);
^~~~~~~~~~~~
Makefile:319: recipe for target 'xvpng.o' failed
make: *** [xvpng.o] Error 1
[jason@badman xv-3.10a]$
I have all the zlibs I can find installed..
[jason@badman xv-3.10a]$ rpm -qa | grep zlib
zlib-1.2.8-10.fc24.i686
zlib-devel-1.2.8-10.fc24.x86_64
zlib-1.2.8-10.fc24.x86_64
any ideas?
-db
7 years, 7 months
Alternatives to Theme Font size changer Firefox plugin?
by Sam Varshavchik
The popular theme font size changer Firefox plugin,
https://addons.mozilla.org/en-US/firefox/addon/theme-font-size-changer/, no
longer supports Linux.
The default Firefox font size is too small for people with poor eyesight. As
far as I can tell, the only thing that official "Firefox themes" do is set a
background image for the UI. As Benny Hill would say, biiiiiiiiiiiiig …deal.
The top-ranked comment on that extension page suggests hacking "userChrome-
example.css" in ~/.mozilla/firefox.
$ find ~/.mozilla/firefox -name userChrome-example.css -print
$
There goes that idea.
Googling around the only other suggestion I found was to hack
layout.css.devPixelsPerPx setting in about:config. All that did, apparently,
was making the Firefox UI elements themselves bigger, but their font size –
the menu and the URL bar – remained exactly the same.
Anyone has other suggestions?
7 years, 7 months
Taskbar Panel in Plasma Won't Autohide
by Stephen Morris
Hi,
I am trying to get the Taskbar Panel to autohide, but when I click on
the options button in the panel, the left, right and center options are
permanently highlighted but seem to function in terms of moving the
indicator that reflects which option is active. Also the 'Always
Visible', 'Auto Hide', 'Windows can Cover' and 'Windows go Below'
options are also permanently highlighted but selecting the 2nd or 3rd
option does nothing. It appears these options are highlighted because
the colour scheme I am using, which is forget-me-not thinks they are
push buttons.
Does anyone know why these don't work anymore in Fedora 23? I am using
Breeze for the Windows Style and Windows Decorations themes.
regards,
Steve
7 years, 7 months
F21: Thunderbird insists on calling Fedora list messages junk!
by William Mattison
Good afternoon,
Most messages received from this fedora list are labelled junk by
Thunderbird. This is even though I whitelisted "From" =
"users-request(a)lists.fedoraproject.org". Actually, I have this problem
both in my Fedora-21 and my windows-7 systems. Any ideas? Surely
messages from this list are not junk!
thanks,
Bill.
7 years, 10 months
Chrome blocks hibernation
by Patrick O'Callaghan
This is weird. A few days ago I found that my desktop system (F23 fully
updated) would no longer hibernate. A glance at "journal -xe" showed a
bunch of lines like:
Jun 14 00:50:51 bree audit[12591]: SECCOMP auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12591 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c000003e syscall=273 compat=0 ip=0
Jun 14 00:50:51 bree kernel: audit: type=1326 audit(1465861851.266:7800): auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12591 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c00
Jun 14 00:50:59 bree audit[12599]: SECCOMP auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12599 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c000003e syscall=273 compat=0 ip=0
Jun 14 00:50:59 bree kernel: audit: type=1326 audit(1465861859.424:7801): auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12599 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c00
Jun 14 00:51:07 bree audit[12603]: SECCOMP auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12603 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c000003e syscall=273 compat=0 ip=0
Jun 14 00:51:07 bree kernel: audit: type=1326 audit(1465861867.128:7802): auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12603 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c00
Jun 14 00:51:20 bree audit[12608]: SECCOMP auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12608 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c000003e syscall=273 compat=0 ip=0
Jun 14 00:51:20 bree kernel: audit: type=1326 audit(1465861880.130:7803): auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12608 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c00
Jun 14 00:52:09 bree audit[12646]: SECCOMP auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12646 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c000003e syscall=273 compat=0 ip=0
Jun 14 00:52:09 bree kernel: audit: type=1326 audit(1465861929.397:7804): auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12646 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c00
Jun 14 00:52:25 bree audit[12662]: SECCOMP auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12662 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c000003e syscall=273 compat=0 ip=0
Jun 14 00:52:25 bree kernel: audit: type=1326 audit(1465861945.701:7805): auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12662 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c00
Jun 14 00:52:25 bree audit[12667]: SECCOMP auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12667 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c000003e syscall=273 compat=0 ip=0
Jun 14 00:52:25 bree kernel: audit: type=1326 audit(1465861945.768:7806): auid=1000 uid=1000 gid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12667 comm="chrome" exe="/opt/google/chrome/chrome" sig=0 arch=c00
and when I killed Chrome then hibernation worked again.
So one question is: what is the magic incantation to stop these alarms
from Chrome?
However another question is how is this even possible? A process with
normal user privileges can prevent the system from hibernating? Is this
right?
poc
7 years, 11 months
enp0s8 not configured notification popups every few minutes (annoying)
by Kenneth Wolcott
Hi;
enp0s8 not configured notification popups every few minutes (annoying)
I just installed Fedora Live 64-bit KDE as a VirtualBox Guest OS.
I want to have two VirtualBox ethernet interfaces:
One for the vm to "see" outwards (NAT Network) and
Two for me to ssh into it (Host-only) so that I'm not forced to use
the console.
Every few minutes (it seems like every few seconds), I get a
notification popup that states that enp0s8 is not configured and then
a notification popup that it is being disabled.
How do I configure my outgoing ethernet interface?
I used to edit a file called something like /etc/network*/interface
and then I could change the default DHCP setting to be static and the
default disabled (off) setting to be enabled (on).
How does one do that kind of stuff now?
Is that a systemd thing?
Thanks,
Ken Wolcott
7 years, 11 months
NetworkManager drops config on link down
by Chris Adams
I have a USB ethernet adapter on my desktop system that I use when
configuring new equipment (servers, routers, switches, etc.). I have a
variety of pre-set configs in NM, like 192.168.0.x, 10.0.0.x, etc.
Often while configuring something, I need to reboot it, which drops the
link. NM "helpfully" de-configures the interface, and I have to wait
for link to return and re-select the right config (because NM won't let
me select a config for an interface that is link-down).
Is there a way to disable this "helpfulness", so that for this USB
ethernet interface, once I select a config, it stays configured (even if
the link drops)? This is frustrating behavior in many cases.
--
Chris Adams <linux(a)cmadams.net>
7 years, 11 months
bluetooth applet
by Frank Elsner
Hi,
today I discovered that I can't enable bluetooth via the Blueman Applet.
When I click on "Turn Bluetooth On" nothing happend.
What might be the reason?
I should note that I upgraded the Fedora 23 before I discoverd
the problem.
--Frank Elsner
7 years, 11 months