|
"?Invalid command" is what the standard ftp(1) program says when you enter a command it doesn't understand. I'm guessing it doesn't understand the "epsv4 off" command; either that script was written for a different FTP client that did, or it's a typo and should be a different command entirely.
|
# ? Jul 15, 2010 20:44 |
|
|
# ? May 20, 2024 22:48 |
|
Zorak posted:Without admin access, I get this: Is the script in your path and/or is it set to accessible/executable for your usergroup? Zorak posted:After su'ing up, I instantly get this Most *nix distributions I've seen have root FTP access disabled by default. So by su'ing to root you eliminate any permission problems that may exist for a common user, but the remote machine boots you because you're connecting as root. Underflow fucked around with this message at 22:02 on Jul 17, 2010 |
# ? Jul 17, 2010 15:10 |
|
I have a micro sd card from a wee toy camera that seems to have a bad partition table. When the card is in the camera you can view all the pictures on it, but debian can't see the partition. It seems like there must be a way to fix this, since the data is there, the camera can read it! (the camera doesn't have any sort of output ). Thank you for any help! edit: The camera is here: http://www.superheadz.com/digi2/detail.php?lang The micro sd card in question is 4gb. so that means it is a fat32 patition? other people fucked around with this message at 15:39 on Jul 17, 2010 |
# ? Jul 17, 2010 15:31 |
|
Kaluza-Klein posted:I have a micro sd card from a wee toy camera that seems to have a bad partition table. When the card is in the camera you can view all the pictures on it, but debian can't see the partition. Try throwing http://www.cgsecurity.org/wiki/TestDisk at it and see if that can see the partitions. With it being some funky camera it might be using some silly custom thing, who knows.
|
# ? Jul 17, 2010 15:43 |
|
enotnert posted:Try throwing http://www.cgsecurity.org/wiki/TestDisk at it and see if that can see the partitions. With it being some funky camera it might be using some silly custom thing, who knows. I inserted the card again to run fsck, and it magically assigned a partition this time. I have mounted it and am quickly copying files from it as I type this. The camera ran out of batteries when it was taking a picture a few days ago, so maybe it hosed something up. The camera does not have a format option, so I would like to format the card from linux. Is just using mkfs.vfat without any switches appropriate? Sorry. I am usually not this dumb. I am just confused by vfat and msdos and fat and blah blah blah on linux. I never am sure which one to use.
|
# ? Jul 17, 2010 15:52 |
|
Beware, some devices doesn't like it when you manually make partitions. In some devices, Linux will think it's confusing that the filesystems are on /dev/sdx rather than /dev/sdx1, yet they'll still work just fine. I dunno if that's the case with your sd-card, but you should be aware of the possibility.
|
# ? Jul 17, 2010 15:57 |
|
If you hold down a bunch of random buttons on the camera, it formats the card itself. It seems to make an acceptable file system as far as linux is concerned. Thanks for the help!
|
# ? Jul 17, 2010 16:12 |
|
Does anyone know how to set up php to be able to send email? I'm running ubuntu 9.04 with apache, and I basically followed the instructions on this website: http://www.blog.highub.com/javascript/javascript-core/make-ubuntu-php-localhost-mail-function-work/ (it just tells you how to install pear, and then there's a sample script -- there are some typos in there but I fixed them), but when I run the sample script (with my email address of course), I don't get any email, and I also get this ominous looking line in my mail.log: Jul 17 23:53:09 Lawls sm-mta[1450]: o6I6r9Ml001450: SYSERR(root): collect: Cannot write ./dfo6I6r9Ml001450 (bfcommit, uid=0, gid=129): No such file or directory which sounds like sendmail(?) can't find some unknown folder. I googled the error but wasn't able to find anything useful. I tried to fix sendmail for a while but have essentially been hitting my head against a wall and getting frustrated. Well, all I want is to send email from within a script, I don't really care if email is working on my server, so the next thing that I thought I'd try is use pear to send email from an external smtp, like this: http://www.cyberciti.biz/tips/howto-php-send-email-via-smtp-authentication.html I modified the sample script with my google credentials and tried both smtp.google.com (port 25) and ssl://smtp.google.com (465), but in either case the script hangs for a long time, then displays the success message, but I don't get any email. I've been staring at this for something like 8 hours over 2 days now, so I pretty much want to kill myself at this point. If anyone has any tips, I'd be very grateful, thanks.
|
# ? Jul 18, 2010 08:52 |
|
Anyone here ever installed & used CVSweb on Fedora core 10? This package creates a web interface to a CVS repository for browsing files & versions. I'm attempting to use it with a router/switch config repository created by RANCID. http://www.freebsd.org/projects/cvsweb.html http://www.shrubbery.net/rancid/ Currently I'm getting a permissions error when I try to load up the tool in a web browser (apache is running on the box). This is the error in /var/log/httpd/error_log: Fri Jul 16 13:18:06 2010] [error] [client 1.2.3.4] Can't open perl script "/var/www/cgi-bin/cvsweb.cgi": Permission denied This is the file permissions of the cgi file in /var/www/cgi-bin/: [root@localhost cgi-bin]# ls -l total 128 -rwxr-xr-x 1 root root 126299 2006-09-15 11:23 cvsweb.cgi [root@localhost cgi-bin]# I'm a Cisco router/switch guy; I'm a little out of my element when I improv network management tools on linux.
|
# ? Jul 19, 2010 15:16 |
|
Can you run any cgi-bin scripts? I can't remember which distro it was, but Apache2 was using a directory for cgi-bin that didn't even exist on the filesystem. code:
Bob Morales fucked around with this message at 15:58 on Jul 19, 2010 |
# ? Jul 19, 2010 15:51 |
|
chiyosdad posted:Does anyone know how to set up php to be able to send email? I was just doing it like this, for a script that scraped lottery numbers and then sent me a text message containing them ($sms is the numbers extracted from the page, such as "3 digit = 345, 4 digit = 9876") code:
|
# ? Jul 19, 2010 15:57 |
|
Bob Morales posted:Can you run any cgi-bin scripts? I can't remember which distro it was, but Apache2 was using a directory for cgi-bin that didn't even exist on the filesystem. This is the only cgi-bin script I've attempted to run on this box. code:
Bob Morales posted:Is SELinux enabled? It is, and it was tossing out errors when I first tried to load the CVSweb page. I executed the commands SElinux recommended as a fix and I thought I had it resolved. I checked the error log again and actually one of the errors is still showing with a new recurrance date (below). Yeah, I just tried the "setsebool -P httpd_unified=1" command again and it's not resolving the SElinux error. Summary: SELinux prevented httpd reading access to http files. Detailed Description: SELinux prevented httpd reading access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ (http://fedora.redhat.com/docs/selinux-apache-fc3) "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types. Allowing Access: Changing the "httpd_unified" boolean to true will allow this access: "setsebool -P httpd_unified=1" Fix Command: setsebool -P httpd_unified=1 Additional Information: Source Context unconfined_u:system_r:httpd_cvs_script_t:s0 Target Context system_u:object_r:httpd_sys_content_t:s0 Target Objects ./www [ dir ] Source cvsweb.cgi Source Path /usr/bin/perl Port <Unknown> Host localhost.localdomain Source RPM Packages perl-5.10.0-74.fc10 Target RPM Packages Policy RPM selinux-policy-3.5.13-74.fc10 Selinux Enabled True Policy Type targeted MLS Enabled True Enforcing Mode Enforcing Plugin Name httpd_unified Host Name localhost.localdomain Platform Linux localhost.localdomain 2.6.27.41-170.2.117.fc10.i686 #1 SMP Thu Dec 10 11:00:29 EST 2009 i686 i686 Alert Count 19 First Seen Fri 16 Jul 2010 01:03:23 PM EDT Last Seen Mon 19 Jul 2010 11:20:24 AM EDT Local ID 7668a50d-b2e5-459c-9848-5145d789afb6 Line Numbers Raw Audit Messages node=localhost.localdomain type=AVC msg=audit(1279552824.570:15683): avc: denied { search } for pid=32275 comm="cvsweb.cgi" name="www" dev=dm-0 ino=3195019 scontext=unconfined_u:system_r:httpd_cvs_script_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir node=localhost.localdomain type=SYSCALL msg=audit(1279552824.570:15683): arch=40000003 syscall=5 success=no exit=-13 a0=80a9e3c a1=8000 a2=0 a3=8000 items=0 ppid=32322 pid=32275 auid=500 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=1599 comm="cvsweb.cgi" exe="/usr/bin/perl" subj=unconfined_u:system_r:httpd_cvs_script_t:s0 key=(null)
|
# ? Jul 19, 2010 16:35 |
|
inignot posted:Not sure what you're asking me to do with this. Run it as a perl script from the command line or stuff it into a web page? Works fine as a .pl file. I put the .pl file in the /var/www/html directory and tried to load it from a web browser and SElinux spat out an error (not the one below). Sorry, I meant to save it as hello.pl in your cgi-bin directory, and then view that page from a browser. You should get "Hello World" as the output. You may be restricted to only running scripts that are in the cgi-bin directory, so putting it in /var/www/html/ wouldn't work, or cause the browser to display the actual code. You can change that in your Apache config. FC10 isn't supported any more, but there should be plenty of forum posts and such about it. If you have AOL IM or are on IRC I could probably help troubleshoot some stuff. In the meantime, check out the Apache docs: http://httpd.apache.org/docs/2.2/howto/cgi.html edit: I have a Fedora 10 ISO around, I'll throw a VM online for it
|
# ? Jul 19, 2010 17:36 |
|
inignot posted:Anyone here ever installed & used CVSweb on Fedora core 10? This package creates a web interface to a CVS repository for browsing files & versions. I'm attempting to use it with a router/switch config repository created by RANCID. How did you go about installing CVSweb? Install from a yum repo, download from their site...?
|
# ? Jul 19, 2010 17:40 |
|
Bob Morales posted:Sorry, I meant to save it as hello.pl in your cgi-bin directory, and then view that page from a browser. You should get "Hello World" as the output. I moved it to the cgi-bin directory and I'm not having any luck loading it via a browser. The first time around I got an SElinux error. The SElinux error seemed to resolve after running "restorecon '/var/www/cgi-bin/hello.pl'"; however I'm getting a 500/606 http error when I try to load it via a web browser. Bob Morales posted:FC10 isn't supported any more, but there should be plenty of forum posts and such about it. I could upgrade the box to FC13, it's an ad hoc management tools box, it's not a critical service. Bob Morales posted:How did you go about installing CVSweb? Install from a yum repo, download from their site...? yum install cvsweb
|
# ? Jul 19, 2010 18:18 |
|
Ok, the hello.pl test case is solved. Perl is not located in /usr/local/bin/perl; it's in /usr/bin/perl. So this: code:
cvsweb.cgi is still producing an SElinux error per my prior message.
|
# ? Jul 19, 2010 18:26 |
|
inignot posted:Allowing Access: Did you do this? I just got perl scripts running from the browser. Installing CVSweb next.
|
# ? Jul 19, 2010 18:37 |
|
Mine is working now, but "SELinux is preventing the cvsweb.cgi from using potentially mislabeled files ./cvs (cvs_data_t)" gently caress SELinux.
|
# ? Jul 19, 2010 18:41 |
|
Yes, I've run this : setsebool -P httpd_unified=1 more then a few times to no effect. I suppose I could just turn off SElinux. I'm the only person that uses this box for anything. I'm just running rancid and a couple of sloppy expect scripts for some ad hoc network management of routers/switches.
|
# ? Jul 19, 2010 18:50 |
|
inignot posted:Yes, I've run this : setsebool -P httpd_unified=1 more then a few times to no effect. I suppose I could just turn off SElinux. I'm the only person that uses this box for anything. I'm just running rancid and a couple of sloppy expect scripts for some ad hoc network management of routers/switches. Have you restarted apache? Not sure if that would matter. What is in your /var/log/httpd/error_log ? (tail will give you the last couple lines)
|
# ? Jul 19, 2010 18:55 |
|
In addition to the SElinux alert, the apache logs show this error: 127.0.0.1 - - [19/Jul/2010:14:07:48 -0400] "GET /cgi-bin/cvsweb.cgi HTTP/1.1" 500 590 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6" Restarting httpd hasn't changed anything. I could bounce the box just for kicks.
|
# ? Jul 19, 2010 19:09 |
|
inignot posted:In addition to the SElinux alert, the apache logs show this error: That looks like access_log and not error_log
|
# ? Jul 19, 2010 19:40 |
|
Yeah, that's likely the case. I went ahead and turned off SElinux & bounced the box. I can now load the cvsweb.cgi in a browser. Now I just need to fight the config file for cvsweb into enough shape so as to read my existing rancid repository. This looks promising. http://www.debian-administration.org/articles/429
|
# ? Jul 19, 2010 20:05 |
|
This is an odd one i've come across. I've been working with a client to tune their nic's we're using the IGB driver in SUSE 10.2 x64_86 here is our version: ?!?!?:/etc # ethtool -i eth7 driver: igb version: 2.1.1 firmware-version: 1.5-1 bus-info: 0000:08:00.1 ?!?!?:/etc # I'm trying to change the coalesce paramaters, of note, the tx-usecs paramater: !?!?!!?:/etc # ethtool -c eth7 Coalesce parameters for eth7: Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0 rx-usecs: 13 rx-frames: 0 rx-usecs-irq: 0 rx-frames-irq: 0 tx-usecs: 0 tx-frames: 0 tx-usecs-irq: 0 tx-frames-irq: 0 rx-usecs-low: 0 rx-frame-low: 0 tx-usecs-low: 0 tx-frame-low: 0 rx-usecs-high: 0 rx-frame-high: 0 tx-usecs-high: 0 tx-frame-high: 0 I've changed the rx-usecs number by adjusting the InterruptThrottleRate inside of modprobe.conf doing this i'm able to change the rx-usecs. You can also change this value using ethtool. however when trying to change the tx-usecs values using ethtool: ?!!?!?:/etc # ethtool -C eth7 tx-usecs 13 Cannot set device ring parameters: Invalid argument I was wondering if anyone has changed these values using the IGB driver and was successful.
|
# ? Jul 19, 2010 21:58 |
|
Bob Morales posted:I was just doing it like this, for a script that scraped lottery numbers and then sent me a text message containing them ($sms is the numbers extracted from the page, such as "3 digit = 345, 4 digit = 9876") Thanks for the reply. I'm aware of the php syntax. The problem is that php makes some calls to some underlying mail utilities, and if they are not set up correctly then this functionality does not work. When I call the mail function (as well as functions from the pear package) I don't get any mail in my inbox, and do get some error messages in my /var/log/mail.log (copy pasted in my previous post), which I don't have the knowledge to debug.
|
# ? Jul 19, 2010 23:59 |
|
How do I get iptables to drop packets (On FORWARD) based on mac address? I've tried some variations of this and I can't get it to work. Suggestions? code:
|
# ? Jul 20, 2010 00:49 |
|
chiyosdad posted:Thanks for the reply. I'm aware of the php syntax. The problem is that php makes some calls to some underlying mail utilities, and if they are not set up correctly then this functionality does not work. When I call the mail function (as well as functions from the pear package) I don't get any mail in my inbox, and do get some error messages in my /var/log/mail.log (copy pasted in my previous post), which I don't have the knowledge to debug. Usually the queue directory is /var/spool/clientmqueue which is owned by UID/GUID 25, smmsp There are some mail settings in php.ini, but usually the default is enough. Depending on how your system is set up you may need to adjust users/ownership to something or fix the sendmail settings.
|
# ? Jul 20, 2010 01:39 |
|
chiyosdad posted:Thanks for the reply. I'm aware of the php syntax. The problem is that php makes some calls to some underlying mail utilities, and if they are not set up correctly then this functionality does not work. When I call the mail function (as well as functions from the pear package) I don't get any mail in my inbox, and do get some error messages in my /var/log/mail.log (copy pasted in my previous post), which I don't have the knowledge to debug. What 'server' are you using? Do you have a VPS? Is this running on a computer in your basement? There should be a setting to increase the level of logging. Can you try connecting using those settings from that server (but not using PHP) (or, that IP address with a different computer) and see if it works? More info: http://lists.freebsd.org/pipermail/freebsd-questions/2004-May/047094.html
|
# ? Jul 20, 2010 02:50 |
|
chiyosdad posted:Thanks for the reply. I'm aware of the php syntax. The problem is that php makes some calls to some underlying mail utilities, and if they are not set up correctly then this functionality does not work. When I call the mail function (as well as functions from the pear package) I don't get any mail in my inbox, and do get some error messages in my /var/log/mail.log (copy pasted in my previous post), which I don't have the knowledge to debug. PHP's mail handling is pretty basic. It's all right in conjunction with sendmail for pushing out simple messages from a server with a FQDN, but if you can't do that it's possible to use external SMTP (and POP) through a third-party class like Tanase Iulian's XpertMailer, which was free the last time I looked.
|
# ? Jul 20, 2010 12:16 |
|
..
Lukano fucked around with this message at 04:34 on Dec 6, 2011 |
# ? Jul 20, 2010 22:08 |
|
I resolved this very easily by doing all my work VPN stuff from a virtual machine. VirtualBox is free.
|
# ? Jul 20, 2010 22:16 |
|
..
Lukano fucked around with this message at 04:35 on Dec 6, 2011 |
# ? Jul 20, 2010 22:24 |
|
Lukano posted:That was my backup plan, but it doesn't give me the keyboard/mouse sharing on the laptop's host OS. I'm lazy Run Synergy on the guest as well.
|
# ? Jul 20, 2010 23:08 |
|
Thanks for the replies. I ended up installing ssmtp, which allows me to forward all emails to an extermal smtp server, thus bypassing the need to get an MTA to work on my server. I was then able to get php's mail function to use this package instead of sendmail.
|
# ? Jul 21, 2010 07:44 |
|
Lukano posted:That was my backup plan, but it doesn't give me the keyboard/mouse sharing on the laptop's host OS. I'm lazy
|
# ? Jul 21, 2010 15:27 |
|
..
Lukano fucked around with this message at 04:35 on Dec 6, 2011 |
# ? Jul 21, 2010 16:42 |
|
Hey, I have this computer lying around my house and I want to make good use of it. So I figure I don't want to go about upgrading it if I'm not going to use it, so I may as well install something on it, connect it to my router, and keep it around as a storage device. I know I know, a real waste, but it's perfect for the three of us living here who need a quick storage fix. I installed Windows 2000 Professional and realized it wasn't the server edition like an idiot when I tried to set up domain stuff. Oops. Guess I could use Linux, right? I'm pretty familiar with Debian (I could use Ubuntu, but I kinda don't want to (unless it's absolutely easier to set up all this crap))... To an extent. See, this is what I want out of this: I'll end up making an admin account (because, you know, you have to). From there I want to set up three accounts - one for me, two for the other two people. I want to set up specific folders with certain permissions so only those users can use them - basically, it's like if I went through Window's Sharing option on folders. I need to make it so someone can enter credentials to their user name, and access their folder. I'll probably need to use Samba in all of this somehow because we are pretty much running all Windows clients (my Win7 netbook, a Win7 laptop, and an XP desktop). Any ideas? Or am I hosed?
|
# ? Jul 22, 2010 07:25 |
|
Green Puddin posted:Any ideas? Or am I hosed? I haven't done this myself, so that's about as far as I can help you, but there should be some handy guides on the net.
|
# ? Jul 22, 2010 09:13 |
|
Green Puddin posted:I'll end up making an admin account (because, you know, you have to). From there I want to set up three accounts - one for me, two for the other two people. I want to set up specific folders with certain permissions so only those users can use them - basically, it's like if I went through Window's Sharing option on folders. I need to make it so someone can enter credentials to their user name, and access their folder. You should really read up on things a little more. The Linux Documentation Project has good guides. In short: Your administrator account (it's called 'root') is created during install. After you're done installing, you can create as many user accounts as you like. Users can be assigned (on an individual basis) to all sorts of groups with varying permissions. User directories will be created automatically each time you add a new user. Samba can be set up to allow all users to access their respective home directories, and/or you can set up common shares that are accessible by all. Read/write access can be specified too.
|
# ? Jul 22, 2010 09:54 |
|
|
# ? May 20, 2024 22:48 |
|
Keep in mind though, use samba3 if at all possible. I am only mentioning this because I decided to run ubuntu server 10.04 on my file server, and it only lets you "easily" install samba4, and setting up shares/etc are a bigger pain in the rear end with individual settings on each folder due to the fact they haven't integrated a lot of the old ways of doing it in samba3.
|
# ? Jul 22, 2010 12:53 |