Anda di halaman 1dari 6

Installing XRDP on Ubuntu 13.

04
Install needed Packages #apt-get install vnc4server autoconf automake libtool libssl-dev libpam0g-dev libx11-dev libxfixes-dev git gcc Download and install the updated version o XRDP #cd /tmp #git clone https://github.com/charlesvg/xrdp.git #mv xrdp /usr/lib/xrdp-v0.7-obasi #cd /usr/lib/xrdp-v0.7-obasi !ow to install updated version o XRDP #./bootstrap #./configure #make #make install "enerate custo# rsake$s.ini #/usr/local/bin/xrdp-ke gen xrdp auto %on igure session #anager #nano !" /etc/xrdp/sesman.ini #dit the line to $llo"%oot&ogin'0 $ssign(ession) *sername'1 &etup Users "roups #/usr/sbin/groupadd tsusers #/usr/sbin/groupadd tsadmins 'dit "roups ile #nano -" /etc/group #dit the follo"ing lines to look like this. tsusers:x:+01:,-*%*(#%.$/# tsadmins:x:+00:root !ow to setup (!% Password or the user that $ou want to use XRDP &ervices #su ,-*%*(#%.$/# #vncpass"d 1nsert our pass"ord t"ice #exit 2o return root user &tart vnc4server #su ,-*%*(#%.$/# #vnc4server -geometr 300x400 #killall 5vnc4 #nano -" 6/vnc/xstartup

/ake the file look like this: #7/bin/sh # *ncomment the follo"ing t"o lines for normal desktop: unset (#((1-.8/$.$9#% # exec /etc/511/xinit/xinitrc : -x /etc/vnc/xstartup ; << exec /etc/vnc/xstartup : -r =>-/#/.5resources ; << xrdb =>-/#/.5resources xsetroot -solid gre vncconfig -iconic < #x-terminal-emulator -geometr 30x04?10?10 -ls -title @=A.BC#(D2-E Cesktop@ < #x-"indo"-manager < startxfce4 < &tarting ) ce session with X * +i) gra$ screen issue #echo Fxfce4-sessionG H /home/,-*%*(#%.$/#/.xsession Re#ove displa$ environ#ent variables #cat /home/,-*%*(#%.$/#/.bashrc /ake sure there is no C1(E&$, environment variable defined #cat /home/,-*%*(#%.$/#/.bash8profile /ake sure there is no C1(E&$, environment variable defined !ow to hook XRDP and vnc4server to the rc.local ile #nano -" /etc/rc.local $dd the follo"ing to the end of the file /etc/xrdp/xrdp.sh start su ,-*%*(#%.$/# -c Fvnc4server -geometr 300x400 -depth 14G %op$ ke$board settings cp /usr/lib44/xrdp-v0.7-obasi/instfiles/km-031I.ini /etc/xrdp/ Re#ove all #odes ro# ,etc,)rdp,)rdp.ini e)cept )vnc... -urn on the services #/sbin/chkconfig vncserver on #/etc/xrdp/xrdp.sh start -urn o ter#inal bell

Installing XRDP on %entos .


&top !X #/sbin/chkconfig freenx-server off #/etc/init.d/freenx-server stop Install,Update 'P'/ 0 RP1 orge #cd /tmp #"get http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.+.I-1.el+.rf.x34844.rpm #rpm -*vh rpmforge-release-0.+.I-1.el+.rf.x34844.rpm #rm -f rpmforge-release-0.+.I-1.el+.rf.x34844.rpm #rpm -*vh http://dl.fedoraproJect.org/pub/epel/+/x34844/epel-release-+-4.noarch.rpm Install needed Packages # um install - vnc-server autoconf automake libtool openssl-devel pam-devel lib511-devel lib5fixes-devel git gcc Download and install the updated version o XRDP #cd /tmp #git clone https://github.com/charlesvg/xrdp.git #mv xrdp /usr/lib44/xrdp-v0.7-obasi #cd /usr/lib44/xrdp-v0.7-obasi !ow to install updated version o XRDP #./bootstrap #./configure #make #make install "enerate custo# rsake$s.ini #/usr/local/bin/xrdp-ke gen xrdp auto %on igure session #anager #nano !" /etc/xrdp/sesman.ini #dit the line to $llo"%oot&ogin'0 $ssign(ession) *sername'1 &etup Users "roups #/usr/sbin/groupadd tsusers #/usr/sbin/groupadd tsadmins 'dit "roups ile #nano -" /etc/group #dit the follo"ing lines to look like this. tsusers:x:+01:,-*%*(#%.$/# tsadmins:x:+00:root

!ow to setup (!% Password or the user that $ou want to use XRDP &ervices #su ,-*%*(#%.$/# #vncpass"d 1nsert our pass"ord t"ice #exit 2o return root user 'dit the (!% &erver #nano -" /etc/s sconfig/vncservers 1nsert at the end of file A.B(#%A#%('@1:,-*%*(#%.$/#@ A.B(#%A#%$%9(:1;'@-geometr 1004x743 -depth 14@ Run (!% server to create )startup script #/sbin/service vncserver start 1odi $ )startup script to run a ull blown desktop in (!% &erver #nano -" /home/,-*%*(#%.$/#/.vnc/xstartup *ncomment follo"ing lines: # unset (#((1-.8/$.$9#% # exec /etc/511/xinit/xinitrc Re#ove displa$ environ#ent variables #cat /home/,-*%*(#%.$/#/.bashrc /ake sure there is no C1(E&$, environment variable defined #cat /home/,-*%*(#%.$/#/.bash8profile /ake sure there is no C1(E&$, environment variable defined #/sbin/service vncserver restart !ow to hook XRDP &erver to the rc.local ile #nano -" /etc/rc.local $dd the follo"ing to the end of the file /etc/xrdp/xrdp.sh start %op$ ke$board settings cp /usr/lib44/xrdp-v0.7-obasi/instfiles/km-031I.ini /etc/xrdp/ Re#ove all #odes ro# ,etc,)rdp,)rdp.ini e)cept )vnc... -urn on the services #/sbin/chkconfig vncserver on #/etc/xrdp/xrdp.sh start -urn o ter#inal bell I on an 2racle +usion 3&4 edit r#)#l5 .sh 6nano -" /home/,-*%*(#%.$/#/-racle//iddle"are/asinst81/bin/frmxml0f.sh $dd a ne" line at the top Kafter #7/bin/bashL "ith the contents: export C1(E&$,':1.0

Installing XRDP on %entos 7


&top !X 8probabl$ not installed on %entos 79 #/sbin/chkconfig freenx-server off #/etc/init.d/freenx-server stop Install,Update 'P'/ 0 RP1 orge #rpm -*vh http://packages.s".be/rpmforge-release/rpmforge-release-0.+.00.el4.rf.x34844.rpm #rpm -*vh http://dl.fedoraproJect.org/pub/epel/4/x34844/epel-release-4-3.noarch.rpm Install needed Packages # um install - tigervnc-server autoconf automake libtool openssl-devel pam-devel lib511devel lib5fixes-devel git gcc Download and install the updated version o XRDP #cd /tmp #git clone https://github.com/charlesvg/xrdp.git #mv xrdp /usr/lib44/xrdp-v0.7-obasi #cd /usr/lib44/xrdp-v0.7-obasi !ow to install updated version o XRDP #./bootstrap #./configure #make #make install "enerate custo# rsake$s.ini #/usr/local/bin/xrdp-ke gen xrdp auto %on igure session #anager #nano !" /etc/xrdp/sesman.ini #dit the line to $llo"%oot&ogin'0 $ssign(ession) *sername'1 &etup Users "roups #/usr/sbin/groupadd tsusers #/usr/sbin/groupadd tsadmins 'dit "roups ile #nano -" /etc/group

#dit the follo"ing lines to look like this. tsusers:x:+01:,-*%*(#%.$/# tsadmins:x:+00:root !ow to setup (!% Password or the user that $ou want to use XRDP &ervices #su ,-*%*(#%.$/# #vncpass"d 1nsert our pass"ord t"ice #exit 2o return root user 'dit the (!% &erver #nano -" /etc/s sconfig/vncservers 1nsert at the end of file A.B(#%A#%('@1:,-*%*(#%.$/#@ A.B(#%A#%$%9(:1;'@-geometr 1004x743 -depth 14@ Run (!% server to create )startup script #/sbin/service vncserver start Re#ove displa$ environ#ent variables #cat /home/,-*%*(#%.$/#/.bashrc /ake sure there is no C1(E&$, environment variable defined #cat /home/,-*%*(#%.$/#/.bash8profile /ake sure there is no C1(E&$, environment variable defined #/sbin/service vncserver restart !ow to hook XRDP &erver to the rc.local ile #nano -" /etc/rc.local $dd the follo"ing to the end of the file /etc/xrdp/xrdp.sh start %op$ ke$board settings cp /usr/lib44/xrdp-v0.7-obasi/instfiles/km-031I.ini /etc/xrdp/ Re#ove all )rdp #odes ro# ,etc,)rdp,)rdp.ini e)cept )rdp5 and rena#e )rdp5 to )rdp1 -urn on the services #/sbin/chkconfig vncserver on #/etc/xrdp/xrdp.sh start -urn o ter#inal bell I on an 2racle +usion 3&4 edit r#)#l5 .sh 6nano -" /home/,-*%*(#%.$/#/-racle//iddle"are/asinst81/bin/frmxml0f.sh $dd a ne" line at the top Kafter #7/bin/bashL "ith the contents: export C1(E&$,':1.0

Anda mungkin juga menyukai