Ubuntu

Ubuntu用户和开发人员的问答



3
如何升级Gradle?
这表明Gradle是最新的: thufir@doge:~$ sudo apt install gradle Reading package lists... Done Building dependency tree Reading state information... Done gradle is already the newest version (2.10-1). 0 upgraded, 0 newly installed, 0 to remove and 629 not upgraded. 如何升级到Gradle4.x?最好使用umake而非SDKMAN!这似乎是他们的建议。 (由于连接缓慢,我不想更新所有软件包。)


1
ALSA与PulseAudio声音架构之间有什么关系?
好吧,这让我很困惑。据我所知,ALSA是许多声卡驱动程序的程序包,而PulseAudio是一种音频应用程序,它可以处理诸如混合或均衡器之类的声音数据。 但是,为什么在alsamixer的面板中有一个称为PCM的控制栏。通过控制声卡上的芯片,这实际上会改变音量吗?如果不是,为什么它不是PulseAudio的工作? ALSA与PulseAudio声音架构之间有什么关系?
40 pulseaudio  alsa 

3
将函数一行写入〜/ .bashrc
为什么当我尝试只在一行中写入一个函数时.bashrc, list(){ ls -a } 我出错了吗? bash: /home/kasiya/.bashrc: line num: syntax error: unexpected end of file 但是当我多行编写时可以吗? list(){ ls -a }
40 bashrc 

3
如何安装glib?
我想在Ubuntu 11.04中构建Empathy。当我遵循构建过程时, ./autogen.sh 贝壳对我说 libtoolize: copying file `m4/lt~obsolete.m4' checking for autoconf >= 2.53... testing autoconf2.50... not found. testing autoconf... found 2.67 checking for automake >= 1.9... testing automake-1.11... found 1.11.1 checking for libtool >= 1.5... testing libtoolize... found 2.2.6b checking for glib-gettext >= 2.2.0... testing glib-gettextize... not found. ***Error***: You …


6
我可以将立体声音频缩混为单声道吗?
我的计算机旁边有一个扬声器,该扬声器主要用作耳机放大器。有时我需要将其用作扬声器。是否可以在系统范围内或作为媒体播放器的插件将音频输出从立体声快速更改为单声道?
40 sound 


3
如何以root身份运行Visual Studio Code
我最近安装了Visual Studio Code编辑器。我下载了32bit .deb软件包。安装并正常运行,但是当我尝试将文件保存在项目文件夹中时,它返回的权限被拒绝。所以,我用 sudo code . 它返回 It is recommended to start vscode as a normal user. To run as root, you must specify an alternate user data directory with the --user-data-dir argument. 我寻找了如何使用--user-data-dir参数指定备用用户数据目录,但没有发现太多。 那么,如何在Ubuntu 16.04中以根用户身份运行Visual Studio Code? 编辑:我更喜欢避免更改目录权限的解决方案。 edit2:项目目录:(/var/www/project我在vhost中使用Apache)

2
允许组对目录进行读写访问
我有两个用户user1和user2,它们都是groupA的成员。user2在其主目录中有一个名为folderA的文件夹。如果他们希望允许groupA的所有成员具有读写执行权限,他们将如何做? 如果folderA包含许多文件和其他文件夹,这些文件也需要具有读写执行权限,该怎么办? 有关组的信息在网络上有点“杂乱无章”,因此,我在此提出问题,希望有人发布明确的答案,也可能对其他人有所帮助。 谢谢!

5
如何通过命令行更改ubuntu的服务器日期和时间?
Ubuntu服务器的当前日期和时间与时区的日期和时间不同。我试过使用: sudo date "30 Sep 2015 4:43:42" 更改它,但它没有更改日期和时间,只是在终端上打印了我更改的日期和时间,但是在执行时: sudo hwclock --show 日期和时间仍然是旧的。 更改Ubuntu Server日期和时间的正确方法是什么?

3
当您尝试进行更改时,如何在git中删除有问题的键?
我已经进行了大量搜索并测试了不同的解决方案,但没有成功! 当我想推送代码时,出现以下错误: Warning: the ECDSA host key for 'git.mywebsite.ir' differs from the key for the IP address '164.138.23.11' Offending key for IP in /home/alireza/.ssh/known_hosts:10 Matching host key in /home/alireza/.ssh/known_hosts:1 Are you sure you want to continue connecting (yes/no)? yes 每次推送更改时,我应该怎么做才能删除此消息?任何的想法?
40 ssh  git 


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.