zoukankan      html  css  js  c++  java
  • 考前预习(Ubuntu配备)

    这几天考前预习,趁现在不想预习,写点之前就想写的东西吧。

    贴一下个人认为有用的,在Ubuntu装机后的一些小事。不过挺杂的,主要是拿来给以后的自己看,以及让现在无聊的我有点事做。

    首先,Ubuntu官网下载镜像,要注意不要下载麒麟版(Ubuntuk什么鬼的六级没过不会拼),还有建议TLS的,比如12.04,14.04什么鬼的。

    然后就是做成U盘启动,Ubuntu下有自带个“启动盘创建器”的东西,Windows下可以用UltraISO工具,OS X的话,太穷买不起,有兴趣的可以资助我,我不介意的:)

    正题来了。

    操作系统:Ubuntu 14.04TLS

    一、终端更新源+更新操作系统

    sudo apt-get update
    sudo apt-get upgrade

    二、打开系统设置=》语言支持,更新语言什么鬼,输入密码什么鬼

    三、打开软件中心,搜索amazon,卸载,搜索flash,安装

    四、安装terminator

    sudo apt-get install terminator

    五、安装搜狗输入法

    去官网http://pinyin.sogou.com/linux/?r=pinyin下载相应版本deb包

    安装gdebi-core、搜狗输入法

    sudo apt-get install gdebi-core
    sudo gdebi sogou_pinyin_linux_*.deb

    注销操作系统,系统设置=》语言支持,语言的键盘输入方式系统,把ibus改为fcitx,注销操作系统,可以了

    如果不能正常安装gdebi试下先更新源,不能正常安装输入法试下先删除fcitx的东西

    sudo apt-get update
    sudo apt-get remove --purge fcitx*
    sudo apt-get --purge autoremove

    六、装一些奇奇怪怪的东西,自行百度是什么鬼

    sudo apt-get install vim tree vlc unrar indicator-multiload gparted indicator-cpufreq
    sudo add-apt-repository ppa:atareao/atareao
    sudo add-apt-repository ppa:tualatrix/ppa
    sudo apt-get update
    sudo apt-get install my-weather-indicator ubuntu-tweak

    七、终端sudo ubuntu-tweak设置个性化的东西

    八、设置右键打开当前目录的终端

    进入指定文件夹

    cd ~/.local/share/nautilus/scripts/

    新建文件"open-terminal"

    vim open-terminal

    添加以下内容

    #!/bin/bash
    #
    # This script opens a gnome-terminal in the directory you select.
    #
    # Distributed under the terms of GNU GPL version 2 or later
    #
    # Install in ~/.gnome2/nautilus-scripts or ~/Nautilus/scripts
    # You need to be running Nautilus 1.0.3+ to use scripts.
    
    # When a directory is selected, go there. Otherwise go to current
    # directory. If more than one directory is selected, show error.
    if [ -n "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then
    set $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
    if [ $# -eq 1 ]; then
    destination="$1"
    # Go to file's directory if it's a file
    if [ ! -d "$destination" ]; then
    destination="`dirname "$destination"`"
    fi
    else
    zenity --error --title="Error - Open terminal here" 
    --text="You can only select one directory."
    exit 1
    fi
    else
    destination="`echo "$NAUTILUS_SCRIPT_CURRENT_URI" | sed 's/^file:////'`"
    fi
    
    # It's only possible to go to local directories
    if [ -n "`echo "$destination" | grep '^[a-zA-Z0-9]+:'`" ]; then
    zenity --error --title="Error - Open terminal here" 
    --text="Only local directories can be used."
    exit 1
    fi
    
    cd "$destination"
    exec x-terminal-emulator

    加执行权限

    sudo chmod +x open-terminal

    九、下载bcloud

    在github上https://github.com/LiuLang/bcloud-packages下载相应deb包

    sudo dpkg -i bcloud_*_all.deb 
    sudo apt-get -f install

    十、安装virtualbox

    在官网https://www.virtualbox.org/wiki/Linux_Downloads下载deb包

    sudo dpkg -i virtualbox*.deb

    在官网下载相应拓展包安装

    虚拟个win7之类的东西来和大多数人交流

    十一、安装显卡驱动

    十二、安装vim或sublime text的各种插件,或者安装各种codeblocks,eclipse之类的IDE

    可能常用的东西

    一、关于快捷方式

    1、操作顺序是:先打开目录 “/usr/share/applications/”,在这个目录下找到所需程序的图表,拷贝到桌面就可以了,这里不能用剪切命令。
    2、如果想要生成文件或目录的快捷方式,并放到桌面上的话,只要在那个文件或目录上按右键,在弹出菜单中选择“make link”选项,将生成的链接以剪切方式拷贝到桌面就可以了。

    二、关于流量监控

    Nethogs 是一个终端下的网络流量监控工具,它的特别之处在于可以显示每个进程的带宽占用情况,这样可以更直观获取网络使用情况。它支持 IPv4 和 IPv6 协议、支持本地网卡及 PPP 链接。
    sudo apt-get install nethogs
    # 使用:
    sudo nethogs eth0(或ppp0)
    该程序需要 root 权限,默认是监控 eth0 网卡 ,所以直接输入 sudo nethogs 也可以,如果有多网卡的话就必须进行指定。如果不知道自己的网卡名称,可以用ifconfig命令查看。


    三、关于解压

    tar可以解压gz和bz之类的,详情看help

    解压的乱码问题一般由编码问题引起,可在解压时加编码参数,如  unzip -O GBK *.zip

    四、双系统下改变分区导致error

    Ubuntu14.04与Windows8.1双系统。在windows下改变分区,包括新建分区、删除分区、合并分区等操作,会造成Ubuntu的grub找不到分区,以致进入grub rescue模式。
    ①找到系统启动分区
    Grub Rescue> ls
    hd0 (hd0,msdos?) (hd0,msdos?) ... (hd0,msdos?)
    通过输入如 ls (hd0,msdos?),如果系统提示Unknow FileSystem则不是要找的
    我的是提示... ext2
    ②设置路径(假设找到的分区为(hd0,msdos6))
    Grub Rescue> set root=(hd0,msdos6)
    Grub Rescue> set prefix=(hd0,msdos6)/boot/grub
    ③加载模块
    Grub Rescue> insmod normal
    Grub Rescue> normal
    ④更新引导
    进入Ubuntu后打开终端
    sudo update-grub
    sudo grub-install /dev/sda

    未完待续。。。。20150617

  • 相关阅读:
    Pandas包对多个数据表(DataFrame)的常用整合功能。
    pandas numpy 简单应用 loandata
    榛果 美团 登录 爬虫 requests session
    python 日期循环
    opencv 验证码 识别
    运行MapReduce任务
    CenOS安装MySQL服务
    leetcode 67. 二进制求和
    最近对一些领域比较感兴趣,这里列举出来供以后查阅
    leet code 1014. 最佳观光组合
  • 原文地址:https://www.cnblogs.com/nextbin/p/4584399.html
Copyright © 2011-2022 走看看