Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Fullaxx/ubuntu-desktop into bionic
Browse files Browse the repository at this point in the history
  • Loading branch information
Fullaxx committed Jun 27, 2024
2 parents 1173cca + 7bbc255 commit a14e012
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 24 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apt-get update && \
less \
locales \
nano \
obconf \
openbox \
sudo \
tigervnc-common \
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,15 @@ Default: UTC
Set a background image for the openbox desktop \
Default: None \
Image Links:
[1](http://digitalblasphemy.com/graphics/HDfree/metallurgy1HDfree.jpg) /
[2](http://digitalblasphemy.com/graphics/HDfree/portals1HDfree.jpg) /
[3](http://digitalblasphemy.com/graphics/HDfree/cronusrising2k141HDfree.jpg) /
[4](http://digitalblasphemy.com/graphics/HDfree/harbinger2k91HDfree.jpg) /
[5](http://digitalblasphemy.com/graphics/HDfree/arcana2HDfree.jpg) /
[6](http://digitalblasphemy.com/graphics/HDfree/rivenHDfree.jpg) /
[7](http://digitalblasphemy.com/graphics/HDfree/circularlogicHDfree.jpg) /
[8](http://digitalblasphemy.com/graphics/HDfree/gardener2k121HDfree.jpg) \
[1](https://www.rapidlinux.org/udwp/metallurgy1HDfree.jpg) /
[2](https://www.rapidlinux.org/udwp/portals1HDfree.jpg) /
[3](https://www.rapidlinux.org/udwp/cronusrising2k141HDfree.jpg) /
[4](https://www.rapidlinux.org/udwp/harbinger2k91HDfree.jpg) /
[5](https://www.rapidlinux.org/udwp/arcana2HDfree.jpg) /
[6](https://www.rapidlinux.org/udwp/rivenHDfree.jpg) /
[7](https://www.rapidlinux.org/udwp/circularlogicHDfree.jpg) /
[8](https://www.rapidlinux.org/udwp/gardener2k121HDfree.jpg) /
[9](https://www.rapidlinux.org/udwp/overseer2k141_single_1920x1080.jpg) \
Layout Options: fill / extend / full / tile / cover / center \
Default Layout: center
```
Expand Down
17 changes: 9 additions & 8 deletions bin/set_wallpaper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ if [ -z "$1" ]; then
fi

case "$1" in
1) WPURL="http://digitalblasphemy.com/graphics/HDfree/metallurgy1HDfree.jpg" ;;
2) WPURL="http://digitalblasphemy.com/graphics/HDfree/portals1HDfree.jpg" ;;
3) WPURL="http://digitalblasphemy.com/graphics/HDfree/cronusrising2k141HDfree.jpg" ;;
4) WPURL="http://digitalblasphemy.com/graphics/HDfree/harbinger2k91HDfree.jpg" ;;
5) WPURL="http://digitalblasphemy.com/graphics/HDfree/arcana2HDfree.jpg" ;;
6) WPURL="http://digitalblasphemy.com/graphics/HDfree/rivenHDfree.jpg" ;;
7) WPURL="http://digitalblasphemy.com/graphics/HDfree/circularlogicHDfree.jpg" ;;
8) WPURL="http://digitalblasphemy.com/graphics/HDfree/gardener2k121HDfree.jpg" ;;
1) WPURL="https://www.rapidlinux.org/udwp/metallurgy1HDfree.jpg" ;;
2) WPURL="https://www.rapidlinux.org/udwp/portals1HDfree.jpg" ;;
3) WPURL="https://www.rapidlinux.org/udwp/cronusrising2k141HDfree.jpg" ;;
4) WPURL="https://www.rapidlinux.org/udwp/harbinger2k91HDfree.jpg" ;;
5) WPURL="https://www.rapidlinux.org/udwp/arcana2HDfree.jpg" ;;
6) WPURL="https://www.rapidlinux.org/udwp/rivenHDfree.jpg" ;;
7) WPURL="https://www.rapidlinux.org/udwp/circularlogicHDfree.jpg" ;;
8) WPURL="https://www.rapidlinux.org/udwp/gardener2k121HDfree.jpg" ;;
9) WPURL="https://www.rapidlinux.org/udwp/overseer2k141_single_1920x1080.jpg" ;;
*) WPURL="0" ;;
esac

Expand Down
2 changes: 2 additions & 0 deletions conf/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<item label="Medit"><action name="Execute"><command>/app/scripts/medit.sh</command></action></item>
<item label="Bluefish"><action name="Execute"><command>/app/scripts/bluefish.sh</command></action></item>
<item label="Geany"><action name="Execute"><command>/app/scripts/geany.sh</command></action></item>
<item label="Thonny"><action name="Execute"><command>/app/scripts/thonny.sh</command></action></item>
<item label="Sublime-Text"><action name="Execute"><command>/app/scripts/sublimetext.sh</command></action></item>
<item label="VSCode"><action name="Execute"><command>/app/scripts/vscode.sh</command></action></item>
<item label="NetBeans"><action name="Execute"><command>/app/scripts/netbeans.sh</command></action></item>
Expand Down Expand Up @@ -160,6 +161,7 @@
</menu>

<menu id="system-menu" label="System">
<item label="Openbox Configuration Manager"><action name="Execute"><command>obconf</command></action></item>
<item label="Reconfigure Openbox"><action name="Reconfigure" /></item>
</menu>

Expand Down
12 changes: 12 additions & 0 deletions scripts/install_nomachine.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

export DEBIAN_FRONTEND="noninteractive"
URL="https://download.nomachine.com/download/8.11/Linux/nomachine_8.11.3_4_amd64.deb"
DEB="/tmp/nomachine.deb"

wget ${URL} -O ${DEB}
dpkg -i ${DEB} || (set -e; apt-get update; apt-get install -f -y)
rm ${DEB}

26 changes: 21 additions & 5 deletions scripts/install_torbrowser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,20 @@ set -e
export DEBIAN_FRONTEND="noninteractive"

apt-get update
apt-get install -y file libgtk-3-0 libdbus-glib-1-2 wget xz-utils gnupg2
apt-get install -y file gnupg2 libasound2 libgtk-3-0 libdbus-glib-1-2 wget xz-utils

TORPKG=`curl -s https://www.torproject.org/download/ 2>/dev/null | grep 'Download for Linux' | tr '"' '\n' | grep linux64`
TORSIG=`curl -s https://www.torproject.org/download/ 2>/dev/null | grep Signature | tr '"' '\n' | grep tar.xz.asc`
TORPKG=`curl -s https://www.torproject.org/download/ 2>/dev/null | grep 'Download for Linux' | tr '"' '\n' | grep linux-x86_64 || true`
TORSIG=`curl -s https://www.torproject.org/download/ 2>/dev/null | grep Signature | tr '"' '\n' | grep tar.xz.asc || true`

if [ -z "${TORPKG}" ]; then
echo "Hyperlinks have changed! TORPKG is not valid!"
exit 1
fi

if [ -z "${TORSIG}" ]; then
echo "Hyperlinks have changed! TORSIG is not valid!"
exit 2
fi

# Download package
wget https://www.torproject.org/${TORPKG} -O /tmp/tor.tar.xz
Expand All @@ -21,9 +31,15 @@ gpg --verify /tmp/tor.tar.xz.asc /tmp/tor.tar.xz

# Install package
tar xf /tmp/tor.tar.xz -C /opt
rm /tmp/tor.tar.xz /tmp/tor.tar.xz.asc
if [ ! -d /opt/tor-browser ]; then
echo "tor-browser not found under /tmp/tor.tar.xz!"
exit 3
fi

# Tweak package
mv /opt/tor-browser_* /opt/tor
mv /opt/tor-browser /opt/tor
sed -e 's/"`id -u`" -eq 0/`false`/g' -i /opt/tor/Browser/start-tor-browser
sed -e 's/$SYSARCHITECTURE -ne $TORARCHITECTURE/"$SYSARCHITECTURE" != "$TORARCHITECTURE"/g' -i /opt/tor/Browser/start-tor-browser

# Clean-up
rm /tmp/tor.tar.xz /tmp/tor.tar.xz.asc
3 changes: 1 addition & 2 deletions scripts/launch_torbrowser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ if [ ! -x /opt/tor/start-tor-browser.desktop ]; then
xterm -T InstallTorBrowser -g 100x30 -e sudo /app/scripts/install_torbrowser.sh
fi

cd /opt/tor/
./start-tor-browser.desktop
/opt/tor/Browser/start-tor-browser --detach
14 changes: 14 additions & 0 deletions scripts/thonny.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

export DEBIAN_FRONTEND="noninteractive"
BINARY="thonny"

BINARYLOC=`which ${BINARY}`
if [ "$?" -ne "0" ]; then
set -e

xterm -T AptGetUpdate -g 100x30 -e sudo apt-get update
xterm -T AptGetInstall -g 100x30 -e sudo apt-get install -y ${BINARY}
fi

${BINARY}
2 changes: 1 addition & 1 deletion tests/tor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

TORPKG=`curl https://www.torproject.org/download/ 2>/dev/null | grep 'Download for Linux' | tr '"' '\n' | grep linux64`
TORPKG=`curl https://www.torproject.org/download/ 2>/dev/null | grep 'Download for Linux' | tr '"' '\n' | grep x86_64`
TORSIG=`curl https://www.torproject.org/download/ 2>/dev/null | grep Signature | tr '"' '\n' | grep tar.xz.asc`

wget https://www.torproject.org/${TORPKG} -O /tmp/tor.tar.xz
Expand Down

0 comments on commit a14e012

Please sign in to comment.