Month: November 2016
openstack tutorials roundup
APT how to
A nice how to for apt
E-Mail Server für Einsteiger
Ich bin gerade über das tolle Github Projekt gestolpert!
https://github.com/mail-in-a-box/mailinabox
xlib extension xinputextension missing on display 10.0
What can you do for this issue?
https://www.bountysource.com/issues/31271515-vs-code-not-working-on-ubuntu-when-connected-using-xrdp
make a backup of this file
do this as root
- sed -i ‘s/BIG-REQUESTS/_IG-REQUESTS/’ /usr/lib/x86_64-linux-gnu/libxcb.so.1
MS SQL Server Install under Linux
Now you can install a MS SQL Server under Linux.
More here
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup
Following these Steps
Import GPG Keys
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add –
Add MS SQL Server to your Repository
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list > /etc/apt/sources.list.d/mssql-server.list
Install MS SQL Server, Attention your Machine needs 4 GB of RAM
apt-get update
apt-get install mssql-server
Installation is aborted, when you have less than 4 GB in your System
After Upgrading my Machine with more RAM, the installation is up and running
Start your MS SQL Server under Linux
/opt/mssql/bin/sqlservr-setup
You must accept the MS License….
Type your Password your your SA User Account
After this your MS SQL Server is up and running under Linux
Check if the MS SQL Server is running under Linux
systemctl status mssql-server
You are looking for Logfiles, you must look in /var/log/syslog for more Information about your MS SQL Server.
Install MS SQL CLI Tools
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools#ubuntu
nginx could not build the variables_hash
# nginx -t
nginx: [emerg] could not build the variables_hash, you should increase either variables_hash_max_size: 512 or variables_hash_bucket_size: 64
nginx: configuration file /etc/nginx/nginx.conf test failed
add to your nginx.conf following entry
variables_hash_max_size 1024;
found here
Linux Server Web Access RDP
Install following packages under Ubuntu 14.04
apt-get install libssh2-1-dev libpango1.0-dev libossp-uuid-dev libcairo2-dev libpng12-dev freerdp-x11 libssh2-1 libvncserver-dev libfreerdp-dev libvorbis-dev libssh-dev libpulse-dev ghostscript libjpeg62-dev libwebp-dev xrdp
Download the tar ball
# wget http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.9.tar.gz # tar zxf guacamole-server-0.9.9.tar.gz
Copy the WAR File to your Tomcat
cp guacamole-0.9.9.war /tomcat/webapps/guacamole.war
Compile the software
cd guacamole-server-0.9.9 ./configure --with-init-dir=/etc/init.d
with this options you have a init script to boot on startup
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating src/common/Makefile
config.status: creating src/common-ssh/Makefile
config.status: creating src/terminal/Makefile
config.status: creating src/libguac/Makefile
config.status: creating src/guacd/Makefile
config.status: creating src/protocols/rdp/Makefile
config.status: creating src/protocols/ssh/Makefile
config.status: creating src/protocols/telnet/Makefile
config.status: creating src/protocols/vnc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands————————————————
guacamole-server version 0.9.9
————————————————Library status:
freerdp …………. yes
pango …………… yes
libssh2 …………. yes
libssl ………….. yes
libtelnet ……….. no
libVNCServer …….. no
libvorbis ……….. yes
libpulse ………… yes
libwebp …………. yesProtocol support:
RDP ……. yes
SSH ……. yes
Telnet …. no
VNC ……. noInit scripts: /etc/init.d
Type “make” to compile guacamole-server.
make and make install
Libraries have been installed in:
/usr/local/libIf you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR’
flag during linking and do at least one of the following:
– add LIBDIR to the `LD_LIBRARY_PATH’ environment variable
during execution
– add LIBDIR to the `LD_RUN_PATH’ environment variable
during linking
– use the `-Wl,-rpath -Wl,LIBDIR’ linker flag
– have your system administrator add LIBDIR to `/etc/ld.so.conf’See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
———————————————————————-
make[2]: Nothing to be done for `install-data-am’.
make[2]: Leaving directory `/opt/guacamole-server-0.9.9/src/protocols/ssh’
make[1]: Leaving directory `/opt/guacamole-server-0.9.9/src/protocols/ssh’
make[1]: Entering directory `/opt/guacamole-server-0.9.9′
make[2]: Entering directory `/opt/guacamole-server-0.9.9′
make[2]: Nothing to be done for `install-exec-am’.
make[2]: Nothing to be done for `install-data-am’.
make[2]: Leaving directory `/opt/guacamole-server-0.9.9′
make[1]: Leaving directory `/opt/guacamole-server-0.9.9′
update caches
ldconfig
add to autostart at boot
update-rc.d guacd defaults
Now Configure your Tomcat
Set Guacamole Home Directory in your setenv.sh from Tomcat
export GUACAMOLE_HOME=/home/guacamole/
Edit your User Mapping
/home/guacamole/etc/user-mapping.xml
<user-mapping>
<authorize
username=”remote”
password=”1234″
encoding=”md5″>
<connection name=”RDP Jmeter”>
<protocol>rdp</protocol>
<param name=”hostname”>10.241.19.58</param>
<param name=”port”>3389</param>
</connection>
</authorize>
</user-mapping>
Configure your Guacamole.properties
guacd-hostname: localhost
guacd-port: 4822
user-mapping: /home/guacamole/etc/user-mapping.xml
auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider
basic-user-mapping: /home/guacamole/etc/user-mapping.xml
enable-clipboard-integration: true
Modify your /etc/rrdp/xrdp.ini to Connect to the same session everytime
[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=
127.0
.
0.1
port=
5910
Reconnect for XRDP
XRDP Install
More Links that i used for my installation
http://blog.sjas.de/posts/guacamole-home-folder-location.html
AWS S3 Sync Buckets
How to Sync Buckets in AWS S3, you need AWS CLI install
aws s3 sync s3://mysourcebucket s3://mytargetbucket
S3 Bucket Policy Allow download from Files for all
{
"Version"
:
"2012-10-17"
,
"Statement"
: [
{
"Sid"
:
"AddPerm"
,
"Effect"
:
"Allow"
,
"Principal"
:
"*"
,
"Action"
:
"s3:GetObject"
,
"Resource"
:
"arn:aws:s3:::mydownloads/*"
}
]
}