All Questions
0
votes
0answers
17 views
What are the semantics of getting a EADDRINUSE when no listening socket is bound, but connections are open
Consider a parent process which completes a socket/bind/accept, and will fork children with that socket open for them to communicate with, while the parent continues accepting connections. That parent ...
0
votes
2answers
13 views
Where / How to install CentOS 7 for 32 bit system?
I have windows 7 with 32 bit system, and previously I used CentOS-6.5-i386-minimal to run centos on my virtual box, but now I would like to run CentOS 7 and it seems (if I am not mistaken) that there ...
0
votes
0answers
9 views
error: Bad prime description in line
Aug 17 09:34:17 vps-aadsshd[130428]: error: Bad prime description in line 186
Aug 17 09:34:17 vps-aadsshd[130428]: error: Bad prime description in line 187
Aug 17 09:34:17 vps-aadsshd[130428]: error: ...
3
votes
0answers
7 views
How to setup a KDE/Gnome-Remote-Server with CentOS 6
I am planning to setup a "terminalserver" for my *nix based administrators.
I would like to have a number of users, either with gnome or with kde (based on their likings) who will connect to the ...
0
votes
1answer
13 views
Rounding float numbers in csh
I have a float number stored in a variable $temp, like 3.046789. How we can round this number with 2 digits precision and the result I need is 3.05. The script I have is a csh script.
1
vote
1answer
12 views
How does Fstab exec noexec parameter affects samba shares
I have mounted several data drives and used noexec parameter. Thinking that since it's only data I wouldn't need exec. Now I am having some permission issues and would like to rule this out as the ...
0
votes
0answers
7 views
USB Tuner driver not detected
I am using a DVB Tuner, USB tuner. I have added driver to the kernel and it is being registered. But when the device is connected, it doesnt invoke the probe function.
Is there anything I have to ...
0
votes
0answers
9 views
Firewalld: Reject All Destinations
I'm running CentOS 7. How would I go about rejecting all outgoing traffic? Most of my reading has been related to firewalld & firewall-cmd. I think I could write the rich rule, but I'm not sure ...
1
vote
2answers
19 views
How do I reorder or rearrange the output below
Here in my INPUT:
0015:"IDPTS3O"
0091:"ODMBS1I"
0015:"IDPTS3O"
0091:"ODMBS1I"
0015:"IDPTS3O"
0091:"ODMBS1I"
0015:"IDPTS3O"
0034:"ADTSS1I"
0015:"IDPTS3O"
0034:"ADTSS1I"
...
0
votes
2answers
16 views
Run an SQL script to create a Database via Linux Terminal
I am logging into my web server remotely using SSH and I'm wondering if there is a way that I can execute an sql script I have residing in a directory on that server in order to create a new database,
...
0
votes
1answer
24 views
Rename file using sed
I have files whose filenames are in format ddmmyyyyTEXT.txt
I want to rename all the files to yyyy-mm-dd-TEXT.txt
Here, TEXT is some arbitrary text.
What sed expression I should use ??
0
votes
0answers
14 views
How can wait for particular thread or process
Lets say I have created 10 threads/process and I would like to wait on particular thread or process to completed. waiting process/thread could be selected ramdomly.
lets say i have created 4 process ...
0
votes
0answers
10 views
sMail server can not get connect by Linux frequently
I have a mail server build by iredmail on Centos6.5 system.The mail server have a public ip A.
There are about 40~50 mail clients which operating system is windows in local network, they all NAT as ...
0
votes
0answers
4 views
given a domain-controlled group, how can i get its domain?
I'm working on an application which collects data on groups.
In my application I need to collect data and the residing users of local groups and send meta-data on domain-controlled groups.
My ...
0
votes
0answers
9 views
Solaris & Putty - Keyboard settings
I'm using putty for connecting to a solaris system.
I'm just a user (no root access). All what I know about the system is
Oracle Corporation SunOS 5.11 11.1 January 2014
My ...
2
votes
1answer
11 views
Replay a screen log file incrementally
I have run some commands in gnu screen and used the C-a H command to record the output to a screenlog.0 file. However now I want to view it. There are loads of terminal escape sequences, so just ...
1
vote
0answers
22 views
How can I get console ssh to NOT ask for my private key password every time? [duplicate]
I have a program required by work installed on a Debian Wheezy box. Previously I was using Mac OS X (switch details irrelevant). I have an SSH keypair at ~/.ssh/id_rsa{.pub}. That keypair has a ...
0
votes
1answer
13 views
Clear or disable aliases in zsh
I installed oh-my-zsh to make terminal use a bit easier. One thing that bugs me though is the prolific aliases added by it, like "ga", "gap", "gcmsg", "_", which are harder to remember than the ...
0
votes
0answers
7 views
Not able to change the Plymouth theme?
I have created a new plymouth theme inside the /usr/share/plymouth/themes/mytheme and after adding that I just listed my plymouth themes using plymouth-set-default-theme --list and I'm able to see my ...
0
votes
0answers
6 views
Cursor flickering/vanishing in XFCE, even with display compositing off
I am running XFCE4 with Raspbian (essentially Debian) on my Raspberry Pi. I read here on Stack Exchange that turning display compositing off should resolve my problem, which it didn't. Also I would ...
0
votes
0answers
8 views
skipping scm step on condition in jenkins
I want to implement a project in which I should be able to checkout a code based on some condition. Say checking of timestamp or environment variable.
2
votes
0answers
4 views
Meaning of fsync() in sshfs+LUKS setup
Background: I'm investigating methods for encrypted storage on untrusted machines. My current setup uses sshfs to access a LUKS-encrypted image on the remote machine, which is decrypted locally and ...
1
vote
1answer
28 views
Understanding grep and pipes in linux
I came across this post which explains my problem.
Suppose there is a file called file.txt which contains "foo World".
The answer posted by Tyler explains a lot however I am confused as to how
cat ...
3
votes
3answers
150 views
extract every nth character from a string
I am trying to figure out a solution for this question. My approach to this problem so far is as below.
Append all the characters together to make it a long string.
After the above step, remove ...
1
vote
1answer
11 views
How to copy with wildcard in directory name?
I would like to copy the html directory inside a directory like cms_drupal_PROJ-1-2 to/var/www`.
The last digit in the working directory is dynamic so at any given time all I know is ...
2
votes
2answers
18 views
How to add user info when creating a user?
If I create user khadija with username: khadija, how can I populate the fifth field of /etc/passwd?
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
I have not found anything under the useradd ...
0
votes
0answers
8 views
Cross-platform solution for retrieving password for offlineimap and msmtp
I use offlineimap and msmtp with mutt to manage mail. I need a cross-platform (OS X and Linux), secure solution to store and retrieve my password for both of these programs. The only one I've found ...
0
votes
3answers
25 views
Filtering a .CSV file based on consecutive numbers in a line
I have a csv file with the following headers:
Interaction_ID, PDB_ID, First_Residue, First_Chain, Second_Residue, Second_Chain, Third_Residue, Third_Chain, Fourth_Residue, Fourth_Chain, Pattern
...
-3
votes
0answers
13 views
UNIX - RHEL Permission Question
How do I set permissions so that whoever creates any files or directories in /directory, the group owner should automatically be the same group owner of /directory.
2
votes
2answers
60 views
How to add new lines from another file with sed
I'm trying to find the sed command so that I can put filename into filename1. These are my two separate files.
INPUT filename has:
Cindy 11 22 54
Chester 48 12 84
INPUT filename1 has:
Name ...
1
vote
1answer
36 views
When is a symlink treated as the thing it links to, and as a symlink?
When is a symlink treated as the thing it links to, and as a symlink?
A symlink can links to a file of different types. For example, let mylk be a symlink which links to a dir.
The following two ...
0
votes
1answer
27 views
Sort three columns? [on hold]
sort -t $'\t' -k 1rn,1 -k 2,2rn -k 3f,4 listaprezzi
2050 900 bananas 5
1905 700 grapes 17
250 4000 oranges 10
230 9200 ...
1
vote
0answers
12 views
Unable to unmount a partition - respawned by udev
I have set up the udev rules to automatically mount/unmount the removable devices with udev rules based on this answer (have not enough reputation to comment there). The setup works fine, but when I ...
2
votes
1answer
28 views
View physical location of a file/directory on a hard disk
Is there any Linux program which offers the same (or some of the) functionality of Sysinternals DiskView, especially being able to view to physical location of a file on a hard disk?
DiskView URL: ...
0
votes
0answers
23 views
failure joining samba AD domain over a slow connection: NT_STATUS_IO_TIMEOUT
Running Ubuntu with Samba 4 (Zentyal 3.5)
Trying to join a new ADC (additional domain controller) to an existing PDC. Unfortunately I am getting an error, and I THINK the error might be caused by ...
9
votes
1answer
214 views
Change password on a LUKS filesystem without knowing the password
I have a Debian Wheezy server that's been running for a while with an encrypted drive. The password for the encrypted drive (/dev/sda5) was lost when my encrypted password file was corrupted.
I'd ...
2
votes
1answer
27 views
Compare 2 delimited files and output differences
I have asked similar questions here a couple times in the past with great success, but now my needs have slightly changed and I am struggling to get the exact output I am looking for.
I would like to ...
0
votes
0answers
30 views
Disk usage analyzer on encrypted home folder? [on hold]
When I installed Linux Mint I opted to encrypt the home folder.
I ran Baobob (Disk Usage Analyzer) and it won't show my files, just the encryption. So I can't determine which particular files are ...
0
votes
1answer
24 views
E: Sub-process /usr/bin/dpkg returned an error code (2)
I wanted to install bluefish editor but I got this error. This is not the first error I got involving packages. I installed Linux Mint 17 two days ago and every time after a reboot there is some kind ...
2
votes
2answers
30 views
Find out who is using a shared mount?
We have a mount point shared by many Linux hosts. We need to figure out which accounts are reading/writing files using which accounts and at what time. How should we go about this?
0
votes
1answer
27 views
How to make NIC team come up on boot in RHEL 7
To configure networking on RHEL 7, I created a JSON file for teaming, then ran these commands:
ip link set down eno1
ip link set down eno2
ip link set down eno3
ip link set down eno4
teamd -g -f ...
0
votes
1answer
21 views
adding unzipped files to a zipped folder
I'm trying to add unzipped files to an existing already zipped folder say new folder.zip. Is it possible to use zip -r new folder.zip after adding some unzipped files to them. Will this command ...
3
votes
1answer
25 views
Disable postfix HELO checks completely
I'm trying to set up a mail relay for a cranky old voicemail system. I set up postfix on a vm, enabled relaying, verified that I can telnet to port 25 from the same subnet and send mail wherever I ...
2
votes
1answer
47 views
What happen if accidentally move a soft link followed by “/”?
I created a soft link to the current directory,
$ ln -s "$PWD" math
I then wanted to move it to another directory.
$ mv math/ ~/dirlinks/maths/
I then realized I should
$ mv math ...
0
votes
0answers
10 views
File transfer between SSD and RAID array uber-slow
It's really simple: this server has an SSD for the main drive, and a RAID array (mdadm) for storage.
Intermittently, it has a problem writing to the array: the write speeds slow down to the point ...
-1
votes
0answers
43 views
How to stop CPU fan in Linux?
I use an old computer. CPU fan creates big noise. Sometimes CPU fan suddenly stops and does not work for a long time, and CPU does not get heated in these long periods, because I use very light-weight ...
0
votes
1answer
21 views
How to move system clock time forward/backward?
I know commands for setting specific time and/or date, but can't find ones which move the time relative to the current time.
What are the commands to move the time forward/backward x ...
2
votes
0answers
9 views
How can I make a psf font for the console from a otf one?
I want to use the Inconsolata font in the tty console, but I need to generate a psf font for that.
I found that there are two tools that should help me otf2bdf and bdf2psf. But everytime I try to use ...
0
votes
1answer
14 views
Setting up 3rd party sftp server to run on port 22
I'm trying to setup CrushFTP 7 on a RHEL 6.5 machine and am having issues. If I leave everything as default I can connect using port 2222 but I need to be able to have CrushFTP respond to requests on ...
5
votes
4answers
74 views
Using awk to identify the number identical columns
I am new to all this, and this is probably a rather simple question, but I am stuck:
I have a large number of individual files that contain six columns each (number of rows can vary). As a simple ...