xp
使用方式: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c
"comment"] [-d up:xx:yy]
沒有引數 顯示這個訊息 (和 -? 相同)
-i 顯示 GUI 介面,必須是第一個選項
-l 登出 (不能和 -m 選項一起使用)
-s 電腦關機
-r 關機並重新啟動電腦
-a 中止系統關機
-m \\\\computername 從遠端進行關機/重新啟動/中止
-t xx 將關機等候時間設定成 xx 秒
-c "comment" 關機註解 (最多 127 個字元)
-f 強制關閉執行中的應用程式,不顯示警告
-d [u][p]:xx:yy 關機原因代碼
u 是使用者代碼
p 是預先計劃的關機代碼
xx 是主要原因代碼 (小於 256 的正整數)
yy 是次要原因代碼 (小於 65536 的正整數)
2011/12/03
2011/11/29
lamp-server
$ sudo apt-get install lamp-server^
$ sudo vim.tiny /var/www/phpinfo.php
<? php
phpinfo();
?>
$ sudo /etc/init.d/apache2 restart
//localhost/phpinfo.php
$ sudo apt-get install libapache2-mod-auth-mysql
$ sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
[*]apache2
$ sudo vim.tiny /var/www/phpinfo.php
<? php
phpinfo();
?>
$ sudo /etc/init.d/apache2 restart
//localhost/phpinfo.php
$ sudo apt-get install libapache2-mod-auth-mysql
$ sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
[*]apache2
2011/11/28
VNC
//root
$ apt-get install tightvncserver
$ sudo adduser vusr
//vncusr
$ vncserver
http://www.realvnc.com/products/download.html
Free Edition
VNC Viewer vnc-4_1_3-x86_win32
a.b.c.d:5901
login as: vusr
vusr@10.11.12.210's password: ***********
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-server x86_64)
* Documentation: http://www.ubuntu.com/server/doc
System information as of Mon Nov 28 22:40:11 CST 2011
System load: 0.27 Processes: 118
Usage of /: 2.5% of 67.38GB Users logged in: 1
Memory usage: 2% IP address for eth0: 10.11.12.210
Swap usage: 0%
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Mon Nov 28 22:18:39 2011 from 10.11.12.218
vusr@u1104s64:~$ vncserver
You will require a password to access your desktops.
Password:
Warning: password truncated to the length of 8.
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Warning: password truncated to the length of 8.
Verify:
xauth: file /home/vusr/.Xauthority does not exist
New 'X' desktop is u1104s64:1
Creating default startup script /home/vusr/.vnc/xstartup
Starting applications specified in /home/vusr/.vnc/xstartup
Log file is /home/vusr/.vnc/u1104s64:1.log
vusr@u1104s64:~$
//terminal turn on
vncserver
//default 5901 port
//vncpasswd
$ apt-get install tightvncserver
$ sudo adduser vusr
//vncusr
$ vncserver
http://www.realvnc.com/products/download.html
Free Edition
VNC Viewer vnc-4_1_3-x86_win32
a.b.c.d:5901
login as: vusr
vusr@10.11.12.210's password: ***********
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-server x86_64)
* Documentation: http://www.ubuntu.com/server/doc
System information as of Mon Nov 28 22:40:11 CST 2011
System load: 0.27 Processes: 118
Usage of /: 2.5% of 67.38GB Users logged in: 1
Memory usage: 2% IP address for eth0: 10.11.12.210
Swap usage: 0%
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Mon Nov 28 22:18:39 2011 from 10.11.12.218
vusr@u1104s64:~$ vncserver
You will require a password to access your desktops.
Password:
Warning: password truncated to the length of 8.
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Warning: password truncated to the length of 8.
Verify:
xauth: file /home/vusr/.Xauthority does not exist
New 'X' desktop is u1104s64:1
Creating default startup script /home/vusr/.vnc/xstartup
Starting applications specified in /home/vusr/.vnc/xstartup
Log file is /home/vusr/.vnc/u1104s64:1.log
vusr@u1104s64:~$
//terminal turn on
vncserver
//default 5901 port
//vncpasswd
adduser
//ubuntu
root@host:~$ sudo adduser abc
Adding user `abc' ...
Adding new group `abc' (1001) ...
Adding new user `abc' (1001) with group `abc' ...
Creating home directory `/home/abc' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for abc
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
root@host:~$
root@host:~$ sudo adduser abc
Adding user `abc' ...
Adding new group `abc' (1001) ...
Adding new user `abc' (1001) with group `abc' ...
Creating home directory `/home/abc' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for abc
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
root@host:~$
ubuntu-11.04-server-amd64 GUI
//ubuntu-11.04-server-amd64
//GUI
sudo apt-get install x-window-system-core
sudo apt-get install gdm/xdm/kdm
sudo apt-get install ubuntu-desktop/kubuntu-desktop/xubuntu-desktop
sudo apt-get install gnome-core/kde-core/xfce4
//sudo reboot now
//
//sudo apt-get install firefox/gaim/xmms
//apt-get install firefox-3.5-gnome-support
//Firefox 4
sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get install firefox ubufox
//software center
wget https://launchpad.net/ubuntu/+source/software-center/2.1.5/+build/1876109/+files/software-center_2.1.5_all.deb https://launchpad.net/~guido-iodice/+archive/guiodiclucid/+files/aptdaemon_0.31+bzr403-0ubuntu1~ppa1_all.deb https://launchpad.net/~guido-iodice/+archive/guiodiclucid/+files/python-aptdaemon-gtk_0.31+bzr403-0ubuntu1~ppa1_all.deb https://launchpad.net/~guido-iodice/+archive/guiodiclucid/+files/python-aptdaemon_0.31+bzr403-0ubuntu1~ppa1_all.deb
//
//GUI
sudo apt-get install x-window-system-core
sudo apt-get install gdm/xdm/kdm
sudo apt-get install ubuntu-desktop/kubuntu-desktop/xubuntu-desktop
sudo apt-get install gnome-core/kde-core/xfce4
//sudo reboot now
//
//sudo apt-get install firefox/gaim/xmms
//apt-get install firefox-3.5-gnome-support
//Firefox 4
sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get install firefox ubufox
//software center
wget https://launchpad.net/ubuntu/+source/software-center/2.1.5/+build/1876109/+files/software-center_2.1.5_all.deb https://launchpad.net/~guido-iodice/+archive/guiodiclucid/+files/aptdaemon_0.31+bzr403-0ubuntu1~ppa1_all.deb https://launchpad.net/~guido-iodice/+archive/guiodiclucid/+files/python-aptdaemon-gtk_0.31+bzr403-0ubuntu1~ppa1_all.deb https://launchpad.net/~guido-iodice/+archive/guiodiclucid/+files/python-aptdaemon_0.31+bzr403-0ubuntu1~ppa1_all.deb
//
訂閱:
文章 (Atom)