Showing posts with label Linux. Show all posts

HowTo: Create a Passwordless / Guest Login (Simple Method)  

Warning: Even though this method is simple (few steps), it is extremely dangerous if you don't know what you're doing. Do not attempt this if you are worried that you might mess up the /etc/shadow file, thus screwing up your Ubuntu system, possibly irreparably!

This is an oft-requested task, mainly for people who don't want to require less tech-savvy family members to have to remember passwords. It is a security risk, but I think people should at least know how to put their computers at risk if they want to. Don't blame me if anything bad happens.

Step 1
Make sure you have created a user. For the sake of this example, let's say you called the account username guest. You can give it any temporary password you want. We're going to change that password shortly anyway. I'm assuming you know how to do this already. If you don't, I can assure you that this HowTo is not one you should be following, and you would be very likely to screw up the next step.

Step 2
Next, go to the terminal and paste in this command:
Code:
sudo nano /etc/shadow
This will open the /etc/shadow file (the one that contains all the passwords) in a text editor called Nano.

Once you have it open, find the appropriate line for the account in question. It'll look something like this:
Code:
guest:$1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0:13721:0:99999:7:::
Change the second part (in bold here) to match this second part (also in bold):
Code:
guest:U6aMy0wojraho:13721:0:99999:7:::
Then save the file (Control-X, Y, Enter).

Now you should be able to log into the guest (or whatever you called it) account without entering a password.

Improved subpixel font rendering for Feisty--改进字体渲染  

LINK: http://ubuntuforums.org/showthread.php?t=343670
Patched libraries are built against freetype 2.3.x (not currently in feisty) and include David Turner's subpixel rendering patches.

Code:
deb http://www.telemail.fi/mlind/ubuntu feisty fonts
deb-src http://www.telemail.fi/mlind/ubuntu feisty fonts
[edit]
for amd64 binaries use RAOF's repository
Code:
deb http://raof.dyndns.org/falcon feisty experimental
deb-src http://raof.dyndns.org/falcon feisty experimental
Alternative repository, for experimental builds only.
Code:
deb http://www.telemail.fi/mlind/ubuntu feisty experimental
deb-src http://www.telemail.fi/mlind/ubuntu feisty experimental

Notes
  • To install the packages
    Code:
    sudo aptitude update
    sudo aptitude install libfreetype6 libcairo2 libxft2
  • After the install, you may want reconfigure font settings. I'm currently using Feisty defaults (Native, Always, No bitmapped fonts) myself.
    Code:
    sudo dpkg-reconfigure fontconfig-config
    sudo dpkg-reconfigure fontconfig
  • If you get errors about missing gpg key
    Code:
    wget http://www.telemail.fi/mlind/ubuntu/937215FF.gpg -O- | sudo apt-key add -
    (or alternatively)
    Code:
    gpg --keyserver subkeys.pgp.net --recv-keys 937215FF
    gpg --export --armor 937215FF | sudo apt-key add -
  • GPG key to RAOF's repository (amd64 packages)
    Code:
    wget http://ubuntu.moshen.de/2F306651.gpg -O- | sudo apt-key add -
  • If you later decide to go back to Ubuntu packages, you must downgrade all three installed packages
  • You'll probably need to restart X-server after installing the packages to see the changes apply

Sharing Internet Connection in Ubuntu  

Setting up a computer to share its internet connection should be easy.After all, you’ve successfully networked your computers together and even shared files with all your home computers, so why not the Internet? Well if you have a small home network of computers all connected and have tried to open up a browser, you’ve probably found out that things aren’t quite as straight forward as connecting one machine with an Ethernet cable to the computer that has the DSL/cable modem.

The secret is that everything comes down to having a gateway.

A gateway is a computer or device than can route data between different networks. Put it this way, if your computers are on one network and every other computer connected to the Internet is on a different one, to pass information across network boundaries you need a device which is connected to both networks and equipped to decide whether information from one network should go out to the other network, and vice versa.

So, without a gateway there is no way for the other computers in your network to receive or pass information to the other networks, and consequently, they have no Internet access.

The computer in your small network which is directly connected to the cable or DSL modem is provided with a default gateway by the Internet service provider. That allows the computer to connect to the interenet, but unfortunately for us that gateway is not part of your home network - rather it is a separate network formed between the computer connected to the cable/DSL modem and the ISP itself.

In order to enable Internet access on the rest of your small home network, the computer or device that connects with your ISP must become a gateway for the computers in your local home network. Once this has been configured, it will enable all of the other home network computers to access the Internet by sending and receiving information through that gateway.

The easiest way of acquiring a gateway for your home network is to buy a cable/DSL router. Given how cheap they currently are (about a quarter of the price they commanded when they first appeared in the marketplace), there really isn’t much of an excuse not to buy one.

The major advantages of having a hardware router doing your internet sharing include minimal configuration, since they are set up to act as a gateway by default (it’s pretty much all they do), increased reliability (they are not a PC… PCs crash.), and security, since most of these devices incorporate a firewall. Highly recommended!

You’ll also need

a working dial-up Internet account with an Internet Service Provider (ISP) or

a working broadband (cable, DSL, satellite, etc.) Internet connection.

Share your Internet connection using the following Procedure

Note: Type all the following commands in a root terminal

Start by configuring the network card that interfaces to the other computers on you network

# ifconfig ethX ip

where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)

Then configure the NAT as follows

# iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

where ethX is the network card that the Internet is coming from

# echo 1 > /proc/sys/net/ipv4/ip_forward

Install dnsmasq and ipmasq using the following command

# apt-get install dnsmasq ipmasq

Restart dnsmasq using the following command

# /etc/init.d/dnsmasq restart

Reconfigure ipmasq to start after networking has been started

# dpkg-reconfigure ipmasq

Start by configuring the network card that interfaces to the other computers on you network

# ifconfig ethX ip

where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)

Then configure the NAT as follows

# iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

where ethX is the network card that the Internet is coming from

# echo 1 > /proc/sys/net/ipv4/ip_forward

Add the line “net.ipv4.ip_forward = 1″ to /etc/sysctl.conf

# gedit /etc/sysctl.conf

Reboot your system is optional.

xmame启动黑屏问题  

说是xmame-x11好像和ATI的fglrx有点问题, 换成xmame-sdl变OK了.不过这个方法我没试过.
又发现一个,管用:
If anyones interested I found the problem with the black screen on Mame - at least, this worked on my machine using KXMame. I believe the problem has to do with the DGA video mode when running an ATI graphics card with the fglrx drivers, which is buggy and/or broken.

I have been tweaking around with my xorg.conf file and made the following changes:

Under Section "Module"
SubSection "extmod"
Option "omit xfree86-dga" #Don't initialize the DGA extension
EndSubSection

And commented out the extmod module with a #, like so
# Load "extmod"

Restarted X with a ctrl+alt+backspace and voila! I no longer get the black screen when launching kxmame/gxmame. It took quite a lot of investigation, I hope someone finds this useful.

使用ZFS的十条理由 - ZFS特性介绍  

http://blog.ccw.com.cn/article-htm-itemid-13017-type-blog.html

Quick Tips  

1.如何不重启系统,而使得fstab生效?
sudo mount -a

2.如何查看分区的UUID?
ls -l /dev/disk/by-uuid

3.如何建立vsftpd的虚拟目录?
mkdir /home/ftp/mytest
mount --bind /myold /home/ftp/mytest

4.查看pdf时中文出现乱码?
a) evince,xpdf
sudo apt-get install xpdf-chinese-simplified
b) acroread
http://www.adobe.com/products/acrobat/acrrasianfontpack.html

5.如何重启X?
a) Ctrl+Alt+BackSpace
b) sudo /etc/init.d/gdm force-reload
sudo /etc/init.d/kdm force-reload

6.如何更换ubuntu的开关机画面?
usplash
kubuntu-artwork-usplash
xubuntu-artwork-usplash
-----------------------
sudo update-alternatives --config usplash-artwork.so

7.如何设置环境变量?
a) /etc/environment
/etc/profile
b) ~/.bashrc
export PATH=$PATH:/home/dbzhang/bin
执行source ~/.bashrc使生效

8.如何查看系统运行时间?
uptime

查看软件xxx安装内容

*

dpkg -L xxx

查找软件

*

apt-cache search 正则表达式

查找文件属于哪个包

*

dpkg -S filename
apt-file search filename

查询软件xxx依赖哪些包

*

apt-cache depends xxx

查询软件xxx被哪些包依赖

*

apt-cache rdepends xxx

增加一个光盘源

*

sudo apt-cdrom add

系统升级

*

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

清除所以删除包的残余配置文件

*

dpkg -l |grep ^rc|awk '{print $2}' |tr ["\n"] [" "]|sudo xargs dpkg -P -

编译时缺少h文件的自动处理

*

sudo auto-apt run ./configure

查看安装软件时下载包的临时存放目录

*

ls /var/cache/apt/archives

备份当前系统安装的所有包的列表

*

dpkg --get-selections | grep -v deinstall > ~/somefile

从上面备份的安装包的列表文件恢复所有包

*

dpkg --set-selections < ~/somefile
sudo dselect

清理旧版本的软件缓存

*

sudo apt-get autoclean

清理所有软件缓存

*

sudo apt-get clean

删除系统不再使用的孤立软件

*

sudo apt-get autoremove

系统

查看内核

*

uname -a

查看Ubuntu版本

*

cat /etc/issue

查看内核加载的模块

*

lsmod

查看PCI设备

*

lspci

查看USB设备

*

lsusb

查看网卡状态

*

sudo ethtool eth0

查看CPU信息

*

cat /proc/cpuinfo

显示当前硬件信息

*

lshw

硬盘

查看硬盘的分区

*

sudo fdisk -l

查看IDE硬盘信息

*

sudo hdparm -i /dev/hda

查看STAT硬盘信息

*

sudo hdparm -I /dev/sda
或
sudo apt-get install blktool
sudo blktool /dev/sda id

查看硬盘剩余空间

*

df -h
df -H

查看目录占用空间

*

du -hs 目录名

优盘没法卸载

*

sync
fuser -km /media/usbdisk

内存

查看当前的内存使用情况

*

free -m

进程

查看当前有哪些进程

*

ps -A

中止一个进程

*

kill 进程号(就是ps -A中的第一列的数字)
或者 killall 进程名

强制中止一个进程(在上面进程中止不成功的时候使用)

*

kill -9 进程号
或者 killall -9 进程名

图形方式中止一个程序

*

xkill 出现骷髅标志的鼠标,点击需要中止的程序即可

查看当前进程的实时状况

*

top

查看进程打开的文件

*

lsof -p

ADSL

配置 ADSL

*

sudo pppoeconf

ADSL手工拨号

*

sudo pon dsl-provider

激活 ADSL

*

sudo /etc/ppp/pppoe_on_boot

断开 ADSL

*

sudo poff

查看拨号日志

*

sudo plog

网络

根据IP查网卡地址

*

arping IP地址

查看当前IP地址

*

ifconfig eth0 |awk '/inet addr/ {split($2,x,":");print x[2]}'

查看当前外网的IP地址

*

w3m -no-cookie -dump www.ip138.com|grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
w3m -no-cookie -dump ip.loveroot.com|grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'

查看当前监听80端口的程序

*

lsof -i :80

查看当前网卡的物理地址

*

arp -a | awk '{print $4}'
ifconfig eth0 | head -1 | awk '{print $5}'

立即让网络支持nat

*

sudo echo 1 > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -I POSTROUTING -j MASQUERADE

查看路由信息

*

netstat -rn
sudo route -n

手工增加删除一条路由

*

sudo route add -net 192.168.0.0 netmask 255.255.255.0 gw 172.16.0.1
sudo route del -net 192.168.0.0 netmask 255.255.255.0 gw 172.16.0.1

修改网卡MAC地址的方法

*

sudo ifconfig eth0 down #关闭网卡
sudo ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE #然后改地址
sudo ifconfig eth0 up #然后启动网卡

统计当前IP连接的个数

*

netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r -n
netstat -na|grep SYN|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r -n

统计当前20000个IP包中大于100个IP包的IP地址

*

tcpdump -tnn -c 20000 -i eth0 | awk -F "." '{print $1"."$2"."$3"."$4}' | sort | uniq -c | sort -nr | awk ' $1 > 100 '

屏蔽IPV6

*

echo "blacklist ipv6" | sudo tee /etc/modprobe.d/blacklist-ipv6

服务

添加一个服务

*

sudo update-rc.d 服务名 defaults 99

删除一个服务

*

sudo update-rc.d 服务名 remove

临时重启一个服务

*

/etc/init.d/服务名 restart

临时关闭一个服务

*

/etc/init.d/服务名 stop

临时启动一个服务

*

/etc/init.d/服务名 start

设置

配置默认Java使用哪个

*

sudo update-alternatives --config java

修改用户资料

*

sudo chfn userid

给apt设置代理

*

export http_proxy=http://xx.xx.xx.xx:xxx

修改系统登录信息

*

sudo vim /etc/motd

中文

转换文件名由GBK为UTF8

*

sudo apt-get install convmv
convmv -r -f cp936 -t utf8 --notest --nosmart *

转换文件内容由GBK为UTF8

*

iconv -f gbk -t utf8 $i > newfile

转换 mp3 标签编码

*

sudo apt-get install python-mutagen
find . -iname “*.mp3” -execdir mid3iconv -e GBK {} \;

控制台下显示中文

*

sudo apt-get install zhcon
使用时,输入zhcon即可

文件

快速查找某个文件

*

whereis filename

*

find 目录 -name 文件名

查看文件类型

*

file filename

显示xxx文件倒数6行的内容

*

tail -n 6 xxx

让tail不停地读地最新的内容

*

tail -n 10 -f /var/log/apache2/access.log

查看文件中间的第五行(含)到第10行(含)的内容

*

sed -n '5,10p' /var/log/apache2/access.log

查找包含xxx字符串的文件

*

grep -l -r xxx .

查找关于xxx的命令

*

apropos xxx
man -k xxx

通过ssh传输文件

*

scp -rp /path/filename username@remoteIP:/path #将本地文件拷贝到服务器上
scp -rp username@remoteIP:/path/filename /path #将远程文件从服务器下载到本地

查看某个文件被哪些应用程序读写

*

lsof 文件名

把所有文件的后辍由rm改为rmvb

*

rename 's/.rm$/.rmvb/' *

把所有文件名中的大写改为小写

*

rename 'tr/A-Z/a-z/' *

删除特殊文件名的文件,如文件名:--help.txt

*

rm -- --help.txt 或者 rm ./--help.txt

查看当前目录的子目录

*

ls -d */. 或 echo */.

将当前目录下最近30天访问过的文件移动到上级back目录

*

find . -type f -atime -30 -exec mv {} ../back \;

将当前目录下最近2小时到8小时之内的文件显示出来

*

find . -mmin +120 -mmin -480 -exec more {} \;

删除修改时间在30天之前的所有文件

*

find . -type f -mtime +30 -mtime -3600 -exec rm {} \;

查找guest用户的以avi或者rm结尾的文件并删除掉

*

find . -name '*.avi' -o -name '*.rm' -user 'guest' -exec rm {} \;

查找的不以java和xml结尾,并7天没有使用的文件删除掉

*

find . ! -name *.java ! -name ‘*.xml’ -atime +7 -exec rm {} \;

统计当前文件个数

*

ls /usr/bin|wc -w

显示当前目录下2006-01-01的文件名

*

ls -l |grep 2006-01-01 |awk '{print $8}'

压缩

解压缩 xxx.tar.gz

*

tar -zxvf xxx.tar.gz

解压缩 xxx.tar.bz2

*

tar -jxvf xxx.tar.bz2

压缩aaa bbb目录为xxx.tar.gz

*

tar -zcvf xxx.tar.gz aaa bbb

压缩aaa bbb目录为xxx.tar.bz2

*

tar -jcvf xxx.tar.bz2 aaa bbb

Nautilus

显示隐藏文件

*

Ctrl+h

显示地址栏

*

Ctrl+l

特殊 URI 地址

*

* computer:/// - 全部挂载的设备和网络
* network:/// - 浏览可用的网络
* burn:/// - 一个刻录 CDs/DVDs 的数据虚拟目录
* smb:/// - 可用的 windows/samba 网络资源
* x-nautilus-desktop:/// - 桌面项目和图标
* file:/// - 本地文件
* trash:/// - 本地回收站目录
* ftp:// - FTP 文件夹
* ssh:// - SSH 文件夹
* fonts:/// - 字体文件夹,可将字体文件拖到此处以完成安装
* themes:/// - 系统主题文件夹

查看已安装字体

*

在nautilus的地址栏里输入”fonts:///“,就可以查看本机所有的fonts

程序

详细显示程序的运行信息

*

strace -f -F -o outfile

日期和时间

设置日期

*

#date -s mm/dd/yy

设置时间

*

#date -s HH:MM

将时间写入CMOS

*

hwclock --systohc

读取CMOS时间

*

hwclock --hctosys

从服务器上同步时间

*

sudo ntpdate time.nist.gov

控制台

不同控制台间切换

*

Ctrl + ALT + ←
Ctrl + ALT + →

指定控制台切换

*

Ctrl + ALT + Fn(n:1~7)

控制台下滚屏

*

SHIFT + pageUp/pageDown

控制台抓图

*

setterm -dump n(n:1~7)

数据库

mysql的数据库存放在地方

*

/var/lib/mysql

从mysql中导出和导入数据

*

mysqldump 数据库名 > 文件名 #导出数据库
mysqladmin create 数据库名 #建立数据库
mysql 数据库名 < 文件名 #导入数据库

忘了mysql的root口令怎么办

*

sudo /etc/init.d/mysql stop
sudo mysqld_safe --skip-grant-tables &
sudo mysqladmin -u user password 'newpassword''
sudo mysqladmin flush-privileges

修改mysql的root口令

*

sudo mysqladmin -uroot -p password '你的新密码'

其它

下载网站文档

*

wget -r -p -np -k http://www.21cn.com
· -r:在本机建立服务器端目录结构;
· -p: 下载显示HTML文件的所有图片;
· -np:只下载目标站点指定目录及其子目录的内容;
· -k: 转换非相对链接为相对链接。

如何删除Totem电影播放机的播放历史记录

*

rm ~/.recently-used

如何更换gnome程序的快捷键

*

点击菜单,鼠标停留在某条菜单上,键盘输入任意你所需要的键,可以是组合键,会立即生效;
如果要清除该快捷键,请使用backspace

装了ies4linux  


似乎有flash就闪

Customizing Firefox  

Customizing Firefox


To Access FireFox's configuration file type about:config into the url

Now let's get Firefox to run faster:
Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.
Set "network.http.pipelining" to "true"
Set "network.http.proxy.pipelining" to "true"
Set "network.http.pipelining.maxrequests" to 15.
Right-click anywhereinside the firefox winodw and select New-> Integer.
Name it "nglayout.initialpaint.delay" and set its value to "0″.

Firefox downloads webpages from links it thinks you may click. This may make the "experience" seem faster but really it just bogs down Firefox and you PC.
Set "network.prefetch-next" to false

Remove some annoying Firefox features:
Turn off chrome tooltips, this causes little pop up winodws to tell you what your mouse is hovering over. If you been using Firefox for as long or longer than I have (before 1.0) you really don't need to be told what the back button does. It also hinders dragging a bookmark into the bookmark toolbar folder, the tool tip gets in the way and prevents the drop from working.
Set "browser.chrome.toolbar_tip" to false

Customize backspace button, the Ubuntu default is set to scroll up when hit. I prefer it to work like it did in Windows and go back in my page history.
Set "
browser.backspace_action" to either 0 or 1
0 - Pressing backspace button will go back a page in the session history
1
- Pressing backspace button will scroll up a page in the current document and
[Shift]+[Backspace] will scroll down.

Remove URL GO button. No one over the age of 4 and under the ago of 50 uses it.
Set " browser.urlbar.hideGoButton" to true

Beryl in Feisty with Xgl  

Beryl in Feisty with Xgl

用mid3iconv转换mp3的tag  

使用方法:
mid3iconv -e gbk *.mp3

如果想转换当前目录下的所有 mp3 (包括子目录):
find . -iname "*.mp3" -execdir mid3iconv -e gbk {} \;

* 相信现在大陆绝大多数能找到的 mp3 标签都是以 GBK/GB18030 编码,使用 -e gbk 来处理就够了,当然你也可以使用 -e gb18030 来处理。
* -e gbk 参数是代表把 GBK 编码的标签转换为 Unicode 编码,本身是 Unicode 编码的就不转换。如果需要转换其他编码的文件可以自行修改,如改为 Big5。
* 经测试,转换后为 2.4 版的 ID3v2,编码格式为 uft-16
* 不过它会同时用 Unicode 编码填满 D3v1, ID3v2, APEv2 标签,但是 ID3v1 又不支持中文的 Unicode 编码,所以转换后的 ID3v1 标签全是问号。所以最好加上 –remove-v1 参数,转换后删除 ID3v1 标签。
mid3iconv -e gbk --remove-v1 *.mp3

Tuning the Filesystem Check at Bootup  

Ubuntu forces drives to be checked once for every 30 times the filesystem is mounted. This means that on an average, once every 30 times you bootup your computer, the filesystem integrity is checked. This is very reasonable for a desktop, which is seldom rebooted. However, for a laptop, this means pain, since you may be planning on making a presentation, and Ubuntu may start a filesystem check just when you hook up your laptop to the projector and bootup! Today we will see how to disable (or force) the checking temporarily, and also how to adjust the period and frequency of the check.

To disable filesystem integrity check for the next bootup, create a file called /fastboot. So a
$sudo touch /fastboot
will disable filesystem check for the next time you bootup. Since the /fastboot file is removed during bootup, this will disable filesystem check only once - for the one time you bootup after you create the /fastboot file (which need not have anything in it — hence the touch, which only creates the file)
On the contrary to force a filesystem check the next time you bootup, create a file called /forcefsck by doing
$sudo touch forcefsck

Now, on to the more interesting business of how to change the number of bootups between filesystem checks, and modifying the period with which the filesystem is checked. The following applies to ext2 and ext3 filesystems.

tune2fs is an utility that you can use to change both the number of bootups between filesystem checks, and the number of days/weeks/months between filesystem checks.

For example to have the filesystem checked once every 60 bootups use
$sudo tune2fs -c 60

To have the filesystem check run periodically, say once a week, use
$sudo tune2fs -i 1w
changing the “w” to “d” or “m” will have the check run once daily and once monthly - you get the idea.

As always, you can read
$man tune2fs
for more detailed information and examples.

HOWTO: Build Audacious media player from SVN!  

http://ubuntuforums.org/showthread.php?t=425558

Howto Install 32 bit Firefox with Flash w/sound and Java for AMD64  

这个好繁琐

HOWTO: Cleaning up all those unnecessary junk files...  

教程:把乱七八糟的文件清理干净

HOWTO: Change Font Color in Gnome Panels  

http://ubuntuforums.org/showthread.php?t=334570&page=2

How to install Grub from a live Ubuntu cd.  

http://ubuntuforums.org/showthread.php?t=224351

Howto Share internet connection  

Hello,

The following will explain how to share your Internet connection:

Note: Type all the following commands in a root terminal, DO NOT use sudo.

1. Start by configuring the network card that interfaces to the other computers on you network:

# ifconfig ethX ip

where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)

2. Then configure the NAT as follows:

# iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

where ethX is the network card that the Internet is coming from

# echo 1 > /proc/sys/net/ipv4/ip_forward

3. Install dnsmasq and ipmasq using apt-get:

# apt-get install dnsmasq ipmasq

4. Restart dnsmasq:

# /etc/init.d/dnsmasq restart

5. Reconfigure ipmasq to start after networking has been started:

# dpkg-reconfigure ipmasq

6. Repeat steps 1 and 2.

7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf

# gedit /etc/sysctl.conf

8. Reboot. (Optional)

I hope this helps.

Good luck!

How To Install Enlightenment E17 Using The Elbuntu Repositories (The Easy Way)  

The installation of Enlightenment E17 sited in this thread uses the repositories created by the Elbuntu team. Special thanks goes out to all of the Elbuntu developers for taking the time to package E17 for Ubuntu and making the repositories available to the community.

More information on the Elbuntu project can be found here.

http://e17blog.tuxfamily.org/ebuntu_en.php/

Now lets begin the installation process for E17.

Lets make sure our system is up to date.

In a terminal run the following command.


Code:

sudo aptitude update

Code:

sudo aptitude upgrade

Next we will add the needed repository for E17 to our apt sources list.

In a terminal copy and past the following command.

Code:

sudo gedit /etc/apt/sources.list

There are three repositories available, with available packages for Dapper Drake, Edgy Eft, and Feisty Fawn, "edevelop.org" and "e17.dunnewind.net". Add one of the following repositories to the end of your apt sources list.


Dapper Drake repositories

Code:

## E17 repository "edevelop.org"
deb http://edevelop.org/pkg-e/ubuntu dapper e17
deb-src http://edevelop.org/pkg-e/ubuntu dapper e17

Code:

## E17 Repository "e17.dunnewind.net"
deb http://e17.dunnewind.net/ubuntu dapper e17
deb-src http://e17.dunnewind.net/ubuntu dapper e17

Edgy Eft repositories

Code:

## E17 repository "edevelop.org"
deb http://edevelop.org/pkg-e/ubuntu edgy e17
deb-src http://edevelop.org/pkg-e/ubuntu edgy e17

Code:

## E17 Repository "e17.dunnewind.net"
deb http://e17.dunnewind.net/ubuntu edgy e17
deb-src http://e17.dunnewind.net/ubuntu edgy e17

Feisty Fawn repositories

Code:

## E17 repository "edevelop.org"
deb http://edevelop.org/pkg-e/ubuntu feisty e17
deb-src http://edevelop.org/pkg-e/ubuntu feisty e17

Code:

## E17 Repository "e17.dunnewind.net"
deb http://e17.dunnewind.net/ubuntu feisty e17
deb-src http://e17.dunnewind.net/ubuntu feisty e17

Save and close gedit.

Add the key.

Code:

wget http://lut1n.ifrance.com/repo_key.asc

Code:

sudo apt-key add repo_key.asc

Install Enlightenment E17

Code:

sudo aptitude update

Code:

sudo aptitude install e17


Log out of Gnome. Select session in your log in manager. Enlightenment should be listed. Select Enlightenment as your session and log in.


Please Read Before Posting With Installation Problems

If you encounter dependency errors when installing E17, please check for the presence of an /etc/apt/preferences file. If you are using an apt preferences file, please check for pinning of any enlightenment packages. Please remove any reference to Enlightenment from your /etc/apt/preferences file if listed. Then run

Code:

sudo aptitude update

Code:

sudo aptitude install e17


If problems with installing E17 still occur, then please post the output you recieve from apt in your post.

You can also contact Lutin or Sp4rKy on the Elbuntu IRC channel at irc.freenode.net with any problems you encounter with installation.

Thank you.

Enabling Multimedia in Feisty (HOW-TO)  

Video/audio codec, flash, mp3, dvd playback, and win32 Codec install for Feisty Fawn for beginners. If your a new user, copy and paste commands into the terminal, should be relatively easy from that point forward.

For mp3, etc.
Open up Add/Remove programs from your Application bar.

Go to Sound&Video and Find and Check all of the packages below (easily done by searching for gstreamer)

* "GStreamer ffmpeg video plugin"
* "GStreamer extra plugins"
* "GStreamer plugins for aac, xvid, mpeg2, faad"
* "GStreamer plugins for mms, wavpack, quicktime, musepack"


Then go to Other subsection of Add/Remove and find

* "Ubuntu restricted extras"

For Flash support

While under the "Other" section enable

* "Macromedia Flash plugin"



For DVD Playback and Win32 Codecs

Edit the file /etc/apt/sources.list using either of the following commands in a terminal:
Code:

$gksudo gedit /etc/apt/sources.list

to open it in the GUI text editor

or

Code:

$sudo vim /etc/apt/sources.list

to open it in the Vim command line text editor

Add the following lines to add the Medibuntu repository to the file:


Quote:
## Medibuntu - Ubuntu 7.04 "feisty fawn"
## Please report any bug on https://launchpad.net/products/medibuntu/+bugs
deb http://medibuntu.sos-sts.com/repo/ feisty free non-free
deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free
Import the gpg key for the Medibuntu repository to ensure that the packages are installed without warnings/errors regarding trust:
To do this, run the following command from the terminal:

Code:

wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -

Now update the local list of packages to get the list of packages from the newly added Medibuntu repository:

In a terminal execute the following command:

Code:

sudo apt-get update

Now you can install libdvdcss2 and w32codecs using the following command:
Code:

sudo apt-get install libdvdcss2 w32codecs

 

滕州话精选,你能看懂么?
“钢铁子吃过吗 ”
“我不带吃缸贴子,我光带吃粘拧卷大琼 ”

“都佛的什么话也,那有你们这样拉呱的。是包?没有事都闲的荒拉是包。磨什么牙也!! ”

“三幅,你来啦,赶紧倔下喝口匪,上回逮街上俺认确人了,你说这显地好嘛来!”

“我喜吃菜年年!
长火腿厂也长鸡蛋的那幌子!”

“众吗去? 家的还有人萌,下坡啦 . 担挑子匪 ..... ”

“你的洋车子那 又毁拉 哎 列的不孬 揍嘛 总快又毁了”

“俺来佛两句,斗是决天晌文头,俺揍饭来,一看俺家锅台上没有去了,斗上俺庄上的代销店打点,总巧,差他两毛钱,你佛总着来,几们一大清起他斗上俺家来了,撅俺家来紧子不走,恁佛总能地?”

“拜那个洋梢搁到地排车上,咱奇洋车子下坡。小孩她爹你啦车子匪去。。。。。 ”

“他娘比地熊吊日地三憨子,比食都能,牛气种也撕毁不了人家,人家牛气中有福气张了一个外吧嘴,败滕州地风昧喝净了,牛定眼子都让当局长地添光滑了,泗都兜不足了,屙地哪哈都是,马路橛子逮骑摩托车地收轧屎费,那荒子可不是个熊了,最不是人揍地了! ”