LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2019, 10:09 PM   #61
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,536

Rep: Reputation: 239Reputation: 239Reputation: 239

I install everything because of laziness. Back when I had a 13gb hard drive that cost me about $135 on sale, dropping unnecessary stuff was the norm. I could have two kernels on a 1.44mb floppy.

My drive now is 2tb, so I no longer worry about space and just don't care, also am too old and grumpy.
 
Old 08-11-2019, 10:16 PM   #62
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: CentOS, MacOS, [Open]SuSE, Raspian, Red Hat, Slackware, Solaris, Tru64
Posts: 1,429

Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by EdGr View Post
Here is a modest suggestion: go through the list of packages and consider removing the ones that have not been updated in the past decade. Many of them are only of historical interest. Users who want them can get the source code from older Slackware releases.

This could reduce the maintenance effort.
Ed

Code:
% cd slackware64/source
% ls -Ggtr */*/*.tar.?z | sed 's/^.\{23\}//g' | head -n 117
Dec  2  1993 xap/xgames/xroach.tar.gz
...
Xroaches is still available? Cool!

Someone still making sure these run given the changes to libraries over time? A labor of love, I'd say.
 
Old 08-11-2019, 10:25 PM   #63
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: CentOS, MacOS, [Open]SuSE, Raspian, Red Hat, Slackware, Solaris, Tru64
Posts: 1,429

Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by EdGr View Post
Telnet is unencrypted - user beware.
It's still useful for interacting directly with services like, say, postfix when debugging.
 
1 members found this post helpful.
Old 08-12-2019, 01:14 AM   #64
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,025

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by rnturn View Post
Xroaches is still available? Cool!
Does not appear to run here... Anybody have success?
 
Old 08-12-2019, 02:25 AM   #65
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 126

Rep: Reputation: 71
Quote:
Originally Posted by andrew.46 View Post
Does not appear to run here... Anybody have success?
Main problem of xroach is that this program draws over X main window which is hidden below current time desktop wallpapers and other things. So from xroach point of view they are always hidden under visible window and there are no bugs draw.

Try run twm as X desktop enviroment an they should be visible.
 
Old 08-12-2019, 02:36 AM   #66
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,116
Blog Entries: 18

Rep: Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798
It sort of works in fvwm, but the author never imagined the speed increase that computers would undergo over the years so the roaches hide almost instantly. You can sort of get it working by specifying -speed 0.1. but even then the roaches are that twitchy it might as well be called xblurryspotsthatmove.

Last edited by GazL; 08-12-2019 at 04:39 AM.
 
Old 08-12-2019, 07:35 AM   #67
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 126

Rep: Reputation: 71
Probably I'm too much bored.

Little patch for xroach - it fix signal handling (^C), some compilation warnings (one is impossible due to makefile generation), and add additional slowdown. But I've no idea how to make root window hiding workaround.
Code:
diff -ruN xroach/xroach.c xroach-new/xroach.c
--- xroach/xroach.c	1991-06-06 14:12:07.000000000 +0200
+++ xroach-new/xroach.c	2019-08-12 14:08:54.612774406 +0200
@@ -31,14 +31,8 @@
 #include <math.h>
 #include <malloc.h>
 #include <signal.h>
-
-#if __STDC__
 #include <stdlib.h>
-#else
-long strtol();
-double strtod();
-char *getenv();
-#endif
+#include <unistd.h>
 
 char Copyright[] = "Xroach\nCopyright 1991 J.T. Anderson";
 
@@ -64,7 +58,6 @@
 Pixel black, white;
 
 int done = 0;
-int eventBlock = 0;
 int errorVal = 0;
 Bool squishRoach = False;
 Pixmap squishMap;
@@ -99,6 +92,7 @@
 int MarkHiddenRoaches();
 Pixel AllocNamedColor();
 Window FindRootWindow();
+void checkSquish();
 
 void
 main(ac, av)
@@ -239,6 +233,7 @@
 	    else
 	    	nVis = MarkHiddenRoaches();
 	    if (nVis) {
+		usleep(10000);
 		ev.type = SCAMPER_EVENT;
 		if (!squishWinUp && squishRoach) {
 		    XMapWindow(display, squishWin);
@@ -252,9 +247,7 @@
 		}
 		if (needCalc == 0)
 		    DrawRoaches();
-		eventBlock = 1;
-		XNextEvent(display, &ev);
-		eventBlock = 0;
+		continue;
 	    }
 	}
 	
@@ -312,19 +305,7 @@
 void
 SigHandler()
 {
-       
-    /*
-       If we are blocked, no roaches are visible and we can just bail
-       out.  If we are not blocked, then let the main procedure clean
-       up the root window.
-    */
-    if (eventBlock) {
-	XCloseDisplay(display);
-	exit(0);
-    }
-    else {
 	done = 1;
-    }
 }
 
 /*
@@ -340,7 +321,7 @@
     unsigned int numChildren;
     int cx;
     Atom actualType;
-    Atom actualFormat;
+    int actualFormat;
     unsigned long nItems;
     unsigned long bytesAfter;
     Window *newRoot;
@@ -370,7 +351,7 @@
 	nItems = 0;
 	if (XGetWindowProperty(display, children[cx], swmVroot, 0L, 1L, False,
 	    XA_WINDOW, &actualType, &actualFormat, &nItems,
-	    &bytesAfter, &newRoot) == Success && actualFormat != None) {
+	    &bytesAfter, (unsigned char **)&newRoot) == Success && actualFormat != None) {
 		if (nItems >= 1) {
 		    rootWin = *newRoot;
 		}
@@ -744,6 +725,7 @@
 /*
  *	squishCheck - Check to see if we have to squish any roaches.
  */
+void
 checkSquish(buttonEvent)
 XButtonEvent *buttonEvent;
 {
Simple way to test
Code:
xnest :1 &
twm -display :1
Then left click and run xterm, and i that xterm:
Code:
xroach -rc red
Attached Files
File Type: txt xroach.patch.txt (2.1 KB, 0 views)
 
5 members found this post helpful.
Old 08-12-2019, 07:36 AM   #68
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Slackware
Posts: 1,760
Blog Entries: 3

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
Quote:
Originally Posted by Labinnah View Post
Probably I'm too much bored.
This is a productive way to handle your boredom though. You're doing great work, Labinnah.
 
2 members found this post helpful.
Old 08-12-2019, 07:43 AM   #69
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,891

Rep: Reputation: Disabled
Quote:
Originally Posted by Labinnah View Post
Probably I'm too much bored.

Little patch for xroach - it fix signal handling (^C), some compilation warnings (one is impossible due to makefile generation), and add additional slowdown. But I've no idea how to make root window hiding workaround.
Code:
diff -ruN xroach/xroach.c xroach-new/xroach.c
--- xroach/xroach.c	1991-06-06 14:12:07.000000000 +0200
+++ xroach-new/xroach.c	2019-08-12 14:08:54.612774406 +0200
@@ -31,14 +31,8 @@
 #include <math.h>
 #include <malloc.h>
 #include <signal.h>
-
-#if __STDC__
 #include <stdlib.h>
-#else
-long strtol();
-double strtod();
-char *getenv();
-#endif
+#include <unistd.h>
 
 char Copyright[] = "Xroach\nCopyright 1991 J.T. Anderson";
 
@@ -64,7 +58,6 @@
 Pixel black, white;
 
 int done = 0;
-int eventBlock = 0;
 int errorVal = 0;
 Bool squishRoach = False;
 Pixmap squishMap;
@@ -99,6 +92,7 @@
 int MarkHiddenRoaches();
 Pixel AllocNamedColor();
 Window FindRootWindow();
+void checkSquish();
 
 void
 main(ac, av)
@@ -239,6 +233,7 @@
 	    else
 	    	nVis = MarkHiddenRoaches();
 	    if (nVis) {
+		usleep(10000);
 		ev.type = SCAMPER_EVENT;
 		if (!squishWinUp && squishRoach) {
 		    XMapWindow(display, squishWin);
@@ -252,9 +247,7 @@
 		}
 		if (needCalc == 0)
 		    DrawRoaches();
-		eventBlock = 1;
-		XNextEvent(display, &ev);
-		eventBlock = 0;
+		continue;
 	    }
 	}
 	
@@ -312,19 +305,7 @@
 void
 SigHandler()
 {
-       
-    /*
-       If we are blocked, no roaches are visible and we can just bail
-       out.  If we are not blocked, then let the main procedure clean
-       up the root window.
-    */
-    if (eventBlock) {
-	XCloseDisplay(display);
-	exit(0);
-    }
-    else {
 	done = 1;
-    }
 }
 
 /*
@@ -340,7 +321,7 @@
     unsigned int numChildren;
     int cx;
     Atom actualType;
-    Atom actualFormat;
+    int actualFormat;
     unsigned long nItems;
     unsigned long bytesAfter;
     Window *newRoot;
@@ -370,7 +351,7 @@
 	nItems = 0;
 	if (XGetWindowProperty(display, children[cx], swmVroot, 0L, 1L, False,
 	    XA_WINDOW, &actualType, &actualFormat, &nItems,
-	    &bytesAfter, &newRoot) == Success && actualFormat != None) {
+	    &bytesAfter, (unsigned char **)&newRoot) == Success && actualFormat != None) {
 		if (nItems >= 1) {
 		    rootWin = *newRoot;
 		}
@@ -744,6 +725,7 @@
 /*
  *	squishCheck - Check to see if we have to squish any roaches.
  */
+void
 checkSquish(buttonEvent)
 XButtonEvent *buttonEvent;
 {
Simple way to test
Code:
xnest :1 &
twm -display :1
Then left click and run xterm, and i that xterm:
Code:
xroach -rc red
thanks!
Attached Thumbnails
Click image for larger version

Name:	7iw50cH.jpg
Views:	13
Size:	52.6 KB
ID:	31107  
 
Old 08-12-2019, 07:46 AM   #70
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,241

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
One of the great things about Slackware is that it comes with all of this "old" stuff.

It is all far from useless and unused. Two examples:

The version of XMMS which comes with Slackware can still play the mod files I got from my Amiga using friends in the early 90s... with no patching or tweaking.

If you're in runlevel 3 (i.e: the CLI outside of X), you can use mtools to access the content of usb sticks without needing to manually mount them.

It's a very capable system right out of the box. Why would you want to sabotage that?
 
4 members found this post helpful.
Old 08-12-2019, 05:00 PM   #71
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: Slackware
Posts: 205

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by rkelsen
The version of XMMS which comes with Slackware can still play the mod files I got from my Amiga using friends in the early 90s... with no patching or tweaking.
All of the X toolkit programs are essentially unusable on HiDPI monitors.
Ed
 
Old 08-12-2019, 06:30 PM   #72
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,116
Blog Entries: 18

Rep: Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798
Quote:
Originally Posted by EdGr View Post
All of the X toolkit programs are essentially unusable on HiDPI monitors.
Ed
Have you tried setting the Xresources to increase font sizes?

xmessage -xrm "Xmessage*font: -*-century schoolbook l-*-*-*-*-*-400-*-*-*-*-*-*" "Not so small!"


There's nothing in Xlib/Xtoolkit that would preclude an app from being written in a hidpi friendly manner as far as I can see. It would just need to have properly scaled bitmaps/pixmaps and specify fonts by pointsize.

Last edited by GazL; 08-12-2019 at 06:37 PM.
 
Old 08-12-2019, 07:02 PM   #73
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: Slackware
Posts: 205

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by GazL
Have you tried setting the Xresources to increase font sizes?
Yes, I set Xft.dpi=150 in .Xresources. This fixes Xft fonts.

Icons and widgets are a different story. Only recent programs have icons suitable for HiDPI.
Ed
 
Old 08-13-2019, 04:56 AM   #74
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,116
Blog Entries: 18

Rep: Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798Reputation: 2798
Old X Toolkit programs would often load icons from external .xpm files which could be resized, and widget attributes can be changed via Xresources/app-defaults, so I suspect you could get them working, albeit with more effort than you are probably willing to expend.
 
Old 08-13-2019, 04:59 AM   #75
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,241

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
Quote:
Originally Posted by EdGr View Post
All of the X toolkit programs are essentially unusable on HiDPI monitors.
Ed
Yeah, it might take some time before X/xorg catches up with the technology. Heck, even Windows struggles with HiDPI. I bought a new laptop (Dell XPS 15) which has a HiDPI screen, and Windows 10 came with the resolution set to maximum (3840x2160) and scaled to 250% so that you can read it. Of course, this causes all kinds of issues in Windows, so I found that setting it to a lower resolution and scaling everything back to 100% works significantly better than the default setting. This is a work machine, so readability is more important than high resolution.

Under Slackware, my workaround for now was to add the following to the Linux stanza in elilo.conf:
Code:
append = "video=1368x768"
It's a 15" screen, so that mode works quite well. A side benefit is that all of those "useless" X apps work properly. It also gives me readable fonts in runlevel 3.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Looking for a old Distro (early 2000s) good kernel driver support Coop_012 Linux - Software 15 01-11-2019 05:37 AM
LXer: IBM sues Groupon over 1990s patents related to Prodigy LXer Syndicated Linux News 0 03-03-2016 11:51 PM
LXer: 25 things my new Android phone does that makes my iPhone feel like it comes from the 1990s LXer Syndicated Linux News 0 07-12-2013 07:10 AM
We are updating Mageia 2 packages and isos and Cauldron packages for design ennael Mageia 2 06-25-2012 12:01 AM
Adaptec SmartRAID 2000S management in Red Hat? gislil Linux - Hardware 2 05-08-2009 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration