2
votes
0answers
21 views

VNC-Server as a virtual X11 monitor

From a currently running X11 session, I would like to provide run a VNC server such that it appears to my system as a second, “virtual” monitor – i.e. so that I can position it using xrandr and the ...
1
vote
1answer
26 views

Getting driver for windows HW

I've asked this question on Ubuntu but didn't get any hint, so I'm trying here I've a wireless adapter LINK, the problem is that I've only got a windows drives for this device, but I really need it ...
2
votes
1answer
28 views

Flat view of directories

When I was in windows I used to use Total Commander as my file manager. There was a function called "Branch view" (Ctrl+B), which basically showed all the files within a particular directory including ...
1
vote
1answer
22 views

How to allow pam radius module in centos for user's password as well as one time password

I have a problem with the PAM Radius module. Actually, I have it installed already under CentOS. I've inserted the line: auth required /lib/security/pam_radius_auth.so in /etc/pam.d/sshd and ...
0
votes
0answers
13 views

Debian, ActiveDirectory and Password

I have joined a Debian Wheezy to a Win server 2003 with Active Directory, following this guide: Everything goes well except for the password change. I am not able to change the password of my domain ...
2
votes
1answer
25 views

nginx send log to remote syslog server

I wnat to send nginx access log to a remote syslog-ng server. I installed syslog-ng on each side (server-client). Client: 10.10.10.2 Server: 10.10.10.1 Some log files (messages,syslog,mail.log) are ...
0
votes
0answers
11 views

Nginx multiple locations

My nginx configuration is set so that every request on a certain server block are forcefully rewritten to https, using a location block like this: location / { rewrite ^(.*) https://$host$1 ...
0
votes
0answers
14 views

How to install and run oracle 12c in oracle linux 6.5?

I was trying to install oracle linux 6.5 from this link. I downloaded the OracleLinux-R6-U5-Server-x86_64-dvd . Now while installing I didn't get any GUI as the link said I would get after test/skip ...
3
votes
3answers
155 views

Having an issue searching for a string in a file

I have tried to use a 'case' loop but it doesn't work for a reason unknown to me. This is my script for the case loop. echo "Do you wish to search again? [y/n]" read INPUT_STRING2 case ...
2
votes
0answers
31 views

How to get Eclipse workspace selection dialog back to front?

I'm using Eclipse Luna with Ubuntu 14.04. When I start Eclipse and switch to another task, before I select a workspace in the workspace selection dialog that appears right after the splash screen, I ...
-1
votes
1answer
100 views

Commands not found in shell script

I need to execute scp command without using expect command in script. How to use scp with password? I have tried with following code. HOST=lnx1 USERNAME=user PASSWORD=pwd PATH=/sample/data/ FILE=$1 ...
0
votes
1answer
19 views

Execute file with certain PHP version

I need to execute a PHP file with another PHP version as installed. I know the full path to the other versions, but I do not know how to use it. I have read the PHP man page but there is no mention ...
0
votes
1answer
34 views

The sorted file is not saved correctly [on hold]

If I sort a file, I want save it in the new one. I use for this just: sort -nk{fieldnumber} test.json > testsort.json In the output the columns are shuffled and the column, which I have sorted, ...
0
votes
3answers
125 views

bash find using variable

I have an issue I don't understand. It is simple and it should work, but it doesn't. =EDITED exactly what I can see from terminal= I have a list of filenames: [molni@archlinux picasa_album]$ cat LIST ...
0
votes
0answers
27 views

Is it possible to set the users .gitconfig (for git config --global) dynamically?

I have the problem, that we login to the systems as our own users johndoe and then have to do a sudo su - root to be able to do administrative tasks. We have the system config files in a git ...
1
vote
2answers
13 views

Sharing Apache-httpd documents across multiple Linux distributions?

I'd like to be able to have multiple distributions, say Fedora and Debian, both sharing an Apache DocumentRoot. For example, I could have the same partition mounted to /var/www in both distributions. ...
1
vote
5answers
55 views

Rename a portion of multiple files

Take a number of files named: data_a_LT.fits data_a_LT.coo data_a_LT.ec data_a_LT.grp I want to replace all "a_LT" with "LT_A" such that I have: data_LT_A.fits data_LT_A.coo data_LT_A.ec ...
0
votes
0answers
51 views

How to make Intel fake RAID 0 volume appear on boot with Ubuntu 14.04 in a multi-boot environment?

I have a computer with a Gigabyte GA-Z97N-Gaming 5 mainboard, a 256 GB drive for booting and two 3 TB drives meant to use in a RAID 0 setup with both ext4 and NTFS partitions. We are planning running ...
2
votes
1answer
35 views

how to execute a shell built-in if find found certain files

In general, if we want to execute a command if find identifies files corresponding to certain specs, we can use -exec. But in my case I want to exit the shell/script if find found a match and -exec ...
2
votes
2answers
33 views

How do you deal with unreliable NTP peers?

I ran lynis 1.5.6 and got the following log message. Performing test ID TIME-3120 (Check unreliable NTP peers) Test: Checking unreliable ntp peers Result: Found one or more unreliable peers (marked ...
0
votes
0answers
36 views

Neither `less` or `less -X` clear screen on exit

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
4
votes
1answer
18 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 ...
1
vote
2answers
36 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 ...
1
vote
0answers
30 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
17 views

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

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
17 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
20 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
25 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
16 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
42 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
12 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
40 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
25 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
19 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 ...
8
votes
2answers
219 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 ...
1
vote
0answers
24 views

xprop -set _MOTIF_WM_HINTS hides maximized window

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
66 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
31 views

IP access okay but ping doesn'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
12 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
33 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 ...
-2
votes
1answer
45 views

Is it possible to install gtkdialog on solaris system

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

what is hexa dump and how to handle in unix? [on hold]

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
116 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
52 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
29 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
82 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
12 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
1answer
23 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
28 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
38 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 ...

15 30 50 per page