|
Twlight posted:I just did something like this. It's best to take the output of date into a variable. Why is that better? I believe you, I just want to improve my scripting.
|
# ? Sep 12, 2008 05:50 |
|
|
# ? May 26, 2024 18:46 |
|
Lucien posted:Why is that better? I believe you, I just want to improve my scripting. primarily for readability. generally when you want to be able to look at a code and read it straight through, It's better a long rear end path/command you'll use repeatedly and placing it in a smaller variable (like making /usr/local/etc/stuff/etc.conf $etc). I'd show examples of code I've written, but I'd get shanked for showing it in here.
|
# ? Sep 12, 2008 07:28 |
|
Ashex posted:primarily for readability. Oh ok, I was just being lazy there since it's like 3 lines of code. I thought Twilight was suggesting that putting commands in graves might be bad practice or something. Shazzner, assuming you're running Gnome you can additionally put this code in your ~/.gnome2/nautilus-scripts/ folder for right-click convenience: code:
Lucien fucked around with this message at 08:46 on Sep 12, 2008 |
# ? Sep 12, 2008 08:44 |
|
rugbert posted:Has anyone used the balance program? However it's a bit of a security/management problem. Since it's a simple TCP proxy, it can't rewrite HTML or TCP headers, and so you can't use any stats gathering or other log monitoring software if you're using it. Balance-NG is a much better option, tho it's not free if you have more than 2 nodes to balance. The Linux-HA project requires more admin overhead and possibly a network redesign, but once it's working, it's your best option for software load balancing.
|
# ? Sep 12, 2008 15:22 |
|
Lucien posted:Oh ok, I was just being lazy there since it's like 3 lines of code. I thought Twilight was suggesting that putting commands in graves might be bad practice or something. Excellent! Thanks for your help guys.
|
# ? Sep 12, 2008 16:20 |
|
chryst posted:I've used it. For what it is, it works great. Seconding this, ipvsadm and ldirectord are a solid combination. We use that setup at my job (in conjuction with hearbeat for loadbalancer failover) to loadbalance out all of our critical services like LDAP and DNS, and aside from a few hiccups, its worked out to be pretty solid. It can be fairly complicated to setup though, especially compared to "balance".
|
# ? Sep 12, 2008 19:09 |
|
chryst posted:I've used it. For what it is, it works great. Cool thanks, Ill look into the Linux-HA. Tho if balance will handle a traffic surge from digg or drudge every so often then Ill stick with that. Right now the server has nothing at all.
|
# ? Sep 12, 2008 22:39 |
|
Having a bit of a Linux problem, hope someone here can help me. Got an Acer Aspire One running ubuntu with a Kensington bluetooth usb adapter. Been using a Microsoft Bluetooth Notebook Mouse 5000. For a long while, it's been working perfectly. I tried a custom kernel and it stopped working. I'm back on the stock ubuntu kernel, but now it just doesn't work with my mouse. I've used the bluetooth to tether to my phone, so it is working fine, and I paired the mouse with another computer and it works fine. For some reason, the combonation of the laptop bluetooth and the mouse just refuses to work. I've removed the pairing and re-added it, and I've rebooted in between just to make completely sure. Input service is most definitely running. I don't have any other bluetooth mice to test so I guess it's possible the input service got hosed up somehow? Does anyone have any ideas, or know of any kinda thing I can do to troubleshoot this? Edit: I got this half working using hcid.conf and hidd --search. EVGA Longoria fucked around with this message at 00:31 on Sep 13, 2008 |
# ? Sep 13, 2008 00:17 |
|
For as long as I've been dual booting into Linux, I've been partitioning my main (physical) disk into relatively small Windows (NTFS) and Linux (ext3) partitions and one large data (FAT32) partition. I did this because I wanted to be able to access my data from either OS, and at the time I started Linux's NTFS support was weak (I believe it was read only, as writes had a high probability of corrupting your data). However recently it seems possible to mount, read, and write NTFS partitions under Linux. Would I be okay with making my data partition NTFS (comedy option: ext3 with the Windows ext2 driver) or should I stick with my FATtiness for now?
|
# ? Sep 13, 2008 18:13 |
|
Sister Miyagi posted:For as long as I've been dual booting into Linux, I've been partitioning my main (physical) disk into relatively small Windows (NTFS) and Linux (ext3) partitions and one large data (FAT32) partition. I did this because I wanted to be able to access my data from either OS, and at the time I started Linux's NTFS support was weak (I believe it was read only, as writes had a high probability of corrupting your data). However recently it seems possible to mount, read, and write NTFS partitions under Linux. Would I be okay with making my data partition NTFS (comedy option: ext3 with the Windows ext2 driver) or should I stick with my FATtiness for now? NTFS-3G is the Linux driver for NTFS, right? Does it work any better than under MacFUSE? It can be slow as hell under OSX. What I'd say is, if you've got everything already laid out with that 3 partition thing, stick with it until you format, then switch over to NTFS.
|
# ? Sep 13, 2008 18:35 |
|
Sister Miyagi posted:For as long as I've been dual booting into Linux, I've been partitioning my main (physical) disk into relatively small Windows (NTFS) and Linux (ext3) partitions and one large data (FAT32) partition. I did this because I wanted to be able to access my data from either OS, and at the time I started Linux's NTFS support was weak (I believe it was read only, as writes had a high probability of corrupting your data). However recently it seems possible to mount, read, and write NTFS partitions under Linux. Would I be okay with making my data partition NTFS (comedy option: ext3 with the Windows ext2 driver) or should I stick with my FATtiness for now? Personally though, I'd use EXT3 for the Data partition, and use the windows EXT2 driver to mount it. I've never had any problems with that setup.
|
# ? Sep 13, 2008 19:10 |
|
Zom Aur posted:My ex used NTFS under linux and she had some problems with files using special characters (Å, Ä, Ö) not showing up when she mounted the drive in linux. Other than that, it seemed to work nice. Mounting with locale=en_US.utf8 fixes this. Something on Mac makes NTFS-3G perform terribly (it doesn't cache blocks or something), but performance on Linux is adequate. It's a bit slower and more cpu-intensive than a native filesystem like ext3 or xfs, but not by much.
|
# ? Sep 13, 2008 19:15 |
|
Some issue with the shared mmap support made me put off having a NTFS partition as my main storage for my rTorrent stuff. I heard this will be fixed by the kernel inside the next release of Ubuntu. In the meantime, I just reformatted to ext3.
|
# ? Sep 13, 2008 19:59 |
|
Can't find the old Vim thread, and need some Vim help, figure this is the next best place (someone let me know if I should make a new Vim thread). I'm editing a texty-type file (i.e. paragraphs, not code) and have things set up to visually-wrap only, and it works great. It also autoindents great when I make bulleted lists. However, it does not preserve the autoindent for stuff that is soft-wrapped, so I get stuff that looks like this: code:
code:
Again, this is visual only, in "reality" each paragraph is still just one line. Thus the autoformat behavior (e.g. gq) won't cut it because that actually inserts hard linebreaks, AFAIK. I can't seem to find a setting that will control indent behavior for visually-wrapped text like this, and Google's no help since there's a lot of other random junk concerned with the words wrap, visual and indent Help?
|
# ? Sep 13, 2008 21:00 |
|
Sister Miyagi posted:For as long as I've been dual booting into Linux, I've been partitioning my main (physical) disk into relatively small Windows (NTFS) and Linux (ext3) partitions and one large data (FAT32) partition. I did this because I wanted to be able to access my data from either OS, and at the time I started Linux's NTFS support was weak (I believe it was read only, as writes had a high probability of corrupting your data). However recently it seems possible to mount, read, and write NTFS partitions under Linux. Would I be okay with making my data partition NTFS (comedy option: ext3 with the Windows ext2 driver) or should I stick with my FATtiness for now? Although you can pretty much r/w with NTFS in linux now no problem, I still do exactly what you do, with a ntfs partition for winxp, ext3 for ubuntu, and a giant fat32 that they can both easily use.
|
# ? Sep 14, 2008 01:40 |
|
Is there a way to move Wine's c drive to somewhere other than my home directory? I had a seperate partition I was planning on using for that but I don't know what configuration files or whatever that I would need to change if I just copied the entire c drive folder to another partition. E: I tried just adding another drive but some stuff gives me bizarre errors if it's not in C Also, are there any recommendations on the best way to back up my system in case I mess something up? Fortuitous Bumble fucked around with this message at 02:37 on Sep 14, 2008 |
# ? Sep 14, 2008 02:31 |
|
Fortuitous Bumble posted:Is there a way to move Wine's c drive to somewhere other than my home directory? I had a seperate partition I was planning on using for that but I don't know what configuration files or whatever that I would need to change if I just copied the entire c drive folder to another partition. E: I tried just adding another drive but some stuff gives me bizarre errors if it's not in C just do a symbolic link that redirects ~/.wine/drive_c/ to somewhere else
|
# ? Sep 14, 2008 02:46 |
|
Scaevolus posted:Mounting with locale=en_US.utf8 fixes this.
|
# ? Sep 14, 2008 03:06 |
|
Zom Aur posted:We tried, didn't work. We later tried with ISO-8859-1 (Which is the ISO code for swedish characters) but it didn't work neither. It's probably formatted to use a windows-specific code page (which is a stupid thing to do in this day and age). You should be able to figure out the code page in Windows somewhere (drive properties? I dunno) and then Google should be able to tell you the equivalent Linux name of that page.
|
# ? Sep 14, 2008 03:19 |
|
I have the following line in the rc.local file of my linux router: ntop -b -c -g -n -z -d -L -i "eth0" When I look at the webpage ntop serves, sticky hosts and local only (-c and -g) aren't in effect. If I kill ntop and restart it with the above line, then I get the proper settings. Any idea how to get it going properly on startup? Also, any way, short of sticking another NIC in the computer, of not having the traffic from files served from this machine show up in ntop? If I'm serving a bunch of stuff from the router, I don't want it messing up my Internet usage stats. edit: VVV - Ah, thanks, I didn't even think about trying to filter it out on the webpage. Was just focusing on getting ntop to ignore it completely. edit 2: arg. Power outage and ntop started again without sticky hosts and local only. I have no idea why this is happening! Anyone? Is there any reason rc.local shouldn't work? I guess next I'll try taking it out of rc.local and see if something else is starting it up? I don't see why anything would be though. odiv fucked around with this message at 07:49 on Sep 16, 2008 |
# ? Sep 14, 2008 07:30 |
|
odiv posted:I have the following line in the rc.local file of my linux router: There are ways to filter what gets reported: you can choose at least what port you don't want to see. I believe that it's under the admin section.
|
# ? Sep 14, 2008 16:45 |
|
Has anyone had the problem where gparted-live simply doesnt work? I was able to use it to resize my disk space from 250 gigs to 80, but when I choose apply changes, and it runs the the motions it doesnt actually do anything. it claims operations ran successfully but I still have that 250gig partition and nothing else. also - how many OSs can I boot to? Ive seen people triple boot, but if I wanted 2 linux distros, osx, and vista all on one computer, could I do that?
|
# ? Sep 14, 2008 17:44 |
|
rugbert posted:Has anyone had the problem where gparted-live simply doesnt work? I was able to use it to resize my disk space from 250 gigs to 80, but when I choose apply changes, and it runs the the motions it doesnt actually do anything. it claims operations ran successfully but I still have that 250gig partition and nothing else. There might actually be a limit (16? # of partitions possible on a single drive), but anything less than 5 is very easy, and you could get more with virtual machines. But yes, you can definitely triple boot. The key generally is to install windows first. P.S. - OSX doesn't run on most normal PC's.
|
# ? Sep 14, 2008 18:20 |
|
Casao posted:NTFS-3G is the Linux driver for NTFS, right? Does it work any better than under MacFUSE? It can be slow as hell under OSX. Using the ext2 driver to mount an ext3 partition is actually a terrible idea. You're basically accessing files and modifying files without updating the journal, so when the partition is ready for checking, it will freak out and crap its pants. I've had this happen on multiple occasions, so if I need something, I put it on the ntfs drive.
|
# ? Sep 15, 2008 01:34 |
|
Cross posting from my HAUS post: me posted:Hey guys Sorry for the cross-post but I figured I'd have better luck here with you Linux guys Also, I can't seem to mount more than one additional hard drive. Ubuntu sees my 500gb, and sees my 250gb drives that I had hooked up to it, but refuses to mount either of the 250s I'm a super noob pretend to care fucked around with this message at 06:15 on Sep 15, 2008 |
# ? Sep 15, 2008 06:13 |
|
rugbert posted:Has anyone had the problem where gparted-live simply doesnt work? I was able to use it to resize my disk space from 250 gigs to 80, but when I choose apply changes, and it runs the the motions it doesnt actually do anything. it claims operations ran successfully but I still have that 250gig partition and nothing else. I've had weird problems like that before with gparted. Normally I just load up a live distribution and run gparted from there. If I remember correctly, the max for primary partitions is 4. I assume you're installing on an Intel based Mac. I've never dual booted with OS X but like Eyecannon said, with Win/Linux you should always install Windows first. Haven't done this with Vista, but XP used to take over the MBR and not recognize any other operating systems.
|
# ? Sep 15, 2008 06:21 |
|
chryst posted:You can specify it on the client as well as the server. Someone posted that the Mac implementation of NFS sucks, and I don't doubt that's your problem. All kinds of NFS weirdness happens when using different server/client builds. This is infuriating. Transfering even a 7mb file results in a different hash. That is even more strange considering I stream mp3s from the server to this mac all the time in itunes (via NFS) and they seem to play fine. I used to have no trouble at all doing this. I wonder which end is to blame. I guess I can try AFP now?
|
# ? Sep 15, 2008 15:50 |
|
Does anyone know why I'm having issues in Ubuntu with the Unlock buttons on dialogs? Basically, the unlock button brings up a special dialog for entering the admin password. For some reason, this just refuses to authenticate me. The password is correct, as I use it for gksudo and logging in. I've tried changing it, still no go. I've tried creating a completely new user and adding to admin - the username shows up in the list but it still refuses to authenticate me. There's another Ubuntu Gnome Policy Kit issue which apparently doesn't offer the Unlock button, but that's not the issue here.
|
# ? Sep 15, 2008 16:08 |
|
So let's get AFP working! netatalk.conf code:
code:
code:
Should I not be using the pam module? Nothing shows up in the logs on the server end.
|
# ? Sep 15, 2008 16:18 |
|
So how risky is it REALLY to enable writing to NTFS drives? And, if it's really bad, can I convert my NTFS drives to something that Linux could write through via Samba? I want to make this box my fileserver, but if I can't map drives and write to them, it's pointless.
|
# ? Sep 15, 2008 16:57 |
|
pretend to care posted:So how risky is it REALLY to enable writing to NTFS drives? Writing to ntfs is pretty safe, if you dual-boot, you will occasionally get an error about the partition not being ready, which can be fixed by running ntfs-fix then mount with -o force.
|
# ? Sep 15, 2008 17:09 |
|
pretend to care posted:So how risky is it REALLY to enable writing to NTFS drives?
|
# ? Sep 15, 2008 17:14 |
|
So if I want to, say, run Utorrent and save files directly to an Ubuntu mounted NTFS drive that I've mapped, I shouldn't have any problems?
|
# ? Sep 15, 2008 17:20 |
|
pretend to care posted:So if I want to, say, run Utorrent and save files directly to an Ubuntu mounted NTFS drive that I've mapped, I shouldn't have any problems? It will work.
|
# ? Sep 15, 2008 19:44 |
|
Kaluza-Klein posted:So let's get AFP working! Is there any reason I should not just use MacFUSE and sshfs? It seems to be working beautifully. . .
|
# ? Sep 16, 2008 07:00 |
|
Hi, I need help using rsync to copy my files from my old pc to my new one. First thing I wanted to do was copy all my steam game stuff over so I wouldnt have to redownload everything. This is the command I used:code:
code:
Thank you so much! It started working as soon as I extended the quotes to the ip address part, as well as the directory part (rsync -r -a -vv- e "ssh -l User" "192.168.1.101/Program\ Files/Steam" ~) VV Feral Integral fucked around with this message at 03:31 on Sep 17, 2008 |
# ? Sep 17, 2008 03:11 |
|
Feral Integral posted:Hi, I need help using rsync to copy my files from my old pc to my new one. First thing I wanted to do was copy all my steam game stuff over so I wouldnt have to redownload everything. This is the command I used: did you try "192.168.1.101:/cygwin/c/Program\ Files/Steam" /~ or "192.168.1.101:/cygwin/c/Program\ Files/Steam /~" ? If neither work, I would recommend just creating a symbolic link to it, and using the link.
|
# ? Sep 17, 2008 03:14 |
|
Can some one explain to me how to change the default menu items in xfce? In the file /etc/xdg/menus/xfce-applications.menu I see the item I want to change: code:
code:
I suppose I could edit xfce4-file-manager.desktop and point it to the rox executable, but that seems like a silly hack.
|
# ? Sep 17, 2008 05:48 |
|
Kaluza-Klein posted:Can some one explain to me how to change the default menu items in xfce? First, the menu that's being used is almost certainly in your home directory, not in /etc. Second, I usually use the GUI editor to edit menu items. On the second tab of the desktop menu in the settings menu there's a box that launches the menu editor. That seems like a long way to find it, I thought there was a shorter way, but I can't think of one right now.
|
# ? Sep 17, 2008 06:55 |
|
|
# ? May 26, 2024 18:46 |
|
Hi everyone, I'm having trouble mounting a cifs share on a debian box that we have at work. It houses our wiki and I want to offload the backups I make. At this time I have 2 other systems centos boxes that are also connected to the share and can see files. When I try to connect with the debian system I get: code:
code:
Thanks!
|
# ? Sep 18, 2008 19:58 |