1
vote
2answers
56 views

How to show all registred users and their groups with one command?

I was writing a test on basic Unix commands etc, and there was a question show all registered users and their groups with one command. At the same time I can't use getent command.
1
vote
0answers
11 views

It is possible to make an IPSEC VPN Bonding?

I wanted to know if It is possible to bound two IPSEC tunnels ? I've already done a VPN bonding of SSH tunnels, but It will be better if I use IPSEC.
0
votes
1answer
22 views

umask getting sets to 022 even though all necessary files are modified

umask is creating lots of problem to me . I tried following . I have commented umask set entry in /etc/profile and /etc/bashrc . There is not even single file in my home direcotry where i set umask ...
0
votes
1answer
36 views

Add the number in the column if exists

I need to count Nodes_Util for each Queue. In the example below, queue1 has only one line, but it varies and it could be nothing sometimes and it applies to all queues. I want to dynamically add the ...
-1
votes
0answers
20 views

How to setup internet connection in Ubuntu server [on hold]

How to setup a wired internet connection in Ubuntu server_Openssh server
3
votes
1answer
42 views

Is there limit to nested ssh sessions?

In my workflow I frequently have to open several chained/nested (?) ssh sessions to get where I need: ssh to remote management server Escalate privileges (sudo su ...) Ssh to another remote ...
0
votes
0answers
11 views

Changing the taskbar icon of an application

I am trying to change the taskbar icon of my web browser (Firefox) from the stock square icon to the old school Firefox eye icon . I have edited every single Firefox icon I can find in the obvious ...
0
votes
1answer
28 views

what is the difference between graphical environment, user interface, graphical shell and a windowing system?

Don't know if this question is on topic; I posted it here just because I've heard about these differences only in the Unix/Linux world. So, as the title, what is the difference between graphical ...
0
votes
0answers
42 views

“sudo: apt-get: command not found.” after removing packages [duplicate]

I have a problem similar to the issue here: "sudo: apt-get: command not found." after removing some packages. Did the same stupid thing removing something: sudo apt-get remove gnupg ...
0
votes
1answer
14 views

Setting permissions on SMB

My router (Netgear DGN-2200-64) has a USB port usable as SMB storage (with the default firmware - I guess it's Linux under the hood). I plugged in an old flash disk (FAT formatted I think) & set ...
0
votes
1answer
27 views

How to make virtual interface ping to a host in the network

I crated a virtual interface as indicated in this link. sudo modprobe dummy sudo ip link set name eth10 dev dummy0 sudo ifconfig eth10 up sudo ifconfig eth10 192.168.1.150 now if I want to make a ...
0
votes
2answers
21 views

Can we predict the next registered SCSI mass storage device name

I need to anticipate the device name (sdX) that the next mass storage device (sda, sdb, sdc, …) will receive from the SCSI driver. If I remove one device and connect another one, I noticed that the ...
0
votes
0answers
8 views

CUPS web interface does not save changes

I have installed CUPS 1.7.5 on a 64 Bit Debian 8 (Jessie). I enabled cupsctl --remote-admin. Adding printers and controlling jobs works perfectly fine from the webinterface from another computer (I'm ...
0
votes
0answers
25 views

what doesn't Tomcat doesn't show up when I grep netstat's output for 8080

I am doing the following to determine if Tomcat is running: $ whoami voops voops@esavo00:~/apache-tomcat-7.0.57/bin# $ ps -ef | grep -i tomcat | grep -v grep voops 8973 1 0 Apr22 ? ...
0
votes
0answers
4 views

Pidgin starter missing in menu on lxde as normal user

I installed LXDE on my Raspberry Pi like this: http://raspberrypi.stackexchange.com/a/29863/29214 now Pidgin only shows up in the start-menu when I log in as root with startx, but not as user.
0
votes
1answer
28 views

Understanding syslog rotation, to implement own syslog rotation

I am trying to implement a simple syslog server (UDP based). On this , we are trying to implment SYSLOG rotation feature. Currently the roatation of logs is done by rename C API. By doing this we ...
1
vote
3answers
39 views

My SD card has a partition but Linux doesn't create a device entry for the partition

OK, I don't know what's going on here, at first I thought it was a problem I remember having some time ago where I couldn't mount a vfat partition because it had some flag set that it had not been ...
1
vote
1answer
28 views

Zones are in SUSPENDED mode in Oracle Solaris 11.2 SPARC

Zones are in suspend mode how can I bring them up online? Operating system: SunOS xxxxxxbase02 5.11 11.2 sun4v sparc sun4v While listing the pool in global zone I can see four hosts are in suspend ...
1
vote
1answer
42 views

Enable Promiscous mode in CentOS 7

How to enable promiscuous mode on network adapter. I have tried by adding PROMISC=yes in /etc/sysconfig/network-scripts/ifcfg-ensxxx but no effect even after network restart or rebooting the system.
0
votes
1answer
25 views

match a string with special char and exact match using grep

I have a large file and want to search only specific string. eg. mobNo='xxx-xxx-xxxx' i have a lot of string in this formate. i am tring grep "mobNo=\'*\'" . can some one help me. Thanks in ...
0
votes
1answer
33 views

Difference between /opt/bin and /opt/X/bin directories

The /opt/ directory in Linux is used for installing add on packages. What is the difference between the /opt/<package>/bin directory and the /opt/<package>/X/bin directory? What is the ...
0
votes
0answers
25 views

Linux within the confines of a Pi-based system [on hold]

Earlier today I was browsing software internships on my schools job posting website (I'm a CS student) and I noticed one of the jobs had this requirement: Experience with Linux programming, ...
1
vote
2answers
28 views

Skip the first 6 lines/rows in a text file with awk

How can I skip the first 6 lines/rows in a text file (input.txt) and process the rest with awk? The format of my awk script (program.awk) is: BEGIN { } { process here } END { } My text file ...
0
votes
1answer
13 views

Install kernel .deb file without using dpkg

I'm running Manjaro (Derived from Arch). I have a .deb file for kernel 4.0. Is it possible to install the kernel from this file, and what are the steps involved? I tried opening the .deb file and ...
0
votes
1answer
17 views

Auto-Reply to Messages Sent to Mailing List

Background and Current Situation I inherited a CentOS 5.7 box running Mailman 2.1.9 housing a series of legacy mailing lists. I've been working on moving these lists to other services like Exchange ...
0
votes
0answers
12 views

Aix equivalent of tcp_retries2 linux parameter [on hold]

Please help me with the Aix equivalent of tcp_retries2 paremater that is available in linux machines.
2
votes
1answer
31 views

Expand variable in brace expansion [duplicate]

I am trying to enumerate a range of integers using a variable but having some trouble. When I type echo {1..5} I get 1 2 3 4 5 However, when I type a variable, I am unable to get the ...
0
votes
1answer
24 views

How do you combine -r and -c for gunzip?

I am trying to recursively gunzip files (-r) but don't have permission in their original location to store them. I know to change the location for a single file you do gunzip {file} -c > {new file ...
2
votes
1answer
22 views

How to prevent tzdata updates on CentOS resetting /etc/localtime

I am using a local timezone (non-UTC) on my server. Whenever I update the tzdata via yum, the system resets /etc/localtime to the default file and I am back on UTC. While #date still shows the ...
0
votes
0answers
14 views

.esmtprc:1: syntax error at identify [on hold]

I am getting the above error in mutt. I am following the setup at kernelnewbies, and I want to make sure that I can send email from my system. Here is my esmtprc file: set sendmail="/usr/bin/esmtp" ...
1
vote
1answer
33 views

How can I monitor network connections for an app

I'm running a chat application on my machine called foo - how do I view all connection attempts (failed or successful) for foo? I have attempted this with netstat, but I am unsure how to associate ...
2
votes
2answers
33 views

how to strip the last slash of the directory path?

I have a script which requires an directory as one argument. I want to support the two form: one is like a/b/c (no slash at the end) and another is like a/b/c/ (has slash at the end). My ...
0
votes
1answer
35 views

How do I copy all files that have been created or modified in the last 12 months?

I would like to copy all the files created in the last 12 months to a new folder leaving behind everything else. Including sub folders.
2
votes
1answer
25 views

How to download a lot of documents on the terminal from a server?

I have to write a bash script (.sh) with less than 300 characters which downloads all of the genomes 22 in this server ftp://ftp.ncbi.nih.gov/genomes/Homo_sapiens/ (the ones with fa.gz extention) and ...
0
votes
0answers
12 views

dmenu-like X program, but with dynamically generated results

I really love the simplicity of dmenu, but unfortunately it's a bit limiting for things that would benefit greatly from (or be impossible without) dynamically generated results. For example, using ...
0
votes
4answers
53 views

Foreach loop for ls output

I am trying to process some files in directory using foreach loop for ls output: IFS=$'\n' for i in $(ls -1Atu); do echo "$i" done At first time i thought it works, but when i created file ...
2
votes
3answers
32 views

Extract a part of a string in a bash script

I have a variable with some text in it. I need to get a specific bit of information out of it. For example I have export OUTPUT="Running \"protractor:admin\" (protractor) task Using ChromeDriver ...
0
votes
0answers
9 views

can you explain with code how you solve the problem of install in hp g5 380 in fedora x or centos 7 [on hold]

can you explain with code how you solve the problem of install in hp g5 380, everything you type and which option you choose when the system operation start In the Install Fedora core 15 on HP Smart ...
2
votes
1answer
25 views

I have a multi-line string that I need to iterate over, but I'm not using bash. Advice?

I'm using Dash because this is to run on my rPi. Bash is not an option. I'm rewriting a Bash script to work with Dash. I'm hoping to make it as POSIX-compliant (portable) as possible. The thing is ...
1
vote
1answer
28 views

What is the backup file created by checkinstall for?

I reinstall emacs by compiling its source and then sudo checkinstall. I found checkinstall creates a file -rw-r--r-- 1 root root 44628516 Apr 22 19:19 emacs_24.5-1_amd64.deb -rw-r--r-- 1 root root ...
1
vote
1answer
34 views

How do I capture output into a variable and still have it goto the screen too?

I can do OUTPUT=$(grunt test) and that puts the output into OUTPUT but it's no longer on the screen. I need to see the output as it comes as well, so I can't just wait and then echo $OUTPUT. How can ...
3
votes
1answer
25 views

Do I have to recompile if I want to change `--prefix`?

When installing emacs 24.5 by compiling its source, I run ./config --prefix=/usr and then make and then sudo checkinstall which creates a deb package and installs the binary files to /usr. Now I ...
0
votes
0answers
8 views

does checkinstall uninstall previously installed software?

Originally I installed emacs 24.4 by compiling its source and checkinstall. I use the default install dir --prefix=/usr/local. So /usr/local/bin/emacs. Now I use the same way to install emacs 24.5. ...
0
votes
1answer
19 views

Make udisks2 clean up stale mount points?

udisks2 with udiskie are set up to automount USB storage devices. Connecting a pen drive labeled MYDRIVE, it is mounted to: /media/MYDRIVE When pulling the drive without prior unmounting, the above ...
0
votes
1answer
28 views

Install self compiled software to /usr or /usr/local? [duplicate]

Generally speaking, should self installation by compiling source be stored in /usr or /usr/local (specified to --prefix)? When to install to /usr and when to /usr/local? E.g. I often run ...
0
votes
1answer
13 views

Why does checkinstall need sudo?

On Ubuntu, IIRC, checkinstall only create a deb package from compiled binary files, and doesn't install them to some destination directories (say, some system directories). But I always have to run ...
1
vote
0answers
24 views

Unable to configure font in XTerm

After a lot of mucking around Xterm, poring through reams of webpages I have thrown in the towel and realized that this isn't something I can figure out on my own. TrueType vs Bitmap Is the option ...
6
votes
3answers
225 views

What provides /etc/exports and how do I find that out?

I have two Debian virtual machines that were built from the same netinstall iso, but probably have different packages installed. One of them has an /etc/exports file for nfs mounts but the other one ...
0
votes
1answer
12 views

What is the file type “raw G3 data, byte-padded”

I ran $ find ~/ |xargs file|grep -i -e SQLite just to understand what programs use sqlite. I started seeing lines like /home/alord/hg/cpython/.hg/store/data/_modules/__sqlite/cursor.c.i: raw G3 ...
0
votes
1answer
9 views

chcon: failed to change context of `/etc/oddjobd.conf.d' to `unconfined_u:object_r:oddjob_t:s0': Permission denied

A friend of mine had trouble with SELinux. The server is configured with SELinux in enforcing mode, using the targeted policy. When using Puppet, restorecon or chcon, he had errors like this, even if ...

15 30 50 per page