1
vote
1answer
31 views

Does loginuid have any impact on process limits?

On CentOS/RHEL 6, when I start my daemon as root user, I see /proc/<pid>/loginuid of the process as 0 and when I start it through sudo, I see loginuid of the sudo user. Even if I do sudo su - ...
1
vote
1answer
968 views

How to echo makefile variable through Make's $(shell …)

I have a GNU makefile. The makefile has a few tests (around line 65 from the linked file): UNAME = uname MACHINE ?= $(shell $(UNAME) -m) SYSTEM ?= $(shell $(UNAME) -s) IS_X86 = $(shell echo $...
1
vote
1answer
139 views

Gnome fails to start in Debian Wheezy

I've installed Debian Wheezy. After a while (working properly without any problem), I see some problems while working in gnome. Some functions don't work properly, for example desktop icons are not ...
1
vote
0answers
126 views

Default lxc networking suddenly stops to work

I've recently installed lxc on ubuntu 14.04. Networking used to work (lxcbr0 being a NAT interface, DHCP configured using dnsmasq) but after a container restart, the networking does not work any more. ...
2
votes
1answer
140 views

Disabling wlan0 adapter

Question: What is the terminal command behind right clicking on the wireless icon (Ubuntu 15.04) and then unchecking "Enable Wi-Fi" the box? Why am I asking it? macchanger just work for me when I ...
0
votes
1answer
83 views

fsck and checking external drives on reboot also

I know about shutdown -rF now that will check the drive on reboot but how can I also have it check all external drives also on reboot?
3
votes
1answer
61 views

Cache atime writes

Is there a way to set atime writes to be cached for a very long time? I need atime (that is to say, relatime won't cut it), but I don't want it to effect performance so much. Data loss in of atimes (...
0
votes
1answer
225 views

Why are the up and down arrows keys not always working on multiple platforms?

Very recently, maybe within the last two weeks this issue has started cropping up: once maybe every two days or so, the up and down arrow keys simply stop working for a while - I can move the cursor ...
0
votes
1answer
62 views

Using package.env for phase hooks

Following this answer I've set up a simple file /etc/portage/env/echo.conf: post_pkg_postinst() { echo "updating $P to $PV" } with the line sys-apps/util-linux echo.conf in /etc/portage/...
1
vote
1answer
65 views

How to set system fonts as noto?

I have installed google noto fonts in /usr/share/fonts/opentype/noto .and execute the command: fc-cache -fv 1.How to know which type of fonts is being used in my debian8.1? 2.How to set google noto ...
2
votes
1answer
47 views

Debian Kickstart Files Failing To Download

I have found that if I try to host my kickstart files on github and pass the raw url to virt-install, such as below, it will fail. http://raw.githubusercontent.com/programster/KVM-Command-Generator/...
3
votes
1answer
79 views

Is there any way to prevent a bad drive from disappearing from /dev?

I'm trying to recover a partition on a bad drive with ddrescue. I run: $ sudo ddrescue -r -1 -v /dev/sdd3 OUT.img dd_rescue_logfile and it seems to do great for a while, but after about an hour, ...
2
votes
2answers
241 views

How can I maintain open ssh connection and use it from shell scripts?

Currently i invoke the following: $ ssh me@host.com my_cmd This is slow and not easy to automate safely. I would like to establish ssh connection once and have some script that will forward my ...
1
vote
2answers
135 views

Which are (bash) shell special parameters?

I've found some special parameter with bash starting with $ sign. Example: When I was wandering for exit status I knew about $?, process ID by $$ etc. So, I am sharing this post to know Which are ...
0
votes
1answer
222 views

Mouse Pointer Blinks and Sometimes Disappears

I am using Ubuntu 14.04LTS with dual Monitor. I am unable to figure out the problem occurring with the mouse pointer. The mouse pointer blinks and at times it disappears. Any help is appreciated ...
0
votes
2answers
82 views

Possible fix?: ICEauthority Error With a Systemically limited File Permission Issue

First off, I would like to apologize ahead of time for such a completely absurd accident to happen to my computer. Essentially I wanted to change my Cinnamon-mint theme on linux. But I noticed that ...
2
votes
2answers
348 views

How to check if the parent shell is interactive from a script?

I know that one can use the $- contains i or not or check if $PS1 is empty to tell if a shell is interactive. However, those solutions only work for the current shell. I have a bash script trying to ...
0
votes
1answer
148 views

Why won't MOTD display output from a Python script it calls outside of /etc/update-motd.d/ unless it's in this directory?

The Situation We're running a headless Ubuntu 14.10 Server to fulfill various needs and tests. I was experimenting with changing the MOTD for SSH sessions via /etc/update-motd.d/ so as to display ...
2
votes
3answers
626 views

Trailing spaces when copying from console

It's this annoying behavior I've been experiencing here and there occasionally: when you select text with mouse in console (that is, copy it), paste it, and realize you've got extra spaces at the end ...
0
votes
1answer
293 views

Properties of cat command

a simple question, can I create a file at a location I want & using cat command & without using pipes & and the location is some other place than I where I am currently. (I would ...
5
votes
1answer
99 views

Joined pipelines

Considering a routine such as this one: alpha() { echo a b c |tr ' ' '\n'; } which outputs a stream, I would like to take the output stream, transform it, and paste it with the original output ...
2
votes
1answer
54 views

Slackware: print horrible banner

See banner on old sysV perfect See on slackware with xfce4 terminal(same on SV4), i can't put the entire image because is very long, put only the last letter What to check? Of course i have ...
2
votes
1answer
152 views

route some traffic in subnet to other gateway

I want to route traffic destined for 192.168.5.0/24 to a gateway of 10.1.10.24, but all other traffic to a gateway of 10.1.10.1. I tried: ip route add 192.168.5.0/24 via 10.1.10.24 but it seems to ...
1
vote
2answers
99 views

Insert multi lines after match using Mac's sed command

I have 2 files:- a.xml <project> <modelVersion>4.0.0</modelVersion> <parent> ... </parent> </project> b.xml <project> <...
1
vote
1answer
315 views

shellinabox on arch linux

I cannot get the systemd service to run [chris@alarmpi shellinabox]$ sudo systemctl status shellinaboxd * shellinaboxd.service - Serve a login-terminal over http on port 80 Loaded: loaded (/usr/lib/...
1
vote
2answers
232 views

Using IPTables to Block Ports to Class A Subnets While Allowing Web Ports (80/443)

This is about a cPanel server which, like most servers, is under constant attack from lands afar. Considering that I only host to clients in the US and Canada, there is less of a reason to allow full ...
0
votes
0answers
203 views

Iperf connection failed

I have an openwrt router connected to my ubuntu laptop with an ethernet cable. I installed iperf on both, and now I am trying to run commands (i.e. iperf -s), but I keep getting the following errors: ...
2
votes
1answer
1k views

Why I can't unpack .tar.bz2 or .tar.xz files?

I'm having a problem unpacking files when I try to build from source on my OpenBSD First I thought it was just corrupted files but after it happened to many different programs and from different ...
-1
votes
3answers
217 views

How to stop outbound ftp from being established. centos/ rhel

What is the method to block a machine from establishing connection to an outside ftp server. Both ftp and sftp. inet, iptables, shutdown service?
0
votes
1answer
159 views

boost_1_58_0 install fails on Enterprise Linux Server release 5.8

Get error during installation of boost: #./b2 ..failed gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.1.2/release/threading-multi/bzip2.o... ...skipped <pbin.v2/libs/iostreams/build/gcc-4.1.2/...
1
vote
1answer
112 views

How do I nest quotes four deep?

I have a complex command that I'm running in watch to nag users to get out of a filesystem when I need to unmount it. The following is working watch -ben5 $'lsof /mnt/unfs && ps --no-headers ...
2
votes
1answer
38 views

Log when program is run

I am running a "kiosk" computer - one for general use for anybody in the room - and I want to know if anyone is actually using it. Is there a log that tells me when firefox, chromium or other ...
1
vote
0answers
122 views

NIS client is not able to change password using yppasswd?

NIS Server - OpenSuse 12.1 NIS Clients - OpenSuse 13.2 At NIS Client: nisuser@opensuse13.2:~> yppasswd yppasswd is deprecated, use /usr/bin/passwd instead Changing password for nisuser. Old ...
0
votes
2answers
102 views

Tmux bindings using Ctrl+comma

In OSX, on iTerm2, I can map Ctrl/Cmd/Opt+, or Ctrl/Cmd/Opt+. to hex codes that go to next or previous tmux windows. How can I use Super/Meta/Ctrl and comma/dot key presses on Linux to produce the ...
1
vote
1answer
106 views

load balancing multiplie services linux

I have setup multiple servers, One of them is a windows server running team speak. The other is a game server with csgo(counter strike global offensive) and lastly, one running an apache server. ...
0
votes
1answer
288 views

Asterisk:Registration is UNREACHABLE VOIP chan_sip.c:15171 sip_reg_timeout

I'm trying to register my VOIP but I can't and appear this massege [Jul 24 12:45:58] NOTICE[24430]: chan_sip.c:15171 sip_reg_timeout: -- Registration for 'XXXXX@sip2.tellfree.net' timed out, ...
0
votes
1answer
315 views

How can I find and replace only in a range of columns?

I have a text file with 9267 lines. I want to find "A" with 5 spaces after it and replace it with "A" with 5 spaces before and after it on all lines, but only between columns 67 and 88. Text outside ...
2
votes
1answer
36 views

Display full settings of sshd

The OpenSSH daemon has many "default" values for its settings. So looking at the sshd_config might not give someone the complete set of active settings. How to display the full sshd configuration (...
2
votes
3answers
83 views

Delete Entries in File if the Same Entry Exists in a Master File

I have a JSON master config file whose value may be overwritten by a specific account's config file (also in JSON). The Master file has this structure: { "section1Configs": { "setting01": ...
1
vote
2answers
85 views

Unlocking all ports in a router when using Linux

I heard that Linux's open ports are not very vulnerable, so a normal desktop Linux installation doesn't need a firewall. Still, my router (Dlink) blocks some ports, even in LAN. Would it be a bad ...
2
votes
1answer
367 views

Rlogin prompting for remote password (Kali / Metasploitable)

I am following a tutorial that can be found here. http://www.kalitutorials.net/2014/05/metasploitable-2-vulnerability.html Specifically the "Remote access vulnerability - Rlogin" section. When I ...
2
votes
2answers
62 views

Shell script - text processing help

I want to create a ldif modify file to update the users on LDAP. I have an input file(alluserdns.ldif) with list of all Dn entries in ldap: dn: cn=testuser2@abc.com, ou=persons,ou=pp,dc=abc,dc=com ...
1
vote
0answers
899 views

Gnome 3 doesn't run on Kali Linux

Several weeks ago I installed Kali Linux on my laptop (Asus X53BR). I installed it successfully but the when system started, I only had a command line and no login manager (gdm3) running. I have ...
2
votes
3answers
2k views

How to show the host name in Linux commandline prompt

I have several VMs and right now my command-line prompt looks like -bash-3.2$; identical on every VM, because it doesn't contain the host name. I need to always see which VM I'm on using hostname ...
-1
votes
2answers
259 views

Free or cheap shell (i.e., platform) to run a Linux C program with root privileges (raw socket)

I'm working on a Linux C program that needs root privileges (raw socket). I would like to run it on a host located in the US (I am in EU) to compare results. Is there any free (or cheap) shell ...
0
votes
2answers
139 views

How can I combine different csv files from differenet folders with the name of each file as a column name in the combined file?

I have a bunch of directories in which there are 3 .csv files with different names. For example, in my directories aa bb cc dd there are 3 files in each: aa: EA_sing_aa.csv EA_ska_aa.csv ...
47
votes
4answers
5k views

Is there ever a good reason to run sudo su?

To launch a root shell on machines where the root account is disabled, you can run one of: sudo -i : run an interactive login shell (reads /root/.bashrc and /root/.profile) sudo -s : run a non-login ...
7
votes
1answer
153 views

what's difference between src version 3.* and 3.*-generic

In my local Linux/Ubuntu, I have two directories for Linux src /usr/src/linux-3.16.0 /usr/src/linux-3.16.0-generic I found the code in 3.16.0 is much more than that in 3.16.0-generic. I am ...
5
votes
2answers
6k views

How to install CUDA Toolkit 7.x on Debian 8 (Jessie) or 9 (Stretch)?

How to install Cuda Toolkit 7.0 on Debian 8? I know that Debian 8 comes with the option to download and install CUDA Toolkit 6.0 using apt-get install nvidia-cuda-toolkit, but how do you do this for ...

15 30 50 per page