#ubuntu 12.0.4 desktop
#jdk-6u33-linux-i586.bin
#eclipse-SDK-4.2-linux-gtk.tar.gz
$ sudo apt-get purge openjdk*
$ chmod +x jdk-6u33-linux-i586.bin
$ ./jdk-6u33-linux-i586.bin
$ sudo mv jdk1.6.0_33 /usr/lib/jvm/
$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/bin/javac 1
$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/bin/java 1
$ java –version
$ sudo update-alternatives --config javac
$ java –version
$ tar -zxvf eclipse-SDK-4.2-linux-gtk.tar.gz
2012/08/07
2012/08/03
ubuntu desktop 12.04 LTS + Workstation 8.0.2
#Ubuntu Desktop 12.04 + VMWare Workstation 8.0.2
[1]
download VMWare Workstation 8.0.2
[2]
it work on the linux kernel 3.2
http://weltall.heliohost.org/wordpress/wp-content/uploads/2012/01/vmware802fixlinux320.tar.gz
[3]
sudo sh VMware-Workstation-8.0.2-123456.i386.bundle
[1]
download VMWare Workstation 8.0.2
[2]
it work on the linux kernel 3.2
http://weltall.heliohost.org/
tar xzvf file.tar.gzsudo ./patch-modules_3.2.0.sh[3]
sudo sh VMware-Workstation-8.0.2-123456.i386.bundle
sudo ./patch-modules_3.2.0.sh
2012/04/13
/home/*/public_html
php in /home/*/public_html/
//ubuntu 10.04
sudo a2enmod userdir
sudo /etc/init.d/apache2 restart
cp /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/
cp /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/
@/home/*/public_html
vi /etc/apache2/mods-available/userdir.conf
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
sudo vi php5.conf
<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
# <IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
# </IfModule>
</IfModule>
//ubuntu 10.04
sudo a2enmod userdir
sudo /etc/init.d/apache2 restart
cp /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/
cp /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/
@/home/*/public_html
vi /etc/apache2/mods-available/userdir.conf
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
sudo vi php5.conf
<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
# <IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
# </IfModule>
</IfModule>
2012/04/11
2012/04/09
Unity GNOME KDE XFCE LXDE
*Unity
http://askubuntu.com/questions/22402/will-ubuntu-11-04-work-on-my-old-pc
*GNOME
http://linuxreviews.org/software/desktops/
*KDE
http://itmanagement.earthweb.com/osrc/article.php/3930006/GNOME-vs-KDE-The-Latest-Round.htm
*XFCE
http://wiki.xfce.org/minimum_requirements
*LXDE
http://lxde.sourceforge.net/about.html
Recommended System Requirements for Unity
| Required RAM | 1 GB |
| Required CPU | 1 GHz |
*GNOME
Recommended System Requirements for GNOME 2.x
| Required RAM | 384 MB |
| Required CPU | 800 MHz |
Recommended System Requirements for GNOME 3
| Required RAM | 768 MB |
| Required CPU | 400 MHz |
*KDE
Recommended System Requirements for KDE
| Required RAM | 615 MB |
| Required CPU | 1 GHz |
*XFCE
Recommended System Requirements for XFCE
| Required RAM | 192 MB |
| Required CPU | 300 MHz |
*LXDE
Recommended System Requirements for LXDE
| Required RAM | 128 MB |
| Required CPU | 266 MHz |
2012/04/05
LTS ubuntu
Ubuntu 12.04 LTS 2012/?---------------------------------------------------------------2017/?
Ubuntu 10.04 LTS 2015/?
Ref>
https://wiki.ubuntu.com/LTS?action=AttachFile&do=get&target=ubuntu-release-cycle-2.png
A new LTS version is released every 2 years. In previous releases, a Long Term Support (LTS) version had 3 years support on Ubuntu (Desktop) and 5 years on Ubuntu Server. Starting with Ubuntu 12.04 LTS, both versions will receive 5 years support. There is no extra fee for the LTS version; we make our very best work available to everyone on the same free terms. Upgrades to new versions of Ubuntu are and always will be free of charge.
Ubuntu 10.04 LTS 2015/?
Ref>
https://wiki.ubuntu.com/LTS?action=AttachFile&do=get&target=ubuntu-release-cycle-2.png
A new LTS version is released every 2 years. In previous releases, a Long Term Support (LTS) version had 3 years support on Ubuntu (Desktop) and 5 years on Ubuntu Server. Starting with Ubuntu 12.04 LTS, both versions will receive 5 years support. There is no extra fee for the LTS version; we make our very best work available to everyone on the same free terms. Upgrades to new versions of Ubuntu are and always will be free of charge.
2012/04/04
remove libreoffice uninstall
1)
sudo apt-get remove libreoffice*.*
2)
sudo apt-get update
sudo apt-get remove --purge libreoffice
sudo apt-get clean
sudo apt-get autoremove
//sudo apt-get install openoffice
3)
sudo apt-get remove libreoffice*.*
sudo apt-get purge
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove libreoffice*.*
2)
sudo apt-get update
sudo apt-get remove --purge libreoffice
sudo apt-get clean
sudo apt-get autoremove
//sudo apt-get install openoffice
3)
sudo apt-get remove libreoffice*.*
sudo apt-get purge
sudo apt-get autoremove
sudo apt-get autoclean
GNOME 3
ubuntu 11.04 Unity(default)
//add Gnome 3
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install gnome-shell
//Ubuntu GNOME Shell Desktop
//add Gnome 3
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install gnome-shell
//Ubuntu GNOME Shell Desktop
2012/04/03
gcc //ubuntu
sudo apt-get update
sudo apt-get install build-essential
env
sudo apt-get install build-essential gcc make
editor
sudo apt-get install vim emacs
lib
sudo apt-get install libc6 libc6-dev
mainpage
sudo apt-get install manpages-dev
//info gcc
//gcc -v
//cat /proc/version
//uname -a
//lsb_release -a
sudo apt-get install build-essential
env
sudo apt-get install build-essential gcc make
editor
sudo apt-get install vim emacs
lib
sudo apt-get install libc6 libc6-dev
mainpage
sudo apt-get install manpages-dev
//info gcc
//gcc -v
//cat /proc/version
//uname -a
//lsb_release -a
2012/03/31
add 'n' user //ubuntu
add 'n' user
#newusers
1)
check>>>/etc/passwd
jonny:$1$eb30c0TU$r4ZosogN/Aev83kMS/erq0:1000:1000:Deva-Jonny,,,:/home/jonny:/bin/bash
jonny (Login name)
$1$eb30c0TU$r4ZosogN/Aev83kMS/erq0 (EncPassword)
1000 (User Identifier)
1000 (Group Identifier)
Deva-Jonny,,, (Note)
/home/jonny (Home directory)
/bin/bash (users Shell)
2)
stu001::600:600:stu:/home/stu001:/bin/bash
stu002::601:601:stu:/home/stu002:/bin/bash
stu003::602:602:stu:/home/stu003:/bin/bash
stu004::603:603:stu:/home/stu004:/bin/bash
save as newuser_list.csv
3)
sudo newusers < newuser_list
4)
write passwd in /etc/passwd from /etc/shadow & del /etc/shadow
sudo pwunconv
Ref>
http://jonny.ubuntu-tw.net/2008/03/ubuntunewusers-n.html
#newusers
1)
check>>>/etc/passwd
jonny:$1$eb30c0TU$r4ZosogN/Aev83kMS/erq0:1000:1000:Deva-Jonny,,,:/home/jonny:/bin/bash
jonny (Login name)
$1$eb30c0TU$r4ZosogN/Aev83kMS/erq0 (EncPassword)
1000 (User Identifier)
1000 (Group Identifier)
Deva-Jonny,,, (Note)
/home/jonny (Home directory)
/bin/bash (users Shell)
2)
stu001::600:600:stu:/home/stu001:/bin/bash
stu002::601:601:stu:/home/stu002:/bin/bash
stu003::602:602:stu:/home/stu003:/bin/bash
stu004::603:603:stu:/home/stu004:/bin/bash
save as newuser_list.csv
3)
sudo newusers < newuser_list
4)
write passwd in /etc/passwd from /etc/shadow & del /etc/shadow
sudo pwunconv
Ref>
http://jonny.ubuntu-tw.net/2008/03/ubuntunewusers-n.html
time //ubuntu
ubuntu
sys time (timezone)<>bios time (UTC)
/////////
Usage: hwclock [function] [options...]
Functions:
--show read hardware clock and print result
--set set the rtc to the time given with --date
--hctosys set the system time from the hardware clock
--systohc set the hardware clock to the current system time
--adjust adjust the rtc to account for systematic drift since the clock was last set or adjusted
Options:
--utc the hardware clock is kept in coordinated universal time
--localtime the hardware clock is kept in local time
--date specifies the time to which to set the hardware clock
/////////
time zone
sudo dpkg-reconfigure tzdata
check
date; hwclock --show
set2bios
sudo hwclock --localtime --hctosys
sudo hwclock --systohc
set2hw
hwclock --set
/////////
sudo vi /etc/default/rcS
UTC=yes >>> UTC=no
sudo ntpdate time.stdtime.gov.tw
sudo hwclock -w
/////////
#get timezone
sudo tzselect
#change
sudo ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime
#syn
sudo ntpdate pool.ntp.org
#update BIOS
sudo hwclock -w
#scheduled
sudo crontab -e
sys time (timezone)<>bios time (UTC)
/////////
Usage: hwclock [function] [options...]
Functions:
--show read hardware clock and print result
--set set the rtc to the time given with --date
--hctosys set the system time from the hardware clock
--systohc set the hardware clock to the current system time
--adjust adjust the rtc to account for systematic drift since the clock was last set or adjusted
Options:
--utc the hardware clock is kept in coordinated universal time
--localtime the hardware clock is kept in local time
--date specifies the time to which to set the hardware clock
/////////
time zone
sudo dpkg-reconfigure tzdata
check
date; hwclock --show
set2bios
sudo hwclock --localtime --hctosys
sudo hwclock --systohc
set2hw
hwclock --set
/////////
sudo vi /etc/default/rcS
UTC=yes >>> UTC=no
sudo ntpdate time.stdtime.gov.tw
sudo hwclock -w
/////////
#get timezone
sudo tzselect
#change
sudo ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime
#syn
sudo ntpdate pool.ntp.org
#update BIOS
sudo hwclock -w
#scheduled
sudo crontab -e
2012/03/30
ipaddr CentOS-6.2
centos-6.2-i386 'minimal desktop' env
#old
#DEVICE="eth0"
#HWADDR="00:0C:29:AF:21:B6"
#NM_CONTROLLED="yes"
#ONBOOT="no"
#new
DEVICE="eth0"
HWADDR="00:0C:29:AF:21:B6"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO=static
IPADDR=10.11.12.214
NETMASK=255.255.255.0
NETWORK=10.11.12.0
GATEWAY=10.11.12.1
BROADCAST=10.11.12.255
/etc/init.d/network restart
or
service network restart
#old
#DEVICE="eth0"
#HWADDR="00:0C:29:AF:21:B6"
#NM_CONTROLLED="yes"
#ONBOOT="no"
#new
DEVICE="eth0"
HWADDR="00:0C:29:AF:21:B6"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO=static
IPADDR=10.11.12.214
NETMASK=255.255.255.0
NETWORK=10.11.12.0
GATEWAY=10.11.12.1
BROADCAST=10.11.12.255
/etc/init.d/network restart
or
service network restart
2012/03/26
PostgreSQL 9
ubuntu 10.04 + PostgreSQL 9.0 + pgAdmin III 1.12.0
1)
$ sudo vi /etc/apt/sources.list
## Postgres 9 hasn't been backported yet. Manually added repos.
deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main
deb-src http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main
2)Pitt(PPA Signing Key)
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8683D8A2
3)
$ sudo apt-get update
4)
$ sudo apt-get install postgresql-9.0
$ sudo apt-get install pgadmin3
5)server instrumentation
$ sudo apt-get install postgresql-contrib-9.0
$ sudo -u postgres psql -U postgres -d postgres < /usr/share/postgresql/9.0/contrib/adminpack.sql
Ref>
https://launchpad.net/~pitti/+archive/postgresql
http://www.cheeren.com/node/58
1)
$ sudo vi /etc/apt/sources.list
## Postgres 9 hasn't been backported yet. Manually added repos.
deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main
deb-src http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main
2)Pitt(PPA Signing Key)
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8683D8A2
3)
$ sudo apt-get update
4)
$ sudo apt-get install postgresql-9.0
$ sudo apt-get install pgadmin3
5)server instrumentation
$ sudo apt-get install postgresql-contrib-9.0
$ sudo -u postgres psql -U postgres -d postgres < /usr/share/postgresql/9.0/contrib/adminpack.sql
Ref>
https://launchpad.net/~pitti/+archive/postgresql
http://www.cheeren.com/node/58
2012/03/21
Skype //ubuntu
//ubuntu 10.04
//sudo gedit /etc/apt/sources.list
//deb http://archive.canonical.com/ubuntu maverick partner
//deb-src http://archive.canonical.com/ubuntu maverick partner
sudo apt-get update
//sudo apt-get upgrade
sudo apt-get install skype
//sudo gedit /etc/apt/sources.list
//deb http://archive.canonical.com/ubuntu maverick partner
//deb-src http://archive.canonical.com/ubuntu maverick partner
sudo apt-get update
//sudo apt-get upgrade
sudo apt-get install skype
WebCam //Linux
Webcameras
Webcams normally use the video for linux (v4l) framework. The Ubuntu kernel has support for v4l compiled into it.
You may also need a driver for your camera. If it does not just work when you start e.g. xawtv, a good starting point to look for your camera is: http://www.qbik.ch/usb/devices/ (use the search field with your manufacturer name). Some nice people have also made an application to build the latest driver for some webcams: EasyCam. For more help see the Webcam page.
Make | Link |
A4 Tech | |
Creative | |
Genius | |
Hercules | |
Jenoptik | |
Logitech | |
MediaForte | |
Micro Innovations | |
Microsoft | |
Mustek | |
Philips | |
Samsung | |
Sanyo | |
Sony | |
Tevion | |
Trust | |
Typhoon |
Ref>
https://wiki.ubuntu.com/HardwareSupportComponentsMultimediaWebCameras
2012/03/08
file / type / which / whereis / locate / find
file /usr/bin/passwd #file type
type [-tpa] name
which ifconfig #command
whereis [-bmsu] ifconfig #-b:binary, -m:manual, -s:source, -u:others
locate [-ir] keyword #-i:ignore big/low case, -r:regular
find [PATH] [option] [action] #find /etc -newer /etc/passwd
type [-tpa] name
which ifconfig #command
whereis [-bmsu] ifconfig #-b:binary, -m:manual, -s:source, -u:others
locate [-ir] keyword #-i:ignore big/low case, -r:regular
find [PATH] [option] [action] #find /etc -newer /etc/passwd
2012/03/07
webmin //ubuntu
#ubuntu server 10.04.4
+lamp
+ssh
/////////////////////////////////////////////////
ubuntu server list
ubuntu
change ubuntu package server list
.1 backup// sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.ORG
2.edit// sources.list
sudo vi /etc/apt/sources.list
3.change
vi, tw > us
:1,$s/tw/us/g
4.save// source.list
:wq!
5.update list
sudo apt-get update
/////////////////////////////////////////////////
aptitude
ubuntu
$ sudo aptitude safe-upgrade
$ sudo aptitude full-upgrade
$ sudo aptitude dist-upgrade
$ sudo aptitude update //dependence
$ sudo apt-get install aptitude
/////////////////////////////////////////////////
phpmyadmin
sudo apt-cache search -n phpmyadmin
sudo apt-get install phpmyadmin
/////////////////////////////////////////////////
sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb
sudo dpkg --install webmin_1.580_all.deb
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
sudo apt-get -f install
+lamp
+ssh
/////////////////////////////////////////////////
ubuntu server list
ubuntu
change ubuntu package server list
.1 backup// sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.ORG
2.edit// sources.list
sudo vi /etc/apt/sources.list
3.change
vi, tw > us
:1,$s/tw/us/g
4.save// source.list
:wq!
5.update list
sudo apt-get update
/////////////////////////////////////////////////
aptitude
ubuntu
$ sudo aptitude safe-upgrade
$ sudo aptitude full-upgrade
$ sudo aptitude dist-upgrade
$ sudo aptitude update //dependence
$ sudo apt-get install aptitude
/////////////////////////////////////////////////
phpmyadmin
sudo apt-cache search -n phpmyadmin
sudo apt-get install phpmyadmin
/////////////////////////////////////////////////
sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb
sudo dpkg --install webmin_1.580_all.deb
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
sudo apt-get -f install
2012/03/05
ubuntu server list
ubuntu
change ubuntu package server list
.1 backup// sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.ORG
2.edit// sources.list
sudo vi /etc/apt/sources.list
3.change
vi, tw > us
:1,$s/tw/us/g
4.save// source.list
:wq!
5.update list
sudo apt-get update
change ubuntu package server list
.1 backup// sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.ORG
2.edit// sources.list
sudo vi /etc/apt/sources.list
3.change
vi, tw > us
:1,$s/tw/us/g
4.save// source.list
:wq!
5.update list
sudo apt-get update
Apache+MySQL+PHP //ubuntu
ubuntu
Apache+MySQL+PHP
sudo tasksel install lamp-server
(sudo apt-get install tasksel)
/////////////////////////////
apache
sudo apt-cache search -n apache2 | grep generation
sudo apt-get install apache2
mysql
sudo apt-cache search -n mysql-server
sudo apt-get install mysql-server-5.0
php
sudo apt-cache search -n php5
sudo apt-get install php5
phpmyadmin
sudo apt-cache search -n phpmyadmin
sudo apt-get install phpmyadmin
Apache+MySQL+PHP
sudo tasksel install lamp-server
(sudo apt-get install tasksel)
/////////////////////////////
apache
sudo apt-cache search -n apache2 | grep generation
sudo apt-get install apache2
mysql
sudo apt-cache search -n mysql-server
sudo apt-get install mysql-server-5.0
php
sudo apt-cache search -n php5
sudo apt-get install php5
phpmyadmin
sudo apt-cache search -n phpmyadmin
sudo apt-get install phpmyadmin
訂閱:
文章 (Atom)