Skip to content

Commit

Permalink
TEST 4 small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick330602 committed Jun 2, 2017
1 parent a599fbf commit 5933788
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MAN := $(wildcard docs/*.1)
SBIN := $(wildcard $(INSPATH)/wsl*)
SMAN := $(wildcard $(MANPATH)/*.1)
all:
@echo "wslu doesn't need to be built. Run \`make install' in order to install it."
@echo "wslu doesn't need to be built. Run 'sudo make install' to install it."

install :
install -m644 $(MAN) $(MANPATH)
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
This is a collection of utilities for Windows 10 Linux Subsystem, such as enabling sound in WSL or creating your favorite linux GUI application shortcuts on Windows 10 Desktop. Requires Windows 10 Creators Update.


# Install
# Installation
## Package
Download the package from [release](https://github.com/patrick330602/wslu/releases) and install it using `sudo dpkg -i wslu*`.
## Source
clone the repository and install the package using `sudo make install`. To uninstall, run `sudo make uninstall`.

# Feature
## wslusc
Expand Down
8 changes: 6 additions & 2 deletions wslpkg
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,20 @@ case $1 in
echo "${warn}DO NOT allow PulseAudio access to any of your networks if prompted."
# VcXsrv Installer
elif [[ "$2" == "vcxsrv" ]]; then
echo "${info}Tweaking system files..."
echo 'export DISPLAY=:0' >> ~/.bashrc
sudo sed -i "s$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$" /etc/dbus-1/session.conf
echo "${info}Downloading VcXsrv..."
if [[ -f $tpath_linux/vcxsrv.exe ]]; then
rm -r $tpath_linux/vcxsrv.exe
fi
wget -cO $tpath_linux/vcxsrv.exe http://downloads.sourceforge.net/project/vcxsrv/vcxsrv/1.19.2.0/vcxsrv-64.1.19.2.0.installer.exe
echo "${info}Setting VcXsrv to run at startup..."
powershell.exe "\$s=(New-Object -COM WScript.Shell).CreateShortcut('$apath_win\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\VcXsrv.lnk');\$s.TargetPath='\"$ppath_win\\VcXsrv\\vcxsrv.exe\"';\$s.Arguments=':0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl';\$s.Save();"
cd /mnt/c && powershell.exe "\$s=(New-Object -COM WScript.Shell).CreateShortcut('$apath_win\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\VcXsrv.lnk');\$s.TargetPath='\"$ppath_win\\VcXsrv\\vcxsrv.exe\"';\$s.Arguments=':0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl';\$s.Save();"
echo "${info}Start installer. After Installation, please restart to take effect."
cd /mnt/c && cmd.exe /k "start "$tpath_win\\VcXsrv.exe" && exit"
echo "${warn}DO NOT allow VcXsrv access to any of your networks if prompted."
echo -e "${warn}DO NOT allow VcXsrv access to any of your networks if prompted."
Add
else
echo "${error} No input or invalid input, aborting"
exit 20
Expand Down
1 change: 1 addition & 0 deletions wslu
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ wslu_version=1.0

## color
red=`tput setaf 1`
green=`tput setaf 2`
brown=`tput setaf 3`
blue=`tput setaf 4`
purple=`tput setaf 5`
Expand Down

0 comments on commit 5933788

Please sign in to comment.