Just as a quick aside at this point, start up the JMX console application and click on
the service=Hypersonic link which you’ll find under the section jboss. If you can’t
find this, make sure the Hypersonic service is enabled in the hsqldb-ds.xml file.
This will take you to the information for the Hypersonic service MBean.
Scroll down to the bottom of the page and click the invoke button for the
startDatabaseManager() operation. This starts up the HSQL Manager, a Java GUI
application which you can use to manipulate the database directly.
please see HSQL Manager for download and the code for addtional information
Before Running HSQL Manager , ensure your XAMPP/LAMPP already running
How To Install XAMPP/LAMPP see in here
1. The Result Unzip as below
type S$ sudo ./run_hsqlmanager.sh
for running HSQL Manager
2. Display HSQL Manager as below
3. HSQL Database Can Connect many Database type as below
I will continue in future, how to used it
- Home
- Activities
- Dimensional Control
- Total Angola - KAOMBO
- ENI - Jangkrik
- Iraq Platform
- AL Wasit --HASBAH - ARABIYAH
- Chevron - Gorgon
- Ichthys LNG Project | INPEX
- BP Tangguh
- Saipem Nigeria - Project EGINA
- Saipem Misr Eqypt - Project Zohr
- PHE ONWJ -3D Laser Scanning Surveyor
- FORMOSA 2 - Wind Farm Offshore
- NNG - Wind Offhore
- BP Senegal Tortue
- Software Surveyor
- Hardware Surveyor
- Contact
Tuesday, 30 December 2008
Monday, 29 December 2008
ManDVD Creating Video
if you not install , please install 1st ManDVD as Here the Link
1. Start " ManDVD"
2. Arrange " Destination Folder "
3. Add Video or Photo for Slide Show and then click ' Next ' If Ready
4. If Choose Slide Show For Picture the Display as below
Add Picture ; Additional Picture
Import Folder ; Take All Picture in a Folder
Also you can Edit " Effect , Transition etc " to make nice slide show
try it :-) folks
1. Start " ManDVD"
2. Arrange " Destination Folder "
3. Add Video or Photo for Slide Show and then click ' Next ' If Ready
4. If Choose Slide Show For Picture the Display as below
Add Picture ; Additional Picture
Import Folder ; Take All Picture in a Folder
Also you can Edit " Effect , Transition etc " to make nice slide show
try it :-) folks
Burn in using Brasero Disk Burning
How To Burn in Data/Image/Video in Linux as below;
1. Click --> Brasero Disc Burning
2. Choose What we Want to Burn in
3. Choose Which Folder or Files We Want to Burn in
4. All Files or Folder Which We Want To Burn in
Click " ADD " if Want To Add Files or Folder to Burn in
Click " BURN " if Want to Start Burn Process
5. Information Disc and Setting Burn In
Label : Name Of CD/DVD After Burn In
Click " BURN " to Process Burn in If Setting Already OK
6. Process Burn in
please try it :-)
1. Click --> Brasero Disc Burning
2. Choose What we Want to Burn in
3. Choose Which Folder or Files We Want to Burn in
4. All Files or Folder Which We Want To Burn in
Click " ADD " if Want To Add Files or Folder to Burn in
Click " BURN " if Want to Start Burn Process
5. Information Disc and Setting Burn In
Label : Name Of CD/DVD After Burn In
Click " BURN " to Process Burn in If Setting Already OK
6. Process Burn in
please try it :-)
Monday, 22 December 2008
ndiswrapper (Installation of Windows WIFI Driver)
If We want to Install Drive Wi_Fi in Mint , Ubuntu or BlankOn without Update Kernel
We Can Try using ndiswrapper
please update using Synaptic Package Manager
and Search " ndisgtk "
please continue in here
We Can Try using ndiswrapper
please update using Synaptic Package Manager
and Search " ndisgtk "
please continue in here
Album Photo using GTKRawGallery
We Arrange Our Photo memories using GTKRawGallery
1. Download GTKRawGallery http://gtkrawgallery.sourceforge.net/
2. Result unzip file as below
3. Click GTKRawGallery.py and See the result
enjoy it ;-)
1. Download GTKRawGallery http://gtkrawgallery.sourceforge.net/
2. Result unzip file as below
3. Click GTKRawGallery.py and See the result
enjoy it ;-)
Wednesday, 10 December 2008
Change login banner for Gnome (GDM) Desktop
Sometimes we want to make different Display Login Menu
Here We can Make It
Before start, please Download Gnome Login menu File in Internet
1. Go to " Login Menu "
2. tab go to "LOCAL" ---> Click " ADD "
3. Choose GDM File
4. Go to Local , See Result after Install and Choose Wanna to Display Login Menu
please Restart To See Final Result
enjoy it :-)
Here We can Make It
Before start, please Download Gnome Login menu File in Internet
1. Go to " Login Menu "
2. tab go to "LOCAL" ---> Click " ADD "
3. Choose GDM File
4. Go to Local , See Result after Install and Choose Wanna to Display Login Menu
please Restart To See Final Result
enjoy it :-)
Create JAD for Jar in Linux (01)
Here is Code of Created JAD in Linux
Jad file we need to running Jar File in Java
With JAD and JAR , in our PC can running File such as Games Java in HandPhone Nokia, SE (Sony Erickson) etc
Save this as “jadmaker.sh”:
#!/bin/bash
#
# Given a J2ME midlet jarball, create a JAD for it
# Usage: ./jadmaker.sh
# safety check 1
FILE=$1
if [ ! -f "${FILE}" ]; then
echo "Input file '${FILE}' missing, exiting."
exit 1
fi
# safety check 2
JAD="${FILE%.*}.jad"
if [ -f "${JAD}" ]; then
echo "${JAD} already exists, overwrite? (y/N)"
read tmpans
answer=$(echo "$tmpans" | tr '[:upper:]' '[:lower:]')
if [ "$answer" != "y" ] && [ "$answer" != "yes" ]; then
echo "Not overwriting ${JAD}, exiting."
exit 1
else
rm -f "${JAD}"
fi
fi
# unzip the internal manifest, changing line endings to our local OS
# the sed action removes blank lines, with or without spaces/tabs
unzip -aa -j -p ${FILE} "META-INF/MANIFEST.MF" | sed -e '/^[ \t]*$/d' > "${JAD}"
# generic variables
echo "MIDlet-Jar-URL: ${FILE}" >> "${JAD}"
echo "MIDlet-Info-URL: http://" >> "${JAD}"
# actual jarball size
FILESIZE=$(stat -c%s "${FILE}")
echo "MIDlet-Jar-Size: ${FILESIZE}" >> "${JAD}"
# weee
echo "Created ${JAD}."
exit 0
==========================================================
Reference
http://java.sun.com
Jad file we need to running Jar File in Java
With JAD and JAR , in our PC can running File such as Games Java in HandPhone Nokia, SE (Sony Erickson) etc
Save this as “jadmaker.sh”:
#!/bin/bash
#
# Given a J2ME midlet jarball, create a JAD for it
# Usage: ./jadmaker.sh
# safety check 1
FILE=$1
if [ ! -f "${FILE}" ]; then
echo "Input file '${FILE}' missing, exiting."
exit 1
fi
# safety check 2
JAD="${FILE%.*}.jad"
if [ -f "${JAD}" ]; then
echo "${JAD} already exists, overwrite? (y/N)"
read tmpans
answer=$(echo "$tmpans" | tr '[:upper:]' '[:lower:]')
if [ "$answer" != "y" ] && [ "$answer" != "yes" ]; then
echo "Not overwriting ${JAD}, exiting."
exit 1
else
rm -f "${JAD}"
fi
fi
# unzip the internal manifest, changing line endings to our local OS
# the sed action removes blank lines, with or without spaces/tabs
unzip -aa -j -p ${FILE} "META-INF/MANIFEST.MF" | sed -e '/^[ \t]*$/d' > "${JAD}"
# generic variables
echo "MIDlet-Jar-URL: ${FILE}" >> "${JAD}"
echo "MIDlet-Info-URL: http://" >> "${JAD}"
# actual jarball size
FILESIZE=$(stat -c%s "${FILE}")
echo "MIDlet-Jar-Size: ${FILESIZE}" >> "${JAD}"
# weee
echo "Created ${JAD}."
exit 0
==========================================================
Reference
http://java.sun.com
Tuesday, 9 December 2008
NETSTAT in Linux
NETSTAT (network statistics) is useful for tracking down network problems. Use NETSTAT to
troubleshoot incoming or outgoing packet errors or to verify the presence of needed routes.
If you type netstat at the MS-DOS prompt, you see the protocol used, the name and local
address of the computer, and any connected computers and their current state
Netstat –a Displays all connections and listening ports
Netstat –e Displays Ethernet statistics
Netstat -n Displays addresses and numbers in numerical format
Netstat -s Displays the statistics of TCP/IP protocols: TCP, UDP, and IP
usage: netstat [-anv] [-f address_family]
netstat [-g | -p | -s] [-n] [-f address_family] [-P protocol]
netstat -m
netstat -i [-I interface] [-an] [-f address_family] [interval]
netstat -r [-anv] [-f address_family]
netstat -M [-ns] [-f address_family]
netstat -D [-I interface] [-f address_family]
troubleshoot incoming or outgoing packet errors or to verify the presence of needed routes.
If you type netstat at the MS-DOS prompt, you see the protocol used, the name and local
address of the computer, and any connected computers and their current state
Netstat –a Displays all connections and listening ports
Netstat –e Displays Ethernet statistics
Netstat -n Displays addresses and numbers in numerical format
Netstat -s Displays the statistics of TCP/IP protocols: TCP, UDP, and IP
usage: netstat [-anv] [-f address_family]
netstat [-g | -p | -s] [-n] [-f address_family] [-P protocol]
netstat -m
netstat -i [-I interface] [-an] [-f address_family] [interval]
netstat -r [-anv] [-f address_family]
netstat -M [-ns] [-f address_family]
netstat -D [-I interface] [-f address_family]
Wednesday, 3 December 2008
XAMPP / LAMPP for Linux
Finally I Can Get My Projects Web Running in Linux
The Tools Need to Do
1. Download Xampp for Linux in http://www.apachefriends.org
such file as "xampp-linux-1.6.4.tar.gz"
2. Extract the downloaded archive file to /opt:
sudo tar xvfz xampp-linux-1.6.8a.tar.gz -C /opt
Warning: Please use only this command to install XAMPP. DON'T use any Microsoft Windows tools to extract the archive, it won't work.
Warning 2: already installed XAMPP versions get overwritten by this command
3. Start Lampp/XAMPP
/opt/lampp/lampp start
You should now see something like this on your screen:
Starting XAMPP 1.6.8a...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
Ready. Apache and MySQL are running.
4. http://localhost
5. Mysql Area --> http://localhost/phpmyadmin
6. Now try put File Projects as oscommerce in /opt/lampp/htpdocs
Here a list of missing security in XAMPP:
1. The MySQL administrator (root) has no password.
2. The MySQL daemon is accessible via network.
3. ProFTPD uses the password "lampp" for user "nobody".
4. PhpMyAdmin is accessible via network.
5. Examples are accessible via network.
6. MySQL and Apache running under the same user (nobody).
To fix most of the security weaknesses simply call the following command:
/opt/lampp/lampp security
Parameter Description
start Starts XAMPP.
stop Stops XAMPP.
restart Stops and starts XAMPP.
startapache Starts only the Apache.
startssl Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay activated.
startmysql Starts only the MySQL database.
startftp Starts the ProFTPD server. Via FTP you can upload files for your web server (user "nobody", password "lampp"). This command activates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated.
stopapache Stops the Apache.
stopssl Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay deactivated.
stopmysql Stops the MySQL database.
stopftp Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated.
security Starts a small security check programm.
Good Luck :-)
Now I Can Focus Total Web in Linux
The Tools Need to Do
1. Download Xampp for Linux in http://www.apachefriends.org
such file as "xampp-linux-1.6.4.tar.gz"
2. Extract the downloaded archive file to /opt:
sudo tar xvfz xampp-linux-1.6.8a.tar.gz -C /opt
Warning: Please use only this command to install XAMPP. DON'T use any Microsoft Windows tools to extract the archive, it won't work.
Warning 2: already installed XAMPP versions get overwritten by this command
3. Start Lampp/XAMPP
/opt/lampp/lampp start
You should now see something like this on your screen:
Starting XAMPP 1.6.8a...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
Ready. Apache and MySQL are running.
4. http://localhost
5. Mysql Area --> http://localhost/phpmyadmin
6. Now try put File Projects as oscommerce in /opt/lampp/htpdocs
Here a list of missing security in XAMPP:
1. The MySQL administrator (root) has no password.
2. The MySQL daemon is accessible via network.
3. ProFTPD uses the password "lampp" for user "nobody".
4. PhpMyAdmin is accessible via network.
5. Examples are accessible via network.
6. MySQL and Apache running under the same user (nobody).
To fix most of the security weaknesses simply call the following command:
/opt/lampp/lampp security
Parameter Description
start Starts XAMPP.
stop Stops XAMPP.
restart Stops and starts XAMPP.
startapache Starts only the Apache.
startssl Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay activated.
startmysql Starts only the MySQL database.
startftp Starts the ProFTPD server. Via FTP you can upload files for your web server (user "nobody", password "lampp"). This command activates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated.
stopapache Stops the Apache.
stopssl Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay deactivated.
stopmysql Stops the MySQL database.
stopftp Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated.
security Starts a small security check programm.
Good Luck :-)
Now I Can Focus Total Web in Linux
Monday, 1 December 2008
How To Install Webmin in Linux Ubuntu/Mint
Step by Step Install Webmin
------------------------------
1. provide file "webmin_1.441_all.deb" in http://www.webmin.com/deb.html
If you are using the DEB version of webmin, first download the file and then run the command :
dpkg --install webmin_1.441_all.deb
If Debian complains about missing dependencies, you can install them with the command :
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system and add the line : deb http://download.webmin.com/download/repository sarge contrib You should also fetch and install my GPG key with which the repository is signed, with the commands : cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc You will now be able to install with the commands : apt-get update
apt-get install webmin
2. http://localhost:10000/
The install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/ .
3. Now You Arrange Your Web Server such as E-mail, FTP, Sharing , Apache , etc
enjoy it :-)
------------------------------
1. provide file "webmin_1.441_all.deb" in http://www.webmin.com/deb.html
If you are using the DEB version of webmin, first download the file and then run the command :
dpkg --install webmin_1.441_all.deb
If Debian complains about missing dependencies, you can install them with the command :
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system and add the line : deb http://download.webmin.com/download/repository sarge contrib You should also fetch and install my GPG key with which the repository is signed, with the commands : cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc You will now be able to install with the commands : apt-get update
apt-get install webmin
2. http://localhost:10000/
The install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/ .
3. Now You Arrange Your Web Server such as E-mail, FTP, Sharing , Apache , etc
enjoy it :-)
Thursday, 27 November 2008
ZYGO Instrument Measurement
Since the introduction of our first commercial interferometer over 35 years ago ZYGO continues to maintain the leadership role in surface form metrology. Thousands of ZYGO interferometers are installed worldwide and relied upon daily to provide accurate production metrology of optical components and assemblies that affect our daily lives. Applications span across a wide range of applications in numerous industries including consumer electronics, ophthalmic, semiconductor and defense & aerospace. ZYGO is the one optical metrology company that is trusted across the globe to qualify the worlds most critical optics. Shouldn't you be using a ZYGO?
VeriFire Series - The ideal choice for accurate metrology of surface form for quality control, R & D, production test applications. The VeriFire family of interferometers are quantitative phase shifting interferometers for use in the measurement of flat, spherical and aspheric optics.
Large Aperture Systems - ZYGO's large aperture beam expanders are an optional extension to the VeriFire and GPI Series of interferometer mainframes. The beam expanders are configured to provide both a standard 4" measurement beam and a large aperture metrology source. Large Aperture Systems are available for static and phase measuring applications with 12", 18" 24" and 32" apertures.
GPI Series - The GPI series of interferometers include production metrology solutions that offer qualitative visual fringe metrology and dynamic acquisition for applications with in environments with extreme vibrations.
PTI 250 Series - A compact series of interferometers operating at a wavelength of 650 nm with aperture options of 6 mm, 25 mm and 50 mm. The PTI250 interferometer is the ideal solution for production metrology of small optics and assemblies.
DVD400 Series - The DVD400 series of interferometers provides high-accuracy transmitted wavefront metrology of DVD optical components at an operational wavelength of 405 nm.
Expanded Wavelength Capabilities - ZYGO's precise phase-shifting interferometer solutions are available in several additional wavelengths ranging from 248 nm to 10.6 µm.
Accessories - ZYGO qualifies all of our accessories to ensure optimal interferometer performance. Our accessories include transmission and reference optics, opto-mechanical mounts and fixtures, radius of curvature hardware and vertical mounting options.
Upgrades - ZYGO interferometers are built to last. As technology advances ZYGO offers the ability to upgrade existing systems to current state-of-the art capabilities.
Typical Interferometer Setups - A brief overview of some of the interferometric measurement techniques commonly used in the optics industry.
Zygo Can Do as below
-----------------------
1. Measure Surface of Device in Nano Measurement
2. Programming Measure For Mass Measurement of Device
3. If any nano burr with Zygo We Can Get and Capture it
Reference
www.zygo.com
Wednesday, 26 November 2008
Apt-Get -----> History Ubuntu/Mint/Blankon...
The apt-get command is a powerful command-line tool used to work with Ubuntu's Advanced
Packaging Tool (APT) performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system.
Being a simple command-line tool, apt-get has numerous advantages over other package management tools available in Ubuntu for server administrators.
Some of these advantages include ease of use over
simple terminal connections (SSH) and the ability to be used in system administration scripts,
which can in turn be automated by the cron scheduling utility.
Some examples of popular uses for the apt-get utility:
• Install a Package: Installation of packages using the apt-get tool is quite simple.
For example, to
install the network scanner nmap, type the following:
sudo apt-get install nmap
• Remove a Package: Removal of a package or packages is also a straightforward and simple process.
To remove the nmap package installed in the previous example, type the following:
sudo apt-get remove nmap
Multiple Packages: You may specify multiple packages to be installed or removed,
separated by spaces.
• Update the Package Index: The APT package index is essentially a database of available
packages from the repositories defined in the /etc/apt/sources.list file. To update the local package index with the latest changes made in repositories, type the following:
sudo apt-get update
• Upgrade Packages: Over time, updated versions of packages currently installed on your computer
may become available from the package repositories (for example security updated).
To upgrade
your system, first update your package index as outlined above, and then type:
sudo apt-get upgrade
If a package needs to install or remove new dependencies when being upgraded, it will not be upgraded by the upgrade command. For such an upgrade, it is necessary to use the dist-upgrade
command.
Also, you may upgrade your entire Ubuntu system from one revision to another with dist-upgrade.
For example, to upgrade from Ubuntu version 5.10 to version 6.10, you would first ensure
the version 6.10 repositories replace the existing 5.10 repositories in your computer's
/etc/apt/sources.list, then simply issue the apt-get update command as detailed above, and
finally, perform the actual upgrade by typing:
sudo apt-get dist-upgrade
After a fairly considerable amount of time, your computer will be upgraded to the new revision.
Typically, some post-upgrade steps would be required as detailed in the upgrade notes for the
revision you are upgrading to.
Actions of the apt-get command, such as installation and removal of packages, are logged in the
/var/log/dpkg.log log file.
For further information about the use of APT, read the comprehensive Debian APT User
Manual
----------
[http://www.debian.org/doc/user-manuals#apt-howto] or
type:
apt-get help
Packaging Tool (APT) performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system.
Being a simple command-line tool, apt-get has numerous advantages over other package management tools available in Ubuntu for server administrators.
Some of these advantages include ease of use over
simple terminal connections (SSH) and the ability to be used in system administration scripts,
which can in turn be automated by the cron scheduling utility.
Some examples of popular uses for the apt-get utility:
• Install a Package: Installation of packages using the apt-get tool is quite simple.
For example, to
install the network scanner nmap, type the following:
sudo apt-get install nmap
• Remove a Package: Removal of a package or packages is also a straightforward and simple process.
To remove the nmap package installed in the previous example, type the following:
sudo apt-get remove nmap
Multiple Packages: You may specify multiple packages to be installed or removed,
separated by spaces.
• Update the Package Index: The APT package index is essentially a database of available
packages from the repositories defined in the /etc/apt/sources.list file. To update the local package index with the latest changes made in repositories, type the following:
sudo apt-get update
• Upgrade Packages: Over time, updated versions of packages currently installed on your computer
may become available from the package repositories (for example security updated).
To upgrade
your system, first update your package index as outlined above, and then type:
sudo apt-get upgrade
If a package needs to install or remove new dependencies when being upgraded, it will not be upgraded by the upgrade command. For such an upgrade, it is necessary to use the dist-upgrade
command.
Also, you may upgrade your entire Ubuntu system from one revision to another with dist-upgrade.
For example, to upgrade from Ubuntu version 5.10 to version 6.10, you would first ensure
the version 6.10 repositories replace the existing 5.10 repositories in your computer's
/etc/apt/sources.list, then simply issue the apt-get update command as detailed above, and
finally, perform the actual upgrade by typing:
sudo apt-get dist-upgrade
After a fairly considerable amount of time, your computer will be upgraded to the new revision.
Typically, some post-upgrade steps would be required as detailed in the upgrade notes for the
revision you are upgrading to.
Actions of the apt-get command, such as installation and removal of packages, are logged in the
/var/log/dpkg.log log file.
For further information about the use of APT, read the comprehensive Debian APT User
Manual
----------
[http://www.debian.org/doc/user-manuals#apt-howto] or
type:
apt-get help
Tuesday, 25 November 2008
Quick Vision APEX Instrument
This Instrument Maker from Mitutoyo
With this Instrument We Can get
1. Measure X , Y and Z Coordinate
2. Scanning Surface of part by Laser
3. Programming Measurement for Mass Checking Measurement
4. High Accuracy Result
5. Video Image Capture
6. Checking In Z (Depth) without Touching ( by LASER)
7. QBasic Editor for programming
8. Checking Shape of Surface with Picture
9. etc
this instrument very power full
we get all dimension as we want use this instrument
Good luck ;-)
CMM (Cordinate Measurement Machine), CNC
This Instrument can Measure in X , Y and Z position (3D)
in CMM We Can Create
1. Measure All Parts X,Y and Z
2. Create Programming measurement for mass measurement
3. Drawing Actual Part With Touching Method ( Become Real Measurement in Part)
I will Come Back Again with CMM
I have Experience touch this measurement with 5 years
nice instrument for measurement
good luck :-)
in CMM We Can Create
1. Measure All Parts X,Y and Z
2. Create Programming measurement for mass measurement
3. Drawing Actual Part With Touching Method ( Become Real Measurement in Part)
I will Come Back Again with CMM
I have Experience touch this measurement with 5 years
nice instrument for measurement
good luck :-)
Sunday, 23 November 2008
START THE GRAPHIC WITHOUT INSERT LOGIN AND PASSWORD
Here is 2 Method , pls go through one by one
1)This thing has been tryied on redhat 7.1
------------------------------------------
-Modify the file /etc/sysconfig/desktop
Insert the name of desktop that will start, es. fvwm2
Modify the file /etc/X11/xinit/Xclients replacing the name of predefined desktop (GNOME)
with fvwm2.
Modify the file /etc/X11/xinit/xinitrc.d/xinput replacing the name of desktop predefined
(GNOME) with fvwm2.
Create the file .xinitrc inside the directory of the user or root and write inside:
fvwm2
Modify the file /etc/rc.d/rc.local inserting on the first row (or replacing the first row) with:
#!/bin/bash
After this row write the path of file .xinitrc and after the written startx, resuming:
#!/bin/bash
cd /root & startx
or
cd /root & startx fvwm2
At this point reboot pc and see the result.
2)Inserting a user with the home and the group of belongings.
-------------------------------------------------------------
Modify the file /etc/profile
inserting these dates:
HOME="/username"
export HOME
Save the file.
Enter in /etc/inittab disabling from row Run gettys until the end putting a # in front of all the
rows.
Over the row Run getty insert another row:
1:12345:wait:/bin/bash -login
Save the file and reboot. At start enter such as user withou insert username and password.
If inside /home/user we insert a file .xinitrc where we write graphic desktop to start for
example fvwm2. It's possible to copy the file /etc/X11/fvwm2/system.fvwm2rc inside
/home/user and rename it in .fvwm2rc
Inside file .bash_profile at the end write startx, so will start the graphic automatically.
Rebooting the pc we will enter such as user and automatically will start the X chosen.
---------------------------------------------------------------
reference : http://www.softwarelibero.it/gnudoc/fdl.it.html
----------------------------------------------------------------
1)This thing has been tryied on redhat 7.1
------------------------------------------
-Modify the file /etc/sysconfig/desktop
Insert the name of desktop that will start, es. fvwm2
Modify the file /etc/X11/xinit/Xclients replacing the name of predefined desktop (GNOME)
with fvwm2.
Modify the file /etc/X11/xinit/xinitrc.d/xinput replacing the name of desktop predefined
(GNOME) with fvwm2.
Create the file .xinitrc inside the directory of the user or root and write inside:
fvwm2
Modify the file /etc/rc.d/rc.local inserting on the first row (or replacing the first row) with:
#!/bin/bash
After this row write the path of file .xinitrc and after the written startx, resuming:
#!/bin/bash
cd /root & startx
or
cd /root & startx fvwm2
At this point reboot pc and see the result.
2)Inserting a user with the home and the group of belongings.
-------------------------------------------------------------
Modify the file /etc/profile
inserting these dates:
HOME="/username"
export HOME
Save the file.
Enter in /etc/inittab disabling from row Run gettys until the end putting a # in front of all the
rows.
Over the row Run getty insert another row:
1:12345:wait:/bin/bash -login
Save the file and reboot. At start enter such as user withou insert username and password.
If inside /home/user we insert a file .xinitrc where we write graphic desktop to start for
example fvwm2. It's possible to copy the file /etc/X11/fvwm2/system.fvwm2rc inside
/home/user and rename it in .fvwm2rc
Inside file .bash_profile at the end write startx, so will start the graphic automatically.
Rebooting the pc we will enter such as user and automatically will start the X chosen.
---------------------------------------------------------------
reference : http://www.softwarelibero.it/gnudoc/fdl.it.html
----------------------------------------------------------------
Thursday, 20 November 2008
Installing LAMP On Ubuntu
How to install a LAMP system. LAMP stands for Linux, Apache, MySQL, PHP. The guide is intended to help those who have very little knowlegde of using Linux.
Install Apache
------------------
To start off we will install Apache.
1. Open up the Terminal (Applications > Accessories > Terminal).
2. Copy/Paste the following line of code into Terminal and then press enter:
sudo apt-get install apache2
3. The Terminal will then ask you for you're password, type it and then press enter.
Testing Apache
------------------
To make sure everything installed correctly we will now test Apache to ensure it is working properly.
1. Open up any web browser and then enter the following into the web address:
http://localhost/
You should see a folder entitled apache2-default/. Open it and you will see a message saying "It works!" , congrats to you!
Install PHP
----------------
In this part we will install PHP 5.
Step 1. Again open up the Terminal (Applications > Accessories > Terminal).
Step 2. Copy/Paste the following line into Terminal and press enter:
sudo apt-get install php5 libapache2-mod-php5
Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:
sudo /etc/init.d/apache2 restart
Test PHP
---------------
To ensure there are no issues with PHP let's give it a quick test run.
Step 1. In the terminal copy/paste the following line:
sudo gedit /var/www/testphp.php
This will open up a file called phptest.php.
Step 2. Copy/Paste this line into the phptest file:
Step 3. Save and close the file.
Step 4. Now open you're web browser and type the following into the web address:
http://localhost/testphp.php
The page should look like this:
Test PHP Page
Congrats you have now installed both Apache and PHP!
Install MySQL
-----------------
To finish this guide up we will install MySQL. (Note - Out of Apache and PHP, MySQL is the most difficult to set up. I will provide some great resources for anyone having trouble at the end of this guide.)
Step 1. Once again open up the amazing Terminal and then copy/paste this line:
sudo apt-get install mysql-server
Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the "Bind Address". Begin by opening up Terminal to edit the my.cnf file.
gksudo gedit /etc/mysql/my.cnf
Change the line
bind-address = 127.0.0.1
And change the 127.0.0.1 to your IP address.
Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal:
mysql -u root
Following that copy/paste this line:
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
(Make sure to change yourpassword to a password of your choice.)
Step 4. We are now going to install a program called phpMyAdmin which is an easy tool to edit your databases. Copy/paste the following line into Terminal:
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a file entitled php.ini. To open it type the following:
gksudo gedit /etc/php5/apache2/php.ini
Now we are going to have to uncomment the following line by taking out the semicolon (;).
Change this line:
;extension=mysql.so
To look like this:
extension=mysql.so
Now just restart Apache and you are all set!
sudo /etc/init.d/apache2 restart
-------------------------------------------------------
Reference : http://www.howtoforge.com
-------------------------------------------------------
Install Apache
------------------
To start off we will install Apache.
1. Open up the Terminal (Applications > Accessories > Terminal).
2. Copy/Paste the following line of code into Terminal and then press enter:
sudo apt-get install apache2
3. The Terminal will then ask you for you're password, type it and then press enter.
Testing Apache
------------------
To make sure everything installed correctly we will now test Apache to ensure it is working properly.
1. Open up any web browser and then enter the following into the web address:
http://localhost/
You should see a folder entitled apache2-default/. Open it and you will see a message saying "It works!" , congrats to you!
Install PHP
----------------
In this part we will install PHP 5.
Step 1. Again open up the Terminal (Applications > Accessories > Terminal).
Step 2. Copy/Paste the following line into Terminal and press enter:
sudo apt-get install php5 libapache2-mod-php5
Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:
sudo /etc/init.d/apache2 restart
Test PHP
---------------
To ensure there are no issues with PHP let's give it a quick test run.
Step 1. In the terminal copy/paste the following line:
sudo gedit /var/www/testphp.php
This will open up a file called phptest.php.
Step 2. Copy/Paste this line into the phptest file:
Step 3. Save and close the file.
Step 4. Now open you're web browser and type the following into the web address:
http://localhost/testphp.php
The page should look like this:
Test PHP Page
Congrats you have now installed both Apache and PHP!
Install MySQL
-----------------
To finish this guide up we will install MySQL. (Note - Out of Apache and PHP, MySQL is the most difficult to set up. I will provide some great resources for anyone having trouble at the end of this guide.)
Step 1. Once again open up the amazing Terminal and then copy/paste this line:
sudo apt-get install mysql-server
Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the "Bind Address". Begin by opening up Terminal to edit the my.cnf file.
gksudo gedit /etc/mysql/my.cnf
Change the line
bind-address = 127.0.0.1
And change the 127.0.0.1 to your IP address.
Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal:
mysql -u root
Following that copy/paste this line:
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
(Make sure to change yourpassword to a password of your choice.)
Step 4. We are now going to install a program called phpMyAdmin which is an easy tool to edit your databases. Copy/paste the following line into Terminal:
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a file entitled php.ini. To open it type the following:
gksudo gedit /etc/php5/apache2/php.ini
Now we are going to have to uncomment the following line by taking out the semicolon (;).
Change this line:
;extension=mysql.so
To look like this:
extension=mysql.so
Now just restart Apache and you are all set!
sudo /etc/init.d/apache2 restart
-------------------------------------------------------
Reference : http://www.howtoforge.com
-------------------------------------------------------
Wednesday, 19 November 2008
Auto Read for CDROM, FLOOPY and FLASH Drive
Thank you InfoLinux (Nopriadi) for publish the code as below
Easy to Newbie for understanding
------------------------------------
watch_cdrom_read.sh
------------------------------------
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/cdrom
LOGFILE=/tmp/`basename $0`.log
DD_BS=10M
alias ADIALOG="dialog --backtitle 'AutoRead (CDROM)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
DESTDIR=/tmp/cdrom-data/`date +%d-%m-%Y--%H:%M:%S`
DESTDIR_CONTENT=$DESTDIR/content
DESTDIR_IMAGE=$DESTDIR/cdrom.iso
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan CDROM Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'CDROM terdeteksi' $DIALOG_SIZE
sleep 1
#copying data
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membaca data' $DIALOG_SIZE
[ -d $DESTDIR_CONTENT ] && rm -rf $DESTDIR_CONTENT 1>/dev/null 2>&1
mkdir -p $DESTDIR 2>>$LOGFILE
cp -af $TEMP/ $DESTDIR_CONTENT 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
#creating image
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membuat image' $DIALOG_SIZE
dd if=$DEV of=$DESTDIR_IMAGE bs=$DD_BS seek=0 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "dd-error" >> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam pembacaan.\nKeluarkanlah CDROM
Anda,\nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah CDROM Anda,\nKemudian tekan ENTER'
$DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 1
rmdir $TEMP
done
unalias ADIALOG
rmdir $TEMP
watch_cdrom_write.sh
#!/bin/sh
#nop, 2007, GPL
DEV=0,0,0
DEV_NODE=/dev/sr0
SPEED=24
LOGFILE=/tmp/`basename $0`.log
SRCDIR_IMAGE=/tmp/cdrom-src/cdrom.iso
alias ADIALOG="dialog --backtitle 'AutoWrite (CDROM)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
cdrecord -dev=$DEV -atip 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan CDROM Blank Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'CDROM terdeteksi' $DIALOG_SIZE
sleep 1
#creating image
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membakar CD' $DIALOG_SIZE
cdrecord gracetime=2 dev=$DEV speed=$SPEED $SRCDIR_IMAGE 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "cdrecord-error" >> $LOGFILE
#end
eject $DEV_NODE
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam proses burn.\nTutup tray CDROM dan tekan
ENTER.' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nTutup tray CDROM dan tekan ENTER.' $DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 3
done
unalias ADIALOG
rmdir $TEMP
watch_floppy_disk_read.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/fd0
LOGFILE=/tmp/`basename $0`.log
DD_BS=100k
alias ADIALOG="dialog --backtitle 'AutoRead (FLOPPY DISK)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
DESTDIR=/tmp/floppy-data/`date +%d-%m-%Y--%H:%M:%S`
DESTDIR_CONTENT=$DESTDIR/content
DESTDIR_IMAGE=$DESTDIR/floppy.img
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan Floppy Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'Floppy Disk terdeteksi' $DIALOG_SIZE
sleep 1
#copying data
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membaca data' $DIALOG_SIZE
[ -d $DESTDIR_CONTENT ] && rm -rf $DESTDIR_CONTENT 1>/dev/null 2>&1
mkdir -p $DESTDIR 2>>$LOGFILE
cp -af $TEMP/ $DESTDIR_CONTENT 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
#creating image
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membuat image' $DIALOG_SIZE
dd if=$DEV of=$DESTDIR_IMAGE bs=$DD_BS seek=0 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "dd-error" >> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam pembacaan.\nKeluarkanlah Floppy Disk
Anda,\nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah Floppy Disk Anda,\nKemudian tekan ENTER'
$DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 1
rmdir $TEMP
done
unalias ADIALOG
rmdir $TEMP
watch_floppy_disk_write.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/fd0
LOGFILE=/tmp/`basename $0`.log
SRCDIR_CONTENT=/tmp/floppy-src/content
alias ADIALOG="dialog --backtitle 'AutoWrite (FLOPPY DISK - CONTENT)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan Floppy Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'Floppy Disk terdeteksi' $DIALOG_SIZE
sleep 1
#copying data to floppy
ADIALOG --infobox 'Tunggulah sebentar...\nSedang mengopi data ke floppy' $DIALOG_SIZE
cp -af $SRCDIR_CONTENT $TEMP 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam penulisan.\nKeluarkanlah Floppy Disk Anda,\
nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah Floppy Disk Anda,\nKemudian tekan ENTER'
$DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 1
rmdir $TEMP
done
unalias ADIALOG
rmdir $TEMP
watch_floppy_disk_write_img.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/fd0
LOGFILE=/tmp/`basename $0`.log
SRCDIR_IMAGE=/tmp/floppy-src/floppy.img
DD_BS=100k
alias ADIALOG="dialog --backtitle 'AutoWrite (FLOPPY DISK - IMAGE)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan Floppy Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'Floppy Disk terdeteksi' $DIALOG_SIZE
sleep 1
umount $DEV
#creating image
ADIALOG --infobox 'Tunggulah sebentar...\nSedang menulis image ke floppy' $DIALOG_SIZE
dd if=$SRCDIR_IMAGE of=$DEV bs=$DD_BS seek=0 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "dd-error" >> $LOGFILE
end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam penulisan.\nKeluarkanlah Floppy Disk Anda,\
nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah Floppy Disk Anda,\nKemudian tekan ENTER'
$DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 1
rmdir $TEMP
done
unalias ADIALOG
rmdir $TEMP
watch_usb_flash_disk_read.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/sda1
LOGFILE=/tmp/`basename $0`.log
alias ADIALOG="dialog --backtitle 'AutoRead (USB FLASH DISK)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
DESTDIR=/tmp/usbflashdisk-data/`date +%d-%m-%Y--%H:%M:%S`
DESTDIR_CONTENT=$DESTDIR/content
if [ ! -e $DEV ]
then
ADIALOG --infobox 'IDLE: Masukkan USB Flash Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'USB Flash Disk terdeteksi' $DIALOG_SIZE
sleep 1
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
#copying data
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membaca data' $DIALOG_SIZE
[ -d $DESTDIR_CONTENT ] && rm -rf $DESTDIR_CONTENT 1>/dev/null 2>&1
mkdir -p $DESTDIR 2>>$LOGFILE
cp -af $TEMP/ $DESTDIR_CONTENT 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam pembacaan.\nKeluarkanlah USB Flash Disk
Anda,\nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah USB Flash Disk Anda,\nKemudian tekan
ENTER' $DIALOG_SIZE
fi
rm -f $LOGFILE
rmdir $TEMP
fi
sleep 1
done
unalias ADIALOG
rmdir $TEMP
watch_usb_flash_disk_write.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/sda1
LOGFILE=/tmp/`basename $0`.log
SRCDIR_CONTENT=/tmp/usbflashdisk-src/content
alias ADIALOG="dialog --backtitle 'AutoWrite (USB FLASH DISK)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
if [ ! -e $DEV ]
then
ADIALOG --infobox 'IDLE: Masukkan USB Flash Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'USB Flash Disk terdeteksi' $DIALOG_SIZE
sleep 2
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
#copying data to USB Flash Disk
ADIALOG --infobox 'Tunggulah sebentar...\nSedang mengopi data ke USB Flash Disk'
$DIALOG_SIZE
cp -af $SRCDIR_CONTENT $TEMP 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam penulisan.\nKeluarkanlah USB Flash Disk
Anda,\nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah USB Flash Disk Anda,\nKemudian tekan
ENTER' $DIALOG_SIZE
fi
rm -f $LOGFILE
rmdir $TEMP
fi
sleep 1
done
unalias ADIALOG
rmdir $TEMP
=================
Reference : INFOLINUX
Easy to Newbie for understanding
------------------------------------
watch_cdrom_read.sh
------------------------------------
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/cdrom
LOGFILE=/tmp/`basename $0`.log
DD_BS=10M
alias ADIALOG="dialog --backtitle 'AutoRead (CDROM)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
DESTDIR=/tmp/cdrom-data/`date +%d-%m-%Y--%H:%M:%S`
DESTDIR_CONTENT=$DESTDIR/content
DESTDIR_IMAGE=$DESTDIR/cdrom.iso
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan CDROM Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'CDROM terdeteksi' $DIALOG_SIZE
sleep 1
#copying data
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membaca data' $DIALOG_SIZE
[ -d $DESTDIR_CONTENT ] && rm -rf $DESTDIR_CONTENT 1>/dev/null 2>&1
mkdir -p $DESTDIR 2>>$LOGFILE
cp -af $TEMP/ $DESTDIR_CONTENT 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
#creating image
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membuat image' $DIALOG_SIZE
dd if=$DEV of=$DESTDIR_IMAGE bs=$DD_BS seek=0 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "dd-error" >> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam pembacaan.\nKeluarkanlah CDROM
Anda,\nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah CDROM Anda,\nKemudian tekan ENTER'
$DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 1
rmdir $TEMP
done
unalias ADIALOG
rmdir $TEMP
watch_cdrom_write.sh
#!/bin/sh
#nop, 2007, GPL
DEV=0,0,0
DEV_NODE=/dev/sr0
SPEED=24
LOGFILE=/tmp/`basename $0`.log
SRCDIR_IMAGE=/tmp/cdrom-src/cdrom.iso
alias ADIALOG="dialog --backtitle 'AutoWrite (CDROM)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
cdrecord -dev=$DEV -atip 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan CDROM Blank Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'CDROM terdeteksi' $DIALOG_SIZE
sleep 1
#creating image
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membakar CD' $DIALOG_SIZE
cdrecord gracetime=2 dev=$DEV speed=$SPEED $SRCDIR_IMAGE 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "cdrecord-error" >> $LOGFILE
#end
eject $DEV_NODE
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam proses burn.\nTutup tray CDROM dan tekan
ENTER.' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nTutup tray CDROM dan tekan ENTER.' $DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 3
done
unalias ADIALOG
rmdir $TEMP
watch_floppy_disk_read.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/fd0
LOGFILE=/tmp/`basename $0`.log
DD_BS=100k
alias ADIALOG="dialog --backtitle 'AutoRead (FLOPPY DISK)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
DESTDIR=/tmp/floppy-data/`date +%d-%m-%Y--%H:%M:%S`
DESTDIR_CONTENT=$DESTDIR/content
DESTDIR_IMAGE=$DESTDIR/floppy.img
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan Floppy Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'Floppy Disk terdeteksi' $DIALOG_SIZE
sleep 1
#copying data
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membaca data' $DIALOG_SIZE
[ -d $DESTDIR_CONTENT ] && rm -rf $DESTDIR_CONTENT 1>/dev/null 2>&1
mkdir -p $DESTDIR 2>>$LOGFILE
cp -af $TEMP/ $DESTDIR_CONTENT 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
#creating image
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membuat image' $DIALOG_SIZE
dd if=$DEV of=$DESTDIR_IMAGE bs=$DD_BS seek=0 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "dd-error" >> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam pembacaan.\nKeluarkanlah Floppy Disk
Anda,\nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah Floppy Disk Anda,\nKemudian tekan ENTER'
$DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 1
rmdir $TEMP
done
unalias ADIALOG
rmdir $TEMP
watch_floppy_disk_write.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/fd0
LOGFILE=/tmp/`basename $0`.log
SRCDIR_CONTENT=/tmp/floppy-src/content
alias ADIALOG="dialog --backtitle 'AutoWrite (FLOPPY DISK - CONTENT)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan Floppy Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'Floppy Disk terdeteksi' $DIALOG_SIZE
sleep 1
#copying data to floppy
ADIALOG --infobox 'Tunggulah sebentar...\nSedang mengopi data ke floppy' $DIALOG_SIZE
cp -af $SRCDIR_CONTENT $TEMP 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam penulisan.\nKeluarkanlah Floppy Disk Anda,\
nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah Floppy Disk Anda,\nKemudian tekan ENTER'
$DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 1
rmdir $TEMP
done
unalias ADIALOG
rmdir $TEMP
watch_floppy_disk_write_img.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/fd0
LOGFILE=/tmp/`basename $0`.log
SRCDIR_IMAGE=/tmp/floppy-src/floppy.img
DD_BS=100k
alias ADIALOG="dialog --backtitle 'AutoWrite (FLOPPY DISK - IMAGE)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
ADIALOG --infobox 'IDLE: Masukkan Floppy Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'Floppy Disk terdeteksi' $DIALOG_SIZE
sleep 1
umount $DEV
#creating image
ADIALOG --infobox 'Tunggulah sebentar...\nSedang menulis image ke floppy' $DIALOG_SIZE
dd if=$SRCDIR_IMAGE of=$DEV bs=$DD_BS seek=0 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "dd-error" >> $LOGFILE
end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam penulisan.\nKeluarkanlah Floppy Disk Anda,\
nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah Floppy Disk Anda,\nKemudian tekan ENTER'
$DIALOG_SIZE
fi
rm -f $LOGFILE
fi
sleep 1
rmdir $TEMP
done
unalias ADIALOG
rmdir $TEMP
watch_usb_flash_disk_read.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/sda1
LOGFILE=/tmp/`basename $0`.log
alias ADIALOG="dialog --backtitle 'AutoRead (USB FLASH DISK)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
DESTDIR=/tmp/usbflashdisk-data/`date +%d-%m-%Y--%H:%M:%S`
DESTDIR_CONTENT=$DESTDIR/content
if [ ! -e $DEV ]
then
ADIALOG --infobox 'IDLE: Masukkan USB Flash Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'USB Flash Disk terdeteksi' $DIALOG_SIZE
sleep 1
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
#copying data
ADIALOG --infobox 'Tunggulah sebentar...\nSedang membaca data' $DIALOG_SIZE
[ -d $DESTDIR_CONTENT ] && rm -rf $DESTDIR_CONTENT 1>/dev/null 2>&1
mkdir -p $DESTDIR 2>>$LOGFILE
cp -af $TEMP/ $DESTDIR_CONTENT 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam pembacaan.\nKeluarkanlah USB Flash Disk
Anda,\nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah USB Flash Disk Anda,\nKemudian tekan
ENTER' $DIALOG_SIZE
fi
rm -f $LOGFILE
rmdir $TEMP
fi
sleep 1
done
unalias ADIALOG
rmdir $TEMP
watch_usb_flash_disk_write.sh
#!/bin/sh
#nop, 2007, GPL
DEV=/dev/sda1
LOGFILE=/tmp/`basename $0`.log
SRCDIR_CONTENT=/tmp/usbflashdisk-src/content
alias ADIALOG="dialog --backtitle 'AutoWrite (USB FLASH DISK)'"
DIALOG_SIZE="10 40"
if [ $(id -u) -ne 0 ]
then
ADIALOG --msgbox 'Jalankanlah aplikasi ini sebagai root' $DIALOG_SIZE
exit 1
fi
while [ 1 ]
do
if [ ! -e $DEV ]
then
ADIALOG --infobox 'IDLE: Masukkan USB Flash Disk Anda' $DIALOG_SIZE
else
ADIALOG --infobox 'USB Flash Disk terdeteksi' $DIALOG_SIZE
sleep 2
TEMP=/tmp/$0.`date +%s`.temp
mkdir -p $TEMP 1>/dev/null 2>&1
mount $DEV $TEMP 1>/dev/null 2>&1
#copying data to USB Flash Disk
ADIALOG --infobox 'Tunggulah sebentar...\nSedang mengopi data ke USB Flash Disk'
$DIALOG_SIZE
cp -af $SRCDIR_CONTENT $TEMP 2>>$LOGFILE
umount $TEMP 2>> $LOGFILE
#end
TEST=`wc -c $LOGFILE | cut -d' ' -f1`
if [ $TEST -ne 0 ]
then
ADIALOG --msgbox 'Terjadi kesalahan dalam penulisan.\nKeluarkanlah USB Flash Disk
Anda,\nKemudian tekan ENTER' $DIALOG_SIZE
else
ADIALOG --msgbox 'Selesai.\nKeluarkanlah USB Flash Disk Anda,\nKemudian tekan
ENTER' $DIALOG_SIZE
fi
rm -f $LOGFILE
rmdir $TEMP
fi
sleep 1
done
unalias ADIALOG
rmdir $TEMP
=================
Reference : INFOLINUX
Tuesday, 18 November 2008
Sunday, 16 November 2008
so Easy to Extra .iso in Linux
Friday, 14 November 2008
Synaptic Package Manager Error
Tuesday, 11 November 2008
I’m your father, Linux Mint , Blankon
coz of Ubuntu We Create Master, they will become another ubuntu such as Mint, Blankon ...
While ignoring the reference to Star Wars, Linux Mint is based on Ubuntu 8.04 LTS (Hardy Heron), which guarantees long term-support, APT package manager with the huge library and the best hardware compatibility so far.
Linux Mint benefits from the huge Ubuntu community, forums, websites; almost all tutorials written for Ubuntu work with Linux Mint.
Installation
Getting Linux Mint is fairly easy process: hit the download link, burn the .iso image and boot from the CD. You’re greeted with a fully functional desktop and a choice to install it – the same Ubuntu wizard we’re used to.
There’s no noticeable difference in boot-up time or install time, considering you’re getting a lot of extras from the start.
What’s new?
* Out of the box support for media playback, everything from .xvid to .avi, mp3 and flac. Default player: Rhythmbox, MPlayer.
* Easy wizard for installing proprietary ATI/nVidia drivers, with some additional options not included in the default Hardware Drivers app. Default player: MPlayer.
* Sun Java and Adobe Flash support out of the box.
* Drops the Ekiga package and adds an IRC client.
* Compiz Settings Manager: Allows advanced configuration options to the compositioning engine.
* Mint Update: An application specifically written from Linux Mint that allows users to install updates while providing a safety-level indicator, allowing un-experienced users to skip updates that may need further configuration or are not compatible with Mint.
* Mint Desktop: A configuration tool for various settings regarding the desktop. Makes useful stuff like hiding the mounted devices a one click affair.
* Mint Assistant: A first-time configuration tool that let’s you choose to enable the root password and terminal quotes.
* Mint Install: Allows installation of new applications from a simple 3 tab interface: .mint, getdeb.net and the APT repository. Useful for newbies, and definitely faster than loading Synaptic Package Manager.
Mint Backup: Easy wizard for setting up a backup.
Initially skeptical about the elegance part, once it booted-up I was in love. The attention given to every aspect of the interface is unbelievable. From the GRUB boot logo to the login, and desktop, everything inspires elegance. Even the start-up sound is nice – the first time I didn’t disable it.
The main menu resembles KDEs’ implementation – which initially made me wonder if this is Gnome
No operating system is perfect, and Linux Mint is no exception.
* Not up-to-date with with the latest improvements in Ubuntu – 8.10 features like the new Network Manager are not yet implemented.
* Doesn’t have the commercial backing of a corporation like Canonical or Novell.
* The release schedule fluctuates. New features might be just around the corner or not implemented at all.
* Google Custom Search instead of Google in Firefox. Can be fixed with ‘Add to search bar’ addon.
Conclusion
A lot of people may argue that the changes in Linux Mint are not that innovative or new. Some people will argue that you could spend a couple of hours and mod the Gnome panel to resemble Mints’. You can install all the Mint apps for Ubuntu. You can install ubuntu-restricted-extras by yourself.
mydesktop [Geek Review] Linux Mint: A better Ubuntu
But that takes time – and why waste that when you can have everything you need out of the box? Linux Mint convinced me, and now has its own partition.
Reference
---------
http://tuxgeek.me
Monday, 10 November 2008
Backup Data Using Areca in Ubuntu
Sunday, 9 November 2008
Ubuntu 8.10 Intrepid Ibex sources.list
Just For Remember Link of Ubuntu 8.10
-------------------------------------
deb http://it.archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb http://it.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://it.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu intrepid partner
deb-src http://archive.canonical.com/ubuntu intrepid partner
deb http://security.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu intrepid-backports partner
deb http://archive.canonical.com/ubuntu intrepid-proposed partner
deb http://archive.canonical.com/ubuntu intrepid-security partner
deb http://archive.canonical.com/ubuntu intrepid-updates partner
deb http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main
deb-src http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main
deb http://packages.medibuntu.org/ intrepid free non-free
deb-src http://packages.medibuntu.org/ intrepid free non-free
deb http://download.skype.com/linux/repos/debian/ stable non-free
deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
deb-src http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
-------------------------------------
deb http://it.archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb http://it.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://it.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu intrepid partner
deb-src http://archive.canonical.com/ubuntu intrepid partner
deb http://security.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu intrepid-backports partner
deb http://archive.canonical.com/ubuntu intrepid-proposed partner
deb http://archive.canonical.com/ubuntu intrepid-security partner
deb http://archive.canonical.com/ubuntu intrepid-updates partner
deb http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main
deb-src http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main
deb http://packages.medibuntu.org/ intrepid free non-free
deb-src http://packages.medibuntu.org/ intrepid free non-free
deb http://download.skype.com/linux/repos/debian/ stable non-free
deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
deb-src http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
Saturday, 8 November 2008
Create Movie DVD using ManDVD
Thursday, 6 November 2008
AdminTool in Solaris OS
Tuesday, 4 November 2008
Setting Grub in LINUX
Monday, 3 November 2008
How To Run .EXE Windows File in Mint / Ubuntu
During Transfer to Linux, many User Want to Running Windows File in Linux such as WinAMP, Games , all still under ext EXE
We Need As below Action
1. Install "Wine" using Package Manager or APT
Result After Install as below
2. Install Windows File such as WinAMP
3. OPEN FILE EXE
>
4. Enjoy Your Program Windows
Now We Did Not Worry If We Want To Move to LINUX OS :-)
We Need As below Action
1. Install "Wine" using Package Manager or APT
Result After Install as below
2. Install Windows File such as WinAMP
3. OPEN FILE EXE
>
4. Enjoy Your Program Windows
Now We Did Not Worry If We Want To Move to LINUX OS :-)
Sunday, 2 November 2008
Sharing Folder in Linux Mint or Ubuntu
Wednesday, 29 October 2008
Setup Repositories Linux Mint in Local using DEB UBUNTU
Here I Would like to update Linux Mint using DEB File Using Ubuntu DEB
We Need such as Tea, MP3, POP Mie :-)
Step by Step
============
1. Copy All DVD DEB Ubuntu in Local Linux Mint
Folder Disks and Pool, and Create Folder for Disk 1 = 1 , Disk 2 = 2
Example : ///media/disk/REPO_UBUNTU/1
///media/disk/REPO_UBUNTU/2 ---- till all DVD Ubuntu
2. Type $ CHMOD -R 777 * ---> For All Folder We Have Done Copy
3. Click Package Manager
2. Click Setting ---> Repositories
3. Type Setting Repositories
note :
also you can add in /etc/apt/sources.list
4. Click RELOAD for Ensure your Setting is Correct
5. Now You Add Software as you want
We Need such as Tea, MP3, POP Mie :-)
Step by Step
============
1. Copy All DVD DEB Ubuntu in Local Linux Mint
Folder Disks and Pool, and Create Folder for Disk 1 = 1 , Disk 2 = 2
Example : ///media/disk/REPO_UBUNTU/1
///media/disk/REPO_UBUNTU/2 ---- till all DVD Ubuntu
2. Type $ CHMOD -R 777 * ---> For All Folder We Have Done Copy
3. Click Package Manager
2. Click Setting ---> Repositories
3. Type Setting Repositories
note :
also you can add in /etc/apt/sources.list
4. Click RELOAD for Ensure your Setting is Correct
5. Now You Add Software as you want
Subscribe to:
Posts (Atom)