Category Archives: linux

记录一下matlab 2011a的安装过程

挂载iso sudo mkdir /media/iso sudo mount -o loop matlab.iso /media/iso cd /media/iso ./install 安装完毕后,修改字体,使中文显示不再是方框。 mkdir /$PATH/MATLAB/R2011a/sys/java/jre/glnx86/jre/lib/fonts/fallback 此处目录名字必须时 fallback,不然会蛋疼。 复制中文字体到这里 mkfontscale chmod +w ../fonts.dir mkfontdir 大功告成,现在中文显示正常了, 添加启动按钮,不用每次都要进入shell去运行 /$PATH/MATLAB/R2011a/bin/matlab -desktop 这样就可以点击图标来运行matlab了, 一个简洁的(装b的用法,在终端输入 matlab -nojvm -nosplash)

Posted in linux, math, 软件 | 2 Comments

scrot 截图脚本第三期,让兲朝淫不再被imgur鄙视

突然发现imgur.com无法使用匿名api上传图片了,提示是 we’re really sorry,but anonymous uploading in your country has been disabled,please register for an account and try anain. 看到这个消息真是泪流满面啊,不过这点小事怎么挡得住贫僧的智慧呢。 因为anonymous api使用的是curl上传图片的,几经辗转,想到用proxy来解决这个问题,结果果然解决了。 cURL真的很强大,proxy都支持很多的形式。 在我的脚本前面加一句 curl –socks5-hostname 127.0.0.1:7070 这样设置后,就可以通过代理来继续上传图片了。 不得不说一句,ownssh.com 的代理服务现在是做的越来越好了,速度也越来越快了,客服也很起作用。 关于ownssh卖的ssh的更多情况,请参考:http://www.leyle.com/archives/361156 http://www.leyle.com/myfile/shot.sh 另存为这个脚本就行了,oyes。 关于给截图脚本绑定快捷键可以参考:http://www.leyle.com/archives/351001

Posted in linux, 脚本 | Leave a comment

thinkpad x201 ubuntu 10.04 使用小红点 tracepoint 滚动网页

参考:http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint#GPointing_Device_Settings 在ubuntu 10.04中,会出现自己的配置在重启机器后被还原为默认的情况,所以,使用ubuntu 10.04的时候,需要写死配置, 方法: Create the file /usr/lib/X11/xorg.conf.d/20-thinkpad.conf as root with the following content: Section "InputClass" Identifier "Trackpoint Wheel Emulation" MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / … Continue reading

Posted in linux | Leave a comment

freerdp,linux下远程连接windows的好软件,比rdesktop好一百倍阿。

rdesktop 连接windows机器太慢了,鼠标移动都在卡,一直想找一个好用的不卡的软件, 偶然在ubuntu-cn 的irc里面听说了freerdp,编译安装后,果然好用,现在记录下来。 官方网站:http://www.freerdp.com/ 官方HOW TO:http://www.freerdp.com/wiki/doku.php?id=documentation:userdocs:xfreerdp_howto 我使用到的命令是: xfreerdp -u administrator -p 123 -f –plugin rdpdr –data disk:administrator:/media/folder — 172.14.2.101 功能说明: 1、连接机器ip地址是 172.14.2.101, 2、登录远程机的账户密码是:-u administrator -p 123 3、使用全屏浏览: -f 4、把本地的/media/folder目录共享给远程机, 其中disk:后面先接远程机的用户名,然后才是本地目录路径: –plugin rdpdr –data disk:administrator:/media/folder 注意的事项: 1、从远程机的全屏切换回来的快捷键是:ctrl+alt+enter 2、在挂载了共享给远程机的目录后,远程机的ip地址前面有一个空格,然后才是双短横 — ,而其他地方的双短横都是紧接命令的。 … Continue reading

Posted in linux, 软件 | Leave a comment

ubuntu 11.04 中 修改grub2 菜单中默认启动项的方法

在grub2中,修改这个要复杂一些, 具体方法是,首先打开 1、gedit /boot/grub/grub.cfg 参看要被设置成默认启动的系统的序号是多少,注意,这个顺序是从0开始的是, (这里手动数出来自己要设置的系统是第几个需要多注意一些) 2、然后打开 gedit /etc/default/grub 修改 GRUB_DEFAULT=0 中的 0值为你数出来的那个默认启动系统的值,修改后保存关闭 3、运行 sudo update-grub 大功告成。

Posted in linux | Leave a comment