ping not working -> perhaps your lan port is broken

I have a very old laptop and was trying to use it as a host for a network. I bought a switch hub and tried setting up a network with this laptop(mysql server) and a raspberry pi(mysql client). Both devices have been given a static ip. the netmask and everything was set up.

However, for some weird reason the two devices were not able to ping with each other. In order to investigate the problem I learned a few simple tricks of how to use arp and tcpdump.

I found that the laptop was sending out the ICMP requests which can be viewed from the tcpdump logs.

However, the raspberry pi was not receiving anything.

Therefore I switched the laptop to my latest laptop and in this case, it worked.

I wondered if the LAN port or the LAN chip in the old laptop is somehow half-broken.

I tried using the usb-LAN adaptor and connecting the LAN cable to this LAN port. And what do you know, it works.

So, if you have any problems with pinging with an old laptop, one suggestion would be to test if the LAN port really does work or not.

Advertisements

brother label printer linux install guide

For me, I am trying to setup my Ubuntu 14.04 to work with PT-P900W printer. My laptop is 64bit and Ubuntu is also 64bit.

Please check and follow the instructions here before actually installing the cups/lpr driver for the specific model.

The instruction link above is quite old. For the instruction of installing ia32lib package, it is no longer found easily by sudo apt-get. So for that instruction, you can bypass it by doing $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6.

After that, install the lpr driver and cups driver.

glables source build log

my environment:

$ uname -a
Linux chadrick-Inspiron-3420 4.4.0-78-generic #99~14.04.2-Ubuntu SMP Thu Apr 27 18:49:46 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

during ./configure stage.

./configure: line 3991: intltool-update: command not found
checking for intltool >= 0.21...  found
configure: error: Your intltool is too old.  You need intltool 0.21 or later.

solved by $ sudo apt-get install intltool

checking for itstool... no
configure: error: itstool not foun

solved by $ sudo apt-get install itstool

 

checking for xmllint... no
configure: error: xmllint not found

solved by $ sudo apt-get install libxml2-utils


checking for GLABELS... no
configure: error: Package requirements (    glib-2.0 >= 2.28.2     gtk+-3.0 >= 3.0.9     libxml-2.0 >= 2.7.8     librsvg-2.0 >= 2.32.0 ) were not met:

No package 'gtk+-3.0' found
No package 'librsvg-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLABELS_CFLAGS
and GLABELS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

for gtk+-3.0 error, solved by $ sudo apt-get install libgtk-3-dev

for librsvg-2.0 error, solved by $ sudo apt-get install librsvg2-bin librsvg2-dev

 

configure: error: Package requirements (    glib-2.0 >= 2.28.2     gtk+-3.0 >= 3.0.9     libxml-2.0 >= 2.7.8     librsvg-2.0 >= 2.32.0 ) were not met:

No package 'libxml-2.0' found

solved with $ sudo apt-get install libxml2-dev

just to be sure, install gnubarcde with $ sudo apt-get install barcode

 


 

 

 

 

 

 

x205ta ubuntu install guide

downloaded ubuntu 14.04 x64 desktop version.

with rufus, created bootable usb(options: gpt, iso write). did this in windows 10 environment.

download ‘bootia32.efi’ from here.

add this ‘bootia32.efi’ file in the path ‘/efi/boot/’ of the usb drive.

boot x205ta with this bootable usb. The user will be able to see the grub menu.

우분투 한글 입력 설정

우분투를 쓴지 몇년째이지만 항상 인스톨 새로하면서 애먹는 부분이 ibus 한글 입력 설정이다. 우분투 12.0x, 14.0x, 16.0x 사용하면서 항상 이 문제에 부딪혔는데, 12.0x와 14.0x 때는 구글링해서 나오는 블로그 상위 몇 개의 방법들을 어찌저찌 따라하니 겨우 해결하긴 하였으나 항상 제대로 세팅을 하는 것이 아니라 어쩌다 잘 걸리면서 해결이되는 느낌이었다.

이번에 16.0x를 새로운 노트북에 설치하면서 또 같은 문제에 부딪혔는데, 그동안 이것저것 해본 경험을 바탕으로 조금 들여다보니 보다 근본적으로 세팅하는 방법을 이해한 것 같아서 기록한다. 참고로 내 경험상 14.04는 이 과정과는 조금 다르다. 하지만 이 방법을 알고 이해한다면 14.04에서의 한글 설정에도 적용할 수 있다. 개인경험상 14.04에서는 ‘한영키’적용은 되지 않는다. 그냥 Ctrl+Space를 사용하길 권장한다.

Continue reading “우분투 한글 입력 설정”