
Ubuntu environment
文章平均质量分 64
一人在人间
这个作者很懒,什么都没留下…
展开
-
Change Hostname in Ubuntu
sudo vim /etc/hostsChange the old hostname to the new one. For example, my /etc/hosts file said192.168.168.100 oldhostnameSo I changed it to192.168.168.100 newhostnameI also edited转载 2013-06-07 09:59:29 · 710 阅读 · 0 评论 -
update-alternatives 命令
update-alternatives creates, removes, maintains and displays information about the symbolic links comprising the Debian alternatives system. It is possible for several programs fulfilling原创 2014-05-04 11:47:05 · 900 阅读 · 0 评论 -
How to write makefile
http://wiki.ubuntu.org.cn/%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E5%86%99Makefile:%E4%B9%A6%E5%86%99%E8%A7%84%E5%88%99#.E8.87.AA.E5.8A.A8.E7.94.9F.E6.88.90.E4.BE.9D.E8.B5.96.E6.80.A7原创 2013-08-25 21:25:35 · 1004 阅读 · 0 评论 -
rc.local
The sytem will exec the script rc.local when it start upecho "/etc/rc.local" echo "sudo insmod /lib/modules/3.5.0-23-generic/kernel/drivers/uio/uio_ivshmem.ko" sudo insmod /lib/modules/3.5.0-23-原创 2014-01-10 17:42:28 · 577 阅读 · 0 评论 -
Linux X11 Connection Rejected Because of Wrong Authentication Error and Solution
0 Refrencehttp://www.cyberciti.biz/faq/x11-connection-rejected-because-of-wrong-authentication/1Q. I'm trying to login to my remote Ubuntu Linux server from Mac OS X desktop using following转载 2013-12-25 19:39:01 · 2400 阅读 · 0 评论 -
环境变量 DISPLAY
0Refrencehttp://blog.chinaunix.net/uid-23072872-id-3388906.html每个 图形界面程序就是一个 xclient每台主机上都会运行一个 xserverxclient 在哪里显示(链接到哪个xserver)和它的终端环境变量DISPLAY 有关DISPLAY环境变量格式如下host:NumA.NumB, host原创 2013-12-25 16:17:20 · 5193 阅读 · 0 评论 -
Use sha1
0 Reference http://blog.youkuaiyun.com/liuhong135541/article/details/8138525http://blog.youkuaiyun.com/shahongzhou/article/details/6586303http://blog.sina.com.cn/s/blog_4c451e0e0100zf2j.html1 Instal原创 2013-11-27 18:24:58 · 935 阅读 · 0 评论 -
/etc/hosts configure
0 Refrencehttp://www.jb51.net/LINUXjishu/77329.html1 test program#include #include #include #include #include #include int main(int argc, char *argv[]){ int i; struct host原创 2013-11-12 19:24:32 · 702 阅读 · 0 评论 -
login shell and non-login shell
bash与sh bash 和 sh都是 linux shell ,相当于只是它们版本不同。一般情况下,在控制台终端登录或在图形界面下开启“终端”,默认都会启动一个shell来接待使用者。具体流程:可以认为终端是父进程getty先启动,该getty会执行login程序,以处理登录的动作,登陆完成以后,login就会执行用户的 shell,这时就是为用户默认分配了一个shell。该shell执原创 2013-10-25 16:12:15 · 815 阅读 · 0 评论 -
Add user in ubuntu
sudo addgroup hadoopsudo adduser --ingroup hadoop hdusersudo visudo ( add hduser ALL=(ALL:ALL) ALL similar to root)原创 2013-09-24 10:09:35 · 506 阅读 · 0 评论 -
sudo without password
login as rootchmod 740 /etc/sudoerssudo vim /etc/sudoersAdd at the last lineixzl ALL=NOPASSWD:ALLchmod 440 /etc/sdouers原创 2013-08-02 11:07:21 · 1015 阅读 · 0 评论 -
Install VIM and GDB
http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/原创 2013-07-16 22:16:57 · 618 阅读 · 0 评论 -
ssh login without passwd
Node A(client) want to connect Node B(server) without passwdon Node Bvim /etc/ssh/sshd_config PermitRootLogin yes RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFil原创 2013-07-16 15:49:45 · 893 阅读 · 0 评论 -
ubuntu dns 配置
http://www.linuxidc.com/Linux/2009-08/21425.htmsudo vim /etc/resolvconf/resolv.conf.d/base原创 2014-05-14 09:54:13 · 511 阅读 · 0 评论