Wednesday, December 9, 2009
Friday, November 27, 2009
My SOX !!!! and VPN log log log and log
show all connection
#Monitor IP addresses that assign to clients
sh conn all
### see cisco vpn client
sh vpn-sessiondb remote
ບາດນີ້ກໍ່ conf ໃຫ້ logging ໂຍນ log ໄປໃສ່ syslog ອີ່ຫຍັງຈັກຢ່າງ
ເລືອກ warning ເປິດ timestamps ນຳ
ໄວ້ມາອັບເດດອີກ ວຽກຫລາຍ ຊິບ++
Friday, November 20, 2009
unloveable
ก็รู้ว่าฉันไม่มีความหมาย ก็รู้ว่าคงเป็นไปไม่ได้
ยิ่งนานเท่าไหร่ยิ่งหมดหวัง
เมื่อเธอไม่เคยจะหันมองที่ฉัน
และไม่มีแม้วันที่เธอจะหันมาสนใจ
และก็รู้ไม่นานเท่าไหร่เธอก็คงต้องไปจากฉัน
* แต่ตอนนี้ยังมีเวลา ให้ฉันจะหาเหตุผลดีๆ
มาฉุดรั้งเธอตอนนี้แต่ก็รู้ดีไม่มีหวัง *
** ต่อให้ฉันจะรักเธอมากเท่าไหร่
แต่ก็รู้ว่าเธอคงจะไม่สนใจ
ก็ยังฝันไปและยังคงหวังเอาไว้ข้างในจิตใจ
ว่าซักวันเธอจะมีฉัน แต่ก็รู้เป็นไปไม่ได้
เมื่อเธอคิดว่าฉันไม่ใช่ แต่ก็ไม่เป็นไร
ก็อยากจะขอมีเธอเรื่อยไปในใจไปอีกแสนนาน **
และแม้สิ่งที่ฉันทำวันนี้ อาจไม่ทำให้เธอได้รู้สึกดี
สิ่งที่ใจเธอพอจะมีก็เพียงแต่ความรำคาญ
ก็อยากจะขอให้เธอได้ฟังเอาไว้
บทเพลงสุดท้ายที่ฉันตั้งใจจะมอบให้ไป
ที่กลั่น ออกมาจากใจ และมีให้เธอคนเดียวเท่านั้น
*,**
ไม่รู้ว่านานเท่าไหร่ กว่าที่ฉันจะลบเธอจากใจ
กว่าที่ความทรงจำดี ๆ มันจะเลือนหาย
กว่าจะได้รักใครอีกครั้ง...
**
เมื่อเธอคิดว่าชั้น ไม่ใช่
ก็ไม่เป็นไร ตราบใดที่ฉันจะยังหายใจ
จะรักเธอไปตลอดกาล..
Monday, October 12, 2009
Tuesday, October 6, 2009
Saturday, September 26, 2009
ສ້າງ live CD ໄວ້ໃຊ້
sudo livecd.sh
ແລ້ວຜ່ານມາກູເມື່ອຍ list package ເພື່ອໃຜ
ສັດ
Wednesday, September 23, 2009
ແກ້ file audio ເປັນ mp3 ດ້ວຍ bash script
ການທີ່ຕ້ອງ Rip ເພງທີ່ເປັນ audio disc ໄປເປັນ mp3 ນັ້ນທຳມະດາແລ້ວ ມີ software ຫລາຍໂຕທີ່ເຮັດໄດ້ແຕ່ບົດຄວາມນີ້ມາກ່ວາເຖິງການ rip ເພງຈາກຊີດີ ມາເກັບໄວ້ເປັນ mp3 ຜ່ານ bash script ກັນ
ລັກສະນະການເຮັດວຽກຄື ເມື່ອເຮົາສັ່ງເຮັດວຽກໂປຣແກຣມ ໂຕ script ຈະຖອດ file ສຽງທັງຫມົດມາເປັນ mp3 ແລ້ວຈະຈັດເກັບຢູ່ ໂຟ້ນເດີ້ ປະຈຸບັນ
ທຳອິດຕິດຕັ້ງ package ທີ່ຈຳເປັນ ໃຊ້ apt-get ຫລື aptitude ກໍ່ໄດ້
$ sudo aptitude install lame cdda2wav
ສ່ວນຂອງ script ໃຊ້ editor ຕາມແຕ່ມັກ
$ sudo vim /usr/local/bin/cmp3
#!/bin/bash
# Rip audio disc to mp3
#
# USAGE: $0 prefix
# exam1: $0 T2
# -> track1.mp3
# track2.mp3
# ...
# in current dir
#
# Requist: need to have lame cdda2wav
if [ $1 ]; then PREFIX="$1-"; fi
DEV='/dev/cdrom'
TMP="/tmp/$USER/`basename $0`_$RANDOM"
mkdir -p $TMP
pushd $TMP
#to wave
cdda2wav -L 1 -D $DEV -B
#to mp3
for i in *wav; do
NUM=`echo ${i%.*} | cut -d_ -f 2`-
TITLE=`grep 'Tracktitle=' ${i%.*}.inf | cut -d\' -f2`
lame -h -V 2 $i $PREFIX$NUM$TITLE.mp3
done
popd
mv $TMP/*mp3 .
rm -rf $TMP
ເຮັດໃຫ້ມັນເຮັດວຽກໄດ້
$ sudo chmod 777 /usr/local/bin/cmp3
ການເໃຊ້ວຽກຄືໃສ່ແຜ່ນ cd audio ແລ້ວສັ່ງrun cmp3 ຈະໄດ້ໄຟສ mp3 ມາຢູ່ໃນໂຟນເດີ້ທີ່ທ່ານໃຊ້ຢູ່
ຮຽບຮຽງຈາກ debianclub.org
Tuesday, September 22, 2009
bash Script ໄວ້ໃຊ້ Twitter
ກໍ່ຄືເກົ່າຕິດຕັ້ງ “curl”
sudo apt-get install curl
ສ້າງໄຟລ ໄວ້ run ເກັບໄຟລ ໄວ້ /usr/local/bin/ ໃສ່ຊື່ຫຍັງກະໄດ້ຕາມໃຈຕົວຢ່າງ twt
nano /usr/local/bin/twt
###############################################
#!/bin/bash
#
USERNAME=xxxxxxx
PASSWORD=******
if [ $# != 1 ]
then
echo “Usage: ${0##*/}your twt”
exit 1
fi
tweet=$1
curl -u $USERNAME:$PASSWORD -d status=”$*” http://twitter.com/statuses/update.xml >> /dev/null
echo “twitted!!!.”
############################################
ໃສ່ user ແລະ password ໃຫ້ຖືກ
chmod ຄ່າ atribute ໃຫ້ສາມາດລັນໄດ້
chmod +x tweet
ທົດສອບ
twt “test from bash”
thanks : Trendy Teddy @ubuntuclub
Monday, August 24, 2009
FIREWALL
http://www.webopedia.com/
FIREWALL
A system designed to prevent unauthorized access to or from a private network.
Firewalls can be implemented in both hardware and software, or a combination of both.
Firewalls are frequently used to prevent unauthorized Internet users from accessing
private networks connected to the Internet, especially intranets. All messages
entering or leaving the intranet pass through the firewall, which examines each
message and blocks those that do not meet the specified security criteria.
There are several types of firewall techniques:
# Packet filter: Looks at each packet entering or leaving the network and accepts or
rejects it based on user-defined rules. Packet filtering is fairly effective and
transparent to users, but it is difficult to configure. In addition, it is
susceptible to IP spoofing.
# Application gateway: Applies security mechanisms to specific applications, such as
FTP and Telnet servers. This is very effective, but can impose a performance degradation.
# Circuit-level gateway: Applies security mechanisms when a TCP or UDP connection is
established. Once the connection has been made, packets can flow between the hosts
without further checking.
# Proxy server: Intercepts all messages entering and leaving the network. The proxy
server effectively hides the true network addresses.
In practice, many firewalls use two or more of these techniques in concert.
A firewall is considered a first line of defense in protecting private information.
For greater security, data can be encrypted.
Thursday, July 30, 2009
Watching Multiple Files With Multitail
By default MultiTail does the same thing as tail -f, i.e. watches files in real time. To watch two files at once, the basic usage is:
multitail /var/log/messages /var/log/auth.log
To scroll through the files, press 'b' and pick the file you want from the list. You'll then get the last 100 lines of that file to scroll through using the cursor keys. You can also use 'gg'/'G' to go to the top/bottom of the scroll window. If you want more lines, exit the scroll window with 'q', hit 'm', and enter a new value for the number of lines to store.
Even better, instead of viewing the files in separate windows, you can merge them:
multitail -I /var/log/apache2/access.log /var/log/apache2/error.log
This makes it much easier to spot what's going on just before and after an error occurs.
Another use of multitail is to view the output of commands, using -l. This works best with commands that you want to run repeatedly. For example, the manual suggests this for monitoring TCP connections:
multitail -R 3 -l "netstat -p tcp"
-R 3 sets the command to be rerun every three seconds, and displays only the difference between each run and the previous run (-r just reruns every 3 seconds, so you'll just get the new output tacked onto the end of the screen every time).
credit: serverwatch
Wednesday, June 24, 2009
Saturday, June 20, 2009
install asterisk gui
1. svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
2. cd asterisk-gui
3. sh configure && make && make install
If there were no errors, everything went perfectly. An example you can use here is: (type this into console)
IMPORTANT! Watch the output of the command:
'make checkconfig'
as it will test your asterisk configuration files to make sure the GUI is ready for use.
Note! You can also type 'make update' in the GUI source directory to update your SVN checkout.
Here are my default config files I use
http.conf:
[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
prefix=gui
enablestatic=yes
manager.conf:
[general]
enabled=yes
webenabled=yes
port=5038
bindaddr=0.0.0.0
[bkruse]
secret=blah
read=system,call,log,verbose,command,agent,user,config,originate,read,write
write=system,call,log,verbose,command,agent,user,config,originate,read,write
With this configuration, you can access the gui from: http://ip:8088/gui/static/config/cfgbasic.html
(Note: This is the most insecure settings, but if you are having problems, will
help you get something working. Don't forget to harden down!)
cradit: http://www.asterisknow.org
how to install gizmo
To install Gizmo on K/Ubuntu download and install the following files in this oder:
- Bonjour
- libsipphoneapi (OSS or ALSA)
- And finally, Gizmo itself.
Tuesday, June 16, 2009
how to set date on linux
Use the following syntax to set new data and time:
date set="STRING"
For example, set new data to 2 JUN 2009 18:00:00, type the following command as root user:
# date -s "2 JUN 2009 18:00:00"
OR
# date set="2 JUN 2009 18:00:00"
You can also simplify format using following syntax:
# date +%Y%m%d -s "20090528"
Linux Set Time
To set time use the following syntax:
# date +%T -s "10:13:13"
Where,
* 10: Hour (hh)
* 13: Minute (mm)
* 30: Second (ss)
Use %p locale’s equivalent of either AM or PM, enter:
# date +%T%p -s "6:10:30AM"
# date +%T%p -s "12:10:30PM"
Monday, June 15, 2009
101 Reasons Why I Love You
101 Reasons Why I Love You
by Jennifer Good
A very large number of romantic ideas that have been added to this site involve writing down reasons why you love your partner. This, when it comes to a large number of ideas, can be extremely time consuming and sometimes difficult to be creative with. Use this list to help spark your loving imagination and create an “ultimate” romantic gift for your love! Please note: Not all of the items on this list will apply to your relationship. When you see one that doesn’t, just substitute it with your own reason.
- I love the way we finish each other’s sentences.
- I love the way I know you’ll never give up on me.
- I love the fact that I wouldn’t ever give up on you.
- I love the way you look at me.
- I love how beautiful your eyes are.
- I love the way I can’t imagine a day without you in my life.
- I love the way if we were ever separated I wouldn’t know how to go on.
- I love the way we cuddle and watch sunsets together.
- I love the way we sometimes stay up all night and just talk, then watch the sunrise together.
- I love how I know you’ll always be there when I need you to be.
- I love the fact that I will always be there for you too.
- I love how when I dream of my life partner, the only person that I can see is you.
- I love how complete I feel when I am with you.
- I love how our bodies just fit together.
- I love the way you make me laugh.
- I love the way you laugh.
- I love the way you won’t compromise yourself when we are together.
- I love the way you won’t let me compromise myself.
- I love your thoughtfulness.
- I love your tenderness.
- I love your ability to speak without saying a single word.
- I love the way we glance at each other across the room and know what each other is thinking.
- I love the way, how even though we may be miles apart I still feel like you’re right here with me.
- I love the way you surprise me with the perfect gifts that show you pay attention to me.
- I love the way you’ll watch a sporting game with me even though you may not be interested in it.
- I love the way you treat my friends.
- I love your love for the things that interest me.
- I love the way you let me live my life freely without jealousy.
- I love how you demand respect but are not controlling.
- I love how I would do anything in this world to make you happy.
- I love how you would do anything in this world to make me happy.
- I love the way your voice sounds over the phone.
- I love the way your voice sounds when you whisper sweet nothings in my ear.
- I love the completeness and oneness I feel when we make love.
- I love your sensuality.
- I love how our romance feels like the perfect romance movie.
- I love how you are my soul mate.
- I love the way you handle troubled times.
- I love the way you respect me.
- I love the way you protect and defend me.
- I love how you feel when we cuddle.
- I love the softness of your lips against mine.
- I love the softness of you lips against my body.
- I love the feeling of your hair brushing against me when we make love.
- I love laying in bed at night talking about nothing.
- I love waking up to find we’ve been cuddling together all night.
- I love the surprises you leave for me.
- I love your intelligence.
- I love your ingenuity.
- I love your ability to make friends where ever we go.
- I love your love for life.
- I love your passion for your hobbies and interests.
- I love how every time I look at you, you take my breath away.
- I love how I thank God everyday for bringing someone as wonderful as you into my life.
- I love the fact you gave me the gift of our children.
- I love the special moments that we shared that will remain my fondest memories of you and I.
- I love spending the holidays with the one person I love the most.
- I love how my heart skips a beat whenever you walk into the room.
- I love how you love me.
- I love how I love you.
- I love the ways you choose to show your affection for me.
- I love the way you inspire me to be more than I am.
- I love the way you spark my creativity and imagination.
- I love the way you make me feel like anything is possible as long as I’m with you.
- I love your sense of humor.
- I love the way you make me feel like royalty.
- I love the way you dress.
- I love your understated elegance.
- I love you just the way you are.
- I love your spontaneity.
- I love our life together.
- I love how if I died right now I would be the happiest person alive knowing I found my one true love.
- I love the fact that we will grow old together.
- I love your way with words.
- I love the way you look when your sleeping.
- I love the way you think you look awful when you first wake up when it is actually then I find you the most beautiful.
- I love your willingness to share everything and most especially your heart with me.
- I love your strength of character.
- I love taking showers together.
- I love the way you leave me love notes to find whenever you’re gone.
- I love the way you treat me.
- I love the way you take care of us.
- I love your cooking.
- I love the way you take the time to thank me for doing every day things.
- I love the way you show your affection when we are around friends and/or family.
- I love the way you are not scared to show your affection when we are in public.
- I love your confidence.
- I love your ability to make me feel better when times are tough.
- I love the way we make up after a fight.
- I love how you treat our children.
- I love the way you support me when I’m off track.
- I love the way you take the time to show me how much you love me.
- I love your beautiful hair.
- I love your body.
- I love your openness to try new things.
- I love your ability to talk things through.
- I love your courage to be you.
- I love your greatness.
- I love the fact that you want to be with me and only me.
- I love how I am and feel when I am with you!
- I love you for you!
Tuesday, June 9, 2009
You're Beautiful lyrics
My love is pure.
I saw an angel.
Of that I'm sure.
She smiled at me on the subway.
She was with another man.
But I won't lose no sleep on that,
'Cause I've got a plan.
You're beautiful. You're beautiful.
You're beautiful, it's true.
I saw your face in a crowded place,
And I don't know what to do,
'Cause I'll never be with you.
Yeah, she caught my eye,
As we walked on by.
She could see from my face that I was,
Fucking high,(Real version)
Flying high,(clean version)
And I don't think that I'll see her again,
But we shared a moment that will last till the end.
You're beautiful. You're beautiful.
You're beautiful, it's true.
I saw your face in a crowded place,
And I don't know what to do,
'Cause I'll never be with you.
You're beautiful. You're beautiful.
You're beautiful, it's true.
There must be an angel with a smile on her face,
When she thought up that I should be with you.
But it's time to face the truth,
I will never be with you.
Monday, June 8, 2009
install pbxbox on ubuntu
1. How To Install step by step Asterisk in Ubuntu Server
1. Linux Version : Ubuntu Server
2. Linux Kernel : 2.6.22
3. Asterisk Version : Asterisk V.1.4.13
4. FreePBX Version : FreePBX 2.3.1
1. Linux filesystem partition example
1. /boot 100 MB
2. /var 4 GB
3. /home 6 GB
4. /usr 12 GB
5. / 6 GB
6. Swap 600 MB
1. RAM Memory: 512 MB
2. CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz
3. Ethernet: 10/100 VT6102 Rhine-II
4. FXO Card: 1 FXO Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
5. FXS card:
6. Sound: VT8233/A/8235/8237 AC97 Audio Controller
7. Bluetooth:
8. WiFi:
1. Other Devices:
1. ************************************************************************************************
2. ************************************************************************************************
3. ******************************** Packages Install
4. ************************************************************************************************
5. ************************************************************************************************
1. After of install Ubuntu Linux the first thing that we need to do is change the root password
sudo passwd root
password
1. Edit the next file /etc/apt/sources.list and uncomment the next packages repositories
sudo editor /etc/apt/sources.list
1. uncomment and after save the edited file
deb http://us.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe
1. First we need to install OpenSSH to communicate from other PC using SSH.
sudo apt-get install openssl libssl-dev ssh
1. After we need to install compilation library
sudo apt-get install gcc make g++
1. View what kernel version has installed our Ubuntu Linux
uname -a
1. after of run the command uname I can see something like that
Linux MexRom 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux
1. Then I need to search the headers, images and sources for kernel
apt-cache search 2.6.22
1. we need to install the headers, image and sources for the kernel
sudo apt-get install linux-headers-2.6.22-14-generic linux-image-2.6.22-14-generic linux-source-2.6.22
1. too we need install the next applications nmap is practice to view what porst have open our linux systmen, lynx to see any web site from CLI and emacs to files edit
sudo apt-get install nmap lynx emacs21
1. We will install festival beacuse is very important for make AGIs with asterisk and any programming language
sudo apt-get install festival festival-dev
1. We need the next library to Asterisk
sudo apt-get install ncurses-base ncurses-bin ncurses-term libncurses5 libncursesw5 libncurses5-dev libncursesw5-dev
1. Too is necessary to install the next library
sudo apt-get install zlib1g zlib1g-dev
1. This library are required by FreePBX
sudo apt-get install bison bison-doc
1. library required for FreePBX
sudo apt-get install libxml2 libxml2-dev
1. library required for FreePBX
sudo apt-get install libtiff4 libtiff4-dev
1. library required for FreePBX for audio processing
sudo apt-get install libasound2 libgsm1 libltdl3 libpq4 libspeex1 libsqlite0 libtonezone1 libaudiofile0 libaudiofile-dev
1. if you will install a Sangoma Card then you will need install the next
sudo apt-get install flex
1. This library are necessary to Asterisk Documentation and install new versions of Asterisk and FreePBX
sudo apt-get install subversion curl doxygen
1. library required for FreePBX
sudo apt-get install libnet-telnet-perl mime-construct libipc-signal-perl libmime-types-perl libproc-waitstat-perl
1. Install Apache web server to acces from any computer to FreePBX GUI
sudo apt-get install apache2
1. PHP Librarys required for FreePBX
sudo apt-get install php5 php5-cli php5-mysql php-pear libapache2-mod-php5 php5-curl php5-gd php-db
1. We need install MySQL Database server to manage the cdr information and asterisk configuration from FreePBX.
sudo apt-get install mysql-client-5.0 mysql-server-5.0 libmysqlclient15-dev
1. After of Install MySQL maybe we need make any changes these
We need enter the root password to MySQL Server
Change the information of Internet Site and select of type like this
localhost.localdomain
1. ************************************************************************************************
2. ************************************************************************************************
3. ******************************** Asterisk Package Compilations ****************************
4. ************************************************************************************************
5. ************************************************************************************************
1. in this second step we need create a new folder to put the asterisk packages downloaded
mkdir ~/asterisk
cd asterisk
1. Download the next files and save in the new folder created
1. Download asterisk-perl this module will allow us process the Asterisk Configuration
wget http://www.cpan.org/modules/by-category/25_Bundles/Asterisk/asterisk-perl-0.10.tar.gz
1. These files are requires to control the mp3 and other audio files such as GSM, Ulaw, alaw files etc.
wget http://superb-east.dl.sourceforge.net/sourceforge/sox/sox-14.0.0.tar.gz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
1. Download FreePBX Package that is the main application to configure asterisk from a web navigator
wget http://easynews.dl.sourceforge.net/sourceforge/amportal/freepbx-2.3.1.tar.gz
1. Asterisk Packages
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.13.tar.gz
1. If we have a digium card to connect the pstn to our voip network then we need download and install the next package
wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.5.1.tar.gz
wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.1.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.4.tar.gz
1. voices in english for Asterisk
wget http://downloads.digium.com/pub/telephony/sounds/asterisk-core-sounds-en-ulaw-current.tar.gz
wget http://downloads.digium.com/pub/telephony/sounds/asterisk-extra-sounds-en-ulaw-current.tar.gz
wget http://downloads.digium.com/pub/telephony/sounds/asterisk-moh-freeplay-ulaw.tar.gz
1. we go the following directory
cd /usr/src/
1. we decompress the lame package and we compile and to install
sudo tar -xvzf ~/asterisk/lame-3.97.tar.gz
cd lame-3.97
sudo ./configure --prefix=/usr --sysconfdir=/etc
sudo make && sudo make install
1. we decompress sox package and we install this library to process multimedia files
cd /usr/src/
sudo tar -xzvf ~/asterisk/sox-14.0.0.tar.gz
cd sox-14.0.0
sudo ./configure
sudo make
sudo make install
1. We need to install Asterisk-Perl to process the Asterisk File Configuration
cd /usr/src/
sudo tar -xzvf ~/asterisk/asterisk-perl-0.10.tar.gz
cd asterisk-perl-0.10
sudo perl Makefile.PL
sudo make all
sudo make install
1. To descompress FreePBX
cd /usr/src
sudo tar -xzvf ~/asterisk/freepbx-2.3.1.tar.gz
cd /usr/src/freepbx-2.3.1
1. Begin to install the database for Asterisk in MySQL
2. First We need to access to MySQL CLI, enter the password root, if you don't have configure the password root for mysql then is very important that yo make this step.
mysql -u root -p
ENTER
show databases;
use mysql ;
1. Change the root password if you dont have make it
update user set password = password("PaSsWoRd") where user = "root";
1. Create the asterisk user for mysql
grant all privileges on *.* to asterisk@localhost identified by "4st3r1sk";
flush privileges;
exit
1. Entet to mysql using the asterisk user created
mysql -u asterisk -p
1. create the database for Asterisk Configuration and CDR information
create database asteriskcdrdb;
create database asterisk;
exit
1. dump the database schema that is in SQL Folder of FreePBX installation directory
mysql -u asterisk -p asterisk < /usr/src/freepbx-2.3.1/SQL/newinstall.sql
mysql -u asterisk -p asteriskcdrdb < /usr/src/freepbx-2.3.1/SQL/cdr_mysql_table.sql
1. Finish the MySQL Configuration
1. Create the user for Asterisk and change him password
sudo groupadd asterisk
sudo useradd -c "PBX asterisk" -d /var/lib/asterisk -g asterisk asterisk
sudo passwd asterisk
1. Create the next directory where Asterisk will put the PID Asterisk Run
sudo mkdir /var/run/asterisk
sudo chown asterisk:asterisk /var/run/asterisk
1. Add the Asterisk user for Apache
sudo emacs /etc/group
www-data:x:33:asterisk
1. press ctrl+x ctrl+s, para salir ctr+x, ctr+cto save and quit
1. Search the apache configuration using the find command
find /etc/apache2/ -type f | xargs grep Group
1. Edit the next file
sudo emacs /etc/apache2/apache2.conf
1. to search en Emacs press Ctrl+s and enter the text to search
2. Change default user for Apache by asterisk user
User www-data
Group www-data
1. change by
User asterisk
Group asterisk
1. saver and quit (to save ctrl+x ctrl+s, to quit ctr+x, ctr+c )
1. execute the next command to change the permissions of php lib sessions
sudo chown -R asterisk /var/lib/php5
1. Edit the php file configuration and modify the following php properties
sudo emacs /etc/php5/apache2/php.ini
upload_max_filesize = 32M
max_execution_time = 120
max_input_time = 120
1. create the Asterisk directrory in /usr/src
sudo mkdir /usr/src/asterisk
cd /usr/src/asterisk
1. decompress the libpri library
sudo tar zvxf ~/asterisk/libpri-1.4.1.tar.gz
1. decompress the zaptel library
sudo tar zvxf ~/asterisk/zaptel-1.4.5.1.tar.gz
1. decompress Asterisk Files
sudo tar zvxf ~/asterisk/asterisk-1.4.13.tar.gz
1. decompress Asterisk AddOns
sudo tar zvxf ~/asterisk/asterisk-addons-1.4.4.tar.gz
1. decompress Asterisk Sounds
sudo mkdir asterisk-sounds
cd asterisk-sounds
sudo tar zvxf ~/asterisk/asterisk-core-sounds-en-ulaw-current.tar.gz
sudo tar zvxf ~/asterisk/asterisk-extra-sounds-en-ulaw-current.tar.gz
sudo tar zvxf ~/asterisk/asterisk-moh-freeplay-ulaw.tar.gz
1. compile LibPri library
cd /usr/src/asterisk/libpri-1.4.1
sudo make & sudo make install
1. compile the Zaptel Drivers for asterisk
cd /usr/src/asterisk/zaptel-1.4.5.1
sudo make clean
sudo make
sudo make install
sudo make config
1. Compiling Asterisk
cd /usr/src/asterisk/asterisk-1.4.13
sudo make clean
sudo ./configure
sudo make
sudo make install
sudo make samples
sudo make progdocs
1. Compiling Asterisk AddOns
cd /usr/src/asterisk/asterisk-addons-1.4.4
sudo make
sudo make install
1. Copy the Asterisk Sound to Asterisk sound default directory
sudo cp -rf /usr/src/asterisk/asterisk-sounds/* /var/lib/asterisk/sounds/
1. Restart Apache Web Server
sudo /etc/init.d/apache2 restart
1. Edit the asterisk file config
sudo emacs /etc/asterisk/asterisk.conf
1. change the next line
RUNASTERISK=/var/run
1. by
RUNASTERISK=/var/run/asterisk
1. change the user for /var/run/asterisk
sudo chown -R asterisk:asterisk /var/run/asterisk
1. Start Asterisk before to begin install FreePBX or FreePBX dont let you to install if dont have started asterisk previously
sudo asterisk start
1. check if asterisk has started
ps aux | grep asterisk
1. if Asterisk has started then maybe you can see somethink like this
root 14992 0.2 1.7 22044 7752 ? Ssl 07:14 0:00 asterisk start
1. To go FreePBX Directory Installation
cd /usr/src/freepbx-2.3.1/
1. Install the db library using pear
sudo pear install db
1. if you dont found the package, then you can install it manually : sudo pear install db.17.0.0.tgz
sudo mkdir /var/www/asterisk/
sudo mkdir /var/www/asterisk/cgi-bin
sudo chown asterisk:asterisk /var/www/asterisk
sudo ./install_amp
1. after to execute install_amp it will request the values to create the file configuration
1. first will request the mysql database user
asteriskuser asterisk
1. after enter the password for mysql user
Enter your PASSWORD to connect to the 'asterisk' database:
amp109 4st3r1sk
1. Enter the name of database server, if your database server is other server that not be your local hostlocalhost then enter the IP address or the domain name.
Enter the hostname of the 'asterisk' database:
localhost localhost
1. User name to access to Asterisk Manager Interface
Enter a USERNAME to connect to the Asterisk Manager interface:
admin asterisk
1. Password for AMI
Enter a PASSWORD to connect to the Asterisk Manager interface:
amp111 4st3.r1sk
1. Path for the web directory of FreePBX installation
Enter the path to use for your AMP web root:
/var/www/html /var/www/asterisk
1. IP Address of web server
Enter the IP ADDRESS or hostname used to access the AMP web-admin:
xx.xx.xx.xx 192.168.1.2
1. Password to operate Flash Operator Panel
Enter a PASSWORD to perform call transfers with the Flash Operator Panel:
passw0rd 4st3r1sk.01
1. Select default
Use simple Extensions extensions admin or separate Devices and Users deviceanduser?
extensions
1. Select default
Enter directory in which to store AMP executable scripts:
/var/lib/asterisk/bin
1. Select default
Enter directory in which to store super-user scripts:
/usr/local/sbin
1. if you had any error check the database password and user, php and mysql library, apache restart, check pear and php-db installation
2. en caso de que tuviera un error al ejecutar FreePBX puede reconfigurarlo pero previamente eliminar el archivo de configuracion en /etc/amportal.conf
1. create the following directory
sudo mkdir /var/lib/asterisk/sounds/custom
1. change the user for the following directory
sudo chown -R asterisk:asterisk /var/lib/asterisk/
1. stop asterisk
ps aux | grep asterisk
root 14992 0.0 1.7 22524 7892 ? Ssl 07:14 0:00 asterisk start
1. 14992 is the Asterisk PID , you will have to stop this pid using the kill command
sudo kill -s 9 14992
1. Edit the next file and add the following line if this dont exist in the file
sudo emacs /etc/default/asterisk
RUNASTERISK=yes
1. Run amportal
sudo amportal start
1. verify if asterisk is running
sudo ps aux | grep asterisk
1. if asterisk is running you should see something like this
root 15759 0.0 0.1 3864 736 pts/2 S 07:30 0:00 /bin/bash /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 15764 2.0 1.9 22436 8552 pts/2 Sl 07:30 0:00 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
asterisk 15811 0.0 0.1 1752 496 pts/2 S 07:30 0:00 sh /var/www/asterisk/panel/safe_opserver
asterisk 15812 14.0 1.8 11072 8340 pts/2 S 07:30 0:00 /usr/bin/perl -w /var/www/asterisk/panel/op_server.pl
1. Open FireFox and enter the ip address of your web server and put the complete path for FreePBX
http://192.168.1.2/asterisk/admin/
1. By default FreePBX not request your password, but after you should change the admin password and user
1. Disconnect of FreePBX
1. Later edit the amportal.conf file and change the AUTHTYPE value to database
sudo emacs /etc/amportal.conf
AUTHTYPE=database
1. try again connect to FreePBX newly you will be able of enter your user and password to connect to FreePBX Admin
login:admin
password:4st3r1sk
1. Now we have enabled the FreePBX to config Asterisk PBX
1. You too can go to the Admin Module and check for new updates and downlooad this modules for have a FreePBX more advanced.
1. If the Flash Operator Panel was not enabled, then copy the FOP files of panel directory in FreePBX Installation directory to directory configured in amportal for FOP.
cd /usr/src/freepbx-2.3.1
sudo cp -rf amp_conf/htdocs_panel/* /var/www/asterisk/panel
sudo chown asterisk.asterisk /var/www/asterisk/
Friday, June 5, 2009
how to install build-essential on ubuntu without internet
sudo apt-cdrom add
sudo apt-get update
sudo apt-get install build-essential
ຈົບ
How to Install nagios on Ubuntu
1. Download and install Ubuntu
2. Download, install, and configure Apache
3. Download, install, and configure Nagios
Download and install Ubuntu:
* Download Ubuntu (I used version 8.10 of Ubuntu Desktop)
* In VMWare Server, I booted to the ISO image
* Choose "Install Ubuntu"
* Choose English as the language
* Choose Time Zone
* Keyboard
* Select the Guided (use entire disk) option
* Fill in the user and computer information
* Click Install
* Click Restart
Once Ubuntu is installed, you can begin installing the prerequisites.
All commands will be issued with sudo command. If you prefer, you can just su as root and run everything that way.
Download, install and Configure Apache
* sudo apt-get install build-essential :this will install some necessary compilers
* sudo apt-get install libgd2-xpm-dev :Install GD Libraries
* sudo apt-get install apache2 : Install Apache2
* sudo apt-get install php5-common php5 libapache2-mod-php5 :Install PHP for Apache2
Configure Apache to use PHP:
* Run in a terminal: sudo vim /etc/apache2/apache2.con
* Paste the following into the file:
DirectoryIndex index.html index.php index.cgi
* and restart the server with the command
sudo /etc/init.d/apache2 restart
At this point, build-essentials, libgd2-xpm-dev and Apache with PHP support should be installed. You can test this by opening a browser and going to http://localhost/ to test Apache.
To test PHP, create a new text file and enter
Save the file as test.php in your root web directory (should be /var/www). Then go to http://localhost/test.php and this should display the PHP version information in the browser.
If you can view the Apache start page and the PHP version info page, it's time to download and install Nagios.
If you can't view the Apache start page: check that all of the packages are installed and the Apache service is running.
If you can't view the PHP version info page: verify that PHP was installed.
Download, install, and configure Nagios
Change to your home directory:
cd ~/
Download the current version of Nagios: http://sourceforge.net/project/showfiles.php?group_id=26589:
sudo wget http://downloads.sourceforge.net/nagios/nagios-3.1.0.tar.gz?use_mirror=voxel
Download the current version of the Nagios Plugins: http://sourceforge.net/project/showfiles.php?group_id=29880:
sudo wget http://downloads.sourceforge.net/nagiosplug/nagios-plugins-1.4.13.tar.gz?use_mirror=voxel
Extract the Nagios tarball:
sudo tar -zxvf nagios-3.1.0.tar.gz
and change to the nagios-3.1.0 directory
cd nagios-3.1.0
Create a user to run the service and a group to run external commands:
* sudo useradd -m nagios
* sudo passwd nagios
* sudo groupadd nagcmd
* sudo usermod -a -G nagcmd nagios
* sudo usermod -a -G nagcmd www-data
Now install the Nagios tarballs that were downloaded previously:
* sudo ./configure --with-command-group=nagcmd
* sudo make all
* sudo make install
* sudo make install-init
* sudo make install-config
* sudo make install-commandmode
* sudo make install-webconf
Add a user for the Nagios interface:
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Add the directives to Apache for Nagios:
In a terminal type:
sudo vim /etc/apache2/apache.conf
Paste the text below into the conf file:
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
Alias /nagios /usr/local/nagios/share
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
ServerName localhost
Restart Apache:
sudo /etc/init.d/apache2 restart
Extract and compile the plugins that were downloaded earlier:
* cd ~/
* tar -zxvf nagios-plugins-1.4.13.tar.gz
* cd nagios-plugins-1.4.13
* sudo ./configure --with-nagios-user=nagios --with-nagios-group=nagios
* sudo make
* sudo make install
Create a link to start the service:
sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
Verify the config:
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Start Nagios:
sudo /etc/init.d/nagios start
You should now be able to log into the Nagios web interface (http://localhost/nagios) using the nagiosadmin user and password.
This how-to is actually a combination of the Nagios official documentation (Ubuntu Quickstart), Albasit's Nagios/Ubuntu/VMWare how-to, and some of my own work in-between. I appreciate the help I got from all of these documents.
credit:: http://www.thedailyadmin.com/
Sunday, May 24, 2009
Wednesday, May 20, 2009
Monday, May 18, 2009
How to Install Webmin on Ubuntu
- sudo su
- apt-get update
- apt-get install libnet-ssleay-perl
- apt-get install smbfs
- cd /usr/local
- mkdir webmin
- cd webmin
- wget http://switch.dl.sourceforge.net/sourceforge/webadmin/webmin-1.210.tar.gz
- tar xzvf webmin-1.210.tar.gz
- cd webmin-1.210
- sh setup.sh
Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:
Full path to perl (default /usr/bin/perl):
Web server port (default 10000):
Login name (default admin): afokkema (wat je wilt)
Login password: P4ssword (wat je wilt)
Password again: P4ssword (wat je wilt)
Use SSL (y/n): y
Start Webmin at boot time (y/n): y
moreinfo ::::: http://webmin.com/
Sunday, May 10, 2009
ຫມູເຮັດນາຫມາກິນເຂົ້າ:
ເພິ່ນເຄີຍບອກໃຫ້ຮູ້ ວ່າຫມູສ່າວນາເຟືອງ
ເປືອງແຕ່ເງງດັງດຸດ ກ່ອນຫວ່ານດໍາຕາກ້າ
ພາຍທ້າຍຫມາກິນເຂົ້າ ຫມູເຮົາຕ້ອງກິນແກບ
ແຊບບໍ່ແຊບກໍຫຍໍ້າ ເພາະເສັຍແຕ້ມໃຫ້ບັກດໍາ...ແລ້ວເດ
ເພິ່ນວ່າຄວາຍເບື່ອຫຍ້າ ຢ່າໄປຂົ່ມໃຫ້ເຂົາຫັກ...ມັນເດີ
ມັກແຕ່ມີໂມໂຫ ອວດຄຸນຄູຍໂມ້
ເອົາແຕ່ໂວຍໆເວົ້າ ເຂົາບໍ່ຍອມກໍຍັງຂົ່ມ
ສຸດທ້າຍຫນີບໍ່ມົ້ມ ໃຫ້ຄົນເຍີ້ຍທັບຖົມ...ເຈົ້າແລ້ວ
ເພິ່ນວ່າກົບອື່ງເພົ້າ ເຂົາໄປຄຸບຫັກຂາ...ໃສ່ຂ້ອງ
ຍ້ອນວ່າໂຕສຽງດັງ ຖືກຫິ້ວຂາໄປຈ້ອຍ
ຂ້ອຍວ່າພັງເພີຍເວົ້າ ໃຫ້ຄົນ້ຮົາລະວັງປາກ
ຄັນວ່າຄວນຈິ່ງເວົ້າ ບໍ່ຄວນເວົ້າກໍໃຫ້ເຊົາ...ດີຫຼາຍ
ຄົນໃດເຕະຕູດກົ້ນ ແລ້ວມາລູບຫລັງດີ...ພາຍຫຼັງ
ຄົນນີ້ມີສັນດານ ທ່ານຣະວັງເອົາໄວ້
ຂ້ອຍວ່າຄົນນິສັຍນີ້ ມີມາຍາບໍ່ເຂົ້າທ່າ
ໃຜຫາກພານພົບຫນ້າ ແນມໄວ້ຢ່າຫ່າງຕາ...ຣະວັງ.
Friday, May 8, 2009
Install SNMP on UBUNTU Linux
1. SNMPD
SNMPD is the service running SNMP on a managed entity. SNMP comes in 3 versions. Version 1, the one we are going to use here is not secured, therefore we are going to make sure that only localhost is going to be able to access it.
People opening the service to the outside should make sure that trusted hosts can access the service either though the use of iptables or through the use of /etc/hosts.allow.
1.1. Installing the SNMP server
The only package which is required on the server site is snmpd, the SNMP daemon.
To install it type:
$ sudo apt-get install snmpd
snmpd is now installed but we still have to tweak it a little bit to make it work as we want.
1.2. Configuring SNMPD
The first thing we want to make sure is that snmpd is only going to wait for connections on localhost. To do this, edit file /etc/default/snmpd and make sure those values are set:
SNMPDRUN=yes
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
If you want your server to listen on all interfaces, remove the 127.0.0.1 bit.
This setting will make sure that the service will be started and that the service is going to bind to localhost.
Finally, we are going to configure snmpd in such a way that it will only return datas to trusted host for a specific community.
Edit /etc/snmp/snmpd.conf and make sure that com2sec it only set to:
com2sec readonly localhost mycommunity
If you want a remote machine to be able to gather information for the community mycommunity, make sure you replace localhost by mynetwork, where mynetwork can be of the form: 1.1.1.1 or 1.1.0.0/16.
1.3. Checking SNMP configuration:
We are going to use the snmpwalk utility to verify that the server is working as wanted.
Here we want snmp to reply only to localhost for the community mycommunity.
From localhost
$ snmpwalk -Os -c mycommunity -v 1 localhost system
Should return a lot of output and:
snmpwalk -Os -c public -v 1 localhost system
Timeout: No Response from localhost
credit: easyguardian.com
Tuesday, May 5, 2009
ssh ຜ່ານມືຖື symbian
ວິທີຕິດຕັ້ງ ປ່ຽນປີຂອງລະບົບເປັນປີ 2007
download
Thursday, April 23, 2009
ເຮັດຊິມບ້ຽນໃຫ້ອ່ານລາວ
ການເຮັດໃຫ້ໂທລະສັບເຮົາອ່ານລາວໄດ້ ໄທພ້ອມ... ຂ້າພະເຈົ້າໃຊ້ຟ້ອນຂອງ ທ່ານ ນິນ ມັນກໍ່ເລີຍບໍ່ງາມປານໃດ
ເອົາລະມາເລີ່ມກັນເລີຍ
Let´s start…
ວິທີນີ້ໃຊ້ໄດ້ກັບທຸກໆໂທລະສັບທີ່ໃຊ້ລະບົບປະຕິບັດການຊິມບ້ຽນ S60 3rd ທ່ານບໍ່ຈຳເປັນຕ້ອງແຟສເຄື່ອງໃຫມ່ ບໍ່ຕ້ອງ hack ເຟີມແວອີ່ສັງ ພຽງແຕ່ເອົາຟ້ອນໃສ່ຊື່ໆນິແຫລະ
1. ແນ່ນອນທ່ານຕ້ອງມີ Nokia S60 3rd device, ເຈ້ຍໃບຫນຶ່ງຄັນຈື່ເກັ່ງກໍ່ບໍ່ຕ້ອງເອົາ, cardreader ຫລື USB-cable ຕໍ່ກັບ computer.
2. ໄປ download explorer ທີ່ມີຄຸນສົມບັດຄົ້ນຫາຟາຍ ຫລືໄດລເລັກທໍລີ່ໃນໂທສັບທ່ານໄດ້ເຊັ່ນ Y-Browser ແລ້ວຈັດການຕິດຕັ້ງລົງໄປ
3. ແລ້ວກໍ່ເປີດ explorer ແລ້ວໄປ Z:/resource/Fonts
4. ແລ້ວທ່ານຈະເຫັນລາຍຊື່ຟ້ອນ ຮອດນີ້ທ່ານຕ້ອງຈົດໄວ້ ຖ້າຈື່ດີກໍ່ແລ້ວໄປ. ຈົດຫມົດທຸກຟ້ອນໄວ້ເດີ້ (nohindisnr60, S60ZDIGI, …)
5. ບາດນີ້ທ່ານກໍ່ຫາຟ້ອນທີ່ທ່ານຕ້ອງການຈະປ່ຽນ ໃນບົດຄວາມນີ້ແມ່ນເຮົາຢາກໃຫ້ມັນອ່ານລາວໄດ້ເຮົາກໍ່ຫາຟ້ອນລາວມາລົງ. ແລະແນ່ນອນຟ້ອນຕ້ອງເປັນ .ttf ແລະທ່ານນິນກໍ່ໄດ້ເຮັດໄວ້ແລ້ວທີ່ສາມາດອ່ານລາວແລະໄທໄດ້ ໂຫລດໄດ້ຈາກຟາຍທີ່ແນບມາ(ກໍລະນີເອົາຟ້ອນລາວມາໃສ່ມັນຊິອ່ານໄທບໍ່ໄດ້)
6. ໃນຄອມພິວເຕີ້ໃຫ້ທ່ານສ້າງຊື່ “Fonts”, ແລະກ໊ອບປີ້ຟ້ອນໄປໃສ່ໄວ້. ແລ້ວປ່ຽນຊື່ຟ້ອນຕາມທີ່ທ່ານໄດ້ຈົດໄວ້ນັ້ນແຫລະມີຈັກຟ້ອນກໍ່ກ໊ອບປີ້ແລ້ວແປງຊື່ໄປຕາມນັ້ນ (nohindisnr60, …)
7. ເອົາ memorycard ອອກມາ ຫລື ຕໍ່ໂທສັບເຂົ້າຄອມ computer ແລະເລືອກໂຫມດ data transfer.
8. ເຂົ້າ memory card (E:\) ແລ້ວສ້າງໂຟ້ນເດີ້ຊື່ resource ຖ້າມັນຢັງບໍ່ມີເທື່ອ
9. ແລ້ວກ໋ອບປີ້ໂຟ້ນເດີ້ “Fonts” ທີ່ທ່ານສ້າງໄວ້ໃນຄອມກ່ອນຫນ້ານີ້ ໃສ່ໃນ resource folder ເທິງ memory card ຂອງທ່ານ.
10. ປິດໂທສັບເອົາເມັມໃສ່ແລ້ວລອງເປີດເບີ່ງ ທ່ານຈະເຫັນສິ່ງທີ່ແຕກຕ່າງ
11. ກໍ່ລະນີບາງເຟີມແວທີ່ ມີຟ້ອນນາມສະກຸນ .ccc ມາກໍ່ໃຫ້ເຮັດຄືກັນ(ມີໃຫ້ໃນໄຟສທີ່ແນບໄວ້ໃຫ້)
Download font
!!!VERY IMPORTANT: ຢ່າປ່ຽນຟ້ອນໃນ phonememory (C:\) ເດັດຂາດ
Wednesday, March 4, 2009
how to install kannel on ubuntu
By thipphachan maniphousai
1. Requirements
- Debian lenny or ubuntu 8.10(server edition)
- Machine Architecture i386
- The Gnome XML library (known as gnome-xml and libxml)
Check that you have XML library, type “dpkg –l libxml2”
- Package “Libmysqlclient15off”
You can find package from http://packages.debian.org
2. How to install from source list
- access to internet and edit your source list
/etc/apt/source.lst
Add line
deb http://ftp.de.debian.org/debian lenny main
or other mirrors choose from http://packages.debian.org/lenny/i386/kannel/download
- on your tty (teminal) type
“apt-get update”
you need to be root.
- When you updated type
“apt-get install kannel”
- When finish check for it’s work
“ps aux | grep kannel”
wapbox, smsbox, bearerbox should be running. if not processing check on /usr/sbin and run it.
- You can config your kannel in /etc/kannel/kannel.conf
For more information http://www.kannel.org/ and user guide http://www.kannel.org/userguide.shtml
ps. it's just install kannel.
Tuesday, February 10, 2009
Improve Google Earth’s Appearance
Google Earth has an official version for Linux and it runs natively unlike Picasa, which uses WINE. But you wouldn’t know looking at Google Earth’s interface in Linux; it looks like an ugly WINE application.
I’ve got a how-to if you haven’t yet installed Google Earth.
Google Earth uses the Qt toolkit, which is what the KDE environment is based on. But even in KDE, Google Earth will not take the system theme because its version of Qt is built-in instead of using system-wide library.
In Google Earth version 4.3, you can improve the appearance. Run Google Earth from the terminal, using this command for a GNOME look:googleearth -style cleanlooks
And this for a KDE look:googleearth -style plastique
You can update your menu item to launch Google Earth with your preferred appearance. Open System->Preferences->Main Menu. Find Google Earth, right click on it and select Properties. Change the command for the item to one of the two above.
This wouldn’t be necessary if Google provided a version which used the Qt library provided by your distribution.
credit: http://tombuntu.com
install google earth on ubuntu
Google Earth is a 3d globe that puts the world’s geographic information at your fingertips. It’s is available on Linux, Mac, and Windows.
Start the installation by downloading the Linux installer.
Open a terminal and change to the directory where the installer downloaded to. If it’s on your desktop you can use this command:cd ~/Desktop
Change the permissions on the installer so you can run it:chmod +x GoogleEarthLinux.bin
Run the installer as the root user:sudo ./GoogleEarthLinux.bin
The installer dialog will open. The default install paths work fine. Click Begin Install.
Once the installation is finished you can click Start to launch Google Earth.
Want to add Google Earth to the Application menu? Open the menu editor in System->Preferences->Main Menu.
Select the submenu you want to use and click New Item. The command value needs to be googleearth.
You can now launch Google Earth from the Application menu.
credit: http://tombuntu.com
ຕໍ່ ubuntu ກັບ Moto E6
ແລ້ວກໍ່ຈະມີ connection ມາໃຫ້ເລືອກເຊິ່ງປະເທດລາວຈະມີພຽງ etl (ພໍດີໃຊ້ຢູ່)
ແລະຕັ້ງແຕ່ມັນອອກມາຂ້າພະເຈົ້າກໍ່ໄດ້ລອງແຕ່ມັນຕໍ່ບໍ່ຕິດບໍ່ເຂົ້າໃຈຄືກັນ ແຕ່ເອົາ nokia ມາຕໍ່ມັນເສືອກຕິດ
ເອົາແຫລະ ເຮົາກໍ່ເຫັນ ໃນບອດ ອູບຸນຕູຄຣັບ ມີຄົນໃຊ້ e6 ຄືກັນຂະເຈົ້າບອກວ່າ
ໃນ /etc/ppp/options
ເພີ່ມນີ້ລົງໄປ
0.0.0.0:10.1.1.1
ຂ້າພະເຈົ້າກໍ່ເຮັດຕາມ ອ່ະໄດ້ :)
ຂອບໃຈ community
Wednesday, February 4, 2009
ເນື້ອເພງ Free Software
ຫາເພງບໍ່ເຈິ ແລ້ວກໍ່ບໍ່ຣູ້ວ່າທຳນອງມັນເປັນແບບໃດ ເອົາໄວ້ມີເວລາແລ້ວຄ່ອຍຫາ
Join us now and share the software;
You'll be free, hackers, you'll be free.
Hoarders may get piles of money,
That is true, hackers, that is true.
But they cannot help their neighbors;
That's not good, hackers, that's not good.
When we have enough free software
At our call, hackers, at our call,
We'll throw out those dirty licenses
Ever more, hackers, ever more.
Join us now and share the software;
You'll be free, hackers, you'll be free.
ເອົາມາຈາກ ອ້າຍ ອະນຸສິດ
ການ format device ໃນ linux
mkfs.ntfs /dev/device -f
ເພື່ອໃຫ້ເປັນ ntfs
mkfs.fat32 /dev/device -f
ເພື່ອເປັນfat32
option ອື່ນໆ
-f, --fast Quick format
-L, --label STRING ກຳນົດຊື່
ສ່ວນເພີ່ມເຕີມເພື່ອຢາກໄດ້ fs ເປັນຊະນິດອື່ນ man mkfs ເບີ່ງເອງໃນ terminal
Wednesday, January 28, 2009
create autorun on ubuntu
#!/bin/bash
sensible-browser index.html
ແລ້ວກໍ່ເອົາໄປເບີ້ນປົກກະຕິ (sensible-browser ຄື browser ທີ່ຜູ້ໃຊ້ເລືອກໄວ້) ເມື່ອໃສ່ແຜ່ນລົງໄປມັນຈະຖາມວ່າ this cd contains autorun software ... ກໍ່ກົດ enable
ເອົາມາຈາກ ubuntuclub.com ຂອບໃຈ willwill
Tuesday, January 27, 2009
how to install Gwibber in fedora
ແຕ່ວ່າກໍ່ ຄືເກົ່າຫາກຕ້ອງເລື່ອນໄປມາຢູ່ແທບໄຟຟ໊ອກ ຄິດໄປມາມັນກໍ່ມີ gwibber ຕົວະວະ ອຶອຶ
ໄດ້ເວລາຕົ້ມຍຳ ທຳແກງ ແລ້ວ
su -c 'yum install gwibber'
ເມື່ອນແລ້ວກໍ່ລອງເປີດເບີ່ງ
gwibber
oh shit!
Traceback (most recent call last): File "/usr/bin/gwibber", line 22, in
ຄືສິ່ງທີ່ມັນບອກມາ
ກໍ່ເອົາມາ past ໃສ່ ລຸງກູ້ ນີ້ແຫລະ
ກໍ່ໄດ້ຄຳຕອບມາຄື http://freedesktop.org/wiki/Software/pyxdg
ກໍ່ຄືມັນ ບໍ່ມີ python library ທີ່ຊື່ວ່າ PyXDG ເພື່ອ access ສູ່ freedesktop.org
ເອົາກໍ່ su -c 'yum install pyxdg'
ແລ້ວລອງເປີດໃຫມ່
Monday, January 26, 2009
ຈຣິດ
ຈຣິດແປວ່າຈິດທ່ອງທ່ຽວ ສະຖານທີ່ທີ່ຈິດທ່ອງທ່ຽວ ຫລືອາລົມທີ່ມັກໄປຂອງຈິດນັ້ນໆ ພະພຸດທະເຈົ້າໄດ້ຕຣັດໄວ້ ຫົກປະການຄື
໑. ຣາຄະຈຣິດ ທ່ອງທ່ຽວໄປໃນອາລົມຮັກສວຍຮັກງາມ ຄື ພໍໃຈໃນຮູບງາມ ສຽງມ່ວນ ກິ່ນຫອມ ລົດແຊບ ສຳພັດອົບອຸ່ນ ມັກການມີລະບຽບ ສະອາດປານີດ ເວົ້ານົວຫົວມ່ວນ ຊັງຄວາມເປື້ອນເປິ
໒. ໂທສະຈຣິດ ມີອາລົມມັກໂກດ ໂມໂຫໂທໂສ ເປັນຄົນເຖົ້າໄວ ເວົ້າສຽງດັງ ຢ່າງແຮງ ເຮັດວຽກວຸ່ນ ແຕ່ງໂຕບໍ່ພິທີພິທັນ ເປັນຄົນໃຈຮ້ອນ
໓. ໂມຫະຈຣິດ ມີຈິດລຸ່ມລົງຝັກໃຝ່ ໃນສັບສົມບັດ ໂລບມາກໂລພາ ເຫັນແກ່ໂຕ ຢາກໄດ້ຂອງຄົນອື່ນມາເປັນຂອງໂຕ ແຕ່ບໍ່ເຄີຍຄິດໃຫ້ຄົນອື່ນ
໔. ວິຕົກຈຣິດ ມັກຄິດຫາເລື່ອງທີ່ມັນຢັງບໍ່ເກີດຂື້ນ ຕັດສິນໃຈບໍ່ເດັດຂາດ ບໍ່ກ້າຕັດສິນໃຈ ຄົນປະເພດນີ້ມັກເປັນໂລກປະສາດ ມີຫນ້າຕາມົນຫມອງບໍ່ສົດຊື່ນແຈ່ມໃສ
໕. ສັດທາຈຣິດ ມີຈິດໂນ້ມໄປໃນຄວາມເຊື່ອເປັນອາລົມປະຈຳ ເຊື່ອໂດຍບໍ່ມີເຫດຜົນ ພວກນີ້ຖືກຫລອກໄດ້ງ່າຍ ໃຜບອກເຮັດຫຍັງກໍ່ເຮັດໂດຍບໍ່ພິຈາລະນາ
໖. ພຸດທະຈຣິດ ເປັນຄົນເຈົ້າປັນຍາ ເຈົ້າຄວາມຄິດ ມີຄວາມສະຫລາດ ມີໄຫວພິບ ການຄິດອ່ານຄວາມຊົງຈຳດີ
ອາລົມທັງ ໖ ປະການນີ້ ບາງຄົນມີທັງ ໖ ຢ່າງ ບາງຄົນກໍ່ມີບໍ່ຄົບ ມີຫລາຍນ້ອຍຕາມອຳນາດວາດສະຫນາ ມາຈາງບາງອາດີດ.
ອ້າງອີງຈາກ larnbuddhism.com
Saturday, January 24, 2009
"The Blowers Daughter"
And so it is
Just like you said it would be
Life goes easy on me
Most of the time
And so it is
The shorter story
No love, no glory
No hero in her sky
I can't take my eyes off of you
I can't take my eyes off you
I can't take my eyes off of you
I can't take my eyes off you
I can't take my eyes off you
I can't take my eyes...
And so it is
Just like you said it should be
We'll both forget the breeze
Most of the time
And so it is
The colder water
The blower's daughter
The pupil in denial
I can't take my eyes off of you
I can't take my eyes off you
I can't take my eyes off of you
I can't take my eyes off you
I can't take my eyes off you
I can't take my eyes...
Did I say that I loathe you?
Did I say that I want to
Leave it all behind?
I can't take my mind off of you
I can't take my mind off you
I can't take my mind off of you
I can't take my mind off you
I can't take my mind off you
I can't take my mind...
My mind...my mind...
'Til I find somebody new
Friday, January 23, 2009
ເພງຕອນຮັບປະລິນຍາ
ແຕ່ເປັນຂອງ awake
ຄຳສັນຍາ
ລໍຄອຍ
ວັນຕໍ່ໄປຈະຢັງຮັກກັນບໍ່
ລອງຟັງແລ້ວໃຫ້ຄຳເຫັນແນ່ກໍ່ດີຫລືໃຜມີເພງດີໆຄວາມຫມາຍຊື້ງໆແລ້ວເອົາມາໃຫ້ແດ່
ປລ.ຢາກລໍ້ໃຫ້ພວກສາວໆ ເຂົາໃຫ້ ວະຮ່ະຮ່າ
Wednesday, January 21, 2009
you’re a man !!!
Tuesday, January 20, 2009
ເມື່ອ fedora ເປີດ googleearth ບໍ່ຂື້ນ
ແຕ່ທີ່ຄຽງຄູ່ກັນແບບຂາດບໍ່ໄດ້ຄືຊິແມ່ນ google ກໍ່ໂຫລດ .bin ນັ້ນແຫລະມາລົງ
ແຕ່ພໍລົງແລ້ວເອີ່ຍໆ ເປີດບໍ່ຂື້ນເອົາແນວໃດ໋ດີຫາໄປມາໄດ້ຄຳຕອບ
#chcon -t texrel_shlib_t /opt/google-earth/*.so
ເພື່ອຄວາມຫນ້າຮັກແລະສົດໃສ
#yum install libxml2.i386 mesa-libGL.i386 gtk2.i386 libSM.i386
#semanage fcontext -a -t textrel_shlib_t /opt/google-earth
#restorecon -R /opt/google-earth
Friday, January 16, 2009
Wednesday, January 14, 2009
Which GTA 4 Character Are You?
ເຮົາກໍ່ເລີຍເລືອກເກມ GTA ເຊິ່ງເປັນເກມທີ່ເຮົາມັກອີກເກມຫນື່ງແຕ່ພາກໃຫມ່ນີ້ບໍ່ໄດ້ຫລີ້ນເລີຍ
ເປັກຄອມບໍ່ຮອດ
ເອົາແຫລະມາຫລີ້ນກັນເລີຍ quiz.wegame.com
ແລ້ວເລືອກເອົາ ຕອບຄຳຖາມມັນຈັກຫນ້ອຍຫນື່ງເຊິ່ງເຮົາຖືກຫມໍ Little Jacob
You're a good friend. You're always available to help out, you love to have a good time, and you understand when to be serious.
ວ່າຊັ້ນ
I am Little Jacob - Play Free Online Games
Friday, January 9, 2009
Avoid to drop to busybox in Ubuntu 8.10
Method 1 :
To solve this problem, just add “rootdelay=90” at the end of “kernel” tag of /boot/grub/menu.lst
Reboot and the problem gone!
Method 2 :
Wait 1-2 seconds at the busybox screen. Type “exit” and the boot process continue. The Ubuntu 8.10 then booted up.
from: Samiux’s Blog
Wednesday, January 7, 2009
ຕາຕະລາງເສັງ
ວັນທີ່12 ວັນຈັນ ເວລາ 10-12 A+(p1)
ວັນທີ່13 ວັນຄານ ເວລາ 8-10 AI(M04)
ວັນທີ່15 ວັນພະຫັດ ເວລາ 8-10 MIS(M03)
ວັນທີ່16 ວັນສຸກ ເວລາ 8-10 SE(M02)
ວັນທີ່19 ວັນຈັນ ເວລາ 10-12 Siminar(P1)
thanks: to ທີ່ເອົາມາໃຫ້
Sunday, January 4, 2009
Thursday, January 1, 2009
Tarot
You are The Magician
Skill, wisdom, adaptation. Craft, cunning, depending on dignity.
Eleoquent and charismatic both verbally and in writing,
you are clever, witty, inventive and persuasive.
The Magician is the male power of creation, creation by willpower and desire. In that ancient sense, it is the ability to make things so just by speaking them aloud. Reflecting this is the fact that the Magician is represented by Mercury. He represents the gift of tongues, a smooth talker, a salesman. Also clever with the slight of hand and a medicine man - either a real doctor or someone trying to sell you snake oil.
What Tarot Card are You?
Take the Test to Find Out.