鉴于 Ubuntu 6.10 (Edgy Eft) 刚刚发布, 本指南仍在不断更新。请加入进来帮助我们测试完善这个指南.
这份手册的英文原作者是马来西亚吉隆坡的Chua Wen Kiat。 目前由拉脱维亚大学的Linux中心 维护,任何人都可以参与编辑。
请到官方的 UbuntuGuide.org 论坛 讨论这个指南。
为了防止Wiki遭到蓄意破坏,只有注册用户才能修改这个Wiki和创立新帐号。 如果你想加入创作团队,请发中文或者英文Email给[ usa点chen-AT-gmail点com ]。 请不要忘记 说明你想要的帐号名称以及你想要创建或者修改哪些内容。
Mikrobart • Orvils • Quash • Jiyuu0 • Cargo • Gabemorr • Byte • cope • krampo • Simos • Stubby • eljaco • shai • ThunderM • Hasile • adammichaelroach • Belisarivs • Cheator • Hank • Tamal • Kaotiks • soniah • Kutan • Mehdi • richux • Shadyman • Havarill • fr0zen_penguin • Louis • Shadyman • shanlot751 • Etienne • Rabid9797 • Mantas Smelevičius • perspectoff • phlo • seadog • smalu • go2debug • Pakos •RedBass • CyberAngel •Cogeeldineroycorre •AlgimantasBucinskas• Ufic • Antidrugue • Vahid • Louis King • Rsingh • Borut-T • Cinglalls • Townray • ANtuMaLaM • pete allebone • Greenstar • The Turk • RonB • Compotatoj • oMbra • sigma80 • Enlightenedswine •Karthikeyan•emorrp1• Th0rv4ld • jspangler • Sevoir • and other friends of our community | edit |
其他语言: | Português • Bulgarian • Català • 中文 (翻译中) • 繁體中文 (翻譯中) • English • French (In Progress) • German • Italiano • Nederlands • Polski • Lithuanian (In Progress) • Español (In Progress) • Suomi (In Progress) • Ελληνικά • Română • Indonesian • සිංහල (In Progress) • فارسی(In Progress) • پښتو(In Progress) • ไทย • Русский (In Progress) • Українська (In Progress) • Persian (In Progress) • 日本語 (翻訳中) | edit |
语言: | Português • Português do Brasil • Bulgarian • Bangla • 中文 • Česky • Filipino • English • French • German • Italiano • Nederlands • Norsk • Suomi • Polski• Lietuviškai• Español • Română • Indonesian • Türkçe • Русский • Persian • 日本語 (翻訳中) | edit |
语言: | Latviešu tulkojums • Русский перевод • Wersja polska • Traditional Chinese • Persian • Italian • Português • Slovenski • German • Estonian • Afrikaans • Slovak • Svenska • 简体中文 | edit |
There will be no Edgy Eft ShipIt CDs (Announcement), instead you can still obtain Ubuntu 6.06 Dapper Drake LTS CDs via ShipIt.
请注意投递这些光盘需要四到六周的时间。鼓励你复制,更改和重分发这些光盘,当然是越多越好!
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list
## Add comments (##) in front of any line to remove it from being checked.
## Use the following sources.list at your own risk.
deb http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiverse
## MAJOR BUG FIX UPDATES produced after the final release
deb http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
## UBUNTU SECURITY UPDATES
deb http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
## BACKPORTS REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
deb http://packages.freecontrib.org/plf edgy-plf free non-free
deb-src http://packages.freecontrib.org/plf edgy-plf free non-free
## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera, DesktopSecure and more to come.)
deb http://archive.canonical.com/ubuntu edgy-commercial main
## Listen
#deb http://theli.free.fr/packages/ edgy listen
wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dselect-upgrade
或
使用更新管理器: 系统 -> 系统管理 -> 更新管理器
打开应用程序菜单-> 附件 -> 终端 然后运行以下命令:
wget http://easyubuntu.freecontrib.org/files/easyubuntu-3.023.tar.gz
tar -zxf easyubuntu-3.023.tar.gz
cd easyubuntu
cp packagelist-dapper.pot packagelist-edgy.pot
cp packagelist-dapper.xml packagelist-edgy.xml
sudo python easyubuntu.in
不同的Ubuntu版本需要不同的命令:
Ubuntu:
sudo gedit /etc/apt/sources.list
Kubuntu:
sudo kate /etc/apt/sources.list
编辑器打开后,将以下内容加到你的/etc/apt/sources.list 文件末尾:
deb http://easyubuntu.cafuego.net main easyubuntu
现在,EasyUbuntu就会自动升级了。
sudo gedit /etc/apt/sources.list
## Automatix repo
deb http://www.getautomatix.com/apt edgy main
wget http://www.getautomatix.com/apt/key.gpg.asc
gpg --import key.gpg.asc
gpg --export --armor 521A9C7C | sudo apt-key add -
sudo apt-get update
sudo apt-get install automatix2
菜单 -> 系统 -> Automatix
automatix2
wget http://www.iki.fi/kuparine/comp/ubuntu/install.sh
sh install.sh
关于这种安装的更多信息,可以在以下网站找到:http://www.iki.fi/kuparine/comp/ubuntu/install.html
注意: Automatix2包含了该软件。如果你已经使用过Automatix2, JRE及相应的插件应该已经安装好。
sudo apt-get install sun-java5-jre sun-java5-plugin
sudo update-alternatives --config java
然后选择相应的J2SE选项(通常是第三项).
注意: Automatix2包含了该软件。如果你已经使用过Automatix2, JRE及相应的插件应该已经安装好。
选择 "Java Runtime Environment (JRE) 5.0 Update 9" 然后点击"Download"
接受(Accept)许可证协议书
下载 "Linux self-extracting file"
sudo apt-get install java-package
fakeroot make-jpkg jre-1_5_0_09-linux-i586.bin
sudo dpkg -i sun-j2re1.5_1.5.0+update09_i386.deb
sudo apt-get install sun-java5-jdk
sudo update-java-alternatives -s java-1.5.0-sun
gksudo gedit /etc/jvm
sudo apt-get install flashplugin-nonfree
sudo update-flashplugin
注意: 如果出现错误提示:软件没有找到,试试用Gnash (GNU Flash替代)
sudo apt-get install libflash-mozplugin
Note: 如果访问带有flash内容网站,firefox出现崩溃,按以下方法解决:
sudo gedit /usr/bin/firefox
and add the following line as last but one line of the file:
export XLIB_SKIP_ARGB_VISUALS=1
现在 firefox应该不可能再崩溃了。
(Launchpad bug report: [3])
Note: 如果Flash播放器中声音无法正常工作(例如在YouTube):
sudo apt-get install alsa-oss
gksudo gedit /etc/firefox/firefoxrc
更改:
FIREFOX_DSP=""
为:
FIREFOX_DSP="aoss"
备注: 程序包含在Automatix2中. 如果您已经安装使用了Automatix2, 本程序可能已经被安装了
wget http://download.macromedia.com/pub/labs/flashplayer9_update/FP9_plugin_beta_101806.tar.gz
tar xvzf FP9_plugin_beta_101806.tar.gz
sudo cp flash-player-plugin-9.0.21.55/libflashplayer.so /usr/lib/flashplugin-nonfree/
sudo apt-get install acroread mozilla-acroread acroread-plugins
注意: 正在运行SCIM时,你将无法运行Adobe Reader 7.0。如果你已经通过 系统->系统管理->语言支持 安装了其他语言,并运行SCIM。需通过以下方法来解决该问题。
gksudo gedit /usr/bin/acroread
修改:
#!/bin/sh
#
为:
#!/bin/sh
#
GTK_IM_MODULE=xim
保存文件。 Adobe Reader 7.0 将会正常运行。
See also:
sudo apt-get install d4x
sudo apt-get install revelation
sudo apt-get install gftp
注意: Automatix2已经包含该程序, 如果你已经使用Automatix2, 该程序应该已经安装了
sudo apt-get install xchat xchat-systray
wget -c http://easylinux.info/uploads/linuxdcpp.tar.gz
sudo tar zxvf linuxdcpp.tar.gz -C /opt
gksudo gedit /usr/share/applications/linuxdcpp.desktop
[Desktop Entry]
Encoding=UTF-8
Name=LinuxDC++
Exec=linuxdcpp
Terminal=false
Type=Application
StartupNotify=true
Icon=/opt/linuxdcpp/pixmaps/linuxdcpp.png
Categories=Application;Network;
注意: Automatix2已经包含该程序, 如果你已经使用Automatix2, 该程序应该已经安装了
sudo apt-get install azureus
wget http://kent.dl.sourceforge.net/sourceforge/azureus/Azureus_2.5.0.0_linux.tar.bz2
sudo tar jxvf Azureus_2.5.0.0_linux.tar.bz2 -C /opt/
sudo gedit /usr/share/applications/azureus.desktop
[Desktop Entry]
Name=Azureus
Comment=Java BitTorrent Client
Exec=/opt/azureus/azureus
Icon=/opt/azureus/Azureus.png
Terminal=false
Type=Application
Categories=Application;Network;
注意: Automatix2已经包含该程序, 如果你已经使用Automatix2, 该程序应该已经安装了
sudo apt-get install bittornado bittornado-gui
注意: Automatix2和Easy Ubuntu已经包含该程序, 如果你已经使用Automatix2和Easy Ubuntu之一, 该程序应该已经安装了
sudo apt-get install amule
注意: Automatix2已经包含该程序, 如果你已经使用Automatix2, 该程序应该已经安装了
wget -c http://www.users.on.net/~stubby/FrostWire-4.10.9-2.i586.deb
sudo dpkg -i FrostWire-4.10.9-2.i586.deb
注意: Automatix2已经包含该程序, 如果你已经使用Automatix2, 该程序应该已经安装了
wget http://www.skype.com/go/getskype-linux-deb
sudo dpkg -i skype_debian-*.deb
sudo apt-get install linpopup
gksudo gedit /usr/share/applications/linpopup.desktop
[Desktop Entry]
Name=LinPopUp
Comment=LinPopUp
Exec=linpopup
Icon=/usr/share/pixmaps/linpopup.xpm
Terminal=false
Type=Application
Categories=Application;Utility;
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base \
gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse \
gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse w32codecs
Stubby: 除了wmv, 所有其他编码解码器都工作正常
Radiobuzzer: WMV9编码解码器工作不正常-特别是对于amd64用户. 进阶用户应参考 这个补丁
ironss:
gstreamer提供的dvd插件位于plugins-bad (抑或ugly?),可靠性不好.
然而您可以用以xine作为后端的Toteme来播放DVD视盘. 您可以一直用到gstreamer能够真正回放dvd之时. 注意,
按照下列之建议, 您不必安装xine-ui或mplayer
sudo apt-get install libdvdread3
sudo /usr/share/doc/libdvdread3/install-css.sh
sudo apt-get install totem-xine
Stubby: gstreamer之dvd插件还未引入dapper. 下列指示将导致不能适当运作
sudo apt-get install libdvdcss2
sudo apt-get install timidity
sudo gedit /etc/default/timidity
#TIM_ALSASEQ=true
sudo gedit /etc/modules
snd-seq-device
snd-seq-midi
snd-seq-oss
snd-seq-midi-event
snd-seq
sudo apt-get install xine-ui libxine-extracodecs
sudo apt-get install vlc vlc-plugin-* mozilla-plugin-vlc
apt-get install avahi-daemon
apt-get install avahi-utils
sudo apt-get install mozilla-mplayer
sudo apt-get install totem-gstreamer-firefox-plugin
sudo apt-get install xmms xmms-skins
wget -c http://easylinux.info/uploads/xmms-wma_1.0.4-2_i386.deb
sudo dpkg -i xmms-wma_1.0.4-2_i386.deb
sudo apt-get install amarok
sudo apt-get install realplay
可选源
sudo apt-get install streamtuner
sudo apt-get install streamripper
sudo apt-get install cowbell
sudo apt-get install easytag
sudo apt-get install kino
sudo apt-get install kinoplus
sudo apt-get install kino-timfx
sudo apt-get install kino-dvtitler
sudo apt-get install audacity
sudo apt-get install noteedit lilypond
sudo gedit noteedit.desktop
[Desktop Entry]
Name=NoteEdit
Comment=A free music score editor
Exec=noteedit
Icon=/usr/share/app-install/icons/noteedit.xpm
Terminal=false
Type=Application
Categories=Application;AudioVideo;
sudo apt-get install banshee
sudo apt-get install dvdrip vcdimager cdrdao subtitleripper
sudo ln -fs /usr/bin/rar /usr/bin/rar-2.80
gksudo gedit /usr/share/applications/dvdrip.desktop
[Desktop Entry]
Name=dvd::rip
Comment=dvd::rip
Exec=dvdrip
Icon=/usr/share/perl5/Video/DVDRip/icon.xpm
Terminal=false
Type=Application
Categories=Application;AudioVideo;
sudo apt-get install acidrip
Note: AcidRip will not recognize dvd if dma is turned on. If so undo the process #How to speed up CD/DVD-ROM.
sudo apt-get install goobox
sudo rm -f /usr/share/applications/goobox.desktop
gksudo gedit /usr/share/applications/goobox.desktop
[Desktop Entry]
Name=CD Player & Ripper
Comment=Play and extract CDs
Exec=goobox
Icon=goobox.png
Terminal=false
Type=Application
Categories=Application;AudioVideo;
sudo apt-get install digikam digikamimageplugins kipi-plugins
gksudo gedit /etc/apt/sources.list
# Google Picasa for Linux repository
deb http://dl.google.com/linux/deb/ stable non-free
sudo apt-get update
sudo apt-get install picasa
wget http://ftp.osuosl.org/pub/pculture.org/democracy/linux/ubuntu/democracyplayer-data_0.9.0.2-1ubuntupcf_all.deb
wget http://ftp.osuosl.org/pub/pculture.org/democracy/linux/ubuntu/democracyplayer_0.9.0.2-1ubuntupcf_i386.deb
sudo apt-get upgrade
sudo dpkg -i democracyplayer-data_0.9.0.2-1ubuntupcf_all.deb
sudo apt-get install mozilla-browser mozilla-psm mozilla-dev
sudo dpkg -i democracyplayer_0.9.0.2-1ubuntupcf_i386.deb
wget http://ftp.osuosl.org/pub/pculture.org/democracy/linux/ubuntu/democracyplayer-data_0.9.0.2-1ubuntupcf_all.deb
wget http://ftp.osuosl.org/pub/pculture.org/democracy/linux/ubuntu/democracyplayer_0.9.0.2-1ubuntupcf_amd64.deb
sudo apt-get upgrade
sudo dpkg -i democracyplayer-data_0.9.0.2-1ubuntupcf_all.deb
sudo apt-get install mozilla-browser mozilla-psm mozilla-dev
sudo dpkg -i democracyplayer_0.9.0.2-1ubuntupcf_amd64.deb
sudo apt-get -f install
sudo apt-get install libxine-extracodecs
or use an alternate procedure: double click (or right click and
select "Open with gdebi") on the deb files so they are opened with
gdebi, first democracyplayer-data_0.9.0.2-1ubuntupcf_all.deb and after
that democracyplayer_0.9.0.2-1ubuntupcf_i386.deb (if you have a 32bit
processor) or democracyplayer_0.9.0.2-1ubuntupcf_amd64.deb (if you have
a 64bit processor)
sudo apt-get install inkscape
Second installation method:
1. Download the official Inkscape Linux installer.
2. Choose a mirror and save it to your Desktop.
3. Right-click it, enable "Properties --> Permissions --> Owner:Execute" and close the dialogue box. (One-time procedure)
4. Double-click it and follow the instructions.
5. Install the support code system-wide, if you have the root password. (One-time procedure)
NOTE: You can and should install the program as a User, rather than Root. This is easily accomplished with the second method.
Package may be not found in the repository --Radiobuzzer 22:12, 25 October 2006 (EEST)
sudo apt-get install opera
Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed
sudo apt-get install mozilla-thunderbird
sudo apt-get install pan
wget -c http://easylinux.info/uploads/rssowl_linux_1_1_3_bin.tar.gz
sudo tar zxvf rssowl_linux_1_1_3_bin.tar.gz -C /opt/
sudo chown -R root:root /opt/rssowl_linux_1_1_3_bin/
gksudo gedit /usr/bin/runRSSOwl.sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MOZILLA_FIVE_HOME}:${LD_LIBRARY_PATH}
cd /opt/rssowl_linux_1_1_3_bin/
./run.sh
sudo chmod +x /usr/bin/runRSSOwl.sh
gksudo gedit /usr/share/applications/RSSOwl.desktop
[Desktop Entry]
Name=RSSOwl
Comment=RSSOwl
Exec=runRSSOwl.sh
Icon=/opt/rssowl_linux_1_1_3_bin/rssowl.xpm
Terminal=false
Type=Application
Categories=Application;Network;
sudo apt-get install nvu
sudo rm -f /usr/share/applications/nvu.desktop
gksudo gedit /usr/share/applications/nvu.desktop
[Desktop Entry]
Name=Nvu
Comment=Web Development Editor
Exec=nvu
Icon=nvu.xpm
Terminal=false
Type=Application
Categories=Application;Development;
sudo apt-get install quanta
sudo apt-get install planner
wget -c http://optusnet.dl.sourceforge.net/sourceforge/jedit/jedit_4.3pre6_all.deb
sudo dpkg -i jedit_4.3pre6_all.deb
Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed
sudo apt-get install gnucash
sudo apt-get install scribus
sudo apt-get install dia-gnome
sudo apt-get install xchm
Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed
sudo apt-get install gnomebaker
sudo apt-get install k3b libk3b2-mp3
sudo apt-get install gnome-ppp
wget -c http://easylinux.info/uploads/rp-pppoe-3.6.tar.gz
sudo tar zxvf rp-pppoe-3.6.tar.gz -C /opt/
sudo chown -R root:root /opt/rp-pppoe-3.6/
gksudo gedit /usr/share/applications/RP-PPPoE.desktop
[Desktop Entry]
Name=RP-PPPoE
Comment=RP-PPPoE
Exec=gksudo /opt/rp-pppoe-3.6/go-gui
Icon=pppoeconf.xpm
Terminal=false
Type=Application
Categories=Application;Network;
sudo apt-get install bum
sudo apt-get install gparted
sudo apt-get install firestarter
sudo apt-get install ethereal
sudo apt-get install nessus
sudo apt-get install nessusd
sudo nessus-adduser
sudo ln -fs /etc/init.d/nessusd /etc/rc2.d/S20nessusd
sudo /etc/init.d/nessusd start
gksudo gedit /usr/share/applications/Nessus.desktop
[Desktop Entry]
Name=Nessus
Comment=Nessus
Exec=nessus
Icon=/usr/share/pixmaps/nessus.xpm
Terminal=false
Type=Application
Categories=Application;System;
Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed
sudo apt-get install rar
sudo apt-get install unrar
sudo apt-get install xfonts-intl-arabic
sudo apt-get install xfonts-intl-asian
sudo apt-get install xfonts-intl-chinese
sudo apt-get install xfonts-intl-chinese-big
sudo apt-get install xfonts-intl-european
sudo apt-get install xfonts-intl-japanese
sudo apt-get install xfonts-intl-japanese-big
sudo apt-get install xfonts-intl-phonetic
sudo apt-get install gsfonts-x11
sudo apt-get install msttcorefonts
sudo fc-cache -f -v
以下信息假设您已经安装了中文支持,若不知道如何安装请参考 这里
请注意,SCIM已经安装了默认的精简版, 要安装中文,日文或韩文支持请使用 系统>管理>语言支持. wiki有更多准确的信息
sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base language-support-zh
sudo apt-get install scim scim-modules-socket scim-modules-table scim-pinyin scim-tables-zh scim-input-pad
sudo sh -c " echo 'export XMODIFIERS=@im=SCIM ; export GTK_IM_MODULE="scim" ; scim -d ' > /etc/X11/Xsession.d/95xinput "
sudo chmod 755 /etc/X11/Xsession.d/95xinput
sudo gedit /etc/environment
LANGUAGE="en_US:en"
LC_CTYPE="zh_CN.UTF-8"
LANG="en_GB.UTF-8"
GST_ID3_TAG_ENCODING=GBK
按 'Ctrl + Space'
注: Automatix2已包含本程序. 如果您已在使用Automatix2, 本程序应已安装
sudo apt-get install gdesklets
sudo apt-get install gdesklets-data
sudo apt-get install build-essential
sudo apt-get install alien
sudo apt-get install anjuta
sudo apt-get install mono mono-gmcs mono-gac mono-utils monodevelop
sudo apt-get install eclipse
sudo apt-get install blender
sudo apt-get install planetpenguin-racer planetpenguin-racer-data planetpenguin-racer-extras
sudo apt-get install frozen-bubble
sudo apt-get install scorched3d
gksudo gedit /usr/share/applications/scorched3d.desktop
[Desktop Entry]
Name=Scorched 3D
Comment=A 3D Remake Of Scorched Earth
Exec=scorched3d
Icon=
Terminal=false
Type=Application
Categories=Application;Game;ArcadeGame;
wget http://globulation2.org/releases/0.8.21/glob2_alpha21_i386.deb
sudo dpkg -i glob2_alpha21_i386.deb
如果dpkg显示了一个依赖包错误,那么您可能需要安装下列依赖包
sudo apt-get -f install
键入下列命令启动游戏
glob2
sudo apt-get install stellarium
gksudo gedit /usr/share/applications/stellarium.desktop
[Desktop Entry]
Name=Stellarium
Comment=Virtual planetarium
Exec=stellarium
Terminal=false
Type=Application
Categories=Application;Education;
Icon=stellarium
第二种安装方案 method: (version 0.6.2)
1. 下载 Stellarium Linux installer.
2. 保存文件到桌面.
3. 右键点击该文件, 钩选 "Properties --> Permissions --> Owner:Execute", 关闭对话框. (一次性手续)
4. 双击文件, 跟随其随后的指示.
5. 如果您知道root的密码,那么将支持代码安装于全系统中. (一次性手续)
注: 您可以而且应该以普通用户而非root来安装此程序. 用第二种方案很容易达成上述目的.
目前版本的 Google Toolbar 在 Ubtuntu 6.06 中的 FireFox 1.5.0.5 下工作正常。
在 Firefox 中, 点击下面的链接
http://www.google.com/tools/firefox/toolbar/
然后点击那个大的下载按钮。
wget -c http://dl.google.com/earth/GE4/GoogleEarthLinux.bin
sudo sh GoogleEarthLinux.bin
sudo cp /usr/local/google-earth/googleearth.desktop /usr/share/applications/
sudo chmod 777 -R ~/.googleearth
sudo apt-get install kdeedu
This will install a wine'd version of Internet Explorer 6 with Flash 9, as well as IE 5.5/5.01 if you really want them.
sudo apt-get install cabextract
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
Do not run this as root (no sudo), as this can cause the script to malfunction and ruin your X configuration.
Python Dev Tools
sudo apt-get install gcc libc6-dev python-dev python-setuptools python2.4-profiler
Install EZ Setup (tool for installing Python stuff)
wget http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py
Upgrade Setup Tools
sudo easy_install -U --script-dir /usr/local/bin setuptools
Install TurboGears Framework (optional)
sudo easy_install --script-dir /usr/local/bin TurboGears
Wine 不是一个模拟器。Wine 是一个 Windows API 的开源实现,构筑于 X 和 Unix 之上。可以把 Wine
看作一个能够运行 Windows 程序的兼容层。Wine 并不需要 Microsoft Windows,因为它本身就是 Windows API
的一个完全自由的替代品,由100%的非 Microsoft 的代码组成。尽管如此, 只要有原生的 Windwos 动态链接库(native
Windows DLL)存在,Wine 就可以随意的使用。
换句话说,Wine 使你可以在 Linux 下运行 Windows 应用程序。
gksudo gedit /etc/apt/sources.list
# Repository for wine
deb http://wine.budgetdedicated.com/apt dapper main
deb-src http://wine.budgetdedicated.com/apt dapper main
sudo apt-get update
sudo apt-get install wine
Do you want a console like in a first person shooter? Tilda should take care of you.
sudo apt-get install tilda
sudo apt-get install kubuntu-desktop
sudo apt-get install xubuntu-desktop
sudo apt-get install build-essential gcc pkg-config libglib2.0-0 \
libglib2.0-dev libgtk2.0-0 libgtk2.0-dev libxml++2.6c2a libxml++2.6-dev \
libvte-dev libvte4 a2ps libxpm-dev libxpm4 alsa-source alsa alsa-base \
alsa-oss alsa-utils libxml-parser-perl libpng12-0 libpng12-dev libdbh1.0-dev
chmod +x xfce4-4.3.90.1-installer.bin
sudo ./xfce4-4.3.90.1-installer.bin
这有一些 截图. Fluxbox是一种流行的轻量级的窗口管理器。
sudo apt-get install fluxbox
echo "exec startfluxbox" > ~/.xinitrc
sudo apt-get install sox
gedit ~/.fluxbox/startup
exec /usr/local/bin/fluxbox
play /usr/share/sounds/login.wav > /dev/null 2>&1 &
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
gksudo gedit /etc/X11/xorg.conf
Section "Module"
Load "i2c"
Load "bitmap"
...
Load "type1"
Load "vbe"
EndSection
# Load "dri"
# Load "GLcore"
Load "glx"
Section "Device"
Identifier "NVIDIA Corporation NV34M [GeForce FX Go5200]"
Driver "nv"
BusID "PCI:1:0:0"
EndSection
Section "Device"
...
Driver "nvidia"
...
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV34M [GeForce FX Go5200]"
Monitor "Generic Monitor"
DefaultDepth 16
DefaultDepth 24
sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome
sudo cp /etc/gdm/gdm.conf-custom /etc/gdm/gdm.conf-custom-backup
gksudo gedit /etc/gdm/gdm.conf-custom
# GDM Configuration Customization file.
#
# This file is the appropriate place for specifying your customizations to the
# GDM configuration. If you run gdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running GDM GUI programs to
# automatically update with the new configuration. Not all configuration
# options are supported by gdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
#
# To hand-edit this file, simply add or modify the key=value combination in
# the appropriate section in the template below. Refer to the comments in the
# gdm.conf file for information about each option. Also refer to the reference
# documentation.
#
# If you hand edit a GDM configuration file, you should run the following
# command to get the GDM daemon to notice the change. Any running GDM GUI
# programs will also be notified to update with the new configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# For example, the "Enable" key in the "[debug]" section would be specified by
# "debug/Enable".
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings. You can also restart GDM by sending
# a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category. You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
#
# NOTE: Lines that begin with "#" are considered comments.
#
# Have fun!
[daemon]
[security]
[xdmcp]
[gui]
[greeter]
[chooser]
[debug]
[servers]# Override display 1 to use Xgl
0=Xgl
[server-Xgl]
name=Xgl server
command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo
flexible=true
gksudo gedit /usr/bin/thefuture
#!/bin/bash
gnome-window-decorator & compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
xmodmap /usr/share/xmodmap/xmodmap.us
sudo chmod 755 /usr/bin/thefuture
thefuture
/usr/bin/thefuture
(From Beryl Forums)
First make sure you have 3d acceleration available in a normal gnome session.
There are lots of howtos for this , Google if you need any help with that.
So if glxinfo shows direct rendering: yes , then you are good to go. If not xgl and Beryl wont work!
sudo apt-get update
sudo apt-get dist-upgrade
sudo gedit /etc/apt/sources.list
deb http://www.beerorkid.com/compiz/ dapper main
deb http://xgl.compiz.info/ dapper main
deb-src http://xgl.compiz.info/ dapper main
wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 beryl beryl-core beryl-manager beryl-plugins beryl-plugins-data beryl-settings emerald emerald-themes
sudo gedit /usr/bin/startxgl.sh
Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer & sleep 2 && DISPLAY=:1
# Start GNOME
exec gnome-session
sudo chmod 755 /usr/bin/startxgl.sh
sudo gedit /usr/share/xsessions/xgl.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XGl
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application
beryl
emerald
到gnome会话启动程序. (到"系统", "设定", "会话", 点选startup programs选项卡)
http://ubuntuforums.org/showthread.php?t=150854
Note for all cards: glxinfo will show that direct rendering is not working , dont worry thats normal when you are running xgl.
(来源 Ubuntu Forums)
Install your *ubuntu-desktop metapackage specific to your DE, e.g. sudo apt-get install ubuntu-desktop
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
gksudo gedit /etc/apt/sources.list
deb http://dev.realistanew.com/beryl edgy beryl
deb http://beryl-mirror.lupine.me.uk/beryl edgy beryl
(如果您需要64bit版本的beryl,将下列添加到库列表)
deb http://ubuntu.lupine.me.uk/ edgy main-amd64
sudo apt-get update
sudo apt-get install beryl-core beryl-plugins beryl-plugins-data emerald beryl-settings beryl-manager beryl beryl-dev emerald-themes
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
gksudo gedit /etc/X11/xorg.conf
# Enable 32-bit ARGB GLX Visuals
Option "AddARGBGLXVisuals" "True"
# If you are using an older version of compiz that
# does not support rendering into the Composite
# Overlay Window, you will need to disable clipping
# of GLX rendering to the X Root window with this
# option, or you will get a blank screen after
# starting compiz:
Option "DisableGLXRootClipping" "True"
Option "TripleBuffer" "true"
beryl-start
或者
beryl-manager
wget -c http://www.users.on.net/~stubby/usplash-minimalistic_0.1.deb
sudo dpkg -i usplash-minimalistic_0.1.deb
sudo update-alternatives --config usplash-artwork.so
sudo passwd root
sudo passwd -l root
安全标签页 -> 安全 -> 允许本地系统管理员登录 (勾选)
sudo -s -H
Password: <specify user password>
用户标签页面 -> 添加用户.../属性/删除
sudo useradd jim
sudo userdel jim
man usermod
组标签页面 -> 添加组.../属性/删除
安全标签页 -> 自动登录 ->
启用自动登录 (勾选)
用户: 选择 "系统用户名"
export EDITOR=gedit && sudo visudo
system_username ALL=(ALL) ALL
export EDITOR=gedit && sudo visudo
...
system_username ALL=(ALL) ALL
...
system_username ALL=(ALL) NOPASSWD: ALL
sudo -K
鼠标右键点击文件/目录 -> 属性
权限标签页 -> 读取/写入/执行 (Checked the permissions for Owner/Group/Others)
sudo chown system_username /location_of_files_or_folders
sudo chgrp system_groupname /location_of_files_or_folders
Just add two lines to xorg.conf will activate side-mouse-buttons in
FireFox. This should work with most 5-button mouse. Here is a list of
mice that worked with this instruction.
Backup Gnome configuration file
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
Modify the Gnome configuration file
gksudo gedit /etc/X11/xorg.conf
Find the Input Device section for your mouse and add two lines as
shown below. You may also increase the number of buttons if your mouse
has more than 7, just fix the rest of the section based upon the number
of buttons (remember back/forward, wheel click & tilt left/right
all count as buttons)
Change:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
...
Option "Protocol" "ExplorerPS/2"
...
Option "Emulate3Buttons" "true"
EndSection
to:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
...
Option "Protocol" "ExplorerPS/2"
...
Option "Emulate3Buttons" "true"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 6 7"
EndSection
At this point you can reboot your computer or reboot Gnome
(Ctrl-Alt-BackSpace) to see if your forward/back buttons work in
FireFox. They still won't work in Nautilus yet until you install the
imwheel dameon.
sudo apt-get install imwheel
gksudo gedit /etc/X11/imwheel/imwheelrc
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
sudo mkdir /home/login
gksudo gedit /home/login/mouse
#!/bin/sh
exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -k -b "67" &
exec $REALSTARTUP
sudo chmod +x /home/login/mouse
sudo apt-get install nvidia-glx nvidia-kernel-common
sudo nvidia-glx-config enable
sudo gedit /etc/X11/xorg.conf
sudo gedit /etc/X11/XvMCConfig
libXvMCNVIDIA_dynamic.so.1
xine -V xxmc filename.ts
mplayer -vo xvmc -vc ffmpeg12mc filename.ts
This section is borrowed from http://ubuntuforums.org/showthread.php?t=263851
sudo gedit /etc/apt/sources.list
deb http://amaranth.selfip.com edgy lrm
sudo apt-get update
sudo apt-get install nvidia-glx libxorg-sched-yield-hack0
sudo apt-get upgrade
sudo nvidia-xconfig
Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]"
Driver "nv"
Option "Rotate" "CW"
Where the "Rotate" option has two possible values (depending on the orientation of the monitor):
Section "Device"
Identifier "NVIDIA Corporation NV34 [GeForce FX 5200]"
Driver "nvidia"
Option "RandRRotation" "on"
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
gksudo gedit /etc/X11/xorg.conf
...
Section "Device"
Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]"
Driver "nvidia"
BusID "PCI:1:0:0"
...
Option "NoLogo"
Note: This driver is for Intel® 82830M, 82845G, 82852GM, 82855GM, 82865G, and 82915G/GM graphics controller-based products only.
wget -c http://downloadmirror.intel.com/df-support/8211/eng/dri-I915-v1.1-20041217.i386.rpm
sudo alien dri-I915-v1.1-20041217.i386.rpm
sudo dpkg -i dri-i915_v1.1-20041218_i386.deb
sudo apt-get install 915resolution
915resolution -l
915resolution 5c 1920 1200
sudo gedit /etc/rc.local
exit 0
sudo apt-get install lm-sensors
Create file called mkdev.sh, and paste in the following
#!/bin/bash
# Here you can set several defaults.
# The number of devices to create (max: 256)
NUMBER=32
# The owner and group of the devices
OUSER=root
OGROUP=root
# The mode of the devices
MODE=600
# This script doesn't need to be run if devfs is used
if [ -r /proc/mounts ] ; then
if grep -q "/dev devfs" /proc/mounts ; then
echo "You do not need to run this script as your system uses devfs."
exit;
fi
fi
i=0;
while [ $i -lt $NUMBER ] ; do
echo /dev/i2c-$i
mknod -m $MODE /dev/i2c-$i c 89 $i || exit
chown "$OUSER:$OGROUP" /dev/i2c-$i || exit
i=$[$i + 1]
done
#end of file
Make this file executable, then run it
sudo chmod +x mkdev.sh
./mkdev.sh
Now detect sensors, and answer "y" to all questions.
sudo sensors-detect
Load the modules into kernel
sensors -s
Now, let's see the output
sensors
Install and config lm-sensors first, see section above. Then run pwmconfig to test your fans
pwmconfig
If you can control fan speeds, great. Now creat a file called /etc/init.d/fancontrol, and paste in the following
#!/bin/sh
#
# Fancontrol start script.
#
set -e
# Defaults
DAEMON=/usr/sbin/fancontrol
PIDFILE=/var/run/fancontrol-pid
PATH=/sbin:/bin:/usr/sbin:/usr/bin
test -f $DAEMON || exit 0
. /lib/lsb/init-functions
case "$1" in
start)
log_begin_msg "Starting fancontrol daemon..."
start-stop-daemon --start -o -q -m -b -p $PIDFILE -x $DAEMON
log_end_msg $?
;;
stop)
log_begin_msg "Stopping fancontrol daemon..."
start-stop-daemon --stop -o -q -p $PIDFILE
log_end_msg $?
;;
force-reload|restart)
sh $0 stop
sh $0 start
;;
*)
log_success_msg "Usage: /etc/init.d/fancontrol {start|stop|restart|force-reload}"
log_success_msg " start - starts system-wide fancontrol service"
log_success_msg " stop - stops system-wide fancontrol service"
log_success_msg " restart, force-reload - starts a new system-wide fancontrol service"
exit 1
;;
esac
exit 0
Make it excutable
sudo chmod +x /etc/init.d/fancontrol
Test it
/etc/init.d/fancontrol start
and
/etc/init.d/fancontrol stop
If it works fine, autoload it when you reboot. Insert the following line into /etc/rc.local, before "exit 0"
/etc/init.d/fancontrol start
At a terminal, type
nvidia-settings
sudo apt-get install hddtemp
GKrellM is a hardware monitor that can display CPU and GPU
temperatures, fan speeds, voltages, CPU load, network load, disk
activity, disk temperature, memory usage, and swap usage. The
installation is very easy, and configuration is just a few
mouse-clicks. You can set alerts to warn you if the CPU is too hot or
there is a fan failure. The hddtemp utility works with GKrellM to allow
it to sense the disk temperature, as keeping your disks cool (e.g. less
than around 40C) will allow them to last longer than if they run
continually at higher temperatures (e.g. above 50C).
sudo apt-get install gkrellm
To run the program
Click Applications -> System Tools -> GKrellM
To configure the settings,
Right click on GKrellM -> Configuration
I was struggling with lm_sensors before, but it doesn't detect all
of the sensors on my computer. Later I found "GKrellM". It displays the
GPU temperature on my nVidia 6600 GT out of the box. GKrellM also has
plugins that show weather info, set reminders, etc.
Add an audio alert (optional Step): Here is how to play
an audio message when the CPU is too hot or a fan fails. First you need
to find or record your own audio alert files. (I use Audacity to record
my own.) Then go to:
Configuration -> Builtins folder (Left side)-> Sensors -> Temperatures folder (Right side)-> CPU -> Alerts Button
Paste ONE of the following lines into a Terminal window first to
test the sound. If you have two sound cards, you can use "-ao
oss:/dev/dsp1" option to route the sound to the second sound card.
Modify the file path and name so it points to the correct file. If you
can hear the sound, then copy that line to a command line text field on
the GKrellM's Alerts window.
mplayer /home/myfolder/alert_messages/heat_alert.mp3
mplayer -ao oss:/dev/dsp1 /home/myfolder/alert_messages/heat_alert.mp3
wget -c http://easylinux.info/uploads/scanModem.gz
gunzip -c scanModem.gz > scanModem
chmod +x scanModem
sudo cp scanModem /usr/bin/
sudo scanModem
gedit Modem/ModemData.txt
lsmod | grep acx
sudo rmmod acx
sudo mv /lib/modules/2.6.15-26-386/kernel/drivers/net/wireless/acx /root/
sudo apt-get install ndiswrapper-utils
sudo ndiswrapper -i /location_of_your_wireless_driver/your_driver.inf
sudo ndiswrapper -l
sudo modprobe ndiswrapper
sudo ndiswrapper -m
gksudo gedit /etc/modules
ndiswrapper
sudo iwconfig wlan0 essid "AP" key ababababababababab mode Managed
iwconfig
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="YourWiFiSSID"
psk="YourWiFiPassword"
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
}
sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd
gksudo gedit /etc/network/interfaces
If you are using static IP:
auto wlan0
iface wlan0 inet static
address 192.168.1.20
netmask 255.255.255.0
gateway 192.168.1.1
pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
or this, if you are using dhcp.
auto wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
uname -r (must be 2.6.10-5-386)
wget -c http://easylinux.info/uploads/sl-modem-modules-2.6.10-5-386_2.9.9a-1ubuntu2+2.6.10-34_i386.deb
sudo dpkg -i sl-modem-modules-*.deb
sudo apt-get install sl-modem-daemon
gksudo gedit /etc/udev/rules.d/10-custom.rules
BUS="usb", SYSFS{product}="Palm Handheld*", KERNEL="ttyUSB*", NAME{ignore_remove}="pilot", MODE="666"
sudo fdisk -l
df -Th
mount
lspci
lsusb
sudo hdparm -d1 /dev/cdrom
sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup
gksudo gedit /etc/hdparm.conf
/dev/cdrom {
dma = on
}
sudo mount /media/cdrom0/ -o unhide
sudo umount /media/cdrom0/
sudo umount /media/cdrom0/ -l
sudo mount -a
For a detailed guide with screenshots about how to configure the
"Extended input devices" in your graphic applications, please follow
the official Dapper guide at https://wiki.ubuntu.com//Wacom
With the version of the Linux Wacom driver (0.7.2) in Ubuntu
6.06 Dapper Drake, if you unplug you tablet, it won't function when you
plug it back in and you will have to restart X. For this reason, it is
best to leave the tablet plugged in. This limitation will be removed
when the 0.7.4 version of the driver is included in Ubuntu.
sudo apt-get install xserver-xorg-input-wacom wacom-tools
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
gksudo gedit /etc/X11/xorg.conf
sudo apt-get install linux-686-smp
cat /proc/cpuinfo
sudo gedit /etc/X11/xorg.conf
Modeline "1920x1200" 154 1920 1968 2000 2080 1200 1203 1209 1235
Section "Monitor"
Identifier "hp L2335"
Option "DPMS"
Modeline "1920x1200" 154 1920 1968 2000 2080 1200 1203 1209 1235
EndSection
gedit ~/.asoundrc
pcm.!default {
type plug
slave.pcm "surround51"
slave.channels 6
route_policy duplicate
}
sudo umount /dev/cdrom
cdrecord dev=/dev/cdrom blank=fast
nautilus burn:///
文件 -> 写入碟片... -> 写入
在镜像 (ISO) 按鼠标右键 -> 写入碟片... -> 写入
sudo umount /dev/cdrom
dd if=/dev/cdrom of=file.iso bs=1024
mkisofs -o file.iso /location_of_folder/
md5sum file.iso > file.iso.md5
md5sum -c file.iso.md5
sudo mkdir /media/iso
sudo modprobe loop
sudo mount file.iso /media/iso/ -t iso9660 -o loop
sudo umount /media/iso/
/ -> apps -> nautilus-cd-burner -> default_speed (set/change the burn speed)
/ -> apps -> nautilus-cd-burner -> burnproof (勾选)
/ -> apps -> nautilus-cd-burner -> overburn (勾选)
连接标签页 -> 选择 "以太网连接" -> 激活/禁用
连接标签页 -> 选择 "以太网连接" -> 属性
连接 -> 启用这个连接 (勾选)
连接设置 -> 设置: 选择 "DHCP/静态 IP 地址"
DNS 标签页 -> DNS 服务 -> 添加/删除
sudo pppconfig
sudo pon provider_name
sudo poff
sudo pppoeconf
General Tab -> Host Settings -> Hostname: Specify the computer name
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
server string = %h server (Samba, Ubuntu)
...
server string = new_computer_descriptions
sudo testparm
sudo /etc/init.d/samba restart
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
workgroup = MSHOME
...
workgroup = new_domain_or_workgroup
sudo testparm
sudo /etc/init.d/samba restart
sudo apt-get install ipcheck
sudo gedit /etc/ppp/ip-up.d/dyndns_update.sh
#!/bin/sh
USERNAME=myusername
PASSWORD=mypassword
HOSTNAME=myhostname.dyndns.org
cd /root/
if [ -f /root/ipcheck.dat ]; then
ipcheck -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
else
ipcheck --makedat -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
fi
sudo chmod 700 /etc/ppp/ip-up.d/dyndns_update.sh
sudo sh /etc/ppp/ip-up.d/dyndns_update.sh
用鼠标右键单击文件夹 -> 共享文件夹
共享文件夹 -> 共享方式: 选择 "SMB"
共享属性 -> 名称: 指定共享名称
smb://192.168.0.1/linux
sudo mkdir /media/sharename
sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword
sudo umount /media/sharename/
sudo mkdir /media/sharename
sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777
sudo umount /media/sharename/
sudo mkdir /media/sharename
sudo gedit /root/.smbcredentials
username=myusername
password=mypassword
sudo chmod 700 /root/.smbcredentials
sudo cp /etc/fstab /etc/fstab_backup
sudo gedit /etc/fstab
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials 0 0
sudo mkdir /media/sharename
sudo gedit /root/.smbcredentials
username=myusername
password=mypassword
sudo chmod 700 /root/.smbcredentials
sudo cp /etc/fstab /etc/fstab_backup
sudo gedit /etc/fstab
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
wget -c http://linux.edu.lv/uploads/content/pptp.tar.gz
tar zxvf pptp.tar.gz
sudo sh ./pptp/install
sudo gedit /usr/share/applications/pptpconfig.desktop
[Desktop Entry]
Name=PPTP Client
Comment=Configure and start PPTP tunnels (VPN)
Categories=Application;Network
Encoding=UTF-8
Exec=gksudo pptpconfig
Icon=gnome-remote-desktop.png
StartupNotify=true
Terminal=false
Type=Application
Ubuntu Dapper in typical cases can configure WPA to work out of the
box with minimal hassle. You'll need to install network-manager.
For Ubuntu:
sudo apt-get install network-manager-gnome
For Kubuntu (will install knetworkmanager):
sudo apt-get install network-manager-kde
Logout/Reboot.
Ubuntu users should now see the NetworkManager Applet in the Gnome notification area. Kubuntu users will probably have to run knetworkmanager before they see NetworkManager in the systray.
If instead, you get a "The NetworkManager applet could not find some required resources. It cannot continue." message, then:
sudo gtk-update-icon-cache -f /usr/share/icons/hicolor
Once Network-Manager is installed, click on the NM icon in the
notification area (default is at the top right of Ubuntu/Gnome). Choose
your network, then enter your passphrase. Type a password for the
keyring, and you're set.
If you don't see your network, click "Create New Wireless
Network...", type your essid/networkname, then choose "WPA Personal"
for wireless security.
GNOME windows can support several different users simultaniously.
Unlike vncviewer that just duplicates the current screen on a remote
system, XDMCP allows several different users to login and run different
GNOME sessions at the same time. So if you have a fast computer runing
Ubuntu, several users can use their slow machines to login and run
heavy applications only available on the fast machine.
To turn on the XDMCP feature on the fast computer, click the menu
System -> Administration -> Login Window
In the Login Window Preferences dialog window, select
Remote Tab -> Style: Same as Local -> Close the dialog window -> Restart the PC
1. Reboot the slow PC and stop at the login screen
2. Click Options at the lower left corner of the login screen
3. Select "Remote Login via XDMCP"
4. On the dialog window, type in the host name or ip of the fast computer you want to login to
Sharing ->
Allow other users to view your desktop (Checked)
Allow other users to control your desktop (Checked)
Security ->
Ask you for confirmation (Un-Checked)
Require the user to enter this password: (Checked)
Password: Specify the password
vncviewer -fullscreen 192.168.0.1:0
Press 'F8' -> Quit viewer
sudo mkdir /media/windows
sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
sudo umount /media/windows/
sudo mkdir /media/windows
sudo mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000
sudo umount /media/windows/
sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab_backup
gksudo gedit /etc/fstab
/dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0
sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab_backup
gksudo gedit /etc/fstab
/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0
Warning: Ntfs writing support is still experimental. You should not
enable it on production machines and/or volumes you don't have backups
of. Proceed at your own risk!
sudo apt-get install libfuse2 fuse-utils
libntfs8
ntfsprogs
libfuse2
fuse-utils
sudo dpkg -i libfuse2_*.deb fuse-utils_*.deb ntfsprogs_*.deb libntfs8_*.deb
echo fuse | sudo tee -a /etc/modules
sudo addgroup ntfs
sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab.bak
gksudo gedit /etc/fstab
/dev/hda1 /media/windows ntfs-fuse auto,gid=1002,umask=0002 0 0
sudo adduser username ntfs
sudo rm /sbin/mount.ntfs-fuse && sudo ln /usr/bin/ntfsmount /sbin/mount.ntfs-fuse
sudo modprobe fuse && sudo umount -a && sudo mount -a
grub-md5-crypt
Password:
Retype password:
$1$tumnZ1$xB/shuXs7MlawZXkLiBDV/
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
...
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$tumnZ1$xB/shuXs7MlawZXkLiBDV/
# password topsecret
...
password --md5 $1$tumnZ1$xB/shuXs7MlawZXkLiBDV/ (encrypted password above)
...
title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
...
...
title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
lock
root (hd0,1)
...
This will make it so your grub console will require a password to
edit the lines, and the recovery modes won't work unless the password
is typed. To access the other grub options at the menu, follow the
instructions at the bottom of the screen. It will be something like
pressing p and typing your password.
rm -f .bash_history
gedit ~/.bash_profile
export HISTFILESIZE=4
unset HISTFILE=5
# Change this to a reasonable number of lines to save, I like to save only 100.
export HISTSIZE=1
# Ignores duplicate lines next to each other
export HISTCONTROL=ignoredups
This will disable Bash history for the user, retaining keystroke
history and recall to use while limiting recall history to 100 lines.
This will also not record duplicate lines next to each other.
sudo cp /etc/inittab /etc/inittab_backup
gksudo gedit /etc/inittab
...
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
...
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
sudo telinit q
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup
gksudo gedit /etc/bash.bashrc
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
What: Quote from Wikipedia: "LoJack is an aftermarket
vehicle tracking system that allows cars to be tracked by police after
being stolen. The manufacturer claims a 90% recovery rate. The name
"LoJack" is a play on the word "hijack," meaning the theft of a vehicle
through force."
Why: If your laptop is ever stolen and connected
to the Internet. You will be able to find out from what IP it connects
to the Internet from and contact the authorities.
How:
sudo apt-get install ddclient
sudo emacs /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
pid=/var/run/ddclient.pid
protocol=dyndns2
use=web
server=members.dyndns.org
login=YourNameHere
password='YourPasswordHere'
YourHostNameHere.gotmyip.com
sudo /etc/init.d/ddclient start
ping YourHostNameHere.gotmyip.com
References:
Ubuntu, kernel 2.6.10-5-386 (recovery mode)
Ubuntu, kernel 2.6.10-5-386
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash
grub edit> kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash
boot: rescue
# passwd root
# passwd system_main_username
grub
grub> md5crypt
Password: ****** (ubuntu)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
...
password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
...
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
Press "c" on boot menu. If you don't see a boot menu, press ESC key first when booting to show the boot menu.
Type:
root (hd0,0)
Most likely you will get "(hd0,0) ext2fs", which should be your
current Linux drive. Now change hd0 to hd1 to see what is there.
root (hd1,0)
If you get "(hd1,0) filesystem type unknown, partition type 0x7", then hd1 is a Windows drive.
Now change hd1 to hd2, keep going until you reach hd7.
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
title Microsoft Windows
root (hd0,0)
savedefault
makeactive
chainloader +1
This configuration applies to people who have Linux installed on a
IDE drive, and Windows installed on a seperate SATA. The IDE drive
boots first, so we need to add an entry to the boot menu on the Linux
disk. Here we assume the name of your Windows drive is hd1. If you are
not sure, click the link above to find out.
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
title Windows XP on SATA drive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
按组合键 'Ctrl + Alt + Backspace'
sudo /etc/init.d/gdm restart
sudo apt-get install numlockx
sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup
gksudo gedit /etc/X11/gdm/Init/Default
...
exit 0
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
gksudo gedit /etc/console-tools/remap
#s/keycode 58 = Caps_Lock/keycode 58 = Control/;
to
s/keycode 58 = Caps_Lock/keycode 58 = Control/;
sudo /etc/init.d/console-screen.sh
gksudo gedit ~/.Xmodmap
keycode 66 = Control_L
clear Lock
add Control = Control_L
xmodmap ~/.Xmodmap
cp /etc/X11/xinit/xinitrc ~/.xinitrc
gedit ~/.xinitrc
xmodmap ~/.Xmodmap
Startup Programs Tab(启动程序) -> Add(加入)/Edit(编辑)/Delete(删除)
Press 'Ctrl + Alt + F1' (F2 - F6)
Press 'Alt + F1' (F2 - F6)
Press 'Alt + F7'
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
gksudo gedit /etc/X11/xorg.conf
Section "ServerFlags"
Option "DontZap" "yes"
EndSection
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete"
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"
killall nautilus
killall gnome-panel
/ -> apps -> gedit-2 -> preferences -> editor -> save -> create_backup_copy (Unchecked)
/ -> apps -> gedit-2 -> preferences -> editor -> save -> auto_save (Checked)
Press 'Ctrl + H'
Edit Menu -> Preferences
Views Tab -> Default View -> Show hidden and backup files (Checked)
gksudo gedit /usr/share/applications/Nautilus-root.desktop
[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;
Right click on file -> Properties
Open With Tab -> Add
Select "Open with" program
Select "Open with" program (Checked)
Mail Reader Tab -> Default Mail Reader -> Command: mozilla-thunderbird %s
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
Right click on file -> Scripts -> Open as root
Not for Dapper---- firingstone
Edit Menu -> Current Profile...
General Tab -> General -> Terminal bell (Un-Checked)
Now just right click somewhere into the main window. A little box with options to choose will appear. Choose "new", then "string". Then copy the following line into the appearing text field:
network.protocol-handler.app.mms
Into the next text field copy this:
/usr/bin/X11/vlc
Now you do the same thing again, but this time you do not choose "string" but "boolean", and the line to copy is:
network.protocol-handler.external.mms
Then set
true
Now just right click somewhere into the main window. A little box with options to choose will appear. Choose "new", then "string". Then copy the following line into the appearing text field:
network.protocol-handler.app.rtsp
Into the next text field copy this:
/usr/bin/X11/realplay
Now you do the same thing again, but this time you do not choose "string" but "boolean", and the line to copy is:
network.protocol-handler.external.rtsp
Then set
true
Address Bar -> about:config
Filter: ->
network.dns.disableIPv6 -> true
network.http.pipelining -> true
network.http.pipelining.maxrequests -> 8
network.http.proxy.pipelining -> true
Address Bar -> about:config
Filter: -> accessibility.typeaheadfind.enablesound -> false
deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb http://packages.freecontrib.org/plf edgy-plf free non-free
deb-src http://packages.freecontrib.org/plf edgy-plf free non-free
Edit Menu -> Reload Package Information
Edit Menu -> Mark All Upgrades... -> Default Upgrade
Edit Menu -> Apply Marked Changes
Edit Menu -> Search... Specify the package name
Select "package_name"
Package Menu -> Mark for Installation
Edit Menu -> Apply Marked Changes
Select "package_name"
Package Menu -> Mark for Removal
Edit Menu -> Apply Marked Changes
sudo dpkg -i package_file.deb
sudo dpkg -r package_name
dpkg -l packagename
sudo alien package_file.rpm
sudo apt-get install checkinstall build-essential
sudo checkinstall
or
sudo checkinstall -D
wget -c http://easylinux.info/uploads/mvb_1.6.tgz
sudo tar zxvf mvb_1.6.tgz -C /usr/share/
sudo chown -R root:root /usr/share/mvb_1.6/
sudo ln -fs /usr/share/mvb_1.6/mvb /usr/bin/mvb
mvb NEW_NAME
sudo apt-get install imagemagick
wget -c http://easylinux.info/uploads/bbips.0.3.2.sh
sudo cp bbips.0.3.2.sh /usr/bin/bbips
sudo chmod 755 /usr/bin/bbips
bbips
sudo cp -p /etc/profile /etc/profile_backup
gksudo gedit /etc/profile
man command | col -b > file.txt
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
...
#hiddenmenu
...
hiddenmenu
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
...
timeout 3
...
timeout X_seconds
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
...
default 0
...
default X_sequence
wget -c http://easylinux.info/uploads/ubuntu.xpm.gz
chmod 644 ubuntu.xpm.gz
sudo mkdir /boot/grub/images
sudo cp ubuntu.xpm.gz /boot/grub/images/
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
...
splashimage (hd0,1)/boot/grub/images/ubuntu.xpm.gz
convert -resize 640x480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup-`date +%F`
gksudo gedit /boot/grub/menu.lst
...
# howmany=all
...
# howmany=1
Where 1 means to keep the last kernel, 2 to keep the last 2 kernels,
etc. Do not delete the # symbol. The menu will be updated once a new
kernel will be updated by the system, not before.
echo foo >> ~/foo.wav
Now make sure the "Login Screen Ready" check mark is checked. Click
on the folder icon and navigate to your home folder and select
"foo.wav".
rm foo.wav
The drop down menu should now say "(None)"
在服务加载时按 'Ctrl + C' 可中断该服务加载
sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup
gksudo gedit /etc/init.d/sysklogd
...
stop)
log_begin_msg "Stopping system log daemon..."
start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile
log_end_msg $?
...
rm -fr /tmp/* /tmp/.??*
Press 'Shift + Page Up'
Press 'Shift + Page Down'
cat /etc/issue
cd ~
wget http://members.chello.at/horst.jens/files/wallpaperchanger.py
chmod +x wallpaperchanger.py
~/wallpaperchanger.py
gedit ~/.wallpaperchanger/wallpaperchangerconfig.py
Click the menuitems: Applications -> Accessoires -> Alacarte Menu Editor -> File -> New Entry:
Name: wallpaperchanger
command: ~/wallpaperchanger.py
Click the menuitems: System -> Preferences -> Session -> Startup Programs -> Add:
~/wallpaperchanger.py
See #How to add the Keyboard (Layout) Indicator applet to add the Keyboard Indicator applet.
setxkbmap -option grp:switch,grp:alt_shift,grp_led:scroll us,2nd_laguage_code
#!/bin/tcsh
setxkbmap -option grp:switch,grp:alt_shift,grp_led:scroll us,il
The Keyboard Indicator applet appears on the panel. The default
language should be USA for U.S. English. You can either right-click on
this applet for more options or see above on how to configure.
The key marked ['"] is now a dead key. When you press it, nothing
happens. However if you press a consonant immediately afterwards, the
consonant appears with an accent.
Similarly, ` and a consonant generates à, è, ù, ì, ò.
Similarly, ~ and a consonant generates ã, ũ, ĩ, õ, ñ.
To type ' and ", press RightAlt+' and RightAlt+" respectively.
To type ' and ", you may also press '+<space> and "+<space> respectively.
There are more characters available by keeping RightAlt pressed and typing a character. Therefore,
Now you can type extended characters using the RightWin key (next to AltGr), according to this keyboard settings file.
Specifically, the lines that start with GDK_Multi_key are those that we can use here. The Compose key is actually GDK_Multi_key.
Some examples,
sudo apt-get install ttf-ubuntu-title
Now you can use this font in your favorite applications
Now when you double-click on a .pdf file, it will be opened with Adobe Reader.
/usr/bin/lp -d FS-1010
sudo apt-get install pdftk
cd
mkdir bin
cd bin
gedit pdftk_burst
#!/bin/bash
cd ${1%/*}
/usr/bin/pdftk "$1" burst
rm doc_data.txt
gedit pdftk_cat
#!/bin/bash
cd ${1%/*}
outfile="00out.pdf"
if [ -f $outfile ] ; then
rm -f $outfile
fi
/usr/bin/pdftk *.pdf cat output $outfile
chmod u+x pdftk_burst pdftk_cat
Now, when you right-click on a .pdf file, you'll get two extra options:
Note: this won't work with pdfs with any type of protection - read man pdftk for more command line options.
sudo dpkg --remove --force-depends --force-remove-reinstreq jedit
Now, you can use your Synaptic package manager again.
sudo apt-get install clamav
sudo freshclam
sudo clamscan -r /location_of_files_or_folders
export EDITOR=gedit && sudo crontab -e
00 00 * * * sudo clamscan -r /location_of_files_or_folders
sudo apt-get install cupsys*
A "Add printer wizard" should start and tell you what to do.
sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.backup
gksudo gedit /etc/cups/cupsd.conf
<Location />
...
Allow localhost
...
</Location>
Allow 192.168.0.23
sudo /etc/init.d/cupsys restart
sudo cp /etc/cups/client.conf /etc/cups/client.conf.backup
gksudo gedit /etc/cups/client.conf
ServerName 192.168.0.1
sudo /etc/init.d/cupsys restart
vitek@lightfox:~$ lpq
HPLJ6P is ready
no entries
sudo apt-get install samba
sudo apt-get install smbfs
sudo smbpasswd -a system_username
sudo gedit /etc/samba/smbusers
system_username = "network username"
sudo smbpasswd -a system_username
sudo smbpasswd -x system_username
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
; security = user
...
security = user
username map = /etc/samba/smbusers
sudo testparm
sudo /etc/init.d/samba restart
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
; security = user
...
security = user
username map = /etc/samba/smbusers
...
# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = no
...
# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = yes
sudo testparm
sudo /etc/init.d/samba restart
sudo mkdir /home/group
sudo chmod 777 /home/group/
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[Group]
comment = Group Folder
path = /home/group
public = yes
writable = no
valid users = system_username1 system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
sudo testparm
sudo /etc/init.d/samba restart
sudo mkdir /home/group
sudo chmod 777 /home/group/
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[Group]
comment = Group Folder
path = /home/group
public = yes
writable = yes
valid users = system_username1 system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
sudo testparm
sudo /etc/init.d/samba restart
sudo mkdir /home/public
sudo chmod 777 /home/public/
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[public]
comment = Public Folder
path = /home/public
public = yes
writable = no
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
sudo testparm
sudo /etc/init.d/samba restart
sudo mkdir /home/public
sudo chmod 777 /home/public/
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
; security = user
...
security = user
username map = /etc/samba/smbusers
[public]
comment = Public Folder
path = /home/public
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
sudo testparm
sudo /etc/init.d/samba restart
sudo mkdir /home/public
sudo chmod 777 /home/public/
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
; security = user
...
security = share
[public]
comment = Public Folder
path = /home/public
public = yes
writable = no
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
sudo testparm
sudo /etc/init.d/samba restart
sudo mkdir /home/public
sudo chmod 777 /home/public/
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
...
; security = user
...
security = share
[public]
comment = Public Folder
path = /home/public
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
sudo testparm
sudo /etc/init.d/samba restart
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
gedit /etc/samba/smb.conf
...
# printing = cups
# printcap name = cups
...
printing = cups
printcap name = cups
sudo /etc/init.d/cupsys restart
sudo apt-get install ssh
ssh username@192.168.0.1
scp -r username@192.168.0.1:/home/username/remotefile.txt .
scp -r localfile.txt username@192.168.0.1:/home/username/
rsync -v -u -a --delete --rsh=ssh --stats username@192.168.0.1:/home/username/remotefile.txt .
rsync -v -u -a --delete --rsh=ssh --stats localfile.txt username@192.168.0.1:/home/username/
sudo apt-get install sshfs
sudo modprobe fuse
gksudo gedit /etc/modules
sudo adduser your_user_name fuse
mkdir ~/remote_music
sshfs 192.168.0.1:/media/music ~/remote_music
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ORIGINAL
gksudo gedit /etc/ssh/sshd_config
sudo apt-get install dhcp3-server
sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup
sudo gedit /etc/default/dhcp3-server
...
INTERFACES=""
INTERFACES="eth0"
sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup
sudo gedit /etc/dhcp3/dhcpd.conf
...
# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
...
# option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;
#default-lease-time 600;
#max-lease-time 7200;
...
# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
...
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option domain-name-servers 202.188.0.133, 202.188.1.5;
option domain-name "tm.net.my";
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
default-lease-time 600;
max-lease-time 7200;
}
sudo /etc/init.d/dhcp3-server restart
sudo apt-get install mysql-server
sudo gedit /etc/mysql/my.cnf
...
#bind-address = 127.0.0.1
...
mysqladmin -u root password your-new-password
mysqladmin -h root@local-machine-name -u root -p password your-new-password
sudo /etc/init.d/mysql restart
sudo apt-get install mysql-admin
deb http://oss.oracle.com/debian unstable main non-free
sudo apt-get update
sudo apt-get install oracle-xe
sudo usermod -G dba -a username
sudo apt-get install apache2
sudo apt-get install php4
sudo apt-get install libapache2-mod-php4
sudo /etc/init.d/apache2 restart
gksudo gedit /var/www/testphp.php
<?php phpinfo(); ?>
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
gksudo gedit /var/www/testphp.php
<?php phpinfo(); ?>
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php4-mysql
sudo /etc/init.d/apache2 restart
sudo gedit /etc/apache2/conf.d/alias
Alias /URL-path /location_of_folder/
<Directory /location_of_folder/>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
sudo /etc/init.d/apache2 restart
sudo cp /etc/apache2/ports.conf /etc/apache2/ports.conf_backup
sudo gedit /etc/apache2/ports.conf
Listen 80
Listen 78
sudo /etc/init.d/apache2 restart
wget -c http://easylinux.info/uploads/magpierss-0.71.1.tar.gz
sudo mkdir /var/www/feeds
sudo tar zxvf magpierss-0.71.1.tar.gz -C /var/www/feeds/
sudo mv /var/www/feeds/magpierss-0.71.1/* /var/www/feeds/
sudo rm -fr /var/www/feeds/magpierss-0.71.1/
sudo chown -R www-data:root /var/www/feeds/
sudo gedit /var/www/feeds/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>DistroWatch.com - News</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css">
/*<![CDATA[*/
/*
DEFAULT TAG STYLES
*/
body {
background: #ffffff;
margin-left: 20px;
font-family: bitstream vera sans,sans-serif;
font-size: 9pt;
}
h1 {
font-family: luxi sans,sans-serif;
font-size: 15pt;
}
/*]]>*/
</style>
</head>
<body>
<?php
require_once 'rss_fetch.inc';
error_reporting(E_ERROR);
$url = 'http://distrowatch.com/news/dw.xml';
$rss = fetch_rss($url);
if ($rss) {
echo "<h1>";
echo "<a href=$url>", $rss->channel[title], "</a><br/>";
echo "</h1>";
foreach ($rss->items as $item ) {
$url = $item[link];
$title = $item[title];
$description = $item[description];
echo "<li>";
echo "<b>Topic:</b> <a href=$url><b><u>$title</u></b></a><br/><br/>";
echo "$description<br/><br/>";
echo "</li>";
}
}
else {
echo "<a href=$url>", $url, "</a> - Server Down!<br/>";
}
?>
</body>
</html>
sudo apt-get install proftpd
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
sudo gedit /etc/proftpd.conf
...
DenyFilter \*.*/
...
DefaultRoot ~
sudo /etc/init.d/proftpd restart
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
sudo gedit /etc/proftpd.conf
<Anonymous ~ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
sudo /etc/init.d/proftpd restart
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
sudo gedit /etc/proftpd.conf
<Anonymous ~ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
</Anonymous>
sudo /etc/init.d/proftpd restart
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
sudo gedit /etc/proftpd.conf
<Anonymous /location_of_folder/>
User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
sudo /etc/init.d/proftpd restart
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
sudo gedit /etc/proftpd.conf
Port 21
Port 77
sudo /etc/init.d/proftpd restart
sudo apt-get install gnump3d
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup
sudo gedit /etc/gnump3d/gnump3d.conf
root = /var/music
root = /home/music
user = gnump3d
user = root
sudo /etc/init.d/gnump3d restart
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup
sudo gedit /etc/gnump3d/gnump3d.conf
port = 8888
port = 7878
sudo /etc/init.d/gnump3d restart
sudo apt-get install gallery (当提示要重启Apache时, 选择否(No)或取消(Cancel))
sudo apt-get install imagemagick
sudo apt-get install jhead
sudo apt-get install libjpeg-progs
sudo /etc/init.d/apache2 restart
sudo sh /usr/share/gallery/configure.sh
Gallery Configuration Wizard: Step 1
Next Step ->
Gallery Configuration Wizard: Step 2
General settings Tab ->
Admin password: Specify the password
Locations and URLs Tab ->
Album directory: /var/www/albums/
Temporary directory: /tmp/
Gallery URL: http://localhost/gallery
Albums URL: http://localhost/albums
Next Step -->
Gallery Configuration Wizard: Step 3
Next Step -->
Gallery Configuration Wizard: Step 4
Save Config ->
sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup
sudo gedit /etc/gallery/config.php
...
$gallery->app->photoAlbumURL = "http://localhost/gallery";
$gallery->app->albumDirURL = "http://localhost/albums";
...
$gallery->app->photoAlbumURL = "http://www.url.com/gallery";
$gallery->app->albumDirURL = "http://www.url.com/albums";
sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup
sudo gedit /etc/gallery/config.php
...
$gallery->app->photoAlbumURL = "http://localhost/gallery";
$gallery->app->albumDirURL = "http://localhost/albums";
...
$gallery->app->photoAlbumURL = "/gallery";
$gallery->app->albumDirURL = "/albums";
sudo tar zcvf gallery.tgz /var/www/albums/ /etc/gallery/
sudo tar zxvf gallery.tgz -C /
service_name = ntpdate
sudo cp /etc/default/rcS /etc/default/rcS_backup
gksudo gedit /etc/default/rcS
...
UTC=yes
...
UTC=no
设置正确的日期和时间
sudo /etc/init.d/hwclock.sh restart
sudo killall esd
sudo cp /etc/esound/esd.conf /etc/esound/esd.conf_backup
gksudo gedit /etc/esound/esd.conf
...
auto_spawn=0
spawn_options=-terminate -nobeeps -as 5
...
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
sudo apt-get install libesd-alsa0
gksudo gedit /etc/asound.conf
pcm.card0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
sudo ln -fs /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
菜单 System -> Preferences-> Sound
Sound preferences
General Tab -> Sounds for events (Un-Checked)
sudo rm -fr $HOME/.Trash/
rm -f $HOME/.config/menus/applications.menu
sudo /etc/init.d/dbus restart
gksudo gedit /etc/wpa_supplicant.conf
network={
ssid="YOUR_PREFERRED_CONNECTION_SSID"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
psk="STRING_TO_GENERATE_PASSWORD"
#psk=123456789 #you have option to use connection key instead of connection password
}
gksudo gedit /etc/init.d/wifi_wpa.sh
#! /bin/sh
# wifi: wpa_supplicant init
echo " * [Wifi]: Enabling WPA supplicant..."
if [ -x /sbin/wpa_supplicant ]; then
/sbin/wpa_supplicant -B -i ath0 -c /etc/wpa_supplicant.conf -D madwifi -w
fi
exit 0
sudo chmod +r /etc/wpa_supplicant.conf
sudo chmod +x /etc/init.d/wifi_wpa.sh
sudo ln -s /etc/init.d/wifi_wpa.sh /etc/rcS.d/S40netwifiwpa
方法 A (官方)
sudo aptitude update && sudo aptitude upgrade
gksudo "update-manager -c -d"
方法 B (替代方法)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
gksudo gedit /etc/apt/sources.list
sudo aptitude update
sudo aptitude dist-upgrade
(注意这里我们使用了 aptitude 而不是 apt-get 因为前者能更好地处理文件包之间的依赖关系。)
注意: 不要跳跃版本升级,而要先升级到相邻版本,比如从 Breezy 到 Dapper 然后再到 Edgy. 如果你目前的版本是Hoary那么升级顺序是 Hoary->Breezy->Dapper->Edgy.
文章评论(0条评论)
登录后参与讨论