Monday, October 13, 2008

How-tos configure Ubuntu Server 8.04

my resource = old p3 dell ... got it for $20

------------
enable file sharing in Ubuntu is easy:
-server setup: System -> Remote Desktop
-client: Applications->Internet->Terminal Server Client

problem:
-some client does not have proper c++ lib to run. Tricky to find the right lib to install.
-> google and success with the following cmd:
sudo apt-get install libstdc++2.10-glibc2.2
credit =
http://ubuntuforums.org/archive/index.php/t-201831.html
-------
install open ssh so easy with
sudo apt-get install ssh

credit =
http://www.howtogeek.com/howto/ubuntu/setup-openssh-server-on-ubuntu-linux/

-------

install svn server easily with:
sudo apt-get install svnserver
(instr from svn homepage)

other resources:
https://help.ubuntu.com/8.04/serverguide/C/subversion.html

**** Awesome Server guide from Ubuntu at:
https://help.ubuntu.com/8.04/serverguide/C/

---------

Document on apache2
https://help.ubuntu.com/8.04/serverguide/C/httpd.html

---------

Instruction on installing LAMP
https://help.ubuntu.com/community/ApacheMySQLPHP#To%20install%20the%20default%20LAMP%20stack%20in%20Ubuntu%207.04%20(Feisty%20Fawn)%20Ubuntu%207.10%20(Gutsy%20Gibbon)%20and%20Ubuntu%208.04%20LTS%20(Hardy%20Heron)

------

interesting read on how to avoid add page in Verizon
http://domnit.org/verizon/

-> from here...I know about port fowarding...

---

learn from ozcaz about noip.org and set up and account there...

---

Saturday, October 11, 2008

setting up my new Ubuntu server on Dell PowerEdge2400

/dev/sda1 = 4046 mb unknown
/dev/sda5 swap = 246 mb = partition 5 = swap partition

Saturday, September 20, 2008

installing virtualbox2.0 on Ubuntu 7.10

installation warning:
Users of VirtualBox must be member of that group in order to have write permissions to /dev/vboxdrv. Otherwise starting of VMs will not be possible.

add myself to list of user for virtualbox
sudo usermod -G vboxuser -aquan

ready to install new machine now

how to fix java plugin in firefox for Ubuntu 7.10

happen to find it on the web, but loose the link
here are the steps:

1/ install jre 6 plugin:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

2/ check installation:
java -version

3/ create link to plugin in plugin folder for mozilla
ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

end

Thursday, September 11, 2008

My Matlab Tutorial

matrix operation:
-rand(7) = 7x7 random matrix
-rand(2,5)
-magic(5) = magic square

-eye(6) = identity matrix
-zeros(4,7) = zero matrix
-ones(1,2) = one matrix

x= [1 2 3; 4 5 6; 7 8 9]
x' => inverse matrix

Variables:
built-in: pi, eps
who -> list all envir/usr var

x = 5 => display ans
x = 5; => do NOT display ans on screen

clear x; -> delete var x

func: sin(d), exp(d),log(d),abs(d)
rounding func: round, fix, ceil, floor

Tuesday, August 19, 2008

Ubuntu package install error as of today

W: Duplicate sources.list entry http://archive.ubuntu.com gutsy/main Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_gutsy_main_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com gutsy/restricted Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_gutsy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com gutsy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_gutsy_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com gutsy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_gutsy_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com gutsy/main Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_gutsy_main_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com gutsy/restricted Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_gutsy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com gutsy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_gutsy_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com gutsy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_gutsy_multiverse_binary-i386_Packages)


W: Duplicate sources.list entry http://us.archive.ubuntu.com gutsy/restricted Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_gutsy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://us.archive.ubuntu.com gutsy/multiverse Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_gutsy_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://us.archive.ubuntu.com gutsy/restricted Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_gutsy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://us.archive.ubuntu.com gutsy/multiverse Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_gutsy_multiverse_binary-i386_Packages)

Thursday, August 14, 2008

Linux accident at 1am..in the morning

while reading about Ubuntu, I was too excited to figure out how to make the 3D desktop work by trying different graphics driver version....not long after i reboot...UBUNTU FAIL to boot up the graphical gui....I was scared....

it's say for log, goto: /var/log/Xorg.0.log (zero number not a letter)
config file that is using and causing error is /etc/X11/xorg.conf

lucky me,...i hope and try to:
-rename current xorg.conf to xorg.conf.quanError to remember my error...
-overwrite the current xorg.conf with one of the default i see xorg.conf.1...
restart...
and it works..

Wednesday, August 13, 2008

Oracle server set up on my hp laptop

Ubuntu web development environment set up

LAMP:
Apache: sudo /etc/init.d/apache2 [start/stop/restart]
www folder:/var/www/

oracle XE
database listener port:1521
HTTP port used for Oracle Xpress: 8080
password for SYS/SYSTEM account: oracle

If you need to change the configuration settings, then you can do so by running the following command:
$ /etc/init.d/oracle-xe configure

To start/stop db:
$ /etc/init.d/oracle-xe start

Oracle_home: /usr/lib/oracle/xe/app/oracle/
Oracle driver lib path: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc

07/23/08: install quantumDB on Ubuntu Eclipse
to path: /home/quan/.eclipse/org.eclipse.platform_3.3.0-147..../configuration/eclipse
default: Windows Oracle driver path: C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar

ubuntu oracle driver: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jlib

new tomcat 6.0 installation folder: /usr/local/tomcat
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun