浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

添加新账号

 

useradd -d /home/xxx -m xxx

passwd xxx

 

 

reference

http://www.howtogeek.com/howto/ubuntu/add-a-user-on-ubuntu-server/

 

xxx is not in the sudoers file解决方法

xxx is not in the sudoers file解决方法

用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方 法:

1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用) <br />2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。 <br />3) 编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按一 下Esc键,然后输入":wq")退出。 <br />4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。 

reference:
http://blog.chinaunix.net/u2/78601/showart_1271226.html

 

ubuntu server中文

 

apt-get install language-pack-zh

good article:

http://www.slyar.com/blog/ubuntu-server-utf8-zhcn.html

reference:

http://www.cnblogs.com/javaite/archive/2010/07/29/1787698.html

http://www.linuxidc.com/Linux/2010-08/28040.htm

 

Tab Auto-completion in Ubuntu Server

 

apt-get install bash-completion
reference:
http://www.arkf.net/blog/?p=54<br />

 

ubuntu 安全设置 very good

http://media.yinyanghouse.com/web-management-help-articles/linode-vps-setup-ubuntu-security

 

ubuntu security update

 

sudo apt-get update
sudo apt-get upgrade --show-upgraded

 

 

Set the Hostname Link

Now we'll set the hostname for your system. You can choose any name you like, but something unique and descriptive might be prudent. The hostname is what your machine calls itself, and you can choose any name you want. In this example, we will call it "squire".

echo "15-1688" > /etc/hostname
hostname -F /etc/hostname
<h2>修改Ubuntu Server时区</h2><br /><div class="content"><p>因为装的是英文版的Ubuntu Server,故时区为美国东部时间。查找/etc目录后发现在timezone文件中有指定时区。使用vim打开timezone直接修改成"Asia/Shanghai"即可。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family: Verdana,Courier New;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>timezone

也可以使用以下命令打开交互式界面来更改系统时区。

<span style="color: #c20cb9; font-weight: bold;">sudo</span> dpkg-reconfigure tzdata
Current default time zone: 'Asia/Shanghai'
修改dns
<div class="t_header"><div class="l"><div class="r"><div class="tl_header"><div class="tr_header"><div class="b"><div class="box_header" style="font-size: 14px;">Edit Name Servers: 15-1688.com</div></div></div></div></div></div></div><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br" style="padding: 4px;"><div class="box_content"><table border="0" cellspacing="0" cellpadding="5" width="100%"><tbody><tr><td class="pagehead" valign="top"><table border="0" cellspacing="0" cellpadding="5" width="100%"><tbody><tr><td class="pagehead" valign="top">
                                          <table border="0" cellspacing="0" cellpadding="1" bgcolor="#000000">
                                            <tbody><tr>
                                              <td>
                                                <table id="Table8" border="0" cellspacing="0" cellpadding="6">
                                                  <tbody><tr>
                                                    <td class="formstyle" valign="top" bgcolor="#ffffcc"><strong>Important:
                                                      Please Read </strong></td>
                                                  </tr>
                                                  <tr>
                                                    <td class="grBoxText" height="80" valign="top" bgcolor="#ffffcc">
                                                      <strong>ns1.name.com</strong><br />
                                                      <strong>ns2.name.com</strong><br />
                                                      <strong>ns3.name.com</strong><br />
                                                      <strong>ns4.name.com</strong><br /><br />
                                                      must be entered as "Current"
                                                      name servers to take advantage
                                                      of our real time DNS tools
                                                      and URL forwarding
</td>
                                                  </tr>
                                                </tbody></table>
                                              </td>
                                            </tr>
                                          </tbody></table>
</td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div>

 

 

 

 

修改 dns

 

A domain name must use our NS1.NAME.COMNS2.NAME.COMNS3.NAME.COM, and NS4.NAME.COM name servers in order for DNS Management to function.
Record TypeRecord HostRecord AnswerTTLPriority (MX only)Create Date
A15-1688.com74.224.224.224 (delete)300 2010-08-27 01:19:33
MX15-1688.commx.mail.sohu.net (delete)300102010-08-16 23:26:59
Awww.15-1688.com74.224.224.224 (delete)300 2010-08-27 01:19:51
reference:
http://library.linode.com/linode-manager/configuring-dns-with-the-linode-manager

 

optional

Secure Communications with OpenVPN on Ubuntu 10.04 (Lucid) -

Using Google Apps for Email

Diagnosing Network Issues with MTR

 

 

前往linode,使用这个链接产生购买,我将在三个月后有一些收入,感谢

http://www.linode.com/?r=c07cc819100fa5703ea5e56a6b30444bf9439dd9

posted on 2010-08-27 11:34  lexus  阅读(378)  评论(0编辑  收藏  举报