debian

Java on Debian: Probable fatal error: No fonts found

泪湿孤枕 提交于 2019-12-23 05:22:54
问题 I want to run Tomcat on Debian 5 Minimal. So I don't need a gui for my OS, it's just a pure Tomcat-Server. Which packages do I need for my JVM to use Fonts in my applications? Im drawing texts in Graphics2D and am creating PDF-Files in my Java-Project. 回答1: Graphics2D and anything in the java.awt.* or java.swing.* packages require a GUI to do its drawing. This is a problem on most headless servers. You have two options, and try them in this order: Use the system property "java.awt.headless"

Why this R dplyr getAges fails on ordered list?

 ̄綄美尐妖づ 提交于 2019-12-23 04:57:16
问题 I am thinking to get a list of ages by a list of ids by the following function getAges . It fails on the whole code example, see the following complete code, by returning ages in wrong order on the given id list. The code DF[DF$ID %in% ids,] takes the whole data ( DF ), considers ids ( DF$ID ), the former in the list of ids ( - - %in% ids ), and returns age of those ids ( [wantedIds]$Age ). I am unsure about the part - - %in% ids because R %in% compares returns the id if there is a match.

Intellij Grade Build Jar with dependencies

百般思念 提交于 2019-12-23 04:53:15
问题 I want to build a jar file in IntelliJ IDEA with Gradle. When I run my code in Intellij everything works fine, but when I run the jar file I get an error: SQLExecption: No suitable driver found for jdbc:sqlite:/applications/elite-dangerous/database/ED_Database.db I build the jar throw pressing the build button. It's strange for me because it works perfectly fine when I run it in IntelliJ IDEA. 回答1: Dependencies included using implementation config are not being included in the Jar which makes

Intellij Grade Build Jar with dependencies

亡梦爱人 提交于 2019-12-23 04:53:09
问题 I want to build a jar file in IntelliJ IDEA with Gradle. When I run my code in Intellij everything works fine, but when I run the jar file I get an error: SQLExecption: No suitable driver found for jdbc:sqlite:/applications/elite-dangerous/database/ED_Database.db I build the jar throw pressing the build button. It's strange for me because it works perfectly fine when I run it in IntelliJ IDEA. 回答1: Dependencies included using implementation config are not being included in the Jar which makes

Bash Script to install PostgreSQL - Not working

人盡茶涼 提交于 2019-12-23 04:38:10
问题 I have a script which runs when my debian 6.0 server is deployed and it is designed to build postgreSQL from source, create a system user for it, create a database and start it running. I am new to this but I did a lot of homework and this is what I came up with: # Initial apt-get update apt-get -y install aptitude bzip2 libbz2-dev git-core bison flex aptitude -y install sudo python-all-dev python-setuptools libxml2-dev libgeoip-dev libxslt1-dev uuid-dev gcc automake autoconf libpcre3-dev

MySQL “#2006 - MySQL server has gone away” in phpMyAdmin

两盒软妹~` 提交于 2019-12-23 03:13:37
问题 The Problem My MySQL database works fine for my web application. However, when I try to open the database with phpMyAdmin, I get this error message: #2006 - MySQL server has gone away And phpMyAdmin disconnects back to the login screen. Other databases work fine. My ax_allowed_packet is set to 16. I also tried 64, but it didn't work. Also this error occured eventually. The database is about 3 MB in size, so not very big. Used Software Debian Squeeze x64 MySQL (current version) phpMyAdmin

Unable to link against FFmpeg libaries

别说谁变了你拦得住时间么 提交于 2019-12-23 03:13:36
问题 I tried to build this, but always got link-time error. #include <libavutil/log.h> int main(int argc, char *argv[]) { ::av_log_set_flags(AV_LOG_SKIP_REPEATED); return 0; } My distro is Debian GNU/Linux 8 (jessie). The FFmpeg was built by myself, and the configure command was... $ ./configure --prefix=/usr/local --disable-static --enable-shared \ > --extra-ldflags='-Wl,-rpath=/usr/local/lib' The link-error is as follows. $ g++ foo.cpp -D__STDC_CONSTANT_MACROS -Wall \ > -Wl,-rpath=/usr/local/lib

Write tcpdump output to compressed / gziped file

早过忘川 提交于 2019-12-23 02:25:15
问题 I want to write the textual output of tcpdump to a compressed file. First I tried the most obvious: # tcpdump -l -i eth0 | gzip -c > test.gz tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes ^C63 packets captured 244 packets received by filter 0 packets dropped by kernel 4 packets dropped by interface # file test.gz test.gz: empty # Then I found the following solution for Debian 9 (Stretch) : #

Debian 7.4 - Wifi key disabled & how to set up the wifi card driver? [closed]

两盒软妹~` 提交于 2019-12-23 01:18:19
问题 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 did hazardous changes after facing wifi problems on last debian 7.4 software update. My wifi keyboard key doesn't switch wifi on/off anymore. It keeps the off state. Wifi key After searching google I found that $ sudo apt-get install rfkill $ rfkill list 0: hp-wifi: Wireless LAN Soft blocked: yes Hard blocked:

Debian 7, fstab, mount.cifs Invalid argument

随声附和 提交于 2019-12-22 18:57:10
问题 I try to mount cifs, but i have got following error and i don't find the error. ~# mount -a ~# mount error(22): Invalid argument I try if in my /etc/fstab //192.168.0.1/ShareRep /home/user/share cifs credentials=/usr/local/etc/whisper.credentials,uid=501,sec=ntml 0 0 my credentials file /usr/local/etc/whisper.credentials username=user password=password I am on Debian 7.6 回答1: In the absence of a more detailed error from dmesg I do see one typo that will cause things to fail. You have the