Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
4
votes
1
answers
331
views
What is the most native way to generate desktop notification in BSD unixes
macOS has its "osascript" with "display notification", Linux has its "notify-send". Both are the most native way to generate DE notifications. What is the most native way to generate desktop notification in BSD unixes?
macOS has its "osascript" with "display notification", Linux has its "notify-send". Both are the most native way to generate DE notifications. What is the most native way to generate desktop notification in BSD unixes?
codepoet
(626 rep)
Jun 24, 2022, 12:05 AM
• Last activity: Jun 24, 2022, 07:24 AM
3
votes
3
answers
2153
views
How can I boot DragonFly BSD (HAMMER) with GRUB 2 on a MBR disk?
There is a box with one MBR-partitioned disk. It has four primary partitions. On those are: - Windows - DragonFly BSD (using UFS2) - Linux - DragonFly BSD (using HAMMER) Chainloading the DragonFly which uses UFS2 is possible. GRUB 2 is the bootloader. I haven't managed yet to get GRUB into loading t...
There is a box with one MBR-partitioned disk.
It has four primary partitions. On those are:
- Windows
- DragonFly BSD (using UFS2)
- Linux
- DragonFly BSD (using HAMMER)
Chainloading the DragonFly which uses UFS2 is possible.
GRUB 2 is the bootloader.
I haven't managed yet to get GRUB into loading the DragonFly which uses HAMMER.
What needs to be in the
/etc/grub.d/40_custom
?
Mirco
(111 rep)
Jul 9, 2016, 01:26 PM
• Last activity: May 2, 2020, 10:28 AM
0
votes
1
answers
471
views
Why isn't the mouse working with DragonflyBSD in Virtualbox?
I have been facing the problem for months, where I can't run startx and startxfce4 after installing those packages As mentioned [here][1] I have to run `Xorg -configure` to start off. But when I run the same, the last 2 lines I get are: > Server terminated with error (1). Closing log file > > Abort...
I have been facing the problem for months, where I can't run startx and startxfce4 after installing those packages
As mentioned here I have to run
If I press ^C,
Xorg -configure
to start off. But when I run the same, the last 2 lines I get are:
> Server terminated with error (1). Closing log file
>
> Abort trap (core dumped)
Now if I ignore Xorg -configure
, and simply run startx
, it says
> xauth: file /root/.serverauth.766 does not exist
>
> xauth: (stdin):1: bad display name ":0" in "add" command
>
> xauth: (argv):1: bad display name ":0" in "list" command
>
> xauth: (stdin):1: bad display name ":0" in "add" command
And after a while:
> xauth: (argv):1: bad display name "/unix:0" in "list" command
The contents of /var/log/Xorg.0.log looks like this:

startx
runs successfully, I see 3 terminals, as expected, but the mouse doesn't work at all. I can't move the mouse and click anything. The keyboard works on the activated terminal.
If I do startxfce4, xfce4 starts, but again, mouse doesn't work.
I have tried changing the Pointing Device
in VirtualBox, but none from the available options worked.
I also had a previous installation which worked fine until I deleted the VM. After that whenever I try to reinstall DragonflyBSD, I get errors like these.
Is there a way to fix this whole issue?
15 Volts
(2149 rep)
Oct 22, 2019, 05:07 PM
• Last activity: Nov 4, 2019, 02:09 AM
2
votes
2
answers
4177
views
Missing /etc/machine-id on FreeBSD/TrueOS/DragonFly BSD et al
Inspired by "https://unix.stackexchange.com/questions/395908/": I am using FreeBSD/TrueOS/DragonFly BSD and have some software from Ports that when run complains about a missing `/etc/machine-id` file. I do not see any such file in `/etc`. What is this file? Should I have it? How do I make it, if ye...
Inspired by "https://unix.stackexchange.com/questions/395908/ ":
I am using FreeBSD/TrueOS/DragonFly BSD and have some software from Ports that when run complains about a missing
/etc/machine-id
file. I do not see any such file in /etc
.
What is this file? Should I have it? How do I make it, if yes?
JdeBP
(71560 rep)
Oct 4, 2017, 12:24 PM
• Last activity: Oct 19, 2019, 06:08 PM
1
votes
0
answers
453
views
su: /bin/bash: No such file or directory in Dragonfly BSD
today I wanted to change my shell to BASH from sh. I have only the root account on my system. I typed `chsh -s /bin/bash` but the BASH shell is in the `/usr/local/bin/bash`. So after a logout I am unable to login to my system. I have no way to chroot (because it's a virtual machine). Is there any al...
today I wanted to change my shell to BASH from sh.
I have only the root account on my system.
I typed
chsh -s /bin/bash
but the BASH shell is in the /usr/local/bin/bash
. So after a logout I am unable to login to my system. I have no way to chroot (because it's a virtual machine).
Is there any alternative way to get back into the system?
15 Volts
(2149 rep)
Sep 24, 2019, 06:22 AM
0
votes
1
answers
143
views
How is FreeBSDs/DragonFlyBSD sendfile() system call supposed to work?
[sendfile()][1] The `offset` argument is of type `off_t` and `nbytes` is of type `size_t` while both are describing the same thing: a file length. What if my file is longer than `off_t` but shorter than `size_t`? If I'm sending asynchronously it can happen that my current file offset is larger than...
sendfile()
The
offset
argument is of type off_t
and nbytes
is of type size_t
while both are describing the same thing: a file length. What if my file is longer than off_t
but shorter than size_t
? If I'm sending asynchronously it can happen that my current file offset is larger than off_t
, but I still want to send more since size_t
is greater.
off_t
is always lower since it is signed and size_t
is unsigned.
I know that you can set nbytes = 0
, but I explicitly want to use a length.
user361749
Jul 11, 2019, 09:00 AM
• Last activity: Jul 11, 2019, 01:50 PM
3
votes
1
answers
1180
views
Can't vi in single user mode
In DragonflyBSD, I need to edit `/etc/rc.conf` in single user mode, but # mount -u / # mount -a # vi /etc/rc.conf vi: unknown: unknown terminal type # ee /etc/rc.conf Error opening terminal: unknown. # mc The TERM environment variable is unset! Any hints?
In DragonflyBSD, I need to edit
/etc/rc.conf
in single user mode, but
# mount -u /
# mount -a
# vi /etc/rc.conf
vi: unknown: unknown terminal type
# ee /etc/rc.conf
Error opening terminal: unknown.
# mc
The TERM environment variable is unset!
Any hints?
Mirco
(111 rep)
Nov 7, 2015, 12:43 PM
• Last activity: May 25, 2019, 07:24 PM
4
votes
1
answers
1572
views
DragonFly BSD purpose myth: one OS on several physical machines?
Long ago I read/heard something about DragonFlyBSD that one of its purpose is to run one OS on multiple physical machines. Or something like "the outside" can see only one OS, but underneath it runs on several physical machines. I cannot find this "myth/purpose", but I am remembering it that I read...
Long ago I read/heard something about DragonFlyBSD that one of its purpose is to run one OS on multiple physical machines. Or something like "the outside" can see only one OS, but underneath it runs on several physical machines.
I cannot find this "myth/purpose", but I am remembering it that I read it somewhere.
The **Question**: can anybody confirm or refute it?
peterht
(51 rep)
Mar 10, 2018, 06:49 PM
• Last activity: Mar 10, 2018, 07:14 PM
3
votes
2
answers
540
views
Migrate UFS drive from FreeNAS to DragonFly BSD
I'm trying to migrate my home server from FreeNAS 8.3 to DragonFly BSD. In order to shuffle my files about I picked up a Seagate 8Tb Archive disk, attached it via eSATA, formatted it as UFS under FreeNAS then patiently waited about a week for it to trickle full. Now I've got DragonFly going, but try...
I'm trying to migrate my home server from FreeNAS 8.3 to DragonFly BSD. In order to shuffle my files about I picked up a Seagate 8Tb Archive disk, attached it via eSATA, formatted it as UFS under FreeNAS then patiently waited about a week for it to trickle full.
Now I've got DragonFly going, but try as I might I can't get the UFS volume mounted. Is there some way to get this thing mounted under DragonFly?
I can see that the drive is using GPT (and a protective MBR) and is definitely UFS. Is there something incompatible between the two systems, despite their FreeBSD heritage? It also seems odd that I can see slices but not partitions. I expected
ls /dev/ad6*
to give me something like /dev/ad6p1a
since the drive is using GPT, but evidently not.
I'm yet to try anything invasive (as in, write to the disk) because I'm completely in the dark on what the cause is.
% uname -a
DragonFly loki.misque.me 4.4-RELEASE DragonFly v4.4.3-RELEASE #5: Mon Apr 18 22:47:32 EDT 2016 root@www.shiningsilence.com:/usr/obj/home/justin/release/4_4/sys/X86_64_GENERIC x86_64
Some basic information about the disk:
% ls /dev/ad6*
/dev/ad6 /dev/ad6s0 /dev/ad6s1
% cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/serno/4C530012740115112064.s1a / ufs rw 1 1
/dev/serno/4C530012740115112064.s1d /home ufs rw 2 2
/dev/serno/4C530012740115112064.s1e /tmp ufs rw 2 2
/dev/serno/4C530012740115112064.s1f /usr ufs rw 2 2
/dev/serno/4C530012740115112064.s1g /var ufs rw 2 2
/dev/serno/4C530012740115112064.s1b none swap sw 0 0
proc /proc procfs rw 0 0
/dev/ad6s1 /mnt/backup ufs ro 0 0
The mount effort in question:
% sudo mount -v /mnt/backup
mount_ufs: /dev/ad6s1 on /mnt/backup: incorrect super block
And my diagnostic efforts:
% sudo fdisk /dev/ad6
******* Working on device /dev/ad6 *******
parameters extracted from device are:
cylinders=15504021 heads=16 sectors/track=63 (1008 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=15504021 heads=16 sectors/track=63 (1008 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 238,(EFI GPT)
start 1, size 4294967295 (2097151 Meg), flag 80 (active)
beg: cyl 0/ head 0/ sector 2;
end: cyl 1023/ head 255/ sector 63
The data for partition 2 is:
The data for partition 3 is:
The data for partition 4 is:
% sudo disklabel64 -r ad6
disklabel64: bad pack magic number
% sudo disklabel64 -r ad6s0
disklabel64: bad pack magic number
% sudo disklabel64 -r ad6s1
disklabel64: bad pack magic number
% sudo camcontrol devlist
at scbus3 target 1 lun 0 (da0,sg0,pass0)
at scbus3 target 2 lun 0 (da1,sg1,pass1)
at scbus3 target 3 lun 0 (da2,sg2,pass2)
at scbus3 target 4 lun 0 (da3,sg3,pass3)
at scbus3 target 5 lun 0 (da4,sg4,pass4)
at scbus3 target 6 lun 0 (da5,sg5,pass5)
at scbus3 target 7 lun 0 (da6,sg6,pass6)
at scbus6 target 0 lun 0 (pass8,sg8,da8)
% sudo gpt show /dev/ad6
start size index contents
0 1 - PMBR
1 1 - Pri GPT header
2 32 - Pri GPT table
34 94 -
128 4194304 0 GPT part - FreeBSD Swap
4194432 15623858696 1 GPT part - FreeBSD UFS/UFS2
15628053128 7 -
15628053135 32 - Sec GPT table
15628053167 1 - Sec GPT header
% sudo file -s /dev/ad6
/dev/ad6: DOS/MBR boot sector; partition 1 : ID=0xee, active, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 4294967295 sectors
% sudo file -s /dev/ad6s1
/dev/ad6s1: Unix Fast File system [v2] (little-endian) last written at Thu Jan 1 00:00:00 1970, number of blocks 0, number of data blocks 0, pending blocks to free 0, system-wide uuid 0,
Andrew
(33 rep)
Jul 3, 2016, 12:46 PM
• Last activity: Aug 2, 2016, 03:00 AM
1
votes
1
answers
1215
views
Can I install FreeBSD, OpenBSD, NetBSD and DragonFly on one disc?
Is it possible to install all of FreeBSD, OpenBSD, NetBSD and DragonFly BSD on a single disc? What would be the proper procedure for success, and what are the caveats?
Is it possible to install all of FreeBSD, OpenBSD, NetBSD and DragonFly BSD on a single disc?
What would be the proper procedure for success, and what are the caveats?
cnst
(3333 rep)
Sep 2, 2015, 11:13 PM
• Last activity: Sep 3, 2015, 10:36 AM
Showing page 1 of 10 total questions