`
ouyida3
  • 浏览: 48272 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

ubuntu使用笔记

阅读更多
在Ubuntu上装Hadoop
http://cloud.csdn.net/a/20100901/278948.html

ubuntu的终端位置
http://zhidao.baidu.com/question/129375828.html

ubuntu qq
http://wiki.ubuntu.org.cn/QQ
bug,改完系统时间,发送频率过快,关掉聊天窗口后没事

ubuntu 取windows文件
http://zhidao.baidu.com/question/207216420.html

linux 下载java
http://www.java.com/zh_CN/download/linux_manual.jsp?locale=zh_CN
不要rpm的

linux 安装java
http://www.java.com/zh_CN/download/help/linux_install.xml#selfextracting

ubuntu root
http://zhidao.baidu.com/question/278258187.html

linux删除java
http://blog.csdn.net/sunshuai03/article/details/1432788

linux 配置java
http://www.java.com/zh_CN/download/help/linux_install.xml#enable
ln -s <Java 安装目录>/lib/i386/libnpjp2.so
ls -s /usr/java/jre1.6.0_26/lib/i386/libnpjp2.so

测试java
http://www.java.com/zh_CN/download/testjava.jsp
会有几个字乱码

安装ssh
http://chenling1018.blog.163.com/blog/static/148025420083321849376/
sudo apt-get install ssh
apt-get install ssh
root@ubuntu:/usr/java/jre1.6.0_26/lib/i386# apt-get install ssh
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
现在没有可用的软件包 ssh,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
可是下列软件包取代了它:
  openssh-client ssh-askpass-gnome

E: 软件包 ssh 没有可供安装的候选者

ssh
http://mxsfengg.iteye.com/blog/543000
ps -ef|grep ssh
aptitude install openssh-server
apt-get install openssh-server(如果网络是代理,需要设置代理)
/etc/init.d/ssh start

设置源
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
从这里拷贝镜像
http://wiki.ubuntu.org.cn/index.php?title=Qref/Source&variant=zh-cn
sudo gedit /etc/apt/sources.list
sohu的比163快很多

apt-get代理
http://www.cnblogs.com/babykick/archive/2011/03/25/1996004.html
代理要设置三个地方!
http://blog.sina.com.cn/s/blog_5c37cc040100mb0x.html(重要)

export http_proxy=http://10.210.1.34:8080
apt-get update
sudo gedit /etc/apt/apt.conf
Acquire::http::Proxy "http://yourproxyaddress:proxyport";
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

if you can not update apt-get,kill all apt process first.

安装hadoop
http://hadoop.apache.org/common/docs/r0.20.203.0/cn/quickstart.html

下载hadoop
http://hadoop.apache.org/common/releases.html
http://www.apache.org/dyn/closer.cgi/hadoop/common/
http://labs.renren.com/apache-mirror//hadoop/common/stable/
发现ubuntu不能修改下载路径

sudo addgroup hadoop
sudo adduser --ingroup hadoop hadoop

tar.gz
http://zhidao.baidu.com/question/269574824.html

gzip -d had*
tar -xvf had*tar(一定要用hadoop用户,如果用root用户很多操作hadoop就没权限了)

ubuntu 命令
http://wiki.ubuntu.org.cn/Unix%E5%91%BD%E4%BB%A4%E5%A4%A7%E5%85%A8

vi ~/hadoop*/conf/hadoop-env.sh
export JAVA_HOME=/usr/java/jre1.6.0_26

hadoop@ubuntu:~/hadoop-0.20.203.0/conf$ cat hadoop-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>



bin/hadoop namenode -format
bin/start-all.sh
bin/hadoop jar hadoop*examples*.jar grep input output 'dfs[a-z.]+'

每次重登ubuntu,firefox的代理都需要重设?换了用户?

终端快捷键
http://blog.163.com/longsu2010@yeah/blog/static/1736123482011111102219199/

设置桌面
http://www.hackvip.com/article/sort0136/sort0186/Hackvip_175842.html
http://forum.ubuntu.org.cn/viewtopic.php?t=263978
http://bbs.ylmf.net/forum.php?mod=viewthread&tid=1418562
http://www.cnblogs.com/Zscorpio/archive/2009/08/05/1539263.html

设置邮箱
evolution

配置slaves(info-q,好文章)
http://www.infoq.com/cn/articles/hadoop-config-tip

ssh 连不上张军机器
http://chenlb.blogjava.net/archive/2008/07/03/212293.html

上网需要设置ip
130.51.38.219
255.255.255.0
130.51.38.254
10.210.1.25,10.210.1.26
设置完后要重启网卡。

sodu时提示:XXX is not in the sudoers file. This incident will be reported
http://blog.csdn.net/onlyou930/article/details/6551226


安装secure crt
到官方网站下载,我下的是6.7.2版本,30天试用,找不到注册码

安装putty
apt-get install putty
到/usr/share/applications下找启动图标
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics