0
votes
0answers
2 views

USB install of Linux Mint - only shows up as a single partition but i've ran out of space

I recently set up an installation of Linux Mint Maya 13.2 on a USB stick. I set it up with UNetBootin (http://unetbootin.sourceforge.net/). When this sets up the drive, it makes a "regular" ...
1
vote
0answers
6 views

How to un-commit a file in git?

I have did git commit <file> for a file and also submitted that file with git submit <file>. but now i want to un-commit the changes. i have also tried git reset HEAD~1 <file> ...
1
vote
1answer
15 views

Unable to install new kernel in ubuntu server. “gzip: stdout: No space left on device” error even though abundant disk space

I am trying to install a new kernel on Ubuntu Server and I am unable to complete it due to a "gzip: stdout: no space left on device" error. The full error was produced after running sudo make ...
1
vote
1answer
32 views

unix file is corrupted

I discovered that one of my logs consumes lots of space which comes from a running process. I wanted to clean this file, so I can run logadm to rotate it after. but I don't know how # ...
-1
votes
1answer
30 views

How to create a new line?

In the below command I am sending the mail . in the mail the meter id is being sent if [ -s "$TMP_RPT_FILE" || -s "$TMP_RPT_FILE1" ] then if [ -s "$TMP_RPT_FILE" ] then ...
1
vote
0answers
12 views

Understanding the relation between FreeBSD kernel configuration file and actual device

To my understanding, FreeBSD's kernel is configured via text files. Each kernel configuration entry is on a single line. Many entries also have comments set off with a hash mark. The GENERIC conf. ...
-1
votes
0answers
11 views

How do i apply this patch to my current kernel?

i am trying to install this patch to my current kernel /usr/src/linux-headers-3.19.0-25 in order to use the gspca module for a keychain camera device. i tried running patch command and the result ...
0
votes
1answer
27 views

What's the most efficient way to log crontab shell script errors with error occurred time?

A common way to log crontab task errors looks like below: 1 */8 * * * sh /pseudo_path/test.sh 2>> my_err_log It's a concise command, but it can't record the error occurred time, and the path ...
0
votes
1answer
16 views

Is there a way to disable recursive make?

If I have a makefile I have to use that is using recursive make, is there an easy option to disable that? http://aegis.sourceforge.net/auug97.pdf
0
votes
1answer
14 views

Why can't change runlevel from 1 to 5 in my debian7.8?

In my debian7.8,the runlevel can change from 5 to 1,when to enter into runlevel 1 from 5,to input then command on the console: init 5 INIT:switching to runlevel 5 INIT:sending processes the TERM ...
0
votes
2answers
26 views

Variable expansion inside parenthesis and quotes

In the script below, I can't seem to make $var1 expand in the second statement. I've tried $var1, ${var1}, echo $var1 and '$var1'. It is inside a few sets of quotes and parenthesis which I guess is ...
1
vote
0answers
31 views

Who is this UID and GID? [duplicate]

When I do an ls -l on my ubuntu machine it shows the number 6226 as the UID and GID for some directories. Why? Most files and directories are owned by root, or by ubuntu (which is my usual login ...
1
vote
2answers
21 views

Why are RDP clients on Linux much slower than on Windows?

I have a Windows 8.1 remote PC, to which I am connecting using RDP from Windows 7 and Linux clients. I noticed that the performance e.g. when scrolling is much better on Windows than on any Linux ...
0
votes
0answers
9 views

What permissions apply if specific user's permission on file or directory differ from user's group to which this user belong to in Linux? [duplicate]

Case 1: User has "rwx" permissions to certain file or directory. But has no permissions "---" in group it belongs to. Question: who wins - Does user have "rwx" or "---", effectively (not what's ...
3
votes
1answer
21 views

Bash script with conf file with unknown number of sets of variables

I am writing a bash script that has a configuration file. The configuration file will have sets of mode and mtu values. There can be zero or as many sets as the user defines. The bash script will ...
0
votes
2answers
20 views

Bash output command too large, can't read it!

I'm having some troubles on Ubuntu 14.04 initialization, it fails to mount an SSH folder and gives me the option of a manual recovery by pressing M, displaying a command-line logged at root user for ...
0
votes
0answers
8 views

pulse_output failed to play: suspended

I have mpd running as a system service and as user mpd. Since mpd is a system service and pulse audio is session-based, I have to stream music from mpd to the currently active pulse session daemon. ...
1
vote
2answers
20 views

fakeroot cdebootstrap: Failed to unshare: Operation not permitted

On Debian, when running: $ fakeroot cdebootstrap stable /tmp/foo cdebootstrap downloads the packages, but when it has to extract them, I get this error: E: Failed to unshare: Operation not ...
0
votes
0answers
23 views

Problem accessing robots.txt from search script

I have been using the Perlfect Search Script http://www.perlfect.com/freescripts/search/ for several years on my sites. For reasons unknown it stopped working properly a few months ago. When I run the ...
0
votes
0answers
12 views

'pkglibexecdir' is not a legitimate directory

I'm following some outdated instructions in an attempt to compile some proprietary, closed-source, unsupported, legacy code. Here is what a typical shell session looks like: $ autoreconf -fi ...
0
votes
1answer
26 views

Is the return value “-1” of the function socket close() method possible?

Under which circumstances is it possible to produce a return value of -1 when closing a network socket using it's close(int fildesc) method? I suppose it is possible with an invalid fildesc number, ...
0
votes
0answers
18 views

Table of Scenarios for Sensitivity Analysis [on hold]

I want a table of scenarios, including columns not only for the input variables for each scenario but also critical result variables for sensitivity analysis. How can I do this in LibreCalc?
1
vote
1answer
15 views

Mounting a btrfs image file

I am trying to perform a recovery operation on a btrfs image file that I have extracted using # dd if=/dev/sda1 of=/mnt/sda1.img The file seems to be properly extracted: $ file sda1.img sda1.img: ...
0
votes
0answers
8 views

debian testing hangs on wakeup from s2disk / s2ram

My machine (ThinkPad x230) hangs on wake up from s2disk or s2ram after a recent aptitude safe-upgrade. I am on testing. Not sure where to go from here. Searching on Google produces many old results.
1
vote
2answers
39 views

Grep and ignoring leading whitespace

I've been working on a bash script to search for names of defines, and then grab the hex values for them and put them in the list. Once I have the list of names I'll attempt to search for "#define ...
1
vote
2answers
20 views

Jump to specific flag in help/man file

Let's say I'm curious about what a specific flag -T means for a command ls? Is there a way to jump straight to that using man ls...? or, and this is a slightly different question because it's not ...
1
vote
1answer
16 views

Using Sed to replace n character before keyword including keyword?

For replacing everything before a keyword piece of code below works well. sed 's/.*keyword/string-to-be-replaced/' But for replacing n characters before the keyword including keyword I couldn't ...
1
vote
2answers
18 views

Is there a way to tell how a user authenticated their SSH connection ? i.e. whether it was by password or by public key?

I'm locking down my server to use public-key only. I just want to make sure before I flip the switch that all my users have already made the transition, and nobody is left using passwords to log in.
1
vote
1answer
23 views

How can I replace the stock driver module inside a Linux ISO?

In particular, I want to replace the stock network drivers (r8169) with something else (r8168) in the installation ISO. Is this possible? Currently, I have to install Ubuntu/Debian/CentOS (same ...
1
vote
1answer
23 views

Installation date and virtual status of the machine( For Darwin, FreeBSD and NetBSD)

How do I determine installation date (when the system was first booted) for Linux,Darwin, FreeBSD and NetBSD? Also, Is there any way to get the virtual status of the these machines (whether the ...
0
votes
1answer
20 views

How to rotate log files [on hold]

i have made a script to zip my log file but by mistake both file is there in directory original and zipped. so is there any command can be used so that i can remove the original file only in one ...
0
votes
0answers
6 views

Ubuntu's Search photos comes up every time I move the mouse

I'm running ubuntu 15.04 on an intel NUC and every time I move the mouse quickly to the left the "Search Photos" window comes up. It does not matter in which application I'm currently in. If I move ...
0
votes
1answer
30 views

How to send the Escape Key inside VirtualBox “vi” session?

When using a "vi" session within VirtualBox, how can I send the Escape Key to change modes from input mode to command mode? I have tried many combinations which do not work: Ctrl-Esc, Atl-Esc, ...
0
votes
0answers
10 views

how do I update client certificates in openvpn?

I am using OpenVPN to secure access to apps running on a CentOS 7 server. Each authorized client has a key which is used to connect to the server using OpenVPN. The problem is that the keys are just ...
0
votes
1answer
17 views

running screen in a shell can't find sessions but running screen during ssh login can

I am using the RemoteLoginAutoScreen script to start a screen session when I ssh into a host. Differences from linked script: I am using zsh and the RemoteLoginAutoScreen uses bash The problem that ...
0
votes
1answer
25 views

How do I make a python daemon run at bootup?

I am writing a Python program that will act as a custom converter for a hardware application for me on the raspberry pi. I have written python code to act as a daemon, but how do I go about making it ...
0
votes
1answer
12 views

Sending special characters and new lines via KANNEL

Howto send message to kannel with lines and special character. Example if I have file message.txt which have following text line1 with few special characters like @ " / : line 2 spaces words etc line ...
2
votes
1answer
10 views

Taking a clone of a customized RHEL server hosted in a data center remotely

We are planning to upgrade OS to RHEL 6.6 on all our servers. All our servers are located in a data center. We have to follow a repeated process of installing application stack, securing, hardening ...
0
votes
1answer
17 views

Grub reboots PC after showing only “Grub loading.”

I have this old computer I use for the more experimental OSes, and about a month ago I installed Gentoo on it, with GRUB2 as boot loader. Everything worked fine, but every boot it would show an error ...
-2
votes
1answer
33 views

how to delete swarm of ._ files using commandline

I have these files in MAC which have weird ._ character before filenames/folders. Which I want to delete in one shot. Is there a way to do it in commandline? eg. ._js ._css ._image if I go into ...
0
votes
0answers
28 views

Drawing a histogram from a bash command output

I have the following output from a miRNA Predictor: Read Sequence:hsa-miR-576-3p MIMAT0004796 (22 nt) Read Sequence:gi|182396|gb|M74088.1|HUMFAPAPC Human APC gene mRNA, complete cds (8972 nt) ...
1
vote
2answers
12 views

How to exclude a directory when zipping files

I'm trying to exclude a certain directory when building an archive using zip. Here's what I have tried: $ zip home.zip -y -r HOME -x '/AppData' -x '/AppData*' -x '/AppData/*' -x 'AppData' -x ...
1
vote
1answer
19 views

Arrange program windows out of bash script?

I'm writing a shell script to automatically launch my work environment. It would be pretty nice to arrange the program windows automatically (for example vim opens at the left on desktop, and browser ...
4
votes
1answer
15 views

How do I configure SSH so that OTP can be used with ssh-copy-id and then only keypair authorization is accepted?

As you may be able to tell from the title of this post, part of my confusion may stem from an inability to express the question, so please bear with me. Here is what I am trying to accomplish: ...
2
votes
1answer
14 views

Why Nginx is not rejecting wrong hosts?

This is my config: upstream beta { server localhost:49213; } server { listen 80; server_name beta.example.com; location / { proxy_pass http://beta; } } server { ...
2
votes
0answers
11 views

How are XFS deltas for xfsdump -l n calculated?

I have a xfs filesystem with many small and a couple very large files (~100GB), its on a lvm2 volume. I want to do incremental backups from it. Is there any computational overhead when using a tool ...
0
votes
0answers
8 views

why does docker use space on the root even with an LVM setup?

I've followed the procedure here to set up docker to use the LVM on CentOS. nonetheless, it's busy using space on the root file system via /var/lib/docker; it managed to fill up the root file system ...
0
votes
0answers
4 views

LSF bsub implimentation of LUT

We have an implementation of LSF (bsub) on our HPC system. I want to run a model several times with various input parameters. I will have a table either csv or other format with the required ...
1
vote
3answers
92 views

Which is the command for show all property of my PC on terminal

Which is the command for get this:
1
vote
1answer
32 views

How do I find a file name that's exactly 8 levels deep?

I'm using the 'find' command to search for files in a backup system. I want to find all file names containing a certain string (e.g. 'XYZ') that are exactly 8 levels deep. Is there a find syntax that ...

15 30 50 per page