AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-5698

Dor's questions

Martin Hope
Dor
Asked: 2015-03-05 11:35:27 +0800 CST

为什么在安装 MS Office 字体“exe”时会下载文件?

  • 15

我安装了这个ttf-mscorefonts-installer包来为我的系统获得额外的字体。
然后我注意到这些文件是“exe”。为什么?
据我所知,字体不是二进制文件。

$ sudo apt-get install "ttf-mscorefonts-installer"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ttf-mscorefonts-installer
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 0 B/27.8 kB of archives.
After this operation, 134 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package ttf-mscorefonts-installer.
(Reading database ... 298130 files and directories currently installed.)
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu1_all.deb ...
Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu1) ...
Processing triggers for update-notifier-common (0.154.1ubuntu1) ...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/comic32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/courie32.exe
fonts
  • 4 个回答
  • 3409 Views
Martin Hope
Dor
Asked: 2010-11-19 23:53:16 +0800 CST

导入 message/rfc822 类型的邮件文件

  • 2

我已成功将邮件文件导入 KMail,但由于每个文件中只有一条消息,因此每条消息都存储在单独的文件夹中,因此阅读起来很不方便。
(我使用了Import Evolution 2.x Local Mails and Folder Structure导入这些文件的选项)
如何在不让 KMail 为每条消息指定一个单独的文件夹的情况下导入邮件文件?

在此处查看邮件文件的示例。

kmail
  • 3 个回答
  • 2540 Views
Martin Hope
Dor
Asked: 2010-11-14 13:03:16 +0800 CST

~/.profile 是由 bash 提供的吗?

  • 4

我正在尝试创建一个全局计数器变量以查看执行了多少次~/.profile。因此:
在~/.bashrc:

# ... 
if [ "$PROFILE_EXEC_TIMES" = "" ]; then
 export PROFILE_EXEC_TIMES=0
fi
let "PROFILE_EXEC_TIMES += 1"

在~/.profile:

# ... 
export PROFILE_EXEC_TIMES
let "PROFILE_EXEC_TIMES += 1"

但是当我打开一个新的 shell 并编写echo $PROFILE_EXEC_TIMES时,我得到的只是1. $PROFILE_EXEC_TIMES必须至少为 2。我怀疑这~/.profile不是由 bash 提供的……如果是这样,我需要做什么才能检查~/.profile执行了多少次?


编辑:
我注意到这是通过以下行/etc/gdm/Xsession采购的:~/.profile

test -f "$HOME/.profile" && . "$HOME/.profile"

并由以下几行~/.bashrc来源:~/.profile

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

另外,我在~/.bashrc&中添加了以下行~/.profile:

echo $(cd ${0%/*} && echo $PWD/${0##*/}) >> /home/myUserName/a

并且可以看到在我登录到我的用户后,文件中只添加了一行。

我想强调一下,我的目标是:找出用户登录时执行
了多少次。~/.profile

额外细节:

$ uname -a
Linux my-desktop 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 x86_64 GNU/Linux
$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
  • 我的/etc/gdm/Xsession
  • 我的~/.bashrc
  • 我的~/.profile
bash
  • 5 个回答
  • 2654 Views
Martin Hope
Dor
Asked: 2010-11-07 13:29:27 +0800 CST

为什么mysql进程在启动时启动?

  • 3

如您所见,mysql 仅存在于/etc/init.d目录中而不存在于 中/etc/rcN.d,因此它不应在启动时启动。

$ sudo find /etc -regex ".*\(rc.*d\|init\.d\).*" | sudo grep "mysql" | sort
/etc/init.d/mysql
upstart init server boot mysql
  • 1 个回答
  • 503 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve