0
votes
0answers
4 views

Default Route in ip route

I'm trying to setup an IP based route in DD-WRT using DD-WRT v24-sp2 (12/22/14) giga. Instead of only sending traffic from 10.13.37.0/24 to the tun1 VPN, all traffic is going there. Below is the ...
0
votes
0answers
20 views

How to mark the end of a shell script in stdin?

I was just trying to use a basic if statement in the shell. I know if I saved it to a file it would work fine, but when I just put straight into the terminal it keeps waiting for me to say something ...
1
vote
2answers
28 views

Using the output of `grep` as variable in second command

I currently have 2 bash command line strings I use to gather data needed for a certain task. I was trying to simplify and have only one command used to gather the data without using a script. First I ...
0
votes
0answers
4 views

Suspend button does not work when xscreensaver is active on xfce Debian

I've Debian jessie and xfce. When I push the power button, my system is suspended. When I press any key on my keyboard the system wake up and I get the login prompt of Xscreensaver (screen lock is ...
0
votes
1answer
16 views

Use tail and grep to send an IRC message?

How do I use a command like: tail -f /home/user/log.txt | grep '!calladmin\|admin' To send an IRC message to me when !calladmin or admin are posted in the log? Or is there an easier way to do ...
1
vote
1answer
18 views

Who command: what is S on slackware?

who -r run-level 4 2015-01-19 21:56 last=S I'm on slackware,what does it mean S? Previous runlevel? Thanks
1
vote
1answer
9 views

Is there an alternative to using rbash to restrict a user on my system?

Basically at the moment I am using rbash to stop a user from leaving his directory on my system. The problem with this is, there is a script in my bin which he needs to be able to run from a script in ...
0
votes
0answers
4 views

Update Bastille on Debian Linux (Mint)

Is there anyway to update Bastille to it's lastest version (3.2.1)? The one i'm using is 3.0.9 and it was kinda hard to even find it's package (which i found on another SE question: How can I install ...
0
votes
0answers
4 views

Acer Aspire v5 571 Power off reboots Arch linux

Everytime I try to power off my arch linux it will turn off and reboot. I assume the reasoning why it does this is because the usb ports don't turn off and it somehow turns it back on. I was trying ...
0
votes
0answers
5 views

how to setup smtp server in Intranet sub-domain?

I would like to setup an SMTP server in a Linux system to be used by an application to send emails to users and process their replies. Our organisation uses MS Exchange and they don't want to setup ...
3
votes
1answer
22 views

GNOME license not accepted issue when system has been rebooted

GNOME Desktop has been installed on CentOS7 using sudo yum -y groups install "GNOME Desktop" and when startx is executed the desktop starts. However, when the system reboots the following issue ...
1
vote
4answers
55 views

Can I use which command on aliases? [duplicate]

Example: I have alias chrome='google-chrome'. I want which chrome to return the same thing which google-chrome returns, i.e.: /usr/bin/google-chrome Is that possible?
-2
votes
1answer
32 views

How can I run a script as sudo and for it to not ask me for a password?

I want to run the following script: #!/bin/bash if grep -qs 'MinecraftServer' /media/kiancross/MinecraftServer/MinecraftServer; then echo "Disk already mounted, server boot will continue" else ...
1
vote
0answers
13 views

Linux home server hung last week - how to determine cause?

I have a lightly used home server (that is, I store back-ups on it, it syncs to CrashPlan, and it runs some media sharing services I use locally - it's not too active). Today I discovered that it was ...
6
votes
3answers
158 views

How can I kill a process and be sure the PID hasn't been reused

Suppose, for example, you have a shell script similar to: longrunningthing & p=$! echo Killing longrunningthing on PID $p in 24 hours sleep 86400 echo Time up! kill $p Should do the trick, ...
0
votes
1answer
10 views

How to remove chirp without removing another important system components?

I decided to remove some unwanted packages, e.g. sudo apt-get remove --purge chirp The according package is removed but also The following packages will be REMOVED: chirp kali-linux-full ...
0
votes
0answers
14 views

Iceweasel (Wheezy) crashing with error in libmozalloc.so [on hold]

I use Debian and Iceweasel is crashing multiple times daily. I get this error, but cannot find any solutions online (though it IS mentioned in several posts): Chrome_ChildThr[27462]: segfault at 0 ip ...
1
vote
2answers
24 views

Using find and aspell together

I'm trying to spell check all the *.md files in my current directory but the following command fails: >> find . -maxdepth 1 -name "*.md" | xargs -I {} aspell check {} xargs: aspell: exited with ...
0
votes
3answers
33 views

Smarter filetransfers than rsync?

I have a large file (2-3 GB, binary, undocumented format) that I use on two different computers (normally I use it on a desktop system but when I travel I put it on my laptop). I use rsync to transfer ...
1
vote
2answers
40 views

ls .. doesn't work properly with symlinks

I have directories set up a bit like this ~/code ~/code/src ~/code/build -> /path/to/somewhere/else That last one's a symlink. If I do this cd ~/code/build ls .. then I get the listing for ...
0
votes
0answers
6 views

pacman: error: config parsing exceeded max recursion depth of 10 [on hold]

My pacman is broken, I can't type any command, even pacman -v gave me this: error: config parsing exceeded max recursion depth of 10 $ uname -a Linux laptop 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 ...
1
vote
0answers
19 views

NetCat never ending http session

I'm trying to use netcat to server some bash command results via a web interface, that stays running. The page is dynamic and needs to be updated upon loading. Just an example with what I'm using: ...
1
vote
3answers
160 views

How to copy files from the folder without the folder itself

I'm trying to copy files and subfolders from A folder without the A itself. For instance, A folder contains next: | file1.txt | file2.txt | subfolder1 Executing next command gives me ...
4
votes
2answers
180 views

Run another command before running the command the user wants to run

Let's say I want to modify the original behavior of the ls tool this way: $ ls Hello World file1 file2 ... How can I do this? When running ls I would like to run another command let's say echo ...
1
vote
3answers
34 views

Can a Linux system have two IP's Simultaneously?

Recently I installed apache2 on Raspbian and after end of installation I entered the following cmd and got two IP's. $ hostname -I 192.168.1.17 192.168.1.24 Of this, I have been using the IP ...
1
vote
1answer
21 views

Setting Up New CentOS server - Partitions Sizes and File Systems

I'm responsible for setting up a new CentOS 7 server. It's my first time so I want to make sure I'm on the right track. After some research, I chose to have 6 partitions: Partition | Type | Device ...
0
votes
1answer
13 views

Moved CGI-Bin folder by mistake, now site won't work

I moved the CGI-Bin folder into a different folder by mistake using ftp, and when I moved it back my website stopped working. Using CentOS6. What should I do?
1
vote
0answers
5 views

How to change the Qt version used by TeXstudio in elementary os Freya?

I have installed TexStudio 2.8.8. When I open it, it says TeXStudio has been compiled with Qt 4.8.6 but running with Qt 4.7.3. Please get the correct runtime library. when I checked in terminal with ...
-1
votes
0answers
9 views

How to write GPIO interrupt handler in Linux device driver? [on hold]

I am writing GPIO Device Driver for linux 3.14 on Beagleboard XM (RevB). I have done with simple ON/OFF LED blinking. But stuck at interrupt handler implementation. BB XM has GPIO_7 pin connected to ...
0
votes
1answer
34 views

Official [beginner friendly distro] reference for actual beginners [on hold]

Is there official documentation for any distro accessible to complete *nix beginners? That is, aimed at the 95% least technical computer users: Assumes an already installed desktop system with ...
1
vote
0answers
11 views

How to run TOR on boot instead using Vidalia?

I am new to TOR and I really have a hard time understanding how to set it up. What I did so far: run Vidalia from my personal account -- after few seconds I am connected run Vidalia from root ...
0
votes
1answer
14 views

How to recover a partition recreated with gparted

Yesterday I've had the bad idea to try to follow this tutorial : http://fds-team.de/cms/articles/2013-12/use-a-real-windows-7-partition-in-virtualbox-kvm-vmware-player-u.html these are the commands ...
1
vote
1answer
13 views

When removing a package via “apt-get remove”, why do you have to (sometimes) upgrade other packages in the process?

I could give a specific example, but I do think this is a common process and simply do not understand why it is done. Please comment if I should give a specific example when this is happening. So, to ...
1
vote
2answers
166 views

Why does “grep '.*[s]' file” work and “grep .*[s] file” doesn't?

Comparing grep '.*[s]' file with grep .*[s] file Why do you need quotation marks to let this work properly? In the second case, grep seems trying to inspect every file with a period.
0
votes
1answer
18 views

lwp-request Fails After Upgrade to Centos 7

I have a bash script that runs well on centos 6, which has an lwp-request in it. I upgraded my system to Centos 7, and the request fails to run: # lwp-request -E https://localhost/admin/startup GET ...
1
vote
0answers
5 views

Static linking impossible on the host system 'i686-build_pc-linux-gnu' [migrated]

I am install cross compiler on beagleboard-xm . I got error - Static linking impossible on the host system 'i686-build_pc-linux-gnu' what is solution for that ?
0
votes
1answer
10 views

mpd fails to open ALSA device where aplay succeeds

I am trying to set up an Raspberry Pi / Raspbian wheezy audio player using the onboard sound hardware via ALSA LADSPA plugins to stereo downmix and compress the audio. aplay, sox, mpg123, moc (cd ...
0
votes
0answers
5 views

Mimic alt + backspace in iTerm2

I'm trying to figure out how to mimic the alt + backspace behaviour in iTerm2. (In a Linux virtual terminal that should delete everything before a non alpha character, I guess) I can send a key ...
11
votes
3answers
536 views

Terminal vs bash? [duplicate]

I'm on a Mac but I think this is generally Unix-applicable. I'm in the process of learning shell scripting and there's something I seem to be missing. When I'm in the ordinary terminal, I can use ...
-2
votes
1answer
32 views

What operating systems do experienced programmers like and why? [on hold]

I was reading the Modern Operating Systems book and it says Many UNIX users, especially experienced programmers, prefer a command- based interface to a GUI, so nearly all UNIX systems support a ...
0
votes
0answers
10 views

Where to begin with graphics programming for linux (specifically debian)? [on hold]

I can't seem to find a specific place to begin learning about graphics programming in linux. My goal here is to develop a graphical system service (not a GUI or desktop system) from scratch for ...
0
votes
1answer
5 views

How can I do to use a email service for a same domain on other server [on hold]

For example, the server I am using uses the host name "A.com". Now, I want to send an email to "A@A.com". But the email server isn't on this server. How can I do this?
1
vote
1answer
29 views

How can I pass the success (or failiure) of a command to a variable?

I am running rsnapshot to do backups of my NAS. I am forwarding the output of the command (e.g. rsnapshot hourly, rsnapshot daily etc.) to /tmp/rsnapshot_stats_hourly. In another script, I'd like to ...
-3
votes
0answers
12 views

Why doesn't any version of Linux come with MIDI already implemented? [on hold]

Why doesn't Linux (Mint or any other distro for that matter) come with MIDI already implemented? Micro$oft and Apple are already WAY past that issue. What gives, huh?
0
votes
1answer
10 views

How to set the path of the default compiler in ./cshrc

I am using a unix workstation with C shell. There were two compilers of mpif90, one compiled with ifort and one with gfortran, installed on the system. The default mpi compiler was the one compiled ...
0
votes
0answers
14 views

How do I make this work on arch linux? power off reboot acer aspire v5 571 [on hold]

I have the same laptop as the person and this has worked for me on fedora I just need to convert this to work on arch. http://www.pbehnke.com/main/node/11
0
votes
1answer
21 views

stop IP address to land on website home page [on hold]

I notices that when i type my VPS IP address in address bar then it display website home page. So it may case duplicate content. Can you please tell me How to stop IP address landing on website home ...
1
vote
1answer
10 views

Tool for migration of service configuration

Is there a tool that handles generic migration of config? For example if I have httpd, postfix, MySQL and users and groups data, is there a tool that can extract the config data for each service so ...
2
votes
1answer
16 views

Disable or remove default vim keybinding

Is there a way to disable or remove a default vim keybinding? For example, if I wanted (shift-k) to do nothing, how would I achieve this?
2
votes
2answers
79 views

Multiple passes of wiping disk with `dd`

I want to use dd to overwrite a disk multiple times to destroy data beyond recovery. I know I could use dd if=/dev/zero/ of=/dev/sdx/ to do a pass with zeros, or dd if=/dev/null/ of=/dev/sdx/ to ...

15 30 50 per page