• General Linux Chat and Small Questions v.2
    2,323 replies, posted
why would you want www. before it?
Do you want to list to both [url]www.stephenl.net[/url] and stephenl.net or do you want to redirect every request to stephenl.net to [url]www.stephenl.net?[/url]
[QUOTE=Boris-B;33349001]Do you want to list to both [url]www.stephenl.net[/url] and stephenl.net or do you want to redirect every request to stephenl.net to [url]www.stephenl.net?[/url][/QUOTE] Redirect all from [url]www.something[/url] to something [editline]20th November 2011[/editline] And set the canonical URL metatag to stephenl.net
[QUOTE=Boris-B;33349001]Do you want to list to both [url]www.stephenl.net[/url] and stephenl.net or do you want to redirect every request to stephenl.net to [url]www.stephenl.net?[/url][/QUOTE] I want to redirect, because I've been told it's bad practice to have both in parallel. It already broadcasts on both.
I see, I am not sure of how you would do this, but it's probably in your apache config. Have you tried anything so far?
if there isn't much dynamic content ie forums then broadcasting on both shouldn't be an issue
I don't think it should. I don't see why having your current setup is problematic in any way. Then again, I'm no expert.
I am trying to start my FreeNAS server, but I am getting a low battery voltage warning, so I press f1, now it has worked correctly up until now, but after I press f1 it boots using f2's option, for what ever fucking reason, can someone help me?
[QUOTE=ButtsexV3;33353974]if there isn't much dynamic content ie forums then broadcasting on both shouldn't be an issue[/QUOTE] Not sure what you mean by "much dynamic content". If your DNS is pointing at the same IP for both, then it's not like you have two instances of Apache running or anything. Everything is going to the same IP and Apache doesn't care what version of the domain name you use.
[QUOTE=PvtCupcakes;33358295]Not sure what you mean by "much dynamic content". If your DNS is pointing at the same IP for both, then it's not like you have two instances of Apache running or anything. Everything is going to the same IP and Apache doesn't care what version of the domain name you use.[/QUOTE] facepunch had some issues a while back where you couldn't stay logged in if you went to facepunch.com instead of [url]www.facepunch.com[/url]. I'm talking that kind of issue
[QUOTE=ButtsexV3;33361307]facepunch had some issues a while back where you couldn't stay logged in if you went to facepunch.com instead of [url]www.facepunch.com[/url]. I'm talking that kind of issue[/QUOTE] Sounds like a cookie issue.
[QUOTE=PvtCupcakes;33363119]Sounds like a cookie issue.[/QUOTE] It was.
I'm new to this shit, I have installed Linux before but what am I supposed to do now, can't even run files wich are made for Linux, I suck guys X(
I've never been able to get a library installed from source to work right. What am I doing wrong here? I downloaded and installed the tarball (extract, configure, make, make install) but I still get an error when trying to include the file. [code]#include <stdlib.h> #include <SDL.h> main(int argc, char *argv[]) { if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 ) { fprintf(stderr, "Unable to init SDL: %s\n", SDL_GetError()); exit(1); } atexit(SDL_Quit); }[/code] [code]ruff@shiba:~/workspace/c/sdltest$ gcc main.c -o main main.c:2:17: error: SDL.h: No such file or directory[/code] [code]ruff@shiba:/$ ls /usr/local/include/SDL | grep SDL.h SDL.h[/code] [b]edit[/b] It works after using the full filepath in the #include and compiling with -lSDL. Is there a way to set the compiler to automatically search that directory so I can use "SDL.h" instead of "/usr/local/include/SDL/SDL.h"? [b]edit 2[/b] Alright, I figured it out. I just need to use "SDL/SDL.h".
[QUOTE=Doome;33372924]I'm new to this shit, I have installed Linux before but what am I supposed to do now, can't even run files wich are made for Linux, I suck guys X([/QUOTE] What type of files?
[QUOTE=Doome;33372924]I'm new to this shit, I have installed Linux before but what am I supposed to do now, can't even run files wich are made for Linux, I suck guys X([/QUOTE] Why'd you rate the person that was trying to help you Dumb? If you're here for help you'll need to provide us with more details than "I can't run files!"
Who cares about ratings Doome if it's a binary you're trying to run you can open a terminal and run it from there. If it's an .exe you can try using wine or mono to run it. Ensure you're using your package manager to install programs else they might not run correctly.
Well there's nothing wrong with not using a package manager it's just bastard easier to use one. Stick to a package manager until you know what you're doing.
Anyone know how to see what version of a givn library you have installed? Ubuntu if it matters.
[QUOTE=Richy19;33390086]Anyone know how to see what version of a givn library you have installed? Ubuntu if it matters.[/QUOTE] You can go into synaptics, search it and it should show you the info. If not you can "reinstall" it and it will show the version. I think the best idea would be to look into how to search your local packages, but I like doing things the stupid way. [editline]22nd November 2011[/editline] I also have a question. Running Arch with xf86-intel drivers. When I start X with my secondary monitor plugged in on my laptop (through vga) my laptop and the external both set to 1280x1024 the resolution of the external screen. I hate having to unplug the cord when I reboot, anyone have any ideas? My knowledge of linux is very sporadic.
I've got a really neat, funky setup right now in which I have Windows, Ubuntu, Mint, Fedora, Arch, and soon to be more installed on my home computer, with a lot of shared partitions. I [I]still[/I] can't figure out how to get a shared /home/stephen folder to work correctly! I can jerry-rig it by mounting to /mnt/home instead and then creating links to /mnt/home/stephen/Documents in /home/stephen on each installation, but that's not very neat. If I DID mount to /home and user stephen is UID 1000 on each installation (and I check this), then wouldn't chowning everything in /home/stephen to stephen work across installations? I've tried that. As a result my Fedora is broken, when I try to log into desktop it gives me a big error and asks me to log out. If I log into a tty (ctrl-alt-f3, example) I see "cannot chdir to /home/stephen, permission denied" or a similar message. [editline]22nd November 2011[/editline] [Code]Fedora release 16 (Verne) Kernel 3.1.0-7.fc16.x86_64 on an x86_64 (tty3) spc login: stephen Password: Last login: Sat Nov 19 15:12:17 on tty2 -- stephen: /home/stephen: change directory failed: Permission denied Logging in with home = "/". -bash-4.2$[/code] [b]edit:[/b] I was able to get ubuntu and mint working, both mounting the same partition to /home, and both running from /home/stephen/, but Fedora is still mysteriously broken as fuck. Huh.
[QUOTE=Elecbullet;33396972]I've got a really neat, funky setup right now in which I have Windows, Ubuntu, Mint, Fedora, Arch, and soon to be more installed on my home computer, with a lot of shared partitions. I [I]still[/I] can't figure out how to get a shared /home/stephen folder to work correctly! I can jerry-rig it by mounting to /mnt/home instead and then creating links to /mnt/home/stephen/Documents in /home/stephen on each installation, but that's not very neat. If I DID mount to /home and user stephen is UID 1000 on each installation (and I check this), then wouldn't chowning everything in /home/stephen to stephen work across installations? I've tried that. As a result my Fedora is broken, when I try to log into desktop it gives me a big error and asks me to log out. If I log into a tty (ctrl-alt-f3, example) I see "cannot chdir to /home/stephen, permission denied" or a similar message. [editline]22nd November 2011[/editline] [Code]Fedora release 16 (Verne) Kernel 3.1.0-7.fc16.x86_64 on an x86_64 (tty3) spc login: stephen Password: Last login: Sat Nov 19 15:12:17 on tty2 -- stephen: /home/stephen: change directory failed: Permission denied Logging in with home = "/". -bash-4.2$[/code] [b]edit:[/b] I was able to get ubuntu and mint working, both mounting the same partition to /home, and both running from /home/stephen/, but Fedora is still mysteriously broken as fuck. Huh.[/QUOTE] From root, run [code] chown stephen:stephen -R /home/stephen [/code] To give stephen the ownership of the folder. [editline]23rd November 2011[/editline] Unless something is taking back ownership of course, the above should work. You shouldn't have multiple users accessing the same home folder though, even if the name and all is the same, the permissions may not be.
[QUOTE=Bonzai11;33396299]You can go into synaptics, search it and it should show you the info. If not you can "reinstall" it and it will show the version. I think the best idea would be to look into how to search your local packages, but I like doing things the stupid way. [/QUOTE] Yea but I remember there being a command to check, the reason i ask is that ubuntu doesnt have the current version of some of the libraries I want, so I have compiled them but I want to check there the correct version.
[QUOTE=Richy19;33402571]Yea but I remember there being a command to check, the reason i ask is that ubuntu doesnt have the current version of some of the libraries I want, so I have compiled them but I want to check there the correct version.[/QUOTE] whereis <library> Check the suffix for version information.
[QUOTE=T3hGamerDK;33399791]From root, run [code] chown stephen:stephen -R /home/stephen [/code] To give stephen the ownership of the folder. [editline]23rd November 2011[/editline] Unless something is taking back ownership of course, the above should work. You shouldn't have multiple users accessing the same home folder though, even if the name and all is the same, the permissions may not be.[/QUOTE] I feel like I've done that a hundred times, but I'll do it again.
[QUOTE=esalaka;33402599]whereis <library> Check the suffix for version information.[/QUOTE] The number in the library filename is the ABI version, which isn't the same as the actual version number. It only changes when a new version of the library breaks backward compatibility with earlier versions, which most libraries do only rarely.
[QUOTE=Elecbullet;33396972]I've got a really neat, funky setup right now in which I have Windows, Ubuntu, Mint, Fedora, Arch, and soon to be more installed on my home computer, with a lot of shared partitions. I [I]still[/I] can't figure out how to get a shared /home/stephen folder to work correctly! I can jerry-rig it by mounting to /mnt/home instead and then creating links to /mnt/home/stephen/Documents in /home/stephen on each installation, but that's not very neat. If I DID mount to /home and user stephen is UID 1000 on each installation (and I check this), then wouldn't chowning everything in /home/stephen to stephen work across installations? I've tried that. As a result my Fedora is broken, when I try to log into desktop it gives me a big error and asks me to log out. If I log into a tty (ctrl-alt-f3, example) I see "cannot chdir to /home/stephen, permission denied" or a similar message. [editline]22nd November 2011[/editline] [Code]Fedora release 16 (Verne) Kernel 3.1.0-7.fc16.x86_64 on an x86_64 (tty3) spc login: stephen Password: Last login: Sat Nov 19 15:12:17 on tty2 -- stephen: /home/stephen: change directory failed: Permission denied Logging in with home = "/". -bash-4.2$[/code] [b]edit:[/b] I was able to get ubuntu and mint working, both mounting the same partition to /home, and both running from /home/stephen/, but Fedora is still mysteriously broken as fuck. Huh.[/QUOTE] Are you sure your Fedora user is id 1000? Before F16 the first user started at 500, so if you upgraded from F15 then you'd still be id 500. If you aren't 1000, you can change it in /etc/passwd
I believe it was. In my experiment in one computer having shittons of OSes installed, I am currently installing Mandriva. It's... cute.
[QUOTE=Elecbullet;33413531]I believe it was. In my experiment in one computer having shittons of OSes installed, I am currently installing Mandriva. It's... cute.[/QUOTE] I couldn't stand Mandriva for one moment. I just hated it from the beginning, the way it works and looks just really.. Blew me away in the wrong kind of way. But that was a year ago. What has changed? Also, I'm now posting from a Sabayon 7 x86 Awesome install on my 8GB USB drive. Amazing what you can do with Linux!
[QUOTE=Wyzard;33411178]The number in the library filename is the ABI version, which isn't the same as the actual version number. It only changes when a new version of the library breaks backward compatibility with earlier versions, which most libraries do only rarely.[/QUOTE] Some version information might still be inferrable from it, although I suppose most libraries don't update it enough to actually allow one to separate distinct versions based on it.
Sorry, you need to Log In to post a reply to this thread.