0
votes
0answers
6 views

Bash scripts ran from from gnome/nautilus don't have enviroment variables

In my ~/.bashrc and ~/.profile I have some variables set to some filepaths: export MY_VAR1="/path/to/somewhere" In my ~/bin/ (which is added to my PATH) I have a few scripts that rely on those ...
1
vote
2answers
8 views

How can I shutdown a RHEL server at 06:45 tomorrow morning?

I just received notification that our site has a power outage tomorrow morning. I am a Windows admin but I have to cover for our Linux admin who's not around until tomorrow evening. I need to ...
0
votes
1answer
6 views

is there any command to execute apt-get update and upgrade?

I've ever wonder why there isn't a command in linux (debian and related distros) that instead of having to create an alias for a command like: sudo apt-get update; sudo apt-get upgrade why not ...
0
votes
2answers
13 views

Securely making an SSH connection from a public computer

Today, I had to remotely connect to my debian computer at home to fix an issue with a VPN server. I was using my iPhone with an SSH client to fix the issue, but I had a hard time due to the small ...
-2
votes
0answers
32 views

Does anyone know how to make a text based game in Unix [on hold]

please help me I don't know what I'm doing send a link from a video or code I only know Unix code
0
votes
1answer
28 views

Copy directory with SCP

I'm trying to copy directory from local drive to remote server with -r parameter, however I'm getting: scp: System error: 1633648 (Failed to retrieve error string (err:317)) This is the syntax I ...
1
vote
1answer
10 views

Convert video to exactly the same format as another video

Suppose I have two video files A and B. Now I want to convert A to the same format (i.e. same container, same audio and video codec), same bitrate, size etc. as B. Is there a way to do this ...
0
votes
1answer
30 views

Using s command to subsitute variables

I need to replace a incorrect Illumina fasta header for formatting in QIIME, and this script doesn't quite work like I want. I need to able to put in variables and use the unix "s" command. Any ideas? ...
0
votes
0answers
7 views

expanding the priorities table in runqueue in Linux kernel

I have a hw assignment that I'm having really hard time with, probably since I'm new to the whole Linux kernel thing. we're supposed to add a new scheduling policy to the existing scheduling ...
0
votes
0answers
6 views

Merge and export OCRed text into and from a pdf file

Given a pdf file, and a html file in hocr format for the OCRed text, can we merge the OCRed text into the pdf file? Conversely, given a pdf file with OCRed text, can we export its OCRed text in hocr ...
1
vote
0answers
9 views

Is it safe to symlink to /usr/include/x86_64-linux-gnu/sys from /usr/include/sys?

I'm missing the /usr/include/sys dir and all of its headers. I have build-essentials and supposedly every other -dev package I require for this make. From reading around I understand that it's safe ...
0
votes
0answers
3 views

Solaris, EMC VNX and HDS

So, I'm migrating a storage from HDS to EMC and unfortunately they are on the same FC card and port. Since they both require different options I need to set up that the luns from EMC will have io ...
0
votes
3answers
42 views

How to hide a content of a file?

Is there any way to hide the content of a file? Suppose I have the file bind which contains the following line: This is a test. After saving the file, it should not display its content. Is there ...
2
votes
1answer
24 views

What application can I use to block hosts with regex?

Is there any tool/application that I can use to block hosts from all forms of connection from my computer? Currently I use /etc/hosts and place the absolute host like this: 127.0.0.1 ...
0
votes
0answers
4 views

Auto-refresh NAS list in FreeRADIUS?

We're using FreeRADIUS to allow routers to our hotspot network: FreeRADIUS Version 2.1.12, for host x86_64-pc-linux-gnu, built on Feb 24 2014 at 14:57:57 We filter routers by their nasname in a ...
2
votes
1answer
16 views

Cache directory and file list to prevent hard drive access when browsing contents

I have 7 hard drives that are in a virtual pool (mhddfs) so they appear as one directory. I put them to sleep after 5 minutes of inactivity to save a significant chunk of power. The problem with this ...
1
vote
2answers
42 views

How to get 2 different outcomes from 1 file in unix?

So I'm trying to make a dungeon and I want to have 2 different responses when I enter the one room but I thats as far as I can get. How do I get 2 different outcomes from 1 file? So when you open a ...
-1
votes
0answers
38 views

Cut specific characters into columns [on hold]

I have a file as below: 2043630001007316220473533459926000000000003960CANDOVER INVEST S LONGHURST EXP 143292043630001007304400000000000000000000000000000 ...
0
votes
1answer
24 views

outgoing SMTP 25 port blocked by ISP?

I just setup postfix but I just realized my ISP outgoing blocks port 25 (SMTP). How do I send email outside? I can see my mail queue is filling up. Any suggestion?
0
votes
0answers
9 views

From a sparse file to a block device

I have a system image sparse file which actual size is only a few MBs but the "apparent size" is about 1GB. I'm trying to write it to a block device efficiently (without the holes). Here are some ...
0
votes
1answer
42 views

bash script programming question

Why the stomach of cat has ": No such file or directory" ? Help me please! #! /bin/bash if [ $# != 1 ] ; then echo wrong arg,please input one arg exit 1; fi if grep '^[[:digit:]]*$' ...
2
votes
1answer
16 views

Tool to add hierarchical structure to output, similar to tree

Is there a tool that is similar to tree which could be used in conjunction with echo? I want to easily prepend hierarchical structure to output. I know I could write it, but if a solution ("do one ...
0
votes
1answer
14 views

Can I use my original GPG key even though I've re-installed Linux?

I'm a Debian user. I just created my own GPG public key. I'm just wondering if I re-install Linux on my system, is it possible to use the original GPG key or do I have to create a new one? NOTE: If ...
0
votes
0answers
8 views

security level xrdp is 0 - error

I have a problem with xrdp. is very strange, because I have two accounts on the server, and one I can always access it, while another almost never. Every time I try to get in, I get these data: ...
0
votes
1answer
9 views

How use mutt to manage /var/spool/mail/user

I've just installed apticron to get mails as available update notifications. Now I was wondering if there was a way to set up mutt to manage my mails from /var/spool/mail/daedalus? I'm on Debian ...
0
votes
0answers
26 views

Linux Fedora 20: how can I find out what is happening behind the scenes

I have Fedora 20 installed, using MATE desktop and zshell and something weird is going on. I get lots of odd unexplained beeps from my speakers, even though the volume is turned down to zero, so ...
2
votes
1answer
14 views

Decode / summarise strace logs

OK, so it's no secret that strace produces vast amounts of output. (I'm aware there are various options to filter the output a bit.) Are there any tools to process a raw strace log into something ...
1
vote
1answer
3 views

Virtualbox list vrde port for vm on commandline

I have a Virtualbox VM that is configured with VRDE for remote access using RDP. I'm familiar with how to set the vrde port, but for a given VM I have not found a way to query the current vrde port ...
1
vote
2answers
15 views

Does CentOS 7 incorrectly sort kernel menu entries in grub.cfg?

I've noticed an unexpected ordering of grub menu entries on a CentOS 7 system: It has following kernels installed: $ ls /boot/vmlinuz* -ltr Jun 30 14:17 /boot/vmlinuz-3.10.0-123.el7.x86_64 Nov 6 ...
0
votes
1answer
16 views

Cycling through the *Buffer List* with C-n, C-p

Is there a way to use the C-n or C-p shortcuts (or some other shortcut) in the Buffer List to cycle through the list of buffers? Currently when I get to the top (or bottom) of that list it doesn't ...
0
votes
0answers
9 views

Internet not working in Fedora and Windows 7 PCs, IP conflict problem?

I have 25 new computers with Fedora 20 and 15 old computers with Windows 7 as the OS. For connecting all PCs, I've used star topology in which there's one 24 port D-link switch and one 16 port D-link ...
0
votes
0answers
18 views

gnome3 using i3 as the window manager

I am trying to set up a new Debian machine similar to my old Arch machine, using Gnome3 and i3 in concert. However, I am having issues starting my session, when I select it from the gdm login panel I ...
1
vote
1answer
8 views

Update single package from Ubuntu Utopic Unicorn when running Trusty Tahr

I'm tasked to update a package on a Ubuntu Server Trusty Tahr installation. Specifically rfc5766-turn-server which is really old on Trusty. https://launchpad.net/ubuntu/+source/rfc5766-turn-server ...
1
vote
3answers
43 views

How to test for unknown commands in shell script?

I would like to know, if there is a way to go through a shell script and getting a warning for every command, that is unknown. I know bash -n for syntax checking, but it doesn't tell me, if there are ...
0
votes
1answer
17 views

Confusion about basic bashscript loop - until/done

I have a bash script I'm working on to help with an installer. why doesn't this work? function fn_myFunc(){ local MYVAR=0 until ["$MYVAR" -ne 0]; do whiptail --yesno ...
0
votes
2answers
11 views

Debian install failing due to CDROM not being detected

A similar question got asked but got closed. If you install Debian 7.7 to a USB in Windows with unetbootin and then try to install Debian from that USB, it will complain that it 'cannot mount CDROM' ...
1
vote
2answers
15 views

service vs. systemctl scripts — which to use

In Fedora we have 'systemctl' and 'service' scripts. It seems that service internally calls systemctl. So what is the correct/right way on Fedora to start or stop services -- via systemctl or service ...
2
votes
1answer
20 views

enable echo service and linux security loophole issues

in order to enable the echo service we need to add the echo lines as the following example : more /etc/inetd.conf echo stream tcp nowait root internal echo dgram udp wait root ...
0
votes
0answers
19 views

How do I find out how long a socket is in CLOSE_WAIT?

I have a server relatively with a high number of sockets in CLOSE_WAIT I want to know the age of each socket, to know if it's a real problem (sockets not getting closed) or that the sockets are ...
7
votes
2answers
159 views

Start a process on a different tty

After about an hour of Googling this, I can't believe nobody has actually asked this question before... So I've got a script running on TTY1. How do I make that script launch some arbitrary program ...
0
votes
0answers
3 views

Can Nautilus-Actions Configuration Tool be used with Nemo file browser in Cinnamon?

In the past I used Nautilus-Actions Configuration Tool with Nautilus. Can that be used with Nemo File manager (a fork of Nautilus originally)?
1
vote
1answer
29 views

Add 10 to a value in large xml file

I have in a large xml file some hundred svg graphs where I want to change the <svg:g transform="matrix(1 0 0 1 59.06 88.74)"> 88.74 to 98.74 i.e to add 10 to every line that starts with ...
0
votes
0answers
10 views

Syncthing daemon starts manually using script, but not at startup

I have installed syncthing on a Linux Mint Debian Edition machine and am trying to get it started at boot time using an init script in /etc/init.d. I followed this tutorial. Symlinks in /etc/rc.* ...
-2
votes
0answers
19 views

Windows 8.1 boot option is missing after installing CentOS 7, how can I get it back? [duplicate]

I recently installed CentOS 7 on a machine that has been running Windows 8.1. I did a dual boot installation and installed CentOS in a partition. But when I boot up my machine, it only gives me two ...
0
votes
1answer
11 views

How to install Couchbase on ArchLinux

Is it possible to install CouchBase in ArchLinux? This database looks so promising, but they only provide .deb, .rpm, windows, and mac version. http://www.couchbase.com/nosql-databases/downloads
0
votes
0answers
13 views

CPU load and power management (frequency)

I just noticed that the information that my system has a load of 2.7 (with four cores) is probably of little use: start cmd: # grep "^cpu MHz" /proc/cpuinfo cpu MHz : 800.000 cpu MHz ...
0
votes
0answers
3 views

Capturing data from a Fluke 1620a via Bash /dev/tcp file descriptor

I am currently trying to develop a script that will connect to a Fluke DewK 1620a Themo-Hygrometer and pull the current temperature and humidity readings from the device. While these devices have a ...
1
vote
1answer
31 views

Sort and count number of occurrence of lines

I have Apache logfile, access.log, how to count number of line occurrence in that file? for example the result of cut -f 7 -d ' ' | cut -d '?' -f 1 | tr '[:upper:]' '[:lower:]' is a.php b.php a.php ...
1
vote
1answer
23 views

Cinnamon: How to get path in text on GUI window, and how to open terminal at current GUI-window location?

I want to know how to set it so that I see the graphical directory path in text instead of buttons in Cinnamon. I also want to know a way to open a terminal at the GUI-window's current path. Like ...
0
votes
0answers
6 views

Loopback (bind) mount automatically mounting additional ext4 USB drive

I have a USB (ext4) drive connected and it's registered in /etc/fstab. It mounts at /media/Backup fine. I want to mount a specific directory on that drive using a bind / loopback mount (this is ...

15 30 50 per page