0
votes
0answers
1 views

how to write a udev rule to remove a tag?

Is it possible to write a new udev rule that undoes TAG+="uaccess" (removes the uaccess tag) without undoing any of the other tags on a device? If so, how? (I have a device that should be opened by ...
0
votes
0answers
6 views

Pass arguments to a command run by another user

I have a bash script that is supposed to take some arguments and then run in a different user: test.sh #!/bin/bash sudo su user2 <<'EOF' echo $1 EOF However it prints blank: $ ./test.sh ...
0
votes
0answers
4 views

Running proprietary firmware in virtualized environment, but not in host environment

I've got a fresh install of Debian Wheezy on my laptop, and for security reasons I would like to not have any proprietary firmware running on this system. However, I require the iwlwifi non-free ...
1
vote
0answers
9 views

Is it possible to run the 2.4 linux kernel and RTLinux 3.2 on modern hardware?

I have software written for kernel 2.4 and RTLinux 3.2, but the old hardware started breaking. The software is huge and complicated, so rewriting it for modern hardware is most likely not going to ...
0
votes
0answers
9 views

Linux Mint Partition Taking Hours

I booted my Mint 17 install cd, chose English as my language, then connected to the internet, then chose to change half of my FAT32 partition (~160.6 gbs) into Linux Mint. Now it's been partitioning ...
1
vote
0answers
3 views

Disable HDMI Audio Output if it is not plugged in

I am using Fedora 20 on a Dell Precision M3800. When i'm in the office, i wanna use my Bluetooth Headphones. When i'm at home, i'm using often my Sony TV as my second Display(via HDMI). When i'm at ...
4
votes
1answer
12 views

How can process doing “vfork without exec” end up in a long uninterruptible sleep?

In this answer user suggests that Normally, Uninterruptible sleep should not last long, but as under windows, broken drivers or broken userpace programs (vfork without exec) can end up sleeping ...
1
vote
2answers
11 views

open tab in gnome-terminal

I ran gnome-terminal --working-directory=$DIR but it opens in a new window, not tab. Things I've tried: --tab -T --add-tab Running RHEL5 with zsh
3
votes
1answer
20 views

How do I remedy SELinux not allowing legit programs in use access to my system?

I have a system where some programs are getting access denied in SELinux when performing their duties. These programs are ClamAV, fail2ban and Logwatch. I think I've managed to allow all the access ...
1
vote
0answers
7 views

Firefox/Icecat: SQLite Version Error: The application has been updated, but your version of SQLite is too old and the application cannot run

System is Fedora 20. I used Firefox, then closed it, wanted to open it again and the above messages occured (mind you that between the last updates and the error, I restarted my computer at least ...
1
vote
1answer
29 views

Why does FreeBSD require terminal programs to be started as root?

On FreeBSD all graphical terminal programs (e.g. xterm, rxvt) seem to be installed setuid root, or with setuid root wrappers. On Linux, this is not the case on any distribution I have ever used. Why ...
1
vote
0answers
10 views

Bluetooth troubles with AR3012 on Gentoo

I'm using Linux 3.14.14-gentoo with BT_ATH3K enabled. I've downloaded the latest linux-firmware from portage (20131230), and bluez-5.21-r1. My Bluetooth device is an AR3012 according to lsusb: Bus ...
0
votes
0answers
9 views

Should I use the discard flag when configuring the filesystem to be installed over the partitions on my SSHD?

I've recently bought a laptop with an SSHD. My guess is that most SSHDs are self-optimised, so the disk itself will handle wear-levelling issues, and I won't need to add the "discard" flag when ...
5
votes
2answers
99 views

Reindexing a large CSV file

I went through the answers in this helpful thread, but my problem seems to be different enough that I can't think of good answer (at least with sed). I have a large CSV file (200+ GB) with rows that ...
2
votes
1answer
13 views

xprop motif_wm_hints hides firefox

I want to hide/show the title bar of a window with a key shortcut. So I got this script from a website (of which I don't have the URL anymore): #! /bin/sh -x winid=$(xprop -root | awk ...
0
votes
1answer
50 views

Accidentally rm -r the wrong etc folder… Help? [duplicate]

Well as you can see from the title I managed to accidentally rm -r the wrong etc file in Ubuntu 14.0.4 Desktop. I also decided I would set up encryption on my home folder (Another mistake). Is there ...
0
votes
1answer
25 views

IP access okay but ping dosen't work

I have a laptop connected to a Wi-Fi, and let's say I am testing the connection to a website ("randomwebsite.com", IP:123.123.123.123) Through a terminal I have tested ping: ...
1
vote
1answer
10 views

Empty kernel processes on CentOS vps : 2 different servers

I'm not sure I'm asking correctly, or perhaps I'm just looking at the wrong things. I'm migrating from one CentOS Vps (on an OpenVZ box) to another CentOS VPS (on a VMWare box). VPS #1 = CentOS ...
1
vote
2answers
15 views

How to remove nodes from a HUGE (>2gb) XML file?

I'm working with several huge (>2gb) XML files and their size is causing problems. (My application uses XMLReader in a PHP script to parse smaller ~500mb files, and that works fine, but XMLReader ...
0
votes
0answers
16 views

Is it possible to install gtkdialog on solaris syste

Is it possible to install GTKDIALOG on Solaris system?? If somebody has it, let me know
0
votes
0answers
45 views

what is hexa dump and how to handle in unix?

I am trying to extract some portion of text from the file by using awk command, The file is separated by comma. awk -F, '{print $1 FS $3 FS $6}' sample.csv But always I am getting wrong output , ...
4
votes
3answers
99 views

Add leading zeros until all lines before the comma consist of nine characters and subsequently insert a character every three digits using sed

The aim is to add leading zeros until all lines before the comma consist of nine characters and subsequently insert a character every three digits using sed. Input 12345,1s4c3v6s3nh6 ...
0
votes
0answers
34 views

Text replace literally *all* instances of a string through stdin, stdout

Linux, or specifically Ubuntu 14.04 LTS Server if necessary (and CENTOS 6.5/7 minimal would be nice). If I enter "FOO" at the command line, (regardless of whether as a word or as a substring), I'd ...
0
votes
1answer
23 views

Uuencode displaying attachment content in email body

I am using uuencode with mailx to attach a zip file. In following code, the if block works perfectly and I get Deletions.zip as an attachment in the email. But, whenever the else block is executed I ...
2
votes
3answers
75 views

Use AWK to pad date and time formats

I would like to use AWK to pad the date and time fields in my report. Here is my current .csv that is actually tab delimited. AA 9/7/2014 2:30:38 PM AA0000011111 08 Y A Jane, Doe AA ...
1
vote
1answer
11 views

What are these %(…)s strings in fail2ban's jail.conf file, and how do they work?

In setting up fail2ban there are what appear to be variables at the top of the jail.conf that look like this: mytime=300 . . . [ssh] bantime=%(mytime)s Or in this more complicated form like this: ...
0
votes
0answers
10 views

How to specify Linux home directory and shell on a Samba Active Directory server?

This question relates to SAMBA version 4 when used as an Active Directory Domain Controller. I have everything set up to allow domain users to log in to Linux. However, I have been searching for ages ...
0
votes
0answers
26 views

How to get diff for HTML reports?

echo "New defects" echo "===============================" n=0 def_num=0 while read line; do n=$((++n)) if echo $line | grep '^[[:space:]]*>' &>/dev/null; then if [ $(($n % ...
1
vote
2answers
28 views

Unzipping a .gz file without removing the gzipped file

I have file.gz, when I try to unzip this file by using gunzip file.gz, it unzipped the file but only contains extracted and removes the file.gz file. How can I unzip by keeping both unzipped file and ...
2
votes
0answers
13 views

How to locally validate DNSSEC?

I want to simulate the process of chain of trust validation locally , I do the following :- 1) signed my zone. 2) unbound installed , but i can not configure it for DNSSEC validation could you help ...
1
vote
0answers
20 views

tput command + how to locate dialog window on the top of the screen

Is it possible to use the tput command in order to place the dialog window on the top of the screen ? For example The following dialog command display the log is running by tail command dialog ...
1
vote
1answer
14 views

Numeric sort by the column values

For example I have some test file and want to sort it by the column values. After awk -F'[:,]' '{print $16}' test.json I get next output for the column 16: 123 457 68 11 939 11 345 9 199 ...
1
vote
0answers
10 views

Is there a Linux capabilities(7) to allow a process to execute pam_authenticate?

I am writing a process that needs to periodically authenticate users (i.e. call pam_authenticate()). For security purposes I would prefer not to run this process with root privilege. I can use ...
1
vote
0answers
22 views

Mount cifs using a credentials file

I am trying to mount a folder from my embedded Linux system to a windows 7 computer. I keep getting Permission Denied when I try using a credentials file. When I do it from command line as root it ...
1
vote
0answers
7 views

How to delete a virsh pool without volumegroup?

I created a Volume Group Pool via virsh. virsh pool-define-as vg1 logical --source-name vg --target /dev/vg Bad thing is, that /dev/vg does not existent, I made a typo. I tried to delete the pool ...
0
votes
2answers
14 views

How can i recreate the YAST GUI in text file

I am new to Linux, have an OpenSUSE vm and want to profile the applications installed. I know i can do a RPM cmd and ls {PATH//: /} seems to return a long list although it is full of non-application ...
1
vote
2answers
33 views

Output piped content to file and show number of lines in the file on stdout

I would like to use tee to pipe content from stdout and stderr respectively into files (in fact append it with > >(tee -a $filename)). However, instead of seeing the contents appended to the ...
1
vote
1answer
11 views

Linux kernel patch and development source tree

We are using linux3.12 and its led driver has a bug which got fixed in later version of Linux. We see that driver change in Linux 3.15 see Linux Cross Reference Now my question is how can I find a ...
3
votes
0answers
11 views

Ignore brief mouse click/releases

The switch contacts in my mouse are going, and rather than open it up yet again and clean them or try to hunt down a replacement switch (or buy a new mouse) I would like to solve this problem via ...
1
vote
1answer
26 views

Linux: Locating text file from a string input

I have started to use Linux and I'm practicing using/making codes to locate and do things. I need help with code that locates any file from a string of input. I don't know where to start?
8
votes
2answers
165 views

Having a problem with a shell script counting characters

I'm trying to learn the basics and I have run into an issue with my script counting the characters of a user's input. Here is my script, can someone point out where I'm going wrong please? ...
2
votes
3answers
34 views

Copy files by date/time order contained within filename?

I have a bunch of files with a pattern like this: {UID}-YYMMDD-HHMMSSMM-NEW.xml Or a real example: 56959-140918-12465122-NEW.XML I want to copy these files to another directory in date and time ...
0
votes
0answers
29 views

cannot mount W95 FAT32 (LBA) partition type in ArchLinux

I am trying to mount W95 FAT32 (LBA) partition type into /mnt/data on my Raspbery Pi B+. Therefore, I've created this parttion and the current partition table is as follows: I've checked ...
2
votes
2answers
48 views

bash how to remove options from parameters after processing

I remember having seen somewhere a bash script using case and shift to walk through the list of positional parameters, parse flags and options with arguments when it encounters them, and removes them ...
1
vote
0answers
19 views

Testing DHCP range; multiple addresses per interface

I set up a DHCP server; I have a range defined, for ~1k hosts. Is there a way to test all the addresses? This is the first time I have a task like this and I would like to know what will happen when ...
0
votes
1answer
25 views

Cannot change dir while connected to Archlinux vsftp server [on hold]

I have Raspberry Pi B+ with Archlinux installed. I've installed and configured its vsftpd ftp server and I connect to it from WinSCP (running on Windows 7 PC). I would like to upload some file, but I ...
2
votes
2answers
29 views

Connecting Linux Mint to WiFi network

I just installed Linux Mint 17 (MATE) on an old laptop and everything works amazing, however I can't seem to get it to connect to my WiFi network. All my other computers can get access, plus, before ...
3
votes
1answer
121 views

Putting Files in Ascending order (not on time stamp basis) in Unix [on hold]

How do I list files in Ascending manner, not on time stamp basis. EX:- Original listing A_2001 A_2002 A_2003 A_2004 B_2001 B_2002 B_2003 B_2004 Desired output:- A_2001 B_2001 A_2002 B_2002 ...
4
votes
5answers
122 views

Clone directory tree structure and copy files to the corresponding directories modified after a specific date

I have a folder with more than 30 sub directories and I want to get the list of the files which was modified after a specified date(say sep 8 which is the real case) and to be copied with the same ...
3
votes
4answers
31 views

How can I get the first match from wildcard expansion?

Shells like Bash and Zsh expand wildcard into arguments, as many arguments as match the pattern: $ echo *.txt 1.txt 2.txt 3.txt But what if I only want the first match to be returned, not all the ...

15 30 50 per page