All Questions

0
votes
0answers
5 views

What does sort -n do with non numeric values?

I'm translating an old korne shell script that uses sort. The exact command is: sort -k 1.2,1.9n -k 1.10 -k 1.18,1.19 $LOAD_FILE > $SORTED_FILE The input file has some lines where the values in ...
1
vote
0answers
4 views

How to set LANG in locale, despite it's in /etc/default/locale in ubuntu for unicode support?

I run Ubuntu 12.04, I can't set the locale to en_US.utf8. $cat /etc/default/locale LANG=en_US.utf8 $locale LANG= LANGUAGE= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" ...
0
votes
0answers
4 views

ntfs-3g: Input/output error

For the past 3 days (after an update) my Debian Jessie refuses to mount NTFS disks. I reinstalled libfuse2 and ntfs-3g, yet I get the same Input/output error I tried the same disks under Windows 7 ...
2
votes
1answer
7 views

update openssh and openssl on solaris

I got a nexenta system, I updated openssl to 1.0.1j, which I compiled from source code. I updated openssh to 6.7, from source code as well, and I get this: root@cteraportal:/root# openssl version ...
2
votes
1answer
5 views

Squid3 failing to install via apt

I am trying to update squid3 on my Debian Wheezy box, via apt-get. When I run the upgrade, it's the only package that does not install. # apt-get upgrade -y Reading package lists... Done Building ...
1
vote
0answers
15 views

Why would whois take up 100% of the CPU?

Running top on my CentOS web server shows an instance of whois running from 99-100% of one of the CPUs. I've not knowingly used whois on this server before, would it be safe just to kill this ...
0
votes
0answers
10 views

Port forwarding Configuration for Webcam

I have a webcam which is streaming via mjpg-streamer on http://localhoste:8121/?action=stream. Now, I'm wishing to access the camera from outside. I'm using an DDNS system and now I have a domain name ...
-1
votes
2answers
35 views

How to use all the inodes

Without creating a file can I use any inode which is free? I want to write a script that will use all free inodes in the system. is it possible?
0
votes
1answer
14 views

Why scp with compression takes longer than without compression

I was playing around and noticed that secure-copying with compression takes longer than without compression time scp -C ./test.sql user@vmware:/home/user real 0m42.758s user 0m40.455s sys ...
1
vote
2answers
30 views

running ./install as root

I mounted an .iso file and want to run the install file on it which is going fine. Then, at some point, the installer tries to make a new folder to install the program in. This, however, seems not to ...
0
votes
1answer
21 views

Help understanding and using Symlinks

I have a bit of a situation with a virtual server running some RHEL distro. The server is hosted on a Win2008 server via VMPlayer ( I'm going to smack the guy who set this up.) When it was created ...
1
vote
2answers
26 views

Find and delete duplicate txt files

I have a folder with around 300 text files, is there any command that reads every every file indivdually and deletes the duplicate files? I mean the content and not the file names.
1
vote
0answers
4 views

Interfacing with input stack to fix discontinuity on touch screen

The touch screen on my laptop works perfectly fine except for one problem: due to a crack running down its center, there is a large discontinuity in the touch screen to display coordinate mapping ...
0
votes
1answer
17 views

how to install any linux distribution from existing ubuntu [duplicate]

I have Ubuntu 14.04 and I want to install FreeBSD,SUSE or which distro is possible but I need to do this without any USB Install or DVD. Actually I'm looking for something like wubi but as I said ...
-2
votes
0answers
16 views

external hdd not opening

This is the output I got for my external Sony HDD $ sudo fdisk -l br Partition table entries are not in disk order Disk /dev/sdb: 1000.2 GB, 1000204885504 bytes Device Boot Start End ...
0
votes
1answer
6 views

unlisted screen resolution

on my new computer I have 2 screens connected on the igpu of a i7 processor, 1 using hdmi. the other using dvi. Both screens are the same but 1 has a wrong resolution inside X, and it can't be ...
0
votes
0answers
14 views

Script GUI problem

I have an application in C++ which show a ipcamera video when I send it a value by ethernet. I want that the application start at boot in automatic way. This is my script: #!/bin/sh ...
0
votes
0answers
3 views

Fedora can't properly load a .ovpn file (openVPN configuration file)

When trying to use a .ovpn file in Fedora it doesn't load the certificates correctly. It opens the file, but all the certificate spaces are empty and I can't load anything into them. I can manually ...
0
votes
0answers
6 views

troubles mounting qcow2 image of QEMU

Have been trying to mount QEMU image with qcow2 type on Fedora 20 host, accortding to this article http://docs.openstack.org/image-guide/content/ch_modifying_images.html It appears that 'vgscan' ...
0
votes
2answers
17 views

Rename multiple files

Preface: I am an absolute novice with Linux, please don't judge strictly. I have a directory containing several images (over 100) of a .pnm extension. I wish to rename them in such a sense, that ...
2
votes
2answers
25 views

In AIX, how can I replace a newline with sed?

I've got text with whitespace (including a newline) that I need to replace. I'd like to use sed, but AIX doesn't seem to support the answers to sed newline questions I find here: If I run a command ...
0
votes
0answers
10 views

Logging into a VirtualBox Fedora virtual machine

I created a Fedora 20 virtual machine with VirtualBox 3.18. I created a host-only network adapter for it, it has the ip address 192.168.56.1 . I ping that address from the host, it works. I try to ...
0
votes
0answers
7 views

ZFS: subfilesystem is not accessible via NFS

I create two zfs datasets as described in ZFS Sharing Inheritance: zfs create -o mountpoint=/mnt/tank/ds tank/ds zfs create tank/ds/ds1 zfs set sharenfs=on tank/ds After that I'm able to access ...
0
votes
0answers
20 views

Yum not working at all

I ran the command yum clean metadata and then ran the command yum update. When I ran the yum update I now get the following errors Loaded plugins: product-id, security, subscription-manager This ...
0
votes
0answers
6 views

Log monitoring directly from a mail client

I have a mutt mail client installed for receiving backup logs on my server for monitoring, Is there a way I can read the body of a mail message directly in the client in a way that I can search for a ...
0
votes
0answers
9 views

hciconfig -a Connection timed out (110) , bluez, btusb - Bluetooth Not Working

I am experiencing this issue on my raspberry pi. After a while of my python program running, it seems like one (or more) of the bluetooth adapters will "lock up" and hciconfig -a will output: : ...
2
votes
1answer
12 views

Is it safe to install software globally with npm?

The node.js package manager, npm, has an option to install packages globally. Since distributions typically have their own package manager, is it safe to use the global option? Could npm packages ...
2
votes
1answer
16 views

How to reliably get timestamp at which the system booted?

I'm aware of the uptime command, but it returns seconds since booted, so if I just substract that number from current timestamp, in theory I can get a different result if second changes after I've ...
0
votes
0answers
6 views

Problems with dependencies installing MySQL Workbench on Red Hat 6

This is my repository list: HighAvailability LoadBalancer RHEL6DVD ResilientStorage ...
1
vote
1answer
20 views

cp and set new user

I configure linux servers with some regularty. And then copy with ssh-copy-id my public key to the root user (/root/.ssh) and edit authorized-keys. If I install additional services, sometimes ...
0
votes
1answer
17 views

7z command for unzip -p -a [duplicate]

I have a command line execution in my .sh file which unzips the file which is in zip format. Below is the command which unzips the file unzip -p -a. elif [ "${FILECOMMANDOUTPUT}" = "Zip" ] then ...
3
votes
2answers
56 views

Count nul delimited items in file

I have a shell script which uses find -print0 to save a list of files to be processed into a temporary file. As part of the logging I'd like to output the number of files found, and so I need a way ...
1
vote
1answer
14 views

Output of a python script running as unit is out of order while shells seems unnafected

How would I get all outputs of systemd managed python2 script instantly into journal, just like it appears in terminal I'm on centos 7, but seems to be same on arch according to systemd manual, ...
3
votes
4answers
106 views

How do I show the numeric character sequence of a string?

Is there a command either standalone or in vi or similar (can be gui) that will show me the numeric sequence of a string? Input: The cat hopped in a box. Output: T h e c a t h o p p e d ...
0
votes
0answers
10 views

Debian: Installed packages only from disk image

Hy, my Raspberry running Raspbian crashed but I would like to know which packages I had installed on that SD card. Is there a way to detect that without actually booting the system?
3
votes
1answer
15 views

How to log all system calls made by a process and all its descendants with auditd

I can do auditctl -a always,exit -S all -F pid=1234 To log all the system calls done by pid 1234 and: auditctl -a always,exit -S all -F ppid=1234 For its children, but how do I cover the ...
1
vote
5answers
53 views

List files with line count and date

I want to be able to list files showing the number of lines the each file has and the date. I can happily get the line count using wc -l *. Not a problem. I can get the date using ls -l. Is there a ...
1
vote
0answers
12 views

Can't boot from RAID array - arrays not assembled at boot

On my lubuntu 13.10, I created a degraded RAID array, copied all the contents of the "main" disk and tried to boot from the array. I mostly followed these instructions. At boot the system does not ...
1
vote
1answer
13 views

What is the name of the app displaying custom text in fullscreen size?

I have seen years ago a very handy application: the command displayed it's first argument enlarged to fit the whole screen. For example... thiscommand AA ...then you could see two very big A ...
0
votes
0answers
6 views

Tomcat7 cluster don't replicates session

I have a Ubuntu with 2 Tomcat7 with a cluster configurations. The balancer is Apache MOD_JK. SERVER.XML: <Engine name="Catalina" defaultHost="localhost" jvmRoute="no0"> <Cluster ...
0
votes
0answers
9 views

Why does 'select' sometimes hangs in a 'smbclient' call?

On a gentoo Linux system I am doing the following smbclient call: /usr/bin/smbclient "//10.0.0.10\volume" "admin" -U "xxxx" -W "WORKGROUP" -D "files" -c "ls" which in most cases works fine and ...
1
vote
1answer
27 views

line 4: 5 + : syntax error: operand expected (error token is “+ ”)

noticing the error mentioned in the subject line when trying to execute the below listed bash script on Ubuntu (53-Ubuntu x86_64 x86_64 x86_64 GNU/Linux) #!/bin/bash read x y echo $(($x + $y)) ...
0
votes
0answers
7 views

Using a GE mouse with osx Yosemite [on hold]

I'm trying to use a windows mouse that I bought on my apple laptop. I know that logitech's mouse have a control center app which you can use to switch windows and move between desktop using your ...
0
votes
2answers
39 views

What filesystem am I currently working on?

I would like to know in what filesystem I am currently on, similarly to using pwd to know what directory I am in. I know you can use df . (or df $(pwd) or many variants), but I find it somehow ...
1
vote
2answers
27 views

Combination of echo, pipe and cat

I have a file name called temp.csv in my script one of the intermediate step is echo "some info" > final.csv | cat temp.csv >> final.csv at times the file final.csv is created without ...
-5
votes
0answers
39 views

How exactly the file opened in LINUX [on hold]

What exactly done when i open a file? process>filedescriptor>process wide open table> system wide open table The above information I know but I Want to know full knowledge(in depth) of the file open ...
0
votes
0answers
16 views

Ubuntu init script failed - trying to find out more detail about the error

my /var/log/boot.log shows this under Ubuntu 14.04: ... * Starting servicename chown: invalid user: ‘username’ No passwd entry for user 'username' * Starting ... ... The init ...
0
votes
1answer
26 views

Use git pull via ssh command invoke

When I log in to my server via SSH, I am able to use git over ssh (private repository): user@local:~$ ssh example.com Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 2.6.32-042stab083.2 i686) * ...
1
vote
0answers
9 views

Why does `libc6 ` depend on `libgcc1`?

I was going through the dependencies of some packages with apt-cache depends and found, that the libc6 package depends on libgcc1, which in turn depends on gcc-4.9-base. Shouldn't such a fundamental ...
0
votes
0answers
11 views

Change encoding of a text file in-place: iconv alternative?

Apparently, iconv is unable to use the same file as input and output file. Other tools, e.g. sed, have an -i switch that allows "updating" a file in-place. (Under the hood, temporary files are ...

15 30 50 per page