Friday, December 26, 2014
Tuesday, December 9, 2014
Install ubuntu 14.04 LTS in HDD+SDD Drive or Replace windows 8 with Ubntu when there is HDD+SSD
I have HDD = 500GB; SSD = 32 GB
Partition
HDD - Swap = 10GB
- /home = 30GB
- /var = 5GB
- /var/cache/apt/archieve = 2GB
-
SSD -
- / =32GB
Device for boot loader installation = SSD Drive
Partition
HDD - Swap = 10GB
- /home = 30GB
- /var = 5GB
- /var/cache/apt/archieve = 2GB
-
SSD -
- / =32GB
Device for boot loader installation = SSD Drive
Wednesday, April 28, 2010
ERROR No 2311 (Conflict when selecting restart type (Interanl error, programming error, or missing error message))
Unable to alloac node id (Problem with mysql Cluster)
Tuesday, April 13, 2010
Create user without password in ubutnu
Hi all,
We can create user without password in ubutnu. Here we created visitor as a user (without password). Follow below steps:-
1. sudo useradd visitor
2. passwd -d visitor
3. sed -i 's/#PasswordRequired=false/PasswordRequired=false/' /etc/gdm/gdm.conf
4. sed -i 's/nullok_secure/nullok/' /etc/pam.d/common-auth
After it is done.
We can create user without password in ubutnu. Here we created visitor as a user (without password). Follow below steps:-
1. sudo useradd visitor
2. passwd -d visitor
3. sed -i 's/#PasswordRequired=false/PasswordRequired=false/' /etc/gdm/gdm.conf
4. sed -i 's/nullok_secure/nullok/' /etc/pam.d/common-auth
After it is done.
Sunday, April 11, 2010
Create symbolic link using terminal (create shortcuts)
You can create symbolic link using following command
ln -s SOURCE_DIRECTORY DESTINATION_DIRECTORY
EX:
ln -s /home/praveenb/Farewell_party_2010.tar.gz /var/www/praveenb/Farewell_party_2010.tar.gz
ln -s SOURCE_DIRECTORY DESTINATION_DIRECTORY
EX:
ln -s /home/praveenb/Farewell_party_2010.tar.gz /var/www/praveenb/Farewell_party_2010.tar.gz
Tuesday, April 6, 2010
Forget password after install ubuntu
To solve this,
1. Boot with recovery mode.
2. Select "Drop to root shell prompt" option.
command prompt will appear.
3. ls /home [it will give the list of users]
4. passwd username
5. passwd linda
6. exit
7. After you get back to the recovery menu, select resume normal boot, and use Ubuntu as you normally would—only this time, you actually know the password!
1. Boot with recovery mode.
2. Select "Drop to root shell prompt" option.
command prompt will appear.
3. ls /home [it will give the list of users]
4. passwd username
5. passwd linda
6. exit
7. After you get back to the recovery menu, select resume normal boot, and use Ubuntu as you normally would—only this time, you actually know the password!
Tuesday, March 9, 2010
Load-Balacing with Apache webserver
Hi friends,
I have created load-balancing in ubuntu (9.04) for apache server using Crossroad (XR).
You can download Crossroad from http://crossroads.e-tunity.com/downloads.xr. I have configured CrossRoad on 10.6.26.48. You need C compiler (GCC) or C++ Compiler (G++) to compile crossroad, and follow below steps:
1. sudo apt-get install build-essential
2. cd /usr/local/src/
3. sudo tar xvzf ~/Desktop/crossroads-stable.tar.gz
4. cd crossroads-1.59
5. sudo make install
Check that the application was installed where it was supposed to be.
6. cd /usr/local/bin
Create a file called crossroads.conf by using the command below.
7. sudo touch /etc/crossroads.conf
8. sudo vi /etc/crossroads.conf
and copy and paste below code:
service www {
port 80;
revivinginterval 15;
type http;
dispatchmode random;
backend one {
server 10.6.26.12:80;
}
backend two {
server 10.6.26.5:80;
}
}
Here I have creted two backend web-servers (10.6.26.12, 10.6.26.5).We have to install apache webserver on both machine, no need to install apache server on 10.6.26.48. You have to change the ip address according to your use.
Once you have written your configuration file, you can start the server
crossroads start
Surf to the IP address (on eth0 in my case) which the user will be using. Your real servers should now receive connections through the load balancing server and respond to the user through it as well.
Test:
give the ip address of 10.6.26.48 on any browser on the network, and you can see the forwarded request.
I have created load-balancing in ubuntu (9.04) for apache server using Crossroad (XR).
You can download Crossroad from http://crossroads.e-tunity.com/downloads.xr. I have configured CrossRoad on 10.6.26.48. You need C compiler (GCC) or C++ Compiler (G++) to compile crossroad, and follow below steps:
1. sudo apt-get install build-essential
2. cd /usr/local/src/
3. sudo tar xvzf ~/Desktop/crossroads-stable.tar.gz
4. cd crossroads-1.59
5. sudo make install
Check that the application was installed where it was supposed to be.
6. cd /usr/local/bin
Create a file called crossroads.conf by using the command below.
7. sudo touch /etc/crossroads.conf
8. sudo vi /etc/crossroads.conf
and copy and paste below code:
service www {
port 80;
revivinginterval 15;
type http;
dispatchmode random;
backend one {
server 10.6.26.12:80;
}
backend two {
server 10.6.26.5:80;
}
}
Here I have creted two backend web-servers (10.6.26.12, 10.6.26.5).We have to install apache webserver on both machine, no need to install apache server on 10.6.26.48. You have to change the ip address according to your use.
Once you have written your configuration file, you can start the server
crossroads start
Surf to the IP address (on eth0 in my case) which the user will be using. Your real servers should now receive connections through the load balancing server and respond to the user through it as well.
Test:
give the ip address of 10.6.26.48 on any browser on the network, and you can see the forwarded request.
Thursday, March 4, 2010
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
If you get this Error in Apache2 server, then try this
vim /etc/apache2/apache2.conf
and
append " ServerName localhost:80 "
and restart apache2 server.
OR you can resolve above problem using below tip:
vim /etc/apache2/conf.d/fqdn with following
and append below line:
" ServerName localhost "
vim /etc/apache2/apache2.conf
and
append " ServerName localhost:80 "
and restart apache2 server.
OR you can resolve above problem using below tip:
vim /etc/apache2/conf.d/fqdn with following
and append below line:
" ServerName localhost "
Thursday, February 25, 2010
Change the Name of interface in Ubuntu
sudo vim /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0×14e4:0×1600 (tg3)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″
# PCI device 0×8086:0×4222 (iwl3945)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”wlan*”, NAME=”wlan0″
Change above to:
# PCI device 0×14e4:0×1600 (tg3)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
# PCI device 0×8086:0×4222 (iwl3945)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”wlan*”, NAME=”eth1″
So, all you have to do is to edit /etc/udev/rules.d/70-persistent-net.rules file and change the NAME option to your choice of your ethernet/wifi device name.
# PCI device 0×14e4:0×1600 (tg3)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″
# PCI device 0×8086:0×4222 (iwl3945)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”wlan*”, NAME=”wlan0″
Change above to:
# PCI device 0×14e4:0×1600 (tg3)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
# PCI device 0×8086:0×4222 (iwl3945)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:xx:xx:xx:xx:xx”, ATTR{type}==”1″, KERNEL==”wlan*”, NAME=”eth1″
So, all you have to do is to edit /etc/udev/rules.d/70-persistent-net.rules file and change the NAME option to your choice of your ethernet/wifi device name.
Tuesday, February 23, 2010
create clone in Virtual Box
If you want to create clone in virtual box follow below steps:
1. Dont copy/paste of existing .vdi file.
2. run Command in terminal
VBoxManage clonevdi old.vdi new.vdi
1. Dont copy/paste of existing .vdi file.
2. run Command in terminal
VBoxManage clonevdi old.vdi new.vdi
Sunday, February 14, 2010
/var/lib/dpkg/status': No space left on device "
If you get error in Ubuntu like "/var/lib/dpkg/status': No space left on device" you can use.
Please open a Terminal from the menu Applications->Accessories->Terminal and type:
sudo apt-get clean all
sudo apt-get update
sudo apt-get -f install
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get clean all
give your user password when requested, you don't see nothing when you type it, then press enter.
Then try to remove unused old kernel if you need help please ask here.
Please open a Terminal from the menu Applications->Accessories->Terminal and type:
sudo apt-get clean all
sudo apt-get update
sudo apt-get -f install
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get clean all
give your user password when requested, you don't see nothing when you type it, then press enter.
Then try to remove unused old kernel if you need help please ask here.
Saturday, January 16, 2010
Spilit a pdf into many parts
Hi friend,
you can spilit your pdf into as many as part you want, but you have to install "pdftk" package for ubuntu (LINUX), and try below command..
pdftk A=known.pdf cat A1-120 output combined.pdf
where A=known.pdf, is your pdf which you want to spilit into parts, and cat A1-120 is page number, from page 1 to 120 you want to spilit the existing pdf.
for more information you can use below link also:
http://www.accesspdf.com/pdftk/
you can spilit your pdf into as many as part you want, but you have to install "pdftk" package for ubuntu (LINUX), and try below command..
pdftk A=known.pdf cat A1-120 output combined.pdf
where A=known.pdf, is your pdf which you want to spilit into parts, and cat A1-120 is page number, from page 1 to 120 you want to spilit the existing pdf.
for more information you can use below link also:
http://www.accesspdf.com/pdftk/
Saturday, January 2, 2010
Install PHP in ubutnu
To run php program, you have to install following packages:
1. sudo apt-get install php5 libapache2-mod-php5
2. sudo apt-get install php5-cli
3. sudo /etc/init.d/apache2 restart
1. sudo apt-get install php5 libapache2-mod-php5
2. sudo apt-get install php5-cli
3. sudo /etc/init.d/apache2 restart
Monday, November 9, 2009
create Clone in virtual box
run this command:
clonevdi mysourcedisk.vdi mydestinationdisk.vdi
and you can follow
http://ubuntuliving.blogspot.com/2008/11/cloning-virtualbox-virtual-disk-images.html
clonevdi mysourcedisk.vdi mydestinationdisk.vdi
and you can follow
http://ubuntuliving.blogspot.com/2008/11/cloning-virtualbox-virtual-disk-images.html
Sunday, November 1, 2009
Add terminal on right click
$sudo apt-get install yum
$sudo apt-get install nautilus-open-terminal
and reboot ur system
$sudo apt-get install nautilus-open-terminal
and reboot ur system
Saturday, October 31, 2009
network upgrade ubuntu...
open your terminal and type..
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install update-manager-core
$ sudo do-release-upgrade
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install update-manager-core
$ sudo do-release-upgrade
Thursday, October 8, 2009
configuration for mysql cluster and load balancing
hi all,
I configured mysql-cluster and load balance in ubuntu(9.04). I prepared a doccument for this configuration if you want to do configuration for mysql u can follow the doccument.
Link of the doccument is below...
http://www.4shared.com/file/243612473/dfc0f176/cluster_own.html
I configured mysql-cluster and load balance in ubuntu(9.04). I prepared a doccument for this configuration if you want to do configuration for mysql u can follow the doccument.
Link of the doccument is below...
http://www.4shared.com/file/243612473/dfc0f176/cluster_own.html
Wednesday, September 16, 2009
find Seminor topics
Hi all,
If u r searching for Seminor topics than Just follow the below link
http://www.seminarsonly.com/
If u r searching for Seminor topics than Just follow the below link
http://www.seminarsonly.com/
Tuesday, September 15, 2009
Make ofbiz database distributed
Hi friends ....
I made ofbiz database distributed.:
I had two machine M1(10.6.26.8) and M2(10.6.26.5). in both machine Ubuntu 9.04 and mysql version "5.1.31-1ubuntu2-log". M1 machine connected with M1 mysql(own machine) and M2 machine connected with M2 mysql (own machine). so I used Data Replication to connect both database internally.
Configuration for M1 Machine:
1.open /etc/mysql/my.cnf, and add followng things: (Dont append all line in the end of file, put below bind address).
#bind address = 127.0.0.1
bind-address =10.6.26.8
log-bin = /var/lib/mysql/master-bin.log
log-bin-index = /var/lib/mysql/master-bin.index.log
binlog-do-db = ofbiz
#suppose you want to replicate only one table CREATE_PERSON from DATABASE OFBIZ THEN
#binlog-do-db = ofbiz.CREATE_PERSON
server-id = 1
innodb_flush_log_at_trx_commit=1
sync_binlog=1
binlog_format=row
2. restart mysql
3. mysql -u root -p
4. mysql > GRANT REPLICATION SLAVE ON *.* TO 'ofbizuser'@'%' IDENTIFIED BY 'mypass';
5. >FLUSH PRIVILEGES;
6. >use ofbiz
7. >FLUSH TABLES WITH READ LOCK;
8. >unlock tables
9. >Show master status
it will dispaly following table:
File : master-bin.000012
Position : 9137
Binlog_Do_DB : ofbiz
Binlog_Ignore_DB :
ofbiz is the wholw database which i replicated from Master to slave. It is possible to replicate selected table also.
Configure The M2 Machine:-
1. /etc/mysql/my.cnf, and add following line (dont put at the end of file)
bind-address = 10.6.26.5
# Replication Settings
read-only
server-id=2
master-connect-retry=60
replicate-do-db=ofbiz
2. restart mysql
3. mysql -u root -p
4. mysql>
5. stop slave;
6. mysql > CHANGE MASTER TO MASTER_HOST='10.6.26.8', MASTER_USER='ofbizuser', MASTER_PASSWORD='mypass', MASTER_LOG_FILE='master-bin.000012', MASTER_LOG_POS=9137;
7. start slave;
so both databases are internally connected.
Remember Tha,t here i have two ofbiz server, in M1 and M2 and two Mysql in M1 and M2. Both ofbiz server connected to its local mysql and thy both mysql are internally conected.
You can follow this link also:-
http://theindexer.wordpress.com/2009/02/20/master-slave-mysql-50-replication-on-ubuntu-intrepid-810/
If you have any prob in this article u can mail me praveen.bansod@gmail.com
I made ofbiz database distributed.:
I had two machine M1(10.6.26.8) and M2(10.6.26.5). in both machine Ubuntu 9.04 and mysql version "5.1.31-1ubuntu2-log". M1 machine connected with M1 mysql(own machine) and M2 machine connected with M2 mysql (own machine). so I used Data Replication to connect both database internally.
Configuration for M1 Machine:
1.open /etc/mysql/my.cnf, and add followng things: (Dont append all line in the end of file, put below bind address).
#bind address = 127.0.0.1
bind-address =10.6.26.8
log-bin = /var/lib/mysql/master-bin.log
log-bin-index = /var/lib/mysql/master-bin.index.log
binlog-do-db = ofbiz
#suppose you want to replicate only one table CREATE_PERSON from DATABASE OFBIZ THEN
#binlog-do-db = ofbiz.CREATE_PERSON
server-id = 1
innodb_flush_log_at_trx_commit=1
sync_binlog=1
binlog_format=row
2. restart mysql
3. mysql -u root -p
4. mysql > GRANT REPLICATION SLAVE ON *.* TO 'ofbizuser'@'%' IDENTIFIED BY 'mypass';
5. >FLUSH PRIVILEGES;
6. >use ofbiz
7. >FLUSH TABLES WITH READ LOCK;
8. >unlock tables
9. >Show master status
it will dispaly following table:
File : master-bin.000012
Position : 9137
Binlog_Do_DB : ofbiz
Binlog_Ignore_DB :
ofbiz is the wholw database which i replicated from Master to slave. It is possible to replicate selected table also.
Configure The M2 Machine:-
1. /etc/mysql/my.cnf, and add following line (dont put at the end of file)
bind-address = 10.6.26.5
# Replication Settings
read-only
server-id=2
master-connect-retry=60
replicate-do-db=ofbiz
2. restart mysql
3. mysql -u root -p
4. mysql>
5. stop slave;
6. mysql > CHANGE MASTER TO MASTER_HOST='10.6.26.8', MASTER_USER='ofbizuser', MASTER_PASSWORD='mypass', MASTER_LOG_FILE='master-bin.000012', MASTER_LOG_POS=9137;
7. start slave;
so both databases are internally connected.
Remember Tha,t here i have two ofbiz server, in M1 and M2 and two Mysql in M1 and M2. Both ofbiz server connected to its local mysql and thy both mysql are internally conected.
You can follow this link also:-
http://theindexer.wordpress.com/2009/02/20/master-slave-mysql-50-replication-on-ubuntu-intrepid-810/
If you have any prob in this article u can mail me praveen.bansod@gmail.com
Subscribe to:
Posts (Atom)

