Changes between Version 2 and Version 3 of Paravmssh
- Timestamp:
- Apr 25, 2009, 9:57:32 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Paravmssh
v2 v3 22 22 root@myParaVM:~# adduser username 23 23 }}} 24 where username is prefer rably your athena identity24 where username is preferably your athena identity 25 25 this will prompt you for a password and then for some personal information 26 26 that does not matter for our purposes. 27 In order to install software, we next need to add ourselves to the sudoers file. 27 28 In order to install software, we next need to add ourselves to the sudoers file. If you chose an Ubuntu installation, you can do this by adding your user to the admin group, as follows: 29 {{{ 30 root@myParaVM~# adduser <username> admin 31 }}} 32 33 If you chose Debian, add yourself to /etc/sudoers: 28 34 {{{ 29 35 root@myParaVM~# visudo 30 36 }}} 31 this opens /etc/sudoers using vi. 32 if you are unfamiliar with original vi, you can type the following sequence of keys (where [enter] and [ctrl] stand for the enter and control keys and username is the username you just added: 37 this opens /etc/sudoers using an available text editor (probably nano if you're in Debian). 38 39 If nano is used, it should be intuitive - add the following line at the end, save with Ctrl-O, and exit with Ctrl-X: 40 {{{ 41 <username> ALL=(ALL) ALL 42 }}} 43 44 If you are unfamiliar with original vi, you can type the following sequence of keys (where [enter] and [ctrl] stand for the enter and control keys and username is the username you just added: 33 45 {{{ 34 46 20j$a[enter]username[space][space][space][space]ALL=(ALL) ALL[esc]:wq[enter] 35 47 }}} 36 48 <do I actually want it to be username ALL=(ALL) ALL?> 37 lastly, we need to start the ssh daemon: 49 50 Lastly, we need to start the ssh daemon: 38 51 {{{ 39 52 root@myParaVM~# /etc/sbin/sshd 40 53 }}} 54 <what distribution is this valid in?> 41 55 42 56 now open up another local terminal and try to ssh into your VM: … … 46 60 and check that you can sudo: 47 61 {{{ 48 username@myParaVM~$ sudo apt-get install emacs (or vim-gnome)62 username@myParaVM~$ sudo -l 49 63 }}}