1.Run the following command in the terminal
lsusb
This should display some details like
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 045e:0083 Microsoft Corp. Basic Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 007: ID 19d2:fffe ONDA Communication S.p.A.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
2. From the above line in bold we know, the vendor and product values to be used in the following command in terminal.
modprobe usbserial vendor=0×19d2 product=0xfffe
3. Now execute the following command in the terminal
wvdialconf
4.Now edit the file /etc/wvdial.conf using your favourite editor and enter the correct username and password and uncomment the related lines. Also add Stupid Mode = 1 to the file. The phone value is #777
5. Execute the following commands to grant access rights
sudo chown root:dip /usr/sbin/pppd
sudo chmod 4754 /usr/sbin/pppd
sudo chmod 777 /etc/ppp/pap-secrets
sudo chmod 777 /etc/ppp/peers
6. Now restart the machine once disabling other network connections (including wireless).
7. After restart execute the following command in the terminal
wvdial
8. Now your connection should be established and get a output similar to below lines.
sa@ubuntu:~$ wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Mar 12 17:43:58 2010
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 2726
--> Using interface ppp0
--> pppd: X�U[08]h�U[08]
--> pppd: X�U[08]h�U[08]
--> pppd: X�U[08]h�U[08]
--> pppd: X�U[08]h�U[08]
--> pppd: X�U[08]h�U[08]
Reference:
This post contains the steps involved to setup wordpress on your local machine in Ubuntu. ( You may want to setup a wordpress blog on local machine to customize your blog (look and feel etc) so as to save the time to FTP to a remote location.)
- Install Apache server using the command sudo apt-get install apache2
- Install PHP with sudo apt-get install php5
- Install the MySQL Database sudo apt-get install mysql-server
- Install the PHP module for the Database sudo apt-get install php5-mysql
- Download the latest stable version of wordpress from http://wordpress.org/download/
- Extract the wordpress tar.gz or zip file to /var/www (using the command tar -C /var/www -zxvf wordpress-2.9.tar.gz)
- Create a MySQL database and if needed a new user who has required privileges.
- Navigate to /var/www/wordpress and execute the following command cp wp-config-sample.php wp-config.php (You may do this logging in as root user with the command sudo su )
- Edit wp-config.php using the command nano wp-config.php (or use any other editor like gedit) and configure the values for Database connection.
- Edit /etc/apache2/httpd.conf file to add the following lines.
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
- Restart apache server using the command sudo /etc/init.d/apache2 restart
- You can access the blog using http://localhost/wordpress
With JBoss 6.0.0.M1 out to try out the new JSRs the following may be helpful in reducing time to deploy.
The usual way in which we deploy an application (war , jar or ear ) is to drop the application archive ( or in expanded mode with the folder name ending with .war or .ear) under deploy folder of the server.
But how to deploy an application archive or a folder when it is not residing under deploy folder but resides in some other external folder?
Let’s say the application ROOT folder is E:\javaapps\myapptodeploy\webapplication.war, then in jboss-service.xml (under conf folder of the JBoss server profile (like default, all)), we mention the following. This is very helpful when we build the project using Maven as we can mention the target directory directly without copying the files after each build.
<attribute name="URLs">
deploy/,file:///E:/javaapps/myapptodeploy
</attribute>