網頁

2015年3月21日 星期六

Ubuntu/Lubuntu --- How to use Blogilo (Blogger Client) for Google Blogspot in Lubuntu

In the Windows platform, I like to use Windows Live Writer to write Blogger article. But in the Linux platform as Lubuntu, what is the windows live writer alternative?
I search this answer by Google and get the suggestion to choose Blogilo. Based on the Internet information, its feature is as WYSIWYG editor , allows saving posts as local, and publish content directly, etc. This function is enough for me to do a simple blogger so that I decide to try it.

After installing the Blogilo software by Lubuntu software center or apt-get command, we will launch this software for configuring the setting to suit Google Blogspot environment.

At first, we need to click Configure Blogilo... in the Settings menu.

and select Blogs next to click Add button

To add a Google Blogspot account to the Blogilo, we have to notice something.
In the Basic tab, the Blog/Homepage URL field will refer to the Browser URL as follows
, and Username/Password field will depend on the blogger registration.

In the Advanced tab, we need to choose Blogspot.com in the API field and write down some information as follows in the Blog ID field.
That is final configuration as follows

Once the above finish, please return to the Basic tab and assign a profile name in the Title field to complete the setup.

If the Google account and password is right, the Blogilo will fetch some blog posts so that we can see these post subjects on the right panel.

Now we can begin to write article into Google Blogsopt in the Lubuntu/Ubuntu environment.

Recently, I found there is a bug "it will crash when change the size of  the image uploaded" in Lubuntu 14.04. I don't know what happen so that agree to send out the error report to Vendor. 
Hope this problem is resolved quickly!

2015年2月16日 星期一

Cisco Network --- Dynamic NAT for Internal users access the Internet

In this scenario we want to know the computer go through Network device as Switch/Router to access Internet.
Based on Cisco device, write down the relation learning information for the reference.ScreenHunter_531
Setting an IP on the WAN/LAN interface
Step 1. Define Fast Ethernet 0/0 with an IP address as 192.168.10.171 by using the following command.ScreenHunter_502So does that the configuration will be changed as follows:
AS-ISScreenHunter_501TO-BE
ScreenHunter_503
Step 2. Define Ethernet 2/0  with an IP address as 10.10.101.253 by using the following command.
ScreenHunter_504
Setting Static default Route
Step 3. Due to assign the IP address manually, we have to define a default route by using the ip route 0.0.0.0 0.0.0.0 192.168.10.254 commandScreenHunter_506
Defining NAT inside and outside interfaces
Step 4. Define Fast Ethernet 0/0 as a NAT outside interface by using the following command.ScreenHunter_516
Step 5. Define Ethernet 2/0 as a NAT inside interface by using the following command.
ScreenHunter_517
Define Inside global IP Address Range (with no-overload or overload)
Step 6. Define a NAT pool named as no-overload with a range of addresses 192.168.10.200 ~ 192.168.10.240 by using the ip nat pool <pool name> <strart ip> <end ip> prefix <prefix length> command
ScreenHunter_519
Define Inside local IP Address Range
Step 7. Define Access List 6 that it permit packets with source addresses ranging from 10.10.103.0 to 10.10.103.255
ScreenHunter_528
Define the relationship of between Inside local and Inside global
Step 8. Define “Access list 6” address can NAT to a pool “no-overload” by using the ip nat inside source list <access list number> pool <pool name> commandScreenHunter_522
To verify the NAT translations in the router by using the show ip nat translations commandScreenHunter_529To clear dynamic Network Address Translation (NAT) translations from the translation table by using the clear ip nat translations * commandScreenHunter_530
Reference
(# 1)   The keyword overload used in the ip nat inside source list 103 pool ovrld overload command allows NAT to translate multiple inside devices to the single address in the pool.
(# 2)   Protocols with Access Lists Specified by Numbers
Protocol Range
IP 1 to 99
Extended IP 100 to 199
Ethernet type code 200 to 299
Ethernet address 700 to 799
Transparent bridging (protocol type) 200 to 299
Transparent bridging (vendor code) 700 to 799
Extended transparent bridging 1100 to 1199
DECnet and extended DECnet 300 to 399
XNS 400 to 499
Extended XNS 500 to 599
AppleTalk 600 to 699
Source-route bridging (protocol type) 200 to 299
Source-route bridging (vendor code) 700 to 799
IPX 800 to 899
Extended IPX 900 to 999
IPX SAP 1000 to 1099
Standard VINES 1 to 100
Extended VINES 101 to 200
Simple VINES 201 to 300

2015年1月17日 星期六

CentOS 7.x --- Install Clamav from ATrpms Repository

ATrpms is a 3rd party rpm repository for Red Hat/CentOS/Fedora and this repository has included many non-scientific software titles, like system tools(as Clamav) or multimedia packages.
In the moment, we will demo How to install package from ATrpms repository.

At first, we have to import ATrpms’ signing key by using rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms command.
ScreenHunter_474
Then there is some method to install this repository as follows:
Install binary package manually
We can explore the ATrpms Packageing Site and download it by choosing the right platform.擷取選取區域_002.jpg
After download finished, we can install this configuration file for package managers by using the rpm -ivh atrpms-repo-7-7.el7.x86_64.rpm command擷取選取區域_005.jpg

Or
To install this configuration file for package managers by using the using rpm -Uvh http://dl.atrpms.net/el7-x86_64/atrpms/stable/atrpms-repo-7-7.el7.x86_64.rpm commandScreenHunter_475

Add a new repository
To add the following content into the /etc/yum.repos.d/atrpms.repo file
[atrpms]
name=CentOS Linux $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el7-$basearch/atrpms/stable
gpgkey=http://atrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1

If the above method depend on which one is choose has already been finished, we need to firstly clean up the cached information by using the yum clean all command擷取選取區域_010.jpg

To verify that the ATrpms repository is enabled by using the yum repolist or yum repolist all command.
擷取選取區域_012.jpg

To update the repositories by using the yum check-update command擷取選取區域_013.jpg

To search the clamav package(A GPL virus scanner) is available from ATrpms repository by using the yum --enablerepo=”atrpms” info clamav command
ScreenHunter_479

If it is ready, we will install the clamav package by using the yum --enablerepo=”atrpms” install clamav command
ScreenHunter_480

Reference :
(# 1).
   Using yum priorities plugin, we can avoid package conflicts as a result of having multiple repositories enabled.
To install Yum priorities by using the yum install yum-priorities command. 擷取選取區域_009.jpg
After the plugin is installed, make sure that it is enabled on /etc/yum/pluginconf.d/priorities.conf file as follows:
[main]
enabled = 1

When the plugin is enabled, we have to edit each repository file under the /etc/yum.repos.d/ directory to add priorities.
for example:  CentOS Base repository
         1.Add priority=1 to the end of the following sections [base] - [updates] - [extras]
         2.Add priority=11 to the end of the following sections [centosplus] - [contrib]

In general,
          [base], [addons], [updates], [extras] ... priority=1
          [centosplus] priority=1 (same priority as base and updates) but should be left disabled
          [contrib] ... priority=2
          Third Party Repos ... priority=N  (where N is > 10 and based on your preference)

(# 2).   How to know where is the required packages? Maybe the answer is from Linux Packages Search

2014年11月30日 星期日

CentOS 7.0 --- Install Open VM Tools on Guest VM

When I install the WMware Tool on the fresh CentOS 7 minimal version, I get an error message about the bad interpreter /usr/bin/perl command so that the installer script cannot be executed.
ScreenHunter_438The reason is the minimal CentOS installation never installs the Perl package by default.

If the network function is normal, we can execute the yum install perl command to install it from Internet repository.ScreenHunter_449
Or we can install it from local CDROM so that need to mount the CDROM media at first.
ScreenHunter_439next to create a repository configuration file as cdrom.repo in /etc/yum.repos.d/ directory with the following content.
ScreenHunter_447Then use the yum --disablerepo=\* --enablerepo=c7-media install perl commandScreenHunter_448So do that the Perl package will be installed now.ScreenHunter_450
Although we can execute the vmware tools and no any error message as before, another question will show up that tell us the ifconfig command not found.
Next action? We will do another choice to install Open VM tools in CentOS 7 guest.

According to “Guest Operating System Installation Guide”, VMware recommends using the Open VM Tools redistributed by the operating system vendors.
Why?
Open VM Tools is the open source implementation of VMware Tools and consist of a suite of virtualization utilities that improves the functionality, administration, and management of virtual machines on VMware hypervisors.
How to do it?
Install open-vm-tools package (# 1)
Install open source vmware tools by using the yum install open-vm-tools command
ScreenHunter_461
Install open-vm-tools-deploypkg plug-in package (# 2)
Due to this VM will make as a template, we will install the deployPkg Tools plug-in.
At first, we will download all the VMware Public Packaging Public Keys from the http://packages.vmware.com/tools/keys directory by using the wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub command.
ScreenHunter_465next to import the VMware packaging public keys by using the rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub commandScreenHunter_466
we will create a repository configuration file as vmware-tools.repo in /etc/yum.repos.d/ directory with the following content.
ScreenHunter_462
Install deployPkg Tools plug-in by using the sudo yum install open-vm-tools-deploypkg commandScreenHunter_463
Reference
(# 1)   VMware support of open-vm-tools (2073803)
(# 2)   Installing the deployPkg plug-in in a Linux virtual machine (2075048)
(# 3)   We cannot install Open VM Tools and VMware Tools on the same Guest VM as follows.ScreenHunter_470

2014年11月16日 星期日

Ubuntu/Lubuntu --- How to free up /boot space

Today when I launch the software Updater and install the updated software on Lubuntu, the alert message tell me “Not enough free disk space” on disk /boot.ScreenHunter_410Even though I follow the suggestion to empty the trash an remove temporary packages by using the sudo apt-get clean command, the updated software still cannot be installed.

Thank friendly author to share the related knowledge on the Internet. Based on Google Search, I find out some information for me to resolve this problem. That is :
If the /boot partition size is full and the reason is the existing old kernel, maybe we will clean the old kernel images.
ScreenHunter_409
How to clear these old kernel images?
At first, we need to realize what the current kernel version is used by using the uname -r command.ScreenHunter_411next to list all the old kernels that we ever have installed it by using the dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' commandScreenHunter_412So do that we will know what version will be removed because the current kernel is not on these list.
Then we will begin to uninstall and delete these old kernel by using the dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs sudo apt-get -y purge commandScreenHunter_414After do it, the /boot space will be free up now.ScreenHunter_415

2014年10月26日 星期日

Microsoft Azure --- how to move VM from one cloud service to another


In the same Azure Subscription, each VM will build into a new cloud service if we create a new VM by taking the default set of options in the wizard. So do that we will reach the limit of 20 cloud service and the next new VM cannot be created besides apply for the request to Microsoft Cloud Help Desk.

“Whether VMs can move between different cloud services?” The following process will finish this thought.
Get the VM information by using the Get-AzureVM -servicename “<old cloud service name>” -name “<VM name>” command

擷取選取區域_001.jpg
Export this VM config by using the Export-AzureVM -ServiceName “<old cloud service name>” -name “<VM name>” -path “<.xml file>” command
擷取選取區域_002.jpg
Remove this VM from Azure but doesn’t delete the VHD file on disk (# 1) by using the Remove-AzureVM -ServiceName “<old cloud service name>” -Name “<VM name>” command
Edit the .xml file if we want to change local port number or Subnet Name for being compatible with the destination cloud service.
擷取選取區域_005.jpg
Ensure the current storage account is accessible by executing the Get-AzureSubscription command. If we find out the CurrentStorageAccount is blank, please choose what storage account this VMis in by using the set-AzureSubscription -SubscriptionName “<Azure Subscription>” -CurrentStorageAccount “<new Storage Account>” command. (# 2)
擷取選取區域_009.jpg
Import the VM config for creating this VM back to Azure by using the Import-AzureVM -path “<.xml file>” | New-AzureVM -ServiceName “<new cloud service name>” -VNetName “<virtual network name>” command.
擷取選取區域_011.jpg
So does that the VM has already been moved to another cloud service.
擷取選取區域_013.jpg

Reference :
(# 1)   Click on the Storage Icon on the left、select a storage account to open the Storage Main Page、click on the Containers tab and vhds item. We can see the removed VHD file in the list.
擷取選取區域_004.jpg
(# 2)   If the CurrentStorageAccountName is not defined, we will get the following error message when execute the Import-AzureVM powershell command.
擷取選取區域_006.jpg

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.