Recent Questions - Unix & Linux Stack Exchange |
- NFSv4 wrong effective user / owner, sec=krb5 mount squashes to anonymous user
- How to set background of gtk app as desktop wallpaper using vala
- Matlab QT libraries prevent programs from running
- Audio input doesn't work, internal or external
- Using echo or printf to print out new line and carriage returns as \n and \r
- How can I shrink/use a Logical Volume and use it as swap
- What's the expected way to reconnect to shell instantiated tmux sessions that have timed out?
- How do I find duplicate lines in multiple files within folders
- mesa-common-dev: unmet dependencies
- Dual-booting Fedora already installed and Manjaro Linux
- How can I filter data from a large corpus using a shell script?
- How to perform a hot repair of a functioning, but limping rootfs with the switch_root command and a blank partition?
- Use linux version of a command instead of the BSD version
- How to changes colors for files that their group owner is `root`?
- Linux file permission confusion
- How would I Open an Internally hosted Webpage and Login without User Input on LINUX?
- Restart network on RHEL8/CentOs8 thru ssh using nmcli with testing that the operation has finished
- Convert this regex to be friendly within sed
- Struggling with systemd and user permissions for backup script
- How do I enable mounting filesystems in docker containers using apparmor
- Downloading large folder from Google Drive
- Modify grub to dual boot fedora with windows 10
- How do I stop KWallet from asking my password to let the system connect to WiFi?
- Validate ~/.XCompose
- 502 Bad Gateway
- how to run "play start" as a linux service
- Notify-send doesn't work at Cinnamon
- What's the easiest way to find an unused local port?
- Change font in echo command
NFSv4 wrong effective user / owner, sec=krb5 mount squashes to anonymous user Posted: 16 Jun 2021 11:58 AM PDT I'm setting up kerberized NFSv4 for personal use
I've got two machines, both running Ubuntu 20.04 LTS
All plumbing seems to work and I can mount the share just fine, but
I'm at a loss on what could be wrong here, so I'd appreciate the communities insight. I can provide the relevant configuration files ( |
How to set background of gtk app as desktop wallpaper using vala Posted: 16 Jun 2021 11:33 AM PDT How can I make a gtk application use the current desktop wallpaper as its background image using vala? Any help would be great |
Matlab QT libraries prevent programs from running Posted: 16 Jun 2021 11:23 AM PDT I have So I adjusted my but now i cannot run many programs from the command line, e.g.: or or If i remove the definition of the libraries from the |
Audio input doesn't work, internal or external Posted: 16 Jun 2021 11:04 AM PDT I can't figure out why I can't make the audio input work on my HP Omen 15 ek0006nl. In settings/sound/input I only find Rear Microphone - Built-in Audio with the volume bar stuck at a fixed level, and if I try to record something or make a call I receive a white noise. A similar thing happens if I use my Bluetooth headset (Sony WH-1000XM3): the related audio input device is recognized but the volume bar in the settings is stuck at zero and I get no feedback. The very same happens if I use an external USB sound card (UGREEN FBA_30143). In all the previous cases, the output audio works perfectly, with speakers, Bluetooth, 3.5mm jack and external USB sound card. Here's something that may be useful. Output of Output of Output of Output of I run Debian 10 bullseye 5.10.0-7-amd64 in dual boot with Windows 10, where the audio input works perfectly. |
Using echo or printf to print out new line and carriage returns as \n and \r Posted: 16 Jun 2021 12:03 PM PDT I am using echo to debug my shell script and would like to know how to use echo to also print out the new line \n and/or carriage return \r characters as well in the form \n and \r in order to inspect strings. Is this possible? |
How can I shrink/use a Logical Volume and use it as swap Posted: 16 Jun 2021 11:01 AM PDT How am I able to reduce /var/lib/vz logical volume (/dev/vg/data) and use it/increase the current swap size? /etc/fstab vgdisplay lvdisplay | grep "LV Path|LV Size" |
What's the expected way to reconnect to shell instantiated tmux sessions that have timed out? Posted: 16 Jun 2021 12:43 PM PDT When using tmux sessions that are invoked as part of the shell instantiation, a new session will be created each time a user SSHes into a system. When detached (as in session timeout), the sessions persists; however, when connecting back in, a new session will still be created instead of attaching to the previous session. What's the expected way to reconnect to or manage previous sessions? BackgroundIn the RHEL 8 STIG, there is a finding that requires that "session control is automatically started at shell initialization". The way this is done in the STIG is by starting tmux at login. Additionally, there are other controls that cause a tmux session to lock after activity, and for ssh to disconnect after inactivity. On my STIGed system where I'm causally testing aside my main development system, I end up with a lot of idle timeouts, and therefore a lot of detached sessions. Example of timed-out sessions How I've been dealing with itIf I try to reconnect to one of those, I get a warning: If I unset the value and attach the session again, now I have nested sessions, which greatly complicates things. In theory, i can finish up what I was working on within this nested session, but it seems like there should be a better way. What if before finishing up I detach again, then have to reconnect to the prior session, and now I'm three sessions deep? Note: I am using this system for testing and familiarizing myself with an environment that has implemented the RHEL 8 STIG. Hopefully, on a production system, the users are more mindful of the environment and there is a reduced chance of session idle timeouts. I can disable the timeouts for my use case, but I am trying to stay to the letter of the STIG. |
How do I find duplicate lines in multiple files within folders Posted: 16 Jun 2021 10:44 AM PDT when i want to find duplicate lines between two files i use this command or But, how do I find duplicate lines in multiple files within folders. example: and that the result in terminal is displayed by file (that is, the lines repeated in all files but specify which file is the one that contains it) to know the origin of the problem. PD: I tried this command and it didn't work for me |
mesa-common-dev: unmet dependencies Posted: 16 Jun 2021 09:51 AM PDT I'm trying to install mesa-common-dev on Ubuntu LTS:
however, the system returns:
Thank you so much
SUCCESS!! I add:
in the source.list file. thanks for helping me |
Dual-booting Fedora already installed and Manjaro Linux Posted: 16 Jun 2021 09:07 AM PDT I use Fedora with GNOME... I wanted to dual-boot it with Manjaro KDE because I want to discover more, and because GNOME is pretty buggy... What should I do? I'm a new Linux user so I don't understand everything... |
How can I filter data from a large corpus using a shell script? Posted: 16 Jun 2021 09:11 AM PDT I am trying to extract tweets from a big twitter corpus, filtered on a specific location the tweet is tweeted. After that, I want to search in the tweets for a specific word. I have a command to list all tweets as a tsv file: This gave me the following output, with a tab seperated: Now, I want to only list for instance tweets from |
Posted: 16 Jun 2021 09:06 AM PDT I have an extreme edge case that I may never see again, but I'd like to be prepared. I have an embedded system (u-boot) whose primary disk has 4 partitions. One of the partitions is the rootfs ( My kernel does not have
My goal is the following:
The main things I don't know are:
|
Use linux version of a command instead of the BSD version Posted: 16 Jun 2021 10:34 AM PDT I have a utility bash script from an old laptop that I'm trying to use on my current laptop. It fails because it's passing unknown options to the I don't have access to the old machine, so I can't say much about what might have been done to set it up, except that it should be very similar to the new one. The current machine is running Pop!OS 20.04, newly installed in the last couple days. Is there an obviously correct way to specify which of these similar commands I want to use? |
How to changes colors for files that their group owner is `root`? Posted: 16 Jun 2021 11:48 AM PDT I have tried How to change the color of different files in ls's solution to apply color changes in For example a Related question: https://superuser.com/q/1598934/723632, which has a solution only for folders. |
Linux file permission confusion Posted: 16 Jun 2021 11:51 AM PDT My home folder contains 2 users. 1 admin users and 1 guest. I basically want a guest user not to be able to change the directory to a directory outside his own home folder when he logs in via SSH session. The users look as following: The home directory:
From my understanding this means that others (not in root group) can read or enter(execute) this directory. Inside this directory the file system looks as following: So now the guest is able to switch back to the home directory once he is inside his own home directory because /home is executable to others. I The odd thing now: When I switch to my admin everything is working. I can go into my home folder, go outside; do everything but with the GUEST account I get a I cannot even read the default .bashrc file or execute an I even switched the permission for the guest homefolder to full access from everyone ending up with: I still get the error. What am I doing wrong? I want the guest not to be able to leave his own home directory but I want him to see his own home directory and be able to execute commands there. Why is it working with the olw user? The file system inside the users looks as following guest olw |
How would I Open an Internally hosted Webpage and Login without User Input on LINUX? Posted: 16 Jun 2021 12:00 PM PDT I'm trying to add to my current lines of Code if possible to Continue to Open my webpage in Kiosk on Chromium during startup, which I've managed with the code below, however I'm trying to make a Username and Password be entered automatically, and press the login button into the Webpage that follows. This is what I have so Far, Stored in /home/pi/kiosk.sh #!bin/bash xset s noblank xset s off xset -dpms unclutter -idle 0 -root & chromium-browser --noerrdiaglogs --disable-infobars --kiosk https://192.168.0.1/webconsole I then have another set of Code stored in SystemD that I've enabled so it Executes on Startup. located as: /lib/systemd/system/kiosk.service: [Unit] Description=Chromium Kiosk Wants=graphical.target After=graphical.target [Service] Environment=DISPLAY=:0.0 Environment=XAUTHORITY=/home/pi/.Xauthority Type=simple ExecStart=/bin/bash /home/pi/kiosk.sh Restart=on-abort User=pi Group=pi [Install] WantedBy=graphical.target This all works great, However my only issue is trying to add something to make my login details for this page open automatically. Any Advice? I tried looking into cURL but have no idea with it. And sometimes I'd get a SSL error, which I assume is because the Internal webpage won't have a security Certificate. Thanks for anyone's time who reads this. |
Restart network on RHEL8/CentOs8 thru ssh using nmcli with testing that the operation has finished Posted: 16 Jun 2021 09:21 AM PDT Thru ssh I'm updating the network configuration and then I want to restart the network. doesn't work very well with ipv6 static changes. So I tried: The above doesn't work as expected but using also I'm looking for a more reliable option like do a sort of a test in the command and if is not ok, to retry the commands for a number of times. Everything needs to be done in one step, because when network is going down, the ssh connection will be lost. A probe will check later with the new configuration. |
Convert this regex to be friendly within sed Posted: 16 Jun 2021 12:16 PM PDT I am trying to perform this regex with sed, but seems like sed does not support? It says invalid character range Trying to match any digits range with 12 to 19 regardless of whitespaces,-, or . characters Seems like the issue is fixed when I moved the dash up in the character range to Example: I am trying to perform this regex with perl Trying to match any digits range with 12 to 19 regardless of whitespaces,-, or . characters When I perform this on $info, and let's say info looks like this For some odd reason, it sets Then the resulting info turns into Even if I dont use wildcard to replace, but using letter x, somehow the |
Struggling with systemd and user permissions for backup script Posted: 16 Jun 2021 09:52 AM PDT I could use some help with figuring out the right way to accomplish what I need using systemd. I feel like I have backed myself in between a rock and a hard place and am not sure where to go. here is the condensed context: I successfully setup a systemd user unit to run a backup script nightly that does a few things:
All this works great. Now the issue is that I need to also rsync some data locally to my backup drive, but the data is owned by root. Rsync fails with permission denied unless I use sudo to run the script. But the problem is I can't figure out how to automate the use of sudo with a systemd user unit - calling pass doesn't seem to work. I read somewhere else that I should just use a normal systemd unit that runs as root to accomplish what I need, but the problem there is that all the other things that were working when running as a user unit break when running as root, because root doesn't have access to my user's ssh key or pass store. TLDR: What is the best way to setup a systemd unit that can: 1) execute commands that require access to my ssh key and pass store, 2) also rsync data that requires elevated permissions, and 3) do both of these things in an automated way where I don't need to be at the keyboard to type in my user's password? |
How do I enable mounting filesystems in docker containers using apparmor Posted: 16 Jun 2021 12:38 PM PDT I have a ubuntu 20.04 server running docker. Recently the default apparmor profile seems to have started enforcing a restriction on mount points in docker containers. So the containers write directly to the root filesystem rather than the mount. Outside of docker I can navigate the mounts with no issues but when executing a shell in containers it is as if the mount points are not mounted. I have narrowed this down to being caused by apparmor and disabling apparmor allows mounting and everything works as I would expect. The containers seem to be using the docker-default profile. My question is: how do I enable mounting in docker container either on a global basis or on individual containers. I would rather not have to completely disable apparmor for this issue? |
Downloading large folder from Google Drive Posted: 16 Jun 2021 11:53 AM PDT I want to write a script to download this folder from Google Drive. The script is aimed for non-expert UNIX users so I don't want to use more than curl or wget. I've seen solutions with the fileid, but I cannot manage to get the fileid in my case. Is there anyone that managed to download folders from Google Drive? Here are the solutions I tried: |
Modify grub to dual boot fedora with windows 10 Posted: 16 Jun 2021 11:07 AM PDT I am trying to dual boot fedora with windows 10. I am new to linux. I have found this code to be written in 40_custom file in grub. But this does not seem to work. It says cannot find disk. I have my windows in EDIT: My laptop had windows 10 pre installed when I had bought it. I have installed fedora 29 workstation. I do see the grub screen but the windows 10 option there(Created due to the above code) tells disk not found. Windows boot entry was not created automatically when I had installed fedora |
How do I stop KWallet from asking my password to let the system connect to WiFi? Posted: 16 Jun 2021 10:51 AM PDT I've just switched to KDE and although I feel interested in exploring the opportunity to use KWallet for all kinds of cryptographic key/certificate files and some browser passwords perhaps if it can do that (I don't know yet), I absolutely don't want to enter my password every time I want to connect to WiFi. In fact I have to enter my password twice at the boot time now - to log-in and to get WiFi connected right after that and I find this is very annoying. Is it possible to disable KWallet WiFi passwords management and let the network selection applet (or whatever it is) remember it itself or to configure KWallet to just stop requiring explicit authorization for things this simple? |
Posted: 16 Jun 2021 11:11 AM PDT I'm working on creating my own compose key sequences in Examples:Typo / Non-Existent Codes Full Collision Prefix Collisions QuestionIs there a command that validates my What I TriedI created I read Edit: As @quixotic suggested, I compiled The file I doubt that |
Posted: 16 Jun 2021 10:01 AM PDT I ran the following iptables commands to start pptp server: But it damaged the php-fpm service. Nginx returns an error "502 Bad Gateway". Nginx error log tells php-fpm service is running normally Could you advise me how to solve this problem? |
how to run "play start" as a linux service Posted: 16 Jun 2021 09:05 AM PDT I want deploy a play framework web application from source, and run "play start" to start the application. I wrote a startup script in /etc/init.d/ which execute "daemon play start" when service start, but the service start command did not return. I guess it's because play start is waiting for me to give him a Ctrl+D. "nohup" can fix it, but with "nohup", I have to run "kill -9 xxx" to stop the application, which is not what I like. What's the best way to run a play framework application from source as a linux startup service. Thanks a lot. |
Notify-send doesn't work at Cinnamon Posted: 16 Jun 2021 11:42 AM PDT I am using Here is cron job: Here is script for This snippet of function: Checks According to this answer I executed script, and now my All should work. I couldn't find what is missed. Because notification doesn't work now. From terminal it works fine: How to solve this issue? SOLUTION: Now my and
|
What's the easiest way to find an unused local port? Posted: 16 Jun 2021 10:01 AM PDT What's the easiest way to find an unused local port? Currently I'm using something similar to this: It feels awfully roundabout, so I'm wondering if there's a more simple path such as a builtin that I've missed. |
Posted: 16 Jun 2021 12:36 PM PDT Is it possible to change the font attributes of the output of echo in either zsh or bash? What I would like is something akin to: so that it print: "This is the font: normal, italic, bold, small" within a line of text. |
You are subscribed to email updates from Recent Questions - Unix & Linux Stack Exchange. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment