1
vote
0answers
5 views

Where are i-node tables stored?

I do not really understand where the tables which contain i-nodes are located. My teacher said that each physical disk has a table of i-nodes, after which there is the files' data. But, on the ...
0
votes
0answers
5 views

Using d-i partman recipe strings?

I want to automatically partition all of my workstations in the same way: First partition is a bootable 1GB ext4 /boot partition Second partition is a 2GB swap partition Third partition is an ext4 / ...
0
votes
3answers
8 views

How do I use an If-Else to do certain things if the days of the week are set of days?

I have a requirement that if a day of the week is either Monday, Tuesday or Wednesday , perform certain scripts otherwise I don't do anything. if [[ $(date '+%a') == "Mon" && $(date '+%a') == ...
0
votes
0answers
2 views

How to run a command when running a tmux socket session?

So, let's say for example, I need to run a tmux socket between two users that runs echo foo To make this run on a normal tmux, it'd be best to do tmux new -d -s Foo "echo foo" However, when ...
0
votes
0answers
10 views

How to have a bash alias set from a random directory?

The alias itself does not need to be local to that directory, but I want to be able to set a bash alias from anywhere. Consider this scenario: I have a development directory ~/dev, in this ...
0
votes
0answers
3 views

gdb arch: realpath failed when try to run with parameter

I am trying to debug a problem with my program using gdb. I compiled using the debug setup in the makefile; clean build: ... #no -O2 for debug but need -g C++FLAGS = -c -fPIC -g -DLINUX -D_DEBUG -...
-2
votes
0answers
5 views

Surface pro 3, won't connect to wifi network and shows no error?

Absolute newbie to linux and Kali. I just installed a live version onto an external drive. I am able to boot into it and can see a list of available wifi networks. When I try to connect to my ...
1
vote
2answers
12 views

Bash perform variable expansion of string

I'm trying to have two layers of indirection, though let me know if I'm a victim of the XY problem Boiled Down Explanation of What I'd Like to Achieve > test1=\$test2 > test2="string to print" ...
0
votes
0answers
7 views

List of domains who have a specific image.jpg

I have a question, is it possible with wget or other commands to put in a file.txt a list of domains who have a specific picture or image on their?
0
votes
0answers
5 views

Auto-unlock Chrome default keyring

Is there any way to auto-unlock the default keyring that pops-up on every start of Chrome, that works on even non-Ubuntu distros? I am using a Debian-based distro. Is there any solution which is ...
0
votes
0answers
2 views

ARP reply to a request which asks MAC address from another broadcast domain

I have a following network topology: Sometimes I see ARP requests from server which request MAC address for IPv4 address which is not in the broadcast domain: 18:37:01.707771 00:16:3e:1a:61:b5 > ...
0
votes
0answers
7 views

How to upload a file to FTP via curl but from stdin?

Basically, I'm trying to do this: some_other_program | curl ftp://username:[email protected]/file.txt As a test case to see if I can get it working, I'm trying it with cat like so: cat test.txt ...
0
votes
1answer
8 views

How to send a file to an FTP server that doesn't properly terminate the connection on success?

(moved from SO) My goal is to upload a file to an FTP server in an embedded device. The file is a configuration file. Once the file is accepted, the server reboots. What makes this a challenge is ...
0
votes
1answer
10 views

signal handling on background process and file output

I have been considering the following code #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> ...
0
votes
0answers
3 views

“Wrong salt length” message at login. What algorithm to use to generate user password?

I'm trying to changing programmatically a user's password, and got a few messages I can't explain along the way. I ran this command to start with: sudo usermod -p "$(openssl passwd -1 newpassword)" ...

15 30 50 per page