Wednesday, May 31, 2017

ubuntu - How to list all installed packages

Ubuntu 14.04 and above

The apt tool on Ubuntu 14.04 and above makes this very easy.
apt list --installed

Older Versions

To get a list of packages installed locally do this in your terminal:
dpkg --get-selections | grep -v deinstall
(The -v tag "inverts" grep to return non-matching lines)
To get a list of a specific package installed:
dpkg --get-selections | grep postgres
To save that list to a text file called packages on your desktop do this in your terminal:
dpkg --get-selections | grep -v deinstall > ~/Desktop/packages
Alternatively, simply use
dpkg -l
(you don't need to run any of theses commands as the superuser, so no sudo necessary here)

Sunday, May 28, 2017

10 Useful Commands to Collect System and Hardware Information in Linux

It is always a good practice to know the hardware components of your Linux system is running on, this helps you to deal with compatibility issues when it comes to installing packages, drivers on your system.
Check Hardware and System Information in Linux
10 Commands to Check Hardware and System Information in Linux
Therefore in this tips and tricks, we shall look at some useful commands that can help you to extract information about your Linux system and hardware components.

1. How to View Linux System Information

To know only system name, you can use uname command without any switch will print system information or uname -s command will print the kernel name of your system.
tecmint@tecmint ~ $ uname
Linux
To view your network hostname, use ‘-n’ switch with uname command as shown.
tecmint@tecmint ~ $ uname -n
tecmint.com
To get information about kernel-version, use ‘-v’ switch.
tecmint@tecmint ~ $ uname -v
#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014
To get the information about your kernel release, use ‘-r’ switch.
tecmint@tecmint ~ $ uname -r
3.13.0-37-generic
To print your machine hardware name, use ‘-m’ switch:
tecmint@tecmint ~ $ uname -m
x86_64
All this information can be printed at once by running ‘uname -a’ command as shown below.
tecmint@tecmint ~ $ uname -a
Linux tecmint.com 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

2. How to View Linux System Hardware Information

Here you can use the lshw tool to gather vast information about your hardware components such as cpu, disks, memory, usb controllers etc.
lshw is a relatively small tool and there are few options that you can use with it while extracting information. The information provided by lshw gathered form different /proc files.
Note: Do remember that the lshw command executed by superuser (root) or sudo user.
Read Also: Difference Between su and sudo User in Linux
To print information about your Linux system hardware, run this command.
tecmint@tecmint ~ $ sudo lshw
tecmint.com               
description: Notebook
product: 20354 (LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70)
vendor: LENOVO
version: Lenovo Z50-70
serial: 1037407803441
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 vsyscall32
configuration: administrator_password=disabled boot=normal chassis=notebook family=IDEAPAD frontpanel_password=disabled keyboard_password=disabled power-on_password=disabled sku=LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70 uuid=E4B1D229-D237-E411-9F6E-28D244EBBD98
*-core
description: Motherboard
product: Lancer 5A5
vendor: LENOVO
physical id: 0
version: 31900059WIN
serial: YB06377069
slot: Type2 - Board Chassis Location
*-firmware
description: BIOS
vendor: LENOVO
physical id: 0
version: 9BCN26WW
date: 07/31/2014
size: 128KiB
capacity: 4032KiB
capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi
......
You can print a summary of your hardware information by using the -short option.
tecmint@tecmint ~ $ sudo lshw -short
H/W path       Device      Class          Description
=====================================================
system         20354 (LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70)
/0                         bus            Lancer 5A5
/0/0                       memory         128KiB BIOS
/0/4                       processor      Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
/0/4/b                     memory         32KiB L1 cache
/0/4/c                     memory         256KiB L2 cache
/0/4/d                     memory         3MiB L3 cache
/0/a                       memory         32KiB L1 cache
/0/12                      memory         8GiB System Memory
/0/12/0                    memory         DIMM [empty]
/0/12/1                    memory         DIMM [empty]
/0/12/2                    memory         8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/12/3                    memory         DIMM [empty]
/0/100                     bridge         Haswell-ULT DRAM Controller
/0/100/2                   display        Haswell-ULT Integrated Graphics Controller
/0/100/3                   multimedia     Haswell-ULT HD Audio Controller
...
If you wish to generate output as a html file, you can use the option -html.
tecmint@tecmint ~ $ sudo lshw -html > lshw.html
Generate Linux Hardware Information in HTML
Generate Linux Hardware Information in HTML

3. How to View Linux CPU Information

To view information about your CPU, use the lscpu command as it shows information about your CPU architecture such as number of CPU’s, cores, CPU family model, CPU caches, threads, etc from sysfs and /proc/cpuinfo.
tecmint@tecmint ~ $ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 69
Stepping:              1
CPU MHz:               768.000
BogoMIPS:              4788.72
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3

4. How to Collect Linux Block Device Information

Block devices are storage devices such as hard disks, flash drives etc. lsblk command is used to report information about block devices as follows.
tecmint@tecmint ~ $ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 931.5G  0 disk 
├─sda1    8:1    0  1000M  0 part 
├─sda2    8:2    0   260M  0 part /boot/efi
├─sda3    8:3    0  1000M  0 part 
├─sda4    8:4    0   128M  0 part 
├─sda5    8:5    0 557.1G  0 part 
├─sda6    8:6    0    25G  0 part 
├─sda7    8:7    0  14.7G  0 part 
├─sda8    8:8    0     1M  0 part 
├─sda9    8:9    0 324.5G  0 part /
└─sda10   8:10   0   7.9G  0 part [SWAP]
sr0      11:0    1  1024M  0 rom  
If you want to view all block devices on your system then include the -a option.
tecmint@tecmint ~ $ lsblk -a
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 931.5G  0 disk 
├─sda1    8:1    0  1000M  0 part 
├─sda2    8:2    0   260M  0 part /boot/efi
├─sda3    8:3    0  1000M  0 part 
├─sda4    8:4    0   128M  0 part 
├─sda5    8:5    0 557.1G  0 part 
├─sda6    8:6    0    25G  0 part 
├─sda7    8:7    0  14.7G  0 part 
├─sda8    8:8    0     1M  0 part 
├─sda9    8:9    0 324.5G  0 part /
└─sda10   8:10   0   7.9G  0 part [SWAP]
sdb       8:16   1         0 disk 
sr0      11:0    1  1024M  0 rom  
ram0      1:0    0    64M  0 disk 
ram1      1:1    0    64M  0 disk 
ram2      1:2    0    64M  0 disk 
ram3      1:3    0    64M  0 disk 
ram4      1:4    0    64M  0 disk 
ram5      1:5    0    64M  0 disk 
ram6      1:6    0    64M  0 disk 
ram7      1:7    0    64M  0 disk 
ram8      1:8    0    64M  0 disk 
ram9      1:9    0    64M  0 disk 
loop0     7:0    0         0 loop 
loop1     7:1    0         0 loop 
loop2     7:2    0         0 loop 
loop3     7:3    0         0 loop 
loop4     7:4    0         0 loop 
loop5     7:5    0         0 loop 
loop6     7:6    0         0 loop 
loop7     7:7    0         0 loop 
ram10     1:10   0    64M  0 disk 
ram11     1:11   0    64M  0 disk 
ram12     1:12   0    64M  0 disk 
ram13     1:13   0    64M  0 disk 
ram14     1:14   0    64M  0 disk 
ram15     1:15   0    64M  0 disk 

5. How to Print USB Controllers Information

The lsusb command is used to report information about USB controllers and all the devices that are connected to them.
tecmint@tecmint ~ $ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 0bda:b728 Realtek Semiconductor Corp. 
Bus 002 Device 004: ID 5986:0249 Acer, Inc 
Bus 002 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
You can use the -v option to generate a detailed information about each USB device.
tecmint@tecmint ~ $ lsusb -v

6. How to Print PCI Devices Information

PCI devices may included usb ports, graphics cards, network adapters etc. The lspci tool is used to generate information concerning all PCI controllers on your system plus the devices that are connected to them.
To print information about PCI devices run the following command.
tecmint@tecmint ~ $ lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)
Use the -t option to produce output in a tree format.
tecmint@tecmint ~ $ lspci -t
-[0000:00]-+-00.0
+-02.0
+-03.0
+-14.0
+-16.0
+-1b.0
+-1c.0-[01]----00.0
+-1c.3-[02]----00.0
+-1c.4-[03]----00.0
+-1d.0
+-1f.0
+-1f.2
\-1f.3
Use the -v option to produce detailed information about each connected device.
tecmint@tecmint ~ $ lspci -v
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
Subsystem: Lenovo Device 3978
Flags: bus master, fast devsel, latency 0
Capabilities: 
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device 380d
Flags: bus master, fast devsel, latency 0, IRQ 62
Memory at c3000000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 6000 [size=64]
Expansion ROM at  [disabled]
Capabilities: 
Kernel driver in use: i915
.....

7. How to Print SCSI Devices Information

To view all your scsi/sata devices, use the lsscsi command as follows. If you do not have lsscsi tool installed, run the following command to install it.
$ sudo apt-get install lsscsi        [on Debian derivatives]
# yum install lsscsi                 [On RedHat based systems]
# dnf install lsscsi                 [On Fedora 21+ Onwards]
After install, run the lsscsi command as shown:
tecmint@tecmint ~ $ lsscsi
[0:0:0:0]    disk    ATA      ST1000LM024 HN-M 2BA3  /dev/sda 
[1:0:0:0]    cd/dvd  PLDS     DVD-RW DA8A5SH   RL61  /dev/sr0 
[4:0:0:0]    disk    Generic- xD/SD/M.S.       1.00  /dev/sdb 
Use the -s option to show device sizes.
tecmint@tecmint ~ $ lsscsi -s
[0:0:0:0]    disk    ATA      ST1000LM024 HN-M 2BA3  /dev/sda   1.00TB
[1:0:0:0]    cd/dvd  PLDS     DVD-RW DA8A5SH   RL61  /dev/sr0        -
[4:0:0:0]    disk    Generic- xD/SD/M.S.       1.00  /dev/sdb        -

8. How to Print Information about SATA Devices

You can find some information about sata devices on your system as follows using the hdparm utility. In the example below, I used the block device /dev/sda1 which the harddisk on my system.
tecmint@tecmint ~ $ sudo hdparm /dev/sda1
/dev/sda1:
multcount     =  0 (off)
IO_support    =  1 (32-bit)
readonly      =  0 (off)
readahead     = 256 (on)
geometry      = 56065/255/63, sectors = 2048000, start = 2048
To print information about device geometry interms of cylinders, heads, sectors, size and the starting offset of the device, use the -g option.
tecmint@tecmint ~ $ sudo hdparm -g /dev/sda1
/dev/sda1:
geometry      = 56065/255/63, sectors = 2048000, start = 2048

9. How to Print Linux File System Information

To gather information about file system partitions, you can use fdisk command. Although the main functionality of fdisk command is to modify file system partitions, it can also be used to view information about the different partitions on your file system.
You can print partition information as follows. Remember to run the command as a superuser or else you may not see any output.
tecmint@tecmint ~ $ sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xcee8ad92
Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  1953525167   976762583+  ee  GPT
Partition 1 does not start on physical sector boundary.

10. How to Extract Information about Hardware Components

You can also use the dmidecode utility to extract hardware information by reading data from the DMI tables.
To print information about memory, run this command as a superuser.
tecmint@tecmint ~ $ sudo dmidecode -t memory
# dmidecode 2.12
# SMBIOS entry point at 0xaaebef98
SMBIOS 2.7 present.
Handle 0x0005, DMI type 5, 24 bytes
Memory Controller Information
Error Detecting Method: None
Error Correcting Capabilities:
None
Supported Interleave: One-way Interleave
Current Interleave: One-way Interleave
Maximum Memory Module Size: 8192 MB
Maximum Total Memory Size: 32768 MB
Supported Speeds:
Other
Supported Memory Types:
Other
Memory Module Voltage: Unknown
Associated Memory Slots: 4
0x0006
0x0007
0x0008
0x0009
Enabled Error Correcting Capabilities:
None
...
To print information about system, run this command.
tecmint@tecmint ~ $ sudo dmidecode -t system
# dmidecode 2.12
# SMBIOS entry point at 0xaaebef98
SMBIOS 2.7 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 20354
Version: Lenovo Z50-70
Serial Number: 1037407803441
UUID: 29D2B1E4-37D2-11E4-9F6E-28D244EBBD98
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70
Family: IDEAPAD
...
To print information about BIOS, run this command.
tecmint@tecmint ~ $ sudo dmidecode -t bios
# dmidecode 2.12
# SMBIOS entry point at 0xaaebef98
SMBIOS 2.7 present.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: LENOVO
Version: 9BCN26WW
Release Date: 07/31/2014
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 4096 kB
Characteristics:
PCI is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
EDD is supported
Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
5.25"/360 kB floppy services are supported (int 13h)
5.25"/1.2 MB floppy services are supported (int 13h)
3.5"/720 kB floppy services are supported (int 13h)
3.5"/2.88 MB floppy services are supported (int 13h)
8042 keyboard services are supported (int 9h)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Targeted content distribution is supported
UEFI is supported
BIOS Revision: 0.26
Firmware Revision: 0.26
...
To print information about processor, run this command.
tecmint@tecmint ~ $ sudo dmidecode -t processor
# dmidecode 2.12
# SMBIOS entry point at 0xaaebef98
SMBIOS 2.7 present.
Handle 0x0004, DMI type 4, 42 bytes
Processor Information
Socket Designation: U3E1
Type: Central Processor
Family: Core i5
Manufacturer: Intel(R) Corporation
ID: 51 06 04 00 FF FB EB BF
Signature: Type 0, Family 6, Model 69, Stepping 1
Flags:
...

Summary

There are many other ways you can use to obtain information about your system hardware components. Most of these commands use files in the /proc directory to extract system information.
Hope you find this tips and tricks useful and remember to post a comment in case you want to add more information to this or if you face any difficulties in using any of the commands. Remember to always stay connected to Tecmint.

Sunday, May 21, 2017

How to download a file from a website via terminal?

Open terminal and type
wget "http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz" 
to download the file to the current directory.
wget  -O /home/omio/Desktop/ "http://thecanadiantestbox.x10.mx/CC.zip"
will download the file to /home/omio/Desktop

5 Best Linux Download Managers

One of the difficulties a new Linux user faces while switching from Windows is finding a good download manager. If you are or have been Windows user you might be familiar with download managers like Internet Download Manager (IDM), Download Accelerator Plus (DAP) etc. There is nothing to worry for Linux users as there are many alternatives Download managers for Linux. And yes these are open source; means you can download them for free. The article below is about few of the popular and free Linux download managers available on the web.

1. uGet

To install uGet for fedora based system -
sudo dnf install uget
To install on Debian/Ubuntu based system -
sudo add-apt-repository ppa:t-tujikawa/ppa
sudo apt-get update
sudo apt-get install uget

Running uGet

uGet is highly feature rich download manager with multi-threading download, pause/resume, queueing up etc.

After installation, to start uGet open application menu and type “uget” in search box.
uget linux download manager

​Let’s download a sample music file at url :

Click on File -> New Download or alternatively, Click on the first yellow icon of main window (the one where mouse pointer is hovering in image below).

Picture

Now copy and paste the URL  in Url box. Press “OK” and you are done!

Picture

You can customise parameters like -
  1. On Completion action ( to shutdown/ reboot/ hibernate/ do nothing in Edit menu).
  2. Limit max download speed : Goto Edit -> Settings -> Bandwidth.
  3. You can view downloads by status like Active, Queuing, finished etc. by selecting the option in left menu bar.

This Linux download manager is rich with tons of basic and advanced customizable features. It’s hard to cover every minute detail here. You can explore by yourself in options. Leave settings unchanged if they confuse you.

​More Features
  •  Bandwidth Limit
  •  Queuing of downloads
  •  Multithreaded
  •  Torrent support.
  •  On completion action.

2. SteadyFlow

SteadyFlow is minimalistic Linux download manager that allows you to download files by entering URL and manage them via user interface. Unlike, uGet it is not featured rich but serves the purpose decently.

On Fedora based system
sudo dnf install steadyflow

​On Debian based system
sudo add-apt-repository ppa:sikon/steadyflow
sudo apt-get update
sudo apt-get install steadyflow
steadyflow download managers for linux
download managers for linux
To download, press the add button on left top corner.

Enter URL

​Set on completion action. Default is “Do nothing”.

Press “Start”


​More Features
  •  Bandwidth Limit
  •  Queuing of downloads
  •  Multithreaded

3. FlareGet

Flareget to some extent is Internet Download Manager equivalent. It has browser integration.

For Fedora or Ubuntu based system
  1. Download Flareget from this link. Choose the one based on your Linux distribution : Debian or Fedora.
  2. Open containing folder and double click on the file. It will open up in software center.
flareget download manager for linux

Click install. It will prompt for the password. Type in password and press “Authenticate”.

install flareget in linux

To open Flareget, Search for Flareget in menu bar “Flareget” and click on the icon or press enter.

open flareget

Flareget features
  1. Multithreaded
  2. Integration with browsers
  3. Pause/resume capabilities
  4. Youtube downloader
  5. Bandwidth limit configuration

4. kGet

kGet is another Linux download manager with basic features like pause-resume, multi-threaded download etc.

To install kGet on Fedora based system
sudo dnf install kget.x86_64

​To install kGet on Debian/ fedora based system
sudo apt-get install kGet
Picture
Picture

5. XDM(Xtreme Download Manager)

XDM download manager for Linux is also packed with basic as well as some advanced customizable features. It also supports browser integration with popular web browsers like Google chrome, Firefox, and opera.

To install XDM on Fedora based system,
sudo wget http://sourceforge.net/projects/xdman/files/xdm-jre-64bit.tar.xz
sudo tar -xvf xdm-jre-64bit.tar.xz
cd xdm
sudo ./xdm
To install on Debian based system
sudo add-apt-repository ppa:noobslab/apps
sudo apt-get install xdman
First run :

xdm linux download manager

Open settings to customize XDM.

More Features
  • Youtube downloader
  • Download scheduler
  • Force assembly of files
  • File types to download filter
  • Multi threaded

Conclusion

Linux has variety of download manager alternatives to choose from according to need. We shall recommend flareget or uGet download manager over others. While all of them are good download managers, uGet comes so many features. Flareget allows easy integration with your browsers like chrome, Firefox and opera. You can tell it is an alternative to internet download manager in Windows. If you have any suggestion or issues please comment down in section below. If you liked this article, share with your friend.

Saturday, May 20, 2017

When can not type vietnamese, japanese, etc... on OpenOffice

step 1:
open a text editor and try to type something in vietnamese, japanese,etc...
if ok, it means that vietnamese, japanese input method is properly installed.
go to step 2
step 2:
in Apache OpenOffice:
Tools => Options => Languages Settings => Languages => Default language for document (Asian => japanese)

Instructions for Downloading and Installing Apache OpenOffice 4 ( Linux Installations)


Linux Pre-installation Notes

The following preinstallation steps are recommended for Linux distributions. These should be taken to assure that you have a clean install of Apache OpenOffice due to internal considerations and/or the installation of LibreOffice, if it exists, on your system.
  1. Check to see if LibreOffice has re-routed the OpenOffice binary.
    Type "whereis soffice" from a console.

    If this is symlinked to libreoffice, remove the symlink. (see your favorite reference for how to do this)

    This will NOT remove LibreOffice, this will only disallow LibreOffice to redirect the normal OpenOffice binary -- typically /usr/bin/soffice -- to libreoffice instead.
  2. Due to directory structure changes in Apache OpenOffice 4.x versions, your older Openoffice 3.x should be deleted entirely by a new install or update process. This is normal. If you experience problems using the "update" process, please remove the old OpenOffice 3.x packages manually.
  3. If you have been testing one of the older developer snapshots, not the released version, revision 150370, completely remove this old version before attempting a new install or update.
  4. See java requirements.

Installation Steps -- RPM or DEB: Download to Installation Directory, Unpack

  1. Review the System Requirements
  2. Download your favorite Linux version of Apache OpenOffice
  3. Unpack the downloaded package to prepare for installation.
    The following command should work: tar -xvzf "linux package name".tar.gz
    where "linux package name" is the beginning part of the archive you just downloaded.
    This will create an installation directory.
    The name of the installation directory will likely be the language abbreviation for the install set, e.g., en-US.
  4. Add the install directory as a "local repository" for your GUI package manager if possible. This will enable you to do a GUI install rather than command line.
  5. Desktop integration.
    Desktop integration for deb-based systems requires installation of one package.
    Historically, for rpm based systems, OpenOffice has provided desktop integration packages for madriva, redhat, suse, and now freedesktop. These packages are located in the desktop-integration subdirectory of the install directory.
    Many desktop window managers like KDE4, Gnome3, and Unity now adhere to the freedsktop.org standard for icon placement and mime-type definitions. For this reason, you may want to install the freedesktop desktop integration package first before trying the others.

Linux RPM-based Installation

  1. su to root, if necessary, and navigate to Apache OpenOffice installation directory.
    You will likely need to be root to run the rpm command to install the software.
  2. cd into the RPMS subdirectory of the installation directory.
    You should see a lot of rpms here and one sub-directory called "desktop-integration".
  3. Install this new version by typing rpm -Uvih *rpm.
    By default, this will install Apache OpenOffice in your /opt directory.

    Alternatively, you can use a GUI package installer, reference the installation directory, and install all rpms at the top level. This may also aid you in determing any dependency problems if they exist.
  4. Install the desktop integration features for your setup.
    cd to desktop-integration (in the installation directory),
    and install an appropriate desktop interface using RPM. (Try the freedesktop-menus first.)
  5. Finally, start up Apache OpenOffice 4.x.x to insure it's working.

Linux DEB-based Installation

  1. One you download the Apache OpenOffice tar.gz package, you should be able to decompress typing.
    tar Apache-OpenOfficeX.X.X.tar.gz package or using programs such as Ark, or File-Roller.
  2. cd into the DEBS subdirectory of the installation directory.
    You should see a lot of debs here and one sub-directory called "desktop-integration".
  3. Install this new version by typing sudo dpkg -i *.deb or become root using su command.
    By default, this will install/update Apache OpenOffice in your /opt directory.

    Alternatively, you can use a GUI package installer, reference the installation directory, and install all debs at the top level. This may also aid you in determing any dependency problems if they exist.
  4. Install the desktop integration features for your setup.
    cd to desktop-integration (in the installation directory),
    and install the desktop intgration using dpkg.
  5. Finally, start up Apache OpenOffice 4.x.x to insure it's working.
Note: Apache OpenOffice executable is called soffice and is located in /opt/OpenOffice4/program/
A softlink is created on your /usr/local/bin/ directory. You can always map to the original at /opt/ if it doesnt start
for whatever reason.

Additional Linux Information

Apache OpenOffice provided packages
The Linux downloads provided on the Apache OpenOffice site (mirrors) are generic for either the RPM- or DEB-based package managers. If you have experience in directly installing these types of packages on your system, one of these types of installs should work for you. They are not specific to a particular Linux distribution.
Apache OpenOffice from Linux distros
Some Linux distributions now include a version of Apache OpenOffice in their own native package manager format (.rpm, .deb, etc.) either from their own repositories or community repositories which they support. These packages have been built and are supported by the distributions' own teams or community members, not by Apache OpenOffice. Some distributions have strict policies around licensing, which means they have chosen to disable parts of Apache OpenOffice which rely on software which does not meet their criteria.
Note: Please check carefully before using a third-party build that it does actually include all the parts of Apache OpenOffice that you will require. Replacing a 'native' distribution build with the full Apache OpenOffice original build can be tricky, but can usually be successfully accomplished by completely removing the existing 'native' install.
Useful sites for Linux installation
The following links are additional resources for installing Apache OpenOffice on Linux by other parties. We hope you find them useful.

symbol link (aslo called "soft link")

To create a new symlink (will fail if symlink exists already):
ln -s /path/to/file /path/to/symlink
To create or update a symlink:
ln -sf /path/to/file /path/to/symlink 
----------------------
You can use rm to delete the symlink.  

install deb file

sudo dpkg *.deb

Apache OpenOffice 4.0 Released–Here’s How To Install It In Ubuntu

Apache OpenOffice suite which was previously known as OpenOffice.org has just been updated to version 4.0 and is available for download from its official download page. This is a major update and brings exciting new features and enhancements along with many bug fixes.
Some of the features released with this version are:  a new sidebar, improvements in Microsoft Office interoperability, support for more languages and a major performance boost. For more about this release and all of the other features included, check out its release notes page.
This brief tutorial is going to show you how to easily install or upgrade to the latest OpenOffice version in Ubuntu 13.04 and previous versions. You can use it in place of LibreOffice if you want. I am not recommending it, but it’s up to you to do what you want with your computer.
I am not going to tell you to pick a side between LibreOffice and OpenOffice. All I am going to show you is how to install AOO in Ubuntu and use it.
To get started, press Ctrl – Alt – To on your keyboard to open the terminal console. When it opens, run the commands below to completely remove LibreOffice from your machine. It’s wise to remove LibreOffice before installing OpenOffice. Don’t worry, I will also show you how to revert the changes you made to your computer after installing OpenOffice.
sudo apt-get remove --purge libreoffice* libexttextcat-data* && sudo apt-get autoremove

Next, change into the /tmp directory to download OpenOffice file.
cd /tmp

When you’re there, run the commands below to download the latest version (32-bit English) of OpenOffice. To view the download page and select other languages, use this page.
wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.0.0/binaries/en-US/Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-US.tar.gz

For 64-bit English version, use this link.
wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.0.0/binaries/en-US/Apache_OpenOffice_4.0.0_Linux_x86-64_install-deb_en-US.tar.gz

When the file is downloaded, run the commands below to extract the downloaded file.
tar -xvf Apache_OpenOffice*.tar.gz

Next, run the commands below to begin installing it.
sudo dpkg -i en-US/DEBS/*.deb

Next, run the commands below to install the desktop-integration for .deb Linux distributions.
sudo dpkg -i en-US/DEBS/desktop-integration/*.deb

When you’re done, restart and enjoy!

apache-openoffice-4

To revert the change and reinstall LibreOffice, run the commands below to completely remove Apache OpenOffice.
sudo apt-get purge openoffice*.* && sudo apt-get autoremove

Then install LibreOffice by running the commands below.
sudo apt-get install libreoffice libreoffice-gnome

Enjoy~

Japanese Input on Ubuntu

This tutorial will show you how to set up Japanese input IME (日本語入力方法) on Ubuntu Linux 15.04 from the Unity interface so you can type in Japanese in all your favorite Ubuntu applications.

Setup Procedure

To start, select Dash home from the Unity Launcher.
ubuntu15-04-1
From the Dash home, search for Language Support.
ubuntu15-04-2
Select Language Support.
ubuntu15-04-3
Note: If you get the language support is not installed completely dialog box at this point, press Install to install them now.
ubuntu13-04-4
On the Language tab of the Language Support screen, press Install / Remove Languages…
On the Installed Languages screen, scroll down to Japanese and check Installed, and then press Apply Changes.
Enter your password on the Authenticate screen.
It will take a few moments to download and install the Japanese IME packages.
Back on the Language Support screen, select IBus for the Keyboard input method system, and then press Close.
ubuntu13-04-5
For these settings to go into effect, you must log out and log back in.
Ubuntu13-10-6
After logging back in, click the language icon from the top panel and select Text Entry Settings…
Ubuntu13-10-1
On the Text Entry screen, click the + icon on the button left of the Input sources to use area.
ubuntu13-10-2
On the Choose an input source screen, scroll down and select Japanese (Anthy) (IBus).
ubuntu15-04-4
Press Add.
The Japanese Anthy input method will now be available from the language icon in the top panel.
Open up any application with a text box such as gedit and place the cursor in the text box.
Press the language icon on the tap panel and select Anthy.
Ubuntu13-10-4
The language icon will now change to the Anthy Aち icon.
Ubuntu13-10-5
That’s it. You can now type in Japanese in Ubuntu 15.04.
お疲れさまでした。

4 of the Best eBook Readers for Linux Users

A few years ago, we predicted the end of physical bookstores. Not to say that we were the only ones who predicted it, because we certainly weren’t, but anyone who isn’t in denial should be able to see that eBooks are an inevitable future. Is It Time To Say Goodbye To Bricks & Mortar Bookstores? [Opinion] Is It Time To Say Goodbye To Bricks & Mortar Bookstores? [Opinion] When the Borders bookstore near my community had to liquidate all of its merchandise and close its doors back in July of last year, I felt like I was losing a long time friend. Hardly... Read More
As a Linux user, where does that leave you?
For myself, I’ve mostly read my eBooks with mobile apps like Aldiko and Mantano. I’ve also done a good bit of reading with EpubReader, a wonderful Firefox extension that I highly recommend. But now that I’m on Linux, it’s time to see what kind of native readers are available.
Here are the best that I’ve found.

Calibre

If you call yourself a fan of eBooks and you’ve never used Calibre before, you should drop everything you’re doing and install it right away. This beast of a program is more than just a reader – it’s a full-on library manager that simplifies everything about keeping your eBooks in order. Calibre: Hands-Down, The Best eBook Manager Available Calibre: Hands-Down, The Best eBook Manager Available Electronic media is no doubt more prevalent today than it ever has been. The Internet is at the core of it all, and because of it we have eBooks, web articles, and news from electronic... Read More
But it is an eBook reader as well, and a darn good one at that.
Advertisement
linux-ebook-readers-calibre
At first the interface can be overwhelming with its mess of buttons and panels, but most of it can be ignored and you’ll get the hang of it quickly. Only care about basic reading functionality? Just load in your eBooks, browse through the list, and double-click the one you want to read.
Calibre not only supports a vast array of eBook formats right out of the box, but can convert between formats as well. It can also remove DRM from locked eBooks. Additional features can be added through its third-party plugin system.
And if you’re the kind of person who’s always on the go, you should know that Calibre is available in portable form, meaning you can throw it onto a spare USB thumb drive and carry it around with you everywhere. Or you can throw it on cloud storage and use it that way if that’s more your style.

Lucidor

Despite being able on Windows, Mac, and Linux systems, Lucidor hasn’t received the kind of attention that it deserves. Is it as powerful and feature-rich as the aforementioned Calibre? Not quite. Is it a powerful program that provides a great user experience? You bet.
linux-ebook-readers-lucidor
Lucidor’s interface is exactly what I’d expect from a desktop eBook reader. The table of contents in the sidebar is perfect while the viewer on the right is clean, allowing you to focus on the text itself. The bookcase, which is what Lucidor calls its library, is also well-organized and without clutter.
Speaking of the bookcase, Lucidor allows users to create multiple collections that are each comprised of their own books. This means, for example, that you could conceivably have separate bookcases for fiction and non-fiction, separate bookcases by genre, or however else you want to split it up.
But my favorite feature of Lucidor is tabbed reading. Multiple eBooks can be opened under multiple tabs, which is a trivial function in the grand scheme but absolutely important for its convenience factor.

FBReader

One of the most popular eReader apps on Android is FBReader, but did you know that it’s also available on desktops? Not just Linux, but Windows and Mac OSX as well. While it’s a bit simplistic as far as feature set goes, it gets the job done without sucking up too many resources.
linux-ebook-readers-fbreader
FBReader only supports open formats, which means it won’t be able to load any DRM-protected eBooks (such as those bought for the Kindle). That being said, most eBooks are available in open formats so it should only be a problem if you’ve already built a massive collection in proprietary formats.
The interface is hit-or-miss. Though I consider myself to be a minimalist in a lot of ways, FBReader is just too simple for me. I’d prefer a bit more customizability in terms of structure and formatting, but I can also see how some people would love FBReader’s look.
My biggest gripe about FBReader is an issue of convenience: it’s not possible to add more than one eBook to the library at a time. I don’t know if it’s a deficiency in the Linux version, an overall bug, or an overlooked feature – but as it is right now, the lack is a real thorn in my side.

Cool Reader

I didn’t know Cool Reader was available on Linux. My first and only experience until now was with its highly popular Android app, which did not leave a great taste in my mouth, so I almost skipped over this one in my search for the best Linux eBook reader.
And while I still wouldn’t place this one anywhere near the top of my list, I was pleasantly surprised by what it offered.
linux-ebook-readers-cool-reader
You’ll have to play around with the preferences a bit because the default settings are rather ugly, but once you select a good font face and font size, that ugliness becomes quite pleasant. The interface is extremely simple, but in a way that works surprisingly well.
Unfortunately, Cool Reader lacks a library for eBook management; by design, it’s meant to load files on a read-on-demand basis. It does have a list of eBooks that were recently read, which may or may not suffice depending on how large your library actually is.
Cool Reader supports most open formats. If you have a lot of DRM-protected eBooks though, you’ll probably want to look elsewhere.

Which eBook Reader Do You Like Best?

Gone are the days when Linux didn’t have any good eBook reading solutions. Some of the above listed ones are cross-platform, but even the ones that aren’t are good enough to stand alongside the best Windows eReaders and the best Mac eReaders. 5 Best PDF & Ebook Readers for Windows 5 Best PDF & Ebook Readers for Windows Windows is establishing itself as a cross-platform operating system. It's already running on tablets and 2-in-1 devices, making eBook reader applications for the desktop more relevant than ever. Read More
My personal favorite at the moment is Calibre, but I think I’ll be switching between them over the next few months as I figure out which one best suits my day-to-day needs.
Looking for stories to read? Here are a few places to read fiction online for free. Is that not enough? Consider these eBook subscription services that provide unlimited access to online libraries for a small fee.
Which one is your favorite? Are there any eBook readers I missed that you think deserve a mention? Share your thoughts with us in the comments below!

Wednesday, May 10, 2017

Hướng dẫn cài bộ gõ tiếng Việt trên Ubuntu 16.04 LTS – ibus-unikey

Để cài đặt unikey trên Ubuntu 16.04 cực kì đơn giản vô cùng. Chỉ cần một số vòng lệnh thì việc cài đặt cực kì đơn giản.
Bạn chỉ cần thực hiện theo các bước sau:

Bước 1: Mở terminal đánh dòng sau

cài đặt ibus-unikey trên ubuntu

Bước 2: Khởi động lại ibus

cài đặt ibus-unikey trên ubuntu

Bước 3: Cấu hình bàn phìm đánh tiếng việt

cài đặt ibus-unikey trên ubuntu
cài đặt ibus-unikey trên ubuntu
cài đặt ibus-unikey trên ubuntu
cài đặt ibus-unikey trên ubuntu
Sau khi cài đặt xong thì bạn chỉ cần khởi động lại máy hoặc logout rồi login vào lại và tận hưởng kết quá, để chuyển qua đánh tiếng việt bạn chọn ngay phần mục tại bước 3 và chọn unikey là được.
Kết quả:
cài đặt ibus-unikey trên ubuntu
Chúc bạn cài đặt thành công!