Ubuntu Linux 6 - CCTè 1 H Ubuntu Linux 5.1 Ì Í a î ? ± ± H H D-Link DWL-122 USB P a ç @ XDMCP...

Preview:

Citation preview

Ubuntu Linux 6.1

Chen-Ching Ting(ÙMå)

Mechanical Engineering, National Taipei University of Technology(»ñ¬�I*�.^_�)

Homepage: http://cct.me.ntut.edu.tw/chchting/E-mail: chchting@ntut.edu.tw

February 12, 2007

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 1 / 72

���è

1 H�Ubuntu Linux 5.1�ÌÍ��aî?±

±��H�

H�D-Link DWL-122 USB Paç­@�XDMCP­5'H

2 筧� H��'�

Apache Server�PHP Compiler�MySQL Server�vsftpd Server3 H��Zíá��gcinC�ZC�¬'�4 H��ZCJK-LaTeX��¬'�5 H�CPUÿa qemu6 File Share

Samba ServerNetwork File Share (NFS)Bind9 DNS Server

7 ð�®Þ�E�

sshGÐxwindow@�'�xmms,vlc��P�Zó�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 2 / 72

¢�Z¤

http://www.ubuntu.com/

ftp://cle.linux.org.tw/pub2/fonts/ttf/big5/wangttf/

http://firefly.idv.tw/setfont-xft/freefonts/zh-tw/

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 3 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

HHH���Ubuntu Linux 6.1

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 4 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Ubuntu Linux

Ubuntu Linux ×��¹ðÝLinux�Ù�Ù�Debian Linux�x�|�×w« J§�s]'�Qô�3H�?�Ù¡��Í�w«�

��êGJ§?ÝÌÍb°Í�ubuntu��kubuntu�eduubuntuCubuntu server�ubuntu gnome w«�kubuntu kde w«�eduubuntu [/|>� ]'Ý�P xCubuntu server �H��¢w«ÝÌÍ�H�`óCubuntuÌÍ��Õhttp://www.ubuntu.com/ìµISOjn�H�ubuntu`�óCÞ/�/home5WËÍpartitions�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 5 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���ÌÌÌÍÍÍ������aaaîîî???±±±

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 6 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�ÌÍ��aî?±

UbuntuÞ�ÙXm�ÝÃÍ��J§3×nCDî�Eyk¦�ݱ���A���J§?�Þ��óC¬DÄç­��ìµH��3�Ù

�H��W¬rá¡�UbuntuÞ��lãÎÍb?±���A�b�Þ��s®ÎÍìµ±���9`�óCìµ±����ÙÞ3óC¡�

�ìµH��

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 7 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

±±±������HHH���

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 8 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

±��H�

Ubuntu�±��H�Ý]°�lîb°Ë�5WË�v�Ï×v ubuntu�Ù�J§?Ý���hv��ÝH�]P

1 @�Synaptic ���óCH��T”@�Add Applications ¬óCAdvanced���óCH�”�

2 ¸à”sudo apt-get install ��(Ì”ËË�

ÏÞv ubuntu�Ù$ÎJ§?Ý���hv��ÝH�]P

1 Ñ;/etc/apt/sources.listjn��á±��Ýç­�ë��¸à”sudo apt-get update” C”sudo apt-get install ��(Ì”�H��

2 ìµdebD¹����¸à”sudo dpkg -i debD¹��”�H��

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 9 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

H�D-Link DWL-122 USB Paç­

3H�?�Ù¡��óC��linux-wlan-ng�H��¥±@��Ù-��

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 10 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

@�XDMCP

Bã_ì/etc/gdm/gdm.conf-custom�ÞÍ�Ý[xdmcp]9Ísession;WEnable=true�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 11 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

­5'H

Bã_ì/etc/environment�Ñ;PATH/��

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 12 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

HHH���ççç­­­§§§��� (Server)

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 13 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

H�筧� (Server)

@�Synaptic¬óCApache2�PHP5�MySQLCvsftpd��H�����ÞXb8nÝ��H�î�Synaptic��ѧ�P�Í�H3�Ù/ѧì�@��Æ�ú� /usr/sbin/synaptic�@�¡|¨´Ý]P">0ÕXkH�Ý���ó?��¡¶�à�H��

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 14 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

筧� �H��P

apache2:

libapache2-mod-php5

php5:

php5-gd: for phplot

php5-mysql:

mysql-server-4.1:

mysql-query-browser:

phplot:

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 15 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���ççç­­­§§§��� '''���

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 16 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Apache Server'�

ApacheÝconfiguration'�3/etc/apache2/ì��@/etc/apache2/sites-enabled/000-default@¬Ñ;jn/ÝServerAdminÝE-Mail �ëCDocumentRootÝ�HÕ/www/htdocs�H�?/�Ý�H3/var/www/apache2-default�Bÿ¸àchgrp root -Rwww �chown root -R wwwCchmod 777 -R wwwÞ£]ô|ìÝXbjn�J§Ñ;�Ñ;?¡Ä6¥±@�Apache Server�@�Ý]° Æ��Ù/ѧ/���¬óCApache�Æ�j services-admin�Tï¸à”sudo apache2 -k start”@��”sudo apache2 -k stop”�c�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 17 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�Apache Server Protection

3m�ÛD1�Ý£]ô/wH.htaccess>n�_¶Aì�

AuthType BasicAuthName "Restricted Files"AuthUserFile "/www/passwd/.htpasswd"require valid-user

�|htpasswd -c .htpasswd username password%CÛD.htpasswdÞ/etc/apache2/sites-enabled/000-default�ÝAllowOverride None�I;WAllowOverride All¡¥±@�Apache Server�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 18 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

'''���Apache Server���������ZZZDDD

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 19 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

'�Apache Server���ZD

Æ�/etc/apache2/apach2.conf¬Ñ;WAddDefaultCharset big5¡¥±@�Apache Server�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 20 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���PHP'''���

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 21 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�PHP'�

PHPÝphp.inijn3/etc/php5/apache2/ì�Ñ;register globalsWOn@��óºà�Cmemory limit=80MB��PHP�§Z����Ñ;?¡Ä6¥±@�Apache Server�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 22 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���MySQL Server'''���

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 23 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�MySQL Server'�

MySQLÝmy.confjn3/etc/mysql/ì�£]3/var/lib/mysqlì�Ñ;my.confjn/Ýdatadir=/www/mysql/data¬Þ£]ôC�ì£];WmysqlNC¸àï��àsudo chown -R mysql:mysql mysqlÆ��Æ��Ù/ѧ/���¬óCMySQL�Tï¸à”sudo /etc/init.d/mysqlstart”@��”sudo /etc/init.d/mysql stop”�c�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 24 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

MySQL Server'''���±±±user

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 25 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

MySQL Server'�±user

shell>mysql �user=root mysqlmysql> GRANT ALL PRIVILEGES ON *.* TO ’username’@’localhost’

-> IDENTIFIED BY ’password’ WITH GRANT OPTION;

@�mysql-query-browserrámysql databaseÝuser�root�ÛD'��

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 26 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���vsftpd Server'''���

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 27 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�vsftpd Server'�

vsftpdÝvsftpd.confjn3/etc/ì�Ñ;anonymous enable=NOnT|anonymousrá�/�Ýanonymousrá£]ô /home/ftp�3H�?vsftpd Server¡��®ß�local enable=YES�@userÝrá�write enable=YES@��¶á£]�Ñ;?¡�Æ��Ù/ѧ/���¬óCvsftpd�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 28 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

HHH������ZZZíííááá������gcin¬¬¬'''���

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 29 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�Zíá��gcin

Æ�/etc/apt/sources.listjn��ádeb http://www.calno.com unstable mainC

deb-src http://www.calno.com unstable mainË��Q¡¸à”sudo apt-get update”C”sudo apt-get install gcin”�H���W¡�_¶jn$HOME/.gnomerc/���á9ì°�¡¥±rá

export LC_CTYPE=zh_TW.UTF-8export GTK_IM_MODULE=gcinexport XMODIFIERS=E@im=gcinFgcin&

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 30 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���ZZZíííááá������gcin333Kubuntu

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 31 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�Zíá��gcin3Kubuntu

Æ�/etc/X11/Xsession.d/50input-methodjn�A�^bJ%C���á9ì°�¡¥±rá

export LC_CTYPE=zh_TW.UTF-8export GTK_IM_MODULE=gcinexport XMODIFIERS=E@im=gcinFgcin&

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 32 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

¸à�Zíágcin

¶ctrl+space"���Zíá6ð�ctrl+Alt+5 �+·¯íá�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 33 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�ZC�H�

Openofficeà#\ã/usr/lib/openoffice2/share/fonts/truetype/*.ttf}PC��.hà#�%*.ttf}PC�Õê�쥱@�openoffice-���Õ

http://firefly.idv.tw/setfont-xft/freefonts/zh-tw/T

ftp://cle.linux.org.tw/pub2/fonts/ttf/big5/wangttf/ìµ¹ð�ZC��

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 34 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

HHH������ZZZCJK-LaTeX¬¬¬'''���

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 35 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�ZCJK-LaTeX

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 36 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

qemu CPU emulator

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 37 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Create an Image file to contain the Guest O/S

qemu-img create xp.img 3GCreate an image with 3gb in size and named as xp.img.

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 38 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Install Windows under QEMU

qemu -hda /qemu/xp.img -cdrom /dev/cdrom -boot d -m 256orqemu -hda /qemu/xp.img -cdrom /qemu/xp.iso -boot d -m 256

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 39 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Running Windows under QEMU

qemu -hda /path/to/image file -m 256If you wish for networking to work as well, you’ll need to configure IPMasquerading (See script below) - QEmu since v0.8 has a new networkstack, where qemu will give a client computer an ip address (10.X.X.X) viadhcp (from qemu); all settings are taken care of - aside from you ensuringyou have IP forwarding and NAT enabled on the host (I assume).

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 40 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Running Windows under QEMU

Change qemu to full screencrtl+alt+f

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 41 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

?;rpm packageWdeb package

alien -d file.rpm file.deb

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 42 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

VMWare Emulator

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 43 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

VMWare Emulator

�H�gcc, make, linux-headers-2.6.15-25-386link /usr/src/linux-headers-2.6.15-25-386 as /usr/src/linux@

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 44 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���¡¡¡

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 45 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Remote X with ubuntu 6.1

ssh -X -l username IPaddressIf you want to remote display to a local ubuntu machine by using ”xhost+” and ”export DISPLAY”, you need:Edit the file /etc/gdm/gdm.conf. Find the line that says”DisallowTCP=true” and change it to read ”DisallowTCP=false”.Better practice is use ”ssh -X” instead.

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 46 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Uebimiau Webmail

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 47 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Uebimiau Webmail

Fatal error: Allowed memory size of 8388608 bytes exhausted That 8MBlimit is the script memory limit in PHP.INI. You can temporarily fix it byraising that limit until the message is loaded properly. The php.inidirective is called ”memory limit”. Remember to restart your http server.

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 48 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Ubuntu 5.1 ¥¥¥���­­­555

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 49 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Ubuntu 5.1 ¥�­5

apache2: /etc/apache2/*.conf/var/www/apache2-default

php5: /etc/php5/apache2/php.ini

mysql: /etc/mysql/my.conf/var/lib/mysql

vftpd: /etc/vftpd.conf

openoffice: /usr/lib/openoffice2/share/fonts/truetype/*.ttf

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 50 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

'''���xmms,vlc������PPP���ZZZóóó���

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 51 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

'�xmms�vlc��P�Zó�

�%jn/etc/gtk/gtkrc.zh TWW/etc/gtk/gtkrc.zh TW.utf-8sudo cp /etc/gtk/gtkrc.zh TW /etc/gtk/gtkrc.zh TW.utf-8

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 52 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Samba Server

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 53 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Samba Server

H�Samba Server¡�3/�Ù/ѧ/�²Ý£]ô�'�k5²Ý£]ô��|sudo smbpasswd -a username'�Samba Serverݸàïòr�¸àïÄ6�Î�Ùݸàï��|sudo /etc/init.d/samba restart¥±@�Samba Server�5²��B�3/etc/samba/smb.conf��|smbclient -L IPaddress -U usernameã:5²���|sudo mount -tsmbfs -o username=xxx,password=xxx //IPaddress/dir /home/xxx/dir�=��

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 54 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Remote Disk Connection

jnѧ�jn/=#§�

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 55 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Network File Share (NFS)

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 56 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

NFS Server

H�nfs-kernel-server¡�Ñ;/etc/exportsjn�¦�k5²Ý£]ô�k5²ÝEé�IP�ë�A/backup 140.124.30.75/24(rw) �Í�rw .&\�¶�A�©.&\�J ro�24 .&140.124.30.0-140.124.30.255ÝXbIP. Ñ;�±¡�@�NFSServer�/etc/init.d/nfs-kernel-server start �TÆ�/�Ù/ѧ/���@��service-admin. �@¡|showmount -e �ã:ÎÍ5²W�.

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 57 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

NFS Client

|showmount -e IP �ã:IPé\�5²���Ashowmount -e 140.124.31.189��|

sudo mount -t nfs 140.124.31.189:/backup /home/cct/backup�=��|

sudo umount /home/cct/backup

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 58 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Bind9 DNS Server

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 59 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Bind9 DNS Server

rndc

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 60 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Mount

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 61 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

Mount

sudo mount britannica.iso /media/cdrom/ -t iso9660 -o loopsudo umount /media/cdrom

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 62 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

w32codecs

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 63 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

w32codecs

sudo apt-get install w32codecsT

deb http://packages.freecontrib.org/ubuntu/plf/ breezy free non-freew32codecsrealplay

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 64 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

VNC Server

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 65 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

VNC Server

vino-preferencevncviewer -fullscreen 140.124.31.189:0F8: change the vnc screen

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 66 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���¡¡¡

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 67 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�¡

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 68 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���¡¡¡

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 69 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�¡

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 70 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

���¡¡¡

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 71 / 72

ð�®Þ�E� '�xmms,vlc��P�Zó�

�¡

Chen-Ching Ting (ÙMå) Mechanical Engineering, National Taipei University of Technology (»ñ¬�I*�.^_�) Homepage: http://cct.me.ntut.edu.tw/chchting/ E-mail: chchting@ntut.edu.tw ()Ubuntu Linux 6.1 February 12, 2007 72 / 72