freeshell@ustc之安家落户

ch3cooh posted @ Fri, 20 Jun 2014 19:27:38 +0800 in Computer with tags linux freeshell , 1333 readers

apt-get install sudo有免费的服务器,本着不用白不用的思想,本人准备安家落户freeshell。

 

我科的freeshell可自选发行版,我用了默认的Debian。Freeshell里面神马都没有,只有一个root账户,SSH登陆进去的样子是这样滴:

login as: root
root@galaxy.6.freeshell.ustc.edu.cn's password:
Linux galaxy 2.6.32-openvz-042stab085.20-amd64 #1 SMP Fri Mar 21 18:52:09 MSK 2014 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 20 18:50:41 2014 from 2001:da8:d800:269:38f7:a8d4:766d:7d3

freeshell里确实神马都没有,连home都没有。所以创建用户要这样:

cd /
mkdir home
useradd -D -s /bin/bash # freeshell's default value is /bin/sh
useradd -m orz # i like this name :)
passwd orz
usermod -G sudo orz # add orz into sudo group

不过这时候系统里还没有安装sudo,所以……

apt-get install sudo

这样退出之后重新登录即可使用sudo,安装些软件包之后freeshell基本能用了:)

login as: orz
orz@galaxy.6.freeshell.ustc.edu.cn's password:
Linux galaxy 2.6.32-openvz-042stab085.20-amd64 #1 SMP Fri Mar 21 18:52:09 MSK 2014 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
orz@galaxy:~$

成功啦!

 

#希望过几天考试有个好成绩#

blog comments powered by Disqus