3
votes
1answer
96 views

What are the bash shell length limitations for here-docs?

What are the length limitations for using here-docs as part of bash command lines? I am finding that short here-docs work fine, but when they get longer there is some point or structure after which ...
2
votes
1answer
13 views

Is revealing DBUS_SESSION_BUS_ADDRESS variable a vulnerability?

I found this instructions: Using notify-send with cron Revealing the content of your DBUS_SESSION_BUS_ADDRESS like in this answer gives access to every user logged in to your session: #!/bin/sh ...
1
vote
4answers
109 views

Sed/awk/perl: reversing order of comma separated values, preserving other text

I have this text: LABEL1 .BYTE 01, 02, 03, 04, 05 .BYTE 01, 02, 03 I need to reverse only comma separated values order: LABEL1 .BYTE 05, 04, 03, 02, 01 .BYTE 03, 02, 01 I need ...
0
votes
0answers
14 views

Can't upgrade GNUPG? [on hold]

I'm using Linux Mint I'm trying to upgrade my 1.4.14 GNUPG to 2.0.26 version and the repository has 1.4.14 version... I tried removing it and building the lastest version from the official GNUPG ...
0
votes
0answers
18 views

Why on my Linux PPPoE connection displays sometimes authentication failure?

Here is my log: Oct 18 09:51:52 -desktop pppd[2764]: Plugin rp-pppoe.so loaded. Oct 18 09:51:52 -desktop pppd[2766]: pppd 2.4.5 started by root, uid 0 Oct 18 09:51:52 -desktop pppd[2766]: PPP session ...
0
votes
0answers
28 views

Please help me to debug this notify-send battery alert script

I used crontab -e to define the following: */5 * * * * env DISPLAY=:0 /home/max/.bin/battery-check.sh The contents of the script are: #!/bin/bash ...
0
votes
0answers
33 views

GDB up arrow doesn't work

I searched a lot about similar problems but found nothing. When running gdb I couldn't use up arrow for walking through previous commands. Up and down arrows are just ignored. I have started to ...
0
votes
0answers
10 views

yum/rpm: exclude a file (by path) from being installed

Is there any way to make yum/rpm never install a particular file path, but to otherwise install any packages which contain that file path, and for verification to act as if that file exists? For ...
1
vote
1answer
131 views

Disable SSLv3 In cURL?

I'm having a problem connecting to a website that is hosted with CloudFlare using cURL. When I try to connect to the website with HTTPS (using curl -v https://www.xxxxxx.com), it says: * About to ...
0
votes
0answers
12 views

boot fails with “cryptsetup: lvm fs found but no lvm configured” [dual boot(2xlinux LVM, dm-crypt+luks)]

I have a dual-boot(xubuntu/#!) setup LVM with dm-crypt+luks as follows /dev/sda1 = /boot (xubuntu) /dev/sda2 = /boot (#!) /dev/sda3 = encrypted LVM /dev/mapper/volgroup-xroot = / (xubuntu) ...
5
votes
3answers
749 views

What does “if !” mean?

I came across a if/then statement like this: if ! foo ; then echo "blah" exit 1 fi What specifically does if ! mean? "If the result of foo is not true?" "If the exit code of foo ...
0
votes
0answers
56 views

What are the required build dependencies of mesa for Debian-based distros? [on hold]

My target is about playing Team Fortress 2 on Kali Linux (a Debian Wheezy stable distribution with customized Debian Sid kernel) since a long time now, but couldn't because of the following graphical ...
0
votes
1answer
32 views

Linux Mint 17, your session lasted less than 10 seconds?

I get this message when I try to log in. /etc/mdm/Xsession: Beginning session setup... /etc/mdm/Xsession: 1: /etc/profile: id: not found /etc/mdm/Xsession: 12: [: Illegal number: /etc/mdm/Xsession: ...
0
votes
0answers
22 views

Obtaining error message using apt-get: “Unable to fetch some archives…” [on hold]

when i use sudo apt-get upgrade, I'm getting this message: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
3
votes
2answers
107 views

How can I detect a user login programmatically? [duplicate]

I am developing a small daemon program which needs to run some instructions when a user logs onto the system (all kinds of logins included). In order to do so, I want my program to be woken up ...
1
vote
3answers
87 views

How to enter foo-* folder without actually using wildcard or shell expansions?

Short story I'm looking for the command to enter first found foo-something directory like: cd foo-* but without using wildcard (or other special shell characters). Long story As part of the ...
1
vote
0answers
12 views

UFW before rules for VPN forwarding

I'm trying to setup an OpenVPN server on Debian 7, following this guide: How to install and set-up OpenVPN in Debian 7 (Wheezy) In step 15 I have to setup forwarding and IPtables rules. I prefer to ...
0
votes
0answers
3 views

Configure Key Based Authentication for ProFTPd

I was following this tutorial and stopped at this command sudo ssh-keygen -e -f ~username/.ssh/authorized_keys | sudo tee /etc/proftpd/authorized_keys/username. I tried with sudo, with su (super ...
1
vote
1answer
21 views

libvirt-bin error on a VM when I try to list VM

I'm using Virtualbox 4.3.18 on my Arch Linux Host machine and libvirt-bin 1.2.9 on my Ubuntu Server Cloud guest machine. Everytime I try to follow this tutorial I receive the following error when I ...
0
votes
0answers
32 views

Protect folder with password [on hold]

I want to do the following: I want to protect the directory "foo" located in "/ var / www / foo" so that any user can create a directory, I read a tutorial where they use a tool called EncFS to ...
0
votes
0answers
8 views

Strange behaviour connecting to serial port

I'm using screen to connect to my Rasberry Pi with a baud rate of 115200. I can log in fine, and everything works. But, when I copy and paste data from my machine to the RPi in vi or nano it seems to ...
4
votes
0answers
52 views

What is the purpose of xeyes? [on hold]

Is xeyes purely for fun? What is the point of having it installed by default (in X)? Thanks.
1
vote
1answer
21 views

Redirect output to stdout and pipe to a binary

I have a nice PS1 line in my .bash_profile, and I want to copy it to another machine. So I want to view it AND copy it to my clipboard. I can't figure out how to string the commands to do this ...
0
votes
0answers
17 views

I'm trying to create a public TLD using BIND

I'm using these two guides: jackal777.wordpress.com/2013/11/19/custom-tld-for-local-network/ timg.ws/2008/07/31/how-to-run-your-own-top-level-domain/ When I run dig sokolovskaya.ssu, it looks ...
0
votes
0answers
17 views

How to cleanup apt-get update 404 errors in linux mint

I have looked at all questions about this matter and no one really answered it clearly. Is there a way to remove all the repositories that return a 404 error in apt-get? I tried fix404 ...
-3
votes
0answers
33 views

What are the main differences between uselessd and systemd? [on hold]

I would like to know what uselessd (http://uselessd.darknedgy.net/) is and what it makes different to the systemd approach/software it has been forked from? maybe it there is a possibility to repond ...
0
votes
0answers
15 views

How does loading an OS work? [on hold]

Now finally comes the time to understand how mounting partitions work. Here I list my partitions : lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 698,7G 0 disk ├─sda1 8:1 ...
1
vote
3answers
50 views

Random character generation - with random output!

This is what crunch can generate: [user@localhost ~] crunch 3 3 ab Crunch will now generate the following amount of data: 32 bytes 0 MB 0 GB 0 TB 0 PB Crunch will now generate the following number ...
1
vote
1answer
69 views

Running commands after ampersand symbol & in a remote ssh session

I have a shell script that initiates a long, resource-intensive command on several different machines. In order to execute the script on each machine in parallel, I have an ampersand symbol after ...
2
votes
1answer
28 views

Why is chromium-browser killed when I close the terminal despite nohup?

In a Gnome Terminal tab, I ran $ nohup chromium-browser & But when I close the terminal tab, chromium-browser also exits. Isn't nohup supposed to prevent that? I am seeing this on other ...
1
vote
1answer
18 views

Files are being uploaded with full write permissions

A CMS that I manage uses TinyMCE to allow users to write blogposts. TinyMCE has an image uploader. Recently, like in the last couple of months, the image uploader has started uploading images to our ...
1
vote
2answers
32 views

Remove group ID from user

How can I remove a group (which was previously deleted) from a user which still references it? If I run groups, I get an error about a non-existent group: $ groups myuser dialout cdrom sudo dip ...
1
vote
2answers
53 views

How can a script run many processes at the same time?

I want my code to run many processes at the same time. The following example for a code and the source is StackExchange (Unix&Linux ) web site. > #!/bin/bash > for i in $(cat lis.txt); do ...
4
votes
1answer
123 views

Where does firefox get the “default” applications for opening files from?

By default, the Firefox (33.0) on my FreeBSD 11.0-CURRENT has the default application for opening PDF files set to Inkscape. Firefox does remember my previous choice, evince, in the “What should ...
0
votes
0answers
40 views

cronjob executes every minute but should execute every hour [on hold]

I have a script which should be executed every hour, which creates a new log file. But it executes every minute. I am really despairing. My entry in crontab -e looks like this: #Create new logfile 0 ...
2
votes
2answers
36 views

Optional arguments after or before the mandatory arguments?

I'm creating a shell script and I need it to take two mandatory arguments and one optional. How do I check that? In most scripts I've seen, the optional arguments are passed before the mandatory ones, ...
0
votes
2answers
22 views

HTTPD/apache 2.4: strange problem with alias

On httpd 2.4 alias /repo /repos <Location /repos> Require ip 192.168.0.7 </Location> I can reach repos but no repo(403 forbidden) if i use directory instead of location nothing change ...
1
vote
0answers
19 views

How to disable CUPS spooling and print directly?

On my machine runs cups. I have setup a few printers which are provided by a printserver (VPSX). When I print a few jobs they are stored in the local (CUPS) printspooler and only one job is sent. The ...
0
votes
0answers
18 views

Booting Linux OS from syslinux bootloader

I have a multiboot usb stick in /dev/sdb. The sdb1 partition contains linux distribution images and has syslinux installed on it. The second partition sdb2 has a Linux OS installed on it (Ubuntu). ...
3
votes
2answers
83 views

How can I find unique values in two a column table?

I have a space or comma separated table with two columns. A B B C B D C E F G What I want is a table with unique values like following A B C D E F G This means that if any value of ...
0
votes
1answer
28 views

How can I undo the changes after compiling a package? [duplicate]

Let's say that I have build a package using the typical method ./configure make make install and then I would like to uninstall this package. There is no any uninstall script. How can I revert my ...
1
vote
0answers
21 views

How does /proc/$PID/fd actually work? [duplicate]

According to the terse documentation I managed to find, each file in /proc/$PID/fd is supposed to be a symlink to the actual file associated with that file descriptor. However, that doesn't appear to ...
2
votes
1answer
38 views

Replace new line character between two strings

I have problem and see your answer in one of questions suiting with one exception Here is what i am trying to achieve \n (new line character) has to be replaced with blank when \n is between two \" ...
1
vote
2answers
42 views

Increasing performance of clear text file reads

In our bioinformatics application we have large files (up to 900MB, typically 100MB). These files contain a clear text representation of a genome, and are essentially a 1 line file with a sequence of ...
4
votes
1answer
28 views

Softlink in rc0.d is working on poweron rather than shutdown

I want to run a script on poweroff in Ubuntu. so I made a script, placed it in init.d & made a softlink in rc0.d with name S36xyz. my script is working perfectly when I run it in terminal. so ...
1
vote
1answer
24 views

How do I install phpMyAdmin on Fedora 20 using the remi repository?

I needed to install LAMP on my Fedora 20 32-bit. Everything was fine until I had to install phpMyAdmin. This is basically the same question as this question: install phpmyadmin in fedora 20 - ...
2
votes
2answers
35 views

is there any use for /selinux folder, when I don't use selinux?

I'm using Debian Wheezy, and by default a folder /selinux exists on my filesystem, even though I'm not (knowingly) using any SELinux infrastructure. I know that SELinux is intertwined with some ...
0
votes
1answer
31 views

How to minimize apt source.list

I think these lines can trim to few lines. So I need some advice. How can I improve these sources.list? apt/sources.list, Latest Debian release: deb http://security.debian.org/ wheezy/updates main ...
2
votes
2answers
88 views

Folder alias / Symbolic link to return to back folder

I need to create a folder "2015" which re-routes to ./ but I don't know what the command is. Not sure if the term is called in this case an alias (or symbolic link). So I need to make the same ...
2
votes
1answer
24 views

apt pinning package versions

Is it possible to pin a version of a debian package? Is it possible to pin only the major version? (like with pip install "pyramid < 1.4.0" will install the latest 1.3.x but will not upgrade the ...

15 30 50 per page