sudo shutdown -h +$(($(($(date -d 'yyyy-mm-dd hh:mm:ss' +"%s") - $(date +"%s"))) / 60))
There is also the at command but I'm sure how that well that work with commands that would require sudo.
I spend a lot of time finding the right way to do everything, mostly related to computing. This is a list of my findings.
sudo shutdown -h +$(($(($(date -d 'yyyy-mm-dd hh:mm:ss' +"%s") - $(date +"%s"))) / 60))
sudo mkdir /usr/local/share/java/ sudo wget http://downloads.openmicroscopy.org/bio-formats/5.1.3/artifacts/bioformats_package.jar \ -O /usr/local/share/java/bioformats_package-5.1.3.jar sudo ln -s bioformats
_package
-5.1.3.jar /usr/local/share/java/bioformats
_package
.jar
The /usr/local hierarchy is for use by the system administrator when installing software locally.
[...]
Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr.
... Hit http://ftp.ie.debian.org wheezy/main Translation-hu Hit http://ftp.ie.debian.org wheezy/main Translation-fr Hit http://ftp.ie.debian.org wheezy/main Translation-vi Hit http://ftp.ie.debian.org wheezy/main Translation-zh Hit http://ftp.ie.debian.org wheezy/main Translation-ru ...
$ sudo rm /var/lib/apt/lists/*_i18n_Translation*
$ echo 'Acquire::Languages "environment";' | sudo tee -a /etc/apt/apt.conf.d/99translations
/var/lib/apt/lists/
. It is unlikely this default was changed but if these two commands did not work, read the very long answer below."none"
, you will lose the long description for all package in all languages, including English.apt.conf.d/70debconf
file or create an apt.conf
file. this has been modularized. The idea is that by having multiple
files, it's easier to maintain and write scripts that will change the
settings./var/lib/apt/lists/
[2] and have the word Translation
on their name. Note that the English language is also considered a translation (the file that ends in i18n_Translation-en
).Language
option to select which translation files should be downloaded[3]. This option should be set to "environment"
. Most advice out there is to set this option to "none"
. This will cause no translation to be downloaded at all, including your own language, even if it is English. Setting this to "none"
, really means no package description at all (except the short descriptions in English)."environment"
is translated into the LC_MESSAGES
environment variable. These variables are not actually exported but their value can be inspected with the locale program (run sudo dpkg-reconfigure locales
to change locales).## display locale variables $ locale LANG=en_IE.utf8 LANGUAGE= LC_CTYPE="en_IE.utf8" LC_NUMERIC="en_IE.utf8" LC_TIME="en_IE.utf8" LC_COLLATE="en_IE.utf8" LC_MONETARY="en_IE.utf8" LC_MESSAGES="en_IE.utf8" LC_PAPER="en_IE.utf8" LC_NAME="en_IE.utf8" LC_ADDRESS="en_IE.utf8" LC_TELEPHONE="en_IE.utf8" LC_MEASUREMENT="en_IE.utf8" LC_IDENTIFICATION="en_IE.utf8" LC_ALL= ## show available locales $ locale -a C C.UTF-8 en_GB.utf8 en_IE.utf8 en_US.utf8 POSIX pt_PT.utf8
/etc/apt/apt.conf.d
, the collection of which makes the configuration of APT. Each of these files have the format of a two digit number (the order in which they are read) followed by a word (a reference to what they do).$ ls /etc/apt/apt.conf.d/
00aptitude 01autoremove 20packagekit
00CDMountPoint 20dbus 50unattended-upgrades
00trustcdrom 20listchanges 70debconf
99translations
would be appropriate. The following command will create the file with the correct line (and in the case it already exists, will append to it so make sure what you have in the end).$ echo 'Acquire::Languages "environment";' | sudo tee -a /etc/apt/apt.conf.d/99translations
99proxies
file (maybe to specify special proxies that should be used to download packages) together with a 99translations
file.aptitude update
is ran.$ sudo rm /var/lib/apt/lists/*_i18n_Translation*
[2] aptitude search
) and a longer one
(that is added to it when using aptitude show
). Compare the following two for the scons package:$ apt-config dump
... Dir "/"; Dir::State "var/lib/apt/"; Dir::State::lists "lists/"; ...
The Languages subsection controls which Translation files are downloaded and in which order APT tries to display the description-translations. APT will try to display the first available description in the language which is listed first. Languages can be defined with their short or long language codes. Note that not all archives provide Translation files for every language - the long language codes are especially rare.
The default list includes "environment" and "en". "environment" has a special meaning here: it will be replaced at runtime with the language codes extracted from the LC_MESSAGES environment variable. It will also ensure that these codes are not included twice in the list. If LC_MESSAGES is set to "C" only theTranslation-en
file (if available) will be used. To force APT to use no Translation file use the settingAcquire::Languages=none
. "none" is another special meaning code which will stop the search for a suitable Translation file. This tells APT to download these translations too, without actually using them unless the environment specifies the languages. So the following example configuration will result in the order "en, de" in an English locale or "de, en" in a German one. Note that "fr" is downloaded, but not used unless APT is used in a French locale (where the order would be "fr, de, en").
Acquire::Languages { "environment"; "de"; "en"; "none"; "fr"; };
Note: To prevent problems resulting from APT being executed in different environments (e.g. by different users or by other programs) all Translation files which are found in/var/lib/apt/lists/
will be added to the end of the list (after an implicit "none").