configuring x server(Xorg) on headless server

objective: make nautilus . command work in a headless server. Continue reading “configuring x server(Xorg) on headless server”


ssh config example

an example reminder


Host <name of ssh config>
  HostName <ip address/domain address>
  Port 22
  User username
  IdentityFile <location to private key>
  RemoteForward 52698

The indent is actually a tab.

The remote forwarding is for rmate/rsub

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.

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