All Questions
0
votes
0answers
3 views
Thunderbird/Enigmail: problem with colors
When I decrypt an encrypted email in Thunderbird (using the Enigmail extension), the enigmail header is displayed in very strange colors, very light green background with white text. This makes the ...
0
votes
0answers
2 views
Configure NAT filtring behavior with iptables
I'm using this rule to configure SNAT:
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 193.49.142.107:4000
I want to specify a rule to filter out packets not destined to the internal ...
0
votes
0answers
6 views
Running system bash command in PHP script - syntax error: unexpected T_LNUMBER
If anyone can shed some light on my issue that'd be great. Please don't down-vote me; I'm new to the language and the OS itself and I'm trying my best to research before asking questions, so any ...
1
vote
1answer
24 views
Awk that I am stuck on
I have a project I am working on for work. The script I am building initially takes two arguments: one is an unique Identifier and the other is for a log file (both strings). Now I have the first part ...
0
votes
2answers
16 views
Remove a particular line no from a text file
I have .csv file having several lines of data.
I have to search for a particular value in the string/record and delete that line itself.
eg ;
abc.csv
col1_id,col2,col3,col4,col5
...
1
vote
1answer
27 views
Why does Ubuntu use Debian “unstable”? How does it manage to be stable then?
Shouldn't Ubuntu use Debian "stable" for stability? How does it manage to stay stable by using Debian "unstable" ?
0
votes
2answers
14 views
Get ld to pick the correct library
I'm trying to link a program prog against OpenSSL version 1.0.2 compiled from source. On a Ubuntu 10.04 system, version 0.9.8 is already installed, so ./config shared --openssldir=/usr/local/ssl-1.0.2 ...
0
votes
1answer
18 views
Extract time stamps and find the difference
I have a large set of logs as shown below:
June 5 15:51:56.606 [3997]: TR#153. State machine - state = CC_STATE_IDLE, event = EVT_ISDN_SETUP
June 5 15:51:56.607 [3997]: TR#153): SC ...
2
votes
1answer
21 views
Launching a terminal emulator without knowing which ones are installed
I need to write a script that will launch a terminal emulator and run a particular command in it. Since I don't know which terminal emulators have been installed on the target system, how could I find ...
0
votes
0answers
7 views
Kermit locked after suspend
I use kermit to communicate through RS-232 with my embedded system target. My host is Ubuntu 14.04.
Every time I suspend my host while kermit still is connected to the target, I cannot reconnect with ...
0
votes
4answers
46 views
how to extract part of a filename before '.' or before extension
Hi i have files in format below:
abc_asdfjhdsf_dfksfj_12345678.csv
hjjhk_hkjh_asd_asd_sd_98765498.csv
hgh_nn_25342134.exe
I want to get the value before the "." and after the last "_".
The result ...
3
votes
3answers
38 views
How to cut everthing until a specific word / after a find in a script
Hello I try to get the output of files from today wich contains ERROR.
I use this to find the files I want:
find /home/user/logfilesError/ -maxdepth 1 -type f -name "gandalf_*"\
-daystart -mtime ...
0
votes
0answers
7 views
Is Inactive memory related to the Commited but unused?
from the Linux procfs documentation:
Active: Memory that has been used more recently and usually not reclaimed unless
absolutely necessary.
Inactive: Memory which has been ...
0
votes
0answers
14 views
Using wget to dowload images in facebook conversations
This look a bit harder than usual. I'm a new wget user and i was thinking that maybe it's possible to somehow login into facebook and download images from a specific conversation.
I mean, i'd like ...
1
vote
0answers
5 views
Does the Linux loader (ld.so) follow symlinks?
I have stumbled upon a problem by trying to move the ld.so.cache file to another location. I have tried to create a symlink for it in its previous location -- /etc/ -- but it seems that the loader ...
0
votes
1answer
15 views
Why does apache not define where to log by default?
When searching the occurrence of the chain /var/log in default configuration files of apache this cannot be found anywhere.
But log files are defined as such
# part of httpd.conf
ErrorLog ...
0
votes
0answers
8 views
Reprepro : How to add the whole packages of different OS
First, I would like to apologize if this is an easy question to some. I am just a newbie so I am asking for your patience...
I am trying to use Reprepro for my software repository. My question is how ...
1
vote
3answers
25 views
Use awk results as parameters to another command
I'm extracting rows from a set of text files with awk. The files look like this:
1000 1 75
1000 2 76
1001 1 76
1001 2 80
I'm searching several directories of these with this ...
0
votes
0answers
7 views
VT100 terminal emulation to use with a Java-based 8-bit computer emulator
I am successfully using GNU Screen as serial terminal to "talk" to my Altair 8800 clone (http://altairclone.com/) using serial line. The command I use is 'screen -istrip /dev/ttyUSB0'. Screen does the ...
0
votes
1answer
14 views
Why use “nohup &” rather than “exec &”
I know that, nohup being a binary, it can be reached from any shell. But the exec built-in probably exists in every shell.
Is there a reason to prefer one of them, to the other?
0
votes
0answers
5 views
How do I run a sock proxy via ssh on a non-standard port?
I am running into a bit of trouble accessing a web application running on port 9293 on a remote server only accessible via ssh on port 5634. I've configured FoxyProxy to route all traffic meeting the ...
0
votes
0answers
4 views
can xsp4 run .net 4.5 based application using mono framework?
I have installed mono 3.2.8 package into centOS 6.5 to run web application using mod-mono module.
I have also installed apache 2, mod-mono 2.10 and xsp 2.10.2 in that system.
Then I have tried to ...
0
votes
0answers
11 views
How to mount NFS shares via /etc/fstab - Access denied by server while mounting
I am trying to mount a NFS share to my OpenSUSE 13.1 Server on startup using /etc/fstab file with the following entry:
l00nim10:/export/werk/ /home/smbshares/nimshare_03/ nfs vers=3 0 ...
1
vote
0answers
3 views
Why does xdg-open text_file differ from sudo -u me xdg-open text_file?
If I run the following command, the text file opens in my preferred editor (kate).
$ xdg-open text_file
However, if I try the following, where sparhawk is my username, I get several warnings, and ...
-1
votes
0answers
15 views
Need to comment all sudo entries which are expired [on hold]
I need to a script which comment all the sudo entries which are expired.
0
votes
0answers
3 views
How can I make CentOS 6 treating WiFi flexibly like Ubuntu 12.04?
In my office, I have AT&T Uverse. The router is a 2wire 3600HGV. The WiFI is provided by a Cisco Linksys E1000 that is plugged in the 2wire device.
With my notebook running Ubuntu 12.04 LTS ...
1
vote
0answers
6 views
efivars data missing from procfs and sysfs
I'm trying to install ubuntu on a Tab-X 10.1 Intel WinPad.
The UEFI loader only allows booting from 32 bit efi images.
Ubuntu only supports UEFI in 64 bit versions.
I'm trying to get the 64 bit ...
0
votes
3answers
29 views
How can i make usage to print only once
#!/bin/bash
usage ()
{
echo "run with 1st argument
-mux2 or mux4 or mux8 or default(mux2) or all ( all the 3 mux)"
echo "2nd argument
-struct or ifs or cases or asgn or ...
0
votes
1answer
11 views
Finding the latest version of package which doesn't require upgrading libc (on Debian)
When I try to upgrade packages using aptitude -t wheezy-backports, they often require newer libc than is installed. Proposed solutions remove hundreds of packages. Is there a way to request only the ...
0
votes
0answers
8 views
Linux build error on OpenRISC architecture simulator
I am trying to Build and run Linux on or1ksim by following the tutorial at http://opencores.org/or1k/Linux on Fedora running on VM VirtualBox
I am getting the below error message when I run the ...
0
votes
0answers
4 views
CUPS - no document types are supported?
I'm hoping to eventually share out a printer for my household using CUPS. At this point I haven't made it past the initial config on the CentOS 6.2 x64 machine.
Any document type I try to print using ...
0
votes
0answers
25 views
Find and replace inside a awk block
I want to find and replace a value inside awk block.
Here is a sample input file to my script
P1
10,9:11/18013013582
,10:1
,167:0
,487:5/E.164
11,9:15/310410532169026
,10:60
,167:0
,487:4/IMSI
...
1
vote
2answers
18 views
searching multiple strings in multiple files inside a directory and printing the string and corresponding file name where it was found
I have around 500 strings and I want to search for the files which contain them inside a directory and get the file names which contain the strings. So far I've been using:
find -name 'LYFNRE.*' ...
1
vote
1answer
9 views
debug mkfs.ext3 command output
I was creating a new file system in my external HDD. While formatting, I had to format this partition to the remaining available partition which is somewhere around 850GB. Now, I created an ext3 file ...
2
votes
1answer
365 views
bottomless tee?
I was just playing around in the terminal and I did this:
printf 'some string\n' | {
tee /dev/fd/3 | {
: && sed 's/some/string/'
}
} 3>&0
I was really surprised when ...
0
votes
0answers
7 views
Installing ZeroMQ for PHP on Hostmonster
I'm working on the shared hosted solution from Hostmonster. I'm trying to get ZeroMQ installed so that it will work with Ratchet. I have configured and build ZeroMQ 4.0.4 locally, as well as libzmq. ...
0
votes
1answer
11 views
Cant install gnutls.i686 on a x64 CentOS install
I need to install gnutls.i686 on CentOS 7 but I get this error in yum:
Transaction check error:
file /usr/share/man/man5/pkcs11.conf.5.gz from install of p11-kit-0.18.7-4.el7.i686 conflicts with ...
0
votes
0answers
2 views
How to disable the “medium” style for every font using the fonts.conf file?
I would like to disable the "medium" style for every font installed in my computer. I've searched the specific settings for the file fonts.conf but I couldn't find it. Any idea?.
3
votes
3answers
100 views
awk filtering live capture with file as pattern list
What I'm trying to do is quite simple. I'm generating output from tshark and redirecting it to awk with a pipe |. Since tshark gets live data, I want that awk search in every output for a pattern ...
1
vote
1answer
22 views
Compose and pipe a gzipped tar archive in one go
I'm trying to come up with an effective way to create a gzipped archive of various system partitions on Android, piping everything out to stdout so as to be able to encrypt it as it comes across via ...
1
vote
1answer
8 views
how to suspend other nonrelated processes to allow a proces in interest to occupy the CPU?
Is it possible to
first find out what processes are necessary to run a process in interest, and
then suspend all other unrelated processes to allow the process in interest to use the CPU as much ...
1
vote
2answers
18 views
what is 'smakynet' in the netstat result?
after logging into a server, I used netstat to check out the ports of this server and wanted to find which port was communicating with me
My IP is 143.248.143.198 and my search results are like ...
1
vote
0answers
7 views
Why do I get “authentication” errors on this “Open” configuration?
I have the following ifcfg-wlan0 file:
DEVICE=wlan0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.5.1
NETMASK=255.255.255.0
NETWORK=192.168.5.0
NAME=wlan0
USERCTL=no
the following dhcpd.conf file:
...
-1
votes
0answers
22 views
Non Techie needs help! [on hold]
I just purchased a new ZTE Savvy Straight Talk phone and somehow someone Linux rooted it and I cannot install apps, safely purchase anything or put my social security # on it. I cant afford a new one. ...
1
vote
3answers
330 views
Difference between ls -l and ll?
I'm relatively new to programming as a whole and some tutorials have been telling me to use ls -l to look at files in a directory and others have been saying ll. I know that ls is a short list, but ...
-1
votes
1answer
9 views
Can't install vim in fedora 20
When I tried to install VIM in fedora 20, appear this message below
How can I fix this problem?
0
votes
0answers
5 views
ldapsearch and SRV RRs
I am attempting and failing to use ldapsearch (or any of the other openldap utilities) with DNS SRV Resource Records. However, I believe it should be possible and that I am using the proper syntax.
...
0
votes
3answers
35 views
How to fork a “cat” command?
This is my bash script.
#!/bin/bash
oo="`cat /etc/httpd/conf/httpd.conf`";
cat > /a.txt << EOF
$oo
EOF
it simply reads /etc/httpd/conf/httpd.conf and writes it to /a.txt, the problem has ...
1
vote
1answer
9 views
Openbox 3 theme: How to set color for menu background and scroll bars
I want to create a dark theme. But I have failed to see how I would change the background color of the menu row and the colors of the scroll bars even though I have tried looking at the relevant Wiki ...
1
vote
0answers
22 views
Mount a seriously damaged NTFS partition on an HDD with a lot of bad sectors?
I have a situation where I haven't deleted anything, even the partition table looks fine, the real problem, apparently, is the partition itself, upon further investigation I have verified that this ...