Posts Tagged ‘linux’

May 7, 09

最近在Ubuntu下装了Eclipse, 然后共享Win下的Workspace. 除了win分区要每次在Eclipse启动之前手动加载外, 一切正常.
于是就想把win下常用的两个分区自动加载了。Google了一下,都说是将分区列在/etc/fstab里即可。
于是, sudo gedit ,列上, 重启, 无效.
sudo gedit, 给分区加user, rw, 重启, 无效.
遂将option一一尝试, 重启n次, 无效n次.
崩溃. 去洗手间照镜子, 检查人品, 确认无异常后, 再次重启. 再次无效T_T

开始怀疑Google的结果了, 就又Google…
滤掉无数重复的copy的内容后, 发现一BBS上的讨论. 某人由于内核编译时没列上中文支持, 导致mount错误. 难不成要重新编译内核? 我%#@&!
仔细看, 此人不能自动加载时用mount -a测试fstab. 突然联想起man mount里面的mount -a就是加载fstab里所列. 顿悟!
马上mount -a. 两条错误提示mount directory没创建! 这才知道这个目录还是需要提前创建的, 以前都是在Gnome下点硬盘图标就挂载了.
然后就mkdir, reboot, 一切OK. 眼泪哗哗地…

看来基础知识不扎实就只能是菜啊. 今天在公司鼓捣VBA, 一个class module没初始化的问题查了整整一下午, 又因一个mount折腾整整一晚上.
唉, 悲怆, 无语, 躺床上掩面长睡去鸟.


May 3, 09

Using Linux again. Now got fresh Ubuntu 9.04 installed and all my old Ubuntu configurations were lost. It takes time to resume to an acceptable status.

Here is a note for bash prompt customize:

  1. Open ~/.bashrc
  2. un-comment force_color_prompt=yes
  3. change PS1 assignment before else clause
  4. Save. Then open a new terminal to check the effect.

This is my PS1 value:

PS1='${debian_chroot:+($debian_chroot)}\[\e[31;01m\]~L~\[\e[00m\]\[\e[30;02m\]:\[\e[00m\]\[\e[36;02m\]\w\[\e[00m\]\[\e[37;02m\]\$\[\e[00m\] '

And it looks like this:

~L~: /usr/local$

Information about these pattern, color and veriables can be found here:

http://wiki.archlinux.org/index.php/Color_Bash_Prompt


Ubuntu

Posted in gadgets with tags , .

Jun 20, 08

No reply

Haven’t tried Ubuntu for almost 2 years since I installed Ubuntu 6 on my desktop PC. I upgraded my hard driver to 160G last week thus there’s enough space to install a Ubuntu beside Vista. So I got Ubuntu 8.04 “Hardy Heron” installed.

The installation was quite straight forward and didn’t change to much. But the usability is much batter than v6. My wireless connection was successfully configured and connected. NTFS partitions were well supported. With additional codec installed, all of my musics and movies were played smoothly – even my iPod was recognized which was a big surprise to me. And the compz stuff is just awesome:

I think I will spend more time on linux than Vista from now on. Howday(again*-*) open source!