Skip to content

Commit

Permalink
Merge pull request #7 from suhan-paradkar/main
Browse files Browse the repository at this point in the history
Clean Up Messy Code
  • Loading branch information
Yisus7u7 committed May 24, 2021
2 parents da384fc + a38c27e commit 1ed152a
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 132 deletions.
29 changes: 13 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,15 @@ x11, no es una distribución proot
> ejecutar las apps de una distro proot en termux x11!
> Un ejemplo :
```
./start-ubuntu.sh
apt install firefox
export DISPLAY=:1
firefox
```

### puede ejecutar apps proot sin problemas

Expand All @@ -109,31 +111,26 @@ firefox

⚠ Solo en termux

```
cd $HOME

pkg update && pkg upgrade

pkg install git

pkg install wget

git clone https://github.com/Yisus7u7/termux-desktop-xfce

cd termux-desktop-xfce

bash install-desktop-xfce.sh
```

> luego de eso solo espere, el script hará su trabajo
# Uso

usa el comando :

```
startdesktop

O

vncserver -listen tcp
```

Pará iniciar el servidor vnc, conectese a localhost:1
O el puerto que haya indicado la terminal
Expand All @@ -145,26 +142,26 @@ https://github.com/Yisus7u7/termux-desktop-xfce/issues

Para actualizar solo es ejecutar :

```
cd ~/termux-desktop-xfce

git pull

bash update-desktop.sh
```

Listo!

`nota: si la carpeta no existe o usted la eliminó
nota: si la carpeta no existe o usted la eliminó
para liberar espacio entonces debe seguir estos
pasos:`
pasos:

para actualizar solo ejecute :

```
cd $HOME

git clone https://github.com/Yisus7u7/termux-desktop-xfce

cd termux-desktop-xfce

bash update-desktop.sh
```

`Espero que te guste este pequeño trabajo,
No olvides dejar tu 🌟 y compartir :3`
Expand Down
25 changes: 25 additions & 0 deletions compile-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#Optional tools that will be compiled on-device

pkg install perl

cpan install XML::Parser

wget https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz
tar -xvf intltool-0.51.0.tar.gz
cd intltool-0.51.0/
autoreconf -fi
./configure --prefix=$PREFIX
make
make install
cd ..

wget https://archive.xfce.org/src/xfce/xfce4-dev-tools/4.16/xfce4-dev-tools-4.16.0.tar.bz2
tar -xvf xfce4-dev-tools-4.16.0.tar.bz2
cd xfce4-dev-tools-4.16.0/
autoreconf -fi
./configure --prefix=$PREFIX
make
make install
cd ..

exit
103 changes: 13 additions & 90 deletions install-desktop-xfce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,132 +30,55 @@ echo -e '\e[1;36m installing xfce4 and basic apps...\e[1m'
sleep 1

pkg update && pkg upgrade

pkg install -y x11-repo

pkg install -y xfce4

pkg install -y xfce4-taskmanager

pkg install -y xfce4-whiskermenu-plugin

pkg install -y xfce4-clipman-plugin

pkg install -y xarchiver

pkg install -y tigervnc

pkg install -y geany

pkg install -y geany-plugins

pkg install -y gtk3 gtk2 mtpaint

pkg install -y leafpad hexchat

pkg install -y netsurf recordmydesktop

pkg install -y feh

pkg install -y dosbox

pkg install -y xfce4-terminal

pkg install -y python-tkinter

pkg install -y htop

pkg install -y neofetch

pkg install -y loqui

pkg install -y neovim

pkg install -y vim-gtk

pkg install -y the-powder-toy

pkg install -y galculator

pkg install -y xorg-xhost

pkg install -y mpv

pkg install -y tumbler

pkg install -y ristretto

pkg install -y

pkg install -y xfce4 xfce4-taskmanager dosbox xfce4-terminal python-tkinter htop neofetch loqui vim-gtk the-powder-toy galculator xorg-xhost mpv ristretto xfce4-whiskermenu-plugin xfce4-clipman-plugin xarchiver tigervnc geany geany-plugins gtk3 gtk2 mtpaint leafpad hexchat netsurf recordmydesktop feh
clear

echo -e '\e[1;31mSetting up vnc server ...\e[1m'

sleep 3

#setting folders
rm -rf $HOME/.vnc

rm -rf $HOME/.vnc
mv $HOME/.config $HOME/.config.old

rm -rf $HOME/.icons

rm -rf $HOME/.themes

mv ./music $PREFIX/bin/music

#installing dotfiles

clear

echo "espere un momento...."

echo "Wait a sec...."
cp -rf $HOME/termux-desktop-xfce/music $PREFIX/bin

cp -rf $HOME/termux-desktop-xfce/startdesktop $PREFIX/bin

cp -rf $HOME/termux-desktop-xfce/backgrounds $HOME

cp -rf $HOME/termux-desktop-xfce/.icons $HOME

cp -rf $HOME/termux-desktop-xfce/.themes $HOME

cp -rf $HOME/termux-desktop-xfce/.vnc $HOME

cp -rf $HOME/termux-desktop-xfce/.config $HOME

mkdir $HOME/Desktop

mkdir $HOME/Downloads

mkdir $HOME/Templates

mkdir $HOME/Public

mkdir $HOME/Documents

mkdir $HOME/Pictures

mkdir $HOME/Video

cp -rf $HOME/termux-desktop-xfce/README.desktop $HOME/Desktop

termux-setup-storage
ln -s $HOME/storage/music $HOME/Music

cd $HOME
bash $HOME/.icons/install-papirus.sh

ln -s $HOME/storage/music Music
read -p "\e[1; Do you want to compile extra plugins on-device??[y/n]" in

mkdir $HOME/Music

cd $HOME/.icons

bash install-papirus.sh

cd $HOME
if [[ $in -eq y]]
then
bash compile-install.sh
echo -e """\e[1;32menjoy!!
To start the vnc server, use the command: vncserver or startdesktop to stop it, use the command: vncserver -kill: 1 Replace the: 1 with the port on which the vnc service is running\e[1m"""

else
echo -e """\e[1;32menjoy!!
To start the vnc server, use the command: vncserver or startdesktop to stop it, use the command: vncserver -kill: 1 Replace the: 1 with the port on which the vnc service is running\e[1m"""

exit


28 changes: 2 additions & 26 deletions update-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,22 @@ sleep 5

#install new packages

pkg install -y ristretto

pkg install -y tumbler

pkg install -y mpv

pkg install -y python-tkinter

pkg install -y geany-plugins

pkg install -y xfce4-taskmanager

pkg install -y xfce4-whiskermenu-plugin

pkg install -y xfce4-clipman-plugin
pkg up
git pull

#configuring update

rm -rf $PREFIX/bin/music

rm -rf $PREFIX/startdesktop

cp -rf $HOME/termux-desktop-xfce/music $PREFIX/bin

cp -rf $HOME/termux-desktop-xfce/startdesktop $PREFIX/bin

rm -rf $HOME/.config.old

cp -rf $HOME/.config $HOME/.config.old

rm -rf $HOME/.config

cp -rf $HOME/termux-desktop-xfce/.config $HOME

cp -rf $HOME/termux-desktop-xfce/README.desktop $HOME/Desktop

cp -rf $HOME/termux-desktop-xfce/.icons/* $HOME/.icons/

cp -rf $HOME/termux-desktop-xfce/.themes/* $HOME/.themes/

cp -rf $HOME/termux-desktop-xfce/backgrounds/* $HOME/backgrounds/

clear
Expand Down

0 comments on commit 1ed152a

Please sign in to comment.