0
votes
1answer
551 views

Hook shutdown script to shutting down sequnce

Is it possible to hook some script to shutting down sequence for Linux? To give you a bit more context processes of nodes of the cluster are started as processes from cluster -master. They are not ...
5
votes
0answers
97 views

Logging violations of rules in limits.conf [duplicate]

I'm trying to log the details of the programs that where failed due to the limit cap defined in the limits.conf. My initial plan was to do it using the audit system. The idea was to track the system ...
1
vote
1answer
6k views

Configure power button to shutdown on Debian

I use Debian and I want my power button to shutdown the PC. Currently it sleeps, when I press it. Is there any command for it to make it shutdown?
10
votes
2answers
2k views

Are quotes needed for local variable assignment?

Can I safely omit quotes on the right side of a local assignment? function foo { local myvar=${bar} stuff() } I'm mainly interested in bash, but any info on corner cases in other shells are ...
0
votes
1answer
356 views

git and sshfs: status is inaccurate

I am mounting a git repository on a virtual machine over sshfs onto my host machine. So far so good. However, git claims that there are many uncommitted changes when viewing the repository over sshfs. ...
2
votes
2answers
2k views

find: combining -path and -prune to exclude files and directories

I have a directory /srv/tftp/pxelinux.cfg and a file /etc/mtab. I want to exclude both from find. But whatever I do, either one always is not excluded find /etc /srv -path /srv/tftp/pxelinux.cfg ...
1
vote
1answer
1k views

How do I reload ~/.dir_colors?

I copied /etc/DIR_COLORS to ~/.dir_colors because /etc/DIR_COLORS.xterm was being used and colours in ls --color=auto were too dark. Now, how do I get this file to take effect immediately? (i.e. ...
1
vote
1answer
103 views

Can't boot any Linux except Ubuntu

Hello I wanted to switch to Linux, but the only distro so far I could even boot from a live USB was Ubuntu. I've tried Xubuntu, Manjaro, Linux Mint, and Elementary OS and none could boot, thought when ...
1
vote
1answer
680 views

Can't get golang working on Fedora 19

I've installed the golang package on Fedora 19. Go also needs the the GOPATH variable. I added to my ~/.bashrc: GOPATH=$HOME/.go/ But go env didn't see it (after the source ~/.bashrc): ...
1
vote
2answers
382 views

Use of find in unix on strange file/directory names

Im a beginner scripter, writing scripts in tcsh and csh (these are taught in my course). I'm writing a script which uses find for putting path of directories this is the part of the script: set list ...
1
vote
0answers
36 views

Using FC 19 - How can I interact with very long menus?

I am using FC 19 with the default Gnome setup. Assuming this is Gnome shell, some version 3. Some common apps have very long menus. An easy example is Gedit and the languages menu. This is so large ...
1
vote
1answer
2k views

How to install FileZilla on CentOS?

I downloaded FileZilla from here Now how to install this on CentOS? I used yum install filezilla but it is showing errors like: Loaded plugins: fastestmirror, refresh-packagekit, security You need ...
3
votes
1answer
338 views

No default output device -9996: playing sound through Django

I'm facing a problem with my Raspberry Pi while playing a sound through a web page. The page is built in with Django and is quite simple: you push on a button and a sound is played (a Python script is ...
4
votes
1answer
55 views

What is the scheme for textual representation of keystrokes in screen?

How can I derive the character sequence that represents a certain keystroke in screen? I mean, what bind takes as input. For instance, 's' represents the obvious keystroke on the 's' key. 'S' ...
3
votes
1answer
327 views

How to copy permissions from owner to others using `chmod`?

Is it possible to recursively copy the permissions of owner to group and others for all files in a given directory? PS: my chmod is 5.97
0
votes
1answer
301 views

Performance Issue: AWS Medium Linux Instance V/S Hetzner Dedicated Instance

I am testing an AWS Medium Instance with CentOS (AWS AMI) and comparing it with Hetzner's EX40-SSD (http://www.hetzner.de/hosting/produkte_rootserver/ex40ssd). Software setup on both is comparable( ...
4
votes
3answers
2k views

using sed to replace pattern with hash values

I want to search the file and replace specific pattern with its hash (SHA1) values. For example, let file.txt has the following content: one S56G one two three four five V67X six and I want to ...
2
votes
1answer
183 views

How to run a script as soon as the week number changes?

I would like to keep my download folder sorted. My goal is to have the files of the current week in the download folder, and the older files in a folder named after week number and year (eg 2013.09, ...
1
vote
3answers
415 views

Is there any alternative to echo daemon to display ip?

Is there any alternative to echo daemon to display ip instead of given string? For ex: my ip = 80.1.2.3 server ip = 1.2.3.4 root@my-machine bash$ telnet 1.2.3.4 Trying 1.2.3.4... Connected to ...
0
votes
1answer
750 views

How do I add custom GPG key to Ubuntu/Debian installer?

I'm trying to setup custom Ubuntu install CD using instructions on http://beezari.livejournal.com/191717.html I've added my GPG key to ubuntu-keyring and signed Release file with it (resulting in ...
4
votes
1answer
205 views

Map file to URL

I'm looking for a way to do something like this: some_tool --go-to-background http://server.com/~me/uber_vimrc ~/.vimrc After which, reading ~/.vimrc would give the data downloaded from that URL. ...
0
votes
1answer
2k views

Unable to execute command in the Linux with an user

Two scenarios here. Sudo rights are given for a particular group. a. A new user is created and is assigned to the group. b. Using this user, when we execute commands via shell script it is unable to ...
2
votes
2answers
135 views

Set default login path in ssh config

I use the following config in my ssh config file: Host host1 Hostname host1 User root ForwardAgent yes Port 22 ProxyCommand ssh -q user@host2 nc %h %p Is there a way to jump to a ...
2
votes
2answers
87 views

Different error messages when using different strings in terminal

When I insert, for example, unix.stackexchange.com followed by Enter in terminal, I get the following error: unix.stackexchange.com: command not found This is ok and as I expected. But when I insert ...
1
vote
1answer
237 views

How to install linux-libc-dev in SliTaz (asm/ioctls.h)

When I installed gcc from SliTaz repository tazPkg command. I got gcc version 4.5.2 (SliTaz) when I attempt to compile aircrack 1.2 beta on SliTaz. I get a error with missing file (No such ...
1
vote
0answers
41 views

Linux display server or program that can route video and/or images between its clients?

The JACK Audio Connection Kit (http://jackaudio.org/) is a really useful tool for working with audio on linux systems. It allows for both audio and MIDI data to be communicated between its clients, ...
1
vote
2answers
760 views

How does KVM set its own netfilter rules?

I've been poking around with KVM VM's on Centos 6.4 and after some hair pulling and copious amounts of trying to break my desk with my head due to not having an internet connection on my VM's, I found ...
0
votes
0answers
902 views

Linux Mint Kde boots to Xsession fail

I've been trying to figure out this error I have. Its a fresh install of linux mint 15 kde. During the process of installing graphics drivers, steam, and a few other things I get this error at some ...
2
votes
2answers
53 views

grub and boot partition damaged

I seem to have a damaged /boot partition and grub boot loader, I was wonder if there is a easy way to repair this ? I was thinking of booting a Live CD and using dd to copy the boot partition from ...
1
vote
1answer
981 views

How do I install TazPkg in SliTaz Linux

How do I install TazPkg in SliTaz Linux? Usually to install tazpkg packages you need TazPkg but I unsintalled TazPkg because it was broken now how do I install it again?
3
votes
2answers
7k views

Invalid signatures when running apt-get update

I'm new to linux and am trying to run an update, I get a lot of "Hit"'s and "Ign"'s but in the end I get these errors, does anybody know what they mean and how I can fix them? W: GPG error: ...
0
votes
1answer
1k views

Command to highlight the occurrence of a method in a file? [closed]

How would I do the above? Would it be different for each text editor? Could it be done in the terminal? Thanks
4
votes
1answer
2k views

Installed CentOS, Now There is No Windows 8 Options on Restart

I bought a new PC with Windows 8 and wanted to dual-boot linux. I shrank the partition by 50GB in windows, then installed CentOS from a live CD. CentOS is working fine, but I can't boot into ...
6
votes
1answer
1k views

IFS null is not the same as unset IFS?

I read a great question on here called Understanding IFS. I was surprised because the answers and comments quote POSIX which states that IFS= is not the same as unsetting IFS. If you unset IFS, ...
1
vote
1answer
2k views

Installing Linux on an external hard drive and multibooting with Windows 7/8

I want to multi boot Linux (Fedora 19) with my two machines which use Windows 7 and 8. The Windows7 is a desktop, and the laptop is a Windows 8 machine. I used my desktop to install Fedora 19 on the ...
4
votes
3answers
1k views

avconv creates creates files whose duration is incorrect

I am attempting to create a variable rate mp3 from a flac using the following command: avconv -i t.flac -id3v2_version 3 -vn -acodec libmp3lame -aq 0 t.mp3 avconv and mediainfo both list the ...
3
votes
2answers
629 views

A Chromebook-like distro based on Firefox OS?

I'm wondering if it's possible to make an operating system distro based on the same principle as Firefox OS or ChromeOS. One which is basically a Gnu/Linux kernel / core of tools combined with ...
3
votes
1answer
309 views

Snapshot large changing files

At home I have the following backup scheme: All machines daily rsync to the servers $FULL_COPY directory. The server takes snapshots of that directory daily (also weekly/monthly), keeping at most X ...
1
vote
1answer
237 views

Managing iptables for home lan routing

I have a LAN at home. One Netgear router - 192.168.0.1 connected to the internet. One Macbook - 192.168.0.10 (connected to Netgear router) One PC with Kali Linux - 192.168.0.20 (connected to ...
2
votes
2answers
1k views

RED HAT LOGIN problem with root

I want to log in to my new installed RHEL 6.2 I am totally new to Linux. I tried to log in with root, and password that I created during the installation process, but after log in this appears ...
3
votes
1answer
485 views

How do I accept all Networks with the same ssid with wicd?

We have a Mesh network here in my town, where every node creates the same client wlan with the SSID "kiel.freifunk.net". In wicd I can connect to those networks, but I have to choose which of them. ...
2
votes
1answer
391 views

Include replies in the Inbox in Kmail

Is there a way to include my own replies to threads, as gmail does it?
1
vote
3answers
127 views

How can I make a switch accessible via the internet, that allows users to turn on or off a python script?

I have a python script running on a home laptop that runs Ubuntu 13.10. I want to give 2 or 3 people the ability to start or kill that script, but no other privileges. I don't want to give them access ...
3
votes
3answers
2k views

rlwrap: mysql autocompletion not working

Normally, autocompletion works fine in mysql command-line client (mysql-client-5.5). I have a table called booking. When I type the letter b and pres TAB the name of my table gets autocompleted: ...
0
votes
1answer
58 views

a file to be in git or not to be?

I didn't prevent same problem: I don't use git rm projects.py and when i use : git cp projectsTABTAB projectsFindFrame.py projectsInsert.py Also when i use: git show ...
1
vote
0answers
742 views

Problem while install ubuntu 12.04.3-server

I try to install Ubuntu 12.04.3-server-i386 in my system. My system configuration is 256MB RAM, 80GB hard disk, Pentium 4 (2.40Gz). I have a DVD drive, I downloaded 12.04.3-server-i386.iso and burnt ...
3
votes
4answers
5k views

How can I improve nscd's cache hit rate?

My Goal: Let nscd maintain a fairly large DNS cache in excess memory since I have it available. Description: I have a webserver that has a broadly dispersed but high-repeat user base. It has plenty ...
0
votes
1answer
314 views

Why this sort command gives me an empty file? [duplicate]

prova1 is a file with some text. When I run this code prova1 become empty: sort prova1 > prova1 I know that to achieve the effect I can do: sort prova1 -o prova1 I would just know the reason ...
0
votes
1answer
718 views

Cannot install rsync (unable to create…Input/output error)

How do I resolve the following error to get rsync installed? unable to create '/usr/bin/rsync.dpkg-new' (while processing './usr/bin/rsync'): Input/output error Full log follows: ...
0
votes
2answers
389 views

Full Linux distro under 50 MB for a business card CD

I need a full Linux distribution for a non-profit activist organisation that can fit on a business card CD. If that's not possible, there is a business card DVD option too with up to 400 MB capacity. ...

15 30 50 per page