http://johnyan.myvnc.comhttp://johnyan.myvnc.com

· Forums · FAQ · Search · Members · Groups · Register · Profile · Private Messages · Log in


Author Message
johnyan

User is Offline


Joined: 18 Feb 2007
Posts: 195


Posted: Thu Apr 10, 2008 3:58 pm    Post subject: My Ubuntu 7.1 Server Experience
· Quote

1. mount -t iso9660 /dev/cdrom /cdrom

进入/CDROM

操作完成退出/cdrom

umount /cdrom

2. Openssh
Installation
Installation of the OpenSSH client and server applications is simple. To install the OpenSSH client applications on your Ubuntu system, use this command at a terminal prompt:

sudo apt-get install openssh-client

To install the OpenSSH server application, and related support files, use this command at a terminal prompt:

sudo apt-get install openssh-server

sudo /etc/init.d/ssh restart

johnyan
Forum Admin

1218 Posts

Posted - December 22 2007 :  10:11:45  Show Profile  Email Poster  Edit Reply  Reply with Quote  Delete Reply
- wget is internally installed
- in Windows XP, using Myweb webserver to provide download service for Vmware.

- Installed phpmyadmin in \var\www\phpmysql directory

- rename a directory: mv phpBB3 phpbb3

- $find / -name ye -print :这样就可以显示出系统上所有名称为ye的文件。

- tar -xvf phpBB3-0.0.tar.bz2

- chmod o+rw config

- $gzip ye.tar : 则可建立压缩档案ye.tar.gz。

- 如果要删除目录,可用rm -r命令。rm -r命令在删除目录时,每删除一个文件或目录都会显示提示,如果目录太大,响应每个提示是不现实的。这时可以用 rm -rf命令来强制删除目录,这样即使用了-i标志也当无效处理。

- reboot : 重启命令,不必多说。
  
- halt = shutdown
Go to Top of Page

johnyan
Forum Admin

1218 Posts

Posted - December 22 2007 :  21:52:20  Show Profile  Email Poster  Edit Reply  Reply with Quote  Delete Reply
- lynx is a text based web browser.
Go to Top of Page

johnyan
Forum Admin

1218 Posts

Posted - December 22 2007 :  22:36:24  Show Profile  Email Poster  Edit Reply  Reply with Quote  Delete Reply
- wiki application
https://help.ubuntu.com/7.10/server/C/moinmoin.html#moinmoin-installation

sudo apt-get install python-moinmoin

http://192.168.2.250/mywiki?test
http://192.168.2.250/mywiki


Other Application under http://192.168.2.250. (/var/www)
[DIR] apache2-default/ 20-Nov-2004 15:16 -
[DIR] bblog/ 15-Jul-2005 19:42 -
[DIR] phpbb3/ 12-Dec-2007 14:12 -
[ ] phpinfo.php 22-Dec-2007 09:36 31
[DIR] phpmysql/

Apache is located in /etc/apache2, mysql is located in /etc/mysql, php is located in /etc/php5. Mysql database is located in /var/lib/mysql.

Installed Wordpress (./phpbb_admin_pro/1qaz)

Edit resolve.conf, append 10.1.1.100 (windows 2003 AD as nameserver)


sudo mysql --password=1qaz2wsx
Go to Top of Page

johnyan
Forum Admin

1218 Posts

Posted - January 26 2008 :  23:29:50  Show Profile  Email Poster  Edit Reply  Reply with Quote  Delete Reply
https://help.ubuntu.com/7.10/server/C/network-configuration.html

1. Ethernet

/etc/network/interfaces

iface eth1 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

2. /etc/resolv.conf, which should look something like this:

search mydomain.example
nameserver 192.168.0.1
nameserver 4.2.2.2

3. route -n



http://kb.xensource.com/entry.jspa?externalID=379

http://www.treg.be/blog/index.php/2007/08/15/move-a-debian-etch-vmware-virtual-machine/

When I imported a Ubuntu linux from another pc, I selected create a new sid, which leads to Ubuntu not to identify new network card since it remembered the old MAC address.
We should find a way to remove the Mac.
1. The first step is to remove any existing virtual network interfaces from the newly imported VM.
2. The reason the interfaces do not work from the exported VM, the VM #161;锟斤拷remembers#161;锟斤拷 the MAC
addresses from the source VM that was exported. We need to remove the MAC addresses of
the source VM.
3. Log in as root on the Debian VM and edit the /etc/udev/rules.d/z25_persistent-net.rules file.
Using nano or VI, edit the file and delete all the occurrences of the lines like the ones below :

SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:3e:aa:f9:f8", NAME="eth0
4. Save the file.
5. Add the network interfaces in XenCenter.
6. Switch to the console view and restart network in Debian and reboot the VM.

7. Check the network configuration with the ifconfig command. You should have the correct virtual
interfaces (Vifs) available for configuration now.
_________________
---------------------------------------------
More Technical Articles in http://johnyan.myvnc.com
Back to top

   
All times are GMT - 4 Hours
Page 1 of 1

 
Quick Reply:
           

Username: 

Quote the last message
Attach signature (signatures can be changed in profile)
 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

New Counter

_uacct = "UA-1155187-8"; urchinTracker();
Powered by phpBB © 2001, 2005 phpBB Group

Looking for free phpbb3 hosting?