0
votes
1answer
3 views

tail -f error_log | cowsay

I'm watching the error logs on my local setup. I'd like to have the errors print out in cowsay, you know, for fun. tail -f error_log | cowsay doesn't work. Any ideas?
1
vote
1answer
7 views

stderr gets flushed before stdout, when using file logger

My python code: import sys print "i am a daemon" print "i will be run using nohup" sys.stderr.write("i am an error message inside nohup process\n") When i run the code as python a.py, it shows, i ...
0
votes
0answers
5 views

Why is my laptop being blocked from connecting to a PPTP VPN server?

I have a fairly simple network at home Internet --> Modem --> Linux Router --> Switch --> Laptop The problem: There is a PPTP VPN server at work that I need to connect to from home. I configured my ...
0
votes
0answers
6 views

Allow all traffic using iptables within a linux router

I've followed the official Ubuntu tutorial for setting up a router here . The problem is that within this router some traffic seems to get dropped or something. I have a network-namespace that no one ...
0
votes
0answers
12 views

No IP address on VMware running centos 7

Alright i am back with one more twisted issue! I just now installed Cent OS 7 on my VMware 8 and i am not able to connect it to a network. I checked the VM network and its mapped to the physical ...
2
votes
1answer
27 views

How to safely transmit a password over SSH for a remote command to use

On the local server, I have a program that stores the password in the predefined environment variable (SPECIAL_PASSWORD). On the remote server I have a program that reads and uses a password from a ...
0
votes
0answers
9 views

How can I cache the PGP unlock for unix pass when I am in the virtual terminal?

When I am running in the GUI, if I run the pass command to read a password such as pass -c Email/FooBar, a password prompt will appear for my passphrase. If I type my password, my password will be ...
1
vote
1answer
10 views

Backup on a remote server in an encrypted folder

Is there an easy way to backup your home directory on an online server in an encrypted folder? I heard of obnam which should be able to store encrypted with a GPG key somehow. What would be the ...
-5
votes
0answers
13 views

What system call creates and runs a new process in the Unix and Linux systems? [on hold]

Using the program below, identify the values of pid that will be printed at lines A, B, C, and D. (Assume that the actual pids of the parent and child are 7200 and 7225, respectively.) #include ...
0
votes
0answers
3 views

LFS 7.2: Hundreds of errors in glibc make check

I am on Section 6.9 of the LFS book. Everything before this section seemed fine. When I ran make check I got a huge number of errors. A longer transcript of my make check run can be found here on ...
0
votes
2answers
13 views

Linux ssh log audit?

Want to monitor who, from where (IP address) and when ssh into a Linux box, and wondering how to open related logs? A simple document is appreciated. thanks in advance, Lin
1
vote
1answer
5 views

How do you downgrade multiple packages in arch linux?

I am trying to downgrade the vim package on arch linux to an earlier version (as I need to use an earlier version of ruby which breaks it [ref]). running downgrade vim and selecting the version ...
3
votes
0answers
18 views

Size difference between an iso file burnt to a cd and the file retrieved with dd

I have an iso file (foo.iso) that I burnt to a dvd with the command : growisofs -dvd-compat -Z /dev/cdrom=foo.iso I then tried the command dd if=/dev/cdrom of=foo2.iso However, foo2.iso is ...
1
vote
0answers
17 views

Is there any considerations I should take when running untrusted apps as non-root user?

I have to use an application I don't trust (unstable) and I will run it as a non-privileged user so if something bad happens the damage would be limited to the home folder of that user. I removed ...
1
vote
0answers
14 views

iptables does not block IPs

I noticed that there were lots of requests to xmlrpc.php file of a Wordpress blog from a few IP addresses. I want to drop all the packets coming from these IPs. However, my iptables configuration is ...
1
vote
0answers
17 views

How can I make the unix `pass` program play nice with `ssh` inside the Linux Virtual Terminal?

I am trying to log into an ssh server by pulling the password directly out of the pass program without any GUI interaction. The normal workflow in the GUI (Gnome) is to do the following. Pull the ...
0
votes
0answers
28 views

awk search for string containing forward slash in variable [duplicate]

I'm searching for a string in a massive XML file. Snip: <sv:node sv:name="notfound"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> ...
0
votes
0answers
6 views

Evolution-EWS (Exchange) Address Book Isn't Syncing

I've installed evolution and evolution-ews. After setting up my exchange email account, I expected that the address books from the server would also sync. Under my Contacts, there are 6 address books. ...
1
vote
1answer
13 views

Linux Ubuntu: Problem using Python3 Package Installer

I successfully installed Python3's Pip and SetupTool packages by: sudo apt-get install python3-pip but when I try to download/install any package for Python3 by: pip install <package-name> ...
0
votes
0answers
8 views

Building a physical and ethernet drivers on embedded device

So, I am working on an embedded device Devolo dLAN wifi 500, running a linux kernel version 2.6.31. It has an atheros chip ar7240. I have root access to it and can modify its contents. (And now for a ...
0
votes
1answer
14 views

FreeBSD bootable usb

How can I make a bootable USB stick with FreeBSD on it and then boot the image from Plop Linux? (I am using Linux mint) I want to install this OS ,also I want to know if Plop will detect the the BSD ...
1
vote
0answers
14 views

how do I migrate liferay from one server to another?

I'm trying to migrate liferay to another server (both are linux machines, and I'm using the CE bundle with tomcat7). I moved over the entire folder. This is not enough, because usernames/passwords ...
2
votes
2answers
28 views

sed replace after matching character

I have to change a properties file containing the property: ro.product.firmware=0.0.1 with a new value that is coming from a function called in a different section of my bash script. I cannot get ...
2
votes
2answers
28 views

Copying latest file from remote server

There is a collection of .doc files, in addition to other types of files, on a remote server (which supports SCP). I am trying to write a script to retrieve the latest (most recently modified) .doc ...
0
votes
1answer
19 views

Issue on updating Linux Ubuntu

As LU is strongly suggesting me, I want to update my packages but a problem (which I hadn't encountered before) interrupts upgrading process. Some specific packages fail to be downloaded. They are: ...
0
votes
0answers
10 views

color scheme setup for iTerm

How do you setup color scheme of iTerm on Mac? For color scheme, I mean using different color to display folder name, file name, machine name, etc.
0
votes
0answers
17 views

security setup for a Linux box expose to Internet [on hold]

I need to setup a Linux box (CentOS) and expose it to Internet. I just need to expose http service. Wondering if any security setup guide? I am not a security expert, just want to get a easy to follow ...
0
votes
1answer
15 views

Running a ruby cron job

I was trying to create a cron job which runs a ruby code on digital ocean, however it seems I'm making a mistake. It doesn't give any error but it doesn't also do anything. I ran this cronjob on my ...
0
votes
4answers
25 views

How to track/log commands executed on a shell?

Can commands be written to a logfile before they were executed in any shells? I know there is a patch for ssh to log all commands from ssh sessions, but i want to log even commands executed from a ...
0
votes
2answers
27 views

sed replace ;“ content with ';”

I have files that contain ;" and I need it replaced with ';" The following sed command does not work: sed -i "s/;"/';"/g" /root/bashy.sh How can I do this? The solution doesn't have to be sed.
0
votes
1answer
16 views

Determine Size of Entire Website

There are methods to determine the size of a webpage, but how about an entire website? Without having to download it. EDIT: I only want pages included in the size tally that include the domain name.
0
votes
2answers
30 views

How to use awk in a while loop?

while read PWW do cat user/dump/bar.txt | awk '/${PWW}/{print $2}' >> user/dump/out.txt done < user/dump/foo.txt foo.txt: 2100001b32 2100001b38 3100001b35 4100001b28 5100001b46 ...
0
votes
1answer
18 views

Update mysql database specific field with this bash script

I am using the following bash script to update an email address "currentemail@email.com" but the problem I have is that the field could be anything, not necessary "currentemail@email.com" I have tried ...
0
votes
1answer
34 views

What's the -alhF flag in ls?

What is the -alhF flag in ls? I can't find it in the man page.
1
vote
2answers
21 views

Partition table-less HDD [duplicate]

Just this morning, I accidentally created a hdd filesystem without a partition table. I didn't even know it was possible but it happened. Now the issue is to undo it or leave it alone. For this ...
0
votes
0answers
4 views

Filesystem check or mount failed on elementaryOS Freya

I had to move to a temporary workspace for a short time which runs on very bad hardwares, so I bought an SSD trying to speed it up. Now, I have installed elementaryOS Freya and my development ...
0
votes
1answer
44 views

Script to check if file exists and copy

Pretty new to shell script, Want to write script which checks if any file .300 extension exists on /exports/files on server 10.xx.xxx.xx .If *.300 exists, move file to /exports/files/arch and send an ...
1
vote
2answers
20 views

Recovering an overwritten file

I accidentally misused the cp command and overwrote one file's contents on an ext4 filesystem. Is there anyway I can recover this old file's contents and possibly its metadata (i.e., last write time, ...
0
votes
0answers
13 views

Broken System after upgrade Fedora 21 -> 22 with fedup

The update process after booting FedUp silently stopped by about 80%. The system boots and even my Cinnamon starts and I can use many apps. But there are now partially .fc21 packages installed and ...
0
votes
0answers
8 views

Manually set USB data pin value?

I'm making a USB device that will only have an active/inactive state. Not having to interpret serial data will reduce the size/cost/complexity of the device significantly. Is there any reasonable way ...
1
vote
1answer
24 views

How to exclude lines that don't include a string from the output of an awk script?

Completely new to scripting in general, and have been working on a script to go through our logs which contain entries for a variety of different things. What I'm interested in, is the entries that ...
0
votes
0answers
4 views

fail to start graphical.target on centos7

could not start graphical target after installing kde from minimal centos. startx works fine though. the system has two vcpus and 1GB ram. $ cat /etc/redhat-release CentOS Linux release 7.1.1503 ...
1
vote
1answer
7 views

rsyslog Filtering Based on IP Address with Wildcards

I have some syslog traffic being processed by rsyslog and I'd like to set up filters to store the logs based on the IP addresses of the source devices. I have a large number of devices and would ...
3
votes
1answer
21 views

Get all files open for writing with pid, recursively

Given a pid, I can get all the files open for writing something like: lsof -p 28827 | awk '$4 ~ "[wW]"{print $(NF-1), $NF}' One of those ends up being a pipe: 28827 232611 pipe I want to look-up ...
1
vote
1answer
14 views

Update mysql database

How would I go about updating MySQL database X, table Y and column Z with "abc". How would I be able to do this without having to do so interactively from the mysql> prompt? I want to do this with one ...
0
votes
1answer
29 views

pip install gives “TypeError: 'int' object is not iterable ”

In Debian testing, when I try to install the python package python-constraint via pip install python-constraint I get the following error; Exception: Traceback (most recent call last): File ...
0
votes
0answers
9 views

ZFS Mirror on same drive for redundancy?

The device I would like to use as a home server has only a single 2.5'' internal hard drive bay currently fitted with 1TB. The actual data storage (2x 1TB) will be attached to the external USB 3.0 ...
0
votes
1answer
14 views

Redhat 5.11 Just showing 1.5TB Storage

We purchased new supermicro server with 3*3TB HDDs. Now from Hardware Raid controller i created Raid 5 .So the total use able storage is 5TB something. But during installation Redhat is just showing ...
0
votes
0answers
6 views

Openbox Session mount webcam/other usb devices?

I am following http://thepcspy.com/read/converting-ubuntu-desktop-to-kiosk/ guide to turn my Ubuntu into a Kiosk, and everything works fine except when my Google Chrome boots it doesn't have any of my ...
0
votes
0answers
22 views

HDD disconnects randomly

My internal Seagate Barracuda 7200.11 500GB randomly disappears. Sometimes, before the HDD gives up, I have enough time to move data to another HDD. Data does not seems to be corrupted. I checked it ...

15 30 50 per page