[01:48] Hey guys, I've defined a crontab that does `/usr/bin/aptitude -y safe-upgrade`, however, it always fails when run via cron. I can run it on the CLI just fine. When I log it's stdout/stdin to a text file, I see that it hangs on "Writing extended state information..." and never finishes. Is there a fix for this? [01:48] Am I missing something? [01:49] why don't you use the capabilities of the /etc/cron/apt cronjob or just cron-apt? [01:49] never heard of thhose before [01:51] they do essentially the same [01:52] https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo [01:52] Hrm, thanks. I'm looking at that now. [05:32] hi all [05:32] is there a way to find out if my server has ECC memory onboard? [05:33] i'm not physically present at the location of the server and hence i cannot shut it down and look within [06:02] hmm [06:03] freakabcd: sudo dmidecode --type 17 try that [08:03] is it a good idea to set up and enable the root account in my server? [08:04] Hey guys, quick quesintion. I bult a 10.04 server, and after, I added a couple spare drives I had form another box, problem is, I forgot if they are ext3 or ext4, what's a quikx way to determine what they are as I dont want to reformat them before moving the data. [08:10] NVM, I got it, wow, it must be getting late :-) [10:45] philipballew: depends if you're likely to need it [10:45] RoyK, what uses would i have to need it [10:46] philipballew: or if you want to add a little layer of security - anyone with physical access to an ubuntu machine may reboot it into single user mode and without a root password, there'll be no password prompt for that [10:46] however, anyone with physical access may boot the server from a cdrom or usb stick, and there's little to do about that [10:48] block that from bios maybe [10:57] still, anyone with physical access can open the machine and pull out the drive, or reset CMOS and then bypass whatever you added in the BIOS setup [10:57] or even take the machine [10:58] thats true, well im off to bed! thanks for the info to think about [10:58] so, adding a root password to stop people from booting into single will stop newbies/idiots, but it'll never stop the Bad guys so long they're allowed physical access [10:58] if they want it bad enough theyll take it [12:03] * nancy-- things how to build a social networking site like facebook in easy way [12:06] dunno if there's an easy way to do that - perhaps some open framework can help, but I don't know any [12:06] USING WORDPRESS [12:06] buts it gives errors [12:07] wordpress ins't really made for social networking [12:07] should be usable for it, though, given enough tweaks :P [12:08] what are build for that purpose than? [12:09] no idea [12:09] I guess a CMS can do it [12:10] while wordpress is may be called a CMS, it's rather limited [12:10] http://en.wikipedia.org/wiki/List_of_content_management_systems gives a list of what's out there [12:13] hm [12:14] http://techcrunch.com/2007/07/24/9-ways-to-build-your-own-social-network/ [12:15] old article, though [12:25] * nancy-- things how to build a social networking site like facebook in easy way [12:27] I guess google for it [12:50] can i ask a quick question - installed 11.04 on an old armada m300, install went ok, but it boots into black and white garbage?? [12:53] in ftp how to cut a folder and past it inside another folder (i dont want to download and upload it again) ? [12:59] in ftp how to cut a folder and past it inside another folder (i dont want to download and upload it again) ? [13:34] New bug: #826022 in euca2ools (main) "euca-modify-image-attribute usage raises error" [High,Triaged] https://launchpad.net/bugs/826022 [13:34] New bug: #826174 in bacula (main) "package bacula-director-sqlite3 5.0.1-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/826174 [13:35] how to connect a usb wifi ? [15:16] anyone have a good reccomendation for a good "howto" for dovecot/postfix/spamass/clamav/tls/quota? [15:44] jeeves_moss: there's one in the guide [15:44] !guide [15:44] The Ubuntu server guide may be found at http://help.ubuntu.com/10.04/serverguide/C/ [15:44] RoyK, thanks! === mendel__ is now known as mendel_ [16:30] hi [16:30] on a virtual machine, is it better to install ubuntu 64 or 32 ? [16:49] maxagaz_: doesn't matter much, but if you don't need >1GB memory, there's no need for 64bit [16:49] 64bit pointers means 2x space for those, so a wee bit more memory usage [16:50] maxagaz_: >1GB for the guest, that is [18:18] I have a dual nic mobo with ubuntu 11.04 server, I'm attempting to setup internet connection sharing > [18:19] eth1 is the internet connection, eth0 is what the client machine will use to connect to the ubuntu server > [18:19] rtfm'd and implemented several "how to guides" but I'm having trouble [18:20] may I get some assistance? will post info that is required to help figure it out [18:21] the general linux term for it is masquerading [18:22] understood, I attempted some guides using dhcp3 w dnsmasq but couldn't get it working so I'm now trying static ip's on the server and the client machine [18:23] the firewall portion is really simple [18:23] did you set net.ipv4.ip_forward = 1? [18:24] i did per a guide [18:24] cat /proc/sys/net/ipv4/ip_forward to verify [18:25] then you only need two iptables rules [18:26] that responded with "1" via terminal (ssh) [18:26] sudo iptables -t nat -A -o eth1 -j MASQUERADE [18:26] whoops [18:26] sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE [18:27] sudo iptables -A FORWARD -i eth1 -j ACCEPT [18:27] er, in your case [18:27] sudo iptables -A FORWARD -i eth0 -j ACCEPT [18:27] all the instructions are based on eth0 being the internet [18:28] yes it's backwards, the gigabit nic doesnt like crossover cable at all so I'm having to use eth1 as the internet nic [18:28] =\ [18:28] but yeah [18:28] those two rules are all it takes [18:28] other than that it's networking configuration [18:29] that's probably the problem, I've issued these commands before but I went through the process again just now as you directed [18:29] usually something simple [18:29] you can erase anything else that might have gotten in there with sudo iptables -F; sudo iptables -t nat -F [18:30] also, those rules won't be persistent after a reboot, there's plenty of ways of saving them [18:30] up to you which you want [18:30] recommend? [18:31] mine is a bit more complicated due to port forwarding, so I wrote a script and added it to if-up.d [18:32] well my eth1 = static 192.168.0.200 with portfowarding set on the Modem/Router that it is behind [18:32] setting that up was cake [18:32] then what's this for? [18:32] the router should be doing everything you need to just plug the second one in [18:32] ports for apache/ssh/team fortress 2 dedi [18:33] the router/modem is across the house and wireless in this back area is unacceptable [18:33] bridge the interfaces [18:33] way simpler and you'll keep everything on one network [18:33] hmm [18:34] quick query about the client machine.. the nic gateway should be set to the Modem/Router? or the Ubuntu eth1 ip address? [18:35] eth0 btw is set up on a 10.x.x.x ip set [18:35] ubuntu eth0 address [18:35] the gateway is the next router hop, it has to be in a locally reachable subnet [18:36] so if PC 2 is 10.0.0.100 and the routing ubuntu is 10.0.0.1, the gateway on PC 2 is 10.0.0.1 [18:36] just dbl checked, thats what i have [18:36] then routing ubuntu also has 192.168.0.200, and its gateway is the modem/router, 192.168.0.1 [18:36] or whatever it is [18:36] with the dns set for the isp of course [18:37] i had this working with 11.04 desktop [18:37] but i opted for server this time and its been a real headache [18:37] with a bridge though, all that goes away [18:37] you can go back to DHCP [18:38] I'll rtfm on bridging net interfaces on *nix [18:38] but really, you don't even need a masquerade if there's only one computer [18:38] no? [18:38] recommend? [18:38] you could just simply route [18:38] masquerading is to share one IP address, which you don't need to do [18:39] flush the firewall, set to accept all [18:39] long as ip_forward is set to 1 it should just work [18:40] other computers on the network would need a route set though [18:40] to know where 10.x.x.x is [18:40] which is why bridging is better [18:40] thats what I thought as well but something somewhere is holding me back. [18:40] just install bridge-utils, set one up in interfaces [18:41] I have a lan connection on the client to the server, but no internet access [18:41] in that case, it's probably because the modem doesn't know where 10.x.x.x is [18:42] if you can set a route there, that'd be the quickest fix [18:42] otherwise you could static NAT, or go with the bridge [18:49] now my eth0 and eth1 arent auto starting up [18:49] lol [18:50] I love a good challenge and learning experience [18:50] thank you for your patience and time qman [18:50] kudos [18:51] no problem, just passing the time [18:51] well if you are REALLY bored you can ssh into this monster and help me figure this crap out [18:51] pretty sure you just want to have both interfaces come up without addresses, then DHCP (or static) the bridge === RyanP is now known as debbie-abc123 [21:12] for use in a server environment would you recommend an ATX or ATX12v PSU ? [22:38] Installed nginx and php5 php5-fpm the website is working with html not not php the info.php does not show php info. did install apt-get install php5 php5-fpm php-pear php5-common php5-mcrypt php5-mysql php5-cli php5-gd php5-curl php5-imap php5-memcache php-apc restart both nginx and php5-fpm The nginx config files can be found here.. http://pastebin.com/tH4RaYB0 [22:40] bernhard2: is fastcgi server running? Does netstat -ntlp show it? [22:42] yes its running see your pm [22:43] bernhard2: please use a pastebin for that in future.... does fastcgi show the php scripts being passed to it? Do the nginx logs show the php scripts passign to fastcgi? [22:45] bernhard2: stop using the pm. thanks. (you get the benefit of anyone else who might be listening here, rather than just me who has little experience with nginx and fastcgi) [22:46] bernhard2: what do the log files show (please use a pastebin) [22:46] the nginx logfiles say nothing about fastcgi [22:47] ok, well what do they show when you attempt to access a php page? [22:47] and what do the fastcgi log file show? [22:49] NOTICE: reloading: execvp("/usr/sbin/php5-fpm", {"/usr/sbin/php5-fpm", "--fpm-config", "/etc/php5/fpm/php-fpm.conf"}) [22:49] NOTICE: using inherited socket fd=6, "127.0.0.1:9000" [22:50] NOTICE: fpm is running, pid 3453 [22:50] NOTICE: ready to handle connections [22:50] if that's all, then you need to increase the logging for both pieces of software [22:51] fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; [22:51] Where are your scripts located? [22:51] /var/www i asume? [22:51] I think it should be [22:52] fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; [22:52] I do it (with perl) like this [22:52] location ~ ^/otrs/(.*\.pl)(/.*)?$ { [22:52] fastcgi_param SCRIPT_FILENAME /home/tuxis_otrs/otrs/bin/fcgi-bin/$1; [22:53] That also catches the full URI instead of just the filename [22:53] So in your case that would be: [22:54] Hmm [22:54] fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; should do, I guess [22:54] when i try to use info.php then i get page can not be found. the i see this in my log "GET /info.php HTTP/1.1" 404 31 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)" [22:54] bernhard2: Did you change what I said you should change? [22:55] yes my php is in /var/www [22:55] not yet one moment [22:55] fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; [22:56] this should be instead of .. ? [22:56] hi [22:56] bernhard2: Line 100 in your paste [22:56] Hi Manu32 [22:57] I'm having trouble with visudo / running a script as a certain user. I set up the rule in sudoers but every time I try to run the .sh containing an svn update inclusive user it just tries to execute is as root? [22:58] Manu32: That depends on the sudo-command you're using [22:59] this is what's in my sudoer: [22:59] TESTUSER2 ALL=(TESTUSER1) NOPASSWD: /usr/bin/svn [23:00] this is the content of the .sh I run as TESTUSER2: [23:00] sudo svn --username TESTUSER1 --password '12345' update /www/dev/ 2>&1 [23:00] that will run as root, yes [23:01] sudo -u testuser (try to avoid capitals) [23:01] syntax error? let me try [23:02] changed the line and restarted nginx and php5-fpm the line: fastcgi_param SCRIPT_FILENAME /var/www$scripts$fastcgi_script_name; and it works.. great.. :) [23:02] bernhard2: Good [23:04] it didn't change anything unless I need to change the --password attribut too? (haven't used capitals in the real file) [23:04] sudo svn -u TESTUSER1 --password '12345' update /www/dev/ 2>&1 [23:08] when i open a url it does not work when i do not put a / at the and of the path.. for instance http://domain/phpmyadmin does not start index.php but http://domain/phpmyadmin/ does start the index.php can this be fixed to work also without the / at the end ? [23:10] Nope [23:10] http://domain/phpmyadmin calls for a file [23:10] http://domain/phpmyadmin/ calls for a directory [23:11] Manu32: You need to tell sudo as which user the command svn must run [23:11] if you don't define a user with -u, sudo will try to run it as root [23:11] sudo -u [23:12] yes I just figrued the order of my command was mixed up...got it now. Cheers [23:12] np