0
votes
1answer
2k views

LFTP mirror upload only non existing files to remote directory

Every 5 minutes some new files are downloaded via lftp to a local directory. I need to upload to another ftp only the non existing files. My script so far is: #! /bin/bash today=$(date +%Y%m%d) ...
3
votes
0answers
549 views

Enabling GPIO in kernel not working [closed]

I have tried to enable the GPIO pins for my system through the Kernel but I am not able to get them to work. When I try this: echo 1 > /sys/class/gpio/export The terminal window just closes. ...
0
votes
1answer
270 views

sudo mount from webserver (Apache) by mod_php, result not visible by root

Intial question: http://stackoverflow.com/questions/19598201/umounting-through-exec-with-sudo-the-user-is-a-sudoer-with-nopasswd Basically, I have a PHP script, that: exec('sudo mount ...
3
votes
1answer
133 views

Grub rescue if Ubuntu USB not plugged in?

I have my Ubuntu installed on a USB drive, and to log into Windows I need to have it plugged while booting, or I get the Grub rescue prompt. When the USB drive is plugged in, I get the Grub menu from ...
-2
votes
0answers
57 views

How to find the full path of a file from my Desktop in Centos? [duplicate]

My folders in desktop: My folder name about which I'm interested is Ram: I tried the following command for installing yoono-desktop: [root@localhost mpatil]# tar jxf ...
4
votes
1answer
1k views

timidity: No instrument mapped to tone bank 0, no idea which one is missing

I am trying to play this midi file downloaded from here, but I get: $ timidity --verbose marivonnig1\ \(1\).mid Requested buffer size 32768, fragment size 8192 ALSA pcm 'default' set buffer size ...
26
votes
5answers
21k views

Why do we need the “at” command in Linux?

I was studying code in which the at command is used. I looked around and found that it is used to execute batch jobs. It is used to schedule jobs. It is given, as its input, a command, and a time, ...
1
vote
2answers
8k views

How to unpack a downloaded tar.bz2 archive?

I downloaded YOONO-Desktop from http://www.yoono.com/, and I try to install it with the following steps: [root@localhost mpatil]# tar xfv yoono-destop-1.8.43.tar tar: yoono-destop-1.8.43.tar: Cannot ...
1
vote
3answers
69 views

return the numeric value of a indexed variable rather than its name [duplicate]

The following piece of code illustrates my problem I'm afraid I oversimplified it way too much in the first round. #!/bin/bash dogLover=1 catLover=2 for ii in dog cat do ...
1
vote
0answers
153 views

Compiling Wine 1.7.1 from git in Gentoo

Trying to compile Wine 1.7.1 with the great new D3D and Opengl patches. I proceed like this : 1-Download the GIT source code from here : ...
3
votes
2answers
109 views

Identifying unused repositories in Yum

Is there a way to identify an unused repository in Centos/RHEL? I have quite a few repositories installed on a Centos machine and I'm not sure which ones are actually needed and which ones aren't. ...
2
votes
1answer
3k views

Open xfce “window manager” settings from command line

How do you open the window manager settings from the command line? I'm trying to modify my keyboard shortcuts, but when i click the applications menu -> settings -> window manager nothing happens. ...
1
vote
1answer
543 views

How can I move files from my host system to Whonix-Workstation?

I'm not sure if using the guest additions is safe, but it seems to be the only way to transfer files. I cannot even get copy/paste to work between host and workstation.
1
vote
0answers
281 views

USB Mouse and Keyboard not working in Linux 4 Tegra

I'm new to Tegra Linux development. I have a Tamontem NG Evaluation board with the Tegra 3 Chip. I installed L4T sample file system from NVIDIA Tegra resources ...
1
vote
1answer
346 views

Adding MySql Workbench to favorites in Fedora 19

I'm using Fedora 19 64 bit on my Samsung Series 9 Ultrabook and I have installed MySQL workbench 6 (mysql-workbench-community-6.0.7-1.fc18.x86_64) via the RPM downloaded from the MySQL website. I'm ...
2
votes
1answer
542 views

Samba 2.2.12 accepts my password, but is rejecting other user accounts?

I'm using a legacy system and I'm stuck with FreeBSD 5.4 and Samba 2.2.12, trying to access it from a Windows 7 system. I've created a unix account in FreeBSD using the adduser command and added ...
1
vote
1answer
352 views

Directing hostname to another computer within lan using hosts file

There seem to be more questions like this, excuse me if this is similar. I want to redirect to an IP address om my server computer. This is what I put in my hosts file on the client computer (IMac): ...
4
votes
2answers
808 views

fail2ban log parsing too slow on Raspberry Pi - options?

I'm running fail2ban on a Raspberry Pi at 950MHz which I cannot overclock further. The Pi is occasionally subject to SYN floods on particular ports. I've set up iptables to throttle the rate of SYNs ...
5
votes
1answer
119 views

Setting group permission on directory

I'm looking for the best way to give a group permission to view any files in /var/log, but only using cat or tail. My best guess right now is that I need to use ACL's: setfacl -mR default:g:group:4 ...
4
votes
1answer
3k views

Rsync --backup-dir seems to be ignored

I want to use rsync to backup a directory from a local location to a remote location, and store changed files in another remote location. I did use: rsync -rcvhL --progress --backup \ ...
12
votes
4answers
6k views

How can I search history with what is already entered at the prompt in zsh?

In zsh, I know that I can search history with Ctrl+r. However, oftentimes I start to type a command directly at the prompt, but then realize I should be searching history. When I hit Ctrl+r, it brings ...
3
votes
2answers
55 views

Overriding amended time stamps

I need to make it so the files in current directory get amended with a timestamp. It works fine for the first time, but once I run it again it adds another timestamp to the file. I need a way to ...
7
votes
2answers
1k views

Gnome-terminal and Zsh: keep current directory on new tab/window

I'm running gnome 3.10.1 on Arch with Zsh. I'm facing that problem that when I create a new tab or window from a terminal window, it resets the current dir to my home dir. I've already tried this: ...
3
votes
1answer
2k views

NFS: unable to umount NFS share when server offline

When our main NFS server goes offline, all clients which had a share mounted are affected in the following way: 1. `df` does not work (times out) 2. `lsof` does not work (times out) 3. I cannot ...
4
votes
1answer
6k views

Python not recognizing LD_LIBRARY_PATH?

I am trying to install Python2.7 on cr-48 chromebook in developer mode, and face a weird issue that I am having hard time searching for a solution on google. First some background.. the root partition ...
6
votes
1answer
8k views

driver(-D) option under wpa_supplicant

Before wpa_supplicant can do its work, the network interface must be available and the driver for the device must be loaded. wpa_supplicant allows one to specify driver with "-D" flag. I have tried ...
1
vote
1answer
156 views

Linux fedora - httpd package and router, how to make it work?

I installed HTTPD package to setup private web server in my house on one of the computers. The server is up and running, but I can't access the server from outside by using my external IP address. I ...
1
vote
1answer
1k views

“kernel driver” in “lspci” output

I often use lspci -v to check the LKM in use for particular hardware device. LKMs are listed as "Kernel modules" and can be seen with lsmod. However, what is a "Kernel driver"? For example here: Is ...
1
vote
2answers
1k views

Bash completion throwing syntax error

THE PROBLEM: Say I'm trying to change to a directory called 'build' which is in the directory I'm currently in. I start: cd b Then I hit tab once (knowing that no other directories in the current ...
2
votes
2answers
1k views

Need to copy files to existing directory and remove files already there with the same name but different extension

EDIT: Total rewrite of question for clarity. I have a directory tree (new) with a bunch of files of with an extension of .new. I have an identical tree (old) where many of the files have names ...
2
votes
0answers
147 views

fedora 19 dependency issue

I am getting this error while updating: Resolving Dependencies --> Running transaction check ---> Package openssl.x86_64 1:1.0.1e-4.fc19 will be updated ---> Package openssl.x86_64 ...
2
votes
1answer
771 views

How to respawn vpnc when it stops?

As root, I've setup a crontab rule that launches vpnc everyday early in the morning (before I arrive at my workplace). But it often occurs that the vpn stopped mid day. As a result, I have to sudo ...
2
votes
2answers
422 views

sed - remove unmatched “}”, “)” or ']" (only for the line in question)

I have a file with a lot of lines Some of the lines end in unmatched braces, i.e. "}" This is only true for lines that contain ".to" How can I remove the unmatched braces with sed for ALL lines ...
1
vote
1answer
476 views

Screenshot tool Linux Mint

In Linux Mint (15) you have a screenshot tool, 'described' here You read More difficult way But sometimes - mostly in games - this shortcut doesn't work. What to do then? >You can use Take ...
4
votes
1answer
668 views

Array Cartesian product in bash

Is there a way to generate cartesian product of arrays without using loops in bash? One can use curly brackets to do a similar thing: echo {a,b,c}+{1,2,3} a+1 a+2 a+3 b+1 b+2 b+3 c+1 c+2 c+3 but I ...
3
votes
1answer
2k views

Fedora 19 zfsonlinux - how to configure cifs share?

Fedora 19 with current version of zfsonlinux / smb version 4.0.9. When I try to zfs set sharesmb=on I receive smb add share failed Any ideas? Is this supposed to work yet or still in ...
2
votes
1answer
3k views

Linux Fedora 19 - iptables failed to start

I've been trying to start the iptables firewall service, but it keeps failing. What's going wrong? # systemctl status iptables.service iptables.service - IPv4 firewall with iptables Loaded: loaded ...
1
vote
0answers
459 views

Make a USB drive bootable for Windows 7 setup

What is the equivalent of bootsect command available in Windows, on a *nix system? Usage: In order to make a USB drive bootable for Windows 7 setup I have to boot-up VMWare and run bootsect.exe ...
1
vote
3answers
415 views

Not able to install internet explorer!

I followed this link for installing Internet explorer. A GUI opens when I run the following command: ravbholua@ravbholua-Aspire-5315:~/ies4linux-2.99.0.1$ pwd /home/ravbholua/ies4linux-2.99.0.1 ...
0
votes
1answer
327 views

How to find the url of the saved web page? [closed]

I am facing this issue since long. I open a web page and save on my hard drive. Later I open the saved file. But suppose I want to know the url of the same page, how to know that. As I have no idea of ...
0
votes
1answer
532 views

Start up commads in Lubuntu 2 [duplicate]

After posting my question here, Start up commads in LUBUNTU I got no answer so here it is. I have these 2 commands: xinput --set-prop "Razer Razer DeathAdder" "Device Accel Constant Deceleration" 4 ...
0
votes
2answers
1k views

Realtek drivers prevent detection of eth1 interface?

Here's the situation: I had a working network setup on my Debian box, with two Ethernet interfaces being reported by ifconfig - eth0, and eth1. eth0 is an onboard Realtek NIC, and eth1 is a D-Link ...
0
votes
1answer
274 views

configure iptables to accept incoming requests

Let me clarify: I have an iMac wich is wireless connected to the router from the ISP. The Centos computer is connected to the iMac with a cable and internet sharing is turned on. Installed Nginx on ...
2
votes
1answer
167 views

Grep ^ and $ at the same time

I'm, trying to use grep with a ^ and $ at the same time but for some reason that does not work. If I type grep '^s.*e' german.dic I get a lots of words starting with s and having an e somewhere. A ...
4
votes
2answers
5k views

USB Media filesystem problem

My USB is not detected recently, I tried mount, fdisk, dd, gparted, mkfs.vfat :~# tail -f /var/log/syslog Oct 27 12:54:29 mohammad-Inspiron-N5110 kernel: [18843.105772] usb 3-2: New USB device ...
2
votes
1answer
205 views

Change a driver's source code and compile

I have made some little change to if_igb in /usr/src/sys/dev/e1000/if_igb.c. How can I compile only this file and load it to kernel dynamically? I'm using FreeBSD 8.2 Release.
5
votes
4answers
800 views

Allowing rename but not moving to other directory

Users can upload/delete/rename files via vsftp server and everything works well except they can also move files across directories. Is it possible to allow renaming of files but disallow moving them ...
3
votes
0answers
221 views

Gnome 3 always on fallback upon login

I have a Debian Wheezy install, with Gnome 3 as the windows manager. I also have a NVidia video card for what it matters. I autolog in gnome upon boot to my user account, but it always start gnome ...
1
vote
2answers
151 views

Meaning of the following linux commands

cat "$1" > /tmp/file.$$ 2>/tmp/file0.$$ grep "*" /tmp/file.$$ >/tmp/file0.$$ I understood that in the cat command, if an error occurs, the error will be shown in file0.$$ and if it ...
3
votes
1answer
405 views

Understanding the output of apt-cache depends and apt-cache showpkg

I'm using Lubuntu 13.10 which doesn't include gedit by default. But I have installed it using sudo apt-get install --no-install-recommends gedit Now, when I run apt-cache depends gedit, zenity and ...

15 30 50 per page