03 2014 档案
虚拟机磁盘移动位置后失效解决办法
摘要:http://forums.gentoo.org/viewtopic-t-908100-start-0.htmli have been using VirtualBox for W7 on my Gentoo machine, without any problems for quite some time.I have given my virtual disk /mnt/w7/Windows_7.vdi a separate partition /dev/hda1 of size 26 GB. Now the size of the virtual disk has grown and I
阅读全文
vbox 虚拟机添加usb
摘要:先装扩展包。vbox 所在的用户组比如要包括当前用户才行。查看当前用户名:sharl@sharl-laptop:~$ whoamisharl查看vbox 所在的组:sharl@sharl-laptop:~$ cat /etc/group | grep vboxvboxusers:x:125:sharl将当前用户加入vbox组:usermod -a -G vboxusers sharl即可。此时,重启系统。再次打开虚拟机,果然,USB设备都已经被识别、访问到了。这些,在“设备”菜单下就可以看到。
阅读全文
ubuntu 挂载虚拟机vdi文件
摘要:sudo apt-get install nbd-server nbd-client qemu-kvm# rmmod nbd# modprobe nbd max_part=8# qemu-nbd--connect=/dev/nbd0 test.vdi# mount /dev/nbd0p1 file(挂载点)其他地方看到的其他方法没试过# qemu-nbd -c /dev/nbd0 test.vdi# qemu-nbd -d /dev/nbd0 virtualbox-fuse需要卸载 virtualbox
阅读全文
matlab 调试日志
摘要:debug=1;diary offif debugdelete('log.txt');!del log.txtdiary('log.txt');diary ONenddiary OFF
阅读全文
Ubuntu 12.04 Desktop下vncserver配置:Unity以及Xfce4桌面环境
摘要:将gnome改成xfce xfce-session 即可2013-01-30 14:45:34|分类:Ubuntu|标签:ubuntu12.04unityvncserverssh远程桌面|举报|字号订阅 本文只适用于Ubuntu 11.04 Desktop以后的桌面环境,由于Ubuntu从11.04开始默认采用Unity作为它的桌面环境,因此之前网上对于Ubuntu早期版本的GNOME桌面环境的VNC配置都不适用。网上费了好大的功夫终于找到一篇能用的博客,首先感谢Minqiang Chen网友的博文,链接送上:http://blog.ptpt52.info/2012/08/ubuntu-120
阅读全文
六招让你的Ubuntu马上提速
摘要:Chris HoffmanUbuntu的启动速度非常快,按了开机键之后很快就进入桌面。但我们仍然可以充分利用内存,通过多种方法让开机速度更快。某些方法真的可以提速,对于旧电脑的效果尤其明显。选用轻量级的桌面环境,关闭不必要的应用程序,可以让一台旧电脑如释重负。如果强行在旧电脑上运行Ubuntu的Unity桌面环境,系统的速度会拖得很慢很慢。预载(Peload)预载是一个后台服务,可监控系统上使用的程序。它能找出程序使用的库(libraries)和二进制文件(binaries),预先加载到内存中,使程序的启动速度更快。例如,你可能经常在开机后打开Firefox浏览器和LibreOffice,那么
阅读全文
ubuntu 双硬盘挂载 windows分区自动挂载
摘要:sudo fdisk -l查看硬盘情况1:新建一个目录,例:old2:mount /dev/sdb1 old3:cd old4:ls (就可以看到新硬盘的内容了)取消挂载:umountold挂载虚拟卷的方法1:sudo vgchange -ay /dev/ubuntu2:sudo mount /de...
阅读全文
ubuntu下唤醒或休眠远程计算机
摘要:ubuntu让我明白,没有什么完美的东西,要想完美必须付出代价。要么花时间折腾,要么花时间赚钱买系统。人生也是一样,所以不要期待什么完美。哪有那么好的人,在合适的时间合适的地点让你遇见,还对你有感觉。凑合凑合过吧,nnd,需要时才找你,你就是个备胎。ubuntu很漂亮,但是很难伺候。xp很丑,但是很...
阅读全文
ubuntu默认启动方式修改 psensor命令
摘要:Check UUID sudo blkidThen sudo gedit /etc/default/grub & to pull up the boot loader configurationLook for the line GRUB_CMDLINE_LINUX="" and make sure it looks like this (using your UUID of course) GRUB_CMDLINE_LINUX="resume=UUID=41e86209-3802-424b-9a9d-d7683142dab7" and save
阅读全文
ubuntu 调节音量命令 声卡驱动
摘要:alsamixer安装驱动http://www.realtek.com/downloads/downloadsCheck.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=falsehttp://www.cnblogs.com/bigmengzi/archive/2011/11/22/2259601.html
阅读全文
在shell脚本里执行sudo 命令
摘要:可以 : echo "yourpasswd" |sudo -S yourcommand但是不安全,因为密码都显示在shell脚本里面了-_-引自http://hi.baidu.com/mgqw/blog/item/2824bb01ccd5570a7aec2cd9.htmlsuspend#!/bin/bashecho "123" |sudo -S s2ram --forcehibernate#!/bin/bashecho "123" |sudo -S s2disk
阅读全文
coursera国际法笔记 持续更新
摘要:LECTURE ONEInternational crime court(ICC) came into being after the Second World War. The Nuremberg tribunal.No excuse as simply obedience for orders.Being chief leaders is no excuse for impunity.Not all countries are parties to the ICC statute.China is not a member. America has signed it but not ra
阅读全文
swap分区不足ubuntu休眠
摘要:安装uswsuspUbuntu gnu/linux只需代码:sudo aptitude install uswsuspArch gnu/linux系统代码:sudo pacman -S uswsusp下面两段Ubuntu跳过, 直接看最后的让gnome(或者Hal)改用uswsusp方式休眠修改配置/etc/suspend.conf(Ubuntu已经自动配置好了且Ubuntu下的文件是/etc/uswsusp.conf)把代码:resume device = 中的改成你的swap分区如代码:resume device = /dev/sda2uswsusp还可以压缩内存镜像, 不仅能使swape
阅读全文
linux下如何添加一个用户并且让用户获得root权限 备用
摘要:(2010-12-02 09:58:30)转载▼标签:帐号权限杂谈分类:Linux测试环境:CentOS 5.51、添加用户,首先用adduser命令添加一个普通用户,命令如下:#adduser tommy//添加一个名为tommy的用户#passwd tommy//修改密码Changing password for user tommy.New UNIX password://在这里输入新密码Retype new UNIX password://再次输入新密码passwd: all authentication tokens updated successfully.2、赋予root权限方法
阅读全文
parfor slice
摘要:http://www.mathworks.cn/cn/help/distcomp/advanced-topics.htmlPARFOR loops work by dividing the iterations of the loop among manyworkers. Things work best when the inputs to the loop and outputs fromthe loop can also be divided in the same way. The simplest example mightbe:N = 10;in1 = rand(1, N);in2
阅读全文
ubuntu分辨率
摘要:http://askubuntu.com/questions/235507/xconfig-xrandr-badmatch先装驱动再说。今天开机发现ubuntu分辨率不正常只有1024×768, Displays选项卡下面最大的分辨率是1024×768。元芳,此事你怎么看?1.sun@ubuntu:~$ xrandrScreen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192VGA1 connected 1024x768+0+0 (normal left inverted right x axis
阅读全文
xubuntu无法进图形界面问题
摘要:http://www.ubuntugeek.com/fix-for-cant-login-after-upgrading-from-ubuntu-13-04-to-ubuntu-13-10.htmlI had the same problem and found a thread elsewhere that solved the problem in a different way.As above, at the login screen use Cntrl+Alt+F1 to open a terminal window and login at the command line ins
阅读全文
dl简单模板,无pretraining过程
摘要:layer_dimensions = [11 22 33 22 11]';ld_size = size(layer_dimensions , 1);% what is deal[x rx dx rdx y ry dy rdy dphi] = deal( cell( ld_size , 1 ) );[W rW dW rdW] = deal( cell( ld_size-1 , 1 ) );numsamples = 100;%initialize weight and x,y, always allo...
阅读全文
ubuntu远程失败xrdp重启命令
摘要:sudo/etc/init.d/xrdp restart
阅读全文
强制ubuntu登陆用户退出
摘要:#skill -KILL -u user1 杀死并注销user1。#skill -CONT -u user1 恢复user1。在Windows 2003默认情况下,三个以上就远程不了,必须强制登录把已登录的人踢出来。在已登录的用户中,可以通过任务管理器->用户->右键注销其他在线用户,你有没有想过在Linux如何实现呢。先用w查看在线用户。goface~#w11:53:14up53min,3users,loadaverage:0.00,0.01,0.05USERTTYFROMLOGIN@IDLEJCPUPCPUWHATrootpts/0192.168.1.811:110.00s0.
阅读全文
NumPy for MATLAB users
摘要:http://mathesaurus.sourceforge.net/matlab-numpy.htmlHelpMATLAB/OctavePythonDescriptiondochelp -i % browse with Infohelp()Browse help interactivelyhelp helpordoc dochelpHelp on using helphelp plothelp(plot)or?plotHelp for a functionhelp splinesordoc splineshelp(pylab)Help for a toolbox/library packag
阅读全文
浙公网安备 33010602011771号