debian

Pass filename from Nautilus to shell script

一曲冷凌霜 提交于 2021-01-29 04:52:50
问题 I am trying to execute a shell script that gets for an argument a file name. I can do it if I go to the terminal and type the full PATH. But I am trying to make this more user friendly so I what I want to do is to send the argument (complete path) from the file manager or nautilus. Is it possible? 回答1: It is possible. Here's a way to do it: Copy your script to the folder ~/.local/share/nautilus/scripts/ -- please note that this path will expand to include the current user information, such as

How to install imagick on PHP7 and Debian?

拟墨画扇 提交于 2021-01-28 21:52:55
问题 I need to install Imagick, but I've php7 and debian. I tried to do this : apt-get install php-imagick But I've this error : Unable to locate package php-imagick I also tried to do this apt-get install php5-imagick But O think this command is to php5, an dnow I've in /etc/php5/mods-available/ un imagick.ini So is imagick is install for php7? 回答1: It seems Imagick is not yet released for PHP7 on Debian stable. 回答2: Debian Buster and PHP7.3 sudo apt-get install -y libmagickwand-dev sudo apt-get

CI cannot build .NET project, fails with: “Couldn't find a valid ICU package installed on the system…”

隐身守侯 提交于 2021-01-28 20:11:06
问题 I am working on having Jenkins build our legacy .NET 2.1 applications as part of streamlining our kubernetes deployments Therefore I have created a custom Jenkins agent based on the jenkins/jnlp-slave:latest-jdk11 docker image (https://github.com/jenkinsci/docker-jnlp-slave) which in turn is Debian 9 based, extended with the official .NET Core (unpacked the ZIP from https://dotnet.microsoft.com/download/dotnet-core/2.1 , Debian updates does not work well with our firewall), and for trivial

Mount Google Cloud Filestore inside a docker container with Debian

岁酱吖の 提交于 2021-01-28 08:30:45
问题 I want to mount Cloud Filestore inside a docker container which is Debian. When I try to mount it I get: mount.nfs: timeout set for Wed Feb 27 12:35:07 2019 mount.nfs: trying text-based options 'vers=4.2,addr=10.32.222.111,clientaddr=172.17.0.2' mount.nfs: mount(2): Operation not permitted mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. It's running in a Debian VM inside Google Cloud. Is there any

FLTK 1.4 widget position w.r.t. X11 root window?

喜你入骨 提交于 2021-01-28 01:52:00
问题 context I am coding with others RefPerSys, a GPLv3+ project in C++17 on gitlab for GNU/Linux/x86-64/Debian/Sid. Its fltk-branch git branch is using FLTK 1.4, compiled from source code, with an Xorg display server. I have C++ classes like (in file headfltk_rps.hh): class RpsGui_Window: public Fl_Double_Window { static std::set<RpsGui_Window*> _set_of_gui_windows_; public: virtual int handle(int); protected: Fl_Menu_Bar *guiwin_menubar; std::string guiwin_label; virtual void initialize_menubar

Connecting to a mysql database from php, error but no error shown?

≯℡__Kan透↙ 提交于 2021-01-27 18:55:56
问题 so I'm making a super simple site just for practice where you type something in an then its displayed on the page, but it wont work and i think iv narrowed it down to the begining where it connects to the database just $server ="localhost"; $username ="root"; $password ="********"; $database ="user_accounts"; $connect=mysqli_connect($server,$username,$password,$database); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } Im running my server using

PHP seems to execute script twice

人走茶凉 提交于 2021-01-27 04:08:30
问题 My web server is acting wierd. It seems like it executes scripts (PHP) twice before sending then to apache. I've run this file: <?php echo '<pre>'; session_start(); $_SESSION['index']++; echo '<br>'; print_r($_SESSION); ?> And I know that ++ will give a notice at first, but it's just to investigate if it runs twice. Anyway, the printed session shows that the index-index increases by two each time you load the page. The webserver is apache2, php5 installed on a debian unit. Anyone has any

Jenkins sudo: no tty present and no askpass program specified with NOPASSWD

主宰稳场 提交于 2021-01-20 16:23:52
问题 I spend several days setting up the file /etc/sudoers to be able to give permissions to root to the user jenkins . I have Jenkins installed on my server because I host several projects with symfony, ionic, neo4j, etc... The problem is that I can not do build in the projects with ionic, I get this error: sudo: no tty present and no askpass program specified. This is the content of my /etc/sudoers file: # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding

How to run laravel in root directory without the public folder?

狂风中的少年 提交于 2021-01-20 13:06:23
问题 I am running the latest version of laravel on my own server running Debian and Apache2 . The contents of laravel are located in /var/www which is what my domain name is pointed to however all of the functionality happens through the public directory so I would have to go to http://mydomain.com/public to access anything. I would like to change it so that I only have to access http://mydomain.com . Is this possible? How can I change this? Would I have to move everything up another level to the

How to run laravel in root directory without the public folder?

笑着哭i 提交于 2021-01-20 13:05:10
问题 I am running the latest version of laravel on my own server running Debian and Apache2 . The contents of laravel are located in /var/www which is what my domain name is pointed to however all of the functionality happens through the public directory so I would have to go to http://mydomain.com/public to access anything. I would like to change it so that I only have to access http://mydomain.com . Is this possible? How can I change this? Would I have to move everything up another level to the