Menu
  • HOME
  • TAGS

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

xen-linux-system-amd64 will just be a dependency on the latest version in the distribution, which is currently xen-linux-system-3.16.0-4-amd64. Should a newer version be introduced at some point, xen-linux-system-amd64 will have a dependency on that version instead. If you want to stay on the old, specific version, install the 3.16.0-4 package instead....

SSH Permission denied (publickey) [closed]

linux,ubuntu,ssh,debian,rsa

You do not want to offer your .pub as your credentials. You want to use your private key on your end, so you should probably be doing ssh -v -i ~/.ssh/id_rsa [email protected] which is the deault key to use, so you can just leave off the -i flag altogether Also,...

Losing image quality with apache deflate and mem_cache

image,apache,debian,mod-deflate,mod-cache

Sorry, it was a network problem!

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

python,linux,gcc,debian

I have this error and solved installing package minwg32 and dependencys (linux)

Copying raw text from a grep to paste in an email

grep,debian,virtual-machine

the easiest way would be to save the output to a file and attach that to your email. (personally i hate emails that have inlined long error-logs without good cuase - like annotations). this would also allow you to compress the file before attaching it, reducing the size considerably (as...

Basic bash scripting, enumeration and comman replacement tool issues

bash,debian

I guess you want somthing like this: for a in {{0..3},{00..03},{000..003},{300..303},{254..257},{0254..0257},fail,888} ; do for b in {{0..3},{00..03},{000..003},{300..303},{254..257},{0254..0257},fail,888} ; do for c in {{0..3},{00..03},{000..003},{300..303},{254..257},{0254..0257},fail,888} ; do for d in {{0..3},{00..03},{000..003},{300..303},{254..257},{0254..0257},fail,888} ; do echo "$a"."$b"."$c"."$d" done done done done The script outputs 456976 wannabe IP addresses: 0.0.0.0 0.0.0.1 0.0.0.2 0.0.0.3 0.0.0.00 ......

Error code numbers. Define proper values

bash,debian

It's not amongst the official GNU libc or linux error codes (1, 2) I assume you are just playing with some code examples from here. I believe the author just built its own error code (with a value high enough not to interact with the existing ones!) to use it...

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

console,debian,tty,openvz,proxmox

I just fix this by removing: /etc/systemd/system/getty.target.wants/[email protected] and it now tty1 is gone. Still don't know if it will breaks anything....

cannot reach symfony app on my debian 404 Not Found

php,linux,apache,symfony2,debian

Add on the 2nd computer ip and domainname to hosts. I mean add ip adress of the server and his domain to host on second computer it should work.

Rails sending mails with actionmailer from an virtualbox vm

ruby-on-rails,ruby-on-rails-4,debian,virtualbox,actionmailer

In development environment you need these options in environments/development.rb config.action_mailer.perform_deliveries = true config.action_mailer.delivery_method = :smtp By default rails in development mode only shows email body in log without real sending....

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

linux,bash,debian

xargs to the rescue. find /usr/lib/python2.7/ -name '*.so' -exec ldd {} \; | xargs -r cp -t where/is/destination This ends up effectively collecting the output from ldd to the end of the cp command line. This will only work correctly if the file names do not contain newlines. Some legacy...

dh_md5sums: Argument list too long

debian,software-packaging

We fixed it by adding dh_override_md5sums to our debian/rules file: #!/usr/bin/make -f # Empty target: https://goo.gl/m90o0y override_dh_md5sums: ; %: dh [email protected] ...

Not a debuggee or not listening for a debugger to attach

java,debugging,netbeans,debian

Here you can run mamut in debug mode adding the following options to the java command in run.sh -Xdebug -Xrunjdwp:transport=dt_socket,address=1000,server=y,suspend=n You then have to attach the debugger in netbeans choosing the dt_socket transport option. Note that, if suspend is 'n', the application will start immediately and will not wait for...

Set hostname for GCE instance - instead of IP address

networking,debian,godaddy,google-compute-engine,google-cloud-dns

Your domain has DNS servers associated with it. You can check any public whois service and look for Name Server records. You should have credentials to log into that management console and append the A record you want, ie, from your domain name to your GCE's ip address. If the...

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

linux,debian,postfix-mta

First to the amavis problem: According to you pastebin: qmgr requests something from amavis and gets a response it does not understand. I assume that qmgr send a mail to amavis that should be checked. Either amavis is down or the mail causes amavis to produce a corrupt response. But...

Working on a Dockerfile in order to build a WordPress image

wordpress,debian,docker,fedora,dockerfile

The WordPress image Dockerfile does begin with FROM php:5.6-apache. But the php:5.6-apache image Dockerfile starts with FROM debian:jessie. Hence the apt-get. Each image builds up based on another base image. ...

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

c++,linux,c++11,debian,cross-compiling

I assume the first three lines in your code are: #include ... And not include ... And you just copy/pasted wrong. Otherwise you are not showing all the errors you got. Other than that. The problem is most likely due to something weird going on with your pthread.h file. Compile...

Debian 8 Jessie UEFI Install

debian,uefi

You need to boot your PC in UEFI mode, not BIOS compatibility. You will see a different installer that says "UEFI Installer". To compare with a regular installer: ...

how to use systemD to restart a service when down?

linux,service,debian,monitor,systemd

if you are using systemd service file to start your service then below will be answer for your question add below lines in your service file from where you are staring your service [Service] Type=simple ExecStart=here will be your service executable name Restart=always RestartSec=0 Restart= Configures whether the service shall...

Passenger repository certificate verification failed

ruby-on-rails,linux,ubuntu,debian,passenger

Fixed that by reinstalling Ubuntu on clean VM. This issue might appeared because I copied my VM's without turning it off.

Compiling MySQL 5.6 for Raspberry Pi - validation error

mysql,debian,raspberry-pi,gnupg,mysql-5.6

This helps: sudo gpg -k Then install any missing packages that it errors on and then go for the final build/compile....

Compiler can't find libxml/parser.h

linux,include,debian,libxml2,suse

Try to compile with explicite inclusion where the parser.h file is, i.e. smth like this g++ -I/usr/include/libxml2/ Following environment variables can also be used for lookup of header files CPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH OBJC_INCLUDE_PATH Find more information here ...

Patch pyopenssl for sslv3 issue

python-2.7,debian,pip,pyopenssl,urllib3

This is actually an issue with urllib3, not with pyopenssl. Debian lately compiles OpenSSL without SSLv3 support, and urllib3 just assumed that support was there. The issue was fixed in commit b9b3b0102 which is part of the 1.10 release of urllib3. As you are using urllib3 as part of requests,...

udev $kernel or %k substitution not expanding correctly

linux,bash,debian,udev

The problem here is the rule match. When a single USB drive is plugged, a series of udev event are generated corresponding to all device nodes created (USB tree). The leaf is the partition (block device) and the top parent is a PCI bus. So rule matches two nodes which...

unable to update python package psutil

python,debian,psutil

remove all versions of psutil and install 2.2.1 again: $ sudo pip uninstall psutil Uninstalling psutil: /usr/local/lib/python2.7/dist-packages/_psutil_linux.so /usr/local/lib/python2.7/dist-packages/_psutil_posix.so /usr/local/lib/python2.7/dist-packages/psutil /usr/local/lib/python2.7/dist-packages/psutil-2.2.1.egg-info Proceed (y/n)? y Successfully uninstalled psutil $ sudo apt-get remove --purge python-psutil Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED:...

Visual Studio Code Segmentation Fault on Debian

linux,segmentation-fault,debian,glibc,vscode

Updating to Debian 8 fixed this problem.

Awk match only when line starts with result

linux,bash,shell,awk,debian

In regular expressions, ^ matches only at the beginning of a line. Thus, to match Port only at the beginning of a line, write ^Port. For example, lets create a file; $ cat >testfile Port 123 # Test <- It would match this one This is a Port <- It...

Debian Jessie 32-bit libraries

x86,debian,32bit-64bit,32-bit

Just run those commands in your terminal. sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install build-essential gcc-multilib rpm libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 Or as root remove the "sudo" from them....

NPM not Working

node.js,debian,npm

It seems like /usr/local/bin is not in your PATH and thus the executable cannot be found. Add it to your PATH as described in How to permanently set $PATH on Linux?. If you just link the one executable, you will have the same problem with any other executable added to...

Security concern for an OTA in Debian

linux,security,debian,ota

If you do a apt-get update just your sources.lst gets renewed. In case you mean apt-get update && apt-get upgrade (which actually updates your system) I think it does not depend on how you invoke your update but rather on how secure the server is which holds the repository and...

Symfony php.ini Debian

php,symfony2,datetime,debian

You are executing the check script via command line, so the php.ini is different between the CLI and apache. For find the correct php.ini for the cli lauch the following command: php -i | grep 'php.ini' And check the Loaded Configuration File line Hope this help...

Autostart of GTK application failing

linux,gtk,debian,beagleboneblack

Running the code from .xsessionrc would appear to work nicely. I run it as /usr/bin/sudo ./myapp - just to be sure!

Fighting with brute force attack on email service

linux,debian,firewall,exim,directadmin

A good solution would be to use Fail2ban. Fail2ban is a Daemon to ban hosts that cause multiple authentication errors And it uses iptables to do the work. By default it won't block SMTP attacks, but you can edit its config file /etc/fail2ban/jail.local like this: [...] [sendmail] enabled = true...

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

ruby-on-rails,networking,debian,subdomain,host

You can use the lvh.me domain. That domain has a DNS entry that will redirect to localhost. This also works for subdomains, so you can visit admin.lvh.me:3000 and it will redirect to localhost:3000 while still having the subdomain available in the Rails request. The advantage is that you don't have...

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

webkit,debian,xorg,gtk2,gdk

You can find solution here. Just put xsetroot -cursor_name left_ptr in your ~/.xinitrc.

Script to power off a pc too brutal?

linux,bash,debian

poweroff is ok from my point of view. I usually switch off the computer like that. It will (as mentioned) end correctly the running services and syncs the disks. It is not at all like hardware unplug. If you have something running, instalation, updates... everything gets a kill signal and...

SSH directly into a docker container

ssh,debian,docker

You can drop directly into a running container with: $ docker exec -it myContainer /bin/bash You can get a shell on a container that is not running with: $ docker run -it myContainer /bin/bash This is the preferred method of getting a shell on a container. Running an SSH server...

Copying files between two Debian Servers using php

php,debian,vpn,file-transfer

I installed proftpd and created a user as mentioned here, Please note default port is 21. And make sure you restart proftpd: service proftpd restart The code I used to upload a file is: index.php <?php ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(-1); $file = 'a.txt'; $remote_file = 'b.txt'; $conn_id = ftp_connect('www.xxx.com',21); $login_result =...

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

linux,debian,qemu,debian-7.6.0

The problem here is your '--enable-tcg-interpreter' argument to configure. This disables the usual JIT-based TCG backend for the host CPU in favour of a slow interpreted backend. You never want the interpreter unless QEMU would otherwise not support your host CPU at all; as you have found, it is markedly...

why guest additions needs xorgs packages

debian,vagrant,xorg

Because the guest-additions mainly provide xorg drivers. If you are not running an X-server, there is little reason to install them....

phpmyadmin on debian with nginx

nginx,permissions,debian

Finally I found solution. I forgot to add the phpmyadmin directory to PHP open_basedir. Now everything is working properly. Thanks all users for advice.

Permissions error while setting up kubernetes pod

debian,google-compute-engine,kubernetes

For the simplest getting started experience on Google's cloud platform, I'd recommend using Google Container Engine to get your cluster up and running. With one click or a single command line (gcloud alpha container clusters create NAME --zone ZONE) you can deploy a cluster and get yourself up and running...

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

ffmpeg,debian,gstreamer,apt

there is no package, so you cannot install it. Debian has switched to libav in favour of ffmpeg, and the gstreamer0.10-ffmpeg package currently cannot be be build using libav. hence it is not jessie. You might have luck (or not) using one of the gstreamer0.10-ffmpeg packages on some ubuntu PPAs...

mysql join query taking too many resources

mysql,join,debian,left-join

Here is the correct way to write the query: SELECT c.ID, c.RATING, c.MANDRILL_ID FROM contacts c JOIN mails m ON m.CONTACT_ID = c.ID WHERE m.MANDRILL_ID = 'fea4b3b036b44655a7e24121ac359d0a'; For performance, you want the following indexes: mails(mandrill_id, contact_id) and contacts(id) (you probably have the latter). Notes: The left join was being turned...

Awk replace entire line when match is found

regex,bash,shell,awk,debian

Again, use a regular expression for that which you want to replace: replaceappend port.txt "Port.*" "Port 222" Here you are replacing Port (if it starts the line, as per your function definition) plus whatever follows until the end of the line with "Port 222". EDIT: To make this part of...

Security in Gitlab. With gitolite?

git,security,debian,gitlab

First, GitLab has replaced Gitolite with GitLab shell long ago: https://github.com/gitlabhq/gitlab-shell , I don't think it is compatible with gitolite anymore. Next, why do you need to play with GitLab shell to hide code from emploees? Why not just: put the code on a safe server which employees cannot access...

Install imap extension for php 5.3.3-7+squeeze17

php,debian,imap,php-extension,apt-get

I solved the issue with calling external python script, which uses imaplib (http://pymotw.com/2/imaplib/). Example of calling python from php: <? exec("python <ABSOLUTE_PATH_TO_SCRIPT>.py " . escapeshellarg($arg1)); ...

PATH is not updated when I login

linux,bash,debian,environment-variables,.profile

In your .bashrc file add the following command: PATH="/home/gsamaras/mpich-install/bin:$PATH" Then execute: . .bashrc from you home directory. Now, check you path (or) logout and login....

Script for merging two SSH connections together?

linux,bash,ssh,debian

It sounds like your requirements are going to need either a uPNP solution or tunnelling solution to get through your firewall. The following link discusses reverse SSH tunneling as one part of this solution. http://unix.stackexchange.com/questions/46235/how-does-reverse-ssh-tunneling-work...

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

linux,networking,debian

If there are incompatibilities, I would suggest you run the 'upgrade manager', and let it check if there are packages which have to be update. How did you install the icons and what did you install from gnome? An extension? Try this: sudo apt-get --reinstall install network-manager I think your...

Munin-graph is not executing

debian,munin

I managed to fix this by extracting the .deb file manually and copying the template and static directories over the ones in /etc/munin/ for some reasons a aptitude reinstall was not copying these files?

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

c,r,debugging,gdb,debian

guess_fc() calls rval <- .Call("reg_wrong_fc", surname, name, year, month, day, female, codice_catastale, PACKAGE = "ifctools") so maybe you are simply not calling the C code you thought you were? (I'd have entered c to (c)ontinue execution, rather than signal 0.)...

Debian adding user

ruby-on-rails,ruby,linux,debian

A standard user should be able to do all that with a single-user installation of rvm. Just follow the instructions on https://rvm.io In order to check if your user has rights on /var/www : check your user's groups : groups #{username} check permissions on /var/www : ls -al /var |...

How check FTP anonymous connection

linux,shell,ftp,terminal,debian

Not sure why are you using while loop but you can use simple bash script: #!/bin/bash X=`cat /etc/vsftpd | grep ^anonymous_enable | awk -F= '{print $2}'` shopt -s nocasematch if [[ $X = "YES" ]] then echo -e "Accept connection\n" else echo -e "Not Accept\n" fi Output: [[email protected] ~]# sh...

Running git from node.js as a child process?

linux,node.js,git,ssh,debian

My mistake was taking the contents of .bash_profile and using that to set up keychain from my exec. What I needed to do was: . $HOME/.keychain/$HOSTNAME-sh; git pull I found this out by looking up examples of how to use keychain with bash scripts....

How to install Mono 4.0.1 on Debian 8?

linux,mono,debian

There was an issue with the Mono packages that should now be resolved, please see http://www.mono-project.com/docs/getting-started/install/linux/#libgdiplus-debian-80-and-later-not-ubuntu. The reason is that Debian 8 doesn't have libjpeg8 anymore which libgdiplus (a component of Mono) requires....

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

tomcat,grails,debian,grails-2.0

There is no need to config about folder in config.groovy. just follow the below code. at least worked for me ::: def gameImage = request.getFile('appImage') String imagePath = "${request.getRealPath('/')}/apps/gameImage/" new File( imagePath ).mkdirs() gameImage.transferTo( new File( imagePath + File.separatorChar + gameImageName) ) ...

How to do case insensitive regex on an Nginx server?

regex,nginx,debian,server

There are plenty of ways you can go about this problem. Since you need to change only one specific letter to lowercase, you could use "map" with case insensitive regular expression: map $request $letter { "~*^/archive/[0-9]{4}/(www\.)?a(.*)?$" a; "~*^/archive/[0-9]{4}/(www\.)?b(.*)?$" b; "~*^/archive/[0-9]{4}/(www\.)?c(.*)?$" c; "~*^/archive/[0-9]{4}/(www\.)?d(.*)?$" d; "~*^/archive/[0-9]{4}/(www\.)?e(.*)?$" e; "~*^/archive/[0-9]{4}/(www\.)?f(.*)?$" f; "~*^/archive/[0-9]{4}/(www\.)?g(.*)?$" g; "~*^/archive/[0-9]{4}/(www\.)?h(.*)?$"...

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

python,debian,pygame,libraries,pypy

pygame does not work on pypy. You can try pygame-cffi, but I'm not sure it's python 3 compatible. You might also need to improve places, since it's unfinished, but generally works.

Disable file caching on Debian Wheezy Web Server

linux,apache,caching,nginx,debian

try adding the following to your server block location ~* \.(?:json)$ { expires -1; } and restart nginx using nginx -s reload this should disable caching for all .json files...

Switch to a program on Linux Debian

c#,linux,mono,debian,crontab

If you want to get the output of a program running in the background, first get its PID with the command pidof program_name. This will return, for example, 2518. Now you can run tail -f /proc/2518/fd/1 to follow the output of that program....

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

linux,gcc,debian,powerpc

To find which symbols made your elf non-PIC/PIE (Position Independent Code/Executable), use scanelf from pax-utils package (on ubuntu, install it with sudo apt-get install pax-utils): $ scanelf -qT /usr/local/lib/libluajit-5.1.so.2.1.0 | head -n 3 libluajit-5.1.so.2.1.0: buf_grow [0x7694] in (optimized out: previous lj_BC_MODVN) [0x7600] libluajit-5.1.so.2.1.0: buf_grow [0x769C] in (optimized out: previous lj_BC_MODVN)...

Virtual Windows-Server on Debian Machine [closed]

linux,debian,virtual-machine

Debian already includes kvm/qemu/libvirt - just install the packages, then read the manuals to learn how to set things up (disk images, networking, VM).

Set variables versus env variables Linux(debian) Bash shell

linux,bash,debian

Environment variables are inherited by any process invoked by your shell. That includes both sub-shells and any other commands you invoke. (Non-environment) shell variables are not. For example, $TERM needs to be exported, because commands you invoke from your shell (a text editor, a pager, anything that uses a full-screen...

Programmable strings in Debian GNOME Terminal emulator

terminal,debian,gnome

To clarify: the question appears to be asking if gnome-terminal supports escape sequences which allow an application to change key-bindings. To that, the answer is "no". The term "localized" generally refers to something different: the customization of an application to different locales. For example, see What is Localization and How...

start file manager in terminal window wheezy

linux,debian,raspberry-pi

depends on your file manager. for example: sudo pcmanfm &>/dev/null &

Assigning static ip in linux [closed]

linux,debian,static-ip-address

is not /etc/networ/interfaces is /etc/network/interfaces not reboot, you can try: /etc/init.d/networking restart or ifdown eth0 ifup eth0 and... warning, maybe 192.168.1.2 is ussed by other computer. And you forgot auto eth0 iface eth0 inet static ...

Using sed command to

bash,shell,awk,sed,debian

I think this is what you're trying to do: $ cat tst.sh function replaceappend() { awk -v old="$2" -v new="$3" ' sub(old,new) { replaced=1 } { print } END { if (!replaced) print new } ' "$1" > /usr/tmp/tmp$$ && mv /usr/tmp/tmp$$ "$1" } replaceappend file "Port 22" "Port 123"...

Debian Jessie shutdown on CTRL+ALT+DEL

debian,shutdown,systemd

Just cd into /lib/systemd/system/ and change the symlink of ctrl-alt-del.target from reboot.target to poweroff.target. ln -s /lib/systemd/system/poweroff.target /etc/systemd/system/ctrl-alt-del.target then reset systemd daemon: systemctl daemon-reload ...

Set up TightVNC programmatically with BASH

bash,debian,expect,vnc-server,tightvnc

# Configure VNC password umask 0077 # use safe default permissions mkdir -p "$HOME/.vnc" # create config directory chmod go-rwx "$HOME/.vnc" # enforce safe permissions vncpasswd -f <<<"$password" >"$HOME/.vnc/passwd" # generate and write a password Modify to taste, if your packaging for tightvnc uses a location other than ~/.vnc/ for...

Debian Plesk Server: MySQL doesn't start

mysql,debian,plesk

As the message says, you need to assign the variable wait_timeout a value in the mysqld section of your configuration file. For instance wait_timeout=60 But if its passed as a parameter when connecting then simply write --wait_timeout=60 https://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_wait_timeout...

Octave and Java: libjvm.so not found

java,debian,octave

You don't need to install the java package. The functions in the java package have been merged into the Octave core language for the 3.8 release. You don't need to do anything, java should work out of the box for you (provided you didn't mess up while building it). If...

possible attack on postfix server

email,debian,postfix-mta

That looks like some portscan or other scanning attemps. They connect, issue some invalid commands and then disconnect. They don't try to send any emails, as in that case you would see in the postfix log info about either accepting those emails or rejecting them. Regarding the second issue, you...

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

linux,debian,deb

The instruction is Add "contrib" and "non-free" components to /etc/apt/sources.list, for example I.e., you're supposed to add that line to the given file with a text editor. You are not supposed to execute it on a command line....

Error running bash script in supervisor [closed]

linux,bash,shell,debian,supervisor

Thanks Etan Reisner, I have already fix the problem, I will put it here so if anyone else have the same problem see why. The problem was so simple (as usual) I was reading the content of text files /sys/class/net/eth0/carrier and /sys/class/net/eth0/operstate to detect when the network cable was plugged...

debian wheezy - how to mount unused disks?

linux,debian,mount

It seems that those additional disks haven't been touched since they were connected to the server and don't have even partitions yet. In general, adding extra disk space in Linux can be done in the following steps: Attach new disk to the server Create partition table on it Add one...

How to install / use orafce package in postgresql 9.4?

postgresql,debian,orafce

Ok, a smple CREATE EXTENSION orafce is enough...

IPTables hex string match to mitigate dos attack

debian,dos,iptables,ddos

I solved this myself and figured I'd post the solution. I used the -u32 module instead of hex string matching. For this particular issue I used the following rule: -A INPUT -i eth1 -p udp -d x -m u32 --u32 "16 & 0xFFFFFFFF = 0x17ebf72a" -m u32 --u32 "22 &...

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

linux,debian,vmware,web-deployment

Besides version controlling you can achieve it with sshfs. It is basically like mounting a remote directory in your local system. More info: http://en.wikipedia.org/wiki/SSHFS https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh...

Until Loop not working as expected

linux,bash,shell,debian

Personally, I'd implement this like so -- with a while loop, not an until loop, and checking for the exit condition separately and explicitly: while true; do echo "Enter file name to print out :" ; read toPrint [ "$toPrint" = fin ] && break sh ./afficher.sh "$toPrint" done If...

Inserting an initial user into my database on bash deployment

bash,postgresql,shell,debian

Input should be passed through stdin. Do this: ADMIN_PASSWORD=admin echo -n "${ADMIN_PASSWORD}" | openssl dgst -sha1 -hmac And you will get output d033e22ae348aeb5660fc2140aec35850c4da997 on stdout. If you'd rather save it to a variable to be referenced later, do ADMIN_PASSWORD=admin SHA1SUM=$(echo "${ADMIN_PASSWORD}" | openssl dgst -sha1 -hmac) And later refer to...

Restore MediaWiki site from physical files (MySQL)

mysql,linux,debian,mediawiki

Problem solved thanks to user @che. I had to copy the whole /var/lib/mysql directory, not just /var/lib/mysql/[dbname]. Apparently some database information is also contained in those files.

how to edit existing debian package in installation cd?

installation,debian,package,edit,cd

finally did it. first mistake building .deb : dpkg-deb -b . pathtopackage/new_package_name.deb correct command: dpkg-deb -b -Zgzip . pathtopackage/new_package_name.deb to recreate exact package as original one and then following the rest tutorial on https://wiki.debian.org/DebianInstaller/Modify/CD, except for debootstrap error, it can be done by following tutorial from this page https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/1001131 edit...

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

networking,usb,debian,wireless,umts

After many tries I found a solution (at least for me): It seems, there is a problem with PIN-locked SIM-Cards. After setting up the GSM-Connection via the GUI nothing happended (seemed so). But a file for the connection in /etc/NetworkManager/system-connections/ has been created. By disabling the PIN of the SIM-Card...

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

php,apache,debian,apache2.4,php-5.6

what are these headers ? if it's header with underscore, this difference comme from Apache 2.4 : Header names with underscores ignored in php 5.5.1 / apache 2.4.6...

Build debian package without .orig file

linux,debian,software-packaging

If you want to create a Debian directory directly in the source package (ie you're packaging your own work, rather than from an upstream release) you could use the --native option to dh_make

Connecting to https with soapClient

php,soap,debian

After days of working through this issue, I solved the problem. Some of the answers here were correct, there was a problem with the self-signed certificate (so the Soap client has to be made to not care), but another issue was the url itself. For whatever reason, putting in an...

Debug information file conventions for Debian/Ubuntu?

linux,debugging,gdb,debian,lldb

Both Fedora and Ubuntu follow the convention described in Debugging Information in Separate Files. Gdb first retrieves the filename present in the executable's .gnu_debuglink section. .gnu_debuglink doesn't include any directory names. Gdb then looks for a file named (if I may use shell syntax) $(dirname $executable)/$debuglink, then /usr/lib/debug/$(dirname $executable)/$debuglink, for...

PHP via command line outputs source code

php,debian

You are using short tags <?. Get used to using <?php to open PHP code blocks. You can change the setting in php.ini under short_open_tag. But I think it is better practice to use <?php....

Eclipse Luna stop working in Debian when pop-up open

eclipse,crash,debian,eclipse-luna,kali-linux

I could figure out the problem and solve the same describe below how it was done so to help someone who is having the same problem. To begin i'm using the latest stable version of eclipse-luna downloaded direct with the site or using wget. Open your eclipse.ini file and exactly...

Yandex-tank installation error

debian,apt,yandex-tank

You are not supposed to use Ubuntu repositories in Debian. Package version may conflict and many other things can go wrong. At your own risk, you can still try to do that. The closest Ubuntu version to Wheezy is 13.10. So first, remove the ppa you just installed: sudo ppa-purge...

Apache restart failed after adding OpenID Connect module

apache,debian,openid-connect,mod-auth-openidc

After installing libapache2-mod-auth-openidc you will have to configure some settings before the module can be used successfully. Two of the mandatory settings are OIDCRedirectURI and OIDCCryptoPassphrase. Most probably you'll also have to configure client credentials for your OpenID Connect provider. You can take a look at the sample configurations at:...

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

php,apache,debian

I given negative index in the view.php to the SQL and it was failed it, but I sloved it.

Create postgresql database entry using bash script

bash,postgresql,shell,debian

$ADMPASS is probably not defined, because you also have $ADMIN_PASSWORD Inside double quotes, be sure to wrap your variable names in curly braces like this: ${ADMIN_NAME} Otherwise Bash will not always be able to separate them from succeeding characters. The complete line then would look like this: PGPASSWORD="$DBPASS" psql...

Within C program use Picocom to read/write streams

c,linux,serial-port,debian

While that's technically possible, it's a bad idea; picocom is a somewhat uncommon tool, and it's primarily designed to be used interactively by a user. Trying to use it from within another application will be pretty weird. It'll be much easier to interact with the serial port directly from your...