1
vote
1answer
389 views

Finding data transfer rates on individual TCP/IP connections

In a application that has multiple TCP/IP connections with other applications on a Linux system how can I find the amount of data transferred between individual connections.
7
votes
1answer
510 views

How to start to use httpd with socket activation (systemd)?

The apache httpd server is seldom needed on one of our small servers, so it would be nice to start it via socket activation by systemd (and later stopped it when no traffic occurred for some time). Is ...
2
votes
1answer
307 views

Why doesn't cups detect my canon selphy USB printer

I recently upgraded my system to a fresh install of Linux Mint 16. I was hoping that would support my Canon Selphy CP770, since that is claimed to be supported by the new version of Gutenprint. ...
4
votes
1answer
277 views

How to disable ctrl+wheel font resize in konsole/yakuake

Which is quite annoying when I mistouch touchpad with two fingers.
1
vote
1answer
147 views

understanding Linux software-RAID superblock

According to mdadm manual, --zero-superblock option will overwrite the superblock with zeros. As I understand, superblock is a 256 byte block on HDD/SSD describing the RAID level used, name of the ...
2
votes
1answer
1k views

What is the recommended way of setting a default IO scheduler on Linux?

I would like deadline to be the default IO scheduler for my system, and I don't want to lose that config when I reboot. What is the proper way of doing that? (I'm using Debian) Some hints: have a ...
3
votes
2answers
2k views

Shell script works when saved with nano but not when saved with Notepad++

I've been working on a bash script all day and have been testing on the machine I will be using it on. When I copy the script across from Notepad++ into a new file with nano editor inside SSH and ...
2
votes
0answers
2k views

apt-get update could not resolve addresses [closed]

When I run apt-get update (on Ubuntu 12.04) I keep getting these errors: Err http://security.ubuntu.com precise-security Release.gpg Could not resolve 'false' Err https://get.docker.io docker/main ...
8
votes
3answers
1k views

Harddrive I/O per Pid

is there any way to see the disk I/O per pid/process ? Monitorix shows me the following and correct me if I´m wrong, but it looks like that the harddrive is slowing down the whole system: UPDATE #1 ...
2
votes
1answer
143 views

How does the kernel know which file descriptor to write data to after fork() in a concurrent server?

Basic concurrent client/server architecture: There's a main loop listening for requests on a port (for example 3000), after accepting the connection the server spawns a child process that ends up ...
11
votes
2answers
9k views

BSD Kernel Vs. Linux kernel? [closed]

I wanted to know in technical terms; what is the difference between BSD Kernel and Linux Kernel. In Linux, we can download the source kernel then patch it and make and make modules it. Even we have ...
2
votes
2answers
7k views

specify PREFIX location when running make

I need to install redis 2.8.x into a specific directory so I can later use fpm to create an rpm. From my research, it seems that this should be possible by using make PREFIX= mkdir /tmp/installdir ...
3
votes
2answers
3k views

Writing own daemon. systemd error: Failed to read PID from file: Invalid argument

I'm trying to write own daemon a la very simple MPD (it's operating systems laboratory work). I made it work: it starts like a daemon (output of ps): 1 14877 14877 14877 ? -1 Ss 0 0:...
6
votes
4answers
4k views

Why/how does “uptime” show CPU load >1?

I have a 1 core CPU installed on my PC. Sometimes, uptime shows load >1. How is this possible and what does this mean? EDIT: The values go up to 2.4
2
votes
1answer
290 views

Keypad plus and minus names in ~/.XCompose

I use XIM under Debian Linux with Gnome 2. Many compose sequences are already defined in the system, including the one for ± sign: palec@Palec:~$ grep PLUS-MINUS /usr/share/X11/locale/en_US.UTF-8/...
1
vote
6answers
2k views

Program a file to self-destruct at a given time

Does anyone know whether there is a command in linux that can set attributes to file so that the file can disappear after certain time. For example, if I set one attribute to file as "1/1/2015", so ...
3
votes
3answers
2k views

How to record an interactice socat TCP/TLS session?

Socat is great for interactively testing line based human readable protocols like HTTP or IMAP. For example: $ socat -d -d READLINE,history=$HOME/s.hist openssl:host:port,crnl,cafile=some.ca For ...
2
votes
2answers
271 views

How to autoplay ogg stream at startup of Debian

I am programming a Rasberry to Pi to become a radio player. It is meant to be used to play the local college radio in the student union hangout. INPUT: Power is turn on. OUTPUT: Audio is played ...
32
votes
1answer
20k views

Linux: What is a tainted kernel?

Under certain conditions, the Linux kernel may become tainted. For example, loading a proprietary video driver into the kernel taints the kernel. This condition may be visible in system logs, kernel ...
5
votes
1answer
13k views

Can't mount samba share

I'm trying to mount a samba host located at 192.168.2.5. I can ping the host, I can open the share on Ubuntu and windows (with the credentials). When I try to manually connect: pi@raspberrypi-web-...
2
votes
2answers
2k views

vim colors not automatically loaded (probable Vundle conflict)

I've been trying to port my Windows .vimrc to Linux, to use on the command line (on gnome-terminal). Everything works fine, except for the colorscheme. It looks like it's loaded (:colorscheme returns ...
6
votes
1answer
227 views

When a member of multiple groups, how do I set the default group for newly created files?

With umask, I can determine the permissions for newly created files. But if I am a member of multiple groups, how do I set the default group for newly created files? This question seems relevant, ...
6
votes
0answers
1k views

Dual monitors with 2 videos driver with xrandr 1.4

I'm trying to dual-screen with 2 differents video card drivers (i915 & nvidia) but as you can see xrandr is only listing nvidia provider. [x@epoch ~]$ xrandr --listproviders Providers: number : ...
1
vote
0answers
300 views

Ossim Server email alert

ON ossim server , i want to get an email alert when someone has an rdp session on my network. How can i get an email alert from ossim for an RDP session from ossec and not from snort ?
1
vote
1answer
40 views

Any reason an HP C7499A DVD ROM shouldn't work on an old Sun Ultra Enterprise II?

I'm trying to switch from a CD-ROM to a DVD-ROM on an old Sparc Ultra Enterprise II. I got this C7499A but I can't seem to access anything on it. I thought that since it's SCSI it should work even ...
4
votes
1answer
981 views

How to measure traffic on OpenWRT 12.04

Since just doing a cronjob every morning, before the router reboots: ifconfig > "`date`.ifconfig.txt" isn't very effective, since after ~4 GByte's the counter in the ifconfig will go to zero. ...
2
votes
2answers
676 views

Running cron.daily in parallel

Being able to put a script in /etc/cron.daily is really nice because I can do it easily from a configuration management system or a package. However, my understanding is that all the entries in /etc/...
5
votes
5answers
26k views

mounting mmcblk0p1 failed with Invalid argument

When I am running linux from sd card and try to mount sd card -no problem, works fine. But when I am running linux from flash memory I am unable to mount my SD card: # mount /dev/mmcblk0p1 /mnt/ ...
12
votes
3answers
3k views

Why there are many BSD systems but only one Linux kernel?

Why there are many BSD systems but only one Linux kernel? I wonder why BSD was forked many times, but no such thing with Linux.
7
votes
5answers
6k views

Transform a directory into file or a file into directory

I wanted to create a file named test. Accidentally I run mkdir test instead of touch test. Is it possible to convert test directory in a file named test? What about converting a file named test into ...
3
votes
1answer
2k views

/home/user: change directory failed error

I just installed Arch reading from the Beginners' Guide on the Arch Wiki. Once I rebooted Arch, I logged into root then I added my own personal account: useradd fox then passwd fox and set my password ...
1
vote
0answers
64 views

Should rpc.statd write anything into wtmp?

On several linux machines (some old custom variant of gentoo) I have huge wtmp files, up to gigabyte in size. After some experiments I know that there is rpc.statd daemon running on all servers and ...
2
votes
2answers
44 views

Search for files by content only in trunk subdirectories

I think its a simple question, but the answer is probably a little more complicated :P Edit: Actually, its not complicated at all!^^ So I have a directory with multiple svn projects and I would like ...
3
votes
1answer
1k views

How do I allow user permissions to data on a Couchpotato and Sickbeard Plugin using Freenas

Trying to setup permissions for the plugins sickbeard / couchpotato. I’ve read almost every thread google / the forums have but haven’t really found a solution yet. I’m assuming it’s the data here: (...
0
votes
1answer
154 views

How check presence of service if present return status else -1

I am bit struggling with following. I would need one line sh command which follows following logic: Check if service present then return service status otherwise -1. I came up with following: [...
3
votes
1answer
741 views

How can I share a thunderbird (icedove) profile, in real-time, between two computers?

I have two computers which both run Debian Sid. My problem is that I want to synchronize profile content between two computers both using thunderbird(+lightning) (contacts+calendar+email) (...
2
votes
1answer
675 views

solaris awk problems with date and if statements

I have daily files that come in via FTP with incorrect dates in the first column of the file. I have figured out how to deduct one day to derive the correct date and print this to a new file. The main ...
3
votes
2answers
156 views

Environment for creating a package

I am considering packaging a Python program for Arch Linux to be distributed with the AUR. I have created a PKGBUILD file that I can use with makepkg to build the package. The package builds and ...
4
votes
2answers
765 views

Gnome 3.10 ScreenCast + Audio on Arch

I'm trying to record my desktop (including audio) in Gnome 3.10 on Arch Linux with the built-in screen recorder (Ctrl+Alt+Shift+R). According to this post (and other similar solutions that can be ...
1
vote
2answers
1k views

Auto answering password for OPENSSL using HEREDOC [closed]

I have the following command but it doesn't work for me... cd /etc/postfix/ssl/ && openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024 <<PASS password password PASS The output ...
6
votes
3answers
2k views

How to send snmp trap when syslog is logged?

I need to send snmp trap n number of host whenever any syslog is logged in /var/log/messages. How can I do this, can anybody give me any idea?
2
votes
1answer
55 views

Metadata for exchanging BSD mailbox files

The BSD mailbox format has, according to Jamie Zawinski, never been formally documented (see his anti-content-length rant), and does not have, as far as I know, any formal identifiers that may be used ...
8
votes
3answers
443 views

Trap: can't su as root, can't change group to wheel, ssh as root prohibited

Is this a trap? I made these steps in FreeBSD 10: 1) ssh as root prohibited 2) logged as user 3) su as root 4) as root chsh changed name of user "user" to "luser" 5) exit from ...
1
vote
1answer
184 views

Changing the PATH variable for a process running as a user on Linux

I have a server application which I start using an init.d script and run as a user: su $USER -c "${PLAY} start ${APPLICATION_PATH} --%prod-test >/dev/null" The application needs ffmpeg, which is ...
4
votes
1answer
401 views

How to run script when SSSD creates home directory for a new user

I have a network with several RHEL6 workstations and RHEL IdM Server (a.k.a. FreeIPA) as a domain controller. Every LDAP user can log into the every workstation. When the user is logging in for the ...
1
vote
1answer
166 views

unable to establish communication using grabserial

I have use teraterm in past and it works fine. I can see log messages coming from my board. Ultimately I reach the login prompt where I enter my login and password for OS running on my board. Now ...
4
votes
2answers
833 views

Where is a shell script run from?

I have a shell script in /usr/bin. Let's call it hello. It contains this: echo "I am located in $PWD" echo "I am called from this directory: ???" Running hello from /home/Documents I expect the ...
4
votes
4answers
4k views

How can I extract/parse a complete URL from a semi random string?

I'd like to have bash parse/extract a full URL (and only the url) from a random short string. Examples: bob, the address is http://www.google.com or https://foo.com/category/example.html is up ...
1
vote
1answer
79 views

how to java set the PATH of my Debian 7.3 system ?to link the java version I want [closed]

If I insert into the terminal: aryan@localhost:~$ java -version java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-1) OpenJDK Server VM (build 20.0-b12, mixed mode)
0
votes
3answers
124 views

Terminal Root Command Warning

Is it possible to write a script (or change some file) in order to warn the user that they are using a command that is normally reserved for root? And if so, how? I'm currently the administrator of ...

15 30 50 per page