Saturday, November 3, 2012

Install VMware View Client on Ubuntu 12.04



  •  Note :-

        VMware View Client for Linux does not support these features :-

            USB Redirection.

            Wyse-MMR.

            Local Mode Desktop.

  •  Open the /etc/apt/sources.list file using text editor.

        Uncomment these lines:-

        deb http://archive.canonical.com/ubuntu precise partner

        deb-src http://archive.canonical.com/ubuntu precise partner

  •  Run these commands in the terminal :-

        sudo apt-get update

        sudo apt-get install rdesktop

        sudo apt-get install vmware-view-client

        sudo apt-get install ia32-libs

Thursday, November 1, 2012

RemoteFX Installation on Windows 2008 R2 Server


  • Note :-
  • Windows 2008 R2 64 Bit Server is compulsory for server OS.
  • Its require GPU (Graphical Precessing Unit) on Server.
  • Description :-
  • One of the new feature added in Windows 2008 R2 Server's Remote Desktop Service which is called as RemoteFX.
  • In RemoteFX service Multimedia feature added compare to Terminal Service or Remote Desktop Service.
  • Like.. Video Redirection, Microphone Redirection, Audio Redirection, Printer Redirection, USB Redirection.
  •  Installation of RemoteFX Service :-
  • Insert your Windows 2008 R2 Server DVD Media in DVD ROM.
  • Go to Start => Programs => Administrative Tools => Server Manager.
  • Go to Roles and click on Add Roles.
  • Check mark on Remote Desktop Service and Click on Next.
  • Check Mark on following services :-
  • Remote Desktop Session Host.
  • Remote Desktop Virtualization Host.
  • Core Services.
  • RemoteFX.
  • Remote Desktop Licensing.
  • Tick mark on Do not require Network level Authentication.
  • Tick Mark on Per User.
  • Add Everyone User.
  • Check Mark on Following options.
  • Audio and video playback.
  • Audio recording redirection.
  • Desktop Composition.
  • Click on Install then reboot your server.
  • Remote Desktop Session host Configuration :-
  • Go to Start => Programs => Administrative Tools => Remote Desktop Services => Remote Desktop Session Host Configuration.
  • Right click 0n RDP-Tcp and clik on Properties.
  • Select Client Settings tab.
  • On Colour Depth check mark on Limit Maximum Colour Depth and select 32 bits per pixel.
  • Remove Check Mark from Redirection => Disable the followings :-
  • Drive.
  • Windows Printer.
  • LPT Port.
  • COM Port.
  • Clipboard.
  • Audio and video playback.
  • Audio recording.
  • Supported Plug and Play Devices.
  • Default to main client printer.
  • Then click on Apply and OK.
  • Group Policy Settings :-
  • Click on Start => Run and type gpedit.msc then press enter.
  • Click on Computer Configuration => Administrative Templates => Windows Components => Remote Desktop Services.
  • Click on Remote Desktop connection client :-
  • Go to RemoteFX USB Device Redirection.
  • Double click on Allow RDP redirection of other supported RemoteFX USB devices from this computer.
  • Tick Mark on Enabled then Click on Apply and OK.
  • Go to Remote Desk top Session Host.
  • Device and Resource Redirection :-
  • Enable "Allow audio and video playback redirection" policy.
  • Enable "Allow audio recording redirection" policy.
  • Enable "Limit audio playback quality" policy.
  • Disable "Do not allow clipboard redirection" policy.
  • Disable "Do not allow COM port redirection" policy.
  • Disable "Do not allow drive redirection" policy.
  • Disable "Do not allow LPT port redirection" policy.
  • Disable "Do not allow supported Plug and Play devices redirection" policy.
  • Disable "Do not allow smart card device redirection" policy.
  • Enable "Allow time zone redirection" policy.
  • Remote Session Environment :-
  • Enable "Limit maximum colour depth" policy and select 32 bits pixel.
  • Disable "Enforce Removal of Remote Desktop Wallpaper" policy.
  • Enable "Configure RemoteFX" policy.
  • Enable "Optimize visual experience when using RemoteFX" policy.
  • Enable "Optimize visual experience Remote Desktop services sessions" policy.
  • Enable " Allow desktop compositions for remote desktop sessions" policy.
  • Now reboot your server and connect from thin Client.

Thursday, September 27, 2012

VPN Server Configuration on Windows 2008 Server.


  • Note:-
  • We don't have required Active Directory for configuring VPN Server on Windows 2008.
  • Required two LAN Cads one for Internal & Internet & second for VPN network.
  • Static Public IP address required for Internet.
  • Basic Configuration:-
  • Give LAN-1 Local IP address (Like; 192.168.10.10), Subnet Mask (Like; 255.255.255.0) Gateway (Like; 192.168.10.1) and DNS (Like; 192.168.10.1)then check the Internet connection is proper working or not.
  • Give LAN-2 Different IP Address of your Network (Like; 192.168.100.10) & Subnet Mask (Like; 255.255.255.0).
  • Install Service:-
  • Insert Windows 2008 server CD on CD-ROM.
  • Go to Start => Programs => Administrative Tools => Server Manager.
  • Go to Roles and Click on Add Roles.
  • Tick mark on Network Policy and Access Services then click on Next.
  • Tick mark on Routing and Remote Access Services then Click on Next.
  • Click on Install, after installation click on Close.
  • VPN Server Configuration:-
  • Go to Start => Programs => administrative tools => Routing and Remote Access.
  • Right click on your server name and click on Configure and Enable Routing and Remote access.
  • Prompt for Routing and Remote Access Server Setup wizard click on Next.
  • Tick mark on Virtual Private Network (VPN) access ans NAT and click on next.
  • Select the network interface that connects this server to the Internet, I have selected LAN-1 because i have configured LAN-1 for Internet connection and click on Next.
  • Select From a specified range of addresses and click on Next.
  • Click on New for Address Range Assignment.
  • I have given LAN-2 IP Address is 192.168.100.10 so i am assigning Start IP address 192.168.100.100 & End IP address 192.168.100.200 for client then click on O.K. & Next.
  • Select No, use Routing and Remote Access to authenticate connection requests and click on Next.
  • Click On Finish.
  • Dial-up User Configuration:-
  • Right Click on My Computer and click on Manage.
  • Go to Configuration => Local Users and Groups and right click on users & click on Create User.
  • Create a user and give him password (I have created Mayur user).
  • Click on created User's properties and click on Dial-in.
  • Tick mark on Allow access on Remote Access Permissions and click O.K.
  • f you are using Router for Internet connection then forward your server IP address on DMZ port.

----: Now your VPN Server is ready for use :-----

VPN Server Configuraton on Windows 2003 Server


  • Note:-
    • We don't have required Active Directory for configuring VPN Server on Windows 2003.
    • Required two LAN Cads one for Internal & Internet & second for VPN network.
    • Static Public IP address required for Internet.
  • Basic Configuration:-
    • Give LAN-1 Local IP address (Like; 192.168.10.10), Subnet Mask (Like; 255.255.255.0) Gateway (Like; 192.168.10.1) and DNS (Like; 192.168.10.1)then check the internet connection is proper working or not. 
    • Give LAN-2 Different IP Address of your Network (Like; 192.168.100.10) & Subnet Mask (Like; 255.255.255.0).
  • Install Service:-
    • Go to Start => Settings => Control Panel and Open Add Remove Programs.
    • Insert Windows 2003 server CD on CD-ROM and click on Add Remove Windows Component.
    • Tick mark on Remote Installation Service (On Service Pack to Windows Deployment Service).
    • Click on next button finish it and reboot your Server.
  • VPN Server Configuration:-
    • Go to Start => Programs => administrative tools => Routing and Remote Access.
    • Right click on your server name and click on Configure and Enable Routing and Remote access.
    • Prompt for Routing and Remote Access Server Setup wizard click on Next.
    • Tick mark on Virtual Private Network (VPN) access ans NAT and click on next.
    • Select the network interface that connects this server to the Internet, I have selected LAN-1 because i have configured LAN-1 for Internet connection.
    • Remove tick mark from Enable security on the selected interface by Basic Firewall and click on Next.
    • Select From a specified range of addresses and click on Next.
    • Click on New for Address Range Assignment.
    • I have given LAN-2 IP Address is 192.168.100.10 so i am assigning Start IP address 192.168.100.100 & End IP address 192.168.100.200 for client then click on O.K. & Next.
    • Click on Enable basic name and address services and click on Next.
    • Select No, use Routing and Remote Access to authenticate connection requests and click on Next.
    • Click On Finish.
  • Dial-up User Configuration:-
    • Right Click on My Computer and click on Manage.
    • Go to Local Users and Groups and right click on users & click on Create.
    • Create a user and give him password (I have created Mayur user).
    • Click on created User's properties and click on Dial-in.
    • Tick mark on Allow access on Remote Access Permissions and click O.K.
    • f you are using Router for Internet connection then forward your server IP address on DMZ port.
       
----: Now your VPN Server is ready for use :-----

VPN Client Configuration on Windows XP


  • Note:-
    • Any type of Internet connection you can use.
    • Not required Static Public IP address.
  • Configuration of VPN Client:-
    • Give IP address, subnet mask, gateway and DNS on your XP machine and check that Internet connection is properly working or not.
    • Go to My Network Places Properties.
    • Click on Create on new connection on Network Tasks.
    • Select Connect to the network at my workplace and click on Next.
    • Select Virtual Private Network connection and click on Next.
    • Give Any connection name ( I am giving VPN) & click on Next.
    • Give real IP address of your VPN server ( Static Public IP ) and click on next & Finish.
    • Go to My Network Places properties.
    • Go to Virtual Private Network properties.
    • Go to Networking.
    • Select Internet protocol (TCP/IP) and Click on Advanced.
    • Remove Check mark from Use default gateway on remote network & click on O.K.
    • Double click on VPN Dial-up connection and give user name & password which you have created on server then dial.
  • Your VPN Client connection is configured successfully for testing it ping to your VPN Server.

How to recovery data in case of RAID 5

Precautions need to be followed before retrieving Data  :-

  1. Do not format the Hard disk.
  2. Minimum two Hard disk is required for recovery of data.
  3. Do not try to mount single Hard disk of RAID 5 on any Linux system.

Steps to recover data : -

1. Install mdadm package in normal Linux system.
2. Connect the two properly working (RAID 5)Hard disk to that machine.
3. Assemble raid device(hard disk) using the below given command

    mdadm -A -R /dev/md5 /dev/XXX /dev/XXX


Note :- Here XXX is the Harddisk Name(device name) for eg:- /dev/sda

How to Install acrobat reader in Ubuntu 64-bit machine

Downloaded .deb file from http://get.adobe.com/uk/reader/otherversions/

then executed the below command via terminal:
sudo dpkg -i --force-architecture AdbeRdr9.1.2-1_i386linux_enu.deb


the options "--force-architecture is important without that it will not allow to install that package on 64-bit m/c. 

How to Install VirtualBox on Ubuntu 10.10 Server Headless


  • Note:-
    • On Ubuntu server Graphical Interface is not available so we have to install it from command line.
    • Internet connection is compulsory recommended on Server.
    • VirtualBox is accessible from only Linux Desktop machine from your network.
    • VirtualBox is not accessible on server because it have no GUI.
  • Add one of the following line in /etc/apt/sources.list:-
    • deb http://download.virtualbox.org/virtualbox/debian maverick non-free
  • Add Oracle key by typing this command:-
    • wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
  • Update your server by typing this command:-
    • sudo apt-get update
  • Install VirtualBox by typing this command:-
    • sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-4.0 dkms
  • Install Open SSH Server on your Server by typing this command:-
    • sudo apt-get install openssh-server
  • For access VirtualBox from linux client type following command in terminal.
  • ssh -X root@Your-Server-IP VirtualBox

Samba Sharing problem in Ubuntu 10.10

Note:-
  • After installation of Samba and smbfs service some time nautilus sharing option is not working.
Error:-
  • Failed to execute child process "testparm" (No such file or directory).
Solution:-
  • Open terminal and type followincommands
  • sudo cp /usr/bin/testparm.samba3 /usr/bin/testparm
  • sudo cp /usr/bin/net.samba3 /usr/bin/net
  • sudo chmod +x /usr/bin/testparm /usr/bin/net

How to Install SAP-GUI in Ubuntu


  • Note:-
    • Sapgui for java requires sun-java6-jre package which is not available by default in ubuntu 11.10. This can be installed from ppa:
  • Open Terminal and Type Followin Commands:-
    • sudo add-apt-repository ppa:ferramroberto/java
    •  sudo apt-get update
    • sudo apt-get install sun-java6-jre
  • Download SAP-GUI JAVA from following Link:-
  • To install SAP gui for java run:-
    • Open Terminal and type following commands
    • cd  /home/[user_home]/
    •  java -jar PlatinGUI720Linux_7-10008929.JAR
  • And to run JAVA GUI logon:-
  • env PLATIN_JAVA=/usr/lib/jvm/java-6-sun/bin/java /home/[user_home]/SAPClients/SAPGUI/bin/guilogon
  • Login SAP GUI go to Application => Other => SAP GUI.

How to Change Time Zone on Ubuntu Server


  • Type Following Command & press Enter :-
  • sudo dpkg-reconfigure tzdata
  • And Select your Time Zone which you want.
  • Type date & press enter for see your Time Zone.

How to Manually Install HP 1020 Printer on Ubuntu


  • sudo apt-get install build-essential
  • wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
  • tar -zxvf foo2zjs.tar.gz
  • cd foo2zjs
  • sudo make uninstall
  • make
  • ./getweb 1020
  • sudo make install install-hotplug cups
  • Re-install the printer from System >> Administration >> Printing
  • Then Check your printer is working or not.

Install Canon LBP 2900 printer on Ubuntu


Step 1:

Go to the following web page and download the Driver.tar.gz:

Step 2:

Extract Driver.tar.gz either by right-clicking on the file and selecting "Extract Here", or in the Terminal in the directory you downloaded it into and entering the following command:

$ tar -xvf Driver.tar.gz

This should create a new directory called Driver which contains two files: cndrvcups-capt-1.30-1.i386.rpm and cndrvcups-common-1.30-1.i386.rpm.

Note that the latest version of the drivers contain .deb packages, which you can use instead of the above procedure to convert RPMs. These rpms need to be converted into debs so that we can install them, and to do that we need to install alien. You can do that with Synaptic (System > Administration > Synaptic) or in the Terminal:

$ sudo aptitude install alien

Then, you convert the files using alien in the Terminal:

$ sudo alien -c cndrvcups-capt-1.30-1.i386.rpm
$ sudo alien -c cndrvcups-common-1.30-1.i386.rpm

Install the debs you have just created by double clicking on the files or using the Terminal:

$ sudo dpkg -i cndrvcups-common_1.30-2_i386.deb cndrvcups-capt_1.30-2_i386.deb

Step 3:

In order to load the new drivers we have installed we need to stop and restart CUPS. Firstly we stop CUPS:

$ sudo /etc/init.d/cupsys stop

Note: if youre using ubuntu 8.10 & dont have this file in this path, just run:

$ sudo /etc/init.d/cups stop

Check that it is stopped. All the times I have done this, CUPS had stopped first time but apparently this may not always be the case due to the installation of ccp:

$ sudo ps ax | grep cupsd

Which will give you something like this:

cupsys   24897  0.0  0.1   4336  1976 ?        SNs  07:35   0:04 /usr/sbin/cupsd
username 24738  0.0  0.0   2896   836 pts/0    S+   21:21   0:00 grep cupsd

If you only get a line that ends with "grep cupsd" CUPS has stopped and you can carry on. If you also get a line that ends with "/usr/sbin/cupsd", as shown above, CUPS has not stopped and you will have to try the following method to stop it:

$ sudo killall -9 cupsd

The aliened debs are not perfect so we have to do some of their the work for them. Create two directories:

$ sudo mkdir /var/ccpd
$ sudo mkdir /var/captmon

And a fifo:

$ sudo mkfifo /var/ccpd/fifo0

Make fifo0 accessable to everyone:

$ sudo chmod 777 /var/ccpd/fifo0

In Ubuntu Edgy and Feisty, change the owner of fifo0 into root (failing to do so gives you an error: Unable to copy PPD file in step 4):

$ sudo chown root /var/ccpd/fifo0

You may need to make the permissions of the /usr/share/cups/model directory more permissive.

$ sudo chmod -R a+rX /usr/share/cups/model

Once you have done this, start CUPS again:

$ sudo /etc/init.d/cupsys start

Step 4:

Register the printer driver with the print spooler with the following command, replacing [printer model] with your printer model and [printer driver file] with your driver file:

$ sudo /usr/sbin/lpadmin -p [printer model] -m [printer driver file] -v ccp:/var/ccpd/fifo0 -E

For example, the command for the Canon LBP 2900 would be:

$ sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

Note: If you get the error lpadmin: Unable to copy PPD file!, try substituting -P for -m above.
If you are unsure of what your driver file is called you can get a list of the available drivers:

$ ls /usr/share/cups/model/ | grep CNCUPS

Look for the one that matches your model number. Some of them end with "K.ppd" and some end with "J.ppd". I have no idea what difference is, the K ones have worked fine for me so far.

Added 2007-12-09: under Ubuntu 7.10, the K ones constantly use about 75% CPU, while the J ones don't. I did not find any problems with the J file so far.

Ubuntu Edgy and Feisty are searching the driver in /usr/share/ppd/ so I created a link:

$ cd /usr/share/ppd/
$ sudo ln -s /usr/share/cups/model/CNCUPSLBP2900CAPTK.ppd

Once registered your printer should appear in the System > Administration > Printing dialog. For 8.10 users: first be sure to delete old printer which was "installed" before the driver installation.

Register the printer with ccpd daemon, once again replace [printer model] with your printer model:

$ sudo /usr/sbin/ccpdadmin -p [printer model] -o /dev/usb/lp0

For example, the command for the Canon LBP 2900 would be:

$ sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0

Step 5:

Replace /etc/init.d/ccpd with the script below (originally taken from http://rdoursenaud.free.fr/debian/capt.html):

#
# ccpd          startup script for Canon Printer Daemon for CUPS
#
#               Modified for Debian GNU/Linux
#               by Raphael Doursenaud <rdoursenaud@free.fr>
#               and Markovtsev Vadim  <markhor@mail.ru>

DAEMON=/usr/sbin/ccpd
LOCKFILE=/var/lock/subsys/ccpd
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=ccpd
DESC="Canon Printer Daemon for CUPS"

test -f $DAEMON || exit 0

. /lib/lsb/init-functions

case $1 in
  start)
        log_begin_msg "Starting $DESC: $NAME"
        start-stop-daemon --start --quiet --exec $DAEMON
        log_end_msg $?
        ;;
  stop)
        log_begin_msg "Stopping $DESC: $NAME"
        start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
        log_end_msg $?
        ;;
  status)
        echo "$DESC: $NAME:" `pidof $NAME`
        ;;
  restart)
        log_begin_msg "Restarting $DESC: $NAME"
        start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
        sleep 1
        start-stop-daemon --start --quiet --exec $DAEMON
        log_end_msg $?
        ;;
  *)
        echo "Usage: ccpd {start|stop|restart|status}"
        exit 1
        ;;
esac

exit 0

Copy and paste the above script into a new text file, then backup and replace the old version:

$ sudo mv /etc/init.d/ccpd ccpdold
$ sudo cp [text file you created] /etc/init.d/ccpd

Give everyone execution rights to the new file:

$ sudo chmod a+x /etc/init.d/ccpd

Step 6:

Start the ccpd daemon:

$ sudo /etc/init.d/ccpd start

Step 7:

Set ccpd to start when you startup your computer (must be greater than CUPS runlevel):

$ sudo update-rc.d ccpd defaults 60

Step 8:

Switch off the printer and reboot your computer. Once you have logged in, switch on the printer again.

Step 9:

Test your installation.

First test:

$ sudo ccpdadmin

Which should output this:


Usage:
  ccpdadmin [-p Printer-name -o Printer-dev-path]
  ccpdadmin [-x Remove-Printer-name]


 CUPS_ConfigPath = /etc/cups/
 LOG Path        = None
 UI Port         = 39787

 Entry Num  : Spooler   : Backend       : FIFO path             : Device Path  : Status
 ----------------------------------------------------------------------------
     [0]    : LBP2900   : ccp           : /var/ccpd/fifo0       : /dev/usblp0  :

Second test, replace [printer model] with your printer model

$ captstatusui -P [printer model]

For example, the command for the Canon LBP 2900 would be:

$ captstatusui -P LBP2900

This will launch a window that after a bit should say "ready to print".
Finally open a file and try to print it.