你查看的存档文件来自 - Uncategorized category.

修改 ubuntu 分区,增加空间

Posted 5 months ago at 3:19 pm. 0 comments

一开始分区是 / 3G,/home 大约12G,很快发现系统 3G 空间根本不够!

df -h

查看空间使用情况。

用 ubuntu 安装盘(livecd)启动,系统-系统管理-分区编辑器,实际上就是

sudo gparted

resize 分区即可。需要一些时间。如果还有其它 linux 系统也可以在那里修改分区,前提是必须将此分区 unmount。

Popularity: 24% [?]

No tag for this post.

ubuntu 安装多媒体支持

Posted 5 months ago at 3:12 pm. 0 comments

再也不需要东找西找了,加入这个 Medibuntu 源就行了。主要是 win32codecs

https://help.ubuntu.com/community/Medibuntu

然后

安装多媒体解码器,输入命令

* Xine多媒体引擎解码器

sudo apt-get install libxine1-ffmpeg libxine1-all-plugins libxine1-plugins w32codecs gcc-3.3-base libstdc++5

* Gstreamer多媒体引擎解码器

sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-esd

* DVD影碟功能支持

sudo apt-get install libdvdnav4 libdvdread3 libdvdcss2

配置电影播放器

sudo apt-get remove totem-mozilla -y
sudo apt-get install smplayer smplayer-themes mozilla-mplayer

配置音乐播放器,输入命令

sudo apt-get install gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gnonlin libflashsupport

Popularity: 23% [?]

Tags: ,

什么是 Maemo

Posted 6 months, 2 weeks ago at 3:23 am. 0 comments

诺基亚的开源linux平台。

Maemo is an open source development platform to create applications for Nokia Internet Tablet products like Nokia N800 and Nokia 770. The platform gives developers a powerful Linux based development environment and optimized end-user interface for handhelds.

Popularity: 22% [?]

Tags: ,

有效使用linux的7个好习惯

Posted 7 months ago at 1:09 am. 0 comments

不用使用root登录,原因:

  1. Well imagine you’re on the trapeze without a safety net,
    frightening isn’t it? Well that’s effectively what you are doing when
    you login as root, you can inadvertently hose your whole system
  2. You are at the risk of running malware. Any program that is started under root mode will automatically be given root privileges
  3. If there is a common security hole that hasn’t been patched yet, you could be totally “pwned”
  4. It’s common Unix convention, never run anything in root
    mode unless absolutely necessary. If a non-admin program asks for root
    access, you should be suspicious

尽量使用 su,sudo,gksu,kdesu

  • Use “sudo” or “su” , and kill the session when your done
  • If you don’t know how to do it in the command line, use “gksu” or “kdesu”. For example, press alt+f2 and type “gksu nautilus“. Close the app as soon as you finish

注意文件命名

  • As a rule of thumb, only use alphanumeric characters, hyphens, periods, and underscores
  • Avoid special symbols like dollar signs, brackets, and
    percentages. These symbols have special meanings to the shell, and
    could cause conflicts
  • Avoid using spaces, handling files with spaces in the
    terminal is kind of awkward. Replace spaces with either hyphens or
    underscores

把 /home 放在不同的分区

杀死崩溃进程

  1. I have the “force quit” applet on my taskbar, if any app
    starts to act up just click on the “force quit” icon and then kill the
    app
  2. If that doesn’t work, draw up a terminal and type “ps -A” , and take note of the Process ID (PID) of the culprit app, then kill it. “kill PID”
  3. Use the “killall” command, for example, “killall firefox-bin”
  4. If your whole GUI is frozen, and drawing up a terminal is
    impossible, then press CTRL-ALT-F1, this will take you to another
    terminal, and virtually a whole new session. From there kill the
    culprit app using step 2 and 3.
  5. If that doesn’t work, you might want to restart your GUI
    using the CTRL-ALT-Backspace combo. Beware, that this will kill all
    your GUI apps currently running
  6. Invoke CTRL-ALT-F1 and do CTRL+ALT+DEL from here. This
    will not instantly reset your system, merely perform a standard reboot,
    it’s safe. (Assuming you want to restart and CTLR-ALT-F1 works)
  7. Finally if nothing works, don’t rush to the hard reset button, try to Raise a Skinny Elephant

体验不同的发行版

via http://hehe2.net/linux-general/the-7-habits-of-highly-effective-linux-users/

Popularity: 19% [?]

No tag for this post.

WinSCP - SSH协议文件传输软件

Posted 7 months, 2 weeks ago at 8:13 pm. 0 comments

WinSCP 是一个支持SSH(Secure SHell)的SCP(Secure CoPy)文件传输软件.只要文件主机支持SSH协定,你就可以安心的下载、上传文件.它的操作界面是参考NC(Norton Commander)的双视窗排列方式,使用起来不会有太大的困难.在WinSCP中,一般的文件操作都没有问题,如:复制、移动、更名文件或文件夹等.

http://prdownloads.sourceforge.net/winscp/winscp410setup.exe

Tags:

Popularity: 20% [?]

No tag for this post.

Savage 2 Linux 客户端

Posted 7 months, 2 weeks ago at 6:27 pm. 0 comments

Savage 2: A Tortured Soul (《野人 2:受折磨的灵魂》) 这款游戏由 S2 Games 所开发,该游戏为《野人:纽维斯战役》的续作,组合了即时战略和第一人称射击两种游戏类型。日前,Savage 2 推出了 Linux 平台的客户端,支持 32 位和 64 位系统。现在,Linux 玩家也可加入 Savage 2,与其他平台的玩家一同参与游戏了。

http://phorolinux.com/how-to-install-savage-2-a-tortured-soul-on-linux.html

Popularity: 17% [?]

No tag for this post.

hp 3239(3240) 笔记本电脑安装 ubuntu feisty

Posted 9 months, 2 weeks ago at 11:32 am. 1 comment

我用的是 feisty herd4 的光盘。

ubuntu broadcom无线网卡配置

无线网卡是Broadcom的,在ubuntu下安装相当简单

sudo apt-get install bcm43xx-fwcutter

接下来在“联网”里把无线网卡激活便是了

guoshuang2007-06-14+ if u can not download that .so file from xxxx.googlepage.com.u can read things below

On ubuntu, you can sudo aptitude install bcm43xx-fwcutter, download this file: http://drinus.net/airport/wl_apsta.o and sudo bcm43xx-fwcutter -w /lib/firmware wl_apsta.o (you might need to replace /lib/firmware with /lib/firmware/`uname -r`)

I expect ti would be the smae for gentoo but emerge bcm43xx-fwcutter rahter than sudo aptitudei sntall bcm43xx-fwcutter or soemthing… I’ve never used gentoo…

or u can visit this post 在 ubuntu 源内找 .deb 文件

ubuntu nvidia 6150 显卡驱动

nvidia 官方linux drivers站点找到你需要的最新驱动。如果不是64位 ubuntu 安装 Linux IA32 即可。64 位 AMD 选择 Linux AMD64/EM64T。我使用的是这个 NVIDIA-Linux-x86-1.0-9755-pkg1.run

注意: 官方的 us.download.nvidia.com… 速度慢,把前面改成 cn.download.nvidia.com… 即可。

安装步骤:

1. ctrl+alt+f1 切换到 tty 1

2. /etc/init.d/gdm stop
关掉 x window

3. sudo apt-get install linux-headers-$(uname -r) build-essential
安装 libc 等编译环境

4. sudo sh NVIDIAxxxxxxxx.run
根据提示信息执行编译即可。

5. /etc/init.d/gdm start
重新进入 x window

声卡驱动

3239 的声卡在 windows 下显示为 Conexant hight definition audio,在 ubuntu 下会识别为 HDA NVidia(Alsa mixer)(还可以选择 Conexant CX20549 Venice OSS Mixer,但我没有选)。刚开始没有声音,几天之后(估计是哪个 update 的缘故,很可能是内核 2.16.20 的原因)就有了。

把网络加密了还不满意?让我们暗度陈仓,把非授权使用者拒之门外吧。IP806LM提供LAN和Internet访问控制功能,并可以分别控制。首先要让笔记本连接上无线AP,然后在“无线”页面的“访问控制”中选择“只允许选取的无线客户端”,再点“选择客户端”。选中允许访问的计算机名就可以了。 LAN和Internet访问控制的设置大同小异,截图为LAN控制方式。没被允许的连接,即使它能连接上无线AP,也无法连接LAN和 Internet,只好望洋兴叹了。

conexant high definition audio
http://ubuntuforums.org/showthread.php?p=2251034
http://forum.openrays.org/read.php?tid=4105
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=168685&highlight=high+definition+audio
http://bbs.chinaunix.net/archiver/?tid-901216.html

lspci

00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)

Popularity: 100% [?]

Tags: , , ,

VI编辑器热键功能

Posted 9 months, 2 weeks ago at 11:32 am. 1 comment

关闭窗口:
:q
退出vi且不保存编辑:
:qa!
移动光标类命令:
H:光标左移一个字符
I:光标右移一个字符
Space:光标右移一个字符
Backspace:光标左移一个字符
K或Ctrl+P:光标上移一行
J或Ctrl+N :光标下移一行
Enter:光标下移一行
w或W:光标右移一个字至字首
b或B:光标左移一个字至字首
e或E:光标右移一个字j至字尾
):光标移至句尾
(:光标移至句首
}:光标移至段落开头
{:光标移至段落结尾
nG:光标移至第n行首
n+:光标下移n行
n-:光标上移n行
n$:光标移至第n行尾
H :光标移至屏幕顶行
M:光标移至屏幕中间行
L :光标移至屏幕最后行
0:(注意是数字零)光标移至当前行首
$:光标移至当前行尾
nG——跳转命令。n为行数,该命令立即使光标跳到指定行。
Ctrl+G——光标所在位置的行数占据总高的百分比。

屏幕翻滚类命令
Ctrl+u:向文件首翻半屏
Ctrl+d:向文件尾翻半屏
Ctrl+f:向文件尾翻一屏
Ctrl+b;向文件首翻一屏
nz:将第n行滚至屏幕顶部,不指定n时将当前行滚至屏幕顶部。

编辑命令
i、a、r——在光标的前、后以及所在处插入字符命令(i=insert、a=append、r=replace)。
cw、dw——改变(置换)/删除光标所在处的单词的命令 (c=change、d=delete)。
x、d$、dd——删除一个字符、删除光标所在处到行尾的所有字符以及删除整行的命令。

插入文本类命令
i :在光标前
I :在当前行首
a:光标后
A:在当前行尾
o:在当前行之下新开一行
O:在当前行之上新开一行
r:替换当前字符
R:替换当前字符及其后的字符,直至按ESC键
s:从当前光标位置处开始,以输入的文本替代指定数目的字符
S:删除指定数目的行,并以所输入文本代替之
ncw或nCW:修改指定数目的字
nCC:修改指定数目的行

Vi编辑器的基本使用方法!
1、vi的基本概念
基本上vi可以分为三种状态,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mode),各模式的功能区分如下:
1) 命令行模式command mode)
控制屏幕光标的移动,字符、字或行的删除,移动复制某区段及进入Insert mode下,或者到 last line mode。
2) 插入模式(Insert mode)
只有在Insert mode下,才可以做文字输入,按「ESC」键可回到命令行模式。
3) 底行模式(last line mode)
将文件保存或退出vi,也可以设置编辑环境,如寻找字符串、列出行号……等。不过一般我们在使用时把vi简化成两个模式,就是将底行模式(last line mode)也算入命令行模式(command mode)。
2、vi的基本操作
a) 进入vi
在系统提示符号输入vi及文件名称后,就进入vi全屏幕编辑画面:
$ vi myfile
不过有一点要特别注意,就是您进入vi之后,是处于「命令行模式(command mode)」,您要切换到「插入模式(Insert mode)」才能够输入文字。初次使用vi的人都会想先用上下左右键移动光标,结果电脑一直哔哔叫,把自己气个半死,所以进入vi后,先不要乱动,转换到「插入模式(Insert mode)」再说吧!
b) 切换至插入模式(Insert mode)编辑文件
在「命令行模式(command mode)」下按一下字母「i」就可以进入「插入模式(Insert mode),这时候你就可以开始输入文字了。
c) Insert 的切换
您目前处于「插入模式(Insert mode)」,您就只能一直输入文字,如果您发现输错了字!想用光标键往回移动,将该字删除,就要先按一下「ESC」键转到「命令行模式(command mode)」再删除文字。
d) 退出vi及保存文件
在「命令行模式(command mode)」下,按一下「:」冒号键进入「Last line mode」,例如:
: w filename (输入 「w filename」将文章以指定的文件名filename保存)
: wq (输入「wq」,存盘并退出vi)
: q! (输入q!, 不存盘强制退出vi)
3、命令行模式(command mode)功能键
1). 插入模式
按「i」切换进入插入模式「insert mode」,按“i”进入插入模式后是从光标当前位置开始输入文件;
按「a」进入插入模式后,是从目前光标所在位置的下一个位置开始输入文字;
按「o」进入插入模式后,是插入新的一行,从行首开始输入文字。
2). 从插入模式切换为命令行模式
按「ESC」键。
3). 移动光标
vi可以直接用键盘上的光标来上下左右移动,但正规的vi是用小写英文字母「h」、「j」、「k」、「l」,分别控制光标左、下、上、右移一格。
按「ctrl」+「b」:屏幕往“后”移动一页。
按「ctrl」+「f」:屏幕往“前”移动一页。
按「ctrl」+「u」:屏幕往“后”移动半页。
按「ctrl」+「d」:屏幕往“前”移动半页。
按数字「0」:移到文章的开头。
按「G」:移动到文章的最后。
按「$」:移动到光标所在行的“行尾”。
按「^」:移动到光标所在行的“行首”
按「w」:光标跳到下个字的开头
按「e」:光标跳到下个字的字尾
按「b」:光标回到上个字的开头
按「#l」:光标移到该行的第#个位置,如:5l,56l。
4). 删除文字
「x」:每按一次,删除光标所在位置的“后面”一个字符。
「#x」:例如,「6x」表示删除光标所在位置的“后面”6个字符。
「X」:大写的X,每按一次,删除光标所在位置的“前面”一个字符。
「#X」:例如,「20X」表示删除光标所在位置的“前面”20个字符。
「dd」:删除光标所在行。
「#dd」:从光标所在行开始删除#行
5). 复制
「yw」:将光标所在之处到字尾的字符复制到缓冲区中。
「#yw」:复制#个字到缓冲区
「yy」:复制光标所在行到缓冲区。
「#yy」:例如,「6yy」表示拷贝从光标所在的该行“往下数”6行文字。
「p」:将缓冲区内的字符贴到光标所在位置。注意:所有与“y”有关的复制命令都必须与“p”配合才能完成复制与粘贴功能。
6). 替换
「r」:替换光标所在处的字符。
「R」:替换光标所到之处的字符,直到按下「ESC」键为止。
7). 回复上一次操作
「u」:如果您误执行一个命令,可以马上按下「u」,回到上一个操作。按多次“u”可以执行多次回复。
8). 更改
「cw」:更改光标所在处的字到字尾处
「c#w」:例如,「c3w」表示更改3个字
9). 跳至指定的行
「ctrl」+「g」列出光标所在行的行号。
「#G」:例如,「15G」,表示移动光标至文章的第15行行首。
4、Last line mode下命令简介
在使用「last line mode」之前,请记住先按「ESC」键确定您已经处于「command mode」下后,再按「:」冒号即可进入「last line mode」。
A) 列出行号
「set nu」:输入「set nu」后,会在文件中的每一行前面列出行号。
B) 跳到文件中的某一行
「#」:「#」号表示一个数字,在冒号后输入一个数字,再按回车键就会跳到该行了,如输入数字15,再回车,就会跳到文章的第15行。
C) 查找字符
「/关键字」:先按「/」键,再输入您想寻找的字符,如果第一次找的关键字不是您想要的,可以一直按「n」会往后寻找到您要的关键字为止。
「?关键字」:先按「?」键,再输入您想寻找的字符,如果第一次找的关键字不是您想要的,可以一直按「n」会往前寻找到您要的关键字为止。
D) 保存文件
「w」:在冒号输入字母「w」就可以将文件保存起来。
E) 离开vi
「q」:按「q」就是退出,如果无法离开vi,可以在「q」后跟一个「!」强制离开vi。
「qw」:一般建议离开时,搭配「w」一起使用,这样在退出的时候还可以保存文件。
5、vi命令列表
1、下表列出命令模式下的一些键的功能:
h
左移光标一个字符
l
右移光标一个字符
k
光标上移一行
j
光标下移一行
^
光标移动至行首
0
数字“0”,光标移至文章的开头
G
光标移至文章的最后
$
光标移动至行尾
Ctrl+f
向前翻屏
Ctrl+b
向后翻屏
Ctrl+d
向前翻半屏
Ctrl+u
向后翻半屏
i
在光标位置前插入字符
a
在光标所在位置的后一个字符开始增加
o
插入新的一行,从行首开始输入
ESC
从输入状态退至命令状态
x
删除光标后面的字符
#x
删除光标后的#个字符
X
(大写X),删除光标前面的字符
#X
删除光标前面的#个字符
dd
删除光标所在的行
#dd
删除从光标所在行数的#行
yw
复制光标所在位置的一个字
#yw
复制光标所在位置的#个字
yy
复制光标所在位置的一行
#yy
复制从光标所在行数的#行
p
粘贴
u
取消操作
cw
更改光标所在位置的一个字
#cw
更改光标所在位置的#个字

2、下表列出行命令模式下的一些指令
w filename
储存正在编辑的文件为filename
wq filename
储存正在编辑的文件为filename,并退出vi
q!
放弃所有修改,退出vi
set nu
显示行号
/或?
查找,在/后输入要查找的内容
n
与/或?一起使用,如果查找的内容不是想要找的关键字,按n或向后(与/联用)或向前(与?联用)继续查找,直到找到为止。

对于第一次用vi,有几点注意要提醒一下:
1、用vi打开文件后,是处于「命令行模式(command mode)」,您要切换到「插入模式(Insert mode)」才能够输入文字。切换方法:在「命令行模式(command mode)」下按一下字母「i」就可以进入「插入模式(Insert mode)」,这时候你就可以开始输入文字了。
2、编辑好后,需从插入模式切换为命令行模式才能对文件进行保存,切换方法:按「ESC」键。
3、保存并退出文件:在命令模式下输入:wq即可!

Popularity: 16% [?]

Tags:

ubuntu 下的音乐播放器

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

Beep Media Player
简单的播放器

Banshee
音乐管理和播放
Import, organize, play, and share your music using Banshee’s simple, powerful interface.
Rip CDs, play and sync your iPod, create playlists, and burn audio and MP3 CDs. Most portable music devices are supported.

Rhythmbox
带 Album 管理的播放器

Listen

据说是最好的音乐播放器。

A nice music player and manager for GNOME

With Listen you can:

- Play your favorite songs
- Manage your library
- Make playlists
- Automatically or manually download album covers
- Automatically synchronize album covers with iPod
- Easily burn an audio CD
- Directly get informations from wikipedia when you play a song
- See the lyrics of a song
- Have statistics about your favorite songs, albums or artists
- Listen to web radio
- Submit your songs to Audioscrobbler
- Quick access to last.fm related file

XMMS
老牌播放器,现在显得有点过时了。

quod libet

amarok
KDE下的播放器。功能强大。我喜欢它的 win+b 下一首歌快捷键,以及显在在系统托盘功能。

Muine Music Player
简洁、舒适的播放器

mplayer
强大的播放器,甚至可以在tty终端中播放。就是图形界面差了些。

kaffeine
KDE 音乐播放器。

Juk
KDE 播放器

Quod Libet
Quod Libet is a GTK+-based audio player written in Python. It’s designed around the idea that you know how to organize your music better than we do. It lets you make playlists based on regular expressions (don’t worry, regular searches work too). It lets you display and edit any tags you want in the file. And it lets you do this for all the file formats it supports — Ogg Vorbis, FLAC, MP3, Musepack, and MOD.

exaile

Exaile
is a music player aiming to be similar to KDE’s Amarok, but for GTK+ and written in Python.

Decibel Audio Player

Decibel Audio Player is a GTK+ open-source (GPL license) audio player designed for GNU/Linux, which aims at being very straightforward to use by mean of a very clean and user friendly interface. It is especially targeted at Gnome and will follow as closely as possible the Gnome HIG.

相关日志:

linux mp3 中文乱码问题
ubuntu 媒体
Guide to Best Linux [Ubuntu (GNOME)] Applications
ubuntu 下中文字幕问题
ubuntu 下让 totem 播放 rmvb
ubuntu feisty amd64 播放 rmvb 问题

Popularity: 63% [?]

Tags: , , , , , , , , , , , , ,

feisty 安装 NTFS 分区写入支持

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

读 ntfs 分区本来就没问题。要加入NTFS分区写入支持,在 feisty 中很容易。直接安装 ntfs-config 即可

sudo apt-get install ntfs-config

打开 系统工具 - NTFS 写入支持配置程序,勾选 启用内(外)部设备写支持即可。以后就可以写 NTFS 分区了。

Widows NTFS Partitions Read/write support made easy in Ubuntu Feisty

相关日志:

windows 查看 linux 分区工具
windows 访问ubuntu 目录 SMB

Popularity: 34% [?]

Tags: , , , , , , , ,

ad 468x60