Skip to content

Commit

Permalink
debian9 check [ ! -f FILE ];
Browse files Browse the repository at this point in the history
  • Loading branch information
akrisiun committed Dec 8, 2019
1 parent 70e60e3 commit 3625cab
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ win10_64/Choco/chocolateyInstall/
F*.vsix
*.deb
*.deb.*

**/
2 changes: 1 addition & 1 deletion .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ bind -n M-Down select-pane -D

setw -g monitor-activity on
set -g visual-activity on
set-window-option -g window-status-current-bg yellow

# set-window-option -g window-status-current-bg yellow
# set-option -g mouse-select-pane on
30 changes: 13 additions & 17 deletions debian9/XFCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ sudo apt-get update
sudo apt-get install -y libgtk-3-0
sudo apt-get install -y xfce4 xfce4-goodies tightvncserver -y
dpkg-reconfigure x11-common
#/etc/X11/Xwrapper.config –
#
#This file has as setting called “allowed_users”.
# =======
sudo apt-get install -y x11-apps
sudo apt-get install -y xvfb x11vnc xdotool wget tar supervisor net-tools
sudo apt-get install -y xauth xorg net-tools x11-apps dnsutils
# /etc/X11/Xwrapper.config – This file has as setting called “allowed_users”.
# /etc/X11/Xwrapper.config – This file has as setting called “allowed_users”.
sudo dpkg-reconfigure x11-common
sudo /etc/init.d/x11-common restart
Expand All @@ -17,33 +23,23 @@ sudo /etc/init.d/x11-common restart
vncserver -geometry 1550x850 :2
#test
xcalc
```

## /etc/X11/Xwrapper.config

This file has as setting called `allowed_users`
It can accept three values:

1. root
2. anybody
3. console

The above values are self explanatory. You can edit this value to set as anybody for normal user to start X server. If normal user starts X server from console, console can also be set. It can be like this.
```
# This file has as setting called `allowed_users`
allowed_users=anybody
In Debian and its derivatives like Ubuntu, you can run the following command to do it in user friendly screen as shown below.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

```
ssh-keygen -R {server.name.com}
sudo service --status-all | less
```

OSX:
## OSX:

```
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
chflags nohidden ~/Library
Expand All @@ -58,7 +54,7 @@ export LC_ALL=C.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
# sudo dpkg --add-architecture i386
# dpkg --add-architecture i386
sudo apt-get update
sudo apt-get -y install xvfb x11vnc xdotool wget tar supervisor net-tools
#wine32-development fluxbox
Expand Down
6 changes: 5 additions & 1 deletion debian9/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ sudo chown andriusk /usr/local/bin
# chmod +x /usr/local/bin/http-server
# http-server . -p 9099

ln -s ~/bin/http /usr/local/bin/http
# if [ -f "$FILE" ]; then
if not [ ! -f /usr/local/bin/http ]; then
ln -s ~/bin/http /usr/local/bin/http
fi

chmod +x /usr/local/bin/http
# http -p 3001
# ssh -L 3000:localhost:3000 $ip sleep 1d &
Expand Down
6 changes: 3 additions & 3 deletions dotc/dotc-b.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

write-host c:\bin\dotc\dotnet.exe msbuild /t:build /p:GenerateFullPaths=true $args -ForegroundColor Green

c:\bin\dotc\dotnet.exe msbuild /t:build /p:GenerateFullPaths=true $args
write-host c:\bin\dotc\dotnet.exe msbuild /t:build /p:GenerateFullPaths=true $args -ForegroundColor Green

c:\bin\dotc\dotnet.exe msbuild /t:build /p:GenerateFullPaths=true $args
6 changes: 3 additions & 3 deletions dotc/dotnet-iis.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo on

c:\bin\dotc\dotnet.exe "%~dp0/dotnet-iis.dll" %*
@echo on

c:\bin\dotc\dotnet.exe "%~dp0/dotnet-iis.dll" %*
@REM # dotnet exec "%~dp0/dotnet-iis.dll" %*
15 changes: 14 additions & 1 deletion win10_64/wexec/WExec.exe.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@
<configuration>

<connectionStrings configSource="sql.config" />
<!--
<connectionStrings>
<clear/>
<add name="Default" connectionString="Data Source=.\SQLEXPRESS;
Initial Catalog=SNTXDB;Persist Security Info=True;Integrated Security=true;
Connect Timeout=5;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
providerName="System.Data.SqlClient"/>
<add name="DefaultV11" connectionString="Data Source=(localdb)\v11.0;
Initial Catalog=SNTXDB;Persist Security Info=True;Integrated Security=true;
Connect Timeout=10;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
providerName="System.Data.SqlClient" />
</connectionStrings> -->

<appSettings>
<add key="nosql.vm" value="1" />
<add key="nosql.local" value="0" />
<add key="commandTimeout" value="1800" />

<add key="cmd"
value="declare @db varchar(max) = DB_NAME(); exec sp_helpdb @db;
select * from sys.tables order by create_date desc"
Expand Down

0 comments on commit 3625cab

Please sign in to comment.