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

gsamaras's questions

Martin Hope
gsamaras
Asked: 2018-10-26 01:18:31 +0800 CST

使用 security.conf 授予调度权限

  • 0

我正在运行一个 C++ 程序,它想要执行自己的调度策略。它不断发出警告说它没有权利,我想给它它想要的所有权利!

我试着做:

sudo nano /etc/security/limits.conf

并添加:

@users          -       rtprio          99
@users          -       nice            -19

然后我做了:sudo usermod -aG users gsamaras,gsamaras我在哪里,唯一的用户。

关闭终端并再次尝试后,它仍然会发出警告。

我也尝试过直接使用gsamaras而不是@usersin limits.conf,但仍然没有运气。有任何想法吗?

configuration security users schedule 16.04
  • 1 个回答
  • 32 Views
Martin Hope
gsamaras
Asked: 2018-09-25 01:07:07 +0800 CST

我的磁盘死了吗?我无法启动![复制]

  • 1
这个问题在这里已经有了答案:
如何检查存储介质(硬盘或闪存驱动器)的完整性?[复制]
如何在当前版本的 Ubuntu 14.04 到 20.04 上检查 SSD 或 HDD 的 SMART 状态? (3 个回答)
3年前关闭。

我有一台使用了 8 年的双启动笔记本电脑,但它无法启动 Ubuntu 或 Windows。选择 Ubuntu 时,我得到一个 BusyBox,它主要显示:

failed command: READ FPDMA QUEUED
blk_update_request: I/O error, dev sda, sector 552058008

在此处输入图像描述

是否有任何软件解决方案或者这台机器注定要失败?

我试过例如:

dd if=/dev/sda of=/dev/sda

但它没有任何效果。

我不在乎我是否丢失了所有数据,我只是希望它再次活着。


我通过 Live CD 进行了智能检查,当我第一次访问磁盘时,/dev/sda 没有问题,有 57 个坏扇区。在运行一个短路和一个运输后,测试失败了:

在此处输入图像描述

这是否意味着我的磁盘已死?

所有属性在智能测试中都有一个OK的评估,所以可能会有希望。此外,如果我从 live CD 中选择“检查光盘是否有缺陷”,它会完成,没有发现任何错误。

dual-boot mount disk busybox io
  • 2 个回答
  • 1483 Views
Martin Hope
gsamaras
Asked: 2016-06-25 11:18:31 +0800 CST

IndexError:在 Ubuntu 14.04 中安装 iPython 时列出的索引超出范围

  • 1

我正在关注这个,我得到:

gsamaras@gsamaras-A15:~$ sudo pip install "ipython[notebook]"
Downloading/unpacking ipython[notebook]
  Downloading ipython-4.2.0-py2-none-any.whl (736kB): 736kB downloaded
Requirement already satisfied (use --upgrade to upgrade): setuptools>=18.5 in /usr/local/lib/python2.7/dist-packages (from ipython[notebook])
Requirement already satisfied (use --upgrade to upgrade): decorator in /usr/lib/python2.7/dist-packages (from ipython[notebook])
Downloading/unpacking pickleshare (from ipython[notebook])
  Downloading pickleshare-0.7.2-py2.py3-none-any.whl
Downloading/unpacking traitlets (from ipython[notebook])
  Downloading traitlets-4.2.1-py2.py3-none-any.whl (67kB): 67kB downloaded
Requirement already satisfied (use --upgrade to upgrade): pexpect; sys_platform != "win32" in /usr/lib/python2.7/dist-packages (from ipython[notebook])
Downloading/unpacking simplegeneric>0.8 (from ipython[notebook])
  Downloading simplegeneric-0.8.1.zip
  Running setup.py (path:/tmp/pip_build_root/simplegeneric/setup.py) egg_info for package simplegeneric

Downloading/unpacking backports.shutil-get-terminal-size (from ipython[notebook])
  Downloading backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1091, in prepare_files
    req_to_install.check_if_exists()
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 811, in check_if_exists
    self.satisfied_by = pkg_resources.get_distribution(self.req)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 535, in get_distribution
    dist = get_provider(dist)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 415, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
IndexError: list index out of range

Storing debug log for failure in /home/gsamaras/.pip/pip.log

如何绕过这个?


编辑:

gsamaras@gsamaras-A15:~$ sudo pip install -U pip
Downloading/unpacking pip from https://pypi.python.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-8.1.2-py2.py3-none-any.whl#md5=0570520434c5b600d89ec95393b2650b
  Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
14.04
  • 1 个回答
  • 2961 Views
Martin Hope
gsamaras
Asked: 2016-04-29 04:53:23 +0800 CST

解决个人互联网故障

  • 0

我有 Ubuntu 14.04,我们家里有 Wifi。最近(每 2 天),我的笔记本电脑无法连接。Wifi 标志永远加载(你知道白线自下而上递归)。

重启rooter解决了这个问题。但是,这会给通过 Windows 操作系统成功连接到互联网的其他人(父亲和兄弟)和电话带来问题,需要相当长的时间才能恢复。

所以,我想知道我是否可以亲自做一些事情来尝试恢复,也许重置一些东西,比如我的 DNS 配置或其他东西?我不知道,你呢?:)

14.04
  • 1 个回答
  • 36 Views
Martin Hope
gsamaras
Asked: 2016-04-14 23:17:23 +0800 CST

视频方面的 Windows 与 Linux/Ubuntu

  • 1

我对使用 Linux 的 Non-programmer 进行了一次采访。最近在FB某处发了一篇文章,有几个人联系了我;大多数方法:“Open Software FTW!”,这很酷。

然而,有一位足球迷想要在 Ubuntu 中度过他的生活,同时也想要观看足球比赛的精彩片段。我现在正在帮他看一些CL Highlights(这可能是非法的,但他说他已经做过好几次了,所以如果我们不提供帮助,我们只会多一个 Windows 用户,少一个 Ubuntu 用户,没有帮助不会阻止他/他们:/)。

我想到了 flash player,我提示他如何在 Ubuntu 14.04 LTS 中安装 flash payer?,因为他安装了 14.04 64 位。但是,即使flash安装成功,他仍然无法播放视频。关于可能是什么问题的任何想法?

14.04
  • 1 个回答
  • 94 Views
Martin Hope
gsamaras
Asked: 2016-02-17 14:03:40 +0800 CST

关闭弹出窗口后如何安装更新?

  • 5

更新绿色图标是弹出的图标,通知您可以安装更新,也可以选择稍后通知。

我想现在安装它们,但我不小心点击了“稍后提醒我”,而不是“立即安装”。

如何再次召唤图标以便我可以做正确的事情?

updates
  • 2 个回答
  • 1091 Views
Martin Hope
gsamaras
Asked: 2016-02-11 07:36:07 +0800 CST

如何在 Ubuntu 14.04 的最新版本中安装 sbt?

  • 1

在像这样安装 sbt 之后,我面临着这个Spark 问题。请问如何进行?

当点击标签时:sudo apt-get install s我没有看到任何sbt包裹。

14.04
  • 1 个回答
  • 8290 Views
Martin Hope
gsamaras
Asked: 2016-02-11 05:20:22 +0800 CST

无法启动 Spark

  • 4

我跟着这个答案。我收到此错误:

spark-class:第 86 行:/usr/lib/jvm/java-8-oracle/bin/java:没有这样的文件或目录

令我惊讶的是,我有:

gsamaras@gsamaras:/usr/lib/jvm$ ls
java-1.7.0-openjdk-amd64  java-7-openjdk-amd64
gsamaras@gsamaras:/usr/lib/jvm$ $JAVA_HOME
bash: /usr/lib/jvm/java-8-oracle: No such file or directory

如何纠正它?

更多信息(来自这里):

gsamaras@gsamaras:~$ which java
/usr/bin/java
gsamaras@gsamaras:~$ ls -alh /usr/bin/java
lrwxrwxrwx 1 root root 22 Feb 10 00:54 /usr/bin/java -> /etc/alternatives/java
gsamaras@gsamaras:~$ ls -alh /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Feb 10 00:54 /etc/alternatives/java -> /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

在~/.profile我附加的:

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=${JAVA_HOME}/bin:${PATH}
export HADOOP_CLASSPATH=${JAVA_HOME}/lib/tools.jar

根据我的Hadoop 经验。当我得知我能够启动 Spark 时。


编辑:

gsamaras@gsamaras:~/spark-1.6.0-bin-hadoop2.6/conf$ ls
docker.properties.template  metrics.properties.template   spark-env.sh.template
fairscheduler.xml.template  slaves.template
14.04
  • 2 个回答
  • 6909 Views
Martin Hope
gsamaras
Asked: 2016-02-01 05:38:33 +0800 CST

主文件夹再次打开

  • 1

我有一个已安装的分区,我的数据所在的位置。我单击文件夹图标,它会打开。我转到 196 GB 卷(就是那个地方),它打开了。我用 gedit 打开一个文件。

现在,当我想返回文件夹时,我再次单击文件夹图标,而不是给我卷,而是打开一个新文件夹(主文件夹)。当我再次单击该图标时,我得到了两个文件窗口,我必须选择我想要的,我只对卷感兴趣。

如何摆脱这种行为?即,当我打开卷的文件夹并单击文件图标时,将弹出卷文件夹(因为它已经打开),而不是主文件夹。

14.04
  • 1 个回答
  • 64 Views
Martin Hope
gsamaras
Asked: 2016-01-29 10:51:07 +0800 CST

为什么要在执行脚本时使用 bash?[复制]

  • 2
这个问题在这里已经有了答案:
'sudo [command]' 和 'sudo sh [command] 有什么区别? (3 个回答)
6年前关闭。

在前一个问题中,有人建议我执行:

sudo bash start-dfs.sh

为什么不

sudo start-dfs.sh

? 我的意思是,有什么区别bash?

bash
  • 1 个回答
  • 110 Views
Martin Hope
gsamaras
Asked: 2016-01-27 16:46:12 +0800 CST

-ingroup 与 --ingroup

  • 0

代替:

sudo adduser --ingroup hadoopgroup hadoopuser

我做了一个:

sudo adduser -ingroup hadoopgroup hadoopuser

可以去吗?否则单-会导致有问题的用户。

users
  • 1 个回答
  • 1945 Views
Martin Hope
gsamaras
Asked: 2016-01-27 15:34:55 +0800 CST

我不想在不活动后被要求输入密码

  • 1

每次我在不活​​动后回到我的电脑(即我不在电脑前)时,Ubuntu 被(是?)锁定,并提示我输入密码。如何禁用此功能?


请注意,我在 Power -> Inactive 上启用了 Don't suspend 。另请注意,我的问题不同于如何在启动时停止提示解锁“默认”密钥环?

password
  • 1 个回答
  • 788 Views
Martin Hope
gsamaras
Asked: 2016-01-26 07:16:16 +0800 CST

帮助我赢得这场战争!

  • 3

历史:

  • 地图:我有一台双启动笔记本电脑,Windows 7 和 Ubuntu 14.04。对于 Ubuntu,我有一个单独的分区来存储我的数据。
  • 敌人:sudo chown -R hadoopuser /,它确实摧毁了我的整个基地。

当前状态:

我再次安装了 Ubuntu,覆盖了我的旧安装。但是带有数据的分区仍然存在,我可以看到数据,但我不能在那里创建一个文件夹,因为消息“你不是所有者,所以你不能更改这些权限”。出现在文件夹的底部。从属性中,我可以看到所有者是user #1001.


下一步行动?

  1. 像亚历山大大帝一样:攻击数据分区,杀死user #1001,或者至少进行谈判,以便我,用户gsamaras可以使用这个分区作为保存我的文件的地方,等等。

或者

  1. 像斯巴达人一样行动:消灭数据分区并扩展 Ubuntu 的分区,以便它接管该空间。

你会建议我做什么?如果您能指出如何实施您提出的建议,这将非常有帮助。


我在尝试访问文件夹时发现了这个问题“您不是所有者......”消息,但我无法联系。

我只是使用这些古代战士的名字,因为我是希腊人。

dual-boot
  • 2 个回答
  • 198 Views
Martin Hope
gsamaras
Asked: 2016-01-23 18:53:55 +0800 CST

start-dfs.sh 上的权限被拒绝

  • 1

我正在尝试按照本指南创建一个 2 节点 Hadoop 集群。第一个节点是我的 Ubuntu 笔记本电脑,第二个从节点是一个也运行 Ubuntu 的虚拟机。

我在主节点做:

gsamaras@gsamaras:/home/hadoopuser/hadoop/sbin$ sudo ./start-dfs.sh
16/01/23 04:46:16 WARN hdfs.DFSUtil: Namenode for null remains unresolved for ID null.  Check your hdfs-site.xml file to ensure namenodes are configured properly.
Starting namenodes on [master]
master: ssh: Could not resolve hostname master: Name or service not known
root@localhost's password: 
root@localhost's password: localhost: Permission denied, please try again.

如果现在我/etc/hosts/将文件编辑为此:

127.0.0.1   localhost
127.0.1.1   gsamaras
127.0.1.1   slave-1
127.0.1.1   master   // should I have this?

警告会离开,但我仍然会得到“权限被拒绝”。这个问题与我的完全相同,但答案并没有太大帮助。请问有什么想法吗?

networking
  • 2 个回答
  • 12715 Views
Martin Hope
gsamaras
Asked: 2016-01-23 13:23:24 +0800 CST

如何从 virtualbox 中的虚拟光驱中删除您的安装 .iso?

  • 1

我正在关注这个问题:如何在 VirtualBox 上安装 Ubuntu?我知道要删除.iso,但它与那个问题不同。这是我看到的:

在此处输入图像描述

我该做什么?


我还尝试了Machine -> Settings -> Storage,我可以在其中找到 Storage Tree 中的 .iso 文件,但是右键单击它会给我一个包含一个项目的列表,即Remove attachment,但它已被禁用。

system-installation
  • 1 个回答
  • 20916 Views
Martin Hope
gsamaras
Asked: 2016-01-01 03:45:42 +0800 CST

postgres:无法识别的服务

  • 2

读完这个问题后,我做了:

gsamaras@gsamaras:~$ sudo apt-get install postgresql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
postgresql is already the newest version.
The following packages were automatically installed and are no longer required:
  account-plugin-windows-live asymptote asymptote-doc freeglut3 gdebi-core
  gksu latex-beamer latex-xcolor libgksu2-0 libgsl0ldbl liblouis-data
  liblouis2 libpoppler-qt4-4 libsigsegv2 libupstart1 linux-headers-3.16.0-30
  linux-headers-3.16.0-30-generic linux-headers-3.16.0-40
  linux-headers-3.16.0-40-generic linux-image-3.16.0-30-generic
  linux-image-3.16.0-40-generic linux-image-extra-3.16.0-30-generic
  linux-image-extra-3.16.0-40-generic pgf preview-latex-style prosper ps2eps
  python-imaging-tk python3-brlapi python3-louis python3-pyatspi
  python3-speechd texlive-extra-utils texlive-font-utils
  texlive-generic-recommended texlive-lang-english texlive-latex-extra
  texlive-latex-extra-doc texlive-latex-recommended
  texlive-latex-recommended-doc texlive-pictures texlive-pictures-doc
  texlive-pstricks texlive-pstricks-doc texmaker-data
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gsamaras@gsamaras:~$ sudo service postgres restart
postgres: unrecognized service
gsamaras@gsamaras:~$ sudo apt-get install postgresql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package postgresql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'postgresql-server' has no installation candidate

任何想法?

apt
  • 1 个回答
  • 13827 Views
Martin Hope
gsamaras
Asked: 2015-12-29 08:10:41 +0800 CST

通过 ssh 使用 gedit 打开文件

  • 1

当我在我的 uni 机器中连接到 ssh 时,我正在尝试使用 gedit 从我的家中显示一个文件。但是,权限有问题。

gsamaras@gsamaras:~$ ssh -X [email protected]
directory>gedit main.c 

** (gedit:22737): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-N7h3SJlvli: Connection refused
^C
directory>sudo gedit main.c
[sudo] password for user: 
user is not in the sudoers file.  This incident will be reported.

有希望吗?

在 Windows 中,我安装了 winScp,我只需在那里用我的编辑器打开文件......

permissions
  • 1 个回答
  • 912 Views
Martin Hope
gsamaras
Asked: 2015-12-20 05:06:40 +0800 CST

如何在 Ubuntu 14.04 上安装 PostGIS?

  • 3

我试过了:

gsamaras@gsamaras:~$ sudo apt-get install postgresql-9.1-postgis
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package postgresql-9.1-postgis
E: Couldn't find any package by regex 'postgresql-9.1-postgis'

和:

gsamaras@gsamaras:~$ sudo apt-get install postgresql-9.4-postgis-2.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package postgresql-9.4-postgis-2.1
E: Couldn't find any package by regex 'postgresql-9.4-postgis-2.1'

我在UsersWikiPost中找到了,但两次尝试都给出了:

E: 无法定位包裹


这个问题是相关的,但是当我尝试它的最佳答案时,我收到关于不使用稳定版本的警告。

14.04
  • 1 个回答
  • 2442 Views
Martin Hope
gsamaras
Asked: 2015-08-08 16:14:42 +0800 CST

顶部突出显示的过程

  • 0

我在两台计算机上运行四个进程,一个主节点和一个从节点。我在命令时发出了生成这些进程的screen命令。现在,我在两台计算机上都使用 ssh 登录,我可以看到主节点中正在运行的进程被突出显示(如这个问题所述),而正在运行的进程则没有(并且似乎没有完成切换):

在此处输入图像描述

这是为什么?

process
  • 1 个回答
  • 112 Views
Martin Hope
gsamaras
Asked: 2015-08-08 03:19:40 +0800 CST

dpkg:使用 texmaker 处理存档时出错

  • 0

我正在尝试按照此答案安装最新版本的 texmaker 。它失败了,我尝试了一些像这样发布在互联网上的解决方案,但没有成功!

检查我的输出:

gsamaras@gsamaras:~$ sudo dpkg -i Downloads/texmaker_ubuntu_14.04_4.4.1_i386.deb 
(Reading database ... 380253 files and directories currently installed.)
Preparing to unpack .../texmaker_ubuntu_14.04_4.4.1_i386.deb ...
Unpacking texmaker (4.4.1) ...
dpkg: error processing archive Downloads/texmaker_ubuntu_14.04_4.4.1_i386.deb (--install):
 trying to overwrite '/usr/share/texmaker/doc6.png', which is also in package texmaker-data 4.1-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 Downloads/texmaker_ubuntu_14.04_4.4.1_i386.deb
gsamaras@gsamaras:~$ sudo dpkg -P nginx-common
dpkg: warning: ignoring request to remove nginx-common which isn't installed

我该做什么?


编辑:我删除了上一个。安装:

gsamaras@gsamaras:~$ sudo apt-get purge texmaker
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'texmaker' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  account-plugin-windows-live asymptote asymptote-doc freeglut3 gdebi-core
  gksu latex-beamer latex-xcolor libgksu2-0 libgsl0ldbl liblouis-data
  liblouis2 libpoppler-qt4-4 libsigsegv2 libupstart1 linux-headers-3.16.0-30
  linux-headers-3.16.0-30-generic linux-headers-3.16.0-40
  linux-headers-3.16.0-40-generic linux-image-3.16.0-30-generic
  linux-image-3.16.0-40-generic linux-image-extra-3.16.0-30-generic
  linux-image-extra-3.16.0-40-generic pgf preview-latex-style prosper ps2eps
  python-imaging-tk python3-brlapi python3-louis python3-pyatspi
  python3-speechd texlive-extra-utils texlive-font-utils
  texlive-generic-recommended texlive-lang-english texlive-latex-extra
  texlive-latex-extra-doc texlive-latex-recommended
  texlive-latex-recommended-doc texlive-pictures texlive-pictures-doc
  texlive-pstricks texlive-pstricks-doc texmaker-data
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
14.04
  • 1 个回答
  • 1105 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