debian

How to give to some user permissions only to subfolder [closed]

两盒软妹~` 提交于 2020-01-01 06:27:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have root permissions on my server and I want to give permissions to particular groups and users of it. There is a one case, there is directory tree: dir1 ├── subdir1 ├── subdir2 ├── subdir3 I have three users (user1, user2, user3) - i want each of them to have permissions only to one directory (user1 -

Starting and killing java app with shell script (Debian)

蓝咒 提交于 2020-01-01 05:41:14
问题 I'm new to UNIX. I want to start my java app with a script like so: #!/bin/sh java -jar /usr/ScriptCheck.jar & echo $! > /var/run/ScriptCheck.pid This is supposedly working. It does run the app and it does write the pid file. But when I try to stop the process with a different script which contains this: #!/bin/sh kill -9 /var/run/ScriptCheck.pid the console gives me this error: bash: kill: /var/run/ScriptCheck.pid: arguments must be process or job IDs My best guess is that I'm not writing

Starting and killing java app with shell script (Debian)

孤人 提交于 2020-01-01 05:41:05
问题 I'm new to UNIX. I want to start my java app with a script like so: #!/bin/sh java -jar /usr/ScriptCheck.jar & echo $! > /var/run/ScriptCheck.pid This is supposedly working. It does run the app and it does write the pid file. But when I try to stop the process with a different script which contains this: #!/bin/sh kill -9 /var/run/ScriptCheck.pid the console gives me this error: bash: kill: /var/run/ScriptCheck.pid: arguments must be process or job IDs My best guess is that I'm not writing

Install postgres 9.0 in debian lenny [closed]

早过忘川 提交于 2020-01-01 05:32:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Dear all, My system has the following distribution details $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 5.0 (lenny) Release: 5.0 Codename: lenny I need to install postgres 9.0 in this machine , but I cannot find any stable lenny packages for postgres 9.0 ,

How to install g++ 4.9 on Debian Wheezy armel?

不羁岁月 提交于 2020-01-01 04:30:12
问题 My Debian 7 armel embedded system currently has g++ 4.6, and I'd like to upgrade to g++ 4.9 to use new C++11 features. How do I do that? My current sources.list contents is: deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ wheezy/updates main deb http://ftp.us.debian.org/debian wheezy main non-free deb-src http://ftp.us.debian.org/debian wheezy main non-free A simple apt-get install of the package does not work: root@arm:~# apt-get install g++-4.9

Problems installing Python 3 with --enable-shared

爱⌒轻易说出口 提交于 2020-01-01 03:31:08
问题 Problem I'm trying to install Python 3 with the --enable-shared option. Installation "succeeds" but the resulting Python is not runnable. Trying to run Python after installation gives the following error: $ /opt/python3/bin/python3.5 /opt/python3/bin/python3.5: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory Background The OS is Debian (squeeze), and has a previous installation of Python 2.6, which is necessary to retain

docker run hello-world still fails, permission denied

心已入冬 提交于 2020-01-01 02:44:09
问题 I'm trying to run docker but it still fails. Here is what i get root@c1170137:~# docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world c04b14da8d14: Extracting 974 B/974 B docker: failed to register layer: ApplyLayer exit status 1 stdout: stderr: permission denied. See 'docker run --help'. kernel: 4.4.16-1-pve i'm using debian jessie Distributor ID: Debian Description: Debian GNU/Linux 8.5 (jessie) Release: 8.5 Codename: jessie Edit:

debian 配置静态ip

跟風遠走 提交于 2019-12-31 21:21:13
1. 查看虚拟机上本机ip cmd→ipconfig 2. 配置网卡 2.1 备份原有配置文件配置文件 cp /etc/network/interfaces /etc/network/interfacesbak #备份原有配置文件 2.2 编辑interfaces vim /etc/network/interfaces #编辑网卡配置文件 修改后,注意后面的地址要放在最后面 标注: auto lo #开机自动连接网络 iface ens32 inet static #static表示使用固定ip,dhcp表述使用动态ip address 192.168.21.166 #设置ip地址 【为ipconfig中地址一致,最后一位端口改前ping一下确定端口没人用】 netmask 255.255.255.0 #设置子网掩码 gateway 192.168.21.2 #设置网关 2.3 重启网卡 /etc/init.d/networking restart 3. 配置DNS 3.1 备份dns配置文件 cp /etc/resolv.conf /etc/resolv.confbak #备份原有dns配置文件 3.2 编辑配置文件 vim /etc/resolv.conf 3.3 编辑配置文件 注: nameserver:设置dns第一个为首选,第二个备用dns 注意dns和网关保持一致 3

How to make python3.2 interpreter the default interpreter in debian

独自空忆成欢 提交于 2019-12-31 19:14:13
问题 I got both python2 and python3 installed in my debian machine. But when i try to invoke the python interpreter by just typing 'python' in bash, python2 pops up and not python3. Since I am working with the latter at the moment, It would be easier to invoke python3 by just typing python. Please guide me through this. 回答1: the only somehow safe way would be to use an alias in your shell, by placing alias python=python3 into your ~/.profile or ~/.bashrc ... this way the system scripts depending

“skipping: no hosts matched” issue with Vagrant and Ansible

人盡茶涼 提交于 2019-12-31 17:51:32
问题 I have installed Vagrant, VirtualBox and Ansible and trying to run provision over one host but it always returns "skipping: no hosts matched" The head of my playbook file looks like this: --- - hosts: webservers user: vagrant sudo: yes and my /etc/ansible/hosts file looks like this: [webservers] webserver1 I tried putting the IP address there but had the same result. I have added my ssh key to the server and added webserver1 host to both .ssh/config and /etc/hosts . I can ssh vagrant