Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Friday, February 27, 2015

How to install ibus-unikey ubuntu 14.10

Leave a Comment
Step by step install ibus-unikey on ubuntu 14.10. solve problem Error: "Can’t connect to iBus".

Step 1: The first install "m17n engine" in Ubuntu Software Center
Step 2: Open terminal or press ctr+alt+T, type commands as below:
$ sudo apt-get update
$ sudo apt-get install ibus-unikey
$ sudo reboot

Run ibus on ubuntu 14.10

$ ibus-daemon -d

Setup ibus on ubuntu 14.10

$ ibus-setup
ibus-unikey ubuntu 14.10

Configuration ibus-unikey

when reboot lose ibus-unikey, then you startup application system as picture bellow:

Fix error ibus-unikey with skype, firefox,....

Install packages ibus-qt4
#sudo apt-get install ibus-qt4
 Add line following below /etc/X11/xinit/xinput.d/default file :
 
# /etc/X11/xinit/xinput.d/default 

#
XIM=ibus
XIM_PROGRAM=/usr/bin/ibus-daemon
XIM_ARGS="--xim"
XIM_PROGRAM_XTRA=
# Set following variable to non-zero string if program set itself as deamon
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=
#
# Define GTK and QT IM module
# They may or may not be using xim as the IM.
#
GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus

#
# Define lists of packages neded for above IM to function
#
DEPENDS="ibus, ibus-gtk, ibus-gt4"

#
# Define X start up hook script to update IM environment
#
Reboot system
# reboot
Output:

Link youtube how to install ibus-unikey ubuntu 14.10


I hope will this help you

Copyright by: www.linuxoperatingsystem.info http://goo.gl/kMscJ4
Read More...

Wednesday, February 25, 2015

ubuntu commands

Leave a Comment

ubuntu commands

Seach the cached list of packages the contain a command or description
$ apt-cache search nload
Search the list of installed packages
$ dpkg-query -S mount
List all the files contained in the initscripts package
$ dpkg -L initscripts
Refresh the list of cached packages
$ sudo apt-get update

  • APT: Use APT to download and install packages form online repositories.
  • dpkg: Use dpkg to work with .deb files
  • aptitude: Use aptitude at the command line for working with online repositories


To report on the total number of packages available
$ apt-cache stats
Output:
Total package names: 60926 (1,219 k)
Total package structures: 102901 (5,762 k)
  Normal packages: 71359
  Pure virtual packages: 1187
  Single virtual packages: 9068
  Mixed virtual packages: 1825
  Missing: 19462
........

Enabling More Repositories for apt
$ sudo vim /etc/apt/sources.list
In a minimal system install, adding software collections with tasksel
$ sudo tasksel

Managing software with APT

check for updates to the packages
$ sudo apt-get update
To fid packages in any available repository
$ apt-cache search [package-name]
Install package
$ sudo apt-get install [package-name]
Display information about the software
$ apt-cache show [package-name]
Check updates for all installed packages and then prompt to download and install them with this command
$ sudo apt-get upgrade
Run this command anytime to delete partially downloaded packages, or packages no longer installed
$ sudo apt-get autoclean
Remove all cached packages from /var/cache/apt/archives to free up disk space using this command
$ sudo apt-get clean
This command removes the named package and all its confiuration fies
$ sudo apt-get --purge remove [package-name]
This command does a sanity check for broken packages. This tries to fix any
$ sudo apt-get -f install
This command lists GPG keys that APT knows about
$ sudo apt-key list
Check for dependencies the packages
$ sudo apt-cache depends [package-name]
Removing packages
$ sudo apt-get remove [package-name]
Clean up packages
$ find /var/cache/apt/ -name \*.deb
$ sudo apt-get clean
Downloading packages
$ sudo apt-get download [package-name]

Managing software with dpkg

This command lists all installed packages
$ dpkg -l
This command lists all the files that have been installed from a package
$ dpkg -L [package-name]
Install a package
$ sudo dpkg -i [package-name]
Remove a package
$ sudo dpkg -r [package-name]
Remove package and configuration file
$ sudo dpkg -P [package-name]
Verifying install packages with debsums
$ debsums -a Check all files, include config files left out by default
$ debsums –e Check config files for packages only
$ debsums –c List only changed files to stdout
$ debsums –l List files that don't have md5sum info
$ debsums –s List only errors; otherwise be silent
$ debsums package List the packages you want debsums to analyze

Copyright by: www.linuxoperatingsystem.info http://goo.gl/kMscJ4
Read More...

Tuesday, February 10, 2015

How to install Lamp (Apache, MySQL, phpmyadmin) ubuntu 14.10

Leave a Comment
How to install Lamp (Apache, MySQL, phpmyadmin) ubuntu 14.10? LAMP is short for Linux, Apache, MySQL, PHP. This video tutorial shows how you can install an Apache 2 webserver on an Ubuntu 14.10 server

Setting IP static

# vim /etc/network/interfaces
Add the config to the file.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.177.128
        netmask 255.255.255.0
        network 192.168.177.0
        broadcast 192.168.177.255
        gateway 192.168.177.2
        dns-nameservers 8.8.8.8
Restart networking
# service networking restart
# vim /etc/hosts
127.0.0.1       localhost
192.168.177.128   www.linuxoperatingsystem.com     www
Configuration hostname
# echo "www.linuxoperatingsystem.info" > /etc/hostname
# service hostname start

install apache

# apt-get install apache2
Open your web browser and navigate to http://localhost/ or http://server-ip-address/.

install lamp ubuntu 14.10

install mysql

# apt-get install mysql-server mysql-client
Verify mysql server
# service mysql status
Restart mysql server
# service mysql restart
Stop mysql server
#service mysql stop

install php

# apt-get install php5 php5-mysql libapache2-mod-php5
To test php
# vim /var/www/html/testphp.php
add the following lines:
<?php
phpinfo();
?>
Restart apache server
# service apache2 restart
Navigate to  http://server-ip-address/testphp

install lamp ubuntu 14.10

Manage MySQL Databases

install phpMyAdmin

# apt-get install phpmyadmin

Configuration phpmyadmin

# vim /etc/apache2/apache2.conf
Add the phpmyadmin config to the file.
Include /etc/phpmyadmin/apache.conf

Restart apache server

# /etc/init.d/apache2 restart

Open your web browser and navigate to http://localhost/phpmyadmin or http://server-ip-address/phpmyadmin.

install lamp ubuntu 14.10

Link youtube how to install Lamp (Apache, MySQL, phpmyadmin) ubuntu 14.10 


Copyright by: www.linuxoperatingsystem.info http://goo.gl/kMscJ4
Read More...

Monday, February 2, 2015

How to install vagrant on ubuntu 12.04

Leave a Comment

What does vagrant mean?

Vagrant is computer software for creating and configuring virtual development environments.

How to install vagrant on ubuntu 12.04

The first, you need install virtual box, after install vagrant.

How to install Virtual Box 4.3 on ubuntu 12.04

# vim /etc/apt/sources.list
Add lines in sources.list below:
deb http://download.virtualbox.org/virtualbox/debian saucy contrib
deb http://download.virtualbox.org/virtualbox/debian raring contrib
deb http://download.virtualbox.org/virtualbox/debian quantal contrib
deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
# wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
# apt-key add oracle_vbox.asc
# apt-get update
# apt-get install virtualbox-4.3

How to install Vagrant

# apt-get install vagrant

Download a box vagrant

# vagrant box add precise32 http://files.vagrantup.com/precise32.box
Files will be saved to ~/.vagrant.d/boxes/

Vagrant Up and Running

# vagrant init precise32
# vagrant up

Vagrant Login ssh

# vagrant ssh
Default user and password: vagrant/vagrant

Config Vagrantfile:

# vim Vagrantfile
Add line in Vagrantfile file as below:
config.vm.box = "precise32"
config.vm.network "forwarded_port", guest: 80, host: 8888
config.vm.network :public_network, ip: "192.168.1.2", :bridge => 'eth0'
config.vm.synced_folder "../data", "/vagrant_data"
After modify Vagrantfile file, you need reload to apply as below:
# vagrant reload
I hope will this help you! How to install vagrant on ubuntu 12.04

Link youtube how to install vagrant on ubuntu 12.04 


Copyright by: www.linuxoperatingsystem.info http://goo.gl/kMscJ4
Read More...