2
votes
2answers
2k views

Debian Squeeze apt-get update issue with HWRAID repositories

I'm running an inherited Debian Squeeze server (read: I just got this new job and the server was setup by the last guy), and I'm having an issue on the apt-get. The error at the end that comes up when ...
3
votes
1answer
1k views

How to setup Kiosk type functionality in Linux mint cinnamon? [duplicate]

I'm using Linux Mint Cinnamon. I want to setup the computer to act as a kiosk, where the user can only really interact with Firefox in full screen mode. What is the easiest way to lock the machine ...
1
vote
0answers
113 views

fail to install kolab dependencies

I need some help. I'm trying to setup a kolab sever to be used by computer science students at my college, starting this fall. I had a bit of some trouble setting up ldap, bur after some experimenting ...
2
votes
1answer
96 views

What is this VIM plugin?

It's a modified vim bar that includes current path and current git branch. I've been looking around but couldn't find anything. Found in: https://github.com/w0ng/vim-hybrid
0
votes
2answers
314 views

Pg Dn key returns tilde (~)

When I hit Page Down in terminal (I'm using Ubuntu 12.04), strangely I get the ~ (tilde) character. This is annoying especially when I searched my command line history and decided to go to the bottom ...
0
votes
0answers
111 views

Mint15, 2 GeForce 450 cards cinnamon crashes

Just installed Linux Mint 15 fresh install, got 2 GeForce 450s w/ 3 monitors. Cinnamon crashes. I used the propriety drives so vmware would have hardware acceleration. I end up in fallback mode, any ...
0
votes
2answers
702 views

/dev/null-like automatic trash directory for file moves?

I can (redirect) textual output to /dev/null in order to get rid of it. This is quite handy because this way I can easily enable/disable it in my bash code. Now I have a script that processes files, ...
0
votes
0answers
179 views

Wifi-Hardware seems not to be enabled

in my MSI Wind-Box DC 110 I have this Wifi Chip: RTL8188CE (says the sticker on the chassis and the vendor told me that they are sure the device is implemented) and I cannot connect to any Wifi - ...
2
votes
2answers
655 views

how to convert multiple txt to CSV with field data separated by blank lines

I have some data in multiple text files where fields are separated by blank lines. There are only 4 fields but in the second field there are more subfields, could be three or more. The first field is ...
1
vote
2answers
256 views

Can one use a md-type raid-0 as a drive for zfs pool

I want to play with ZFS at my CentOS. At the moment I have two 750Gb drives and two 400Gb spare drives that I could use. Of course the simplest solution would be to take all of them and use only 400Gb ...
1
vote
2answers
53 views

Non-English Font

After changing keyboard layout by setxkbmap,If I typing something in an GUI apps, then it results in blank squares or dotted circle. Is there anything I am missing in LFS OS
1
vote
1answer
750 views

Openvpn clients can not access to LAN

Openvpn: clients connected to server = firewall; but can not access database in LAN I have 5 vlan: vlan 2: 192.168.12.0/24 vlan 3: 192.168.13.0/24 vlan 4: 192.168.14.0/24 vlan 5: 192.168.15.0/24 ...
1
vote
1answer
74 views

strange behaviour of strings command [duplicate]

I am trying to capture mysql traffic and pass those traffic to strings command as follows: tcpdump -i any -s 0 -l -w - dst port 3306 | strings This is working as expected and printing all mysql ...
7
votes
6answers
23k views

How to compare two dates in a shell

How to compare two dates in a shell script? For example something like todate=2013-07-18 cond=2013-07-15 if [ $todate -ge $cond ]; then break fi It doesn't work. ...
6
votes
3answers
3k views

What are .in files?

Sometimes in the sources of projects I see "*.in" files. For example, a bunch of "Makefile.in"s. What are they for and/or what does the ".in" part mean? I assume that this has something to do with ...
0
votes
2answers
289 views

How to remove the last character from every line in a text file [duplicate]

I have a tonne of data to analyse, but all the data was Thai. Google translate added a "." to every line after translation. How can I remove this dot from every line? Example from output: DB00301. ...
3
votes
1answer
219 views

Is the last new line on fstab important?

What happens if the last line of fstab is not terminated by a newline? Why do people get a warning when that last line is not terminated by a newline?
3
votes
1answer
289 views

How do I make Kate indent with spaces on Python files but use tabs for text files and other files?

My goal is to set Kate up to work properly on Python files but to use different settings (tabs not spaces) on other documents. I'm sure others are doing this, but I can't figure out a convenient ...
3
votes
2answers
263 views

How do I keep the .local TLD in my intranet

I use vagrant to launch VM's and bridge the network access to my local machine. Unfortunately exvery VM launch gives me a new IP address, and MAC address. I have a domain.local that I use and ...
0
votes
2answers
350 views

how to install eiskaltdc++ on fedora 19?

So, recently i switched from ubuntu to fedora. I was using eiskaltdc++ for file sharing before. I have installed linuxdc++ on fedora but that is not working though. I would like to install ...
1
vote
1answer
671 views

SSH alerts for outside IP addresses

So i have a script that emails me if a login is from anything besides an ip address that starts with "10.1.": #!/usr/bin/python import smtplib, os server = "10.10.10.10" From = ...
2
votes
2answers
81 views

No result when using Multiple write file & sed in shell script

I would like to swap variables from old file to new file when I use single line like this cat ../oldFile.html | sed "s@$dayMaxInNew@$dayMaxIn@g" > newFile There's result from newFile. But When ...
0
votes
1answer
3k views

How to install lsblk on CentOS 5

I'm more used to Debian so yum and CentOS is a little new to me. Apparently, lsblk is not available on this system. I'm trying to install it via yum with no luck. I just get "nothing to do". I ...
1
vote
0answers
57 views

LTSP - Automatic build package selection

After recently instaling and setting up an LTSP environment, to learn more about it, using a few older spare PC's I have, I noticed that there are packages missing on the clients. In specific ...
3
votes
1answer
405 views

How does inotify work?

According to Wikipedia, inotify is a Linux kernel subsystem which notices changes to the file system. It replaced the previous dnotify. Programs that sync files (such as crashplan, dropbox, git) ...
0
votes
1answer
932 views

Unexpected end of file error when executing script

Can somebody help me debug this simple script. Been trying for 2 hrs now but I cant seem to get it to work. #!/bin/bash echo "Search for MMSC or WAP connectivity errors" sftpErrorCount=$(tail -100 ...
1
vote
0answers
24 views

find -exec {} vs. find -exec '{}' [duplicate]

I noticed in the man pages for find, that the {} always have single quotes around them. find -exec '{}' \; The description states: Notice that the braces are enclosed in single quote ...
2
votes
2answers
622 views

Stop cron sending mail for backup script?

I have set up a backup script to back up world data on my Minecraft server hourly using cron, but because the worlds being constantly edited by players, tar was telling me that files changed while ...
1
vote
1answer
166 views

Displaying messages to tty using whiptail through monit

I would like to display a whiptail message on the login screen that is triggered by monit, but I am without luck. I understand it might be something to do with interactive/non-interactive shell. Here ...
2
votes
0answers
264 views

GNOME Panel Completely Blank

I had rebooted my laptop running Debian while it was in a perfectly fine running state. After the reboot, I log in again, and the top GNOME panel is completely blank. I only have one panel as I use ...
1
vote
2answers
812 views

apt-get purge does not uninstall completely

I have installed emacs with apt-get. I tried to remove it later on, but the binary is left. root@ionian:/home/gauthier# apt-get --purge remove emacs Reading package lists... Done Building dependency ...
2
votes
3answers
1k views

Solaris: how to forward cron e-mails?

If a cron job produces output it is e-mailed to the user's account. I would like to redirect this e-mail to another e-mail account. Preferably on a user-by-user basis. I've looked into some options ...
1
vote
1answer
138 views

Bundle my scripts to make an installer in Unix?

We've got a PHP script running MongoDB in the background. I want to make it a bundle (Installer) for Unix. I will use it to install the following on any machines: Install Apache, PHP + MongoDB ...
2
votes
3answers
261 views

Find pattern and move

I'm wondering if anybody knows how to find a pattern and then move it to a different location. For example, I have many files named: odbc.ini_20110630 odbc.ini_20110639 odbc.ini_20110643 etc... I ...
3
votes
3answers
859 views

How to delete files only, but keep the directory structure?

I would like to delete every file, but keep the folder structure. Is there a way? NOTE: (I'm using GNU bash 4.1.5).
1
vote
2answers
819 views

Fedora 18 detecting non-existent monitor

I have an HP Envy dv7 with a dual boot setup of Win 8 and Fedora 18. On 07/22/2013 I updated all packages in Fedora 18 that had updates available. After a reboot, Fedora is now detecting that a ...
7
votes
1answer
8k views

How do I force yum to install without prompting the user, using bash?

I'm writing a bash script to install php5.4 and I'd like to automate this for a test VM. The rpm command I have is: rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm yum install php54w Now, in ...
2
votes
2answers
405 views

Problem downloading Java JDK with WGET on Ubuntu

I'm attempting to install the Java JDK through the command line using WGET on ubuntu (no desktop). Here is the picture I took. The file that was downloaded was not the tar ball of the JDK: How can I ...
3
votes
1answer
12k views

cp: cannot stat `/vol/examples/tutorial/science.txt': No such file or directory

I tried a command cp /vol/examples/tutorial/science.txt . and I get the error - cp: cannot stat `/vol/examples/tutorial/science.txt': No such file or directory I don't understand why this is ...
5
votes
1answer
1k views

FreeBSD: Can't install Python 2.7

I can't seem to be able to install Python 2.7 on my FreeBSD system. Here is some info: # portsnap update Ports tree is already up to date. Version: # uname -r 7.1-RELEASE Installation: # cd ...
1
vote
1answer
613 views

Where is the trash folder in FreeBSD / PCBSD?

I'd like to delete - undelete files using the shell in PCBSD. But... I don't know where the "trash" folder is. Can anyone tell me?
1
vote
2answers
76 views

How to backup all installed software/packages on AIX?

Are there any ways to backup all the packages on an AIX 6.1 machine?
1
vote
2answers
219 views

How to run chrome from command line by using process substitution?

I am using the following command without success - $ google-chrome <(grep "simple" SimpleDoc.txt) If I simply do a grep, I get - $ grep "simple" SimpleDoc.txt Very simple doc that contains ...
1
vote
1answer
85 views

How to see that what disks are on a QLogic FC adapter on linux?

So that example I can check: lrwxrwxrwx 1 root root 9 Jul 23 11:20 scsi-3600508e000000000XXXe71e04ffYYY0f -> ../../sda lrwxrwxrwx 1 root root 10 Jul 23 11:20 ...
0
votes
2answers
700 views

How can I access the log via a php script?

I have a statistics-file on my apache server on /var/www/vhosts/test/statistics/logs/access_log I tried using echo system('cat /var/www/vhosts/test/statistics/logs/access_log'); in a php ...
1
vote
1answer
80 views

Is it possible to download to files while in a SSH interactive? [duplicate]

Here I am, poking around a remote server via SSH, and I want to find out about/read/edit/whatever a file. I don't like vi or other CMI stuff, I want to read it locally. Is there any way I can ...
3
votes
2answers
1k views

Why does a named pipe not get deleted after system restart?

As far as I understand, named pipes are not written to disk but are stored in memory. Here's how I created a named pipe - $ mkfifo pipe21 $ grep "simple" SimpleDoc.txt > pipe21 & [1] 2775 $ ...
2
votes
0answers
24 views

How to create an upstart process in Ubuntu? [duplicate]

I am trying to create a process to be automatically started and maintained by Ubuntu's upstart (Ubuntu 12.04). I have been looking at this page as well as on this page and I am aware of the upstart ...
6
votes
3answers
12k views

How can I get TLSv1.2 support in Apache on RHEL6/CentOS/SL6?

I'd like to have TLSv1.2 support in Apache on my Scientific Linux 6 (RHEL6 rebuild) server. Is there some semi-supported pathway to getting this working? Preferably with minimal custom rebuilding. ...
1
vote
2answers
2k views

Is “/etc/issue” common for all Linux distributions?

I'm trying to Create OS detect portable function in bash script, So I just want to know, the file "/etc/issue" is common for all Linux Flavors ?

15 30 50 per page