0
votes
0answers
9 views

CentOS 7: write failed: broken pipe when trying to reboot

Commands I've tried: sudo reboot sudo systemctl reboot Both commands just ask for my password for sudo then write: Write failed: Broken pipe Then they close the SSH connection and I can ...
0
votes
1answer
8 views

My Python program generates an HTML page; how do I display a .jpg that's in the same directory?

The generated HTML page works fine for text. But does not find the file and displays the alt text instead. I know the HTML works because "view source" in the browser can be copied into a file, which ...
1
vote
0answers
10 views

Reasons for IPC control in Linux

Linux OS has several IPC mechanisms like named pipes, sys V, d-bus etc. Each of these mechanisms always has senders and receivers of IPC; each mechanism uses some way to control IPC between senders ...
0
votes
1answer
8 views

Getting error virtualbox-guest-modules: requires linux<4.0 on antergos while doing system upgrade

I am running Antergos Linux 64 bit on virtual box. when I try to do full system upgrade I get a error: resolving dependencies... looking for conflicting packages... error: failed to prepare ...
1
vote
1answer
9 views

ssh with -Y results in “shell-init: error retrieving current directory: getcwd: cannot access parent directories…”

I ran an X app sudo'ed from my normal account, using: mylappy$ ssh -Y me@myhost.com me@myhost.com's password: [me@myhost ~]$ sudo su - [root@myhost ~]# su - me -c 'xauth list' |\ grep `echo ...
0
votes
0answers
12 views

How much printer memory is needed per page? [on hold]

My office has an HP 4250 on the network, with 80 MB of memory. I'm running Mint 17, and I'm having a very hard time printing PDF files. To save paper, I usually like to print duplex, with the pages ...
0
votes
1answer
13 views

Strange process behaviour on virtualized Ubuntu

I'm running Ubuntu 14.04 LTS on Windows 8.1 using VirtualBox. I'm approaching to Operating systems and the following program shows a strange result: #include <stdio.h> #include <unistd.h> ...
2
votes
2answers
31 views

Need to obtain Awk output in specific sequence

Data in file: 1234567-5678907 3456789-1234563 3456789-1234567 . . . . n Now I want the output in the below format: 1234567-5678907,3456789-1234563,3456789-1234563....n I have used below command ...
3
votes
1answer
9 views

htop shows only the processes of the user that's running it?

On my old Debian Wheezy I see as a normal user without sudo all processes from all user in htop. On my new Debian Wheezy I only see my own processes. Old system kernel: 3.2.0-4 New system kernel: ...
1
vote
0answers
4 views

Add vlan to interface with unique mac - different syntax for different Linux distros

I need to add a subinterface to an existing interface, which is on a VLAN. Furthermore, the subinterface must have it's own MAC address. Through the man pages I found this syntax which works fine on ...
2
votes
1answer
24 views

grep with regular expression

I want to match all the lines that are of the below pattern in a file using grep. Abc::xyz() [18-Feb-15 12:09:16] I came up with below regex with grep , but it is not returning match. Please help ...
2
votes
0answers
13 views

How do I find/change where GRUB 2 gets installed on a rewrite, on Debian Wheezy?

I have a Debian Wheezy system. On a recent upgrade, I got an error message from GRUB telling me that embedding was not supported for ext2 file systems (huh? Never seen that one before.) and after a ...
1
vote
1answer
26 views

Set default permissions so only owner can read, execute and write for every new file and directory

I added this to my ~/.bashrc file: umask 077 So that every new file and directory has by default read, write and execute permissions. It does work with directories, but files only have write and ...
2
votes
1answer
17 views

How to run Arch Linux pacaur non-interactively?

I want to be able to install packages unattended with the Arch Linux package manager pacaur. On Ubuntu, one can do: apt-get -y install htop What is the equivalent in Arch Linux, using Pacaur?
2
votes
1answer
12 views

See a serial port as a MIDI IN device

I have connected a MIDI device to my UART RX / serial port /dev/ttyAMA0 using some electronics as described here. I have properly configured the right baud setting (31250 baud, etc.). It works: I can ...
0
votes
0answers
7 views

Samba4: password warning

Warning: Your password will expire in 41 days Every time i log in into a samba4 client(connected to samba4 ad) give me this message. Is possible to make a thing like windows,and passwd warning reset ...
1
vote
1answer
13 views

Debian machine readable copyright: Files path

I want to create a machine readable copyright file for a Debian package, as defined in https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/#fields . I have some 3rd party files which ...
1
vote
1answer
57 views

Bash script won't work on current directory

I'm using Kali linux which is based on Debian and wrote an script to copy some files from where the script is based to a specified directory. But when I execute my script (called CopyFiles.sh), cp ...
0
votes
0answers
5 views

Can't change resolution to 1680x1050

I am installing Elementary OS (I had the same issue with plain Ubuntu and Fedora, Mint and some other distros) on a Sony VAIO VGC-JS1E/S and everything works perfectly OK except I cannot change the ...
-1
votes
0answers
16 views

Sqlplus environnement error

I have two virtual machines ubuntu, one is a server when I installed oracle 11g express, and the other is a simple client. My goal is to run an sql query remotely from the client machine. So I ...
0
votes
1answer
15 views

make `tar` archive from NTFS with non-ascii file names

Loaded a live disk into a Windows based machine with NTFS files. Being a Linux user for some years, using tar came to my mind instantly and made some backup archives from partitions and stored them ...
0
votes
0answers
15 views

How do I set the operating directory in a script in rc.d (FreeBSD)?

I have a rc.d script that fires up a program that normally looks for a configuration file in ~/.app/app.conf. However, when I use service app start (or when it is auto-started at startup), the app ...
1
vote
0answers
20 views

Uninstall libc6 (from Debian testing) from Debian stable

I wanted to install the text editor Atom on Debian stable (but I don't want to anymore), and I had to install libc6 from Debian testing. Bad idea, I know. So I changed the sources.list, etc... Used ...
1
vote
0answers
16 views

Linux Mint 17 - Unable to connect to wireless network

I am able to detect my wireless connection, just unable to connect. I have used network-manager and WICD and they both keep asking for the password when I know I have entered it correctly. My router ...
2
votes
2answers
18 views

Get last commit message, author and hash using git ls-remote like command

I'm looking for a way to get three informations using git ls-remote like command. I would like to use it in a bash script running in a cron. Currently, if I do git ls-remote ...
0
votes
0answers
12 views

Dynamic Grub2 configuration via http

This may be a long shot, but I'm wondering if it's possible to load a configfile from an embedded config with grub via http. Something like: insmod net insmod http set net_default_server=${http_ip} ...
0
votes
1answer
19 views

why can't we install application compiled for Ubuntu, on Linux mint, or some other distros with same kernel?

When i try to download some applications like VLC, it shows in download options, various Operating systems which includes Linux mint, Ubuntu etc. Though Linux mint's kernel is from Ubuntu, still they ...
0
votes
1answer
19 views

Quota cannot impose its rules!

For several times I tried to set quota on /home in CentOS 6.5 on Vbox but after remount /home and quotacheck terminal report this: quotacheck: Cannot remount filesystem mounted on /home read-only ...
2
votes
1answer
25 views

Exploit FOUND with clamav on Fedora 21 in Oracle's java

I'm scanning one of my systems with Clamav like this: $ clamscan -r -i --remove --max-filesize=4000M --max-scansize=4000M \ --exclude=/proc --exclude=/sys --exclude=/dev ...
2
votes
3answers
42 views

How to limit the number of active logins per user?

How can I limit the number of active logins per user? I've seen this on various servers before, and I was wondering how I could set this up myself. Perhaps in those cases, this was accomplished by ...
0
votes
0answers
8 views

Create user, directory, vhost, and mysql user faster? [on hold]

I host a lot of my client websites on my dedicated Ubuntu Server (14.12). I really need a faster way to create a directory for a new client then manually creating the user, the mysql user, assign the ...
1
vote
1answer
31 views

Can't use find -print in AWK

I'm trying to put together a command to find SUID System Executables, which are not the default ones in RHEL. To do this, I'm pulling a list of the local File System (df --local -P), piping it over ...
1
vote
1answer
18 views

Multiple RSA server certificates not allowed

I purchased a multidomain certificate, and I was trying to install it on my server. I put the following information inside the virtual host for one of my sites: <VirtualHost *:443> ... ...
0
votes
0answers
10 views

DEtecting Comments in Flex [migrated]

I am just learning flex.I have written a simple program to check the words of a given text file is verb or not and print them. I want to detect if there is any single or multi line comments in the ...
-1
votes
0answers
16 views

useradd -c “Text” username does not work when reading data from a file [on hold]

useradd -c "text" username works only from within a script when parameters are passed to the script on the command line, but when the parameters are read from a file, it doesn't work
0
votes
0answers
43 views

How to parse an awk variable

I'm trying to pull some information out of a log file, looking back over a specific period of time (e.g. the past hour). I've found the following awk construct that works, capturing the data as a ...
1
vote
0answers
11 views

Transfer file to pc from embedded linux device via serial communications

I'm working on an AT91SAM9G20. I'm connected to AT91SAM9G20 via the debug port using rs232 serial communications. It has Linux version 3.4.8 but does not appear to have any of the common file ...
0
votes
2answers
30 views

Replace special characters with sed

I have to replace special characters using shell, so i use sed but i have some mistakes that i don't understand. <%_ by [@, ("_" = dash) _%> by ] for the first 2 characters my synthax is : ...
3
votes
1answer
26 views

How to inspect the raw contents of a partition?

I'm trying to see the contents in raw bytes of a dummy partition /dev/sda3, which I've made to be 100MiB through gparted. I want to test writing and reading on that partition. Is there a tool that ...
1
vote
1answer
13 views

Proxy (nginx) shows a Bad gateway error

I have a service (docker registry) that runs on port 5000, I have installed nginx to redirect http request from 8080 to 5000. If I make a curl to localhost:5000 it works, but when I make a curl to ...
4
votes
0answers
18 views

Do CUPS clients need to have PPDs installed locally?

Should CUPS clients need to have PPDs added locally, i.e., should I pass them to lpadmin -P? These clients print via a local print server to a remote print server (ipp://) which I assume is set up ...
4
votes
0answers
26 views

Finding a unique identifier for SD cards

I have dozens of SD cards that I need to keep track of for a project. Right now, they each have a number physically written with permanent marker on the outside. This is OK, but I want to see if there ...
0
votes
2answers
27 views

Change only the year on the output of the “date”-command

date for example displays Fri Apr 17 20:16:01 IST 2015 Now I want to change only the year so date should display Fri Apr 17 20:16:01 IST 2016 in this example. How to add 1 year to the output of date ...
1
vote
1answer
43 views

Why doesn't /bin/login appear in ps output when someone is logging in

I wanted to monitor what happens when a test user logs in to my CentOS 6.4 system, so I tried this to poll ps for /bin/login and strace the pid when it appears: until [[ $(ps -ef|grep -q [l]ogin)$? ...
1
vote
1answer
28 views

What is the difference between vim and vim-lite?

I want to install vim on my FreeBSD machine, and this other site suggests installing from FreeBSD ports like this: # cd /usr/ports/editors/vim-lite/ # make install clean This is all great, and I ...
1
vote
1answer
40 views

bash: -eq vs. == and `bc` output type

This snippet of code has been taken from a larger script, (humbly) simulating the non-existing abs() function: [[ $(echo "$val < 0" | bc) -eq 1 ]] && val=$(echo "$val * -1" | bc) So we ...
13
votes
4answers
332 views

Making Linux read swap back into memory

The Linux kernel swaps out most pages from memory when I run an application that uses most of the 16GB of physical memory. After the application finishes every action (typing commands, switching ...
1
vote
4answers
32 views

Regarding awk command

Can any one tell me how can i add a particular word in whole file using awk command. data look like this: Organism: ahy matching miRNAs miR156a miR156b miR156c miR159 miR167 ...
1
vote
1answer
8 views

Rsyslog `logger` message duplicated

I just had a problem with rsyslog's imjournal module, possibly the issue described here, whereby complications with systemd's journal cause the journal to return the same data endlessly in a ...
3
votes
1answer
18 views

Prevent Language selection at ubuntu installation

I would like to make a completely unattended installation of Ubuntu Server 14.04 from an USB drive where I extracted the ubuntu-14.04.2-server.iso In /syslinux/txt.cfg of the USB drive, I added the ...

15 30 50 per page