Sunday, April 27, 2014

Some common command line in Ubuntu

INSTALL SVN 1.7
Update svn 1.7 for Ubuntue
sudo add-apt-repository 'deb http://opensource.wandisco.com/ubuntu lucid svn17'
sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -    
sudo apt-get update    
sudo apt-get install subversion

MAP DIR IN UBUNTU
sshfs#$USER@far:/projects /home/$USER/far_projects fuse defaults,idmap=user 0 0
$ sshfs  matt@my.randombox.com:  randombox_home
sshfs tien.nguyen@server: /server

CHANGE LOCAL WHEN USE SFTP
lcd /home/tien.nguyen/software

Add user for ssh (add user name for this file).
vi /etc/ssh/sshd_config

Restart SSH for enable new user
/etc/init.d/ssh restart

Add user to group admin
-- usermod -g admin tien.nguyen
usermod -a -g admin tien.nguyen

Add User in ubuntu
useradd -d /home/kevin -s /bin/bash -m kevin

No comments:

Post a Comment