Linux 安装计划 Ubuntu 9.10!

1. 从硬盘安装linux的学习,和实验   Done

     Use wingrub, install the Ubuntu on /dev/sda2. and could boot!

     一些细节的东西,我放在tools on windows分类了

 

2.  pppoe connection                         Done

     I posted a message on forum from Ubuntu!

     use pppoeconf

 

    pon, poff 来断开和建立连接

 

3. chinese input                                   Done

    http://www.blogjava.net/daning/archive/2008/05/31/204650.html

   apt-get install scim-pinyin

    im-switch -s scim -z  all_ALL

    补充一下,我之前还更新了language support。

   system->administration->language support

    装scim就好了,挺好使用的。

 

4. display resolution

    先安装了nvidia的驱动。 网上说

首先的确认显卡驱动装没装好,运行
代码:
glxinfo | grep rendering
如果显示direct rendering: Yes,则已安装。
不然的话:
nvidia显卡驱动:
代码:
sudo apt-get install nvidia-glx
sudo nvidia-glx-config enable
nvidia-settings
nvidia-xconfig

 

我直接就在system->administration->hard driver里面装了。

 

有个设置分辨率的帖子

http://linux.chinaunix.net/techdoc/install/2008/10/22/1040041.shtml

我还没有感试呢。

 

5. qq and msn

 

6. gvim

     apt-get install vim-gnome

7. 自动mount

 

在/etc/fstab 中加入

/dev/sda1       /media/XP       auto    rw,user,auto,exec 0      0

 

8. 设置apt源

 

9. chm阅读器

     apt-get install chmsee

 

 

10. 使用msn

      apt-get install pidgin

 

tools--preferences--show system tray icon: always

这个东西 选上,就像在windows上用一样了。

要不就要点 信封的图标,也可以用。

 

 

11. 使用mencoder做视频转换

http://www.jcwcn.com/html/geshizh/14_12_25_632.html

http://hi.baidu.com/254584511/blog/item/423b608d72425617b31bba10.html

 


13.使用gw6c设置ipv6 tunnel

http://www.linuxidc.net/redirect.php?tid=74&goto=lastpost

添加配置文件

cd /usr/share/doc/gw6c/examples

gunzip gw6c.conf.sample.gz

cp gw6c.conf.sample /etc/gw6c/gw6c.conf

加入

if_tunnel_v6v4=sit1
if_tunnel_v6udpv4=tun0
if_tunnel_v4v6=sit0
template=linux

 

测试

http://ipv6.google.com

 

改变gw6c的启动顺序

leo@leo-laptop:~$ update-rc.d -f gw6c remove
Removing any system startup links for /etc/init.d/gw6c ...
   /etc/rc0.d/K20gw6c
   /etc/rc1.d/K20gw6c
   /etc/rc2.d/S20gw6c
   /etc/rc3.d/S20gw6c
   /etc/rc4.d/S20gw6c
   /etc/rc5.d/S20gw6c
   /etc/rc6.d/K20gw6c
leo@leo-laptop:~$ sudo update-rc.d gw6c defaults 99 20
Adding system startup for /etc/init.d/gw6c ...
   /etc/rc0.d/K20gw6c -> ../init.d/gw6c
   /etc/rc1.d/K20gw6c -> ../init.d/gw6c
   /etc/rc6.d/K20gw6c -> ../init.d/gw6c
   /etc/rc2.d/S99gw6c -> ../init.d/gw6c
   /etc/rc3.d/S99gw6c -> ../init.d/gw6c
   /etc/rc4.d/S99gw6c -> ../init.d/gw6c
   /etc/rc5.d/S99gw6c -> ../init.d/gw6c

 

14. Ubuntu : enable root account

sudo passwd root

 

then enter new passoword for root.

 

15. 网络流量监控

apt-get install netspeed

在panel上点右键,选择add to panel 找到Network Monitor。 添加,赞!

 

16. PPStream

推荐使用apt-get方式安装: sudo apt-get install libqt4-core libqt4-dbus libqt4-gui libqt4-network libqt4-webkit libqt4-xml libfuse2 mplayer
 
安装PPS:
    sudo dpkg -i ppstream_1.0.0-1_i386.deb

 

17. 重装kernel

下载了 2.6.36 stable的 kernel。

将/boot/config-`uname -r` 文件 拷贝到.config。

make menuconfig 选择 Load an Alternate Configuration File, 将.config导入

make  CONFIG_DEBUG_SECTION_MISMATCH=y   这个是事后才知道的。 至于为设么不知道。

make modules

make modules_install

mkinitramfs 2.6.36-rc8+ -o /boot/initrd.img-2.6.36-rc8+ 这个2.6.36-rc8+是/lib/modules下的目录名称。make modules_install建立的。

修改Grub的menu.lst

title my linux
root (hd0,1)
kernel /boot/vmlinuz-2.6.36-rc8+ root=/dev/sda2  ro
initrd /boot/initrd.img-2.6.36-rc8+

帅呆了,不过我还不能确定确实用的是我编译的kernel哦。

 

关于CONFIG_DEBUG_SECTION的这个选项,原先在.config中是找不到的,make menuconfig也找不到。

可以将 lib/Kconfig.debug中 删掉depends on 这行。

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1b4afd2..804621a 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -102,7 +102,6 @@ config HEADERS_CHECK
 
 config DEBUG_SECTION_MISMATCH
        bool "Enable full Section mismatch analysis"
-       depends on UNDEFINED || (BLACKFIN)
        default y
        # This option is on purpose disabled for now.
        # It will be enabled when we are down to a reasonable number

 

18. 安装aptitude

apt-get install aptitude


19. 设置静态ip 和 配置dns服务器

root@richard:/etc# cat network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1

root@richard:/etc# cat resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1
nameserver 180.168.255.118
nameserver 116.228.111.18


12. dhcp配置

vi /etc/network/interfaces

 

auto eth0
iface eth0 inet dhcp

 

restart the network

/etc/init.d/networking restart

 

还是用network-manager吧。

http://askubuntu.com/questions/71159/network-manager-says-device-not-managed

上面这个帖子

先改/etc/network/interfaces这个配置

再改/etc/NetworkManager/NetworkManager.conf

最后restart network-manger

好了,很好用。


20. 配置grub2,让启动的时候显示grub选项

vi /etc/default/grub

将这个注释掉。 #GRUB_HIDDEN_TIMEOUT=0

然后 update-grub

好了


21。 查询装了什么包

http://wiki.ubuntu.org.cn/Ubuntu技巧

dpkg -l


22. 装个offline字典

http://www.arulraj.net/2010/06/offline-dictionary-for-ubuntu-10-04.html


 23. http proxy

export http_proxy='http://127.0.0.1:8087/'


24. 将eth0 放到bridge中,通过bridge上网

https://help.ubuntu.com/community/KVM/Networking

主要就是编辑/etc/network/interfaces这个文件

auto lo
iface lo inet loopback

auto eth0
#iface eth0 inet static
#address 192.168.1.5
#netmask 255.255.255.0
#gateway 192.168.1.1

auto wlan0

auto br0
iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp   off
        bridge_fd    0
        bridge_maxwait 0


25。 查看那个包包含了某个可执行文件

http://www.itkee.com/os/detail-1b52.html

apt-file search file_name



26。 ubuntu上配置bonding interface

https://help.ubuntu.com/community/UbuntuBonding


27. ubuntu上 配置console

http://www.debuntu.org/how-to-set-up-a-serial-console-on-ubuntu

https://help.ubuntu.com/community/SerialConsoleHowto

必须这两个例子合起来, 可以的。


查看有哪个物理设备

dmesg | grep tty
[    0.000000] Kernel command line: root=/dev/sda1 rw console=ttyS0,115200n8
[    0.000000] console [ttyS0] enabled
[    0.580603] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.610160] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A


编辑/etc/event.d/ttyS0

cat /etc/event.d/ttyS0
# ttyS0 - getty
 
start on runlevel [2345]

stop on runlevel [016]

respawn
exec /sbin/getty -L 115200 ttyS0 vt102

编辑/etc/securetty

添加ttyS0.


编辑/etc/init/ttyS0.conf

cat /etc/init/ttyS0.conf
#ttyS0

start on stopped rc or RUNLEVEL=[2345]

stop on runlevel [!2345]

respawn
exec /sbin/getty -L 115200 ttyS0 vt102


在启动的时候,grub参数添加

console=ttyS0,115200n8


28。 从硬盘安装

http://www.linuxsight.com/blog/4104

http://wiki.ubuntu.org.cn/%E7%A1%AC%E7%9B%98%E5%AE%89%E8%A3%85LiveCD

http://www.linuxdiyf.com/bbs/viewthread.php?tid=181613


29. 设置电池充放点的阈值


 I find a method to setup the battery charging and discharging threshold.
 Seems this could your battery life.

 Please view this page.
 https://github.com/evgeni/tp_smapi/issues/3#issuecomment-2567760

 Short Description of the steps:
 1. git clone the kernel module of acpi and compile and install this module
    git clone git://github.com/mkottman/acpi_call.git acpi_call
    make
    insmod acpi_call

 2. copy a perl script
    https://github.com/teleshoes/tpbattstat-applet/blob/master/tpacpi-bat

 3. showing the usage of the script
    perl tpacpi-bat usage

 4. example for setting the threshold
    perl tpacpi-bat startChargeThreshold 1 10
    perl tpacpi-bat stopChargeThreshold 1 90


30. 设置3d效果

http://forum.ubuntu.org.cn/viewtopic.php?p=868051

先要安装nvidia显卡, 看这个帖子 http://blog.csdn.net/linuxzhouying/article/details/7192566


31. 安装受限源

没装这个的时候看不了电影,装了就好了

sudo apt-get install ubuntu-restricted-extras


32. ubuntu上安装chrome

http://www.douban.com/note/252982281/


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值