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, 4 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, 5 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, 5 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, 5 months
adding a package to Fedora's EPEL
by Ranjan Maitra
Hi,
I am the packager for pdf-stapler in Fedora. I would like to make this available on EPEL so that CentOS, etc users may benefit. How do I do that?
Many thanks,
Ranjan
--
Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.
____________________________________________________________
Share photos & screenshots in seconds...
TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if1
Works in all emails, instant messengers, blogs, forums and social networks.
7 years, 5 months
Gnome shell high memory usage
by Earl Ramirez
Dear All,
I don't think this is normal but I will like to know if anyone is
experiencing high memory usage from gnome-shell, a week ago was the first
time I saw it and to be honest, I can't say it this is something recent of
if it has always been this memory hungry.
After having my laptop with Fedora 24 on for three days I can see that the
memory consumed by gnome-shell is over 2GB and a week ago it was consuming
6GB.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND
2028 eramirez 20 0 4281540 2.169g 92676 S 10.9 13.9 59:43.98
gnome-shell
Is anyone experiencing this problem?
--
Kind Regards
Earl Ramirez
7 years, 5 months
cups - the printer is not responding
by Angelo Moreschini
Hi,
I have a network printer (that I can see on the computer server browser at
localhost:631).
When I try to use it, the jobs are not processed... - and I get the
message
* " the printer is not responding".*
I fund this information at link ;
https://wiki.archlinux.org/index.php/CUPS/Troubleshooting#All_jobs_are_.2...
-------------------------
All jobs are "The printer is not responding"
On networked printers, you should check that the name that CUPS uses as its
connection URI resolves to the printer's IP via DNS, e.g. If your printer's
connection looks like this:
lpd://BRN_020554/BINARY_P1
then the hostname 'BRN_020554' needs to resolve to the printer's IP from
the server running CUPS
------------------------
I understand what this means...
but I don't know how to accomplice the task*: *
* resolve that the IP from the server running CUPS *
Any help to do this will be appreciated.
Thank you
Angelo
7 years, 5 months
RH Linux 5.2, Kernel 2.0.36, SCSI Disks => VM? + Nostalgia . .
by Philip Rhoades
People,
My usual mode of operation when updating OSes is to use a new Hard Disk
and install the latest version of the OS (sometimes bleeding edge) and
to keep the old disk as an archive drive. So I have a lot of old drives
and recently I have been going back through the old SATA and then IDE
drives - which has been an interesting archaeological dig! Today I
started looking at stuff on this old RH server which was used as a Qmail
mail server, EZMLM mailing list manager and a host for a few small web
sites. It had not been looked at since the machine had been turned off
a long, long time ago - to my surprise it booted up with no problems!
Now all I need to do is daisy-chain the Adaptec SCSI controller to an
external box with another 4 SCSI drives in it to complete the
archaeological exploration.
It was a little strange but pleasant looking at all this very old stuff
- knowing with hindsight how the users, lists and sites developed after
their modest beginnings. I guess I got a bit nostalgic and decided to
continue to keep the box (it is the only old box I have that can
accommodate the old Adaptec ISA board) but it occurred to me that it
would be an interesting exercise to try and virtualise the system - is
this possible? - could I create an image from the old 2GB SCSI boot disk
and run it as a virtual machine somehow?
For the record, my first RH OS was v4.0 - which I used in a commercial
environment (we told the boss it was an updated version of UNIX!) - I
had used a variety of other distros for fun going back to Slackware and
before that Softlanding Linux System (SLS):
https://en.wikipedia.org/wiki/Softlanding_Linux_System
RH upset me when they took their distro completely commercial and I was
cranky for a while but I was very happy when RH finally realised their
mistake and createde Fedora Core 1 - which I eagerly lept into!
Also, I still have my first-ever (electronic) computer (I had a plastic
one when I was kid that had three bits and the clock cycle involved
manually pushing and pulling a lever . .) - an Exidy Sorcerer from 1978
which had to have programs and data loaded from audio audio cassettes
(!):
https://en.wikipedia.org/wiki/Exidy_Sorcerer
and my first computer with floppy disks - the luggable Osborne 1
computer.
https://en.wikipedia.org/wiki/Osborne_1
I wouldn't be surprised if I could still boot them up as well! . .
although it would be a fair bit more messing around . .
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
7 years, 6 months