FAQ Database Discussion Community


Programmable strings in Debian GNOME Terminal emulator

terminal,debian,gnome
I like GNOME Terminal very much. I'd like to know if it has the possibility to remap some (Ctrl+Function) keys to send some strings to the terminal. I know I can do it on the OS level, but I'd rather that it be localized. If GNOME Terminal doesn't have that...

SSH Permission denied (publickey) [closed]

linux,ubuntu,ssh,debian,rsa
I'm trying to SSH into a Debian from Ubuntu. I already have a RSA key; it's the same key that I use got my Git. I copied the key from Ubuntu to Debian using: ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected] Then I modified sshd_config on Debian to include the following: RSAAuthentication yes...

How to check which symbols on my shared library have non-position independent code (PIC)?

linux,gcc,debian,powerpc
I'm trying to build a .deb package with debuild -i -us -uc -b and in the end I see: Now running lintian... warning: the authors of lintian do not recommend running it with root privileges! W: libluajit-5.1-2: hardening-no-relro usr/lib/powerpc64le-linux-gnu/libluajit-5.1.so.2.1.0 E: libluajit-5.1-2: shlib-with-non-pic-code usr/lib/powerpc64le-linux-gnu/libluajit-5.1.so.2.1.0 W: luajit: hardening-no-relro usr/bin/luajit-2.1.0-alpha W: luajit: binary-without-manpage...

Install imap extension for php 5.3.3-7+squeeze17

php,debian,imap,php-extension,apt-get
Server has debian wheezy os installed. Php version is php5.3: [email protected]:~# php -v PHP 5.3.3-7+squeeze17 with Suhosin-Patch (cli) (built: Aug 23 2013 15:06:16) I try to install imap extension via apt-get and the result is: [email protected]:~# apt-get install php5-imap=5.3.3-7+squeeze17 Reading package lists... Done Building dependency tree Reading state information... Done...

Compiler can't find libxml/parser.h

linux,include,debian,libxml2,suse
I am on Debian 8 (Jessie), 64 Bit. I installed libxml2-dev, which now sits in /usr/include/libxml2/libxml. But when I do (just like libxml docs say) #include <libxml/parser.h> I only get when compiling (with gcc) fatal error: libxml/parser.h: no such file or directory Notes: On another machine, with an old 64...

Get both console and tty after upgrade Debian to Jessie 8.0 in openvz

console,debian,tty,openvz,proxmox
I can not use this machine via proxmox's console, because there are both console and tty, I confirmed that this problem came after dist-upgrade!...

How can I work on files on my server and keep them in sync?

linux,debian,vmware,web-deployment
I have set up a development web server using VMWare and Debian. It's all set up fine, but I have an problem. I need to be able to work with the files on the server, or a copy of them. But, it's important that both sets of files are in...

Apache restart failed after adding OpenID Connect module

apache,debian,openid-connect,mod-auth-openidc
I use Debian 8.0 running an Apache v.2.4.10 and I try to add the OpenID Connect module named libapach2-mod-auth-openidc version 1.6.0. After installing the module, I enable it with the command: sudo a2enmod auth_openidc. This works fine and now I want to restart the Apache server with sudo service apache2...

Configuration of gitlab-ci on Gitlab Omnibus 7.8.0

debian,gitlab,gitlab-ci
I have installed Gitlab Omnibus (gitlab_7.8.0-omnibus-1_amd64.deb) on my Debian 7. I have launched gitlab-ci on it. Now I have the following message on my gitlab-ci welcome page. You need only 2 steps to set it up. In the GitLab admin area under OAuth applications create a new entry. The redirect...

Within C program use Picocom to read/write streams

c,linux,serial-port,debian
I am thinking of creating a C program that will use picocom to read and write serial streams to ports (GPS module, NTPD). The c program will run on a Debian OS. Is it possible to do this using Picocom? Is it bad design to interact with Picocom through c...

PATH is not updated when I login

linux,bash,debian,environment-variables,.profile
I am one of the users of a lab computer. I want PATH to be: PATH=/home/gsamaras/mpich-install/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games instead of this: PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games For that reason, I modified .profile: # set PATH so it includes user's private bin if it exists #if [ -d "$HOME/bin" ] ; then # PATH="$HOME/bin:$PATH" if [ -d...

Security in Gitlab. With gitolite?

git,security,debian,gitlab
I´m working with Gitlab in Debian 8 for my own project goes well but i need more security for employees in a company. I need that employees can not see important code for this company, i´m trying to use gitolite with gitlab but I'm not sure that is the right...

Until Loop not working as expected

linux,bash,shell,debian
I'm currently learning Linux and as an homework, we have to create a few basic shell scripts. Nothing especially complicated but this one is giving me headaches. Here's my code : until [ "$toPrint" == 'fin' ] do echo "Enter file name to print out :" ; read toPrint sh...

Not a debuggee or not listening for a debugger to attach

java,debugging,netbeans,debian
I want to attach a debugger to a github project called Mamute. run.sh wires up the application. cat run.shreads: #!/bin/bash SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" MAMUTE_DIR=$SCRIPT_DIR TIMESTAMP=BUILD_TIMESTAMP WEB_INF=${SCRIPT_DIR}/WEB-INF java -cp ${WEB_INF}/classes/:${WEB_INF}/lib/* \ -Ddeploy.timestamp=$TIMESTAMP \ -Dvraptor.webappdir=${MAMUTE_DIR} \ ${MAMUTE_OPTS} \ br.com.caelum.vraptor.server.Main \ not-grunt I don't know what "java...

Restore MediaWiki site from physical files (MySQL)

mysql,linux,debian,mediawiki
One of our servers crashed last week and it wouldn't boot. So I got a full copy of the whole file system, and restored a previous backup. Now it is up and running, but there is a problem: the most recent changes made to a MediaWiki site were lost (the...

Using sed command to

bash,shell,awk,sed,debian
I'm trying to be able to read a file, replace a variable or instead add it at the bottom if it hasn't been already specified. I've had a bit of help to get this far: #!/bin/bash function replaceappend() { if ! sed "/$2/{s//$3/;h};"'${x;/./{x;q0};x;q1}' $1 then echo "$3" >> $1 fi...

Compiling MySQL 5.6 for Raspberry Pi - validation error

mysql,debian,raspberry-pi,gnupg,mysql-5.6
I am trying to compile MySQL 5.6 for install onto a Raspberry Pi (I need it for a geo module that wont work on 5.5, sigh...). I am attempting it like so, at someone else's recommendation: apt-get install build-essential debhelper devscripts debian-keyring dget http://ftp.de.debian.org/debian/pool/main/m/mysql-5.6/mysql-5.6_5.6.19-1~exp1.dsc cd mysql-5.6-5.6.19 dpkg-buildpackage -b (install any...

phpmyadmin on debian with nginx

nginx,permissions,debian
I'm trying to use Deabian's package of phpmyadmin with nginx. In tutorials they create symlink to the phpmyadmin source files from virtualhost, like this: $ln -s /usr/share/phpmyadmin/ /var/www/host.com/phpmyadmin I think my first problem is, that nginx is running under nobody user, but the owner of phpmyadmin files is root. I...

Debug information file conventions for Debian/Ubuntu?

linux,debugging,gdb,debian,lldb
According to lothar's answer at How to generate gcc debug symbol outside the build target, I can create a two part executable - the stripped executable and the debug information file. After creating the stripped executable and the debug information file, I install the executable as normal (with make install)....

Assigning static ip in linux [closed]

linux,debian,static-ip-address
I've tried to assign static ip to my raspberry computer, yet it doesn't assign it after rebooting. My /etc/networ/interfaces file looks like this: auto lo iface lo inet loopback iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1 #iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet manual wpa-roam...

Grails web-app image directory is not working properly in war

tomcat,grails,debian,grails-2.0
I am working with Grails 2.4.2. I am saving images to a directory named gameImage under web-app folder. It's working perfectly in development mode. But when I run the war on localhost in the xampp server then in the view image is not showing but saving in the directory. Here...

“Network services system are not compatible with this version .” Debian 8 [closed]

linux,networking,debian
Helllo, I'm using Debian 8 and it runs correctly, but I restart my computer after installing icons and gnome shell extensions and that happened :( any ideas? Translate to English "Network services system are not compatible with this version" Thank you for help ...

Postfix - connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

linux,debian,postfix-mta
I have a recurring problem with postfix (on Debian Squeeze, amavisd-new and fail2ban are also installed) : All of a sudden, often at night (but not always), mail stop being delivered and the queue fulls up. Log shows a bunch of entries of this style : May 18 19:54:16 ks4000003...

Security concern for an OTA in Debian

linux,security,debian,ota
I need to have over the air (OTA) update for a Raspberry Pi board running Debian. I'm thinking of running a cron job on an apt-get update and have my own private repository. So I can push my updates to the repository and the system will automatically pull these updates....

Debian Jessie shutdown on CTRL+ALT+DEL

debian,shutdown,systemd
For our Linux VM's in VirtualBox, we like to map CTRL+ALT+DEL to shutdown -h now The old way was editing the inittab file. How is this done now in Debian 8 with systemd?...

Error running bash script in supervisor [closed]

linux,bash,shell,debian,supervisor
I have a bash script that makes some work supervising network stuff, it works great when I run it manually, but when I put it in supervisor the ifs and the whiles does not work, just stops before any of those programming sentences, echos, running cat, more and other things...

Awk match only when line starts with result

linux,bash,shell,awk,debian
I have the following code: function replaceappend() { awk -v old="$2" -v new="$3" ' sub(old,new) { replaced=1 } { print } END { if (!replaced) print new } ' "$1" > /tmp/tmp$$ && mv /tmp/tmp$$ "$1" } replaceappend "/etc/ssh/sshd_config" "Port" "Port 222" It works perfectly but I am looking to...

how to use systemD to restart a service when down?

linux,service,debian,monitor,systemd
On my server I use elasticSearch which regularly gets down and the result is a 500 error for my users. I've understood systemD was now the reference for managing services. That's fine by me. How can I use systemD to restart my elastic search service automatically when it gets down...

R packages: breakpoint setup for C function with gdb in Debian (Testing)

c,r,debugging,gdb,debian
I'd like to debug a C function from a package of mine. I would like to check execution with gdb, although i find difficulties to set breakpoints. Following 4.4.1 Finding entry points in dynamically loaded code from Writing R Extensions: 1) Call the debugger on the R executable, for example...

PHP via command line outputs source code

php,debian
After recently updating to Debian 8.0, and hence PHP 5.6 (PHP 5.6.7-1 (cli) (built: Mar 24 2015 12:30:15)) A bunch of my PHP scripts seem to have broken. Most specifically, now when running a PHP script through the command line, it seems to simply output the actual script. I think...

How to install gstreamer0.10-ffmpeg on Debian 8 Jessie (No installation candidate)

ffmpeg,debian,gstreamer,apt
On a clean Debian 8 installation i had to install some gstreamer-plugins. While most of them were already installed or were easily installable via apt-get, gstreamer0.10-ffmpeg was not installable: sudo apt-get install gstreamer0.10-ffmpeg threw out following warnings: Package gstreamer0.10-ffmpeg is not available, but is referred to by another package. This...

Script to power off a pc too brutal?

linux,bash,debian
Based on this site: Shutting down Debian linux machine, I wrote a script to power off a Debian computer. However, I feel it's too brutal, like the power was cut off by an accident or something. What I want is that the script would behave just like a human would...

Awk replace entire line when match is found

regex,bash,shell,awk,debian
I have the following code: function replaceappend() { awk -v old="^$2" -v new="$3" ' sub(old,new) { replaced=1 } { print } END { if (!replaced) print new } ' "$1" > /tmp/tmp$$ && mv /tmp/tmp$$ "$1" } replaceappend "/etc/ssh/sshd_config" "Port" "Port 222" It works perfectly but I am looking to...

copy files found by “find” to another folder [duplicate]

linux,bash,debian
This question already has an answer here: How to move or copy files listed by 'find' command in unix? 3 answers I want to copy shared libraries found by following command in a certain folder (/path/to/folder/). How can I do this in bash? find /usr/lib/python2.7/ -name '*.so' -exec ldd...

Disable file caching on Debian Wheezy Web Server

linux,apache,caching,nginx,debian
I have a Debian Wheezy server on which I'm running a web server. I have a folder called data under my web root directory, which contains several json files which get updated infrequently. Uploading and displaying my files is not an issues. However, if a file is updated or deleted,...

Adding Subdomain for my ruby on rails server, how to do?

ruby-on-rails,networking,debian,subdomain,host
i've got some problems with my ruby on rails server. It is running under localhost:3333 in my debian vm under a windows8 host. I've installed apache2 and passengermodul for apache to get ruby. And then I've installed rails. Now I need a subdomain wich calls the ruby on rails server....

Vodafone Mobile Broadband K3765-Z not working in jessie but was working in wheezy

networking,usb,debian,wireless,umts
I was working on Debian stable=wheezy until last week. Using my Surfstick was fine - configured by network-Manager. After updating to jessie I'm not able to connect. The stick is properly found. lsusb shows Bus 003 Device 002: ID 19d2:2002 ZTE WCDMA Technologies MSM nmcli results in ============================================================================= Status von...

Fighting with brute force attack on email service

linux,debian,firewall,exim,directadmin
I am facing an issue and need your expert advice. I get constant brute force attacks warnings in directadmin from IPs in Russia & China etc etc. The messages are something like Feb 27 04:31:15 host1 dovecot[2387]: pop3-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=194.63.XXX.XXX,...

NPM not Working

node.js,debian,npm
$ sudo apt-get install python g++ make $ wget http://nodejs.org/dist/node-latest.tar.gz $ tar xvfvz node-latest.tar.gz $ cd node-v0.10.21 (replace a version with your own) $ ./configure $ make $ sudo make install I keep getting: #nodejs --version /usr/bin/nodejs: No such file or directory I understand though, everything seems to be installed...

Are debian package update atomic?

ubuntu,debian,dpkg
I want to update a ubuntu box in an unsupervised way. If the update fails, I'll have to fly there to manually fix it :P so my question is: If there is power outage in the middle of a kernel or user space package update, will the system stay consistent?...

Visual Studio Code Segmentation Fault on Debian

linux,segmentation-fault,debian,glibc,vscode
I downloaded and extracted VS Code in a Debian x64 VM and tried to run it. It complained about missing glibc libraries (I have 2.13, it needs 2.15). I followed these steps to get Ubuntu DEBs. Using those, VS Code throws a segmentation fault when I run it. gdb tells...

Switch to a program on Linux Debian

c#,linux,mono,debian,crontab
I have developed a program in C# using mono toolkit. The program works like a charm on my Linux Debian VPS. I need this program to run constantly and I execute it via a crontab. The process is effectively running in the background. However, I am not able to "show"...

Error code numbers. Define proper values

bash,debian
I saw E_NOTROOT=87 # Non-root exit error in the one of the bash script examples. Where this value was taken from? How can I find proper error numbers for such kind of errors in bash environment?...

arm-none-eabi-g++ compiler throws compilation error pthread_exit was not declared in this scope

c++,linux,c++11,debian,cross-compiling
Running in debian linux arm-none-eabi-g++ pthread.c -o pthread -lpthread throws below compilation error. But if I run the g++ pthread.c -o pthread -lpthread there is no compilation errors. I never used cross compiler. I knew there is problem in linking in libraries. Please help me. I searched lot in the...

How check FTP anonymous connection

linux,shell,ftp,terminal,debian
I want to ask about ftp connection in linux, how can i check the ftp anonymous connection in linux by using terminal? i use while loop for read vsftpd.conf file, like that while read line do if [ Anonymous_enable=YES ]; then echo " Accept connection" elif [ Anonymous_enable=NO ]; then...

Autostart of GTK application failing

linux,gtk,debian,beagleboneblack
I have a GTK application that runs perfectly when run from the desktop or a terminal window. I created a myprog.desktop file in ~/.config/autostart: [Desktop Entry] Type=Application Name=MyName Path=~/...blah../MyApp Exec=./myapp NoDisplay=false Hidden=false X-GNOME-Autostart-enabled=true This creates an icon which I can double-click, and the code runs. However it does not run...

Inserting an initial user into my database on bash deployment

bash,postgresql,shell,debian
I'm trying to create an initial user in my postgresql database on deployment. Apparently I need to generate a pbkdf2:sha1 key of the password that I want for the user. For example, say I wanted to add an admin account with username "admin" and password "admin" I would need to...

possible attack on postfix server

email,debian,postfix-mta
I am afraid that my vps server is being attacked as the postfix logs have hundreds of lines with these messages: May 24 10:50:32 ukvps postfix/smtpd[29971]: warning: hostname xep9.flink.uz does not resolve to address 91.234.218.9: Name or service not known May 24 10:50:32 ukvps postfix/smtpd[29971]: connect from unknown[91.234.218.9] May 24...

Losing image quality with apache deflate and mem_cache

image,apache,debian,mod-deflate,mod-cache
I'm running my website under Debian 7, The following apache modules were enabled : mem_cache, cache, deflate But the problem is, all images was losing their quality! When i check my physical file, the quality is perfect. I disabled all of those three modules, but the problem persist! How can...

why guest additions needs xorgs packages

debian,vagrant,xorg
trying to install a vagrant i figured out a problem. I tried to install a debian jessie os and followed procedure from several docs. I choosed not to install a desktop environment. During the process i had to install linux headers and then guest additions wich failed many times. googling...

Patch pyopenssl for sslv3 issue

python-2.7,debian,pip,pyopenssl,urllib3
I got a problem on a Debian 8 system with python 2.7.9-2 amd64: [email protected]:/usr/lib/python2.7/dist-packages/urllib3/contrib$ pip search doo Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point return ep.load() File...

“ImportError: No module named pygame.base” - Pypy3 and pygame

python,debian,pygame,libraries,pypy
After several trials for install pygame in pypy3, I did it with the bitbucket version, cloning with mercurial and installing this way: "pypypath"/bin/pypy3 setup.py However, when I'll make the import, the following error appears: Traceback (most recent call last): File "/home/rafael/PycharmProjects/pygame-teste/__init__.py", line 3, in <module> import pygame File "/opt/pypy3-2.4.0-linux64/site-packages/pygame/__init__.py", line...

Custon headers not working on php 5.6 - apache 2.4, debian 8 jessie

php,apache,debian,apache2.4,php-5.6
I just upgraded my debian 7 wheezy to debian 8 jessie. Apache and php were updated accordingly from apache 2.2.22 to 2.4.10 and from php 5.4.x to 5.6.9. Now when sending custom headers with ajax request, they are not present in php. Here is a simple example with index.php and...

Taiga 'i586-linux-gnu-gcc': No such file or directory

python,linux,gcc,debian
I am trying to install taiga (scrum tool) on our project-server (debian 6.0) Installation Guide: http://taigaio.github.io/taiga-doc/dist/setup-production.html So far i came to the point: Install dependencies pip install -r requirements.txt There i get following error: i586-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1...

debhelper instructed to use python3, but runs setup.py with python2

python-3.x,debian,deb,software-packaging,debhelper
I am struggling with dh to create package for python 3 (and not for python 2). I use setup.py which, when called with python3, builds for python 3. I have a separate debian directory for py3k, so I want to build just for that version. debian/rules looks like this: export...

Fatal error: Maximum execution time of 30 seconds exceeded in my php

php,apache,debian
I have a blog and there is the code. This load is very slow and in error.log i got this error: Fatal error: Maximum execution time of 30 seconds exceeded in my ../php/controller.php on line 19. What is the problem? I set the php.ini: max_execution_time = 600 max_input_time = 600...

mysql join query taking too many resources

mysql,join,debian,left-join
I am using python2.7 and mysql5.5 on debian. With this query mysql use 100% cpu: mysql> SHOW FULL PROCESSLIST; +-----+------------------+-----------------+---------+---------+------+--------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Id | User | Host | db | Command | Time | State | Info |...

Set hostname for GCE instance - instead of IP address

networking,debian,godaddy,google-compute-engine,google-cloud-dns
I have a new GCE instance(Debian Wheezy), using Google based apps domain like: www.example.com I want to set a hostname for this server I have deployed a PHP webapp(Current URL: {IP}/appname) But, I want to use the hostname instead of IP and call the app URL. Eg. http://{servername}/appname I...

How to install / use orafce package in postgresql 9.4?

postgresql,debian,orafce
I'm running the "official" docker container of postgresql in version 9.4. I went inside the running container and installed orafce docker exec -i -t my_postgres bash apt-get install postgresql-9.4-orafce afterwards I've tried to reload and restart the postgresql service, as well as just restarting the whole container, but when I...

SSH directly into a docker container

ssh,debian,docker
i've got some docker conatiners and now I want to access into one with ssh. Thats working I got a connection via ssh to the docker container. But now I have the problem I don't know with which user I can access into this container? I've tried it with both...

Set variables versus env variables Linux(debian) Bash shell

linux,bash,debian
When creating set variables, what is the advantage of adding them to environment? Both are lost at session termination. I know obviously I can add useful stuff to .bashrc that I would want to access via my user. Just not sure what the advantages would be? how common practice is...

udev $kernel or %k substitution not expanding correctly

linux,bash,debian,udev
I'm having a lot of trouble with this. Thank you in advance for any help. I'm trying to pass the $kernel or %k to a bash script on usb audio recorder input. I have two issues and 1 challenge. Neither %k or $kernel expands to "sdd" or "sdc", etc. instead...

debian 8: deb command not found. How can i fix it? [closed]

linux,debian,deb
I am trying to install graphics card Nvidia Geforce 660 on my desktop. Os: debian 8. Here is the wiki which gives guidelines : https://wiki.debian.org/NvidiaGraphicsDrivers#jessie-304xx But as soon as I am on the first step: deb http://http.debian.net/debian/ jessie main contrib non-free bash: deb: command not found How can I install...

Create postgresql database entry using bash script

bash,postgresql,shell,debian
Below is a section from my bash script, which should create a frontend user: DBUSER="testing" DBNAME="testing" ADMIN_NAME="A" ADMIN_LNAME="B" ADMIN_EMAIL="[email protected]" ADMIN_PASSWORD="'password'" PGPASSWORD=$DBPASS psql -U $DBUSER -d $DBNAME -h 127.0.0.1 -c "INSERT INTO users_user VALUES (1, \'$ADMIN_NAME\', \'$ADMIN_LNAME\', \'$ADMIN_EMAIL\', \'$ADMPASS\', \'true\', \'zxc\')" The result I get it this: ERROR: syntax error at...

Symfony php.ini Debian

php,symfony2,datetime,debian
I'm using Debian 7 amd64 LAMP server on Oracle VM VirtualBox. I'm trying to install Symfony and I'm having some lil problems When I run command: php my_project_name/app/check.php It says: [ERROR] Your system is not ready to run Symfony2 projects. Fix the following mandatory requirements: date.timezone setting must be set...

Yandex-tank installation error

debian,apt,yandex-tank
While yandex-tank installation I followed the official documentation https://yandextank.readthedocs.org/en/latest/install.html doing so: sudo apt-get install python-software-properties sudo apt-get install software-properties-common sudo add-apt-repository ppa:yandex-load/main sudo apt-get update && sudo apt-get install yandex-load-tank-base But got an error: W: Failed to fetch http://ppa.launchpad.net/yandex-load/main/ubuntu/dists/wheezy/main/source/Sources 404 Not Found W: Failed to fetch...

Passenger repository certificate verification failed

ruby-on-rails,linux,ubuntu,debian,passenger
I want to install Passenger server on my virtual machine, so I do the following: sudo sh -c "echo 'deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main' >> /etc/apt/sources.list.d/passenger.list" sudo chown root: /etc/apt/sources.list.d/passenger.list sudo chmod 600 /etc/apt/sources.list.d/passenger.list But after I update sudo apt-get update I get this errors: Err https://oss-binaries.phusionpassenger.com trusty/main amd64 Packages server...

debian wheezy - how to mount unused disks?

linux,debian,mount
I'm mostly a database guy but i have debian wheezy server with 4 hard disks. It was set up using one disk a while back, that one was all that was needed. Now, i need more space and the thing, i think, that is throwing me off is the UUID...

Set up TightVNC programmatically with BASH

bash,debian,expect,vnc-server,tightvnc
I'm writing a script to set up VNC (amongst other things) on many debian based devices. I want to include VNC in this setup (specifically, tightVNC if possible) and have it set a given password (randomly generated by the script). The problem is, every guide I find seems to assume...

Running git from node.js as a child process?

linux,node.js,git,ssh,debian
I am attempting to write a generic command-runner in Node.JS - however that's not massively important. My setup is as follows: I have a list of string commands that are executed using child_process.exec one after the other. I want to run git from one of these commands, specifically a pull....

Apache2 how to working www.example.com

apache,http,debian,virtualhost,lamp
I need help. I am sorry wrong write. My LAMP server i created virtual host working http://example.com a NOT WORKING http://www.exaple.com <VirtualHost *:80> DocumentRoot "/var/www/example/1/public_html" ServerName example.com ServerAlias www.example.com ServerAdmin [email protected] <Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from...

Script for merging two SSH connections together?

linux,bash,ssh,debian
I'm trying to write a bash script to merge 2 already-existing SSH connections. For example, if I have an embedded device automatically creating an SSH connection to my server (from behind a firewall), how can I connect to that server in the middle, and jump into the already-existing connection from...

Copying files between two Debian Servers using php

php,debian,vpn,file-transfer
My php website is hosted in Debain Machine and I want to move a file from that Machine to another Debain which is connected through VPN. I tried shell_exec and scp , as mentioned here. <?php $output = shell_exec('scp file1.txt [email protected]:somedir'); echo "<pre>$output</pre>"; ?> I also tried using SFTP <?php...

How to install Mono 4.0.1 on Debian 8?

linux,mono,debian
I am attempting to install Mono-Complete onto a fresh brand new installation of Debian 8 in order to use ASP.NET 5 as per (code.visualstudio.com/docs), have followed the mono-project.com documentation for Ubuntu 12.04/Debian 8 or later with regards to the second repository that is needed. However, after following the instructions and...

Permissions error while setting up kubernetes pod

debian,google-compute-engine,kubernetes
I am a newbie to kubernetes and docker and I am following the tutorial at https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress which teaches how to setup a pod running wordpress. I have setup a GCE instance and have logged into my debian instance and installed docker and kubernetes. But when I specify a file to...

Working on a Dockerfile in order to build a WordPress image

wordpress,debian,docker,fedora,dockerfile
I'm a newbie using Docker, and I don't understand something. If I'm using the official Dockerfile used to build the official Wordpress image, we start with: FROM php:5.6-apache Then, to install extensions and models we have to use: RUN apt-get [install or Update] My question is: Why we are using...

how to edit existing debian package in installation cd?

installation,debian,package,edit,cd
ive been trying to edit a Debian installation CD, followed tutorial on debian website https://wiki.debian.org/DebianInstaller/Modify/CD, successfully extract cd, use genisoimage to recreate iso, try to install debian, no problem. and then the problem, when i tried to edit one of the package, say i want to change a picture in...

Eclipse Luna stop working in Debian when pop-up open

eclipse,crash,debian,eclipse-luna,kali-linux
every time I go to the Eclipse-luna IDE and enter a line of code in a class that I created and code assist opens the pop-up with suggestions, stop working the eclipse and only runs again if I kill process and re-run the eclipse. My OS is the latest stable...

Virtual Windows-Server on Debian Machine [closed]

linux,debian,virtual-machine
What is the best way to run a Virtual Windows-Server on a Debian-Machine? The Debian-Machine i can only reach from remote. I read something from "XEN" but it looks quite complex so i thought it is maybe a good idea to ask first if there is a better or easyer...

Why does qemu performance differ when downloaded from repository and compiled from source?

linux,debian,qemu,debian-7.6.0
I am doing some tests on the performance of QEMU (qemu-system-i386) in full emulation mode (with TCG), and avoiding KVM. I have installed the version available in the debian repository (QEMU emulator version 1.1.2 (Debian 1.1.2+dfsg-6a+deb7u6), and downloaded and compiled the sources for Qemu 2.3.0, Qemu 1.0.0, Qemu 1.1.2, and...

Munin-graph is not executing

debian,munin
I have a headless Debian box with an arm v5. Linux NSA325 3.13.1-kirkwood-tld-2 #1 PREEMPT Tue Feb 4 03:19:07 PST 2014 armv5tel GNU/Linux I have munin and munin-node configured on this box with apache. Version: 2.0.6-4+deb7u2 One day I upgraded munin and the default's were to generate graphs on CGI....

Syntax error on simple init script for debian

bash,shell,debian,init
It seems like the colons should be there from the tutorials I am reading, and yet it is telling me to remove them? /etc/init.d/uwsgi: 27: /etc/init.d/uwsgi: Syntax error: ";;" unexpected Any help on this error would be appreciated. #!/bin/sh ### BEGIN INIT INFO # Provides: uwsgi # Required-Start: $local_fs $remote_fs...

Copying raw text from a grep to paste in an email

grep,debian,virtual-machine
I'm running a VM with Debian 7.0 x64 and need to troubleshoot something with a provider, so when I run a grep command, the console outputs a long report. I need to copy all of that text that has been output and place in the body of an email, or...

Octave and Java: libjvm.so not found

java,debian,octave
I am trying to use WFDB toolbox for Matlab from Physionet in GNU Octave. One prerequisite is having GNU Octave 3.8.1 or later with the Java package, so I have compiled it for my Debian 7.8 and then installed Java package from within Octave. I am not sure to have...

Debian 8 Jessie UEFI Install

debian,uefi
I am installing Debian 8 Jessie on a UEFI system. I have to set up RAID so I am using manual partitioning. The system installs fine in BIOS compatibility mode but there doesnt seem to be a UEFI installation option in there. Is there a non-obvious way to do that...

Basic bash scripting, enumeration and comman replacement tool issues

bash,debian
i am trying to generate many invalid ipv4 addresses and a few valid ones in my debian7 bash. my plan was to go with: echo {0..3 , 00..03 , 000..003 , 300..303 , 254..257 , 0254..0257 , fail , 888} echo -e "\n"!^.!^.!^.!^ >> ip.txt but it just echoes "{0..3...

unable to update python package psutil

python,debian,psutil
when i check the version of psutil in python it says i have version 0.5.0: $ uname -a Linux mypc 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux $ python Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>...

How to do case insensitive regex on an Nginx server?

regex,nginx,debian,server
A serious problem happened after migrating a server from Ubuntu to Debian. Debian won't allow two files, for example "a.html" and "A.html" to be in the same directory. My server gets three types of requests and this is the current status: requests such as /archive/2014/www.Test.com are supplied with the file:...

What is the difference between xen-linux-system-3.16.0-4-amd64 and xen-linux-system-amd64 in Debian 8 Jessie

linux,debian,xen
I'm looking to migrate to Debian 8 Jessie and new Xen. I see that there two xen-linux-system-* packages available in Jessie: xen-linux-system-3.16.0-4-amd64 xen-linux-system-amd64 I have installed them, one at the time, and both install Xen Hypervisor version 4.4.1. What is the difference between them?...

start file manager in terminal window wheezy

linux,debian,raspberry-pi
Is there an easy way to start my File Manager in GUI as root? All I want to do is temporarily create/update some files and I want to do it through the GUI. I am using a Raspberry Pi that is running Wheezy....

Getting X Cursor in WebKit GTK2+ widget if run by startx

webkit,debian,xorg,gtk2,gdk
I try to write kiosk web browser and run it automaticly after system boot. It's simple GTK2+ application, with WebKit used as browser. It starts from ~/.xinitrc: exec /home/kiosk-user/bin/browser 'http://localhost/' Source code browser.c: #include <stdio.h> #include <signal.h> #include <stdio.h> #include <gtk/gtk.h> #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> #include <webkit/webkit.h> int main( int...

IPTables hex string match to mitigate dos attack

debian,dos,iptables,ddos
A server of mine has been under dos attacks for the past few weeks. They've just now starting randomizing the source so I can't simply drop the packets by source IP anymore. Here are a few of the packets from tcpdump: 23:58:32.229878 IP (tos 0x0, ttl 242, id 21915, offset...

dh_md5sums: Argument list too long

debian,software-packaging
I am using debuild to build my debian packages. When building one of them (which contains quite a lot of php files), I get the following error: dh_installdocs dh_installchangelogs dh_perl dh_link dh_compress dh_fixperms dh_installdeb dh_gencontrol dpkg-gencontrol: warning: package amazing-php: unused substitution variable ${perl:Depends} dh_md5sums Can't exec "/bin/sh": Argument list too...

Debian adding user

ruby-on-rails,ruby,linux,debian
I want to add a new user to my debian server. The user should have access rights to ruby / rails / rvm / gem / git / and folder /var/www/ How do I add this user correctly? The user should be able start a webrick server and install gems....

Rails sending mails with actionmailer from an virtualbox vm

ruby-on-rails,ruby-on-rails-4,debian,virtualbox,actionmailer
I have an Debian VM running in Virtual box on my Windows machine. In my VM is a Rails application running, which should send mails with the action mailer. I've set up the action mailer credentials in application.rb But when a mail should be send there is nothing in my...

Debian Plesk Server: MySQL doesn't start

mysql,debian,plesk
I have a little Problem with a MySQL Server running on a Debian Server managed by Plesk. If I try to start the MySQL Server the following message is logged at MySQL_error.log: 150518 02:54:42 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 150518 02:55:15 mysqld_safe Starting mysqld daemon with databases from...

Debian Jessie 32-bit libraries

x86,debian,32bit-64bit,32-bit
For those looking for the answer, there it's, as it's not clear on other websites. This is required at least by the Intel compiler. Maybe it helps also for other software....

cannot reach symfony app on my debian 404 Not Found

php,linux,apache,symfony2,debian
looking for solutions for a small challenge i have my local network (router) i have debian server on first machine where i have installed a symfony in /var/www/my-symf-app i changed /etc/site-available and /etc/hosts for my new web site when i'm trying to reach in a web browser my-symf-app from my...

Build debian package without .orig file

linux,debian,software-packaging
I've created packages previously by using a Makefile, the command "dh_make --createorig", then adjusting files in the debian folder generated and finally using the debuild command to generate the .deb. That workflow is simple and works for me, but I was told to adjust it a little in a way...

Connecting to https with soapClient

php,soap,debian
I've spent the last couple of days trying to figure out why my soap client can't connect, any help is appreciated. Very straightforward issue, my soap client; $soapClient = new SoapClient("AXLAPI.wsdl", array('trace'=>true, 'exceptions'=>true,'location'=>"https://ip_address:8443/axl", 'login' => "username",'password'=> "password")); Yields this very common error; Fatal error: Uncaught SoapFault exception: [HTTP] Could not...