Search found 134 matches

by frisil
Sun Aug 23, 2009 12:23 pm
Forum: Newbie Questions
Topic: terminal command showing free disk space? [SOLVED]
Replies: 13
Views: 1725

Re: terminal command showing free disk space?

Thanks Fred, this really helps! I can leave the system the way it is, and I'm glad about it. On your points: 1. I usually copy my scripts as root into the /usr/bin folder, so they have root:read/write / user:read-only permissions as default. Nobody will edit that without root access. I don't see any...
by frisil
Sun Aug 23, 2009 5:30 am
Forum: Newbie Questions
Topic: how to move all from one HDD to another HDD
Replies: 9
Views: 950

Re: how to move all from one HDD to another HDD

IMO the easiest way is to use a live cd, run gparted and choose your partition, right click, select copy, choose the other drive, select paste, apply, wait quite a while and you're done. No need to run partimage twice (create backup & restore), and store the image somewhere in between, gparted can d...
by frisil
Sun Aug 23, 2009 2:15 am
Forum: Newbie Questions
Topic: I need sudo without password for a script... [SOLVED]
Replies: 30
Views: 1940

Re: I need sudo without password for a script...

I would enable the root account by "sudo passwd", then you can log in as root (su) with your newly set password. This is useful if you break your sudoers file, because you can still repair it, even if sudo no longer works.
by frisil
Sat Aug 22, 2009 8:58 am
Forum: Newbie Questions
Topic: script help needed: how to copy everything except 1 folder?
Replies: 5
Views: 458

script help needed: how to copy everything except 1 folder?

Hi, I'm still working on a Mint home server (almost finished) but now I want to write a script that would back up all stuff on the server's home folder to one of the clients except for the /external folder mounted into home, as this is an external TB drive. So I need a command to copy the content of...
by frisil
Sat Aug 22, 2009 8:21 am
Forum: Newbie Questions
Topic: I need sudo without password for a script... [SOLVED]
Replies: 30
Views: 1940

Re: I need sudo without password for a script...

emorrp1 wrote: I assume you've also write-protected this file with chmod -w?
Of course I have. I created it as root anyway, so anyone else can only read it by default.
by frisil
Sat Aug 22, 2009 8:15 am
Forum: Newbie Questions
Topic: terminal command showing free disk space? [SOLVED]
Replies: 13
Views: 1725

Re: terminal command showing free disk space?

Thanks for all the info, doc! But I do not need quota, it's a media drive mostly with music on it, so as I said, accurate free space is not important, I just need to know roughly how much more can be copied there, but the partition is not growing by itself, as it does not contain any logs or tmp or ...
by frisil
Fri Aug 21, 2009 9:59 pm
Forum: Newbie Questions
Topic: I need sudo without password for a script... [SOLVED]
Replies: 30
Views: 1940

Re: I need sudo without password for a script...

Okay, to calm everyone down, I removed the general sudo without password setting and only set it for one script. This will rule out the issue that some hacker remotely starts a script of his own which would run uninterrupted.

Thanks for all the insight and contribution!
by frisil
Fri Aug 21, 2009 7:15 pm
Forum: Newbie Questions
Topic: I need sudo without password for a script... [SOLVED]
Replies: 30
Views: 1940

Re: I need sudo without password for a script...

Dear Fred, I understand your concern very well, but I think you're barking up the wrong tree, or I got something about security very wrong and would like to be corrected, if so. So here my question: How could anyone use my machine for spamming if my logged-in user can sudo without having to enter hi...
by frisil
Fri Aug 21, 2009 6:44 pm
Forum: Newbie Questions
Topic: terminal command showing free disk space? [SOLVED]
Replies: 13
Views: 1725

Re: terminal command showing free disk space?

Thanks Fred, that's exactly what I am doing, mouting the external drive into home on the server, then exporting the server's home via crossmount, not exporting the mounted drive separately. I'm doing that because of two reasons: 1st is that this way, any external media plugged into the server (fs is...
by frisil
Fri Aug 21, 2009 12:55 pm
Forum: Newbie Questions
Topic: terminal command showing free disk space? [SOLVED]
Replies: 13
Views: 1725

Re: terminal command showing free disk space?

frisil, When you cross mount a partition, regardless of its' physical location, to a mount point on one or more client systems, looking at the properties of the various client mount points will tell you the amount of space used and the amount of space left on the mount point. It is unnecessary for ...
by frisil
Fri Aug 21, 2009 11:55 am
Forum: Newbie Questions
Topic: terminal command showing free disk space? [SOLVED]
Replies: 13
Views: 1725

Re: terminal command showing free disk space?

Thanks, that's what I was looking for. There only is a limit to a special folder if that folder is not part of the original partition it is on, but rests on an external drive which is mounted to that folder. E.g. you have the following in fstab: /sda1 / /sda2 /home/ /sdb1 /home/frisil/external/ In t...
by frisil
Fri Aug 21, 2009 11:37 am
Forum: Newbie Questions
Topic: terminal command showing free disk space? [SOLVED]
Replies: 13
Views: 1725

terminal command showing free disk space? [SOLVED]

Hi, I need a terminal command like that: usage: command /home/frisil/external/data output: xxx GiB free Is there anything like that? Doesn't matter if it shows more info, but it must show free drive space for a folder. I need it for the following: I'm using a home server with external usb harddrive ...
by frisil
Fri Aug 21, 2009 11:21 am
Forum: Newbie Questions
Topic: I need sudo without password for a script... [SOLVED]
Replies: 30
Views: 1940

Re: I need sudo without password for a script...

Okay, I think we're getting a little over-dramatic here... I did that on a machine WITHOUT ANY LOCAL USERS in my BASEMENT with no physical access to anyone but me and my fiancee. A machine that just controls the printer and reads files from an external TB harddrive and makes these files available vi...
by frisil
Thu Aug 20, 2009 3:40 pm
Forum: Newbie Questions
Topic: I need sudo without password for a script... [SOLVED]
Replies: 30
Views: 1940

Re: I need sudo without password for a script...

Fred, thanks for your advice, but I already tried what you suggest and it does not work. I don't know why, but I think it has to be restarted from gnome once it's fully running. Don't worry if I tell you, but I completely discarded your warning, I hacked my sudoers file and edited it to be like on t...
by frisil
Thu Aug 20, 2009 1:00 pm
Forum: Newbie Questions
Topic: Nameserver or hostname problem?
Replies: 8
Views: 920

Re: Nameserver or hostname problem?

Thanks for all your help, but it's still unsolved- the files mentioned in the archlinux link (post1) do not exist in Mint, and the other clues (router being buggy) do not apply, because it works with Pardus and Windows, just not with Mint, Mepis, Sabayon and a few other distros. I've found a workaro...
by frisil
Thu Aug 20, 2009 11:59 am
Forum: Newbie Questions
Topic: I need sudo without password for a script... [SOLVED]
Replies: 30
Views: 1940

I need sudo without password for a script... [SOLVED]

Hi, I'm building a home server with Mint (using nfs) but for nfs to work, I have to start it manually once the machine is fully booted, or else the clients get a time out when trying to mount. The server is meant to rest in a storage room without monitor nor keyboard, so I need a script to do that a...
by frisil
Thu Aug 20, 2009 5:41 am
Forum: Newbie Questions
Topic: Nameserver or hostname problem?
Replies: 8
Views: 920

Re: Nameserver or hostname problem?

Yes, true, I have to edit hostfiles every time I go there and want to plug my laptop in. Getting a static IP would only be a workaround, I want my hostname to be sent to the router, it cannot be that difficult, even any windows pc plugged in there will do that automatically. There has to be some way...
by frisil
Wed Aug 19, 2009 8:38 pm
Forum: Newbie Questions
Topic: Nameserver or hostname problem?
Replies: 8
Views: 920

Re: Nameserver or hostname problem?

No, you did not sound condescending at all, I just wanted to make sure no one else would spent valuable time by explaining things I already know. Sorry on my side for not making that clear in my post. I cannot assign specific IPs to MAC-addresses in the fritz-box, or we can't find it. There has to b...
by frisil
Wed Aug 19, 2009 8:07 pm
Forum: Newbie Questions
Topic: Nameserver or hostname problem?
Replies: 8
Views: 920

Re: Nameserver or hostname problem?

Thanks, but I know how to mount nfs. Problem is, the ip of my computer changes, and the Pardus boxes can use each other's hostname to mount, while they have to mount my folders with my (ever changing) IP. Could it be that Pardus runs its own local DNS System by default, so they can ID to each other ...
by frisil
Wed Aug 19, 2009 6:46 pm
Forum: Newbie Questions
Topic: Nameserver or hostname problem?
Replies: 8
Views: 920

Nameserver or hostname problem?

Hi, I want to connect my Mint PC to a friend's nfs-network. When I plug it in there, I get an ip address by the router, it's different every time, so I want to use the hostname instead. However, Mint does not send the hostname to the router (fritz-box) correctly. See the picture to see what I mean: ...

Go to advanced search