General Linux Chat and Small Questions v. Year of the Linux Desktop!
4,886 replies, posted
[QUOTE=Tobba;47729927]You should be able to invoke gcc, clang, etc normally. You can also create a default.nix with something like this:
[code]let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
in stdenv.mkDerivation rec {
name = "dev";
buildInputs = [ pkgs.gnumake pkgs.clang ];
}[/code]
Then you can run nix-shell and it will automatically install make and clang (if you don't have them) and put them in your path.
Distributing binaries will get a bit weird though since the interpreter and RPATH are per-install (and have to be patched to install binary blobs), but you can use patchelf to fix that up.[/QUOTE]
I was talking about compiling C applications that depends on libraries. How would that be handled?
[QUOTE=mastersrp;47730074]I was talking about compiling C applications that depends on libraries. How would that be handled?[/QUOTE]
Should be about the same thing really. nix-build with that default.nix will by default try to run ./configure, make, make install etc (with the appropriate prefix arguments). You could install that by doing `nix-env -f default.nix -i`
Dumb question, relatively new to linux stuffs. I have Unbuntu installed on my laptop and am trying to get the AMD drivers for my HD5650. As I install the drivers from their site, a window pops up saying "Requires installation of untrusted packages", with this being in the details:
[quote]
cpp-4.8 dkms fakeroot gcc-4.8 gcc-4.8-base gcc-4.8-base:i386 lib32gcc1 libasan0 libatomic1 libc6-i386 libgcc-4.8-dev libgcc1 libgcc1:i386 libgomp1 libitm1 libquadmath0 libstdc++6 libstdc++6:i386 libtsan0
[/quote]
If I hit Ok, the installation just ends. If I hit repair, it returns a 404 for every item. Anyone know what this means and what I should do to get these drivers working?
[QUOTE=Frisk;47732309]Dumb question, relatively new to linux stuffs. I have Unbuntu installed on my laptop and am trying to get the AMD drivers for my HD5650. As I install the drivers from their site, a window pops up saying "Requires installation of untrusted packages", with this being in the details:
If I hit Ok, the installation just ends. If I hit repair, it returns a 404 for every item. Anyone know what this means and what I should do to get these drivers working?[/QUOTE]
Dont install it from their site. Install it from the Ubuntu package repository. You should be able to find it in "restricted drivers".
any idea how I could troubleshoot transmission closing on me constantly? I'm running it on my VPS but it keeps closing with the message "Closing transmission session.. done.". I have to literally babysit it until it's done by constantly restarting it.
[QUOTE=PredGD;47732699]any idea how I could troubleshoot transmission closing on me constantly? I'm running it on my VPS but it keeps closing with the message "Closing transmission session.. done.". I have to literally babysit it until it's done by constantly restarting it.[/QUOTE]
You should be able to get a logfile by passing --logfile /some/path/logfile.log to it, I think.
[editline]15th May 2015[/editline]
Or if you're running it as a service [url]https://askubuntu.com/questions/397589/enable-logging-to-service[/url]
Hi all, I've got a small problem, I'm hoping this is the right place to post.
I sporadically lose my internet connection (sometimes once per week, sometimes every five minutes). I'm connected over a powerline adapter, so I assume a spike on the line knocks the connection out (as everyone else is on wifi and have no problems). I can't ping the router when this happens, and my PC doesn't automatically reconnect (or even tell that me it's no longer connected).
I can reconnect by physically unplugging and replugging the ethernet cable, or clicking via the connection icon.
What I'd like to do is get something to ping the router until it fails, then automatically reconnect, via a firefox/chrome plugin, bash script, or whatever's best for the job. So, what would be the best approach, and are there any good resources to read up on how to do this?
[QUOTE=Tobba;47729204]The point is that the package management is almost completely functional. This also means that the traditional /lib, /bin/, /usr, etc structure doesn't really make sense. Instead everything is stored immutably in /nix/store/.
If I want to update to Linux 4.0, all I have to do is add
[code]boot.kernelPackages = pkgs.linuxPackages_4_0;[/code]
To my configuration.nix and run `nixos-rebuild boot`. That'll download/build the new kernel, rebuild all kernel modules, put everything in /nix/store (without removing anything) and set the new generation as the default to boot. If the update somehow goes pear-shaped, I can just boot the last generation and everything is back exactly to how it was. If I want to free up disk space, I can remove previous generations and collect garbage.
It's pretty hard to actually break a NixOS system. There are a whole bunch of other great features as well (like nix-shell and being able to install packages per-user without being root).[/QUOTE]
I've been playing around with deploying nix on our cluster for this reason. This is way more sane compared to installing debian and then using docker, puppet etc.
Note to self: Don't use Wayland yet
[QUOTE=Adam.GameDev;47735963]Note to self: Don't use Wayland yet[/QUOTE]
I use Wayland
On my phone
you ever have a system update break so hard you have to format the disk and start over to get your desktop to live again
[editline]17th May 2015[/editline]
well, no, what i have to do is purge everything related to KDE from my system and reinstall that from scratch
but i don't know openSUSE well enough yet so i have to reinstall
[QUOTE=esalaka;47737342]I use Wayland
On my phone[/QUOTE]
What phone are you using?
[QUOTE=Adam.GameDev;47741415]What phone are you using?[/QUOTE]
Jolla
Does anyone have an idea why Firefox wouldn't be working after a fresh install of Manjaro?
[QUOTE=XxThreedogxX;47745410]Does anyone have an idea why Firefox wouldn't be working after a fresh install of Manjaro?[/QUOTE]
Define "not working".
[QUOTE=XxThreedogxX;47745410]Does anyone have an idea why Firefox wouldn't be working after a fresh install of Manjaro?[/QUOTE]
Run in terminal, post output
[QUOTE=lavacano;47745970]Run in terminal, post output[/QUOTE]
[code]XPCOMGlueLoad error for file /usr/lib/firefox/libxul.so:
libicui18n.so.55: cannot open shared object file: No such file or directory
Couldn't load XPCOM[/code]
[editline]18th May 2015[/editline]
[QUOTE=ECrownofFire;47745750]Define "not working".[/QUOTE]
The program doesn't start.
[QUOTE=XxThreedogxX;47747737][code]XPCOMGlueLoad error for file /usr/lib/firefox/libxul.so:
libicui18n.so.55: cannot open shared object file: No such file or directory
Couldn't load XPCOM[/code]
[editline]18th May 2015[/editline]
The program doesn't start.[/QUOTE]
Install lib32-icu and ICU
Its a dependency problem, sounds like pacman failed to grab the Manjaro repos
Y'know what I wish Linux had? Some sort of universal "purge the RAM you're not actually using for anything" signal.
Because right now, excluding Firefox, I'm sitting at about 50% RAM usage. Now I'm aware that some of these processes I have do a cache-in-RAM thing kind of like the kernel does, but unlike the kernel, I can't exactly differentiate between RAM a process is really using and RAM a process is "using" for cache stuff.
It will all of course go away if I run something that actually needs it, but I like having a sense of how much RAM I'm really using at all times. (It makes me feel smug every time it goes under 1GB)
[QUOTE=lavacano;47750694]Y'know what I wish Linux had? Some sort of universal "purge the RAM you're not actually using for anything" signal.
Because right now, excluding Firefox, I'm sitting at about 50% RAM usage. Now I'm aware that some of these processes I have do a cache-in-RAM thing kind of like the kernel does, but unlike the kernel, I can't exactly differentiate between RAM a process is really using and RAM a process is "using" for cache stuff.
It will all of course go away if I run something that actually needs it, but I like having a sense of how much RAM I'm really using at all times. (It makes me feel smug every time it goes under 1GB)[/QUOTE]
Run a program that tries to use a lot of memory? :v:
[QUOTE=rilez;47749231]Install lib32-icu and ICU
Its a dependency problem, sounds like pacman failed to grab the Manjaro repos[/QUOTE]
It worked, thanks everyone.
[QUOTE=lavacano;47750694]Y'know what I wish Linux had? Some sort of universal "purge the RAM you're not actually using for anything" signal.
Because right now, excluding Firefox, I'm sitting at about 50% RAM usage. Now I'm aware that some of these processes I have do a cache-in-RAM thing kind of like the kernel does, but unlike the kernel, I can't exactly differentiate between RAM a process is really using and RAM a process is "using" for cache stuff.
It will all of course go away if I run something that actually needs it, but I like having a sense of how much RAM I'm really using at all times. (It makes me feel smug every time it goes under 1GB)[/QUOTE]
sudo sh -c \"sync; echo 3 > /proc/sys/vm/drop_caches\"
[QUOTE=DerpishCat;47753084]sudo sh -c \"sync; echo 3 > /proc/sys/vm/drop_caches\"[/QUOTE]
That's kernel cache, isn't it? Not process cache?
Meaning it won't affect the green section of htop's memory bar (where the "used" memory is actually reported)?
[editline]18th May 2015[/editline]
also `su -c` is shorter than `sudo sh -c` and accomplishes just as much
You could increase swappiness but it wouldn't really free memory just swap it out.
To actually have the kernel free memory it thinks is unused something like this could exist:
void* cachealloc(int npages, void (*cb_on_free)(int newn, void* newptr));
But applications would need to be rewritten to use it.
Stupid question, but how might I connect to my school wifi on linux? It's not me actually that needs help. I put the settings as thus:
Secuirty: WPA & WPA2 Enterprise
Authentication: PEAP
Anonymous Identity: (none)
CA Cert: (none)
PEAP Ver. : Automatic
Inner authentication:
MSCHAPv2
works for me. my friends tries the same settings but it doesnt work. Any ideas?
[QUOTE=lavacano;47754429]That's kernel cache, isn't it? Not process cache?
Meaning it won't affect the green section of htop's memory bar (where the "used" memory is actually reported)?
[editline]18th May 2015[/editline]
also `su -c` is shorter than `sudo sh -c` and accomplishes just as much[/QUOTE]
Sorry I don't even remember where I stole this from, I've had it in my zshrc for... a long time. And it makes the RAM usage go down real fast and I love it when the usage goes below 100MB.
Is there a way to install a minimal GNOME desktop on Fedora, as in just the desktop and the minimal amount of applications needed for it to work instead of a whole boatload of crap?
[QUOTE=Adam.GameDev;47759099]Is there a way to install a minimal GNOME desktop on Fedora, as in just the desktop and the minimal amount of applications needed for it to work instead of a whole boatload of crap?[/QUOTE]
I think CentOS has an installation option like that, I don't remember there being one in Fedora though. (No clue if you can after the install though, haven't tried)
What do you guys think of Elementary?
[QUOTE=Acti;47759376]What do you guys think of Elementary?[/QUOTE]
Decent GUI ontop of what is essentially ubuntu LTS
Terrible company behind it.
Sorry, you need to Log In to post a reply to this thread.