0
votes
0answers
2 views

Bash: command substitution with multiple unset/export commands

I am trying to unset some variables and export others using command substitution. This works: $(echo " export TEST_A=1 export TEST_B=2 ") And this too: $(echo " unset TEST_A ...
0
votes
0answers
2 views

GHOST: glibc gethostbyname buffer overflow

https://rhn.redhat.com/errata/RHSA-2015-0092.html I can see md5sums of the packages, but cannot download them and my package manager says I'm up-to-date. [root@notebook log]# grep glibc-2 yum.log | ...
2
votes
2answers
15 views

The output I get via “echo” works as a command when pasted to terminal, but not in the script

I'm trying to change the files generated by an app that unfortunately often contain spaces. I have managed to get "echo" to give me output that works if copy pasted into terminal, but when I try to do ...
0
votes
0answers
2 views

debootstrap fails getting Emdebian

Following guidelines of this doc to create Embedian Squeeze rootfs $ sudo apt-get install debootstrap $ sudo debootstrap --arch=armel --foreign squeeze rootfs/ http://www.emdebian.org/grip/ W: ...
0
votes
0answers
11 views

Directory name convention

I'm trying to be consistent in my system with some logic to name a directory either singular or plural. Examples of directory names document(s) language(s) apple(s) The way I see it now is: ...
1
vote
1answer
5 views

What is the functionality of SCHED_SOFTIRQ in linux?

Who raises this softirq? Is it raised on every time tick( based on timer interrupt?) Does this make the kernel to shedule a runnable process? If yes, how does the handlers of lower priority softirqs ...
0
votes
0answers
6 views

Installation progress in Gnome3 Software app

When one use Gnome3 'Software' app to install some large app, there is no clear indication of progress of installation like: list of resolved packages, what package is being downloaded or installed. ...
0
votes
1answer
9 views

ERROR: no tty present and no askpass program specified ; TTY=unknown ; PWD=/ ; USER=root ; [duplicate]

In my /etc/sudoers.d/myAppCommand file I set some command like this. Cmnd_Alias APP_CMD = /opt/myApp/lib/app-start, \ /opt/myApp/lib/app-stop, \ ...
1
vote
0answers
5 views

How to make Raspberry Pi to receive an IP from a router and also pass another IP to another device?

I know that I could achieve the desired result with an Ethernet switch, but I'm curious if I can get this with some cheaper solution. Essentially, the idea is as follows: Rapsberry Pi has two ...
7
votes
2answers
46 views

tar to pipe but keep -v verbose output separate from STDERR

A normal tar command tar cvf foo.tar ./foo >foo.out 2>foo.err has three output IO streams archive data to foo.tar list of filenames to STDOUT (redirected into foo.out) error messages to ...
0
votes
0answers
11 views

Sharing a LAN printer over a subnet

Two scenarios for you: ROUTER1 / \ / \ PRINTER DESKTOP1 [96.96.96.10] [96.96.96.11] ROUTER1 / \ / \ PRINTER ROUTER2 ...
0
votes
1answer
10 views

php connect to mysql

I am using Trisquel 7.0 LTS and installed php5 and php5-mysql. All php scripts working properly.(I used to write my-learning scripts in /var/www/html/xyz.php and all is working by ...
-1
votes
0answers
7 views

implementation of buffer allocation algorithm [on hold]

REFERENCE: Notes on Unix I/O buffer Management M.J Bach: The Design of the UNIX Operating System, Chapter 3 i want to implement algorithm for buffer allocation in java plz help me
1
vote
1answer
17 views

(solved) External HDD partition not showing

I have problem with an external HDD. I am using Debian Jessie The partition is not showing, I can see only the device: # ls /dev/sd* /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda5 ...
1
vote
1answer
6 views

Crunchbang: Can't use simple-scan without administrator rights

I'm running the latest version of Crunchbang 64-bit on a Dell E5510 notebook. Installing my printer and scanner worked fine - I just used an existing Ubuntu tutorial. However, scanning without ...
0
votes
1answer
10 views

Mark files,folder in color using Debian Wheezy/Gnome

I'm using Debian Wheezy with Gnome. Does anyone know if it is possible to mark individual files, folders, etc in different COLOR like under OSX? That was a feature of OSX I used a lot before migrating ...
1
vote
3answers
36 views

Unix: Add unique names after signs in text

I have a file looking like the following: abcdefghijklmnopqrst // abcdefghijklmnopqrst // abcdefghijklmnopqrst I use the following code to insert a line with // to the beginning of the document (as ...
1
vote
2answers
22 views

Why do I have so many IPV6 addresses for a single ethernet card

Output of running ifconfig on my system is: eth3 Link encap:Ethernet HWaddr 44:8a:5b:93:34:25 inet addr:172.32.17.71 Bcast:172.32.17.255 Mask:255.255.255.0 inet6 addr: ...
0
votes
2answers
20 views

Command substitution and spaces

Why does this work as a calculator: [root@qabun02 ~]# echo $(( 5+2 )) 7 but this doesn't? [root@qabun02 ~]# echo $( (5+2) ) -bash: 5+2: command not found The only difference I can see is the ...
1
vote
1answer
20 views

can I create a PDF from ImageMagick which will always open at zoom 100%?

I am running with an issue in png to pdf conversion.Actually I have big png file not in size but in contents.In pdf conversion it create a big pdf file. I don't have any issue with its quality, but ...
1
vote
1answer
15 views

Kernel config: Is undefined the same as disabled?

Reading the Debian Kernel Handbook I came across the config option CONFIG_DEBUG_INFO. That option isn't in the official debian 3.2 kernel config, so what I'd like to know: If a certain option is not ...
0
votes
0answers
23 views

Switch between tabs command

By mistake I may have deleted the Switch between tabs shortcut, now I want to add it as a custom shortcut but I can't find the command to add. How do I add it back? I'm using kali Linux and I'm ...
0
votes
0answers
13 views

Restricting access to an in-use disk on Solaris

I have two identical servers (Running Solaris) connected to a Sun Storedge 3100 through SCSI. I want to make a cluster out of them. The storage will be used to store a database. The Storage works ...
0
votes
1answer
6 views

Why is .gitattributes applied only to files added to repo after defining it?

In my repos I'm implementing a new interesting strategy to preserve some versioned files from merges, that makes use of custom merge drivers and .gitattributes. Please take a look: ...
0
votes
0answers
13 views

php does not work always returns 500 error [on hold]

I host 3 web site on an vps(ubuntu 14.04). each has a php test script a1.com/test.php a2.com/test.php a3.com/test.php a1.com/test.php a2.com/test.php work well but when I call a3.com/test.php ...
-4
votes
0answers
29 views

Pattern matching and replacing with a blank [on hold]

In file 'moreover-raw.txt _2013_02_01' this code given may be repeating.I want to replace 'http://d.mo','?xml tag','!DOCTYPE tag' and '---FIELD_DELIMITER---' with a blank space every time they appear. ...
0
votes
1answer
13 views

Installing linux Mint 17.1 on Acer s5 “No root file system defined”

I have booted Linux Mint from USB stick. Everything works fine until I'm trying to install it. So I launch Install Linux Mint choose my language ⇒ set up WiFi connection ⇒ Installation ...
0
votes
2answers
13 views

VNC not installing in ubuntu 12.04.5 LST

I am trying to install VNC server though putty, but it is not getting installed. I have run following command to install sudo apt-get install gnome-core sudo apt-get install vnc4server vncserver ...
0
votes
1answer
14 views

Bash script: array elements containing space character

I'm getting started with bash scripting. I'm working with array elements that contain space characters. In the code below, the third array element is "Accessory Engine". I tried to set the space ...
0
votes
1answer
27 views

Special characters in bash script w/sed

I am running a script to check my gmail from the command line and display the first 35 characters in the title. curl -u username:password --silent "https://mail.google.com/mail/feed/atom" | \ grep ...
0
votes
2answers
20 views

What does “task mysqld:xxx blocked for more than 120 seconds” mean?

We are troubleshooting a MySQL issue where some queries are taking a very long time complete and I see many of these entry in /var/log/messages: Jan 28 05:52:15 64455-alpha01 kernel: [2529273.616327] ...
1
vote
1answer
15 views

How to install Desktop Environments on CentOS 7?

I have recently installed CentOS 7(Minimal Install without GUI) and now I want to install a GUI environment in it. How can I install Desktop Environments on previously installed CentOS7 without ...
0
votes
0answers
6 views

network connection issue with Ubuntu installed on VM player

The Ubuntu was installed on Windows 7 using VmWare Player. However, the internet cannot be accessed from Ubuntu. The Windows host works fine with internet. Examining the "Network and Sharing ...
2
votes
1answer
21 views

How do dim screen, even if artifically, below the minimum?

My laptop (a Toshiba Sattelite) runs far too bright, even in the ambient light from outside in the day, and I need to be able to dim it below its minimum setting. ~#cat ...
8
votes
3answers
473 views

Why is it risky to give sudo vim access to ordinary users?

I'd like to create a new user and give him sudo access. To be specific, I want him to use sudo vim and edit httpd.conf. I wrote this in sudoers: user ALL=(ALL) /usr/bin/vim ...
0
votes
0answers
4 views

Configure CHAP login on Solaris 11.2 ISCST target for Win7 / 2003 initiator

Since a few days I try to configure a Solaris 11.2 (x64) ISCSI target to use with the Windows 7 / Windows Server 2003 ISCSI initiator client. I want to use it with a CHAP-name and a 12-character ...
1
vote
1answer
60 views

Why does the printf statement in this loop output the array out of sequence?

When I execute the following code, the output of the printf statement appears to show array out of sequence. In the declare statement the Source item is declared before Destination and in the output ...
0
votes
1answer
14 views

What is this data that keeps reappearing after partition delete + new partition creation?

I deleted a big extended partition containing an ntfs logical partition with high percentage of occupied space and from that extended partition I made a new, smaller extended part. In it I ...
9
votes
1answer
440 views

Why does running `killall init` as user log me out?

On multiple computers running Ubuntu 14.XX, I ran the command "killall init" as user, and was immediately logged out. I could log back in again without a problem. Why is this? What's going on behind ...
0
votes
1answer
10 views

Can't Install php-mssql or freetds on Centos7

My goal is to connect to MS SQL Server 2005 using PHP. I have installed PHP and ODBC. I am running CentOS7. PHP Version => 5.4.16 .... (from php -i) .... odbc ODBC Support => enabled I am ...
1
vote
1answer
20 views

Run Cygwin software on Linux

My professor has some software that he wrote that runs on Unix-like systems. Either on Windows via Cygwin or on MacOS, it uses X11 on both platforms. Is there any way for me to run it on Linux? He ...
0
votes
1answer
7 views

Connect to other devices under same AP isolated network

I am trying to debug my android application under a public wifi network. The network seemed to have AP isolation on so I can't connect to my android device using my notebook. However, both of my ...
2
votes
1answer
11 views

Get total bytes sent by pid

I have some processes in my unix system that sends data to a remote machine. It is possible to fetch the total bytes sent per pid ? In general, how i can monitor that pid in terms of network? Thank ...
2
votes
2answers
32 views

Export Command History into a Shell Script

Often I have complicated installation procedures to follow, like having to build dependencies for buildtools, to build dependencies for the application I wish to install from source. Once I have done ...
0
votes
0answers
30 views

Stop all processes by a user

I'm trying to delete a user but it keeps saying that user is currently used by process ID x I tried everything here and here, nothing works, how do i kill all the process by a certain user in order ...
1
vote
2answers
28 views

Privilege for a linux application

If I write a program on Linux, I have two ways of configuring what privilege the program runs with: It can run with the invoker's privilege (whoever runs the program) I can use setuid so it can run ...
0
votes
0answers
14 views

stop node server in tmux

I have a vagrant in which one I launch a node server on start. The node server is start in a tmux session but when I attach my tmux session and I do a ctrl + c the server is killed but the tmux ...
1
vote
0answers
10 views

What is the default rEFInd OS Stanza for booting Arch Linux?

I have a macbook with yosemite installed, and I just added a partition of arch linux that I boot into using rEFInd. Arch was giving me an error because rEFInd boots by default using a "ro" parameter ...
1
vote
2answers
21 views

Creating a device similar to /dev/random from a script

I am writing a program for which I will create a script to generate test data in a specific format. How can I create a /dev/myprogram device that would work similar to /dev/random (preferably in ...
0
votes
1answer
11 views

Patch: auto answer no

Suppose patch tell me Assume -R? [n] in already patched source Is there a way to say n no automatically? I can use yes n|patch but i prefer a more clean solution

15 30 50 per page