linux
WanGong
这个作者很懒,什么都没留下…
展开
-
ubuntu 16.04 配置NAT失败 无法转发
配置iptablessudo iptables -t nat -A POSTROUTING -s "192.168.0.1/24" -o eth0 -j MASQUERADE打开转发功能取消/etc/resolv.conf里面net.ipv4.ip_forward = 1的注释 使命令生效: sudo sysctl -p关键:关闭Ubuntu 16.04 的防火墙sudo ufw disable原创 2017-03-13 10:21:39 · 4210 阅读 · 2 评论 -
CentOS 7安装fcitx中文输入法
original website: http://seisman.info/fcitx-for-centos-7.html目前不确定是否可行,具体参考:https://github.com/1dot75cm/myrepo前面CentOS 7.0下安装小小输入法一文中已经介绍了如何在CentOS 7下安装小小输入法来输入中文,实际用起来还是有不少不如意的地方。今天恰好发现了CentO转载 2015-11-20 16:50:36 · 1171 阅读 · 0 评论 -
修改双系统引导的另外一个办法
1、编写grub.cfg配置文件,加入正确的引导条目2、使用grub-mkconfig命令将grub安装到MBR原创 2015-11-24 08:54:11 · 1093 阅读 · 0 评论 -
Linux内核参数配置文件修改(/proc/sys与/etc/sysctl.conf变量对应关系)
Linux在系统运行时修改内核参数(/proc/sys与/etc/sysctl.conf),而不需要重新引导系统,这个功能是通过/proc虚拟文件系统实现的。在/proc/sys目录下存放着大多数的内核参数,并且设计成可以在系统运行的同时进行更改, 可以通过更改/proc/sys中内核参数对应的文件达到修改内核参数的目的(修改过后,保存配置文件就马上自动生效),不过重新启动机器后之前修改的转载 2015-11-16 10:51:09 · 6731 阅读 · 0 评论 -
ubuntu 14.04 ifconfig 设置 static IP 无效,会自动刷新问题
原因:ubuntu桌面默认开启NetworkManager,并由他管理网络interface,只要将其关闭即可sudo ps -aux | grep NetworkManagersudo kill -9 上面查询到的进程号原创 2015-11-10 11:56:19 · 2999 阅读 · 0 评论 -
virtualbox 安装 unbuntu14.04 分辨率 全屏问题
解决方案:sudo apt-get install virtualbox-guest-addition-isosudo apt-get install virtualbox-guest-dkms查找并打开Xdiagnose, 选中debug组中的所有选项,apply ,close查找并打开Software Updates, 选中Additional Drivers原创 2015-11-08 15:56:29 · 738 阅读 · 0 评论 -
Grub2/Installing
original site: https://help.ubuntu.com/community/Grub2/Installing目录GRUB 2 Initial InstallationInstallation Options (LiveCD)Using the E转载 2015-09-03 19:49:13 · 1671 阅读 · 0 评论 -
some packet should been installed before QT on ubuntu 14.04
sudo apt-get install build-essential libgl1-mesa-dev原创 2015-08-05 16:44:45 · 604 阅读 · 0 评论 -
install openvswitch 2.3.2 on ubuntu 14.04
sudo apt-get install -y build-essential fakeroot debhelper autoconf automake bzip2 libssl-dev openssl graphviz python-all procps python-qt4 python-zopeinterface python-twisted-conch原创 2015-08-01 09:33:03 · 2159 阅读 · 0 评论 -
ubuntu 12.04安装JDK7
(1)添加软件源sudo add-apt-repository ppa:webupd8team/java sudo apt-get update (2)安装sudo apt-get install oracle-java7-installer 如果下载速度快则直接完成安装,否则使用kill -9强行关闭安装程序,自己下载相应版本的jdk-7u80-linux原创 2015-12-16 21:10:24 · 627 阅读 · 0 评论 -
ubuntu 14.04 安装flash插件
在source.list中添加下载地址:deb http://archive.canonical.com/ubuntu trusty partnerdeb-src http://archive.canonical.com/ubuntu trusty partnersudo apt-get updatesudo apt-get install adobe-flas原创 2015-11-29 19:05:56 · 674 阅读 · 0 评论 -
kvm 安装虚拟机
使用virt-install: (1) qemu-img create -f qcow2 ./centos.img 15G (2) virt-install –name centos7 –ram 2048 –disk path=./images/centos7.qcow2,size=10 –vcpus 2 –os-type linux –os-variant rhel7 –network bri原创 2016-12-12 22:24:16 · 902 阅读 · 0 评论 -
动态链接库 路径配置
配置环境变量LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/li原创 2017-01-05 21:53:22 · 1970 阅读 · 0 评论 -
kvm 虚拟机编译dpdk
kvm 虚拟机编辑安装dpdk原创 2016-12-14 09:45:20 · 1568 阅读 · 0 评论 -
CentOS 7升级内核
(1)导入elrepo的keyrpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org(2)安装 elrepo 源rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm(3)在yum的ELRepo源中,mainline 为最新版本的内核安装 ml转载 2016-12-14 09:40:01 · 641 阅读 · 0 评论 -
编程中常用到的一些代码[转]
本文都是些很基本的东西,但每次用都要找,索性整理在一起,方便以后查(Ctrl+C)阅(Ctrl+V)1、手动扩栈(C++)pragma comment(linker, "/STACK:102400000,102400000") 2、memsetmemset(a,0,sizeof(a));//a[0]=0memset(a,255,sizeof(a));//a[0]=-1memset转载 2016-08-14 15:24:12 · 940 阅读 · 0 评论 -
repair windows ntfs part on ubuntu
(1) use the follow command to show the position of partition fdisk -l (2) install the repair tool sudo apt-get install ntfs-3g. Then run the ntfsfix command on your NTFS partition. (3) repair: ntf原创 2015-08-02 21:27:46 · 431 阅读 · 0 评论 -
Chromium 34 and later cannot detect flash plugin
original website: http://askubuntu.com/questions/449103/chromium-34-and-later-cannot-detect-flash-pluginChromium 34 in the main repos have started using Aura (early), which does not include support for转载 2015-08-02 10:04:27 · 846 阅读 · 0 评论 -
Cleanup Unused Linux Kernels in Ubuntu
original website: http://markmcb.com/2013/02/04/cleanup-unused-linux-kernels-in-ubuntu/I update Ubuntu with a very simple script I call apt-update that looks like this:$ cat ./apt-update sudo apt-get转载 2015-08-02 14:41:48 · 1044 阅读 · 0 评论 -
搜狗拼音 sogou_pinyin_linux for openSUSE 发布
#1楼 由marguerite » 周六 4月 19日, 2014年 7:52 pm坛子里的诸君:相信大家都已经饥渴难耐了吧. 其实早在发布前 Debian 的 Aron (嗯, 我不太喜欢称之为 Ubuntu Kylin 的 Aron, 原因自己想) 就已经知会了我, 所以发布当晚我就拿到软件了 (你们都是第二天才看到的), 只是当时在准备 Cinnamon 的 2转载 2014-05-02 21:33:58 · 5778 阅读 · 0 评论 -
add chinese input for linux
original site:http://www.pinyinjoe.com/linux/ubuntu-12-chinese-setup.htm Installing Chinese fonts and input methods in Ubuntu 12, 13, and 14 is very similar to my instructions for recent version转载 2014-04-30 17:36:29 · 4782 阅读 · 0 评论 -
Ubuntu 13.10 14.04 用sogou拼音输入法替换ibus
Ubuntu 13.10 用sogou拼音输入法替换ibusUbuntu 13.10的ibus输入法有点问题,怎么也不能在emacs 24.3中输入中文。最后决定切换到fcitx,发现这个相当不错,居然可以安装搜狗和Google输入法。毫不犹豫,试吧。首先删除掉原来的系统输入法:killall ibus-daemonsudo apt-get purge ibus ibus-转载 2014-05-02 18:55:16 · 3057 阅读 · 0 评论 -
how to deal with the situation that the language support option disappears in linux ubuntu
i just want to install a kind of Chinese pinyin in my linux ubuntu, but i can not find the language supprt原创 2014-05-02 18:13:41 · 974 阅读 · 0 评论 -
Chinese Input Methods in Ubuntu 14, 13, 12, 11, and 10(How to Set Up Ubuntu Chinese IMEs)
original site:http://www.pinyinjoe.com/linux/ubuntu-10-chinese-input-pinyin-chewing.htm« Ubuntu 12/13/14 Install/Setup « 11 Install/Setup « 10 Install/Setup Chinese Fonts »How to S转载 2014-05-02 18:24:06 · 5997 阅读 · 0 评论 -
how to install the liunx ubuntu with U-disk
copy the *.iso to the U ,and open the syslinux/syslinux.cfg with notepod,change the原创 2014-04-30 16:13:13 · 1284 阅读 · 0 评论 -
install QQ in linux ubuntu
i am just using linux ,and i want to install QQ in the system. maybe this is a little原创 2014-04-30 17:11:31 · 1479 阅读 · 0 评论 -
Installing Software in Ubuntu(get from other website)
IntroductionInstalling 101: Software CenterManual download: .debLast resorts: .rpm and .tar.gzLinksAdvanced interface: Synaptic Package ManagerIntroductionMost Windows users who migrat转载 2014-04-30 16:59:02 · 926 阅读 · 0 评论 -
ubuntu 14 install QQ
在/etc/apt/source.list文件中添加: deb http://packages.linuxdeepin.com/deepin trusty main non-free universe 1$sudo apt-get update1$ sudo apt-ge转载 2014-08-20 14:59:06 · 873 阅读 · 0 评论 -
nbuntu 14.04 安装fcitx 修复光标闪烁 系统设置工具不全
(1)为了安装fcitx的中文输入法将ibus的输入法全部卸载:sudo apt-get remove ibus*sudo apt-get autoremovesudo apt-get update(2)之后安装fcitx输入法:sudo apt-get install fcitx-table-wbpy(3)之后,却发现设置工具少了很多,肯定是卸载ibsus的时候给卸载掉啦转载 2015-01-28 22:21:59 · 1422 阅读 · 0 评论 -
error of mininet on ubuntu 12.04
when using the follow command to clean mininet, a error[not a bug] will produce command: sudo mn -c error: sudo mn -c * Removing excess controllers/ofprotocols/ofdatapaths/pings/noxes killall -9原创 2015-08-01 15:55:47 · 1263 阅读 · 0 评论 -
ubuntu安装和卸载MAC主题
ubuntu安装和卸载MAC主题安装sudo add-apt-repository ppa:noobslab/themes sudo apt-get update sudo apt-get install mac-ithemes-v3 sudo apt-get install mac-icons-v3卸载cd /usr/share/icons/mac-cursors && sudo ./uni转载 2015-07-26 12:10:34 · 1989 阅读 · 0 评论 -
solution for cannot open full screen for ubuntu on virtualbox
sudo apt-get remove libcheese-gtk23sudo apt-get install virtualbox-guest-x11sudo apt-get install virtualbox-guest-dkmssudo apt-get install virtualbox-guest-addition-iso原创 2015-07-25 22:27:00 · 592 阅读 · 0 评论 -
ubuntu 内核的安装与切换
sudo add-apt-repository ppa:danielrichter2007/grub-customizer 90 sudo apt-get update 91 sudo apt-get install grup-customizer转载 2015-03-28 11:12:42 · 7529 阅读 · 0 评论 -
the solution for firefox cannot access google
In the past, I installed two system on my computer. I cannot access google on ubuntu, but windows do it. I can not understand it. One day, I realize may be the firefox cause that.then I change to ch原创 2015-02-02 17:57:11 · 655 阅读 · 0 评论 -
the first try for clang
In the past, a always work on the windows. but now, i want to try on ubuntu. just begin with clang.install clang on ubuntu from software center.the codes below is for test.#includeint main()原创 2015-01-30 11:02:42 · 739 阅读 · 0 评论 -
set a openDNS for linux ubuntu 14.04
noting to say, always the following commands:(1)modify headsudo gedit /etc/resolvconf/resolv.conf.d/headthen add the follow addresses:nameserver 208.67.222.222nameserver 208.67.220.220namese原创 2015-01-31 20:06:04 · 1019 阅读 · 0 评论 -
linux ubuntu 14.04安装JDK
original :http://www.cnblogs.com/plinx/archive/2013/06/01/3113106.html具体步骤参详了如下链接:http://blog.csdn.net/yang_hui1986527/article/details/6677450 1、到 Sun 的官网下载http://www.oracle.com/转载 2015-01-31 16:47:00 · 498 阅读 · 0 评论 -
how to edit the grub to change the sequance of system
recently, i install a ubuntu 14.04 under the host of win7. the linux can load the system with grub, but it allways原创 2014-04-30 16:37:07 · 679 阅读 · 0 评论