1
vote
2answers
4k views

Printing and deleting the first line of a file using `sed`

I can print the first line of a file using sed -n 1p file.txt I can delete the first line of a file using sed -i 1d file.txt Is there a way to print-and-delete in sed? Kind of like a FIFO pop() ...
1
vote
1answer
500 views

Failed make when installing madplay source

I am attempting to get madplay installed on my shared host I've run: ./configure --prefix=$HOME CPPFLAGS="-I /home/dir/include" LDFLAGS="-L /home/dir/lib" and then "make", but on that on run into ...
1
vote
2answers
598 views

No package community-mysql-devel available

I'm trying to get this package because I need it to build software on CentOS 6, but I'm getting this error: No package community-mysql-devel available I'm logged in as root, using yum. Could it be ...
5
votes
1answer
8k views

What does the *.*;auth,authpriv.none -/var/log/syslog line mean in rsyslog config file?

I'm trying to understand the /etc/rsyslog.conf file, but I'm missing something. For example, this is a part of the file: auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none ...
12
votes
2answers
4k views

tmux copy mode search highlight

Is there any way to highlight the searched term in tmux copy mode? Below is my tmux config: # remap prefix to Control + a set -g prefix C-a unbind C-b bind C-a send-prefix bind a send-prefix # ...
2
votes
1answer
230 views

What does ^@^@^@ mean in a text file?

Sometimes I have problems with opening a file using a graphical text editor -- I'm using geany. The file can be read by vim without a problem. I checked the file, and there wasn't anything wrong with ...
6
votes
1answer
2k views

Unable to reconnect to a WiFi network on Fedora 20?

Problem After leaving my Fedora 20 laptop running overnight, I open it back up and it prompts me to re-enter the password for my home WiFi network. The password is already typed in and censored, but ...
0
votes
2answers
84 views

Help with directory ownership/permissions for apache

I've been using Ubuntu Linux for a couple years now but I still have trouble with permissions. I need to setup my web server for production. The root web directory should always be accessible by ...
0
votes
1answer
98 views

host only ip address: can it be 10.*.*.*?

My router is set to have computers IP range from 10.1.1.1 to 10.1.1.60 I'm trying to run Linux in virtual box in a host computer with windows 7. The host computer has 10.1.1.5 currently, which is ...
2
votes
2answers
160 views

Why is vim not being opened in its own screen?

When I type vim in xterm the program is not opened in its own screen, but in the very same I am writing commands in. Let me explain: for example, lets say I type in the terminal ls -l /usr/bin and get ...
2
votes
1answer
111 views

Is it possible to integrate Apple iCloud services (e.g. contacts, calendars) with Fedora 20?

I am a new laptop user after using an iMac desktop for about seven years. Over that time, I had become fairly reliant on Apple's services syncing between my iPhone and my iMac. Now that I'm on ...
0
votes
1answer
5k views

Drive auto mounting as read only (errors=remount-ro) [closed]

My system (12.04 Ubuntu LTS) is auto-mounting as read only and I have no idea why. Output of fstab: cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the ...
4
votes
3answers
410 views

Tool to create recipe to preseed partitioning

I want to preseed an Ubuntu 12.04 installer using a custom partitioning recipe. My disk layout is reasonably complex, and so is the recipe syntax itself. Hand-crafting such a recipe seems tedious and ...
0
votes
0answers
69 views

Config to re-enable gtk2 tear-off menus?

Following an apt-get update on Debian jessie/sid, several Gtk2 applications no longer have tear-off menus enabled. I'm aware that this is a deprecated capability of Gtk (and disagree strongly with ...
1
vote
2answers
562 views

Unable to do head or tail for a file

I have a .CSV file which upon passing the file test_file.csv command gives the output as: test_file.csv: ISO-8859 English text, with CR line terminators When I am using cat, head or tail command on ...
2
votes
0answers
2k views

CentOS 6.5 sound permissions

I am trying to configure ALSA for a CentOS 6.5 minimal install, my problem is non-root users do not have permission to access the sound devices in /dev/snd because the files are missing access control ...
8
votes
3answers
650 views

What could cause the clock to jump by 5 minutes?

I have a (physical) box running a stripped down Ubuntu; every now and then (6 times in 3 months), the clock jumps backwards by exactly 300 seconds (+- 0.01 seconds; always exactly 300 seconds). It ...
3
votes
1answer
1k views

How long system has been awake / running / since restart

First and foremost I want to know how long my laptop (unix, apple, OSX 10.9 mavericks) has been 'awake' (i.e. how long its been open, or since it last 'slept'). I' also be interested in how long ...
1
vote
3answers
92 views

Yum not working

When I try to execute yum I get this: My guess is I need to start the Ethernet connection because I cant ping and this is what what we do with SL6. I'm new to CentOS that is why I ask. I've ...
1
vote
0answers
473 views

Log files corrupted with NUL characters and text from other processes

I am running Wind River Linux 4.3 on an embedded Freescale single board computer (SBC). Output from uname -a: Linux ge101 2.6.34.10-myname-grsec-WR4.3.0.0_cgl #1 SMP PREEMPT Mon Aug 26 01:35:35 PDT ...
1
vote
1answer
458 views

How to install latest catfish in ubuntu 10.04

I was trying to install the latest catfish from https://launchpad.net/catfish-search/+download on my Ubuntu 10.04 (need this version at the moment, nothing more recent) The version in apt-get for ...
6
votes
3answers
19k views

How to change encoding from Non-ISO extended-ASCII text, with CRLF line terminators to UTF-8?

I have a txt file : $ file -i x.txt x.txt: text/plain; charset=unknown-8bit $ file x.txt x.txt: Non-ISO extended-ASCII text, with CRLF line terminators And there are some characters that are ...
2
votes
2answers
82 views

Why can users delete each others files in this case

I have two users : bob and sally, who resepctively own two files : bob100 and sally100: > ls -altrh /path/to/dir : -rw-r--r--. 1 bob test 0 Jan 7 12:59 bob100 -rw-r--r--. 1 sally test 0 ...
0
votes
1answer
631 views

GDM3 setting incorrect refresh rate for my monitor on evert launch, despite it being set properly in xorg.conf

I wanted the ability to switch users with gdmflexiserver, so I switched from KDM to GDM, and ever since, it has been setting up incorrect refresh rate on every launch, requiring me to manually change ...
3
votes
1answer
643 views

How do I stop emacs from asking me if I want to exit a modified file without saving?

If I am closing a file that has modifications, emacs warns me about this and says I should press y or n. Even when I press 'n', it still tells me that modified buffers exist and asks if I want to ...
8
votes
1answer
1k views

How do I stop emacs from asking me if I want to load a large file?

When I open a large file in emacs, I get a message saying 'foo.bar file is large; really open?' How do I stop emacs from asking me this question all the time? In other words, if I open the file, I ...
2
votes
1answer
712 views

How do I stop emacs from colouring the text of the file I am editing?

How do I stop emacs from colouring the text of the file I am editing? I want everything just in plain white. I know that I can load themes, but it's not obvious which theme does what. Can I just ...
8
votes
1answer
5k views

Why ``gvfsd-metadata`` process is hogging 100% of a single core for a long time

Today gvfsd-metadata process was running for a whole day hogging 100% of a single core of my CPU. Is there any reason for it to do it?
4
votes
5answers
6k views

Print the string between two parentheses

I have file with these lines G8 = P(G1,G3) G9 = P(G3,G4) G12 = P(G2,G9) G15 = P(G9,G5) G16 = P(G8,G12) G17 = P(G12,G15) I need the output as G1,G3 G3,G4 ..... How can I do it with sed/grep ...
1
vote
2answers
1k views

Help me understand this echo/spawn/send/expect construct

Here is a line from a bash script I am trying to understand: echo "spawn myscript.sh arg1 arg2; expect \"Please enter your value: \"; send \"myval\r\"; expect eof" | expect I think I understand the ...
0
votes
1answer
5k views

Permission denied NetApp export share

We have NetApp NFS file server. I have shared /example filesystem on NFS and give two Linux host permission of ROOT level access. Interesting thing is ServerA can mount /example share and has full ...
1
vote
0answers
89 views

invisible bridged router with 2 route table

my setup I have 2 ISP connexion : ADSL and SDSL. A qos (named qos, ip : 192.9.201.252) server stands before the ADSL router. It is the only way to access the ADSL gateway (192.9.201.254) through a ...
3
votes
2answers
2k views

Crontab change MAILTO for only one specific job in Root's crontab

Can I do the following to change where mail goes for one specific crontab job in root's crontab (don't sent to root for Do Something job, just send to porklover): # Make a hambone appear * * * * * ...
1
vote
1answer
4k views

Debian - auth.log missing from /var/log

I am learning Debian on RaspberryPI. I've installed 'logwatch' and 'fail2ban' recently and those two were working Great! A few days ago I've spotted that I don't have a file "auth.log" but I do have ...
1
vote
2answers
190 views

visit all directories under version control

Is there a find incantation that would allow me to visit all directories under SVN version control? I am trying to use the execdir switch to add to the svn:ignore property in each one of these ...
5
votes
3answers
435 views

Why BitchX is called BitchX?

Well, the title is pretty much self-explanatory, but for sake of completeness, I'm curious to know the reason for the name of BitchX. I searched on internet for etymology but it was a fail. I hope ...
0
votes
1answer
54 views

Insert mode in all windows in VI

Suppose I am using vim with two or more files opened in split-screen mode. The open files are very similar, and I want to perform a few identical changes to all files. I already know of :windo set ...
1
vote
2answers
152 views

Linux and CPU usage

What does it mean for a core to run at different loads in different moments? How does a 10% load differ from a 90% load? How is this number calculated, essentially?
0
votes
1answer
309 views

How to start a virtual machine filled with qemu-nbd?

I migrated a Windows OS (entire disk) to a virtual machine on another host (Debian with qemu and kvm). I used Selfimage to export the disk. On the host, first of all, I created an empty virtual ...
1
vote
2answers
43 views

Can I use `type` to check whether an arbitrary name is a valid command name?

The bash built-in type can be used for this purpose by checking its exit status: Exit Status: Returns success if all of the NAMEs are found; fails if any are not found. How portable is it? The ...
11
votes
3answers
6k views

find with -execdir

I run a find with -execdir both I don't get the results I was expecting. SSCCE below: mkdir -p a/b/c find . -type d -execdir touch foo \; $ tree a a ├── b │   ├── c │   └── foo └── foo Directory c ...
5
votes
1answer
917 views

Wget out of memory error kills process

I wanted to backup all my .vcf files from my carddav server (ownCloud). The script is very simple and is the following: $ wget -Avcf -r -np -l0 --no-check-certificate -e robots=off --user=user \ ...
5
votes
2answers
1k views

How to map Caps Lock as the compose key using Xmodmap portably and idempotently?

I can't seem to find a way to use Caps Lock as the compose key properly. Some methods are not portable since they require that you detect the key number using something like xev on every host. Other ...
3
votes
1answer
3k views

Linux:How to tweak TSO and GSO from proc window / sysctl

OS:CentOS 5 I am doing some TCP optimization on my Linux box and want to put ON tcp segmentation offload and generic segmentation offload. I am doing it through ethtool Here is what I am doing: ...
1
vote
0answers
85 views

Xephyr Resolution Issue

Whenever I try to connect to Ubuntu using Xephyr, I always get it with the resolution set to 1600x1200, even though, I specified the switch -screen 1024x768 when running it. Questions Where is the ...
4
votes
3answers
1k views

Linux-AD Integration

I currently have this domain with about 25 PCUS running with AD and Windows Server 2008 R2. We are currently thinking of adding some Linux PCUS instead of more Windows PCS because of financial ...
4
votes
1answer
898 views

file corresponds to /proc/locks

$ cat /proc/locks 1: POSIX ADVISORY WRITE 458 03:07:133880 0 EOF 2: FLOCK ADVISORY WRITE 404 03:07:133879 0 EOF The fields are: ordinal number(1), type(2), mode(3), type(4), pid(5), ...
4
votes
2answers
2k views

CentOS can't use new extented space on system disc

I have CentOS installed in my VirtualBox and there was small HDD for the system itself(about 8-9GB). After some time of using this, this virtual disc got full and I couldn't install updates so I ...
1
vote
1answer
889 views

Different behaviour of systemctl suspend when executed via i3 wm key binding

I am using the i3 tiling windows manager in combination with light-locker to lock the screen. Light-locker displays a lock message on the locked TTY and shows the password screen on a second TTY. ...
3
votes
2answers
1k views

How to force systemd enter in emergency mode?

I'm using Opensuse 12.3. systemd-195-13.45.1.x86_64 After few problems when I added a disc at btrfs mount I'm trying put my system in emergency mode (which I consider all services will be stopped and ...

15 30 50 per page