Ben Chuanlong Du's Blog

It is never too late to learn.

Fix Package Installation Issue in Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Error message: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it.

Steps to fix the issue:

Start with

sudo dpkg --remove --force-all hl1440lpr

If that …

Install sbt on CentOS

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

wget http://dl.bintray.com/sbt/rpm/sbt-0.13.5.rpm
sudo yum install sbt-0.13.5.rpm
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d …

Sharing Files Between Linux and iPad

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Synchronization Software

Install a sycnhronization software on both your computer and iPad.

Connecting Using USB

Install libimobiledevice-utils and ifuse on your Linux computer.

sudo apt-get install libimobiledevice-utils ifuse

And then run …

Use LaTeX in Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Texlive is the most popular package for LaTeX in Linux.

  2. When installing texlive in linux, you'd better install the full version to avoid missing packages. For example, in Debian you can …

Change File Permission on Linux

R: 4 W: 2 X: 1

Make a directory readable to other people.

chmod 755 dir  

Make a file readable to other people.

chmod 644 file 

Make a directory and all its subcontents readable to other people.

# make the dir and its subcontents readable and executable
chmod 755 -R dir …