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-355580

showkey's questions

Martin Hope
showkey
Asked: 2020-11-24 16:20:50 +0800 CST

linux下如何访问微信内置的麦克风和摄像头?

  • 1

我可以和我的朋友聊天,互相看图像skype,也就是说内置的麦克风和扬声器可以skype在我的 Ubuntu 操作系统上使用。

没有wechat在Linux上运行的正式版,wechat只能在android、iPhone、mac、windows上运行。一些极客使用 docker 以wechat这种方式在 Linux 中构建:

docker pull bestwu/wechat
xhost +
docker run -d --name wechat --device /dev/snd \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v $HOME/WeChatFiles:/WeChatFiles \
           -e DISPLAY=unix$DISPLAY \
           -e XMODIFIERS=@im=fcitx \
           -e QT_IM_MODULE=fcitx \
           -e GTK_IM_MODULE=fcitx \
           -e AUDIO_GID=`getent group audio | cut -d: -f3` \
           -e GID=`id -g` \

现在wechat在终端输入,我可以用它输入文字,我可以听到朋友的声音,但他听不到我的声音,屏幕上不能显示图像(图像可以显示在cheese和skype),内置麦克风和摄像头无法使用。wechat如何解决?

可能的方式:

电子微信

在此处输入图像描述

Installed ,can't be start successfully.

网络上的微信

在此处输入图像描述

在此处输入图像描述

speakers microphone webcam soundcard docker
  • 4 个回答
  • 670 Views
Martin Hope
showkey
Asked: 2020-11-24 03:24:08 +0800 CST

为什么不能同时在扬声器和麦克风中录制音频?

  • 0

在我的电脑上列出声卡信息。

pacmd list-sources |grep name:
    name: <alsa_input.usb-SN0002-02.analog-mono>
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
    name: <alsa_input.pci-0000_00_1b.0.analog-stereo>

将变量设置为简单的下一个命令:

speaker=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
mic=alsa_input.usb-SN0002-02.analog-mono

录制扬声器上播放的音乐:

ffmpeg -use_wallclock_as_timestamps 1 -f pulse -i $speaker -acodec copy  /tmp/out.mkv

录制对着麦克风说话的声音:

ffmpeg -use_wallclock_as_timestamps 1 -f pulse -i $mic -acodec copy  /tmp/out.mkv

现在在扬声器和麦克风中录制声音:

ffmpeg -use_wallclock_as_timestamps 1 \
    -f pulse -i $speaker -f pulse -i $mic \
    -acodec copy  /tmp/out.mkv

它在屏幕上输出信息:

Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, pulse, from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor':
  Duration: N/A, start: 1606130053.472713, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, pulse, from 'alsa_input.usb-SN0002.analog-mono':
  Duration: N/A, start: 1606130053.597432, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s

它没有记录对麦克风说话的/tmp/out.mkv声音,只记录扬声器上播放的声音?为什么ffmpeg猜测输入流的通道布局?

我已经尝试过以下方法superuser:

https://superuser.com/questions/899352/ffmpeg-commandline-options-to-recording-audio-from-mic-and-speakers

ffmpeg -use_wallclock_as_timestamps 1 \
    -f pulse -i $speaker -f pulse -i $mic   \
    -acodec libmp3lame -map 0:0 -map 1:0   /tmp/out.mkv

它什么也不记录,扬声器和麦克风上的声音都无法记录。

sound pulseaudio microphone ffmpeg alsa
  • 1 个回答
  • 196 Views
Martin Hope
showkey
Asked: 2020-11-21 19:21:25 +0800 CST

为什么只有一个 USB 摄像头显示两个 Video4Linux 设备?

  • 0

我买了一个新的 USB 网络摄像头,插上它。

ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 Nov 21 10:57 /dev/video0
crw-rw----+ 1 root video 81, 1 Nov 21 10:57 /dev/video1

为什么只有一个 USB 摄像头显示两个 Video4Linux 设备?

camera
  • 1 个回答
  • 433 Views
Martin Hope
showkey
Asked: 2018-10-01 23:25:33 +0800 CST

如何在不变形的情况下调整 gif 的大小并在裁剪时删除空白区域?

  • 1

下面的 gif 尺寸为 600*800。高度为 800 像素,所以底部有很多空白空间我要删除。

源 gif:old.gif

这被保存为old.gif:

file old.gif 
old.gif: GIF image data, version 89a, 600 x 800

使用转换命令调整大小:

convert old.gif -coalesce temp.gif
convert -size 600x800 temp.gif -resize 600x400! new.gif

!表示忽略纵横比,不要保持纵横比不变。
结果如下:

压扁的 gif

新文件new.gif变形。

如何在不变形的情况下调整 gif 的大小?

-crop我的论点尝试。

convert old.gif -crop 600x400+0+0 new.gif

带有空格的裁剪 gif

如何删除 new.gif 中的空白区域?

空白的白色区域在 Firefox 中很明显。 convert old.gif -crop 600x400+0+0 new.gif无法删除中的空白区域new.gif。

浏览器中的gif

使用该repage参数将删除空白的白色区域,但它会使 gif 更加模糊。

convert old.gif -crop 600x400+0+0 -trim  +repage  new.gif    

模糊的 gif

command-line image-processing convert imagemagick gif
  • 1 个回答
  • 1580 Views
Martin Hope
showkey
Asked: 2018-04-24 05:33:49 +0800 CST

关闭前执行脚本的日志顺序?

  • 3
cat  /home/upload.sh  
/usr/bin/scp -P 22   /home/material.gz   root@remote_ip:/home
date  >>  /var/log/upload.log

upload.service 的设置

cat  /etc/systemd/system/upload.service
[Unit]
Description=upload files into my vps 
Before=shutdown.target  reboot.target
Requires=network-online.target
After=network.target 

[Service]
ExecStart=/bin/true
ExecStop=/bin/bash /home/upload.sh  

[Install]
WantedBy=multi-user.target

该脚本可以在关机前将文件上传到我的 vps。

奇怪的是上传服务的日志。

journal -u upload 
Apr 23 12:54:50 localhost systemd[1]: Stopping upload files into my vps...
Apr 23 12:55:13 localhost systemd[1]: Stopped upload files into my vps.
Apr 23 12:55:19 localhost systemd[1]: Started upload files into my vps.
Apr 23 12:55:19 localhost systemd[1]: Starting upload files into my vps...

为什么不是如下命令?

Apr 23 12:54:50 localhost systemd[1]: Stopping upload files into my vps...
Apr 23 12:55:13 localhost systemd[1]: Stopped upload files into my vps.
Apr 23 12:55:19 localhost systemd[1]: Starting upload files into my vps...
Apr 23 12:55:19 localhost systemd[1]: Started upload files into my vps.

只有最后两行不同,为什么?
哪个导致这种日志信息?

按照 George Udosen 说的做:在服务文件中试试这个 [Unit] Requires=network-online.target After=network.target network-online.target。

我的设置

这根本没有用。

按照 George Udosen 的说法修改我的设置后登录

lshw -C  cpu
  *-cpu                     
       product: Intel(R) Xeon(R) CPU E3-1275 v5 @ 3.60GHz
       vendor: Intel Corp.
       vendor_id: GenuineIntel
       physical id: 1
       bus info: cpu@0
       width: 64 bits
       capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf cpuid_faulting pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat epb pln pts dtherm hwp hwp_noitfy hwp_act_window hwp_epp invpcid_single tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx xsaveopt xsavec xgetbv1 xsaves
shutdown systemd
  • 1 个回答
  • 339 Views
Martin Hope
showkey
Asked: 2018-04-14 23:08:23 +0800 CST

无法解析主机:content.dropboxapi.com 何时在关机时上传文件

  • 3

我想在我的电脑关闭时将文件上传到我的保管箱。

sudo vim  /etc/systemd/system/upload.service
[Unit]
Description=upload files into dropbox
Before=network.target shutdown.target  reboot.target
Requires=network-online.target

[Service]
ExecStop=/bin/true
ExecStart=/bin/bash  /home/upload.sh 
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

和upload.sh 脚本。

cd  /home
curl -X POST https://content.dropboxapi.com/2/files/upload \
            --header "Authorization: Bearer xxxx" \
            --header "Dropbox-API-Arg:  {\"path\":\"/test.txt\",\"mode\":{\".tag\":\"overwrite\"}}" \
            --header "Content-Type: application/octet-stream" \
            --data-binary @"test.txt"

bash upload.sh可以成功执行,并将test.txt文件上传到我的保管箱中。

sudo systemctl enable upload service  

重新启动我的电脑。

sudo journalctl -u upload 

Apr 13 23:58:52 localhost systemd[1]: Started upload files into dropbox.
Apr 13 23:58:52 localhost systemd[1]: Starting upload files into dropbox...
Apr 13 23:58:52 localhost bash[117]: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Apr 13 23:58:52 localhost bash[117]: Dload  Upload   Total   Spent    Left  Speed
Apr 13 23:58:52 localhost bash[117]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: content.dropboxapi.com; Un
Apr 13 23:58:52 localhost systemd[1]: upload.service: main process exited, code=exited, status=6/NOTCONFIGURED
Apr 13 23:58:52 localhost systemd[1]: Unit upload.service entered failed state.
Apr 13 23:58:52 localhost systemd[1]: upload.service failed.

某些 DNS 错误Could not resolve host: content.dropboxapi.com导致 upload.service 失败。

我Requires=network-online.target在upload.service中添加了,如何让DNS解析器在我的电脑关机时解析主机?

shutdown systemd dropbox
  • 3 个回答
  • 651 Views
Martin Hope
showkey
Asked: 2017-09-02 18:10:42 +0800 CST

如何分别显示cpu使用情况?

  • 5

这是我的 cpu 部分信息(省略不必要的)。

cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 60
model name  : Intel(R) Celeron(R) CPU G1840 @ 2.80GHz
stepping    : 3
microcode   : 0x19
cpu MHz     : 2800.000
cache size  : 2048 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 2

我的电脑里有两个cpu。
top命令可以整体显示cpu使用情况。
如何分别显示cpu1使用情况和cpu2使用情况?

cpu
  • 2 个回答
  • 2250 Views
Martin Hope
showkey
Asked: 2017-05-04 18:34:11 +0800 CST

/bin/bash -c 在服务单元中是什么意思?

  • 6

让我的应用程序在重启期间自动运行。

sudo vi /etc/systemd/system/app.service

[Unit]
Description=app
After=network.target

[Service]
ExecStart=/usr/bin/python /usr/local/bin/app  
[Install]
WantedBy=multi-user.target


sudo systemctl daemon-reload
sudo systemctl enable app.service

现在我的应用程序在重启期间自动运行。
我想让我的应用程序将所有输出信息写入 /var/log/app.log。
这就是我所做的。
1.sudo touch /var/log/app.log
2. 仅更改 ExecStart。

ExecStart=/usr/bin/python /usr/local/bin/app   > /var/log/app.log 2>&1

应用程序可以运行但没有日志写入 /var/log/app.log。
Root 将执行该应用程序。
这里就是证据。

ps aux|grep  app
root       246  0.0  3.8  56052 10056 ?        Ss   00:57   0:00 /usr/bin/python /usr/local/bin/app   > /var/log/app.log 2>&1

为什么root没有权限将日志写入/var/log/app.log?

将 ExecStart 语句更改为

ExecStart=/bin/sh -c '/usr/bin/python /usr/local/bin/app   > /var/log/app.log 2>&1'  

问题解决了。
1.为什么root没有写日志到/var/log/app.log的权限?
2. /bin/bash -c 在服务单元中是什么意思?

permissions
  • 3 个回答
  • 7329 Views
Martin Hope
showkey
Asked: 2017-01-13 05:07:01 +0800 CST

如何获取 ps 命令的头部字段?

  • 0
ps -el |grep  systemd
4 S     0     1     0  0  80   0 -  7233 -      ?        00:00:00 systemd

如何获得以下输出格式?

ps -el |grep  systemd
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
4 S     0     1     0  0  80   0 -  7233 -      ?        00:00:00 systemd
command-line
  • 2 个回答
  • 1191 Views
Martin Hope
showkey
Asked: 2017-01-04 03:14:18 +0800 CST

CLI 和 TUI 之间有区别吗?

  • 10

在“基于文本的用户界面”维基百科的文章中,当谈到基于文本的用户界面时,第一句话是:

不要与命令行界面混淆。

我找不到CLI(命令行界面)和TUI(文本用户界面)之间的一些区别。

这是真的还是假的?

command-line
  • 3 个回答
  • 6960 Views
Martin Hope
showkey
Asked: 2017-01-02 22:16:14 +0800 CST

为什么我不能删除目录?

  • 0
debian8@hwy:~$ ls  -al  /var/www/html/wp/.git
total 8
drwxr-xr-x 2 debian8  debian8  4096 Jan  2 14:07 .
drwxr-xr-x 6 www-data www-data 4096 Jan  2 06:43 ..

/var/www/html/wp/.git属于debian8,为什么debian8不能删除?

debian8@hwy:~$ rm  -rf  /var/www/html/wp/.git
rm: cannot remove ‘/var/www/html/wp/.git’: Permission denied

sudo rm -rf /var/www/html/wp/.git可以工作,为什么不rm -rf /var/www/html/wp/.git呢?

的父目录/var/www/html/wp/.git不/var/www/html/wp属于debian8,但我认为这并不重要。

delete
  • 2 个回答
  • 5144 Views
Martin Hope
showkey
Asked: 2016-12-30 16:27:24 +0800 CST

如何为多个远程服务器设置无密码 ssh 登录?

  • 1

机器 A 是我的本地电脑。
机器 B 是我的远程 vps 电脑,它的 ip 是 vps_ip1。
机器C是另一台远程vps pc,它的ip是vps_ip2。
如下设置 ssh 自动登录(无密码)。

第 1 步:在机器 A 上创建身份验证 SSH-Kegen 密钥

ssh-keygen -t rsa  -P ''
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):    #it is a comment ,input nothing just enter
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.

Step2 将生成的公钥上传到机器B

scp  /root/.ssh/id_rsa.pub root@vps_ip1:/root/.ssh/authorized_keys

Step3 在机器B上设置权限

ssh root@vps_ip1 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

现在我可以使用 ssh 命令登录机器 B。

ssh  root@vps_ip1

机器 C 的步骤几乎相同。

第 1 步:在机器 A 上创建身份验证 SSH-Kegen 密钥

ssh-keygen -t rsa  -P ''
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):/root/.ssh/myvps
Your identification has been saved in /root/.ssh/myvps.
Your public key has been saved in /root/.ssh/myvps.pub.

Step2 将生成的公钥上传到机器C

scp  /root/.ssh/myvps.pub root@vps_ip2:/root/.ssh/authorized_keys

Step3 在机器C上设置权限

ssh root@vps_ip2 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

现在我无法使用 ssh 命令登录机器 C。

ssh  root@vps_ip2

它们之间的唯一区别在于步骤1,输入要保存密钥的文件,这有关系吗?
为什么我的公钥不能保存为 /root/.ssh/myvps.pub?
在我的情况下,机器 A 必须 ssh 两个远程服务器,所以我必须将其他远程服务器分配为不同的名称。
如何解决?

ssh
  • 2 个回答
  • 5900 Views
Martin Hope
showkey
Asked: 2016-09-21 18:06:06 +0800 CST

我的目录在哪里保存 MS 字体?

  • 1

这是安装ms字体的步骤。

apt-get install  ttf-mscorefonts-installer
dpkg-reconfigure ttf-mscorefonts-installer

有一个窗口弹出。

在此处输入图像描述

如何填空继续?
奥斯告诉我做这项工作。
在 outout 结束时apt-get install ttf-mscorefonts-installer

All done, no errors.
The following fonts failed to install :  andale32.exe comic32.exe.
The fonts are NOT installed.
Please run 'dpkg-reconfigure ttf-mscorefonts-installer' to perform the installation again
fonts
  • 1 个回答
  • 804 Views
Martin Hope
showkey
Asked: 2016-08-29 20:07:19 +0800 CST

如何区分tty1和tty7之间的pts?

  • 1
ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root       830  1.5  1.2 264456 50692 tty7     Ss+  11:38   0:20 /usr/bin/X :0 -
root      2458  0.0  0.0  22320  1968 tty1     Ss+  11:49   0:00 /sbin/agetty --
debian8   2657  0.1  0.1  33528  7480 pts/2    Ss+  11:59   0:00 /bin/bash
debian8   2671  0.4  0.1  33528  7456 pts/3    Ss+  11:59   0:00 /bin/bash
debian8   2682  0.6  0.1  33528  7452 pts/4    Ss+  12:00   0:00 /bin/bash
debian8   2694  1.2  0.1  33528  7432 pts/5    Ss+  12:00   0:00 /bin/bash
root      2703  0.0  0.0  27004  2640 pts/1    R+   12:00   0:00 ps aux

现在我想区分tty1和tty7之间的pts。tty1开多少pt,tty7开多少pt?

tty
  • 1 个回答
  • 860 Views
Martin Hope
showkey
Asked: 2016-08-29 04:01:06 +0800 CST

所有的 OpenPGP 公钥服务器都是平等的吗?

  • 7

执行时出现错误信息apt-get update。

W:签名验证出错。存储库未更新,将使用以前的索引文件。

GPG error: http://download.virtualbox.org jessie InRelease: The following
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY A2F683C52980AECF

我找到了答案:

gpg --keyserver  key_server_name  --recv-keys  A2F683C52980AECF
gpg --armor --export A2F683C52980AECF| apt-key add -

有两个pool.sks-keyservers.net,keys.gnupg.net在许多公钥服务器中,它们是否相等?

gpg --keyserver  pool.sks-keyservers.net  --recv-keys  A2F683C52980AECF
gpg --keyserver  keys.gnupg.net  --recv-keys  A2F683C52980AECF

这两个命令是否具有相同的效果?

gnupg
  • 3 个回答
  • 2822 Views
Martin Hope
showkey
Asked: 2016-07-27 19:39:37 +0800 CST

为什么不能使用 HTTP 代理?

  • 0

我的家庭互联网连接是通过 pppoe,在 VPS 114.114.114.114 上安装了 Apache2 服务器。

/etc/apache2/sites-enabled/000-default.confVPS 114.114.114.114 上的内容。

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
    ProxyRequests On
    ProxyVia On
    <Proxy *>
       Order Deny,Allow
       Deny from all
       Allow from all
    </Proxy>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

在 vps 上启用了 Mod 代理和 proxy_http。
现在它是我本地机器 Firefox 上的代理设置。

在此处输入图像描述 重新启动 Firefox 并在我的本地电脑终端上进行测试。

curl -x 114.114.114.114:80  -I www.yahoo.com
HTTP/1.1 301 Redirect
Date: Wed, 27 Jul 2016 03:20:12 GMT
Server: ATS
Via: https/1.1 ir25.fp.ir2.yahoo.com (ApacheTrafficServer)
Location: https://www.yahoo.com/
Content-Type: text/html
Content-Language: en
Cache-Control: no-store, no-cache
Content-Length: 304
Via: 1.1 localhost.localdomain

为什么过孔不是114.114.114.114?

HTTP 请求没有发布到我的 HTTP 代理 114.114.114.114,它直接从我的 localhost 发布,如何将 HTTP 请求发布到我的 HTTP 代理 114.114.114.114?

server
  • 1 个回答
  • 271 Views
Martin Hope
showkey
Asked: 2016-06-24 06:06:20 +0800 CST

aria2c中的-o参数不能重命名下载的文件

  • 3
aria2c -S  /home/se.torrent

Files:    
idx|path/length    
===+===========================================================================
1|./test.mkv        
 |283MiB (297,429,086)        

---+---------------------------------------------------------- -----------------------------------------

我想将下载的文件另存为 /tmp 中的 ok.mkv。

aria2c -d   /tmp  -o  ok.mkv    /home/se.torrent

下载的名字不能改成 /tmp/ok.mkv ,
执行命令时还是 /tmp/test.mkv 。 在此处输入图像描述

在手册中aria2c -h,没有字符串,例如:
NOTE: You cannot specify a file name for Metalink or BitTorrent downloads.

command-line
  • 1 个回答
  • 6712 Views
Martin Hope
showkey
Asked: 2016-03-28 02:51:53 +0800 CST

如何简化命令:四个相同的结构?

  • 1
ntpdate 110.75.186.247 >> /var/log/ntpdate.log ||  ntpdate 110.75.186.247 >> /var/log/ntpdate.log || ntpdate 203.123.48.218 >> /var/log/ntpdate.log|| ntpdate 103.16.199.21  >> /var/log/ntpdate.log

我试过两种方法,都没有成功。

ntpdate 110.75.186.247  ||  ntpdate 110.75.186.247  || ntpdate 203.123.48.218 || ntpdate 103.16.199.21  >> /var/log/ntpdate.log
ntpdate 110.75.186.247  ||  ntpdate 110.75.186.247  || ntpdate 203.123.48.218 || ntpdate 103.16.199.21  &&>> /var/log/ntpdate.log

如何简化命令?

command-line
  • 3 个回答
  • 157 Views
Martin Hope
showkey
Asked: 2016-03-28 02:08:05 +0800 CST

如何为我的 ntpdate 创建一个特殊的日志?

  • 1
ntpdate  -s 0.asia.pool.ntp.org

s:将日志输出从标准输出(默认)转移到系统系统日志工具。

tail  /var/log/syslog

将看到 ntpdate 日志。

我想在 /var/log/ntpdate.log 中创建一个特殊的日志文件,以便 ntpdate 命令写入其中,该怎么做?

log
  • 1 个回答
  • 783 Views
Martin Hope
showkey
Asked: 2015-10-10 05:44:44 +0800 CST

如何使用一个命令自动化“dpkg-reconfigure locales”?

  • 18

在控制台输入dpkg-reconfigure locales,一个gui跳出来,我选择en_HK.UTF-8作为我的目标,点击进入。

在此处输入图像描述

dpkg-reconfigure locales
Generating locales (this might take a while)...
en_HK.UTF-8... done

如何将整个过程自动化到一个命令中?

locale
  • 6 个回答
  • 19706 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