4
votes
4answers
28k views

How to login as root from Bash and do stuff

This is my simple bash: cat test.sh #!/bin/bash echo "hello" su - root -c /path/to/script.sh <<EOF password EOF whoami echo "good bye" But I get this error: ...
4
votes
2answers
1k views

Unable to delete files to trash in a bind-mounted filesystem

I'm trying to set up shared home directory for two Linux installations and thus I'm using bind-mounts. My user is named dbz and his home directory is /home/dbz. I also have shared directory ...
7
votes
3answers
4k views

paste command: setting (multiple) delimiters

In Linux, I have the following problem with paste from (GNU coreutils) 8.13: Trying to set another delimiter than the default (TAB) results in either just printing the first character of the defined ...
0
votes
0answers
134 views

Problems connecting to IRC server from VPS

So I'm running a CentOS 6 VPS that I've got irssi installed on. I'd like to run irssi as a permanent connection to an IRC server so I can log in from anywhere and not lose my conversations. Irssi ...
3
votes
1answer
265 views

Some software runs only by root terminal

I'm facing this odd situation here, programs such as gparted, furiusisomount and Rstudio never run by clicking on their icons in the applications menu or by running them with terminal as a normal ...
2
votes
1answer
397 views

grub2-install doesn't work the first time, but does work the second time

This is a weird one... I'm working on some software. It has a function to make a USB device bootable. It does this by running a long, complex sequence of actions to copy a minimal Linux OS onto the ...
145
votes
5answers
26k views

I deleted /bin/rm. How do I recover it?

Just for fun, I thought I would use this command on my Raspberry Pi running Raspbian: sudo rm -f /bin/rm I thought I could just reinstall coreutils: I was wrong! apt-get install --reinstall ...
1
vote
2answers
6k views

Unable to use date command to change specific date format in Bash shell on OS X terminal

I am using the date -d command to change a specific date format to another. Below is the example used currDate=`Wed 12 Feb 2014` formattedDate=`date -d"${currDate}" +%Y%m%d` echo $formattedDate
4
votes
5answers
7k views

move file by list in file

I have a file that contains file names. For example: /tmp/list.txt (it is with the spaces at the start of each line): /tmp/file.log /app/nir/home.txt /etc/config.cust I want, using one ...
5
votes
2answers
2k views

How to delete a directory automatically when an executable is killed

Quite often, we run an executable that needs to write / read some temporary files. We usually create a temporary directory, run the executable there, and delete the directory when the script is done. ...
2
votes
2answers
119 views

Background execution in parallel

I have a program ./pgm taking some arguments (say -a file1 -b val), which requires 2 seconds to execute. I would like to use all the processors on my machine to run this program on all the input files ...
2
votes
1answer
436 views

Auto de-crypt all LUKS partitions in Debian

I use Debian Wheezy and have all partitions encrypted using LUKS, except /boot. I want to decrypt the partitions automatically without having to type the password in each of the 7 encrypted partitions ...
7
votes
2answers
852 views

How to automatically generate .desktop file?

There's a .deb software that doesn't have a .desktop file, I created that file. I want to create another package for that software, when the user installs it, I want the .desktop file to be generated ...
3
votes
1answer
2k views

Virtualbox under Proxmox

On a Jenkins Master-Slave configuration and need to run on the slaves Kitchen tests on several jobs. Kitchen for those who do not know it, runs infrastructure on demand using Vagrant and VirtualBox ...
3
votes
1answer
5k views

VAAPI or VDPAU which one is a newer Tech?

I wanted to compile a variant of mplayer and came across these options: VAAPI VDPAU. I once read somewhere that one of these is for the newer graphic cards (like new gforce GT) and overlaps the ...
3
votes
1answer
51 views

How can I track changes in man pages?

I want to know about changes of man pages after updating software or a operating system completely. Or get a list of revisions for a specified man page. This will not reread the full man page again ...
1
vote
1answer
542 views

Problem installing input-wacom-0.20.0

I run Linux Mint 14. I bought a wacom intuos pen&touch small tablet and my old driver (don't know which one, someone installed it for me...) does not support it. I did a little research and found ...
2
votes
0answers
483 views

Find hostapd's access point SSID

I have a Linux machine operating as an access point using hostapd and dnsmasq. The AP is working fine (the device is wlan0), but I am having difficulty finding the SSID of the AP for monitoring ...
11
votes
4answers
13k views

Fix EXT4-fs bad geometry (block count exceeds size of device)

I have a micro SD card which has a FAT32 partition and an EXT4 partition. The EXT4 partition will no longer mount. dmesg shows the following error: EXT4-fs (sdb2): bad geometry: block count ...
1
vote
1answer
1k views

Update a Red Hat repo with no packages

I'm attempting to install a handful of packages on my RHEL 5.10 (Tikanga) server, however I'm prevented from doing this because of an installed repo with zero packages. When I do yum repolist, it ...
1
vote
0answers
147 views

Searching for i686 UEFI distribution of Linux

I m trying to put a dual boot Windows 8 - Linux on a HP ENVY j069-sf (i686). Like all HP laptop, there is a lot of proprietary drivers (even when installing Windows, I had to take 2 hour to search, ...
1
vote
3answers
198 views

How to move files between servers with PubKey authentication?

I have two servers and for both I'm using PubKey authentication only. Can I somehow scp files between them (with private key being only on my local machine?) ? Can I somehow use my private key for ...
0
votes
1answer
79 views

How to route “single ip” to different interfaces [duplicate]

i have a dd-wrt router (ip 192.168.1.1) with the following network interfaces: eth0 ath0 ppp0 (a pptp vpn client) i would like to route all traffic from ip 192.168.1.10 to 192.168.1.20 through ...
2
votes
1answer
45 views

What this page means for the Debian's package version

I am trying to figure out what these web page means for the version. I know that the epoch is the number previous the double dot. But I can't figure out what this all means ? I found this here
1
vote
1answer
76 views

Can I rely on binary packages (pkg) in FreeBSD

Since last October binary packages have been available for FreeBSD (http://lists.freebsd.org/pipermail/freebsd-pkg/2013-October/000107.html). Before that, they had some trouble, preventing binary ...
5
votes
1answer
139 views

What are the equivalent architecture of alphanumeric numbers in Debian?

On the Debian website, I found a list of the releases of Debian associate with alphanumerical architectures. Do you know to what those architectures numbers and letters stand for?   
1
vote
1answer
607 views

Some packets are flagged as INVALID by iptables

I configured a proxypass rule in order to redirect requests from the port 443 to a JBoss server running on port 8080. All works fine except some 503 errors in the Apache log, around 10 per day: In ...
2
votes
2answers
688 views

Using regular experision in “rpl” command

I need to replace text in lots of files. I'm using rpl for this purpose, but I can't find any way to make it use regular expressions. Can rpl use "regex"? how? Edit: I'm using rpl 1.5.2 from Ubuntu ...
2
votes
3answers
5k views

why host command return no SRV record?

I am a bit confuse here, I'm trying to establish a connection to Active Directory server from linux, someone told me to use this command: host -t srv zeus.company.com Assuming the Active Directory ...
3
votes
2answers
508 views

How do I get the DISTRIB_CODENAME?

Which is the shortest way to get the variable $DISTRIB_CODENAME from /etc/lsb-release? I want to make this somewhat shorter: $ sudo add-apt-repository \ "deb http://some-repo/ubuntu $(grep ...
0
votes
4answers
182 views

Grep files excluding few files names

I have a folder who have files names according to date for one month i.e. AP_20140101.gz, AP_20140102.gz, ... for each day. Here 2014 is year, 01 is month and 01 is date (AP_YYYYMMDD.gz is general ...
-3
votes
2answers
2k views

understanding ps -ef output

root@he:/home/he# ps -ef|grep init root 1 0 0 08:40 ? 00:00:02 /sbin/init root 3557 3545 0 10:09 pts/0 00:00:00 grep --color=auto init What are various columns ...
1
vote
1answer
640 views

Track down process that has notty

I have a Linux server (Red Hat 2.6 kernel) which had a spike in load due to an Rsync process which seems to have forked many times, but the process was run by rsyncuser@notty I didnt see any cron job ...
4
votes
3answers
275 views

shell script problem with using the operators

I am comparing two strings using the levenshtein distance algorithm. I got the PHP implementation of the algorithm from here. I am calling this php implementation from my shell script as below. ...
24
votes
2answers
44k views

Getting new files to inherit group permissions on Linux

I am having a problem with permissions on a Linux server. I am used to BSD. When a directory is owned by a group the user who owns it isn't in such as www-data, files created in it will be owned by ...
2
votes
4answers
2k views

Defining aliases for a certain directory

Is there a way to have an alias set for a particular directory and its subdirectories? I know I can put it in my .bashrc file, but I would like it only for a certain directory. Edit: what i mean is ...
2
votes
1answer
76 views

Understanding Unit Masks on Perf

I'm counting events with perf stat -e. I consulted my processor manufacturer's manual and found the event I'm interested in. However, not only does it have the event number, but it also has a list of ...
1
vote
0answers
916 views

Debian init.d with a working C++ daemon, unexpected results

I am fairly new to programming for Linux, and init.d scripts, and I have a problem with my init.d script adapted from an example I found via a lot of google searching. Instead of getting a status, ...
27
votes
1answer
7k views

Configuring, compiling and installing a custom Linux kernel

I'd like to try using a kernel other than the one provided by my distro -- either from somewhere else, or as customized by me. Is this difficult or dangerous? Where do I start?
2
votes
1answer
41 views

understanding od -a option

In Linux, the --type a option in od is explained as --type=       Select the format in which to output the file data … a      named ...
3
votes
1answer
57 views

Verify that partition is encrypted

I just installed Debian and as far as I can remember I encrypted my home-partition using LVM. During the boot process I haven't been asked to enter the password. Is there any way to check whether ...
2
votes
1answer
721 views

Understanding two flags and a dollar sign in a CURL command

I right clicked a post request in Chrome and selected Copy as cURL I got a cURL command that includes the following --data-binary $'------WebKitFormBound I am used to seeing cURL requests that ...
3
votes
3answers
11k views

Whisker menu remove keyboard shortcut

Using Linux mint 16, with XFCE as desktop environment. I have a problem removing the default keyboard shortcut (Super_L), for opening the Whisker menu. The shortcut shows up in Application shortcuts, ...
2
votes
4answers
16k views

awk + print awk output in one line

When I run the following hasys command with awk , I get output with machines names as the following: hasys -display|grep Shutdown | awk '{print $1}' machine1a machine1b please advice how to ...
2
votes
0answers
391 views

RNDIS Server to make a computer as a peripheral

First of all my goal is this, have a computer as a peripheral device to connect it to anyone's computer with ssh protocol or web. The idea is doing this by using a plug and play USB cable . Facts ...
1
vote
1answer
990 views

Why does dig take much longer than DNS query time?

I'm investigating slow DNS responses on Ubuntu, I have installed bind9 to improve times from local cache, but still something is odd. What could make dig wait for 10 seconds and say that query time ...
2
votes
1answer
216 views

impact of allowing Apache to execute some commands on the server

I have an Ubuntu 12 web server running apache2, I developed a graphic interface using PHP to make users able to create their own email account by themselves ( exec() function), so I used visudo to ...
0
votes
1answer
370 views

Which Linux distributions offer a stable release based on the 3.10 kernel?

I'm looking for a stable Linux distribution (preferably a well-known one) based on the 3.10 kernel. So far I have identified Gentoo as one such distribution. But I'm having trouble finding any others. ...
4
votes
4answers
3k views

How can I open a file that results from grep?

I often grep a bunch of files to find a line, and then grep returns one result. Rather than copying and pasting the filename into a new command, I'd like to be able to open that one result with an ...
1
vote
2answers
392 views

Change FreeBSD's fetch with aria2 or axel

FreeBSD uses FETCH command in order to download source codes or binary packages it needs to compile or install. If you are on slow connection like café or shared band this process become painful. ...

15 30 50 per page