1
vote
0answers
388 views

How is a username determined and can I hide the domain component in a winbind username?

Someone asked a question on Server Fault about a problem which I'm also having but no one has answered it so I'm posing a slightly different question to try and figure it out myself. I've configured ...
6
votes
4answers
6k views

Random restarts caused by a machine check exception

My laptop restarts randomly about twice a day. It shows the following error log before the restart. . Unfortunately I don't have an idea how to decode the Machine Check Exception (MCE). mcelog --...
2
votes
0answers
150 views

Why does the kernel boot faster with less memory allocated?

This is not a important question, I'm just curious. Something strange happened, which isn't quiet clear to me: In the kernel command line, the amount of the memory can be set statically with the mem=...
3
votes
3answers
826 views

Unicode text doesn't appear correctly in shell

I'm using the terminal in Kali Linux and I try to type Arabic text the characters are shown but separated (appearance not correct) This what my shell shows me ex. لا ا ل ه ا لا ا ل ل ه, which should ...
0
votes
1answer
319 views

Re-installing Fedora 20: are automatic partitions safe to use?

I intend to re-install Fedora 20 on a new computer as I am having a lot of trouble with the installation done by the vendor of the computer. It is a dual boot machine with a small Windows XP3 ...
3
votes
1answer
2k views

Memcache 'stats' reports non-zero 'curr_connections' - but lsof shows no socket connections

Our memcache daemon reports non-zero 'curr_connections'... $ telnet memcache-server 11211 Escape character is '^]'. stats ... STAT curr_connections 12 ... ...and yet, lsof shows no socket ...
0
votes
2answers
48 views

Shell script to format logs

Requirement : I need to write a script to find out for which API the request has been sent but no response received. Given below is an example of the logs i'll be working with. 2014-02-28 12:06:16|...
1
vote
2answers
469 views

Why are bash tests so picky about whitespace?

As a primarily Java programmer, I find the bash if-then construct quite confusing, especially regarding whitespace. Can anyone explain why the first one works, but not the second or third? #works if [...
1
vote
0answers
392 views

Font rendering - weird artifacts in gnome shell rendered texts

I'm using a unpatched freetype (recompiled to enable subpixel-rendering) on Fedora 20 to render fonts. I used to use the Infinality patch-sets but did away with that recently because it feels very ...
0
votes
2answers
363 views

How to extract submatches from a string and write those to a file?

I want to parse a string for specific submatches and output those - one submatch per line - into a file. Essentially I would like to extract the value of each href-attribute: $ cat Fin <a href="a....
2
votes
2answers
3k views

Move /var to different partition

My disk space on the / partition is very limited. As there are other partitions available I'd like to move /var to /differentPartition/var. The simplest solution coming to mind is just moving the ...
0
votes
2answers
413 views

How can I replace the default kernel with an earlier kernel?

I am working on petalinux, Linux for xilinx FPGAs. The source code is here This Linux is having 3.x kernel, and I have been asked to change the kernel to some earlier release version. What are the ...
2
votes
2answers
2k views

How to close all apps before X-server goes down?

I'm using debian testing OS and openbox WM. Moreover, I start X-server via the .xinitrc file, which has the following content: xrdb /home/morfik/.Xresources exec ck-launch-session dbus-launch --sh-...
2
votes
1answer
437 views

Wireless network AND dhcp wired server

I have an ubuntu server, which automatically connects to a wireless network on startup. This is achieved through /etc/network/interfaces: auto lo iface lo inet loopback auto wlan0 iface wlan0 inet ...
3
votes
1answer
3k views

Reproduce the “--max-depth=” switch for disk-usage command on AIX

When I work on Linux/GNU distro environment I often use that wonderfull command du --max-depth=1 / That gives you the size of each folder in your root directory. Today I work with AIX and ...
1
vote
0answers
246 views

Wine and mime type association backup and restore

I'm going to replace Ubuntu with Arch Linux on my laptop and I want to reformat it. But I want to save ma wine prefixes as I have installed some windows programs that I need. I have gzipped my .wine* ...
1
vote
2answers
699 views

confusion about mount options

I feel confused about mount options such as: --bind, --make-unbindable and --make-shared and could you please help me explain the below commands? sudo "mount --bind #{vm_bind_mount} #{vm_bind_mount}" ...
2
votes
1answer
2k views

How to apply du (f.x.) to all sub directories except for some of them?

./a |-/bx1 |-/by2 |-/bz3 |-/bx4 |-/by5 Now I want to apply du to all sub-folders except for /by2 and /bx4. I can make it happen for one folder: du --max-depth=1 --exclude=./by2 but not for ...
2
votes
1answer
621 views

Creating a linux user with limited privileges for ssh tunnelling

I am following this post to create ssh tunnel to mysql. The details description of my application scenario is given in my other SOQ. I exactly followed these steps to create a user: useradd -s /bin/...
0
votes
2answers
655 views

Using grep to find first two numbers of IP addresses?

I'm trying to figure out how to use grep to pull out only the first two numbers of an IP address in a list. I've got a routine that is isolating the log entires (from Exim) that I need, now I just ...
2
votes
1answer
975 views

debian: remove all packages installed on a specific day

I have to remove all packages installed on a specific day. My solution is to look up the file /var/log/dpkg.log, find out the entry with the right date, extract the names of the packages and remove ...
0
votes
1answer
58 views

text replacing in data file with peculiar spacing

I have a text (.qdp) file with many data stored. In some rows, the data are too many to be on just one line. Then, the program that saves the data, use a minus sign (-) to go on the new line, and ...
1
vote
1answer
177 views

sending mail using telnet [closed]

I'm trying to send mail via the telnet command. I've looked at several tutorials online to use telnet <servername> 25. But I've tried telnet mail.aol.com 25 and it gets stuck on trying <...
1
vote
1answer
296 views

Understanding ls -l output

When I run ls -lrt command on a Unix folder , I get the following output MyServer> ls -lrt total 10 drwxr-x--- 3 UnixUser other 512 Jul 22 2011 FolderA lrwxrwxrwx 1 UnixUser other ...
3
votes
3answers
20k views

How can I remove the text from a line after a certain character with awk

How can I use awk to remove all text after a certain character ";" that appears on every line of my text file? (I then need to run for loops on the text) Jenny,Sarah,John;North Dakota Henry,Frank;...
1
vote
1answer
359 views

How can I find out what options sudo is configured with?

Often when debugging issues with sudo I'll look at the options in the configuration file /etc/sudoers. However it can be difficult to know what options are enabled by default, since they're built into ...
1
vote
0answers
352 views

Ulimits and pam modules

Can you explain me the relation of ulimit setting on a proccess and line session required pam_limits.so in pam module. In wich modules i really require this line? I have this line in pam.d/su ...
0
votes
1answer
681 views

Dell D610 6.5 CentOS Installation - Undetected Network Adapters

I've spent the better part of the day attempting to install CentOS 6.5 on an older Dell D610 laptop, using everything from a Minimal Install to the Full DVD. After multiple attempts I was able to ...
1
vote
2answers
943 views

will tail with piping read whole file?

I want to read a big log file with 10000 lines everytime. and I use this command: tail -c +offset somefile | head -n 10000 my question is, with the piping of head, will tail read the whole file? ...
-1
votes
1answer
992 views

ffmpeg not found [closed]

As I had to install my system from scratch I decided to play it safe this time around and follow the documentation for compiling ffmpeg on Centos via the ffmpeg.org site. I followed every command line ...
1
vote
1answer
481 views

How do I set up a PostScript print queue to share a PCL laser printer and add PS fonts?

I would like to take a $100 PCL-compatible laser printer and hook it to my home network either through Wi-Fi or by connecting it directly to a Linux server by USB. Instead of using the manufacturer-...
2
votes
3answers
347 views

List all word pairs that appear in a line together in a file

How can I use awk to run through a file written as: Sarah,Masha,Helen Connor,Jessica,Jennifer,Candace Betty,Sarah,Helen John,Harold,Frank,Daisy and put out all pairs that appeared in a line ...
1
vote
2answers
87 views

Automated test for install script

I'm writing an install script for an appliance that modifies system config files under /etc (amongst other things). How can I test this script non-destructively? Ideally I would like to run the ...
2
votes
1answer
545 views

How not to connect to disabled networks when no configured network is available

How can I make wpa_supplicant not connect to expressly disabled open networks when no configured network is available? (How can I make it not connect to anything whatsoever?) This happens when my ...
1
vote
2answers
210 views

Fastest way to create a file of 1MM unique nanosecond timestamps

My current (slow) example is this: for i in {1..1000000}; do echo "$(date +%s)$(date +%N)"; done > 1m-example.txt Hopefully there's a better way. It's crazy slow.
0
votes
1answer
1k views

CentOS 6.5 nmblookup not found

After installing Samba (yum install samba) on a fresh CentOS 6.5 install, I cannot run nmblookup ("command not found"). I also tried searching the file system and could not find it anywhere.
6
votes
2answers
226 views

What's the story behind command file's suggestion?

While I'm reading file(1) I noticed this in the man page (emphasis mine): When adding local definitions to /etc/magic, make sure to preserve these keywords. Users depend on knowing that all the ...
1
vote
0answers
433 views

Install Linux without USB or DVD?

I was wondering if there was a way to install Crunchbang on to my spare 1TB partition without using a USB or DVD while booted in Windows? I've Googled this plenty of times, but it usually just comes ...
3
votes
1answer
202 views

Is it possible to get file list, byte range from the head of a tar+bzip2 file?

Essentially, I'm hoping someone with an advanced knowledge of tar/bz2 can answer whether this is possible. The situation is that we have a periodic 24GB feed of data from a vendor, as a .tbz file. (...
0
votes
1answer
276 views

Linux drivers for Ricoh Aficio SP 100SU

Does anyone have a driver for the Ricoh Aficio SP 100SU on Linux? Any directions to correctly install it and have the printer work?
1
vote
2answers
946 views

Newly installed arch linux problems

First off, I've installed arch before, but managed to not encounter any of the problems I'm having at the moment (not sure how). But I'm well and truly stuck. First, my network interface is now called ...
0
votes
1answer
39 views

Linux Arch Unity not writeable settings

I am running Linux Arch with KDE till yet. Now I want to move to Unity because of some personal favors. I used the tutorial proposed in the arch wiki for installation (the recommended way using the ...
2
votes
1answer
119 views

Using FACLs to restrict default group but allow others

So, I'm running RHEL 6.x with acls enabled, etc. and I've been fighting this ACL issue for a bit now and I can't seem to get it down. I'm trying to make it so that: /var/www/html/* are owned root:...
2
votes
1answer
145 views

In zsh, how can I dump all configuration?

How can I print my current configuration including defaults and key bindings? This would allow me for example, to find what action is bound to say ^P in emacs mode and find binding in vi mode or set ...
0
votes
1answer
46 views

curl does not return any thing for protected file

I have a file on the server that is HTTP Head password protected, but when I tried to get the page the command returned with nothing at all: curl --user username:password http://mysite.com
28
votes
3answers
9k views

Where are filenames stored on a filesystem?

Where are filenames stored on a filesystem? It's not in inode or with the actual file content since we have hard link that two filenames can point to the same inode.
0
votes
1answer
506 views

How to make a Fedora respin that has a custom program icon on its desktop?

I want to create a Fedora custom Live DVD that ships with an icon to a custom program (not in any repository, it's something I made) appearing on the desktop, ready to be executed by the user as soon ...
7
votes
2answers
790 views

How do I only undo pasted text in vim?

TL;DR; version - How do I undo text that was pasted in from my OS copy buffer without undoing other text that was typed in since I went into insert mode? Longer description: Put something in your ...
1
vote
0answers
33 views

Execute command when mouse is pluged/unpluged on GNU/Linux

Is it possible to have something like event handler for plugging unpluggig a mouse in Unix System? I want to have a script that will enable/disable touchpad but not only on startup (you can find ...
0
votes
1answer
307 views

understanding lsof -i output with web browsing

Sorry, if my question is nooby, but i don't understand some output lsof command. I try to run lsof -i on my home machine(debian linux) and what i obtain (showed one line; my browser chromium was ...

15 30 50 per page