General Linux Chat and Small Questions v. Year of the Linux Desktop!
4,886 replies, posted
[QUOTE=nikomo;50073852]-O3 actually kinda sucks in some scenarios.
When your target platform is a small microcontroller, you end up compiling -Os, because small code tends to execute faster on those platforms.[/QUOTE]
If a particular CFLAG breaks something on a package, it usually gets disabled only for that package.
The only package that disregards cflags is the kernel, but you can edit the Makefile to force it to use -O3 if you really wanted to.
[QUOTE=maaatts;50074143]If a particular CFLAG breaks something on a package, it usually gets disabled only for that package.
The only package that disregards cflags is the kernel, but you can edit the Makefile to force it to use -O3 if you really wanted to.[/QUOTE]
i'm pretty sure you can also just export CFLAGS
then again i'm not in gentoo right now so i can't check
[QUOTE=lavacano;50074354]i'm pretty sure you can also just export CFLAGS
then again i'm not in gentoo right now so i can't check[/QUOTE]
No, it's ignored.
Tested on kernel 4.4.6
Not setting CFLAGS:
[code]
mallard@steamroller:~/.src/linux-4.4.6$ make V=1
[...]
gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wmissing-prototypes -Wstrict-prototypes [B]-O2[/B] -fomit-frame-pointer -std=gnu89 -o scripts/basic/fixdep scripts/basic/fixdep.c[/code]
Setting CFLAGS:
[code]
mallard@steamroller:~/.src/linux-4.4.6$ CFLAGS=-O3 make V=1
[...]
gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wmissing-prototypes -Wstrict-prototypes [B]-O2[/B] -fomit-frame-pointer -std=gnu89 -o scripts/basic/fixdep scripts/basic/fixdep.c[/code]
I am having trouble with wine and pulseaudio sound delay. Certain games have an absurdly high latency when being played through wine, nearly 1ms.
I am not exactly sure how to fix it and make it not be there. I attempted using both the built in alsa and the pulseaudio drivers.
[QUOTE=genkaz92;50088068]I am having trouble with wine and pulseaudio sound delay. Certain games have an absurdly high latency when being played through wine, nearly 1ms.
I am not exactly sure how to fix it and make it not be there. I attempted using both the built in alsa and the pulseaudio drivers.[/QUOTE]
How are you even able to hear latency of 1ms?
[QUOTE=mastersrp;50091853]How are you even able to hear latency of 1ms?[/QUOTE]
My bad, I meant nearly a second, not milisecond, got really used to using miliseconds as a measurement.
Can I toggle Xinerama on and off without restarting X?
Decided to install Elementary OS on my Lenovo Yoga Pro 2. I cannot change the resolution in the system settings, any advice? The resolution is too big for a lot of things.
You can define your resolution in xorg, there's a few ways to do it, probably the easiest is using xrandr to either set it itself, or better yet, even adding the mode to the list of options, eOS forums seems to have a few posts about this.
Also before changing your resolution you might consider changing the DPI first (Also capable of being done in xrandr, eOS might also have that in its settings.) I've got a laptop with the same resolution and doing that helps QUITE a bit. It's probably assuming "heyy! a 3200x1800 display, this guy must have a big screen, 96 DPI it is for him!"
Recently installed Manjaro KDE linux for my ~7 year laptop on a dualboot system because, Ubuntu just isnt my distro. and so far im really enjoying it,smooth UI,great wiki and forum support, awesome design both on Visual level as well as overall disto software level. im considering moving to it full time from windows 7.
[QUOTE=PredGD;49485994]networking is odd[/QUOTE]
I've complained about this issue for the last 2 years now and I actually found a fix shortly after I posted this! unfortunately for me, I also reinstalled Windows at one point which removed the fix I applied.
I don't remember what I did but maybe you guys can help me remember? I never posted it here which I should have, but the issue is related to the clock. apparently this issue is the byproduct of using RealTimeIsUniversal on Windows and if you have this problem, you need to apply another registry edit if I remember correctly. I don't remember what that edit was though. if experiencing this problem, it'll only occur if you're dual booting with Windows and you're restarting from Windows to Linux. given enough time, internet will work again. if you don't have that time, flipping the PSU switch and letting the computer drain then turning it back on will fix the issue. pretty annoying to do this every time. does my description of the problem ring any bells? any fixes that pop up in anyones head?
I'm installing gentoo and weirdly the step that stumps me is grub2. I get a failed to get canonical path of 'udev' when I run grub2-install --target=x86_64-efi --efi-directory=/dev/sda. When I set the directory to /boot it just says that doesn't look like an EFI partition.
My partitioning looks like [URL="https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Default:_Using_parted_to_partition_the_disk"]this[/URL]
and I chrooted like [URL="https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Chrooting"]this[/URL], with /dev/sda4 mounted to /mnt/gentoo and sda2 mounted to /mnt/gentoo/boot
Anyone much smarter than me able to help? I want the joy of endless kernel panics upon rebooting, but I can't install the bootloader so that I can
edit: it may be that since the minimal iso doesn't support UEFI, I won't be able to do all that like this. perhaps I should just do it from the liveDVD, or an arch ISO
[QUOTE=thelurker1234;50106903]I'm installing gentoo and weirdly the step that stumps me is grub2. I get a failed to get canonical path of 'udev' when I run grub2-install --target=x86_64-efi --efi-directory=/dev/sda. When I set the directory to /boot it just says that doesn't look like an EFI partition.
My partitioning looks like [URL="https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Default:_Using_parted_to_partition_the_disk"]this[/URL]
and I chrooted like [URL="https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Chrooting"]this[/URL], with /dev/sda4 mounted to /mnt/gentoo and sda2 mounted to /mnt/gentoo/boot
Anyone much smarter than me able to help? I want the joy of endless kernel panics upon rebooting, but I can't install the bootloader so that I can
edit: it may be that since the minimal iso doesn't support UEFI, I won't be able to do all that like this. perhaps I should just do it from the liveDVD, or an arch ISO[/QUOTE]
I only managed to install gentoo and funtoo with [URL="https://www.system-rescue-cd.org/Download"]sysrescd[/URL], all other "host" environments fucked up for me for some reason.
[QUOTE=Van-man;50107019]I only managed to install gentoo and funtoo with [URL="https://www.system-rescue-cd.org/Download"]sysrescd[/URL], all other "host" environments fucked up for me for some reason.[/QUOTE]
I'm going to chroot in from a UEFI liveusb, if I can't fix it then. I'll just restart the install unfortunately.
edit: fuck, i'll try MBR this time I guess
[QUOTE=thelurker1234;50106903]I'm installing gentoo and weirdly the step that stumps me is grub2. I get a failed to get canonical path of 'udev' when I run grub2-install --target=x86_64-efi --efi-directory=/dev/sda. When I set the directory to /boot it just says that doesn't look like an EFI partition.
My partitioning looks like [URL="https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Default:_Using_parted_to_partition_the_disk"]this[/URL]
and I chrooted like [URL="https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Chrooting"]this[/URL], with /dev/sda4 mounted to /mnt/gentoo and sda2 mounted to /mnt/gentoo/boot
Anyone much smarter than me able to help? I want the joy of endless kernel panics upon rebooting, but I can't install the bootloader so that I can
edit: it may be that since the minimal iso doesn't support UEFI, I won't be able to do all that like this. perhaps I should just do it from the liveDVD, or an arch ISO[/QUOTE]
You need to mount the EFI system partition (a smallish FAT32 partition totally separate from /boot) somewhere (typically /boot/efi) and set --efi-directory to the mount point.
[QUOTE=lavacano;50107445]You need to mount the EFI system partition (a smallish FAT32 partition totally separate from /boot) somewhere (typically /boot/efi) and set --efi-directory to the mount point.[/QUOTE]
I already restarted unfortunately. At least it's great to watch it actually make 100% usage of every core in htop
edit: I got it going with two non-fatal errors while doing the first boot. I'm finally cool amongst /g/entoomen.
edit2: I was told that compiling XFCE, xorg, and firefox would take > a day. But it just took 3 hours. Huh.
:snip:
Do you guys see any problems with using [URL="https://help.ubuntu.com/community/UFW"]ufw[/URL] on servers? Like is there any risk of using it?
iptables are not THAT complicated for me. I just want something a bit easier and friendly for me (And future maintainers) - And I just discovered it and really want to switch to it.
[QUOTE=Jalict;50112185]Do you guys see any problems with using [URL="https://help.ubuntu.com/community/UFW"]ufw[/URL] on servers? Like is there any risk of using it?
iptables are not THAT complicated for me. I just want something a bit easier and friendly for me (And future maintainers) - And I just discovered it and really want to switch to it.[/QUOTE]
It's fine. ufw just makes iptable rules, so it's just as secure as iptables on it's own, except easier to use.
That obviously also means that the rules can be a bit complicated to read, but if you can get around that, it works great.
On that topic though, I'll highly recommend [url=http://firehol.org/]FireHOL[/url] for anything that isn't just a one-off insert to the iptable rules.
[QUOTE=thelurker1234;50107603]I already restarted unfortunately. At least it's great to watch it actually make 100% usage of every core in htop
edit: I got it going with two non-fatal errors while doing the first boot. I'm finally cool amongst /g/entoomen.
edit2: I was told that compiling XFCE, xorg, and firefox would take > a day. But it just took 3 hours. Huh.[/QUOTE]
Firefox, OpenOffice and Chromium took the longest for me.
[QUOTE=Jalict;50112185]Do you guys see any problems with using [URL="https://help.ubuntu.com/community/UFW"]ufw[/URL] on servers? Like is there any risk of using it?
iptables are not THAT complicated for me. I just want something a bit easier and friendly for me (And future maintainers) - And I just discovered it and really want to switch to it.[/QUOTE]
Just make sure you allow ssh before enabling it. You only make that mistake once =P
[QUOTE=IpHa;50112338]Just make sure you allow ssh before enabling it. You only make that mistake once =P[/QUOTE]
It's not always essential, but it's often pretty good practice. Ideal is to setup the firewall configuration first, apply it, and then change the default policy to deny to ensure it works correctly. In that order.
just reinstalled Arch, what a mangled mess that previous install was. definitely gonna make an attempt to not install all sorts of alternatives and clean up after I'm done this time around.
also, I'm not sure if I'm crazy or not, but I swear music sounds worse in Linux compared to Windows.
[QUOTE=PredGD;50116327]just reinstalled Arch, what a mangled mess that previous install was. definitely gonna make an attempt to not install all sorts of alternatives and clean up after I'm done this time around.
also, I'm not sure if I'm crazy or not, but I swear music sounds worse in Linux compared to Windows.[/QUOTE] With pulse I agree, but ever since I switched to alsa it's essentially been the same imo.
So since I will migrate my Server VM's over from Ubuntu 14.04 to Ubuntu 16.04, should I go with a ZFS Pool for Data storage, or stick to an Ext4 partition? Haven't used ZFS before, and I intend to have 1 full Virtual Disk as a ZFS Pool.
Mainly concerned about data integrity and reliability.
Any Experience?
[QUOTE=kaukassus;50118021]So since I will migrate my Server VM's over from Ubuntu 14.04 to Ubuntu 16.04, should I go with a ZFS Pool for Data storage, or stick to an Ext4 partition? Haven't used ZFS before, and I intend to have 1 full Virtual Disk as a ZFS Pool.
Mainly concerned about data integrity and reliability.
Any Experience?[/QUOTE]
My most important experiences tell me that no data storage is safe enough, so only use ZFS if you need it because of features. Otherwise just stick to ext4.
And no matter what you do, backups are a first. You really need that. Even if you really don't, you still really really do.
[QUOTE=PredGD;50116327]also, I'm not sure if I'm crazy or not, but I swear music sounds worse in Linux compared to Windows.[/QUOTE]
The defaults are a bit bad, play with the settings.
[QUOTE=maaatts;50118484]The defaults are a bit bad, play with the settings.[/QUOTE]
yeah, I noticed after googling the issue. pretty low. changed stuff to s32le and 192000hz (highest Windows goes, figured I'd just choose that). it's hard to measure if there's actually a change but I think it sounds quite a lot better now
[editline]12th April 2016[/editline]
I also have a pretty odd issue with this new install. everything starts as normal, I'll log in, do my stuff and then after a few minutes, bam, it magically changes tty session. this only occurs once after booting, it never happens again. it's not a huge problem but definitely annoying as it breaks my wallpaper, replacing it with artifacts and solid black.
I know this is Linux Chat, but has anyone tried Steam on FreeBSD?
[QUOTE=maaatts;50119598]I know this is Linux Chat, but has anyone tried Steam on FreeBSD?[/QUOTE]
Quick Google says the native Linux client is a shitfest to deal with, run the Windows client in Wine.
Sorry, you need to Log In to post a reply to this thread.