All Questions
-3
votes
0answers
8 views
Problem with infinality bundle
warning:database file for 'infinality-bundle' does not exist
warning:database file for 'infinality-bundle-multilib' does not exist
warning:database file for 'infinality-bundle-fonts' does not exist
...
0
votes
1answer
13 views
Only output grep results
I'm trying to grep some curl content however I'm still getting curl output even though I'm piping it via grep.
E.g.
curl -svo /dev/null <some url> | grep <some text>
Any idea what I'...
0
votes
1answer
9 views
Using the umount command
I tried umonunting a sdfs disk, but I can only unmount it using the umount -l command. When using the debian mount it returns me what the disk is occupying.
I would like some help to understand the ...
1
vote
0answers
8 views
Stuck on the login page
It is strange this morning. I tried to enter on my account, but when I enter my password, the screen was black and came back on the login page (login loop). I have easily access to the terminal with ...
0
votes
0answers
4 views
Partition not showing showing data properly
I have an aws centos 7 ec2 instance with an EBS volume attached to it. The volume was partitioned with fdisk. There is only one primary partition with an ext4 filesystem.
Everything was going fine, ...
0
votes
0answers
2 views
Setting the right ipv6 prefix for a docker subnet
Given the host global ipv6 address how can we get the prefix for docker subnet? also how to ensure that there are no duplicates?
0
votes
0answers
15 views
Why does “cd //” produce a different prompt to “cd ///” or “cd ////” (etc) [duplicate]
Call it intellectual curiosity: why does this...
$ cd //
$ pwd
//
...produce two slashes, but all of the other number of slashes coalesce to just the one?
$ cd ///
$ pwd
/
$ cd ////
$ pwd
/
$ cd ///...
0
votes
0answers
4 views
Using UBI files system on an MTD flash device, du and df commands give incorrect values
I have mounted a UBIFS on my MTD partition which is 191.9MB in size.
When I run mtdinfo -a the partition shows:
mtd6
Name: data2fs
Type: nor
Eraseblock size: 65536 (64KB)
Amount of Erase Blocks: ...
1
vote
2answers
20 views
How to cut a text file using Vim
How can I cut a text file using vim? For example I would like to cut the file up to position 56. So I would like to keep everything from position 1-56, and delete everything from position 57 (...
1
vote
1answer
14 views
How do I tell which commands will use brace expansion and which won't?
For instance, this works:
$ curl -s -X GET "http://api-int.abc.com/api/{,,,}ukulele/v1/health"
This runs 4 curl commands, which is what I want. But this:
$ touch ".temp/{a,b,c}.txt"
Creates a ...
0
votes
0answers
9 views
Encryption with openssl command is not working
I'm stagnating with encryption of some files with OpenSSL and following requirements:
AES, 256 Bit key length
Blocksize=16
Mode=CBC
Padding=PKCS7
IV will be saved in the first 16 Bytes
my (wrong) ...
2
votes
1answer
5 views
Linux and Azure AD sync possible?
I am currently considering to shuffle some infrastructure around, but my question boils down to:
Can I sync a list of users and passwords to Azure AD (only for Office 365) from a linux samba server?...
0
votes
0answers
9 views
Can't find windows OS and it's partitions wit all data
I installed Linux mint 17 on a Hp-Pavilion Ts-15 not book, cori5 without overriding or deleting the existing OS of Windows 10, while installing I tried to chose the last choice of disk partition "...
1
vote
1answer
23 views
How to grep through multiple files using lines from two input files as start and end of pattern?
I would like to write a simple script that would use grep to search through a list of files. The current code looks something similar to this:
a= file1.txt
b= file2.txt
for
do
grep '$a.*$b' /...
1
vote
0answers
8 views
slackware — get back to the installation menu
I booted my new computer with a Slackware 14.2 DVD, ran the built-in setup program, and installed enough packages (A, L, N) to at least get machine running and on my network.
Now that the machine is ...
0
votes
0answers
9 views
Cross-compilation of arch linux for Arm on Ubuntu 32bit
I wanted to cross-compile arch linux for arm for raspberry pi b+. I am using Distcc tool on ubuntu 32 bit. I followed every step mentioned here. to building cross-tool chain, it is asking me various ...
1
vote
0answers
9 views
How to control mysql with zpty?
I try to write a wrapper script for the mysql console client. While working on this, I stumbled upon zpty. It seems perfect.
My first goal was to retrieve some table contents, but I already fail ...
1
vote
3answers
24 views
Find files containing keyword and show only the file path and the line number
I'd like to find all the Java files containing keyword File.createTempFile with the line number. Here's what I did:
$ find . -name "*.java" | xargs grep -n "File.createTempFile"
./nuxeo-studio-test/...
0
votes
2answers
17 views
source and destination path for the copy command in single file then how to copy?
I have a single file which contains source file paths and destination file paths.
example
$ cat test.txt
/home/data/source.txt /home/code/destination.txt
/home/abc/def.txt /home/mnp/xyz.txt
...
1
vote
1answer
22 views
Why fields in structs defined by the Unix API have prefixes?
Many fields in structs defined by the Unix API have prefixes, like sa_ in sa_handler defined in struct sigaction. Why is it so? Why isn't sa_handler called just handler?
3
votes
2answers
146 views
Find oldest files/directories in file system up to 50 TB
I need to find the oldest files with their associated directories in a 90 TB file system up to 50 TB and then move them to another file system. They have to retain their directory structure as that ...
1
vote
0answers
15 views
Why is the default output of ss so strange?
When I run ss -tnlp to display all programs listening for tcp connections (something I do rather often) I get something like this:
Despite the terminal being wide enough, ss chooses to split some ...
3
votes
3answers
105 views
Cron not working with shell script
In the process of learning/understanding Linux (difficult but enjoying it). I have written a very short shell script that uses wget to pull an index.html file from a website.
#!/bin/bash
#Script to ...
1
vote
0answers
20 views
How to create file set in Linux?
I have some tasks to perform on particular set of files and directories in ubuntu-13.04. I searched upon and got to know that there are file sets which are nothing but groups of files.How can I create ...
1
vote
2answers
34 views
how I could pass variable inside awk match?
I have an awk command.
I need to use i variable but my command does not work when I do.
"fechaName": "1","firstName": "gdrgo", "xxxxx": "John", "xxxxx": "John", "xxxxx": "John", "xxxxx": "John", "...
0
votes
3answers
21 views
Increase buffer size while running screen
I use screen as my window manager through putty. Screen has been great, but I need a way to increase my buffer when I run commands. I have no buffer when I scroll up, no std out is saved beyond my ...
1
vote
0answers
15 views
Kernel upgrade (4.10) made XServer and rest of the system fail (Arch) [SOLVED myself]
I hope this is not a repost but from the research I did until now I guess not.
So today after 5 days not using my PC I decided to get the latest packages which involved an upgraded kernel (4.9.11 -> ...
0
votes
0answers
8 views
run kde settings strating awesome wm
I'm running an up to date Manjaro KDE and Awesome WM on side.
I did some mouse/touchpad configuration via KDE > System Settings.
Wich I'm able to activate in Awesome WM with this sequence :
Mod4 + ...
0
votes
0answers
3 views
Change,+,- button grayed out during linux mint installation
Iam installing alongside windows 10 and after entering the setup during the partition the change,+,- buttons are grayed out and i cannot select the memory space i had allocated for linux os
0
votes
2answers
21 views
Using a variable to execute a curl command
I have a problem when using curl on my linux script:
#!/bin/bash
userName="user";
passWord="password";
tenantName="tenant";
commande="curl -X POST -H \"Content-Type: application/json\" -H
\"Cache-...
0
votes
2answers
28 views
Move file based on condition
Can anyone help me finding solution to my requirement.
the requirement is I have to write a shell script which will scan a directory and read each file coming to it and will search for a string ...
3
votes
1answer
20 views
Display Chinese machine name in shell prompt
I'm trying to get my Chinese computer name/machine name to display in a zsh prompt i.e. 飞碟. PROMPT='%{$fg[green]%}%m%. The normal Mac Sharing prefs displays the computer name in Chinese, but shell ...
0
votes
1answer
13 views
Clamav TCP 3310 setup Debian
I've run into this problem which is weird. I'm using Debian jessie and I have setup clamav to listen also on port 3310 with the TCPSocket 3310 option.
After saving the changes to the config file I ...
0
votes
1answer
18 views
apt-get upgrade doesn't find newest packages
Recently Debian Wheezy LTS released a new version of a package, e.g. wget 1.13.4-3+deb7u4 (see announcement here), on my system I still have an old version e.g. wget 1.13.4-3+deb7u3 installed.
My ...
0
votes
1answer
32 views
Sending mail without any account
I want to send e-mails from my Raspberry Pi. I saw many methods but they are using an existing e-mail account (Gmail for example), I don't want to do this. I want to send my mail just knowing the ...
1
vote
2answers
17 views
To get columns output in separate file
I have a file and its content looks like:
abc=123|qwer=432|reiw=2344|xyz=123 445|tyu=23 rows
I have tried using tr and sed but I will need to use awk
The desired output should look like:
file2:
...
0
votes
0answers
12 views
Something is renaming php files to .php.suspected; I'm trying to find out what
Related:
http://serverfault.com/questions/748417/something-renames-files-to-filename-ext-suspected
http://stackoverflow.com/questions/32835796/php-file-automatically-renamed-to-php-suspected
I ...
0
votes
0answers
11 views
Bluetooth - Accept all incoming files from terminal
I'm currently running Ubuntu 16.04 Desktop.
I'm looking for a way to start Bluetooth OBEX server that allows me to save to given location without any prompts. Something along these lines would do:
$ ...
0
votes
1answer
16 views
Colored grep output: Not GREP_OPTIONS not alias
I want colored output of grep.
.... But
Strategy 1: GREP_OPTIONS. But this is deprecated. See http://www.gnu.org/software/grep/manual/html_node/Environment-Variables.html
Stragegy 2: GREP_COLORS ...
0
votes
0answers
11 views
i915 as secondary and dpms problem on primary
I do have a Supermicro X11SBA-LN4F running Debian stretch RC2.
This board has an AST2400 BMC and an N3700 processor. So, the board got two video cards - one via ast and one via i915. This results ...
0
votes
1answer
20 views
How do you mount a specific btrfs subvolume? (not via fstab)
I just can't figure out how to do this and there doesn't seem to be a single explanation about this; except the fstab case (here on stackexchange, but sadly I'm not allowed to add a comment) My only ...
0
votes
1answer
13 views
What to do if SetEnvIf regex could not be compiled
In our company we are working with apache vhosts and kerberos.
I changed the kerberos.inc file. I added one line:
SetEnvIf X-Forwarded-For ^1\.[1-3]\.[0-255]\.[1-254] env_var
Now when I'm ...
0
votes
3answers
34 views
How to match the contents from one file and rename the contents of the files from directories and sub directories using linux
I have the following small text file (mapfile.txt) on my Linux machine. I need to use the information in this file to rename other files in other directories and subdirectories. How can I do this?
...
0
votes
0answers
10 views
504 Gateway Timeout error
I have 2 Apache servers and 2 Loadbalance servers and one File server (CentOS 7) for moodle and I am using maria db cluster.
I want to download some file from students in moodle but I face a problem ...
0
votes
1answer
42 views
Does keyboard input always go through a controlling terminal?
Am I right that all input typed from the keyboard goes through a controlling terminal? That means that if a program is run without a controlling terminal, it won't be able to receive any user input. ...
0
votes
2answers
27 views
Can I migrate a hard drive with the debian AMD installation?
I can migrate my Debian installation that worked under an AMD processor and now that I do it on an intel, or do I have to do something extra?
I ask because for AMD I had to install several things, ...
1
vote
2answers
43 views
Resetting a server
I have an assignment to create a server from an empty domain. I plan to follow certain guide in the internet about how to. My question is: Assuming that I screwed up the tutorial, what's the command ...
3
votes
1answer
465 views
use of . in bash [duplicate]
#!/usr/bin/env bash
scriptdir="$HOME"
touch $scriptdir/foo.txt
. "$scriptdir/foo.txt" ||
{ echo "Missing '$scriptdir/foo.txt'. Exiting." ;
exit 1 ;}
echo "$scriptdir/foo.txt is present"
echo
rm "$...
0
votes
1answer
16 views
apt-secure manpage
When I did sudo apt update, the three last lines were
E: The repository 'http://ppa.launchpad.net/blueman/ppa/ubuntu yakkety Release' does not have a Release file.
N: Updating from such a repository ...
0
votes
0answers
12 views
Polkit rule for systemd template unit files
I'm trying to figure out how to write a polkit rule for a systemd template file. The rule is triggered when I use the actual service that will be instantiated ([email protected]) but not ...