发新话题
打印

Ubuntu Linux学习笔记

Ubuntu Linux学习笔记

作者: Edu-Map.com/chinakr  日期: 2007-02-13
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

推荐公网用户使用官方在台湾的源

作者: Edu-Map.com/chinakr  日期: 2007-01-13

    官方的源的天然的好处是比较可靠。经过我自己的测试,在北京歌华宽带、北京网通和厦门长宽,Ubuntu Taiwan的源的速度都很快,一般都能有几十KB/s。即便是在教育网,这个源的速度也还可以接受(当然需要出国了)。
   
    建议公网的用户添加这个源,并且把其它源注释掉,这样可以提高update的速度。具体操作如下:
   
    sudo gedit /etc/apt/sources.list
   
    然后添加:
   
#Archive.ubuntu.com 更新服务器(台湾,此为官方源,推荐使用)
deb http://tw.archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
#deb http://tw.archive.ubuntu.org.cn/ubuntu-cn/ edgy main restricted universe multiverse

    之后把其它源都注释掉,保存退出即可。
   
    现在你可以测试一下:
   
    sudo apt-get update
   
    sudo apt-get upgrade
   
    速度是不是让你满意,并且不再碰到404 not found的困扰了呢:)
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

Skype网站英文版提供了Skype Linux版的deb包

http://www.skype.com/download/skype/linux/

感谢水木社区gotohu等朋友的指点^_^

skype_debian-1.3.0.53-1_i386.deb这个软件包可以在Ubuntu 6.10 Edgy Eft下直接安装,桌面下双击会用GDebi软件包管理器打开

Debian和Ubuntu的用户还是很幸福的:)

另外还发现了一个额外的好处,用deb安装的Skype可以在"Tools→Change Language"菜单中改变界面语言(例如改成"简体中文"),而tar.bz2动态二进制包的版本在我的系统上这个操作是无效的^_^
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

GNOME下的Total Commander——gnome-commander

.
apt-cache search midnight
引用:
krusader - Twin-panel (commander-style) File Manager for KDE
krusader-cvs - Twin-panel (commander-style) File Manager for KDE
bsc - graphical file manager with two panels
gkrellmitime - Internet time plugin for gkrellm
gnome-commander - nice and fast file manager for the GNOME desktop
gnome-vfs-extfs - The GNOME virtual file-system extra fs scripts for GMC.
juice - playlist editor / player frontend
junior-system - Debian Jr. System tools
lfm - simple but powerful file manager for the UNIX console
mc - midnight commander - a powerful file manager
moc - ncurses based console audio player
texlive-generic-extra - TeX Live: Miscellaneous extra generic macros
vlogger - virtual web logfile rotater/parser
konsole - X terminal emulator for KDE
2.
apt-cache showpkg gnome-commander
引用:
Package: gnome-commander
Versions:
1.2.0-3.1
(/var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_edgy_universe_binary-i386
_Packages) (/var/lib/dpkg/status)
Description Language:
                 File:
/var/lib/apt/lists/tw.archive.ubuntu.com_ubuntu_dists_edgy_universe_binary-i386_
Packages
                  MD5: e5d016d16019397b0c0829eedc556d63


Reverse Depends:
Dependencies:
1.2.0-3.1 - libart-2.0-2 (2 2.3.16) libatk1.0-0 (2 1.12.1) libaudiofile0 (2
0.2.3-4) libavahi-client3 (2 0.6.13) libavahi-common3 (2 0.6.10) libavahi-glib1
(2 0.6.12) libbonobo2-0 (2 2.15.0) libbonoboui2-0 (2 2.15.0) libc6 (2 2.4-1)
libcairo2 (2 1.2.4) libdbus-1-3 (0 (null)) libdbus-glib-1-2 (2 0.71)
libesd-alsa0 (18 0.2.35) libesd0 (2 0.2.35) libfontconfig1 (2 2.3.0)
libfreetype6 (2 2.2) libgconf2-4 (2 2.13.5) libgcrypt11 (2 1.2.2) libglib2.0-0
(2 2.12.0) libgnome-keyring0 (2 0.5.2) libgnome2-0 (2 2.14.1) libgnomecanvas2-0
(2 2.11.1) libgnomeui-0 (2 2.13.0) libgnomevfs2-0 (2 2.15.90) libgnutls13 (2
1.4.0-0) libgpg-error0 (2 1.2) libgtk2.0-0 (2 2.10.3) libice6 (0 (null))
libjpeg62 (0 (null)) liborbit2 (2 1:2.14.1) libpango1.0-0 (2 1.14.4) libpng12-0
(2 1.2.8rel) libpopt0 (2 1.10) libsm6 (0 (null)) libtasn1-3 (2 0.3.4) libx11-6
(0 (null)) libxcursor1 (4 1.1.2) libxext6 (0 (null)) libxfixes3 (0 (null))
libxi6 (0 (null)) libxinerama1 (0 (null)) libxml2 (2 2.6.26) libxrandr2 (0
(null)) libxrender1 (0 (null)) zlib1g (2 1:1.2.1)
Provides:
1.2.0-3.1 -
Reverse Provides:
gnome-commander的界面看起来比mc和emelfm好一些,而且不像emelfm默认支持中文有问题
"GNOME Commander"的中文译名是"GNOME 指挥官",位置在"应用程序→附件→GNOME 指挥官"
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

sudo apt-get autoremove

删除无用的软件包
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

gmplayer默认设置下播放视频时提示音频afm错误

来源: 点击进入

Requested audio codec family [mp3] (afm=mp3lib) not available. enable it at compilation
2006年11月18日 星期六 上午 10:13

在mplayer里面右键-》preferences-》codecs&demuxter-》audio codec family里面选ffmpeg/libavcodec audio decoders就没有这个提示了的。
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

Ubuntu: VMWare Player and Windows HOWTO

来源: 点击进入

概要

本指南目标是提供一个关于怎样在linux上使用免费的VMWare Player运行Windows类虚拟操作系统的使用步骤。

介绍

VMware引入了'VMware Player'并允许公众免费使用。藉于此,Ubuntu在软件库中加入了该程序。可在multiverse中找到'vmware-player'这个包。

安装

要安装vmware-player,执行

# sudo apt-get install vmware-player

创建磁盘映像

附件中有一个空的VMWare映像

WindowsXP.vmdk

这是一个20G的vmware IDE 空映像,配合Windows虚拟操作系统使用。

创建配置文件

VMWare Player需要.vmx文件,用于配置磁盘映像。

我这有一个样板,您可用任何文本编辑器编辑。

WindowsXP.vmx

guestOS =" " 中可填入下列中的一个

Version

Platform

Parameters

Windows Vista

32-bit

winVista

Windows Longhorn

32-bit

longhorn

Windows 2003 Small Business Server

32-bit

winNetBusiness

Windows 2003 Enterprise Server

32-bit

winNetEnterprise

Windows 2003 Server

32-bit

winNetStandard

Windows 2003 Web Server Edition

32-bit

winNetWeb

Windows XP Professional Edition

32-bit

winXPPro

Windows XP Home Edition

32-bit

winXPHome

Windows 2000 Advanced Server

32-bit

win2000AdvServ

Windows 2000 Server

32-bit

win2000Serv

Windows 2000 Professional

32-bit

win2000Pro

Windows NT

32-bit

winNT

Windows Me

32-bit

winMe

Windows 98

32-bit

win98

Windows 95

32-bit

win95

Windows 3.1 / Windows 3.11

32-bit

win31

DOS/Other Windows

32-bit

windows

Windows Vista x64 Edition

64-bit

winVista-64

Windows Longhorn x64 Edition

64-bit

longhorn-64

Windows 2003 Enterprise Server x64 Edition

64-bit

winNetEnterprise-64

Windows 2003 Server x64 Edition

64-bit

winNetStandard-64

Windows XP Professional x64 Edition

64-bit

winXPPro-64

创建ISO映像

不需要root权限,您就可以轻松地创建ISO映像,插入Windows光盘,执行命令

# cat /dev/cdrom > WindowsXP.iso

运行虚拟机

在有WindowsXP.iso和两个vmware文件的目录中,输入:

# vmplayer WindowsXP.vmx

开始启动了,您必须点击窗口(来激活键盘响应)然后按F2设置虚拟BIOS。在启动选择中,把CDRom用+移到第一,保存后退出。现在系统就从安装映像中启动了。

疑难杂症

  • 如果您曾经用sudo vmplayer来运行,那么您的~/.vmware/preferences将被设置为root:root(root组:root用户)拥有,阻止vmplayer运行。

提升整体性能

使用“免费”的VMWare Player时有两个办法来提升VMWare的整体性能。

1. 从 http://www.vmware.com/download/ws/ 下载近100MB的最新版VMWare Workstation for Linux并拿到windows.iso。

或者

2. 下载从服务器5.5.0 build 18463版本中分离出来的 VMware-tools.iso 仅14MB。

接着编辑您的vmx文件把CD-ROM指向windows.iso,启动操作系统,在windows中会出现工具的自动安装进程。

其他有用的配置

这是一些可优化您的VMware Player的设置,可把它们插入到vmx文件中。

Parameters

Description

gui.fullScreenAtPowerOn = "TRUE"

Set to fullscreen without the top menu toolbar

gui.fullScreenResize = "TRUE"

Set to fullscreen with the top menu toolbar

ide1:0.fileName = "auto detect"

Set the CD-ROM device to

ide1:0.deviceType = "cdrom-raw"

your CD-ROM hardware /dev/cdrom

鸣谢

供稿人: Joel Bryan T. Juliano


清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

Linux下的网络电视: sopcast

发信人: pumchq (hq), 信区: LinuxApp
标  题: 赞下sopcast,官方出linux版了。
发信站: 水木社区 (Sat Jul  1 19:41:39 2006), 站内

命令行版本:

http://download.sopcast.org/download/sp-sc.tgz
请在安装之前阅读软件包中的Readme,了解使用说明和库的依赖关系。

如果需要stdc++5库,从以下地址下载:
http://download.sopcast.org/download/libstdcpp5.tgz
注意:如果您可以运行sp-sc,没有必要下载libstdcpp5.tgz库。

图形界面版本:

rpm:http://apt.magiclinux.org/magicl ... t-0.4-3mgc.i686.rpm
srpm:http://apt.magiclinux.org/magicl ... st-0.4-3mgc.src.rpm

gtk20sopcast-0.1.18的deb包见附件
(from:http://forum.ubuntu.org.cn/viewtopic.php?t=18849)
--
               \\|//
               (o o)
-. .-.   .-oOOo~(_)~oOOo-.   .-. .-.   .-. .-.   .-. .-.   .-. .-.   .-.
||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X|||\ /|||X
|/ \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/ \|||X|||/
'   `-' `-'   `-' `-'   `-' `-'   `-' `-'   `-' `-'   `-' `-'   `-' `-'


※ 来源:·水木社区 newsmth.net·[FROM: 168.160.62.*]

附件: gtk-sopcast_0.1.18-1_i386.deb (346 KB) 链接:
http://www.newsmth.net/att.php?p.392.382081.1091.deb
全文链接:http://www.newsmth.net/bbscon.php?bid=392&id=382081
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

2007-02-18 CLI commands

man fstab
    /etc/fsck: check and repair a Linux file system
man fs
    ext2: offers the best performance(in terms of speed and CPU usage) of the filesystems supported under Linux.
    nfs: network filesystem used to access disks located on remote computers.
man fsck
    fsck: check and repair a Linux file system
man mkfs
    mkfs: build a Linux file system
man mount
    The mount command serves to attach the file system found on some device to the big file tree
    mount -t type device dir
    mount --bind olddir newdir
    mount 或 more /etc/mtab
    The ‘ext3’ file system is a version of the ext2 file system  which  has been  enhanced  with journalling.
man umount
    umount: unmount file systems
man df
    df: report file system disk space usage
man info
man man
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

Linux下查看硬盘分区情况的命令&内存占用情况

1.
$ sudo fdisk -l /dev/hda
Password:

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        4642    37286833+  83  Linux
/dev/hda2            6916        7296     3060382+   5  Extended
/dev/hda3   *        4643        6915    18257872+  83  Linux
/dev/hda5            7017        7296     2249068+  82  Linux swap / Solaris
/dev/hda6            6916        7016      811219+  82  Linux swap / Solaris

2.
$ free -m
             total       used       free     shared    buffers     cached
Mem:           749        728         20          0         54        265
-/+ buffers/cache:        408        340
Swap:          792          4        787

3.
$ free --help
free: invalid option -- -
usage: free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]
  -b,-k,-m,-g show output in bytes, KB, MB, or GB
  -l show detailed low and high memory statistics
  -o use old format (no -/+buffers/cache line)
  -t display total for RAM + swap
  -s update every [delay] seconds
  -c update [count] times
  -V display version information and exit
清北,追求完美用户体验——品质驱动 诚信导航 服务至上 技术领先
清北服务网站  http://QuickBest.com.cn

TOP

发新话题