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
yumex-dnf font size
by Beartooth
I need a much bigger font for yumex-dnf than the F24 default;
where can I change it?
7 years, 8 months
CUDA on F24?
by Hiisi
Hi!
Have a fresh install of F24. The machine has Nvidia GTX 960 video card. I
would like to enable GPU rendering in blender. Have installed nvidia
drivers from rpmfusion repo and CUDA toolkit from nvidia. Can select now
CUDA as rendering option in blender settings. However trying to render
anything fails. Initially nvcc couldn't compile using gcc-6.1.1. After
installing compat-gcc I have gcc-3.4. Added softlinks to it:
sudo ln -s /usr/bin/gcc34 /usr/local/cuda-7.5/bin/gcc
And same for g++
Now CUDA's kernel compilation fails with the following error:
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/cpp_type_traits.h
(334): error: expected an identifier
1 error detected in the compilation of
"/tmp/tmpxft_00001fa8_00000000-7_kernel.cpp1.ii".
As I understand the issue is still related to some uncompatible versions of
C++. Maybe not the compiler itself but std standard. Is there workaround?
Anyone using successfully CUDA under F24? There must be thousands of you!
Please give me some hint.
--
Hiisi.
Registered Linux User #487982. Be counted at: https://linuxcounter.net/
--
Spandex is a privilege, not a right.
7 years, 8 months
Seeking advice on router.
by Erik P. Olsen
I have a linksys router model WRT160NL but the range is too short. I
experience many situations where the connection is dropped when the
distance from the router is more than 25 feet. What is the recommended
router when it comes to signal strength? I would prefer one which can be
flashed with dd-wrt.
Thanks in advance
--
Erik
7 years, 9 months
Fedora in the Middle Kingdom
by Sherman Grunewagen
I may soon be living in China, and wanted to ask those
with experience what VPN they've found that
works best to get through the GFC. I've done some research
on my own, and one name keeps coming up---ExpressVPN. But
I would like your opinions, esp. as it relates to Fedora.
(I'm running 21.)
Thanks!
Sherman
7 years, 9 months
qemu + plan9(virtfs) and access(still) denied
by lejeczek
hi everybody
I wonder if you had a chance to use virtfs with passthrough in qemu?
I have a host that passes through a directory to a guest, in the guest I can mount the tag successfully and list the content of the mountpoint, but when I try to create a file or make a dir I get "permission denied", but... I can remove files/dirs - is this not weird?
I believe I've fished out all denials and also with disabled silent denials I do not see anything.
I wonder if somebody can comment whether it is selinux problem? I'm on Centos 7.2 with elrepo's kernel 4.7.
many thanks.
L
7 years, 9 months
F24: waking up from hibernate no longer wakes nm-applet (however
existing connection works fine)
by Ranjan Maitra
Hi,
I understand that Fedora has gone the way of my hated linux distribution (Ubuntu) in actively disconnecting hibernate in a very disappointing distribution, but I still think that someone may know what to do so I thought that I would post this here and get suggestions and advice.
I have set up, after installation, hibernate with F24 using the techniques that are now required since the days of F22 (or so). Here is what I did:
1. In /etc/default/grub
add --> resume=UUID="****" <-- to the line GRUB_CMDLINE_LINUX=
where the uuid is obtained using blkid.
then I do the following:
2. sudo bash -x grub2-mkconfig
3. sudo bash -x grub2-mkconfig -o /boot/grub2/grub.cfg
and after rebooting, hibernate works.
However, of late, since F24, I have been having this problem that the laptop comes back from hibernate but the nm-applet does not. Basically, what happens is that the nm-applet has the disconnected symbol. The network does work (at the location it was working from when the laptop was hibernated). It will not work in a new location simply because nm-applet does not have the ability to provide me with a list of new possibly connections. I have not tried this part with ethernet but I suspect that the general idea would be similar.
The only way I can get back to using nm-applet to provide me with Wifi connections (beyond the one to which it has been connected) is by killing and restarting nm-applet. The process has to be repeated for every hibernate.
So, what should I be doing to avoid having to kill and restart my nm-applet? Is this a bug somewhere (some hook not being turned on, as used to happen with suspend in the bad old days of early Fedora) and if so, where should I file it (under what component in BZ)?
Many thanks and best wishes,
Ranjan
PS: As an aside, one of the parameters in: /etc/default/grub, I have GRUB_DISABLE_RECOVERY="true" -- I also tried with
GRUB_DISABLE_RECOVERY="false" but there was no visible effect. I am not completely sure what this parameter does because it seems to give me the same result irrespective of whether or not it is set to "true".
Best wishes,
Ranjan
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth
7 years, 9 months