"dws" is the distrowatch distro position script. See -h for options. To install, do: cd /usr/local/bin && wget -Nc smxi.org/dws && chmod +x dws :: (arch users put it in /usr/bin) now you can run it in your irc client directly, like so: /exec -o dws -d arch -t 30 ::
Script defaults to debian + 7 day with no args, you can change these defaults at the top of the script.
New script from h2.
$ dws -h
dws distrowatch distro position script. Version: debian
Your default with no options is distro: debian - time span: 7
------------------------------------------------------------
dws script options ( any you want or none, like: dws -d arch -t 3 ):
-d - distrowatch distro as listed in right bar, no spaces, /, or dashes, remove them, ie:
PC-BSD must be: pcbsd (upper/lower case doesn't matter) - Sample: dws -d pcbsd
You can also check multiple distros, by creating a comma separated list, no spaces:
dws -d arch,opensolaris,debian
-t - time span: 7 30 (days) - Months: 3 6 12 - Years: 2002-9 - Sample: dws -t 30
-U - Update script to latest version
-D - show debugging output
-h - help menu
------------------------------------------------------------
Known exceptions to distro naming:
Ubuntu Christian: -d ubuntuce
------------------------------------------------------------
You can change the script defaults at top of script variable settings to what you want,
just change the values of these top variables and dws will show by default what you
want to see with no arguments/options:
DISTRO='debian'
TIME_SPAN='7'
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
distrowatch distro position script
- craigevil
- Posts: 5391
- Joined: 2006-09-17 03:17
- Location: heaven
- Has thanked: 28 times
- Been thanked: 39 times
distrowatch distro position script
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list
Re: distrowatch distro position script
forgive me, but what does the script do?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
- craigevil
- Posts: 5391
- Joined: 2006-09-17 03:17
- Location: heaven
- Has thanked: 28 times
- Been thanked: 39 times
Re: distrowatch distro position script
Checks distrowatch.com for the rankingsmilomak wrote:forgive me, but what does the script do?
craig@craigevil:~$ dws -d debian -t 3
The debian distrowatch.com 3 month position is: 6
craig@craigevil:~$ dws -d debian -t 12
The debian distrowatch.com 12 month position is: 6
craig@craigevil:~$ dws -d debian -t 2008
The debian distrowatch.com 2008 year position is: 6
craig@craigevil:~$ dws -d debian -t 2007
The debian distrowatch.com 2007 year position is: 7
craig@craigevil:~$ dws
The debian distrowatch.com 7 day position is: 6
So yeah nothing really important.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list
Re: distrowatch distro position script
This script is a toy, a trinket, I was bored yesterday, and made it, because I was tired of checking various pages in distrowatch to track various distros manually.
Now shows rankings for multiple distros at once as well, in 1.2.0
This is a classic unix type tool, it has one and only one function, and does nothing else. Hopefully except for small updates etc it will remain largely unchanged after today, but you never know, sometimes someone requests an interesting feature that would add to the 'fun'.
I also created a how to install dws section on the main smxi.org install page.
By the way, one thing this script does NOT do, and will NEVER do, is help distros pad their distrowatch page hit stats, that practice is bad enough as it is....
Now shows rankings for multiple distros at once as well, in 1.2.0
Code: Select all
dws -d opensolaris,openbsd,freebsd -t 30
The opensolaris distrowatch.com 30 day position is: 38
The openbsd distrowatch.com 30 day position is: 64
The freebsd distrowatch.com 30 day position is: 18
I also created a how to install dws section on the main smxi.org install page.
By the way, one thing this script does NOT do, and will NEVER do, is help distros pad their distrowatch page hit stats, that practice is bad enough as it is....
Re: distrowatch distro position script
oh i see. it seems a nice toy nonetheless.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
Re: distrowatch distro position script
1.3.2 has some improvements, now shows hits per day average, and for days/months, shows if average is +, -, or ~ (level)
Added in -v for version option, and improved updater (-U) to show versions pre and post update. All to make a shiny toy shinier.
Also found a small issue with irc clients turning (..) into emoticons, so it tests if tty and shows either:
And since that's all the data that is really available, I'm going to call this one done now. Pointless, but I was bored and wanted something to distract me, mission accomplished, the rains are done and it's a nice sunny day today.
Added in -v for version option, and improved updater (-U) to show versions pre and post update. All to make a shiny toy shinier.
Also found a small issue with irc clients turning (..) into emoticons, so it tests if tty and shows either:
Code: Select all
## terminal output
dws -d debian,opensolaris -t 30
The debian distrowatch.com 30 day position is: 6 (1034+)
The opensolaris distrowatch.com 30 day position is: 39 (265-)
## irc client output
dws -d debian,opensolaris -t 30
The debian distrowatch.com 30 day position is: 6 :: 1034+
The opensolaris distrowatch.com 30 day position is: 39 :: 265-
- craigevil
- Posts: 5391
- Joined: 2006-09-17 03:17
- Location: heaven
- Has thanked: 28 times
- Been thanked: 39 times
Re: distrowatch distro position script
That is just plain awesome.DrCR wrote:You made it into today's DistroWatch Weekly
DistroWatch.com: Put the fun back into computing. Use Linux, BSD.
Finally, something for the fans of the DistroWatch Page Hit Ranking (PHR) statistics. News has reached us that the developers of the smxi scripts for Debian GNU/Linux have written a script called dws, whose sole purpose is to check a distribution's current or historical position in DistroWatch's PHR tables: "dws is a little script designed to let you easily check one or more distro's rankings at distrowatch.com. It defaults to Debian's 7-day ranking, but you can change the defaults by editing the top two variables. Installation is simple, just download it, and set it executable. Select which distro to check with -d option, and time frame with -t. See -h help menu for full directions. Note that the distro name cannot contain spaces, dashes, or /. Simply delete these, like so: PC-BSD becomes: PCBSD (not case sensitive)." As the author himself admits, the script is rather "pointless, but I was bored and wanted something to distract me, mission accomplished, the rains are done and it's a nice sunny day today." There is also short thread about it on the Debian forum.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list
Re: distrowatch distro position script
I don't do much with dws, but recently due to a small break I took a look at it again, and have refactored it, and added a reasonably useful option -r, which accepts positive or negative integers, and shows top or bottom x distros for the time span chosen.
Yes, it's still a toy, though I have found a new use for the data, which is why I added the -r info (quick way to test for top distros to determine which distros to test for inxi distro data support).
Note that dws is now at: https://github.com/smxi/dws
The download shortcut url is the same: smxi.org/dws
but now points to the github location.
A few smaller changes:
default with no arguments is now -r 10, ie, top 10 distros, still for 7 days default.
Also accepts /etc/dws.conf to allow for user generated defaults, if you want.
along with the regular output:
Yes, it's still a toy, though I have found a new use for the data, which is why I added the -r info (quick way to test for top distros to determine which distros to test for inxi distro data support).
Note that dws is now at: https://github.com/smxi/dws
The download shortcut url is the same: smxi.org/dws
but now points to the github location.
A few smaller changes:
default with no arguments is now -r 10, ie, top 10 distros, still for 7 days default.
Also accepts /etc/dws.conf to allow for user generated defaults, if you want.
Code: Select all
dws -t 6 -r 20
Distrowatch.com 6 month rankings:
Manjaro: 1 (3982+) [manjaro]
Mint: 2 (2278-) [mint]
elementary: 3 (1810+) [elementary]
MX Linux: 4 (1655+) [mx]
Ubuntu: 5 (1424-) [ubuntu]
Debian: 6 (1080~) [debian]
Fedora: 7 (817+) [fedora]
openSUSE: 8 (736+) [opensuse]
Solus: 9 (722-) [solus]
Zorin: 10 (593+) [zorin]
CentOS: 11 (554~) [centos]
Arch: 12 (541~) [arch]
ReactOS: 13 (497-) [reactos]
KDE neon: 14 (484+) [kdeneon]
Lite: 15 (462+) [lite]
Kali: 16 (452~) [kali]
Antergos: 17 (451-) [antergos]
antiX: 18 (424~) [antix]
Lubuntu: 19 (402+) [lubuntu]
PCLinuxOS: 20 (373~) [pclinuxos]
Code: Select all
dws -t 2012 -r -15
Distrowatch.com 2012 year rankings:
DEFT: 100 (123) [deft]
Yellow Dog: 99 (123) [yellowdog]
Cinnarch: 98 (124) [cinnarch]
TinyMe: 97 (124) [tinyme]
Legacy: 96 (126) [legacy]
Linpus: 95 (126) [linpus]
Zentyal: 94 (129) [zentyal]
Slackel: 93 (130) [slackel]
Swift: 92 (131) [swift]
Turbolinux: 91 (134) [turbolinux]
2X: 90 (136) [2x]
linuX-gamers: 89 (137) [linuxgamers]
NetBSD: 88 (139) [netbsd]
LPS: 87 (140) [lps]
Parsix: 86 (143) [parsix]
Code: Select all
dws -t 30 -d arch,debian,gentoo,slackware,mx,antix
Distrowatch.com 30 day rankings:
Arch: 15 (467-) [arch]
Debian: 6 (885+) [debian]
Gentoo: 64 (184-) [gentoo]
Slackware: 44 (247-) [slackware]
MX Linux: 3 (1860+) [mx]
antiX: 11 (543+) [antix]