Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, 9 March 2015

How to Connect windows remote desktop on Linux  using ‘rdesktop’

_______________________________________________________________________________________

Are you using Linux and trying to connect your Windows server or desktop ? Then this tool is very helpful for you.

rdesktop is a client for Remote Desktop Protocol (RDP) which is very handy for making remote connections to windows machine while you are working on Linux and it is available on UNIX and Linux based systems.

rdesktop is commonly used to connect Microsoft based operation systems including

-Windows 2000 Terminal Server
-Windows XP Professional
-Windows Server 2003
-Windows Server 2008 & R2
-Windows Vista

-Windows 7, Windows 8


Installation of rdesktop on RHEL/Centos 6.x

Step-1 installation using ‘yum install’ command.


yum install rdesktop

Step-2 connect your windows ‘RDP’ via rdesktop from linux machine.

#rdesktop 192.168.0.204 

        OR

#rdesktop -g 80% -u admin 192.168.0.204

rdesktop flags

-g ( remote windows display resolution ) as i set 80% of my current windows size
-u ( username of targeted remote pc for authentications ) in my case it is ‘h.ali’
-f ( for full screen display of remote pc )

Connecting to windows.






------------------------------------------------------------------------------------------------------------------------


Offline method

rdesktop Setup Installation, Configuration and Usage on linux


Download rdesktop:

Download the compressed  rdesktop -1.1.0.tar.gz from


http://prdownloads.sourceforge.net/rdesktop/rdesktop-1.1.0.tar.gz


Or


#yum –y install rdesktop (for internet download)


Configure and Install rdesktop

Uncompress the downloaded file by typing "tar -xzvf rdesktop-1.1.0.tar.gz" (no quotes).
After extraction, change in to the newly extracted directory by entering "cd rdesktop-1.1.0" (no quotes). Then, enter "./configure" (again, no quotes) to set up the installation.
Next, we'll compile the software. To acomplish this, enter "make" and press return - the compiler will spew it's usual gibberish at you - this is valuable to a programmer, but beyond the scope of this document. Only be worried if you see an error.
Okay, so it compiled - to install rdesktop on your system, type "make install" (no quotes - do you see a pattern?) and it'll do it's thing. 
Test It
This test assumes that you have a running terminal server on your network. To test the functionality of your newly installed software, type ./rdesktop "server", where "server" is the terminal server's hostname or IP address. The software should open a client session with your Terminal Server.

rdesktop Command Options

The following are available options for use with rdesktop:
Usage: ./rdesktop [options] server
-u: user name
-d: domain
-s: shell
-c: working directory
-p: password (autologin)
-n: client hostname
-k: keyboard layout (hex)
-g: desktop geometry (WxH)
-f: full-screen mode
-b: force bitmap updates
-e: disable encryption (French TS)
-m: do not sendmotion events
-l: do not request license






Windows Remote Desktop on Linux

Read More

Thursday, 5 March 2015

How do I change my password in Linux

  _____________________________________________



  • 1
    Open your SSH client.
  • 2
    Log into your shell account, providing your username and current password.


  • Read more : http://www.ehow.com/how_6006527_change-root-password-ssh.html

  • 1
    Open your SSH client.
  • 2
    Log into your shell account, providing your username and current password.


  • Read more : http://www.ehow.com/how_6006527_change-root-password-ssh.html
    To change the password of your account.
    Command: passwd

    To change password of any account when login as root

    Command: passwd (account name like:root)

    To change password of a group

    Command: passwd -g (group name)


    How do I change root password in Ubuntu?

    ______________________________________________

    To set or change your (root) password:
     sudo -i passwd
     
    To lock it again
     sudo passwd -dl root

     

    Instructions


      • 1
        Open your SSH client.
      • 2
        Log into your shell account, providing your username and current password.
      • 3
        Type "passwd" (do not include quotation marks) and press the "Enter" key.
      • 4
        Type your current password and press "Enter."
      • 5
        Type your new password and press "Enter."
      • 6
        Type your new password again to confirm it, and then press "Enter." Your root password has been successfully changed through SSH.


    Read more : http://www.ehow.com/how_6006527_change-root-password-ssh.html

      • Log into your shell account, providing your username and current password.
      • 3
        Type "passwd" (do not include quotation marks) and press the "Enter" key.
      • 4
        Type your current password and press "Enter."
      • 5
        Type your new password and press "Enter."
      • 6
        Type your new password again to confirm it, and then press "Enter." Your root password has been successfully changed through SSH.


    Read more : http://www.ehow.com/how_6006527_change-root-password-ssh.html

    Instructions


      • 1
        Open your SSH client.
      • 2
        Log into your shell account, providing your username and current password.
      • 3
        Type "passwd" (do not include quotation marks) and press the "Enter" key.
      • 4
        Type your current password and press "Enter."
      • 5
        Type your new password and press "Enter."
      • 6
        Type your new password again to confirm it, and then press "Enter." Your root password has been successfully changed through SSH.


    Read more : http://www.ehow.com/how_6006527_change-root-password-ssh.html

    Instructions


      • 1
        Open your SSH client.
      • 2
        Log into your shell account, providing your username and current password.
      • 3
        Type "passwd" (do not include quotation marks) and press the "Enter" key.
      • 4
        Type your current password and press "Enter."
      • 5
        Type your new password and press "Enter."
      • 6
        Type your new password again to confirm it, and then press "Enter." Your root password has been successfully changed through SSH.


    Read more : http://www.ehow.com/how_6006527_change-root-password-ssh.html

    Instructions


      • 1
        Open your SSH client.
      • 2
        Log into your shell account, providing your username and current password.
      • 3
        Type "passwd" (do not include quotation marks) and press the "Enter" key.
      • 4
        Type your current password and press "Enter."
      • 5
        Type your new password and press "Enter."
      • 6
        Type your new password again to confirm it, and then press "Enter." Your root password has been successfully changed through SSH.


    Read more : http://www.ehow.com/how_6006527_change-root-password-ssh.html

    How to change the root password by ssh (putty)

    Read More

    What is the difference between adduser and useradd


    __________________________________________________________________________

    useradd: is native binary compiled with the system. But, adduser is a perl script which uses useradd binary in back-end.

    adduser is more user friendly and interactive than its back-end useradd. There's no difference in features provided.


    Difference between adduser and useradd command in ubuntu

    Read More

    Wednesday, 4 March 2015



    A command to list all users? And how to add, delete, modify users?

     ____________________________________________________________________________


    I need a command to list all users in terminal. And how to add, delete, modify users from terminal.

    That could help in administrating your accounts easily by terminal.


     


    Answers:

    To list all users you can use:
    cut -d: -f1 /etc/passwd
    To add a new user you can use:
    sudo adduser new_username
    or:

    sudo useradd new_username
    ...............................................................................................................

    To remove/delete a user, first you can use:
    sudo userdel username
    Then you may want to delete the home directory for the deleted user account :
    sudo rm -r /home/username

    (Please use with caution the above command!)
    To modify the username of a user:
    usermod -l new_username old_username

    To change the password for a user:
    sudo passwd username

    To change the shell for a user:
    sudo chsh username

    To change the details for a user (for example real name):
    sudo chfn username
    And, of course, see also: man adduser, man useradd, man userdel... and so on.




    ...................................................................................................................................................................


    Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

    cat /etc/passwd
    OR
    less /etc/passwd
    more /etc/passwd

    You can also use awk:
    awk -F':' '{ print $1}' /etc/passwd


    .............................................................................................................


    To get a list of all users you type (as users are listed in /etc/passwd)
    getent passwd

    To add a user newuser to the system you would type
    sudo adduser newuser

    to create a user that has all default settings applied.
    Bonus: To add any user (for instance anyuser) to a group (for instance cdrom) type
    sudo adduser anyuser cdrom

    You delete a user (for instance obsolete) with
    sudo deluser obsolete

    If you want to delete his home directory/mails as well you type
    sudo deluser --remove-home obsolete

    And
    sudo deluser --remove-all-files obsolete

    will remove the user and all files owned by this user on the whole system.







    user (tab tab)

    gives me as possible options useradd userdel usermod users users-admin
    if you want to know more about a command google it or type man man useradd gives useradd - create a new user or update default new user information ... ...
    to list users you should go with what Mitch said.
    Hope that helps I love tab completion in bash saves me from remembering things.
    --------------------------------------------------------------------------------------------------------


     --------------------------------------------------------------------------------------------------------
    list of all users who can login (no system users like: bin,deamon,mail,sys, etc.)
    awk -F':' '$2 ~ "\$" {print $1}' /etc/shadow
    add new user
    sudo adduser new_username
     or
     sudo useradd new_username

    delete/remove username
    sudo userdel username
    If you want to delete the home directory (default the directory /home/username)

    sudo deluser --remove-home username
    or
    sudo rm -r /path/to/user_home_dir

    If you want to delete all files from the system from this user (not only is the home diretory)

    sudo deluser --remove-all-files



    To find out the users on the server, run the following commands
    cd /home ls
    You can then see the users who have authorization to log into the server. If we want to look into the files of any users, you must be the root user.









    how to Add,delete,modify user in ubuntu

    Read More

    Copyright © 2014 Network Support Solution | Designed With By Blogger Templates
    Scroll To Top