All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

mysql ZFS latency with new SAS disks on Freebsd-10 servers

We're facing a serious issue with a couple of FreeBSD-10 servers where we replaced SSD disks (7Tb SATA to 15Tb SAS) for a zpool called zsqlxxx. inside each host, we have a MySQL jail running and ...
0 votes
0 answers
3 views

Kernel 4.15.0-177-generic on Ubuntu 18.04.6 causing slow login and device boot

I recently got upgraded from kernel 4.15.0-176 to 4.15.0-177. I am running Ubuntu 18.04.6. The upgrade seems to have caused some issues; Boot up is slow. I get "A start job is running for /boot/...
0 votes
0 answers
9 views

RHEL - Install Xfce, but make using it optional

As a Masters student, I wish to avail of the the RHEL developer programme. However, my system of choice is Fedora - I really like the lightweight Xfce desktop - it does everything a desktop should, ...
0 votes
0 answers
11 views

Cannot autostart Conky in Fedora 36 - GNOME 42

So: I just installed Conky, and it looks very nice. But it's annoying to constantly open it on startup manually. So I've search for a way to autostart Conky I've tried: Making a .desktop file and put ...
4 votes
3 answers
8k views

How to run a script every 5 seconds only when connected to internet

I have a script that updates my google drive. I made a systemd unit to run this script, and a timer that runs the unit every 10 seconds, which both work. However, when I get disconnected from ...
0 votes
0 answers
5 views

How to combine find and cp in linux to copy specific files

I am having the following problem in linux: I need to find specific files from a directory and copy those files (if they exist) into another directory this is the command (i need to find specific text ...
0 votes
0 answers
3 views

Systemd Service Java/Bash Script

I wish to create a custom service to start/stop a java process. There already exists a start.sh/stop.sh for this java program. sh-4.2$ cat /mnt/crx/publish/start.sh #!/bin/bash if pgrep -x java >/...
0 votes
0 answers
9 views

Virtualbox Linux Adding SocketCAN Interface

Does anyone have experience using SocketCAN within Virtualbox? I'm using Xubuntu. I started by modprobing can, can_raw, can_dev and the relevant driver for the particular can module I'm using. In ...
17 votes
3 answers
8k views

How to limit Docker total resources?

I'm trying to limit the total resources accessible from docker (for example only 90% of the RAM and 1500% of the CPU). I cannot use CPU and RAM limit when I'm launching my containers, that's why I ...
3 votes
1 answer
4k views

SMTP Auth - SASL on Dovecot, Postfix and CentOS 6.2 (and Open-Xchange)

I am trying to get open SASL to work on CentOS 6.2. I followed this tutorial: http://wiki.centos.org/HowTos/postfix_sasl I suspect it works perfectly for CentOS 5.x so all I really need is an update ...
0 votes
0 answers
17 views

return a list using grep (or alternative)

I am trying to return a list of "Name", "Exec" and "Icon" fields in /usr/share/applications/*.desktop I run: grep Icon= /usr/share/applications/*.desktop | cut -d '=' -f ...
4 votes
2 answers
395 views

Bash's read builtin errors on a string-based timeout option specification but not an array-based one. Why?

In reading through the source to fff to learn more about Bash programming, I saw a timeout option passed to read as an array here: read "${read_flags[@]}" -srn 1 && key "$REPLY&...
0 votes
1 answer
17 views

Why does this screen session exit when the command is finished?

I know screen -dmS mysession command to start a screen, launch a command and detach. When we need to redirect the stdout to a file, this works: (see How to run a program in a screen, redirect all ...
2 votes
1 answer
11k views

grub rescue: "failure reading sector 0x802 from hd0"

I lost power on my debian jessie laptop and now, when I boot it, I get: failure reading sector 0x802 from hd0 grub rescue> I tried: ls (hd0),(hd0,msdos1),(hd0,msdos2),(hd0,msdos5) then, I tried:...
4 votes
3 answers
76 views

POSIX shell comment vs line continuation

Edit to clarify my question: POSIX says: If a <newline> follows the (unquoted) <backslash>, the shell shall interpret this as line continuation. The <backslash> and <newline> ...
59 votes
4 answers
8k views

Where is the `--` (double dash) argument documented?

There are some utilities that accept a -- (double dash) as the signal for "end of options", required when a file name starts with a dash: $ echo "Hello World!" >-file $ cat -- -file Hello World! ...
0 votes
3 answers
34 views

How to extract specific words out of a file

If I have a file that looks something like this eg called myfile.log 1 entry1 # Blah blah 2 entry2 # Blah blah 3 entry3 # Blah blah 4 entry4 # Blah blah 5 myentry5 # ...
0 votes
0 answers
18 views

Forwarding all traffic

There is such a scheme: The operating system ubuntu server 22.04 is installed on Raspberry Pi4. Through the main network interface, Rpi is connected to the home router and has access to the Internet. ...
0 votes
1 answer
22 views

String compare negating in bash doesn't behave as it should be?

I have this little bash script: readonly imagick_extension=$(cat "${php_configuration_file}" | grep imagick) echo "Imagick extension grep value: $imagick_extension" if [ "${...
0 votes
1 answer
10 views

Bird 2.0 OSPF to OSPF redistribution cost

I am trying to set up bird for routing networks between my sites witch are connected with 2 L2 links. Right now all my OSPF_INTRA are redistributed to others routers with automatic cost calculation. I ...
6 votes
2 answers
4k views

AppArmor Profile: Deny internet access

I want to deny the internet permission for some applications. Therefore, I tried first to deny the internet permission for ping, but it doesn't work. Here is the profile of /etc/apparmor.d/bin.ping /...
0 votes
0 answers
15 views

Is there a bug in the sysinfo(2) man page?

The manpage (also) documents struct sysinfo. The size of this struct differs on 32 and 64 bit systems. (Because the struct is made of longs). You can read these comments in the manpage: ... /* Pads ...
0 votes
0 answers
25 views

How can I batch rename files by combining three variables and ignore file extensions?

I'm trying to create a script that renames a group of files. Normally they will be TIFs but sometimes an occasional oddball could be thrown in so I would like to rename and ignore the file extensions. ...
-2 votes
0 answers
15 views

Vyos Image management

I'm new on vyos and am trying to understand how vyos works to manage images. I would like to know what happens in the system side for that! (filesystem , disk ....) Vyos can have more than one iso ...
3 votes
2 answers
6k views

Log the output of Expect command

I have made the below expect script and I need to log the output of that script. SOURCE_FILE=`ls -l *.txt --time-style=+%D | grep ${DT} | grep -v '^d' | awk '{print $NF}' ` if [ -n "${SOURCE_FILE}" ] ...
0 votes
0 answers
10 views

pulseaudio has problems with input and output sound in Linux Arch

My system seems to be having problems with Pulse Voice after updating archlinux. I am using "gnome 42" and the sound works well when the "gdm" environment is raised when logging in....
-2 votes
1 answer
44 views

Brute force bash scripting

im a begginer at bash scripting, i was able to do a subdomain bruteforce but now im stuck at directory bruteforce, im using "curl" to do a get request and get a response (200,400,301) but im ...
2 votes
4 answers
104 views

awk/sed split a cluster file in to multiple files

I have a cluster fasta file (called file) which looks like: >1AB2 >1AB2 AA NWWIEUNJRNIBGOWNGIOWGRBIGBRGRIOWGI NCIDHFR8EHGBVPIWOBGIGRI >1AB3 AA WNIOREHUEBRGOUERGHBERGIORBGREUGEGO ...
0 votes
2 answers
39 views

Is there a terminal emulator like powershell or Windows Terminal, for Linux?

Say what you will about Windows, but there are a couple of features of powershell that I found immensely helpful: Suggestions for autocompletion: If I type cd my then hit CTRL+SPACE, not only do I ...
0 votes
1 answer
29 views

Why community.general.telegram ansible got error?

I want to configure ansible playbook, put some code for start the service and send notification to the telegram but I got this error. I think this is not typing error but there is something error with ...
0 votes
0 answers
6 views

Switch AltGr and Ctrl with XKB

Ive tried various xkb_options to swap the right AltGr key with the left Ctrl key, bot none of them worked. On my X11 setup, I've used a .Xmodmap file to redefine these keys like so: ! CTRL on ALTGR, ...
0 votes
0 answers
6 views

Why are keystrokes not intercepted after reattaching a "screen -dmS session bash -c 'command'"?

I'm using screen -dmS mysession bash -c 'command > test.txt' to start a screen, launch a command + write its stdout to a file, and detach. Later, after reattaching it with screen -r mysession, I ...
0 votes
0 answers
16 views

VM hangs when mounting a (full) partition

First of all, I should say I'm a beginner regarding these matters, so please bear with me for a moment. Thank you. My company accidentally fill one RAIDZ partition (named sdb1) up to 100% of its ...
0 votes
0 answers
4 views

Libre-office: Texmaths extension disappeared and can not be reinstalled

So I've been using Texmaths, an extension for Libre-office for 2 months. Suddenly, yesterday Libre-office closed (happens sometimes), but then when I reopened it the button for the extension had ...
45 votes
9 answers
67k views

Can root kill init process?

Can root kill init process (the process with pid 1)? What would be its consequences?
2 votes
1 answer
3k views

Setting up the dark Greybird theme on Xubuntu 18.04

I have read that Xubuntu 18.04 has a dark theme, but I could not find it anywhere. I have manually upgraded to the newest version from 16.04. Perhaps this is the reason why I could not find it, or do ...
8 votes
3 answers
675 views

What's the POSIX-compliant way to get the epoch timestamp in a shell?

I just noticed, that POSIX date doesn't seem to have the %s or %N format items. So I can't use those. What's an alternative, yet POSIX-compliant way to get the epoch timestamp in my shell script?
22 votes
2 answers
28k views

What is the order that Linux's dynamic linker searches paths in?

This is not a duplicate because this is dealing with a peculiarity I noticed when I use /etc/ld.so.conf. To get the paths that the dynamic linker searches in for libraries, I run the command ldconfig ...
0 votes
3 answers
14 views

Is 'yum check-update' mandatory to do an update? (Ubuntu comparison)

For Fedora Workstation 36. About yum (yes I know it is replaced by dnf) - I am using yum for academic purposes. To accomplish an update of all the packages available in the OS - is used the sudo yum ...
0 votes
1 answer
406 views

macvlan + vlan configured interface does ignore vlan tags

I need to config two different MAC and IP addresses on the same physical device (eth1). But when I configure a macvlan interface in the default/global namespace and configure a vlan on top of it. I ...
0 votes
0 answers
17 views

Can we set user permission to create a file but not a subdirectory in a directory?

Is it possible to give permission to only create files but not a directory to a user in linux? abc@xyz:~/temp$ touch a abc@xyz:~/temp$ mkdir b abc@xyz:~/temp$ I want mkdir b to fail but touch a to ...
0 votes
1 answer
23 views

Change text using bash

So I have program called gamemode, and to check if it is running you can run: gamemode -s, which ouputs either "gamemode is active" or "gamemode is inactive". I want to pipe than ...
0 votes
1 answer
16 views

Backup NAS to an external drive on a connected computer

I found some options to backup the Synology NAS to an external drive, that is directly connected to the NAS. But is it possible to backup to a computer's external harddisk? For example, userX starts ...
3 votes
1 answer
2k views

Install CentOS on RAID (manually) on UEFI system

I'm struggling with the manual configuration of a RAID1 + RAID10. I'm trying the procedure on a VM (VirtualBox 5.0.14 r105127) on OSX 11.10.3. The strategy I took is: The complete set of commands I ...
0 votes
2 answers
36 views

modify umask of a running process

I have a program, which can be used by a group and thus the output should have group writing permission by default, thus umask 002. Of course each user could do (umask 002 && cmd). But since ...
0 votes
1 answer
11 views

Does dnf work with all the latest data installed/updated got through yum?

Through Virtual Box was installed Fedora Workstation 36. It for experimental purposes. About package/repository management there are two options yum and dnf where the latter is preferred over the ...
0 votes
1 answer
191 views

Resolution for FreeBSD text console

I am using FreeBSD 13 which I boot from grub. My monitor is 1280x768 native resolution, but FreeBSD text console uses it at 640x480: VT(vga): resolution 640x480 I tried the following in my /boot/...
0 votes
0 answers
22 views

Sudo does not prompt for password, though it is configured to do so

The users login to Redhat Linux server using AD. They are given access to root, but it is expected that their AD password is prompted when they sudo. When I try a sudo -l, it shows two entries User ...
1 vote
3 answers
3k views

Why can't I see new NIC with nmtui on CentOS 8 and how to resolve?

In a nutshell: I cannot see my newly added NIC with nmtui on CentOS 8.  How can I resolve this? Detail: I've installed a CentOS 8 VM on VirtualBox. Usually I configure two NICs during the installation:...
3 votes
3 answers
11k views

How to enable Unattended Access in anydesk, debian 10, openbox, lightdm

Regarding https://support.anydesk.com/Command_Line_Interface#Setting_a_Password I login $ su - and do # echo my_new_password | anydesk.exe --set-password after that I exit/login to standard user ...

15 30 50 per page
1
2 3 4 5
4352