Ben Chuanlong Du's Blog

It is never too late to learn.

Change Modified Time of Files

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

  1. Change the modifiled timestamp of a file to the specified timestamp.

    touch -m -t 201512180130.09 some_file
    
  2. Change the modified timestamp of a file to the current time.

    touch -m some_file …

Configure Proxy for Apt

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

Add the following lines into the file /etc/apt/apt.conf, where proxy_server is the address/ip of the server and port is the port of the proxy service.

Acquire::http …

Shortcuts for KDE

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

  1. KDE supports the Win/Super key to bring up the application launcher now. If you are on an older KDE distributions which does not have it by default, you can get …

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 …

Turn on Remote Login in Mac

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

You cannot SSH into a Mac (even if openssh is install on it) unless Remote Login is turned on. You can follow the steps below to turn on Remote Login on …

Install GNU Utils Using MacPorts

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

Configuration

Run the following command after installation.

export PATH=/opt/local/libexec/gnubin/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH

Installation

sudo port install …