1
vote
2answers
478 views

Remove other linux installation on same hard disk

I have the following setup: [phil@thinkpad ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 238,5G 0 disk ├─sda1 8:1 0 52,3G 0 part ├─sda2 8:2 0 111,8G 0 part /...
2
votes
2answers
728 views

don't log cron events in auth.log

In my /etc/rsyslog.conf, I have the following line to log the auth facility into /var/log/auth.log: auth,authpriv.* /var/log/auth.log but the file is flooded with cron logs, such as these:...
0
votes
1answer
74 views

Apache serve a web page in different languages

I want to serve a web page in different languages depending on where the user comes from. Eg. www.mysite.com/fr if the user is from France and www.mysite/es if the user is from Spain. Also it would be ...
8
votes
2answers
9k views

How to tell whether RAM ECC is working?

I'm planning on getting some ECC RAM to replace the non-ECC RAM I currently have installed on my Asus M5A97 Pro motherboard (AMD 970 chipset, FX-6100 CPU). After I install the RAM, how do I tell ...
1
vote
2answers
1k views

Simple server that triggers script and responds

I need to have a very simple server running that can: Take rest call. It triggers a script when a call is made The script checks if database is running or not. If running then reply back to client ...
3
votes
1answer
129 views

move the search content to different directory

I am on Oracle Solaris. I am using: grep "searchstring" filename.* above command returns my search result. Now I want to move the all the files in above search result (all the files not the ...
2
votes
1answer
234 views

How to set a callback to NFS to allow scripting?

The context I have two servers: a NAS and a client server. They are both small machines (Raspberry, OLinuXino) and are plugged to the same power strip (which has a power button). The client server ...
1
vote
0answers
243 views

What are the two head.S files in linux source ?

In the linux source there are two different head.S files located at: arch/arm/kernel/head.S arch/arm/boot/compressed/head.S What is the puprpose of each one and what is the order of there execution ...
4
votes
1answer
228 views

Is building Perl an inside joke or is it supposed to require this many `make` invocations?

So I am building Perl version 5.18.2 from source on an ARMv7 processor right now, a Krait on the Snapdragon S4, and I am not too sure how much support there is for such an architecture. By the way, I ...
2
votes
0answers
234 views

High varying discharge rate

I got an Asus N76VB notebook. On Windows I can easily stay on battery for 3-4 hours in powersave mode, but on Linux (first Ubuntu 14.04, currently Fedora 20) the battery's discharge rate varies from ...
0
votes
1answer
180 views

Password length and complexity

I am using CentOS and I want to set the minimum password length, minimum password expiry , maximum password expiry and password complexity in my system. I have looked over some tutorials to change ...
0
votes
0answers
3k views

Unable to mount cgroup

I've been searching for a solution to this problem but none was working. I would like to start my LXC container but i need to mount cgroup before. [root@stag-devCentOs ~]# lxc-start -n debianLxc lxc-...
-3
votes
1answer
614 views

Authentication failed [closed]

You have no controlling tty and no DISPLAY. Cannot read passphrase. warning: Authentication failed. Disconnected (local); authentication cancelled by user (Authentication cancelled by user.). ...
17
votes
3answers
34k views

Limit max connections per IP address and new connections per second with iptables

We have an Ubuntu 12.04 server with httpd on port 80 and we want to limit: the maximum connections per IP address to httpd to 10 the maximum new connections per second to httpd to 150 How can we ...
1
vote
2answers
694 views

How can I start a wine application at startup without login?

I want to start a wine application when system startup. However this app need a Xwindow environment. I could only launch it manually by hand now, so I have to login first then start the app. I have ...
1
vote
1answer
1k views

logrotate unable to rotate logs

logrotate is unable to rotate my logs. I have checked the file permissions, they are fine. I have even tried by putting "su root root" in the configuration file, still I am facing the same issue. ...
5
votes
1answer
23k views

How to get details of RAID devices both soft and hard?

I want to check if my server has RAID configured both soft and hard. I tried some commands on my server (Suse Enterprise Edition 11): **ms:~ # cat /proc/mdstat Personalities : unused devices: <...
3
votes
1answer
63 views

Is there a single '03 registered UNIX which can't do rm — -foo at this point?

I'm trying to dispel this uncertainty I have about the use of the double-dash (two hyphens, --) as an end of options delimiter(as opposed to a long option prefix). It's possible some confusion arose ...
2
votes
1answer
54 views

My iptables works the opposite from what I wanted

I have this set of iptables rules ... $ sudo iptables -n -L Chain INPUT (policy ACCEPT) target prot opt source destination LOG all -- 0.0.0.0/0 0.0.0.0/0 ...
62
votes
9answers
14k views

Why can't Vim open a 100 MB text file when I have 16 GB RAM?

I have a 100MB MySQL database backup file and I have trouble to open it in Vim on my Linux box that has 16G of RAM. Vim just hangs (at least unusable). This is something I don't understand. I have 16 ...
5
votes
1answer
2k views

Give user permission to rm without password or sudo

I'm trying to give the ubuntu user on my machine the ability to rm folders and files (mainly in the /www/ folder) without the need to invoke a password or the need to use sudo. I've been following ...
2
votes
1answer
69 views

Checking Boot Volume

Programmatically, how can I check whether the lun node is a boot volume or not (the lun node is created under /dev/ on Linux systems (such as RHEL or Ubuntu or any other linux flavour). To my ...
0
votes
1answer
278 views

user input not accepted in nested case statement

I am trying to create a nested case statement in which user input is expected (Y/N). However, the system never waits for the input and always goes to the third option, "Please answer yes or no". Can ...
7
votes
3answers
2k views

Weird SSH issue, ssh works with -t but freezes without it

When I ssh into one of my servers, it seems to log in, but then hangs before giving me the prompt (message debug2: shell request accepted on channel 0 is the last log entry). Though the odd thing is ...
20
votes
3answers
3k views

Tilde (~) inside working unix directory

So, Im working in a UNIX environment and I noticed that inside my working directory, which is miles miles away from my UNIX home, there is a ~. Now, once in the past, I did rm -rf ~ from my working ...
4
votes
1answer
1k views

Flash Player on Linux

I'm going to switch to Linux with my new computer. I've read something weird about Firefox not supporting Flash on Linux (Chrome seems to support it, but I wouldn't want to switch if possible). The ...
4
votes
1answer
374 views

Why do I need to insert the passphrase for an RSA key on a remote host after SSH?

From host B I can SSH various other hosts (C, D) without using any password as I put the public key in the correspondent authorized_keys files (in hosts C and D). From host A I can SSH host B (via ...
4
votes
1answer
1k views

How to investigate a random reset on TCP client port connected via loopback interface to a server

I have a test suite which initializes a server on the localhost and then runs thousands of stress tests which include starting and stopping clients connecting to this local server on same machine. I ...
5
votes
1answer
525 views

keep aliases when I use sudo bash

I have a Centos 5.5 server that has my own alias commands for my account. When I do "sudo bash" I can still use those aliases, I didn't have to add the aliases to the root bashrc. I have another ...
1
vote
1answer
2k views

NFS file owner(uid) = 4294967294, can't do much with my mount, How do I fix this?

I have a somewhat strange setup going on here, I have Android as the client and it's kernel does not support NFSv4, also my /etc/exports file on the server side has no NFSv4 style entries. I am ...
0
votes
0answers
2k views

Linux Mint 17 - Get Blank screen after login

I was trying to setup a dual monitor environment on my Linux desktop. I have an ATI graphic card and it was working correctly. It mirrored by default and I went into my AMD ATI Admin to enable the ...
1
vote
1answer
58 views

How do I obtain the kill signal / message / reason within a script?

I am using the following trap: trap OnExit EXIT And in my OnExit function I would like to capture all the info I can on what happened so I can write it to a log file. Id like to know who, why, how, ...
3
votes
1answer
5k views

Why is the PGID of my child processes not the PID of the parent?

So I keep reading everywhere that this command should terminate all child processes of the parent process: kill -- -$$ Using a negative ID with the kill command references a PGID and from the ...
2
votes
1answer
144 views

What modern terminal programs are still configurable per-invocation? [closed]

What terminal programs have the following characteristics? Unicode support geometry, fg/bg colours, other options settable from command line on a per-invocation basis actively supported Background:...
2
votes
2answers
29 views

Clone repos with a similar name

I would like to do something like: git clone https://github.com/meteor{A,B,C,D}test but bash does not convert the {} into an each. What am I doing wrong?
2
votes
1answer
2k views

How do I set up a OpenVPN server on pfsense

How do I set up a OpenVPN server on pfsense? I want to be able to VPN in from a labptop when I am on the road. I set up a openvpn server in the openvpn menu. I duplicated that NAT rules for the VPN ...
1
vote
1answer
223 views

Does Kate support HTML5?

I am editing a long HTML document in Kate, and I'd love to be able to "close" the parts I'm not currently working on. But this is a new document, and the highest level of modularization uses section, ...
3
votes
1answer
61 views

Can't create a+r file

Using Debian I am unable to create files that by default has read permission for all users. For example: # umask 0002 # touch test # ls -l test -rw-rw----+ 1 user user 0 Jun 25 18:18 test Is there ...
1
vote
3answers
785 views

List files in a directory with a certain extension

I created a file called ~/usrlibs.txt, which contains the number of files that begin with lib and end .a found in the /usr/lib directory. I tried: ls -l /usr/lib/lib .a | wc -w > ~/usrlibs.txt ...
3
votes
3answers
87 views

Reuse similar flags for multiple commands

Let's say I want to execute several commands with similar flags such as: du -sh / --exclude=/dir1 --exclude=/dir2 --exclude=/dir3/dir4 tar cvf archive / --exclude=dir1 --exclude=dir2 --exclude=dir3/...
0
votes
1answer
1k views

How can I prevent my wifi driver from going catatonic?

I'm using a Lenovo T430s with an Intel(R) Centrino(R) Ultimate-N 6300 wireless chipset. On certain wireless networks, I experience frequent wifi lockups, which require me to reload the wireless ...
3
votes
1answer
2k views

Run wc and display only the word count

I have been trying to create a file called ~/dictwords.txt, which contains the number of words found in the file /usr/share/dict/words. I already created the file then I removed it because I did it ...
3
votes
2answers
298 views

zsh completion - show more options than just the alias

I am trying to modify the behaviour of zsh completion and its menus. I'm stuck, and I've read so much documentation it's making my head spin. The following is only an example; I'd prefer answers that ...
12
votes
1answer
2k views

What's the difference between Primary Selection and Clipboard Buffer?

I am tweaking in Webkit-browser land in Linux and I come accross the terms "Primary Selection" and "Clipboard selection or buffer" very often. I want to understand what are they and what ...
2
votes
0answers
39 views

SSD seems full, but file system says otherwise [duplicate]

I'm running CentOS and have a 100GB Micron RealSSD P300. It appears that the drive is almost full, as noted by running df: Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 ...
4
votes
2answers
375 views

Installing from source - do I need to keep the extracted tarball directory

If I'm installing from source, do I need to keep the extracted tarball directory? So if I download the git tarball. I then do: tar -xvzf git.tar.gz This will create a git.x.x. directory, into ...
4
votes
1answer
226 views

Filesystems and Partitions

I have been reading up more on UNIX and have brushed up on different filesystems and partitioning HDs. In the book it mentioned that filesystems are very much different than partitions and one shouldn'...
2
votes
1answer
360 views

kmod-staging-3.14* on Fedora 19?

I use Fedora 19 (Schrödinger’s Cat) on most computers as I prefer it over others (I probably would use Fedora 20 if I could have Gnome 3.8 plus a few other packages). My problem is that I use kmod-...
5
votes
4answers
632 views

Help with “/usr/bin/stat: Argument list too long” error

I need to get the list of files(.log/.lst) present in a directory($logfolder) whose creation date is in a specific $year and $month stat --format='%y %n' $logfolder/* | grep "$year-$month-"| ...
2
votes
1answer
46 views

find -exec doesn't do what find output suggests [duplicate]

If I do this find: find ${TRIADS_DIR}/*.dc.results -path "*amblock/stats.*HEAD" -o -path "*amblock/stats.*BRIK" then I get what I expect in STDOUT: tp101.day1.dc.results/amblock/stats.tp101_day1+...

15 30 50 per page