debian

Debian Jessie JavaFX MediaPlayer : Could not create player

若如初见. 提交于 2019-12-12 03:37:12
问题 I get this exception while running a java app with Ant configuration. Exception in thread "JavaFX Application Thread" MediaException: UNKNOWN : com.sun.media.jfxmedia.MediaException: Could not create player! : com.sun.media.jfxmedia.MediaException: Could not create player! Here is my code : @Override public void start(Stage stage) { final Scene scene = new Scene(((Viewer)viewer).getPanel()); Media theme = new Media(getHostServices().getDocumentBase() + "src/sound/theme_bttf.mp3"); new

debian init.d script not running after reboot

折月煮酒 提交于 2019-12-12 03:32:29
问题 I need to start my Wildfly AS through .sh script after system boot (Linux-Debian). So I created my own script which should do it in init.d: #! /bin/sh # /etc/init.d/starter case "$1" in start) echo "Starting" nohup /home/xxx/wildfly-9.0.1.Final/bin/standalone.sh & ;; stop) echo "Stopping" /home/xxx/wildfly-9.0.1.Final/bin/jboss-cli.sh --connect command=:shutdown ;; *) echo "Usage: /etc/init.d/starter {start|stop}" exit 1 ;; esac exit 0 This works if i use it on my own: /etc/init.d/starter

Update-rc.d custom script running too late, and also runs at shutdown

狂风中的少年 提交于 2019-12-12 03:00:22
问题 I have a script that sends me a pushover notification when my headless Raspberry Pi (running Debian Wheezy) boots. I also have it set up to connect to OpenVPN on boot. Problem 1: The problem is that it sends this notification before the OpenVPN connection is established. So I get sent the WAN IP, and not our secured VPN IP. Problem 2: It runs the pushover notification when the system is shutting down. So when it shuts down I get the same PO notification: Hey, I'm online! My IP is: X.X.X.X I

Redirecting https to http ISPConfig & Apache

旧街凉风 提交于 2019-12-12 02:34:43
问题 some time ago I managed to find a way to redirect all my https to http (and not the opposite) with Apache. I wanted to do that because I don't have any SSL certificate but all the browser I use force https, therefore leading to SSL error, or timeout depending on if I listen to the 443's port or not. But because I'm stupid, I forgot to save the vhost files for Apache containing that solution and I can't make it work again. I tried everything on the internet but nothing worked. If that changes

ERROR : “Cannot Find FFMPEG” on Google Cloud Compute Engine Debian Wheezy 7.8 Managed Instance even though it's installed

那年仲夏 提交于 2019-12-12 02:27:19
问题 I wrote a Node.JS application that uses the fluent-ffmpeg module to watermark videos uploaded on the platform. I pushed the code to a my Google Cloud Compute Engine project, and every time I get Error : Cannot Find FFMPEG . I ssh'd into the instance once it was created and ran these commands to install FFMPEG before actually testing out the code. I am not sure what is causing the error because after this I am positive that FFMPEG is installed. sudo apt-get update sudo apt-get install -y

libxml2-dev not installing on raspbian/debian

最后都变了- 提交于 2019-12-12 01:42:38
问题 When I sudo apt-get install libxml2-dev I receive the error libxml2-dev : Depends: libxml2 (= 2.9.4+dfsg1-1+b1) but 2.9.4+dfsg1-1 is to be installed E: Unable to correct problems, you have held broken packages. I tried to follow this guide: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=105859 but when I get to cd ~/libxml2-2.9.1 the directory does not exist. Here is my actual output: pi@rpi:~ $ sudo apt-get install python-dev Reading package lists... Done Building dependency tree

Debian - all browsers jquery compressed breaks all js, but uncompressed works fine

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 01:39:10
问题 In debian linux when using a browser such as opera or chome the page loads with a js error. This does not happen in any other browser and in fact I cannot even reproduce it, but another user can reproduce it in almost every browser on his system. The errors are: [12/07/11 19:08:22] JavaScript - http://demo.phppointofsalestaging.com/js/jquery-1.6.1.min.js Linked script compilation Syntax error at line 2 while loading: ,"*":"*/**/*;q=0.01":""):d.accepts["*"]) --------------------^ expected '}',

PHP Warning: mysqli::__construct(): (HY000/2002): No such file or directory (Debian GNU/Linux 9)

旧街凉风 提交于 2019-12-12 01:27:16
问题 I run my website on Debian 9, Apache 2.4, PHP 7.2. MySQL database is remote. The website works smoothly using mysqli module. But when I try to run PHP file through command line it fails and displays the error: PHP Warning: mysqli::__construct(): (HY000/2002): No such file or directory in ... Database connection failed: No such file or directory (2002) The PHP file I've been trying to run has this line in the beginning: require_once(__DIR__ . '/../private/initialize.php'); The initialize.php

What does it mean on mysql grant command?

牧云@^-^@ 提交于 2019-12-12 01:19:13
问题 I am creating my own PHP development environtment and I am setting mysql. I need to grant to my root user all the privileges so I use: GRANT ALL ON *.* TO 'root'@'%'; Why It use 'root'@'%'? I understand that these are user and host, but in this case that I am in a development environment why I have to put a host? In case of a production server I understand that it is to grant only the database hosted by an specified host, right? Thanks. 回答1: '%' is a wildcard fall-back. The login attempt

403 Forbidden in root [closed]

匆匆过客 提交于 2019-12-11 23:55:42
问题 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'm setting up a webserver with virtual hosts, and I'm having a hard time getting around this 403 Forbidden error. The error claims something is pointing to root / , but the directives are set for any requests for the domain to be routed to it's directory: <VirtualHost *:80> DocumentRoot /var/www