vi file.txt: 创建或查看file.txt; 按i插入文本,按a添加文本。
光标移动——h、j、k、l(左、下、上、右)
删除字符——x
删除行——dd
模式切换——esc
退出不保存——:q!
强制推出并保存——:wq!
文本搜索——/
All posts by ht
*.iso & *.dmg mount
sudo mkdir /media/iso
sudo mount *.iso /media/iso -o loop
Vertify the partition mounted:
sudo df
(Parameters) Auto mount NTFS in Ubuntu
Identy the partition table using: sudo fdisk -l
Identy the partition UUID using: sudo blkid
Add the codes below in: /etc/fstab
# change the "UUID" to your partition UUID
UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0
Make a mount point (if needed)
sudo mkdir /media/windows
Now mount the partition
mount /media/windows
The options I gave you, auto, will automatically mount the partition when you boot and users allows users to mount and umount .
You can then use chown and chmod on the ntfs partition.
or:
sudo apt-get install ntfs-config
Harddisk UUID check in Ubuntu
方法一:
sudo blkid
方法二:
ls -l /dev/disk/by-uuid
Get the Soft-Hard information in Ubuntu
sudo apt-get install sysinfo
encode python using command-line arguments
import sys
print sys.argv
i=0
for a in sys.argv:
print ‘n argv%d: %s’ % (i, sys.argv[i])
i+=1
ubuntu-stardict-Dictionary Installation
StarDict will search the dictionary files at “~/.stardict/dic” and “/usr/share/stardict/dic”, and search tree dictionary files at “~/.stardict/treedict” and “/usr/share/stardict/treedict”
moves after install Ubuntu 12.04 LTS on X201 and the stuck problem
Moves:
1. install VirtualBox: sudo apt-get install virtualbox and configure it.
2. install gimp and inkscape inside application center.
3. transfer to the “universe source” by search the ffmpeg in application center and the using the source
4. try to play a rmvb video file and install the rm decoder according to the prompt.
The stuck problem:
Kill the dpkg process
and run: sudo dpkg –configure -a
Ubuntu搭建Django+Flup+Nginx环境
Ubuntu搭建Django+Flup+Nginx环境
[日期:2010-12-03] 来源:Linux社区 作者:Linux
首先我们必须明白这这3者在该环境下发挥的作用。
1.nginx:(“engine x”) 是一个高性能的 HTTP 和 反向代理 服务器,作用和apache的类似。它可以处理一些静态文件的请求,而对于动态的文件的请求,它可以通过fastcgi方式,来分发请求给不同的动态语言处理。
2.flup:本身是一个使用python写的web服务器软件,它可以接受nginx发来的请求,执行相应的python代码,将结果返回给nginx。
3.django:基于python的一个web框架,它可以我们做一些基础性的东西,比如cookie,session管理,模板机制,权限管理等等。
Continue reading Ubuntu搭建Django+Flup+Nginx环境
Add share folder in VirtualBox (Windows,Ubuntu,Solaris)
Install VirtualBox Guest Addition
You can manually mount the shared folder from inside a VM the same way as you would mount an ordinary network share:
Continue reading Add share folder in VirtualBox (Windows,Ubuntu,Solaris)