Ubuntu配置整理

        Ubuntu已经第N次重新安装了,每次各种问题。趁此机会整合下。

        Wine安装:

        http://www.winehq.org/download/ubuntu/

       QQ安装:

       http://forum.ubuntu.org.cn/viewtopic.php?t=362313

       出现不能运行的情况,去/opt/longene/qq使用qq.sh脚本查看详细信息,发现是:

       libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
       原因是安装的ubuntu是64位的系统,没有32位支持

       apt-get install ia32-libs-gtk 

      编译环境:

#!/bin/bash
sudo apt-get install build-essential
sudo apt-get install autoconf automake
sudo apt-get install flex bison
sudo apt-get install manpages-dev
sudo apt-get install binutils-doc cpp-doc gcc-doc glibc-doc \
stl-manual
sudo add-apt-repository ppa:pasgui/ppa
sudo apt-get update
sudo apt-get install codeblocks
      这是一个简单的不能再简单的脚本,稍稍减少点人工,有想法把所有的系统初始化工作全做成脚本。不过因为shell目前忘的差不多了。先以最简单的累积吧。

     后面在实践后继续贴上来。

    搜狗拼音:

    http://pinyin.sogou.com/linux/?r=pinyin

    jingyan.baidu.com/article/ad310e80ae6d971849f49ed3.html

    有线网络显示设备未托管:

     sudo gedit /etc/NetworkManager/NetworkManager.conf

     将ifupdown下面的managed = false 改成 true

    然后sudo /etc/init.d/networking restart(没试过),或者用sudo reboot

   命令提示符:

 /d :代表日期,格式为weekday month date,例如:"Mon Aug 1"
/H :完整的主机名称。例如:我的机器名称为:fc4.linux,则这个名称就是fc4.linux
/h :仅取主机的第一个名字,如上例,则为fc4,.linux则被省略
/t :显示时间为24小时格式,如:HH:MM:SS
/T :显示时间为12小时格式
/A :显示时间为24小时格式:HH:MM
/u :当前用户的账号名称
/v :BASH的版本信息
/w :完整的工作目录名称。家目录会以 ~代替
/W :利用basename取得工作目录名称,所以只会列出最后一个目录

   我的机器上改了两个地方:

   第一处为:/etc/bash.bashrc中:

#PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1='[${debian_chroot:+($debian_chroot)}\u@h:\W]$ '

  #行为被注释掉部分,后面为改动部分,可以看到只是将\w改成了\W,主要是\w在深目录时太长了。

  然后是~/.bash下:

if [ "$color_prompt" = yes ]; then
    #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    PS1='[${debian_chroot:+($debian_chroot)}[\033[01;32m\]\u@\h[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\]$ '
else
    #PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    PS1='[${debian_chroot:+($debian_chroot)}\u@\h:\W]$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    #PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    PS1='[${debian_chroot:+($debian_chroot)}\u@\h:\W]$ '
    ;;
*)
    ;;
esac

 Adobe flash player:

http://www.2cto.com/os/201205/133528.html

 WPS:

http://community.wps.cn/download/

CodeBlocks改调试终端

codeblocks更改调试终端在环境设置里进行如下设置:

把Terminal to launch console programs那个选项改成gnome-terminal -t $TITLE -x

原来是xterm -T $TITLE -e

gnome-terminal和xterm的参数表示方法不一样。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值