6
votes
1answer
31 views

How do I know what decompression algorithms are compiled-in into the linux kernel?

If /proc/config.gz is unavailable, how do I know what decompression algorithms the running kernel is capable of using on a compressed cpio initramfs? Is the gzip algorithm always available, even when ...
2
votes
1answer
45 views

How to set parameter zero ($0) while executing a script?

I can manipulate positional parameters using shift or set -- while a script is interpreted. How can I change $0?
24
votes
4answers
2k views

Reverse grepping

Let's say, I have a really big text file (about 10.000.000 lines). I need to grep it from the end and save result to a file. What's the most efficient way to accomplish task?
2
votes
0answers
31 views

getting last logins since $time

I want to get last logins from a certain date using last Running last -f /var/log/btmp -t 20140723123000 Always shows my whole lastb log. This: last -t 20140723123000 Shows my whole last log. ...
1
vote
0answers
16 views

Bluetooth Device not working debian wheezy

i just installed debian wheezy on msi cx640dx. my bluetooth device not working. here is some information. Kernel version: $uname -r 3.2.0-4-amd64 when i use hcitool dev it don't show any device. ...
-1
votes
0answers
19 views

Command not found using tmux on osh [on hold]

I have installed gem pry-remote. The problem I'm having is that the command pry-remote can't be detected when I ran tmux on iterm2 but it's detecting it if I exit tmux. This happened after I updated ...
0
votes
3answers
69 views

Connectivity between 2 remote Linux machines

I have two remote machines, I'm running a script on one of them. There's some part of the script that should be running on the other one, then the script will continue in its further tasks/commands. ...
1
vote
1answer
20 views

Make a deb package that installs data under /var/www/data

I recently set up a PPA on Launchpad for distributing my web application. Since it's a server-app, I need to put my data into /var/www/html which apparently is not wanted by Lintian ...
1
vote
2answers
27 views

Format output to a specific line length

So I have some output that has very long lines, and I want to have it formatted to lines no more than 80 columns wide, but I don't want to split words because they are in the column limit. I tried ...
1
vote
1answer
42 views

Curious about strange ICMP type 3 code 10 traffic to my IP address

My firewall (iptables) logs some strange ICMP type 3 code 10 traffic that I am curious to understand (specifically how or if this could be an exploit of some sort). Type 3 = Destination ...
1
vote
1answer
35 views

top command on multi core processor

I am using freescale IMX6 quad processor. I want to know if the top command lists the CPU usage of all 4 cores or of a single core. I am seeing an application's CPU usage being the same with 4 cores ...
0
votes
0answers
6 views

Cube not working in Fedora 20 KDE

When I switch desktops on my Fedora 20 system, with the "desktop cube" it doesn't work. Instead of showing the cube effect, it displays briefly LibreOffice with an open document which I closed 10 ...
3
votes
1answer
24 views

How do I find out what filesystem drivers are compiled-in into the linux kernel?

On a running linux system, what is a portable (among linux distributions) way to find out what filesystems the current kernel has compiled-in (not through modules) support for? Consider for example ...
0
votes
3answers
39 views

Grep display both matched and umatched lines [duplicate]

How can I use grep command to display both matched and unmatched lines? Matched line should be in red and other lines should be in normal color. Is there a grep option available to do that?
0
votes
2answers
18 views

Autostart a GUI application in Debian as root

I would like to know which is the most correct way to make my Debian automatically start up a graphical application once the desktop has been loaded. The app must be started as root.
1
vote
0answers
15 views

Recover data from a BTRFS RAID5

I have a BTRFS RAID5 setup (no mdadm) with four disks (the fifth failed). Now I am trying to recover the files but as soon as I try to rsync the files over to another disk, the system hangs after ...
0
votes
0answers
8 views

How do I add and cancel print jobs in debian wheezy?

So I have a Canon MP150 printer running in debian wheezy, which I've added using the CUPS print manager (going to http://localhost:631/jobs/). I tried to print with not enough paper in the printer and ...
0
votes
1answer
21 views

Give a user the permission to access files in a directory

I have mounted a volume from NAS storage to my Solaris 10 machine using NFS. I want to give read/write permission for a user to the directories and subdirectories and files. I have tried setfacl -m ...
1
vote
3answers
61 views

Possible corrupt passwd file

I did a recovery of the server and reset the root password to a new one because for some reason, the original was not being recognised. It still is refusing to accept the password in ssh for root. ...
0
votes
2answers
43 views

Missing repository problem (404 Not Found) [duplicate]

My system spec is: Release 15 (olivia) Kernel Linux 3.8.0-19-generic MATE 1.6.0 I have recently been unable to install or upgrade any new package. I am getting many errors like this: Err ...
5
votes
1answer
27 views

How to disable Alt-Arrow switching of Virtual Consoles?

The following happens on different Linuces: When I'm in a virtual console, hold Alt and press ← or →, the virtual ttys cycle. This is really annoying as I'm using fish-shell which also uses this key ...
1
vote
1answer
20 views

Why does chroot get ENOENT on an existing file?

;TL-DR - Answer: because the dynamic linker ld-linux-x86-64.so.2 was missing. I have mounted a squashfs (shouldn't matter) filesystem -ro,loop at /mnt/foo. It contains among other things the ...
1
vote
1answer
26 views

Command line utility for reading tabular data

I am looking for a command line utility that would allow me to quickly investigate structure of a large dataset. Right now I am doing it by using: head -n 2 dataset but the problem is that the width ...
1
vote
0answers
20 views

Is it possible to cancel a job in the printer spooler with cancel -a

I need to cancel a printing job in a printer cause the job I want to send is a "high priority" job. I have CentOS 6.2 installed. I know that with CUPS and cancel -a I can cancel all local printer jobs ...
5
votes
2answers
263 views

How is the inplace modification of a file being done?

What does the "inplace" modification of a file e.g. via sed -i or perl -i mean? My question is about how this inplace modification is done. Is the file copied the modification is done in the copy and ...
1
vote
4answers
88 views

Number of processors in /proc/cpuinfo

While i was learning about cpu load i came to know that it depends on numbers of core. if i have 2 cores then load 2 will give 100% cpu utilization. So i tried to find out cores.( i already know that ...
1
vote
2answers
162 views

How to iterate through multiple file extension without caring about case sensitivity?

I've seen various topics on how to iterate through multiple file extensions but in most case, the list is defined. example: for file in ${arg}/**/*.{txt,h,py} do .... done As can be seen, ...
5
votes
3answers
175 views

How to iterate through a list of files with spaces that is sorted (case insensitive)?

I am doing this in OSX which uses bash but obviously, not all bash conventions are used so hopefully your suggestion is available to me :) I have the following files fun bar1.txt Foo bar2.tXT ...
3
votes
1answer
33 views

Different between `ulimit -e` and `renice`?

I would like to run a backup script in low CPU and disk I/O. Is there any different between this: #!/bin/bash ulimit -e 19 ionice -c3 -p $$ and this: #!/bin/bash ionice -c3 -p $$ renice -n 19 ...
1
vote
0answers
16 views

How do I track why X11 keyboard shortcuts don't work?

I am on Arch Linux. I am completely stuck trying to figure out why some of the key combinations work on regular DELL 101 key usb keyboard in X11, but not on the mechanical gaming one. I have 2 ...
6
votes
0answers
25 views

Multiple instances of Postfix throwing error fatal: unknown service: smtp/tcp

I am trying to configure multiple postfix-2.12 instances on FreeBSD 10.0-RELEASE following the README. postmulti -e init postmulti -I postfix-out -G mta -e create ... This all works I can start ...
0
votes
0answers
18 views

CANON printer setup with no driver openSUSE

I just bought a new printer/scanner combo and am attempting to set it up with my pc which runs openSUSE 13.1. I went to yast-> hardware-> printers and followed the prompts however, although my ...
1
vote
1answer
50 views

Bought Wireless Adapter, Can't Use It

I bought a cheap Aztech WL572USB Wireless-N USB Adapter. It clearly says it supports linux on the documentation but strangely doesn't even provide any way to set it up. I assumed it's plug-n-play but ...
2
votes
0answers
20 views

Building a Security System using Raspberry Pi [on hold]

I have a spare USB webcam at home and I plan to order a Raspberry Pi Model B which will capture video and stream it live. This will be my first time handling a Raspberry Pi. Before oredring the ...
-4
votes
2answers
81 views

“bash: [: : integer expression expected” [on hold]

I want this function to return one random word if there aren't any command-line arguments. I am modifying linuxconfig.org's random-word generator to run even when #$ -ne 1. function random-word { ...
0
votes
0answers
28 views
+50

Forward local port to remote port in a Vagrant machine

I have MySQL running on my local machine and I need to publish this port to a Vagrant box without any special SSH hackery. Is there a way for me to forward 10.0.2.2:3306 to 127.0.0.1:3306 on the ...
3
votes
1answer
22 views

Adding a label to start-stop-daemon service in process list

I have a bunch of redis service instances, and I would like to add a label to them in the output of the ps command. Currently I see: $ ps aux | grep redis root <snipped> ...
6
votes
0answers
34 views

What should be the buffer size for the sort command?

I have a machine with 2 TB of RAM and I am running a sort command on a file of size 150G where I have specified the buffer-size as 1000G, after doing my bit of reasearch on google, I got this piece of ...
0
votes
0answers
20 views

Why does Android crash when stressed on Memory where as GNU-Linux keeps running?

I have two devices, an Android phone with an eGlibC stack running side by side with Bionic, and an old HP tower with Debian. My HP tower has 512 MB of RAM. My phone has 2GB of RAM. I run top on ...
2
votes
0answers
20 views

Enable BFQ in Fedora

I am running Fedora with the stock kernel and I'd like to enable the BFQ disk I/O scheduler, and ideally BFS. I have built my own kernel and that works, though it is a royal pain dealing with the ...
2
votes
1answer
38 views

What package has GNU sed for Solaris?

I need to use the features of GNU sed, instead of the built-in version under Solaris 10. Which GNU package contains it? I don't see it listed in the coreutils, and my Google searches haven't helped ...
2
votes
1answer
30 views

rpm macros on CentOS 6.5

Trying to create a spec file for a CentOS 6.5 system. The rpm should check release to add specific Requires: lines based on the OS version....and it doesn't work at all: Spec file snippet: %if ...
0
votes
2answers
43 views

Trying to SSH to local VM Ubuntu with putty

I have found similar questions in my searches here, but most of the answers are way above me at the moment, so here goes. I have set up a VM of Ubuntu server, have installed OpenSSH, and am now ...
0
votes
0answers
7 views

Plasmoid - connect KDE signal with QML UI

I'm working on this small KDE plasmoid and I really like the QtQuick/QML, but now I have this requirement. I need to do an action when a window is shown or closed in KDE. KDE API have signals for ...
3
votes
0answers
28 views

Stop init.d from running, and go to terminal prompt

I'm running Rasbian (Debian?) on my Raspberry Pi, and have allot of auto-starting things in init.d. But what if I want to stop them all from running, and simply break into a terminal prompt? I've ...
3
votes
1answer
36 views

How do I use sudo to run multiple commands as another user within a portion of a script?

I'm trying to run the following: if [! -f .owner ]; then creator=$(whoami) sudo -u appuser ksh echo "$creator" >> .owner mkdir test1 test2 test3 exit fi However, the ...
2
votes
1answer
17 views

Virtual Host only works when SELinux is set to permissive - why?

Wondering why my virtual hosts will only work when SELinux is set to "permissive". When SELinux is set to "enforce" my virtual hosts are ignored and default host is shown. Apache/2.2.15 (Unix) Here ...
0
votes
0answers
27 views

Run root script or command as root in startup application in linux mint

I have a wireless adapter that used to work in Linux mint 16 (dwa 171) after installing drivers for it. Now it won't work the same way anymore since I upgraded to linux mint 17. I've found the only ...
4
votes
3answers
40 views

Cronjob to run script every 3 weeks on Wednesday

Is it possible to schedule a cron job that would run every three weeks on Wednesday (8AM) only? Or, if that is not possible, to run a job every 27 days or less but on Wednesday at 8AM.
0
votes
0answers
11 views

Can't execute server messages outputed when printing to laser 3 on openSUSE

This is my 1st post and I have a sporadic printing issue I'm needing some help with. I have 3 laser printers setup on my secure network; all ping on different IP addresses; 2 of which are printing ...

15 30 50 per page