Recent Questions - Unix & Linux Stack Exchange |
- Is it possible to install Virtual Box or other free virtual machines on a cluster?
- how to locate the root cause of a corrupted ext3 filesystem
- NordVPN on Arch Linux Limited Connectivity
- How to install guacamole on ubuntu and access directly from web just like kasmweb
- Handle names with spaces when iterating recursively over files
- Why are .z.* files created for
- Overlapping desktop icons of Nemo and Nautilus in CentOS
- APT-KEY GPG --recv-key process hangs without any network traffic
- extract information from hard .log file
- xhost not working in combination with aws vpn client
- Group Creation Function issue
- diff program gives false positive for files with non-ASCII characters in filename
- Script to create symbolic link
- GNU Linux "sort -g" can hang indefinitely when run on standard input (on Ubuntu)
- File changed whilst editing with vi
- wlan0 interface disabled at startup on raspberry / debian
- Fusermount : Fatal error failed to mount FUSE Error 1
- Almost multiseating with Sway
- bash IPC using named pipes
- zsh: How to retrieve the previous command line?
- Understanding the gateway being 255.255.255.0
- How to make yum aware a source package was installed?
- Calling Bash script from Sieve script
- Gnome-tweak-tool kali linux 2019 "shell not installed or running"
- How to negate a gitignore pattern containing spaces?
- zsh line editor: Can I navigate and edit by argument?
- Open a directory in the default file manager and select a file
- Kali Dns Problems
- Cannot use ALFA-AWUS036NHA over my laptops wireless card
- Why can't I access to my ftp server with my local user account?
Is it possible to install Virtual Box or other free virtual machines on a cluster? Posted: 29 Apr 2022 01:46 PM PDT We have a CentOS HPC cluster and despite asking, the admins do not like to give us root access. I have more experience with finding the packages I need in Ubuntu's apt and conda-forge etc. I am wondering if it is possible to ask them to install a virtual machine for us and not be worried about us breaking down the OS. Does anyone know if that is possible, and if so, can multiple clusters be utilized within an Ubuntu virtual machine installed on a CentOS? I assume it is reasonable to expect loss of performance for parallel simulations, but even at a moderate loss I can live with it. |
how to locate the root cause of a corrupted ext3 filesystem Posted: 29 Apr 2022 01:45 PM PDT I have a 4G Compact Flash card with a 2.5G ext3 partition. The file system has become corrupted. I am not necessarily interested in fixing the file system as identifying exactly what is corrupted in the filesystem. Aside from knowing outright the filesystem is corrupted, when running GNOME's Disks utility, if I select the partition and select to 'repair the filesystem', it eventually errors with: Error repairing filesystem on /dev/sdb3: Process reported exit code 1: e2fscf 1.42.9 (28-Dec-2013) (udisks-error-quark,0) I got the idea from here to use badblocks to try to identify bad blocks, get inode numbers, and find corrupted files. however when I run this, badblocks didn't find any badblocks (ran a few times) I thought this was odd, so I ran fsck, but that reported no errors either: Now I am confused. what does it mean that I cannot repair the filesystem, yet filesystem checker and badblocks tell me nothing is wrong. Is it just a mechanically failed CF card then? Anticlimactic...It is new after all. |
NordVPN on Arch Linux Limited Connectivity Posted: 29 Apr 2022 12:14 PM PDT I am using the NordVPN-bin package from AUR on my Arch Linux system (Manjaro KDE Plasma). Connecting etc works just fine, but after I connected to the services I always get the notification: "Limited connectivity" on my WLAN/LAN. This sometimes leads to that I have no internet access anymore. Then I have to deactivate my internet connection and reactivate it. That sometimes works, but sometimes I have to reboot. I have deactivated all additional settings for nordvpn (Kill Switch, Cybersec, etc). Also I deactivated IPv6 for my network adapters and I have removed the preinstalled package "openvpn". Everything does not help and NordVPN Customer Service cannot help me, since Arch Linux is not official supported. Hope someone could help me out here! |
How to install guacamole on ubuntu and access directly from web just like kasmweb Posted: 29 Apr 2022 11:53 AM PDT can anyone help me how to install guacamole on freshly install ubuntu and access to web What are the commands to install? |
Handle names with spaces when iterating recursively over files Posted: 29 Apr 2022 12:59 PM PDT I am trying to recursively convert all I got a standard line that works in just the present folder So I thought I would make something like But this seems to fail on folders with spaces in them. Can anyone point out my error? |
Why are .z.* files created for Posted: 29 Apr 2022 12:00 PM PDT In my home folder I have realized that there are plenty of |
Overlapping desktop icons of Nemo and Nautilus in CentOS Posted: 29 Apr 2022 11:19 AM PDT I have installed Nemo (file manager) and run the following commands The 2nd command should remove all the desktop icons from Nautilus and the 3rd command should add all the desktop icons from Nemo. Yet I see all the icons both from Nautilus and Nemo simultaneously, overlapping each other like below. If I run the 2nd command and observe carefully, I see the desktop icons from Nautilus disappear for a fraction of second and reappear. |
APT-KEY GPG --recv-key process hangs without any network traffic Posted: 29 Apr 2022 10:52 AM PDT On Debian 11, running as root. I am attempying to add the mysql repository public key (due to the expiry in Feb) and update to mysql 8.0, but every apt-key or gpg command I run just HANGS. Even adding Commands I've attempted so far: The GPG commands don't even have an output, it just immediately hangs. The ultimate problem I am trying to solve: I pulled the original apt-key command from their documentation here: https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ Anyone know what is happening? How can I find out why these commands are hanging? |
extract information from hard .log file Posted: 29 Apr 2022 10:19 AM PDT I've got a big .log file containing a lot of information and I would like to extract only few of this and put all in different outputs files. Example of part of the .log file: The structure of the file is always the same but the number of rows, ID and numbers could change. From this I would like to obtained 4 different outputs (maybe using some constant "string" always present as " output1: (between " Output2 (Between " Output3 (Starting with row which contains Output4 All Output should be a I have not idea how I can do that. Could someone help me with this hardest challenge please? |
xhost not working in combination with aws vpn client Posted: 29 Apr 2022 09:49 AM PDT I have a laptop running Windows with a Cygwin X server. On this machine I have a virtual Linux box running under VMWare. I set export DISPLAY=xserver:0 on the VM and do xhost +xclient on the cygwin shell. I can use either the hostname or the IPv4 address. I can now run my X programs (mostly emacs/xterm) by redirecting the display. So far so good. I also need to use the AWS VPN client to connect to AWS (horrible client but it works). This runs on the Windows laptop but also gets picked up by the virtual machine. I can now talk to AWS on either machine. So far so good. However, if I try to start any X programs on the linux machine, it refuses to authenticate it. I just get the error "Authorization required, but no authorization protocol specified". If I add the IP address or the server name, it doesn't matter - same error. Neither IP address has changed (I've verified this with Wireshark). If I do xhost + to disable the authentication, then I can connect but this is obviously hideously insecure and I don't want to do it. I've tried going down the xauth rabbit hole but that just replaces the above errors with Invalid MIT-MAGIC-COOKIE-1 errors. Any idea what's going on? |
Posted: 29 Apr 2022 09:29 AM PDT I have Created a Linux function that will create developers, my requirement is to take the developer's first name and create a linux user and development environment. It should run something like the below commands: If any of the '$1' directories exist it would throw a notice to the executor, right? We'll need to edit the file created at step 6 after the process with the developer's key.. or do one of the options below would be better: Pass the key in as a second parameter for function call Create the key on the fly and output private key after function runs, and delete private key file? I have tried this : can anyone guide me on it! I would be very grateful for any help, as my experience in this field is somewhat limited. |
diff program gives false positive for files with non-ASCII characters in filename Posted: 29 Apr 2022 09:23 AM PDT Example: What can I do about it? The files are identical. |
Script to create symbolic link Posted: 29 Apr 2022 08:49 AM PDT I am trying to make a script that automatically create a symbolic link of a file to my Desktop. I have made an alias to my script and made the script executable (it works if I just "echo $path"). The expected use would be Creating a symbolic link through the command Here is what I tried (among a few variation): and got the following error Any ideas ? |
GNU Linux "sort -g" can hang indefinitely when run on standard input (on Ubuntu) Posted: 29 Apr 2022 08:13 AM PDT The following command (on Ubuntu 20.04 and 22.04): Can hang indefinitely, with the GNU sort command taking 100% of the CPU. I cannot understand what causes this. However, it only happens when the file to sort is input from stdin |
File changed whilst editing with vi Posted: 29 Apr 2022 12:12 PM PDT I'm using an Ubuntu 20.0.4 machine and connecting via SSH to run I'm the only person using this machine, and if I look at |
wlan0 interface disabled at startup on raspberry / debian Posted: 29 Apr 2022 08:54 AM PDT At boot of my Raspbian (Debian 10) I have this: I can activate the wifi only with the desktop interface / mouse. Everytime I reboot I have to activate it manually. Any hint about how to activate it on boot? Thx |
Fusermount : Fatal error failed to mount FUSE Error 1 Posted: 29 Apr 2022 11:32 AM PDT I wanted to mount my rcloned drive. When i try to mount that rclone using this command: I want to mount it and referred to many thread related to this. I even tried.. Output is :- I have tried running It responds with I feel like Fuse isn't installing. I can't find any file related to fuse. I installed fuse using It successfully gets installed it . Kindly refer to the log. Click here to see logs on pastebin! I'm running Ubuntu:20.04 on docker. And seems like docker doesn't like fuse very much. I even tried using google-drive-ocamlfuse but The VNC rdp disconnects while opening browser for Google authentication. |
Posted: 29 Apr 2022 01:35 PM PDT With swaywm I'm almost multiseating (two people simultaneously using the same computer) with two keyboards, two mice and one GPU with two outputs. At the start of the sway session, one nested X session is opened with Xephyr querying the localhosts XDMCP server (enabled in lightdm) In short, these are the commands executed: Xephyr successfully opens a new session, then it's moved to the proper monitor and one of the mice moves only there, and thats it. Now, how could I capture the keyboard and mouse keypresses from the input devices attached to "seat1" only to that window/container regardless of focus? Xephyr -keybd/-mouse driver settings doesnt work at all, neither -seat I know how to multiseat with multiple GPUs and loginctl defining seats, but my goal is to multiseat with one GPU in any recent Linux distribution and not in old, patched ones. Thank you very much! |
Posted: 29 Apr 2022 12:58 PM PDT Consider the below script Does not seem to work as expected. E.g. Does the echo not supposed to wait if there are no readers for the fifo? When I do this in terminal, it hangs as expected Why does it behave differently in the script? UpdateI changed to use fds instead of opening every time. Not sure I fixed it or just made it more rare for the race to occur. Update 2Don't need a fifo at all. Just proc substitution is enough to run something in background and read from it when required. Tested adding sleep before and after in both producer and consumers. Seems to work fine. Likely no race. |
zsh: How to retrieve the previous command line? Posted: 29 Apr 2022 11:22 AM PDT I would like to create a command which fetches matching previous command, something like this: but which then exits and populates the command prompt with the most recent match, e.g.: and leaves it for the user to edit (if desired) and press enter themself. Is this possible? How would I do it? I am using |
Understanding the gateway being 255.255.255.0 Posted: 29 Apr 2022 12:59 PM PDT I know it looks similar to a lot of questions about OpenVPN and routing table, however, I believe it's different from the rest -- or at least I haven't found a duplicate yet. In my case after I connect to the OpenVPN server, I notice that the default gateway is changed to 255.255.255.0 (that's right, the gateway, not the mask.) Below is my routing table. Before connecting to the OpenVPN server: After connecting to the OpenVPN server: It works as expected: OpenVPN routes all my internet traffic through the server, as well as all traffic to the remote LAN (192.168.100.0/24). It just confused the bejesus out of me when I saw the gateway to be 255.255.255.0. I would understand it if the netmask was 255.255.255.0, but it's the gateway set tp 255.255.255.0. How to understand this? If I delete the first entry with or using the server's IP in the VPN subnet (10.8.0.0/24), neither works. So I suspect this is some kind of trick the OpenVPN uses to direct it to the server. Any input would be appreciated. |
How to make yum aware a source package was installed? Posted: 29 Apr 2022 12:07 PM PDT I removed a yum package and installed a higher version of the same package from source. But yum doesn't see it. Whenever I try to install a yum package, it tries to install the older yum package and doesn't see the source package I installed. Is there a way to get yum to see the source package? Bear in mind I don't know how to create rpms from source yet. |
Calling Bash script from Sieve script Posted: 29 Apr 2022 11:10 AM PDT I'm not sure if something similar has already been asked. When the sieve script executes and is supposed to call the shell scripts, I get the following errors: Besides the fact that I have no clue what the "server log" refers to, I just can't figure out what exactly the problem is. Sure it seems like a permission error, but how could it be fixed? About our system: Debian 10.4 with dovecot 2.3.4.1 and pigeonhole 0.5.4 No matter which owner I set (root:root or dovecot:root, the only other users that are not "human-users" would be something like _apt, bin, nslcd, daemon, dovenull or www-data) Any idea what could cause that? EDIT2: Accordingly I changed the 90-plugin.conf to contain where rspamc resides. Now I'm getting the error What went wrong? Or is the pidgeonhole pipe command only able to call shell scripts? |
Gnome-tweak-tool kali linux 2019 "shell not installed or running" Posted: 29 Apr 2022 12:08 PM PDT So I was trying to switch up the theme for my new kali linux 2019.4 virtual machine. I installed The gnome-tweaks windows shows up, but the changes don't actually take effect when I try to change the wallpaper. I tried to run I tried doing |
How to negate a gitignore pattern containing spaces? Posted: 29 Apr 2022 11:02 AM PDT My .gitignore starts by excluding everything, and then negating everything that I want to include, to avoid lots of noise in However, after installing Visual Studio Code I can't seem to negate the match for the directory "Code - OSS". I've tried the following lines: With all of those lines at the bottom of my .gitignore The output of |
zsh line editor: Can I navigate and edit by argument? Posted: 29 Apr 2022 11:12 AM PDT I have a common situation in the shell when a command is attempted and it turns out that I'm mostly there but need to move some stuff around. Suppose I have to move the last argument all the way to the front to attempt this next. Trying to take a keystroke golf look at this, it's a dire situation. This is actually a nightmare shell command entry scenario where you kind of have to re-type (or copy&paste) almost half the command. The best hope of sanity might be to use an external editor [like this]. Even still, Vim isn't smart enough to do arg parsing (so there is no quick way to slurp out the last arg there using e.g. I think that this can be a decent workaround, because I do bring a lot of software to bear on editing text in vim since I use it to do all of my coding. But what I want is if Zsh (or even Bash!) line editor could be programmed somehow to let me shove an arg around. Kind of like this: https://github.com/AndrewRadev/sideways.vim But of course, this plugin won't work on space delimited shell arguments either. And it requires vim. I'd be happy with either a directional hop (so that I can put my cursor somewhere on the This way we can rapidly recompose shell arguments by navigating the args as a unit rather than navigating individual characters as a unit. It would speed up general command editing a lot. I care about this a lot because I do an unusually large amount of coding directly in the shell. If we are to take the idea further this would be implemented as an editor mode, let's call it Argument Edit Mode, where the cursor moves across args instead of characters and a more developed set of actions can be performed on args as a unit. Let's come back down to earth now. The question is this: can I programmatically cause zsh to delete the shell arg that i'm currently on? And then paste it back in? Can I bind a key to let me hop based on actual args instead of just hopping words? There doesn't seem to be ready-to-use binds for use with |
Open a directory in the default file manager and select a file Posted: 29 Apr 2022 09:39 AM PDT In a program which I am writing I want to offer the functionality to open the directory where the file which I am currently processing is located and automatically select that file (so that the user does not need to search for it). I know that I can open a directory in the default file manager using I know that I can open a directory in nautilus and select a file using I thought that I could use to get the default file manager and - if it is nautilus - call it as shown above. But, despite the fact that nautilus is the default on my system ( Also, I do not know how to open a directory and select a subdirectory in nautilus (with the above mentioned approach it would open the subdirectory). How can I open a directory in the default filemanager and select a file in that directory (if selecting a directory, too, was possible that would be great, but for this application not needed) or at least find out the default filemanager so that I can call it directly? |
Posted: 29 Apr 2022 09:53 AM PDT I have a problem. So, when I connect to any wi-fi station I can't use google or yandex. I solved that. The thing was in dns. I added google dns servers to 'resolv.conf' and it worked fine. However, after reconnection it does the same thing and I have to write manually or with script to set dns. Is there any way to make this process automatically when the computer connects to the network? I tried to do it through the network/interfaces post-up and if-up.d . But it didn't help. The code is like that. interfaces: ssh_and_dns_start: |
Cannot use ALFA-AWUS036NHA over my laptops wireless card Posted: 29 Apr 2022 10:07 AM PDT I recently bought an ALFA-AWUS03NHA Wireless Card, I am running Debian and I want to use the card with the aircrack-ng suite of tools. However, I am pretty sure it is using my laptops wireless card, for a few reasons: the light on the ALFA card never flashes, and if I'm running a command and unplug the card it makes no difference. I've done some research into the drivers for the card, I believe it uses the AR9271 driver, which is included in some download called 'ath_9k'. But I think this is already installed, at least when I run lsmod the drivers show up: Before plugging in the card, I run the following commands: I've ommitted a few things, such as identifiable network information and addresses, and a lot of things from lsmod to save space, I just included anything which had ath9k in. Now I plug in the card, and run the following commands: Note the driver number (is this a driver or chipset number? is there a difference?): 9271. Running if/iwconfig seems to return pretty much the same output, with or without the card. The first thing to notice is AR9285, NOT the same chipset/driver listed for the wireless card. After plugging the card in, there still seems to be one accessible wireless interface, wlan0. What is supposed to happen, do I get a new interface, wlan1, on top of the old one, or should the wireless card overwrite the other and become the new wlan0? If I run the same lsmod command as before now the card is plugged in, I get new drivers appearing in the 'usbcore' section: I'm pretty sure neither of those things are happening, instead the wireless card simply isn't being used, I'm sure of this as I can unplug it with no effect, and it never flashes at any point during set up or execution of commands. So, the question! Do I have the correct drivers installed for the card? If so, why is it not working? Every video or tutorial I've seen assumes the Alfa is just plug and play. Am I missing out some step here? |
Why can't I access to my ftp server with my local user account? Posted: 29 Apr 2022 09:01 AM PDT First of all I'm using For the All of them are uncommented. I then restarted the For After entering the user account name and password for ftp://domain.com, it seems like the server is not recognizing my username and password. They are the same credentials I have been using to log in to Then I found something on Google about OK, now I am able to connect using ftp in putty, but not in the web browser or |
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