Recent Questions - Unix & Linux Stack Exchange |
- NAT specific host through the WAN interface, and all the rest through VPN tunnel interface
- Keepass Keeagent SSH Keys How to integrate with a bash terminal?
- How can I find an identifiable network name over ethernet?
- Cursor and keyboard are acting strangely in
- Huawei Matebook D14, Wi-Fi visible, but not workable
- Grub Read error : I think I have a hard drive problem, but I'm not sure?
- Issue with Tails Bootloader and Video Card
- How to install any linux distro as a main & only OS on my HP Laptop?
- inoticoming daemon started as service just vanishes
- xdg-open from .desktop file (in script)
- Add multiple options in cmake flag in a shell script and run the shell script
- How do i add custom font to ibus input methods
- I got one bad sector to disk is ok. I am confused
- Is installing Git in general and Git clone in particular on shared hosting server environments a standard / common practice?
- How do filesystem UUID's work from kernelspace perspective (and what can happen to my Linux machine when it is not unique)?
- In gnome some for applications the window shadow counts as resize area
- is it possibe to prevent app modify my /etc/resolv.conf dns
- ecryptfs in initramfs
- Git clone; how to deal with directory clashes?
- Changing Terminal Prompt Name
- Debian 11 Server - vsftpd virtual users don't work, permission issue?
- How to compare specifics positions of two files who don't have delimiter
- Persistent WiFi connectivity problems in Kali Linux
- SOLVED Really basic Samba set-up not working
- KDE Plasma doesn't start (black screen) after upgrading Debian10->11
- Bash, find and delete old files
- How to invoke shell function in string? (bash)
- Arch Linux in Qemu : Failed to access perfctr msr error
NAT specific host through the WAN interface, and all the rest through VPN tunnel interface Posted: 18 Sep 2021 10:26 AM PDT Here's a debian-based Linux router with 3 interfaces
In the past, I had activated the NAT with something like Then, out of laziness, I moved to I recently tried a commercial VPN (norvpn) which created the interface But, lately, I plugged-in a Windows laptop for my work on the LAN. Obviously, it has its own OpenVPN config to reach the company's network + remote desktop access to the company's Windows machine, and it doesn't work. The first symptom was an intermittent connection loss of the Windows VPN (which was not the case before). I thought I solved it by whitelisting the server address on my Linux router's VPN: The remote desktop seemed to start after, but it stayed on a black screen. Then, the RDP sometimes stated it was reconnecting. I don't want to fight against Windows and the RDP ports to open so I ended up trying to whitelist this windows host to skip the tunnel tun0. But, my notes are dirty around NAT/SNAT/MASQUERADE/DNAT and I have no clue if we can actually do what I want. Is it somehow possible, purely with iptables, to NAT my Windows host (say 192.168.0.30) to |
Keepass Keeagent SSH Keys How to integrate with a bash terminal? Posted: 18 Sep 2021 09:53 AM PDT I am completely lost here. I found out about storing ssh private keys (of which I have a lot of) in my keepass database. Before I had a bash script with a simple menu that would just use ssh -i and get the priv key file locally from the .ssh directory. The end goal here is to make a centrally available database of both passwords and private keys to utilize across different devices. I have since put all my ssh private keys in my keepass database and I am trying to figure out how to integrate keepass/keeagent with the bash terminal. But I think I have misunderstood what keepass can actually do. What I want to do is open my keepass database, run my existing bash script and be able to bring up an ssh session that way. I've been trying to look into using ssh-agent, but I have actually no idea what I am doing there or how that operates. All the information I find online is walking through steps way above me or options that don't use the terminal. So, is there a way I can run a command like this: I am on ubuntu 20.04 with KDE plasma as desktop. I have keepass2 (2.44) with keeagent plugin installed. |
How can I find an identifiable network name over ethernet? Posted: 18 Sep 2021 09:49 AM PDT As a network client over wifi, I can get a BSSID that shows a recognizable network name. Are there any equivalent method over an ethernet connection under nixes ? My question concerns personal computers on a DHCP lease, that could be connected to either a home's or a shop's shared Access Point. I'm looking for solutions implemented as libraries if possible. I suppose the gateway MAC address would be (almost) unique, and would let me identify the network I'm connected to. But it's not recognizable - because a bunch of hexadecimal blocks is not easy to remember I guess. I read in another related SE question's comments that I could traceroute some known place to try and find out the gateway's hostname. But I suppose this would not work when connected to an offline LAN. |
Cursor and keyboard are acting strangely in Posted: 18 Sep 2021 09:29 AM PDT I am using kali linux and today all of a sudden my keyboard and cursor started acting weird. "^[[3~ keeps printing upon enter because of which im unable to work. My kali release is 2021.3. Also, I couldnt attach a picture because it kept erasing from where the square brackets open while typing the issue. Please tell me how to fix this. |
Huawei Matebook D14, Wi-Fi visible, but not workable Posted: 18 Sep 2021 09:00 AM PDT I've been trying to install Fedora 34 Workstation on my Huawei Matebook D14 laptop. So, the problem is that wifi can show me other networks, but fails to connect each one of them. Network card is Realtek RTL8822CE Wireless Adapter. |
Grub Read error : I think I have a hard drive problem, but I'm not sure? Posted: 18 Sep 2021 08:56 AM PDT One year ago, I got a big grub problem on my laptop (an old Lenovo), with dual boot windows/unbuntu. I spend one entire day to repair that and I finished by reset my computer and install Pop Os (without dual boot). It have resolved the problem (I was thinking at this time). Now, I have used Pop Os until I have a new grub problem that is quite weird : my laptop run the os 1/3 time, the other time I have a grub problem. I searched to resolve that the entire day yesterday, I reset it and I have now the same problem. There are here very weird things, and I just want to know if I can fix that or if this is a problem with the hard drive (wich I suspect). So, when I run my compute I have 3 options :
This is a try to repair grub on grub rescue (msdos3 is a boot partition, the os partition is msdos2). What do you think about that ? Is it fixable for you ? |
Issue with Tails Bootloader and Video Card Posted: 18 Sep 2021 08:48 AM PDT When attempting to run a Tails boot-loader, I received: Error starting GDM with your 2 graphics cards: At the time of the error msg I was using a fresh Tails v4.22 boot-loader on my early 2011 MacBook Pro. This is the full msg I was given; Advanced Micro Devices, Inc. [AMD/ATI] [1002:6741] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] Intel Corporatio Please take note of this error and visit https://tails.boum.org/gdm for troubleshooting. At the web page for troubleshooting I could not find the video card listed as a known problem so I went through the suggested generic troubleshooting steps of adding to boot options; I tried them seperate and all at once but no variation seemed to work. Do you have any suggestions? I am lost as to where to go next... Thank you for your time and I hope you have a great day! |
How to install any linux distro as a main & only OS on my HP Laptop? Posted: 18 Sep 2021 10:06 AM PDT I had used ubuntu in WSL2 for 3-4 days ,also tried to use kali linux on wsl2 but due to network manager problems I left my idea. Yesterday I was trying to dual boot pop os with windows 10 but due to wrong partition(I have GPT mode but did in MBR ) I was unable to do this. Also tried to do in gpt mode. It was not showing in boot menu. My friend told me that Microsoft destroys grub boot loader when we dual boot with linux distro. Now, I have decided to use a linux distro(Manjaro ) as a main and only os on my hp machine. How can I do this ? Will I face any problem like grub boot ? Please help me. Thanks |
inoticoming daemon started as service just vanishes Posted: 18 Sep 2021 08:18 AM PDT I'm trying to get inoticoming to start monitor a folder, and it's working if I start it manually, but I can't get it to autostart. I know it starts, because if I enters a non-existant directory it will complain about it in the syslog.. If I start the service manually it doesn't work, but if I'm running the script it starts without any issues. so it refuses to start via system service, or is there some other way to start this? (also tried directly (without script) in the service file.. ipmon.sh: Running Ubuntu server 20.04.3 |
xdg-open from .desktop file (in script) Posted: 18 Sep 2021 10:03 AM PDT I am trying to get a shell script to launch a browser. When run standalone, this script successfully opens a browser with However, I am trying to make it convenient newbie-friendly, so I've created a .desktop file which launches this script (linuxStart.sh) Here's the .desktop file So far so good. But when run this way, it seems xdg-open does not run, and the browser does not open. The command is ignored inside the script. What gives? I have tried inserting on top of the .desktop file with no effect Here is linuxStart.sh (proof of concept) Thanks OS: MX Linux 19.04 DE: Xfce |
Add multiple options in cmake flag in a shell script and run the shell script Posted: 18 Sep 2021 08:06 AM PDT I want to run a set of commands from a bash script. How ever I don't know how to put the quotation in a bash script. The following is the bash script which I want to run, how ever in the cmake -DCMAKE_C_FLAGS I want to add another flag -gcc-name=/path/bin/gcc. I want to do it through a shell script and eventually run that shell script, which is going to give me the installation. Please kindly suggest me a way to do this. |
How do i add custom font to ibus input methods Posted: 18 Sep 2021 07:54 AM PDT i want to add bamini (tamil language font) to my input method . Is that possible? if so how do i do it? if thats not possible can i change key mappings |
I got one bad sector to disk is ok. I am confused Posted: 18 Sep 2021 08:56 AM PDT |
Posted: 18 Sep 2021 07:27 AM PDT So far I avoided using Git clone (a terrible mistake) just by a principle that because I work with shared web hostings and I can't control which programs are installed and Git might not be installed on a given shared server by a given shared hosting company (because maybe many if not most users SSHing into a shared hosting don't use Git), than I should just make myself used to downloading code from GitHub with zips, doing Today I found thanks to user:terdon, that Git clone is very easy to use and is more efficient than dealing with archives, at least for very small projects, hence the question in the title. |
Posted: 18 Sep 2021 08:52 AM PDT In the end I guess that is really the question I want to find an answer for: Can I crash a Linux box if the root filesystem does not have a unique UUID? But please read on, this question is about understanding the cause in depth and not so much the effect of a faulty configuration. Given the fact that I can clone an entire root filesystem including its UUID in a separate partition of identical size. On both the original and the clone the inodes would point you to a copy of the same file and the same block on disk (partitionwise), so you wouldn't notice anything starting to go wrong. But if so, I want to understand why, or what the nature of problems would be that can be expected. There are a lot of writings on the topic how UUID's in filesystems can ease your life, how they are supposed to work, how Could you for example get some sort of split brain situation where some blocks are read or written from the one partition and other blocks from the other partition? Can the kernel lock up? Perhaps trouble mounting and/or unmounting the other device? Perhaps on a side track: How does multipathing fit in, which is able to manage a very specific case of duplicate UUID's. Back to the actual question: How does the kernel actually utilize these UUID's internally? When I mount a filesystem by UUID and I inspect the output of Perhaps my answer is in https://www.kernel.org/doc/ but that is a bit overwhelming when I don't known what exactly I am searching for. Deep links into this website are welcome too. |
In gnome some for applications the window shadow counts as resize area Posted: 18 Sep 2021 07:15 AM PDT I have an Arch Linux installation with gnome 40.4 and gtk2 (2.24.33), gtk3 (3.24.30) and gtk4 (4.4.0) installed. (Graphicbackend is X11 if that's relevant) For some applications - probably those that use gtk3 - (like Thunderbird, Firefox, VSCode) the drop shadow of the window counts to the resize area for the window (which is roughly 60px). For other Applications (like Chromium, Settings, Nautilus) the shadow doesn't count to the resize area, which is the behavior I would expect. The Theme used is Adwaita but that behavior also exits for other themes. Does anyone know what the reason for this could be and how that could be changed? Having a 60px large area around the window one cannot be click-through is a bit annoying. |
is it possibe to prevent app modify my /etc/resolv.conf dns Posted: 18 Sep 2021 07:30 AM PDT Recently I facing a problem, technically it bother me for a long time. My Fedora 32 dns config in what I want the dns conf looks like this: I only want the |
Posted: 18 Sep 2021 10:11 AM PDT I have a dir but neither password is asked, nor error is printed. What am I doing wrong? UPD: Do I need to copy UPD 2: I've copied all files from |
Git clone; how to deal with directory clashes? Posted: 18 Sep 2021 07:13 AM PDT I have noticed that Git clone can easily download all files of a GitHub repository to to a directory named exactly as the GitHub repository (without having to deal with archives). If a directory with the same of the repository already exists, Git will throw an error:
In such case, perhaps a good coping with it is to somehow clone anyway but to just save the data in a directory with a different name. |
Posted: 18 Sep 2021 08:10 AM PDT The terminal window starts with a default of How would I use "set prompt" in .cshrc it so that it would also display the time? |
Debian 11 Server - vsftpd virtual users don't work, permission issue? Posted: 18 Sep 2021 08:28 AM PDT I have a Debian 11 VM with vsftpd enabled for my local user. I want to create a virtual, FTP only user (who should be rw limited to their home directory). I followed this https://help.ubuntu.com/community/vsftpd Unfortunately this not only doesn't work, it also breaks my local user. The user is named Connecting a local user (copied from Filezilla, 100% sure password is correct) Connecting a virtual user
The virtual user
Any help would be appreciated because I hit a wall. I'm not a Linux admin, I'm learning this on the fly |
How to compare specifics positions of two files who don't have delimiter Posted: 18 Sep 2021 10:03 AM PDT File 1 File 2 I need full non-matching lines but comparison must ignore characters in positions 4 to 6 and 10 to 12. In that exemple, only the second line should be different. I don't want a read loop to parse the files line by line... Files have millions of records. Thanks! |
Persistent WiFi connectivity problems in Kali Linux Posted: 18 Sep 2021 10:09 AM PDT I have been having WiFi trouble for months now, and I've tried all manner of solutions with no change. Hardware: Mid 2012 MacBook Pro unibody, 16gb RAM and 500gb Samsung SSD OS: Kali Linux 2021.2 with weekly updates to all software. Running Live with Persistence from a USB drive. Driver: Broadcom BCM 4331 Problem: Linux will connect to my iPhone hotspot with no problems and no connection lag, but when connecting to my university's WiFi or home WiFi, it either will not make the connection at all, or establish a connection for about half an hour, then stop working. Webpages pull up a "connection timed out" or "could not reach the server" errors. Currently I have a decent connection to my university's WiFi, but about a half-hour prior, I could not connect at all. Attempted:
Various other attempts were made to fix the problem but I can't remember what all I tried. At the moment, all edits to /etc/network and /etc/NetworkManager files have been removed, all NetworkManager settings are the default. |
SOLVED Really basic Samba set-up not working Posted: 18 Sep 2021 10:29 AM PDT SOLVED by @roaima I needed to add users to Samba using Background: I had a Debian server running a Samba share, and it played nicely with everyone: Debian, Ubuntu, Mint, Windows 7, Windows 10, Android 8 through whatever is current, even XP (for testing purposes). One of the services (Plex) on that server was problematic, so I set up another Debian server with the same storage devices, and set up the services I want. So far, all of the services work, except for Samba. I figured I mucked up the config some how, so I copied line by line the config file from the old server to the new server, and this had no change. I know it's a problem on the server, since it's the same for all the clients (Linux, Windows, Android, etc) Win10 and Mint are both giving me the same generic error: Samba has these nifty logs - one for each client, but, when I try to read those logs, they're blank and all read as 0kb. It seems like a simple thing that should be working... What the heck do I do now? Any advice is appreciated; thanks in advance! (BTW in case it matters, I tried the first time using Webmin, then just the config files in /etc when Webmin didn't work) Output from |
KDE Plasma doesn't start (black screen) after upgrading Debian10->11 Posted: 18 Sep 2021 08:27 AM PDT I upgraded from Debian 10 to 11. After completing the upgrade – which had problems due to lack of disk space (there should have been enough), some rkhunter config and unattended-upgr blocking konsole commands – I rebooted. The first strange thing was that the initial boot screen asking for the grub password was red and looked a bit strange instead of blue but quickly changed back to the blue one. The second problem was that after logging in I only have a black screen (with some windows on top). This is because plasmashell isn't running (the only thing that runs is |
Bash, find and delete old files Posted: 18 Sep 2021 10:04 AM PDT Write script to backup files and delete old backups: Command Line (for testing): Somehow, the script does not work. However, if I execute it in the console, all is OK and old files get deleted. But if I run the script, files are not deleted (tar archive get created when I run the script). Why? Script permissions are |
How to invoke shell function in string? (bash) Posted: 18 Sep 2021 08:02 AM PDT I want to invoke shell function in string. Here is my use case: Here I want Say that is opposite of Maybe I gave a wrong example. I want to combine multiple shell functions like actual executables. A real case goes like this: Here |
Arch Linux in Qemu : Failed to access perfctr msr error Posted: 18 Sep 2021 09:03 AM PDT I got the Arch Linux (march build) iso file through bittorrent lately. I tried to run it in VM, but it only gets up to the main screen (The screen where you select what you want to do) shown below: But when I select first option, it shows a black screen which goes nowhere. The Hardware Information option seems to work, but it's out of my intellectual capacity so I ignored it. I then tried On selecting I am a Ubuntu user, so I don't get anything of this, but the first error seems to be: |
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