User Scripts

Post tutorials, HOWTO's and other useful resources here.
rych
Warlord
Warlord
Posts: 772
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

User Scripts

Post#1 by rych » 05 Mar 2025, 10:04

There is now a subforum in Porteus eXchange Telegram group devoted to publishing useful user-contributed scripts:
https://t.me/PorteusX/98

Vic
Samurai
Samurai
Posts: 171
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

User Scripts

Post#2 by Vic » 05 Mar 2025, 14:02

It seems I need a cell phone to access. Bummer.

Vic

User avatar
Ed_P
Contributor
Contributor
Posts: 8923
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

User Scripts

Post#3 by Ed_P » 05 Mar 2025, 19:02

Yup. tg://resolve?domain=PorteusX&post=98 not easy to access. This may help Vic: Telegram questions

Easier, more convenient, for Porteus users if a script is/are simply posted in a form posting. :happy62:

Added in 17 minutes 26 seconds:

These may help also Vic: Self-updating PorteuX (Post by rych #102236) & https://t.me/PorteusX/98/100.

And this: https://desktop.telegram.org/ :happy62:

Vic
Samurai
Samurai
Posts: 171
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

User Scripts

Post#4 by Vic » 05 Mar 2025, 22:54

Thanks Ed

The https://t.me/PorteusX/98/100 link seems to be all I need. Much appreciated.

Vic

User avatar
Ed_P
Contributor
Contributor
Posts: 8923
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

User Scripts

Post#5 by Ed_P » 06 Mar 2025, 00:11

For Firefox users there is this option: https://addons.mozilla.org/en-US/firefo ... ownloader/

rych
Warlord
Warlord
Posts: 772
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

User Scripts

Post#6 by rych » 06 Mar 2025, 05:11

Ed_P wrote:
05 Mar 2025, 19:19
Easier, more convenient, for Porteus users if a script is/are simply posted in a form posting
Of course, they are all here first: scattered around the topics in this forum, it's just an attempt to gather some of them one in place in Telegram group as well. As an incomplete back-up. This forum feels fragile at times: it's often under attack and difficult to post into.

Vic
Samurai
Samurai
Posts: 171
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

User Scripts

Post#7 by Vic » 06 Mar 2025, 12:30

I guess I have been doing the same thing by using Start.me

https://about.start.me/

When I find a cool item I organize it there. About 10 years now give or take.

Vic

rych
Warlord
Warlord
Posts: 772
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

User Scripts

Post#8 by rych » 23 Apr 2025, 12:22

update_vscode (portable VS Code, will be installed if not present)

Code: Select all

#!/usr/bin/bash
# Updates a portable installation of VSCode.
# When VSCode notifies of a new version,
# run this script instead which starts by changing to your portable directory, e.g,:
cd /I
# and downloads the latest .tar.gz from
wget -Nq --show-progress --content-disposition "https://code.visualstudio.com/sha/download?build=stable&os=linux-x64"
tar -xf code-*.tar.gz
mv VSCode VSCodeOLD
mv VSCode-* VSCode
mv VSCodeOLD/data VSCode/
chown -hR root:root VSCode
chmod 4755 VSCode/chrome-sandbox
echo "$(tput setaf 2) " #green, a new line
echo "These can now be deleted:"
ls code-*.tar.gz -d VSCodeOLD
echo "$(tput bold) " #bold, a new line
read -t 10 -n 1 -r -p "Delete them now? [y/N] " response
if [[ $response == [yY] ]]; then
    rm code-*.tar.gz -r VSCodeOLD
fi
echo "$(tput sgr0)"

Post Reply