Recent Questions - Unix & Linux Stack Exchange |
- how to set xterm to have "Huge font" through .Xresources
- Bash script behaving differently when executed from Crontab
- Why Canadian Cross is used?
- Traceroute Output to a File
- Checking date format in bash
- How to find all possible locations for libraries and header files on any distro?
- Which $TERM renders bold text in vim as well as display status line?
- What is the error in the service file?
- Linux - Rename odbc.ini file in home directory
- What does this error mean?
- What is the purpose of "domain name" setting in Linux?
- Downloading Red hat dependencies recursively on ubuntu
- Modifying boot process in a Linux Live USB
- sed : have a range finishing with the last occurrence of a pattern (greedy range)
- What is the starting address of the bootable flash partition according to the CHS address, LBA address, fdisk -l output address
- How to mirror a screen in TigerVNC?
- Getting values of a variable which have letter, numbers and symbols in linux
- Is there any linux utility to create plain binary dump of file and vice versa?
- How to write automated tests for zsh completion?
- Is there a kernel option to allow a userspace app discovering custom USB devices on the host?
- "Data directory /var/lib/postgresql/13/main must not be owned by root"
- Wireguard - Clients can ping server but not each other
- Convert multi lines to single line with spaces and quotes
- Docker reporting that my Linux kernel doesn't support cgroup cpu real-time period
- How to activate a specific Terminator profile from the command-line?
- How to install a particular version of boost with brew on MacOSX?
- Download package via apt for another architecture
how to set xterm to have "Huge font" through .Xresources Posted: 13 Sep 2021 10:42 AM PDT this question is related to https://unix.stackexchange.com/questions/198010/unable-to-configure-font-in-xterm[][1], however, I have not been able to get it to work. So, what I want is very simply to be able to have the Huge font enabled by default for me when I start xterm. I have the following in my .Xresources: followed by However, this does not do anything to get the xterm have "Huge" fonts. I also tried a bunch of things such as |
Bash script behaving differently when executed from Crontab Posted: 13 Sep 2021 09:29 AM PDT I have a script that executes perfectly fine manually, though two commands in particular are completely ignored by Cron (this is just a snippet): Crontab Error messages These error messages don't make sense to me since the script runs fine manually. |
Posted: 13 Sep 2021 09:51 AM PDT I'm going through the Linux From Scratch 11.0 book. On page 57 there is a bit about Canadian Cross cross-compilation. I do not understand why there need to be 3 stages and 3 machines to get to the end result. The text assumes that we start with computer A and a compiler that runs on A and produces binaries for A. So why don't we just use that compiler to build a compiler that runs on C and builds binaries for C? Why there is so much hassle instead, with building a compiler that runs on A, but builds for B, then a compiler that runs on B, but builds for C, and finally the compiler that runs on C and builds for C? I also found an article on Wikipedia about it - https://en.wikipedia.org/wiki/Cross_compiler. |
Posted: 13 Sep 2021 10:32 AM PDT I need a script that will continuously do a trace route to four addresses and output the results to a file. Can anyone help? What i have so far:
|
Posted: 13 Sep 2021 09:11 AM PDT I have the following lines in a bash script: This works fine as long as the input are 8 numbers (e.g. it accepts "20210901" and rejects "20213131"). However, when the input is totally off (e.g. "a" or "nonesense"), it simply takes today's date. How could the code be modified for a stricter check of the format? |
How to find all possible locations for libraries and header files on any distro? Posted: 13 Sep 2021 08:20 AM PDT I found that the location of libraries and header files are very different on different distributions. For Example on Fedora you have Is there a way to know in which locations you have to look without maintaining a list of locations for every distribution? |
Which $TERM renders bold text in vim as well as display status line? Posted: 13 Sep 2021 07:46 AM PDT I am looking for a $TERM which displays bold text in vim and display airline statusline too. To know what I mean,I have screenshot of two identical files opened by vim but using different terms by sourcing The left picture is using However, even when the terms are different, the color produced looks same. Here, the left is using xterm while right is using xterm-256color. So, it seems changing term is triggering something in vim that causes unbold color when using xterm-256color and disappeared statusline when using xterm. I want to display both bold color as well as statusline. Is there a fix which would help me get both? I have mistakely asked this question in unix&linux rather than vi stackexchange so I fear my question will get closed. Also, give me names of other $TERMS so that I can try and tell if it fixed the problem. |
What is the error in the service file? Posted: 13 Sep 2021 07:43 AM PDT I have a .NET Core application (self contained) which I've copied to the folder "/home/ubuntu/TimberApi" in an Ubuntu LightSail instance. I am trying to start it as a service. It is complaining that the unit file is invalid. Can anyone spot an error in the file? This is the contents of the service file: Here is the error: Failed to start TimberStoreApi.service: Unit TimberStoreApi.service has a bad unit file setting. See system logs and 'systemctl status TimberStoreApi.service' for details. I ran "systemctl status TimberStoreApi.service" and got this: /etc/systemd/system/TimberStoreApi.service:5: WorkingDirectory= path is not absolute: ~/TimberApi |
Linux - Rename odbc.ini file in home directory Posted: 13 Sep 2021 07:29 AM PDT Can you please let me know how can I replace the name from odbc.ini(old name) to .odbc.ini (new name) in putty using Linux commands? |
Posted: 13 Sep 2021 09:15 AM PDT I was trying to install Arch Linux in VirtualBox, and made it through most of the setup without any issues. However, once it got past the partition setup it started spamming the console with the following message: It does not appear to be moving past this and seems to be stuck there. If anyone can come up with an answer for fixing this I would highly appreciate it. Thanks in advance Tommy. |
What is the purpose of "domain name" setting in Linux? Posted: 13 Sep 2021 07:59 AM PDT I know that DNS treats domain names as a system of pointers, where you follow a path of domains from more general (e.g. .com.) to more specific (e.g. www.example.com.) in order to locate a host, but it is an outside means of addressing of which the host may or may not be aware. If you join an Active Directory domain, then it makes sense for a host to acquire the same domain name, but even non-members of IPA or AD sometimes are required to have their FQDN set by certain software packages. So why would a Linux host need to have a notion of its own "domain name"? |
Downloading Red hat dependencies recursively on ubuntu Posted: 13 Sep 2021 07:45 AM PDT I have a red hat system that's offline and an ubuntu system that's online. I want to install some software on the red hat system but the dependencies are too many. I've read answers that tell downloading recursively on red hat systems but can I do this recursive download of red hat dependencies on an ubuntu system and then install them in the former? |
Modifying boot process in a Linux Live USB Posted: 13 Sep 2021 10:30 AM PDT I'm trying to boot a Linux Live USB for installation on my old Microsoft Surface 2, a tablet equipped with a Nvidia Tegra 4 SoC. Obviously, it needs the SoC drivers to run the GPU. I have a couple of Live USB distros I could try at booting. The first I'm attempting is the Debian 10 ARM HF. Right now, I'm concerned about the bootloader & it seems it would need the package: https://packages.debian.org/buster/armhf/u-boot-tegra/ Of course, this is a chicken & egg problem, as I need to have the distro installed first, before it can utilize this package. So, how do I modify the Live USB's bootloader to utilize these binaries inside said package: /usr/lib/u-boot/jetson-tk1/u-boot-tegra.bin /usr/lib/u-boot/jetson-tk1/uboot.elf If at all possible, by simply swapping files in the Live USB's root directory? Come on, everybody's just itching to give me a distraction. Here's your chance. |
sed : have a range finishing with the last occurrence of a pattern (greedy range) Posted: 13 Sep 2021 09:06 AM PDT Take the following file : To print all lines from the first one containing How could I print all lines until the last one containing In other words, is there a way to make GNU Update
EDIT I just added a dummy |
Posted: 13 Sep 2021 08:10 AM PDT I'm trying to get a deeper understanding of the linux disk layout, boot process, etc. What I'm doing is examining the layout and contents of a bootable Flash using command line tools and hexdump. The first thing was hoping to find, is the beginning of the first partition and look to see if GRUB is in the VBR, since it's bootable. My main problem now though is finding the first partition in the hexdump, because I'm not sure if I'm calculating the address correctly. According to the partition table in the hexdump of the MBR ( See below ), the first partition starts at Head 1, Sector 3, Cylinder 1. The LBA address is 0x800 or 0d2048. Using CHS math I get that the start sector is 883, since fdisk reports that there's 40 sectors/track and 21 heads. But fdisk also reports that the the sdb1 partition starts at 3, which don't match the LBA address or the CHS address ( Or does the fdisk "Start" column not mean sectors?). According to the output of the "file" command, which I ran on an image of the MBR, the start sector is 2048, which correlates with the LBA address, but not with the CHS address. But it also lists the GRUB stage2 address at 0x2000 and segment as 0x200. But those don't seem to correlate with where I'd expect to find the VBR, which would be at the beginning of partition 1. So, at what address would I likely find the beginning of the boot partition/first partition in the hexdump? |
How to mirror a screen in TigerVNC? Posted: 13 Sep 2021 08:13 AM PDT How to mirror a screen? I have an answer (VNC). |
Getting values of a variable which have letter, numbers and symbols in linux Posted: 13 Sep 2021 08:19 AM PDT How can I get all the different values of So there is no specific sequence for the numbers or the letters. But the pattern is fixed as per the following:
I am using Linux. |
Is there any linux utility to create plain binary dump of file and vice versa? Posted: 13 Sep 2021 08:17 AM PDT I want to know is there any linux utility or procedure for generating plain binary dump and reversing it back to the original file (as In case if above is not possible, is there any utility for conversion of plain hex strings (Example : |
How to write automated tests for zsh completion? Posted: 13 Sep 2021 07:59 AM PDT I have a project in which I automatically generate zsh completion functions. As I work on it, I've found corner cases and bugs which I'm just writing down and making sure to re-test when I make changes. Obviously, I want to write a proper testsuite, but I can't figure out how. For bash completions, testing is quite easy -- set I've read the compsys docs to the best of my ability, but I'm not seeing a solution. I'd like to set the context by hand, run my completions, and then see an array of descriptions or something. Has anyone found a way to test completions? |
Is there a kernel option to allow a userspace app discovering custom USB devices on the host? Posted: 13 Sep 2021 08:44 AM PDT Consider a minimalist, buildroot-based Linux image on some 1-PCB computer with a USB host port. Then there is another small computer: a Raspberry Pi Compute Module "CM3", the only connection between the two is USB. When the CM3 has a Linux running on it, it acts as a ethernet gadget for communication. But when the CM3 needs to be flashed, an input pin on it, toggled by the buildroot machine, tells it "boot mode", and it will become a custom USB device "BCM2710 Boot". The Raspi folks then offer a userspace program, usbboot aka rpiboot, to find the device via VID and upload a small image turning it into a mass storage device. When I try this, plugging the CM3 USB into a "normal" RaspberryPi's host USB port, I see this with dmesg: Rpiboot does then find the device and sends over that spepcial image mentioned. So that works. But when I plug it into my buildroot machine instead, I only see this: So it appears to see that there is some USB thing new, but won't go further. And rpiboot waits forever instead of finding it like on the Raspi-host. So it seems there are one or more Linux kernel config options which are not enabled in my buildroot image, which prevents this from working. I got this idea because initially, all the ethernet gadget stuff also did not work and I had to go and enable CDCETHER and some other options - but I have no idea what to look for with this non-standard device here. There are a lot of not-enabled CONFIG_USB_* options that seem to pertain to specific devices, but nothing like "custom" or such. What is/are the corresponding option(s)? Added: a view of sorted and line-matched (where same options) excerpts of both kernel configurations: I removed everything that's the same setting on both sides, drivers of specific devices, or nothing to do with USB, to shrink the listing by a fair amount. I went through short descriptons of these kernel options on https://cateee.net/, and so far saw nothing that seemed to fit the bill - but it's not said I didn't overlook or misinterpret something... |
"Data directory /var/lib/postgresql/13/main must not be owned by root" Posted: 13 Sep 2021 09:11 AM PDT I encounter the below problem: What did I miss? |
Wireguard - Clients can ping server but not each other Posted: 13 Sep 2021 08:19 AM PDT I have 3 nodes - 1 server, and two additional clients. I can successfully ping the server endpoint from both clients, and I can ping the two clients from the server. However the two clients can not ping each other successfully. I'm not too sure if I've sent the endpoint correctly - I can't find much information about what this should be set to. On the server I see a debug error log of: Where might I be going wrong? |
Convert multi lines to single line with spaces and quotes Posted: 13 Sep 2021 09:12 AM PDT How can I convert multi lines to a single line with spaces and quotes using Expected: Edit 1:
|
Docker reporting that my Linux kernel doesn't support cgroup cpu real-time period Posted: 13 Sep 2021 08:08 AM PDT I've configured Docker on my Ubuntu 18.04 Server to expose its API so I can create and deploy Docker containers via REST requests, which I need to add certain features to my project. This worked fine for first few endpoints I tried. However, when I attempt to create a new Docker container (the main point of the exercise), I get the message: Is this true? Alternatively is it instead that I need to set something up to enable this functionality, or is Docker reporting incorrectly? Very grateful for any assistance given as this functionality is critical to my project. |
How to activate a specific Terminator profile from the command-line? Posted: 13 Sep 2021 10:07 AM PDT I have saved a few Terminator profiles with different colors etc. How is it possible to activate a specific profile from the command line, or initially run terminator with a specific profile? The main goal is to be able to activate profile "Prod" when we ssh to production, and "Stage" when we ssh to the staging-environment. So if there is such a terminator option then an alias can run the ssh command and then change the profile adequately. |
How to install a particular version of boost with brew on MacOSX? Posted: 13 Sep 2021 08:42 AM PDT The command "brew install boost" works for me on my MacOSX, but it installs the latest boost 1.57. How to use brew to install the older 1.55? |
Download package via apt for another architecture Posted: 13 Sep 2021 08:23 AM PDT I am currently in a architecture amd64, so when I try It's for export to another system that doesn't have internet connection, also is there is any way to download any dependencies that follow? |
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