Home
How To RDP from Windows to your Ubuntu Desktop
- Details
This is such a nice feature to be able to login to my ubuntu desktop via Windows RDP.
You will need to get on your Ubuntu desktop
open terminal
type: sudo apt-get install xrdp
accept the install by hitting y
if you don't know the IP address of your Ubuntu box do the following:
type: ifconfig
hint: its not the 127.0.0.1
Since your on your Ubuntu desktop there is one more thing you will want to do other wise you might go a little nuts every time you hit the "d" key
Go to : System -> Preferences -> Keyboard Shortcuts
You will see an entry toward the bottom "hide all normal windows and show the desktop" bound to D
Click the D with your mouse and then click [alt]d
this will updater the shortcut.
Back to windows:
A few things you can do to start a remote desktop session:
Start RDP:
Click: start-> All programs - > Accessories -> Remote desktop connection
or go to run and type mstsc
or go to run and type mstsc /v:i[ip address from above]
You will get a log in prompt.
Leave the module as default (should be "sesman-Xvnc")
use the same user and password you'd use for Ubuntu Desktop.
Pro Tip:
if you want a permanent desktop shortcut to open to your Ubuntu. Make a short cut from the Accessories by dragging to the desktop with right mouse button.
then right click and edit and add the /v:[ipaddress]
example: Target: %systemroot%\system32\mstsc.exe /v:192.168.1.17
That is it, enjoy.
Fix packages on Ubuntu
- Details
Below is a .sh script for fixing packages on Ubuntu.
This is the bash script I used to fix the package for Zimbra when installing on Ubuntu 12.x
use:
$ ./fixpkg.sh foldernameAbovePackageDir
#!/bin/bash
P=$1
for PKG in `ls -1 $P/packages/*deb`
do
echo "Fixing $PKG"
rm -rf fixZ
mkdir fixZ
cd fixZ
mkdir tmp
dpkg-deb -x ../$PKG tmp
dpkg-deb -e ../$PKG
sed -i -e "s/_/./g" DEBIAN/control
mv ../$PKG ../$PKG.old
dpkg-deb --build . ../$PKG
cd ..
done
Wordpress
- Details
requestValidationMode
- Details
In websites that use aspx there can be an issue when you try to post data from a form nothing happens.
If you see in the URL after the post: A+potentially+dangerous+Request.Form+value+was+detected+from+the+client
Do the following to fix it
in the web.config find the node httpRuntime in my case this is what it looked like:
Now add requestValidationMode="2.0" attribute
Page 20 of 40