debian

How to find IpAddress of system(server) in local network?

点点圈 提交于 2020-08-08 05:13:08
问题 I want to find IP address of my local server (system) which is run on debian-os in local network. I am able to find all IP Addresses in local network, But that is so time consuming method. I want to find particular IP of my debian-sytem who has server running on it. This Debian-system connected to my local network through dynamic IP. I want to connect that server through device. But before connecting to server I have to find particular IP address of system in local network. How I can find IP

Debian packaging: deploying files to the user home directory

别来无恙 提交于 2020-08-04 06:01:28
问题 I use Debhelper to create Debian packages. To deploy files and directories, I use the debian/install and debian/dirs files. Now I would like my package to deploy the default user configuration file to $HOME/.mypackagerc (just like .bashrc and friends). Does Debhelper provide a way to do this, or should I just: Do it in postinst script Or even do this in my program, at first execution 回答1: You should do it in your own program. You can't get debhelper to do this. A postinst script may be able

Debian packaging: deploying files to the user home directory

◇◆丶佛笑我妖孽 提交于 2020-08-04 06:01:06
问题 I use Debhelper to create Debian packages. To deploy files and directories, I use the debian/install and debian/dirs files. Now I would like my package to deploy the default user configuration file to $HOME/.mypackagerc (just like .bashrc and friends). Does Debhelper provide a way to do this, or should I just: Do it in postinst script Or even do this in my program, at first execution 回答1: You should do it in your own program. You can't get debhelper to do this. A postinst script may be able

preconfigure an empty password for mysql via debconf-set-selections

断了今生、忘了曾经 提交于 2020-08-01 12:41:00
问题 I am setting up a bash script to automate the building of a LAMP environment. I am using debconf-set-selections to set options before installing mysql, phpmyadmin, etc ... It works mainly great. But the problem is that I have to set an empty password for mysql and it still asks for the password during installation even with the lines typed before : echo "mysql-server-5.5 mysql-server/root_password password" | debconf-set-selections echo "mysql-server-5.5 mysql-server/root_password_again

preconfigure an empty password for mysql via debconf-set-selections

筅森魡賤 提交于 2020-08-01 12:37:44
问题 I am setting up a bash script to automate the building of a LAMP environment. I am using debconf-set-selections to set options before installing mysql, phpmyadmin, etc ... It works mainly great. But the problem is that I have to set an empty password for mysql and it still asks for the password during installation even with the lines typed before : echo "mysql-server-5.5 mysql-server/root_password password" | debconf-set-selections echo "mysql-server-5.5 mysql-server/root_password_again

Java Memory error: unable to create new native thread

。_饼干妹妹 提交于 2020-08-01 09:26:22
问题 I get this error on my UNIX server, when running my java server: Exception in thread "Thread-0" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:640) at [... where ever I launch a new Thread ...] It happens everytime I have about 600 threads running. I have set up this variable on the server: $> ulimit -s 128 What looks strange to me is the result of this command, which I ran when the bug occured the

How to modify INI files from shell script?

帅比萌擦擦* 提交于 2020-07-21 07:42:33
问题 I'm building a custom package of vnc and would like to ensure the xdcmp settings of GDM are enabled in the package post install script. The gdm.conf file is an ini style one, i.e.: [section] var=name And the value I want to set has name clashes in different sections throughout the config file. Are there any methods or tools that allow for easy manipulation of ini style config files from shell scripts? I'd like to sort this out in the .deb postinst script. 回答1: If you're willing to write some

Jenkins Docker Container can't access docker.sock

偶尔善良 提交于 2020-07-20 09:10:49
问题 I deployed the standard Jenkins Docker image with docker-compose and this configuration: deployer: image: jenkins volumes: - "/mnt/jenkins:/var/jenkins_home" - "/var/run/docker.sock:/var/run/docker.sock" ports: - "2375:2375" - "8080:8080" - "50000:50000" After reading numerous SO questions I tested added Root to the docker user group with gpasswd -a ${USER} docker and verified that the user inside the Container is Root with docker exec jenkins_deployer echo ${USER} . When I try to add Docker

Jenkins Docker Container can't access docker.sock

大城市里の小女人 提交于 2020-07-20 09:09:10
问题 I deployed the standard Jenkins Docker image with docker-compose and this configuration: deployer: image: jenkins volumes: - "/mnt/jenkins:/var/jenkins_home" - "/var/run/docker.sock:/var/run/docker.sock" ports: - "2375:2375" - "8080:8080" - "50000:50000" After reading numerous SO questions I tested added Root to the docker user group with gpasswd -a ${USER} docker and verified that the user inside the Container is Root with docker exec jenkins_deployer echo ${USER} . When I try to add Docker

pip TLS/SSL, however the ssl module in Python is not available problem

点点圈 提交于 2020-07-09 04:18:28
问题 I have looked through other solutions on this site, as well as on github but problem persists. When I use pip3 to install something I get following error: ki@debian:~/Documents/python/HelloWorld$ /usr/local/bin/python3 -m pip install -U pep8 --user pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting pep8 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't