0
votes
0answers
2 views

how do I save atom io files to be executed in terminal

so i am new to atom and i was trying to figure how to run saved atom io files and then run it as an executable program from terminal? Right now i am trying to use the command ./filename.py for ...
0
votes
0answers
2 views

Restore GRUB on Fedora 20

I had a nice dual-boot Windows Technical Preview/Fedora 20 thing going on, but when I updated to Build 9926 Windows saw fit to remove my Fedora entry from my BIOS's boot options and I can't get it ...
0
votes
1answer
7 views

Rename files based on folder names?

How can I rename .jpg files in multiple folders based on the name of the folder? I also want the .jpg files to remain in their respective folders and not moved. The folder names have no spaces. So, ...
1
vote
2answers
18 views

How to get the last N files in a directory?

I have many files that are ordered by file name in a directory. I wish to copy the final N (say, N=4) files to my home directory. How should I do it? cp ./<the final 4 files> ~/
0
votes
0answers
5 views

account login slow in Centos

My centos server recently found that the login is too slow. I use SSH to connect the server but it seems no the problem about SSH. Because Last login: Mon Jan 26 12:11:04 2015 from XXXXX appear ...
0
votes
0answers
5 views

How to read dmesg from previous session? (dmesg.0)

dmesg is a command to read the contents from /var/log/dmesg. The nice thing compared to less /var/log/dmesg is that I can use the -T flag for human readable time output. Now I would like to look at ...
0
votes
0answers
10 views

Will sysfs replace procfs in the furture?

As I know, procfs has been old and chaotic, so sysfs was invented to resolve the problem. Will sysfs replace procfs in the furture? Or, sysfs will just replace part of the functions of procfs, such ...
1
vote
2answers
9 views

Why does zsh allow name to be null in ${name:-word}?

From zsh documentation: ${name-word} ${name:-word} If name is set, or in the second form is non-null, then substitute its value; otherwise substitute word. In the second form name may ...
0
votes
0answers
8 views

try to install wordpress but always get 500 error when using cloudflare as cdn

I upload all wordpress files to wordpress/ when I call wordpress/wp-admin/install.php it always reports 500 Internal Server Error I try all ways at ...
0
votes
1answer
12 views

How to run a command in background always?

the below command when I run from the terminal will keep posting the output to message.log cf logs broker-analytics > /var/www/cfbrokerlogs/message.log However, if i close my terminal it will ...
0
votes
0answers
6 views

Send email if user accesses the server via ssh

I want to send an email whenever a user logs in on my server via ssh: /usr/local/bin/shell-login.sh | mailx -s "SSH Login User $(whoami) on YOUR-HOSTNAME" your@email.org ...
1
vote
1answer
6 views

Unknown Function in Vim

I am hoping that this is the correct StackExchange community. Anyways, I have the following file (vimscript.vim): function HelloWorld() echo "Hello World" endfunction call HelloWorld() When I ...
1
vote
1answer
7 views

$USER not set ssh

On some of my debian wheezy servers there is a global variable $USER that contains the current logged in username and on some this variable is not set immediately at login. How do I set $USER so it ...
1
vote
1answer
4 views

Can I change my ChrUbuntu install over to Arch Linux on a Samsung XE500C21 Chromebook?

I installed ChrUbuntu 12.04 on my Chromebook (Samsung XE500C21). Is there a way to swap my distro over to Arch ARM? Failing that, is there an easy way to install Arch ARM on the SSD of one of these ...
0
votes
0answers
7 views

hardware accelerated window manager

i got a hand me down lenovo thinkpad and i was pleased that it was still comparatively fast as it was running windows 7 very smoothly... but since i switched to CrunchBang (i'd like to think i'm ...
1
vote
1answer
9 views

Do programs source .bashrc when run?

I append to my PATH environment variable in my .bashrc file (Ubuntu v12). I also have a service (Atlassian Bamboo) that relies on the modifications to PATH. When I restart the service (which runs as ...
0
votes
1answer
10 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 ...
-1
votes
0answers
26 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
30 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
2
votes
1answer
11 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
5 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
58 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
33 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
14 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 ...
8
votes
5answers
268 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
11 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
25 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
34 views

Smarter filetransfers than rsync? [on hold]

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
7 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
1answer
22 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
195 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 ...
5
votes
2answers
229 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
22 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
10 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.

15 30 50 per page