[01:48] <rdegges> 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] <rdegges> Am I missing something?
[01:49] <alamar> why don't you use the capabilities of the /etc/cron/apt cronjob or just cron-apt?
[01:49] <rdegges> never heard of thhose before
[01:51] <alamar> they do essentially the same
[01:52] <alamar> https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo
[01:52] <rdegges> Hrm, thanks. I'm looking at that now.
[05:32] <freakabcd> hi all
[05:32] <freakabcd> is there a way to find out if my server has ECC memory onboard?
[05:33] <freakabcd> i'm not physically present at the location of the server and hence i cannot shut it down and look within
[06:02] <KM0201> hmm
[06:03] <KM0201> freakabcd: sudo dmidecode --type 17      try that
[08:03] <philipballew> is it a good idea to set up and enable the root account in my server?
[08:04] <ke1ha> 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] <ke1ha> NVM, I got it, wow, it must be getting late :-)
[10:45] <RoyK> philipballew: depends if you're likely to need it
[10:45] <philipballew> RoyK, what uses would i have to need it
[10:46] <RoyK> 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] <RoyK> 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] <philipballew> block that from bios maybe
[10:57] <RoyK> 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] <RoyK> or even take the machine
[10:58] <philipballew> thats true, well im off to bed! thanks for the info to think about
[10:58] <RoyK> 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] <philipballew> 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] <RoyK> dunno if there's an easy way to do that - perhaps some open framework can help, but I don't know any
[12:06] <nancy--> USING WORDPRESS
[12:06] <nancy--> buts it gives errors
[12:07] <RoyK> wordpress ins't really made for social networking
[12:07] <RoyK> should be usable for it, though, given enough tweaks :P
[12:08] <nancy--> what are build for that purpose than?
[12:09] <RoyK> no idea
[12:09] <RoyK> I guess a CMS can do it
[12:10] <RoyK> while wordpress is may be called a CMS, it's rather limited
[12:10] <RoyK> http://en.wikipedia.org/wiki/List_of_content_management_systems gives a list of what's out there
[12:13] <nancy--> hm
[12:14] <RoyK> http://techcrunch.com/2007/07/24/9-ways-to-build-your-own-social-network/
[12:15] <RoyK> old article, though
[12:25]  * nancy-- things how to build a social networking site like facebook in easy way
[12:27] <RoyK> I guess google for it
[12:50] <SSX_1> 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] <nancy--> in ftp how to cut a folder and past it inside another folder (i dont want to download and upload it again) ?
[12:59] <nancy--> in ftp how to cut a folder and past it inside another folder (i dont want to download and upload it again) ?
[13:35] <SSX_1> how to connect a usb wifi ?
[15:16] <jeeves_moss> anyone have a good reccomendation for a good "howto" for dovecot/postfix/spamass/clamav/tls/quota?
[15:44] <RoyK> jeeves_moss: there's one in the guide
[15:44] <RoyK> !guide
[15:44] <jeeves_moss> RoyK, thanks!
[16:30] <maxagaz_> hi
[16:30] <maxagaz_> on a virtual machine, is it better to install ubuntu  64 or 32 ?
[16:49] <RoyK> maxagaz_: doesn't matter much, but if you don't need >1GB memory, there's no need for 64bit
[16:49] <RoyK> 64bit pointers means 2x space for those, so a wee bit more memory usage
[16:50] <RoyK> maxagaz_: >1GB for the guest, that is
[18:18] <droobuntu> I have a dual nic mobo with ubuntu 11.04 server, I'm attempting to setup internet connection sharing >
[18:19] <droobuntu> eth1 is the internet connection, eth0 is what the client machine will use to connect to the ubuntu server >
[18:19] <droobuntu> rtfm'd and implemented several "how to guides" but I'm having trouble
[18:20] <droobuntu> may I get some assistance? will post info that is required to help figure it out
[18:21] <qman__> the general linux term for it is masquerading
[18:22] <droobuntu> 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] <qman__> the firewall portion is really simple
[18:23] <qman__> did you set net.ipv4.ip_forward = 1?
[18:24] <droobuntu> i did per a guide
[18:24] <qman__> cat /proc/sys/net/ipv4/ip_forward to verify
[18:25] <qman__> then you only need two iptables rules
[18:26] <droobuntu> that responded with "1" via terminal (ssh)
[18:26] <qman__> sudo iptables -t nat -A -o eth1 -j MASQUERADE
[18:26] <qman__> whoops
[18:26] <qman__> sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
[18:27] <qman__> sudo iptables -A FORWARD -i eth1 -j ACCEPT
[18:27] <qman__> er, in your case
[18:27] <qman__> sudo iptables -A FORWARD -i eth0 -j ACCEPT
[18:27] <qman__> all the instructions are based on eth0 being the internet
[18:28] <droobuntu> 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] <droobuntu> =\
[18:28] <qman__> but yeah
[18:28] <qman__> those two rules are all it takes
[18:28] <qman__> other than that it's networking configuration
[18:29] <droobuntu> 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] <droobuntu> usually something simple
[18:29] <qman__> you can erase anything else that might have gotten in there with sudo iptables -F; sudo iptables -t nat -F
[18:30] <qman__> also, those rules won't be persistent after a reboot, there's plenty of ways of saving them
[18:30] <qman__> up to you which you want
[18:30] <droobuntu> recommend?
[18:31] <qman__> mine is a bit more complicated due to port forwarding, so I wrote a script and added it to if-up.d
[18:32] <droobuntu> well my eth1 = static 192.168.0.200 with portfowarding set on the Modem/Router that it is behind
[18:32] <droobuntu> setting that up was cake
[18:32] <qman__> then what's this for?
[18:32] <qman__> the router should be doing everything you need to just plug the second one in
[18:32] <droobuntu> ports for apache/ssh/team fortress 2 dedi
[18:33] <droobuntu> the router/modem is across the house and wireless in this back area is unacceptable
[18:33] <qman__> bridge the interfaces
[18:33] <qman__> way simpler and you'll keep everything on one network
[18:33] <droobuntu> hmm
[18:34] <droobuntu> quick query about the client machine.. the nic gateway should be set to the Modem/Router? or the Ubuntu eth1 ip address?
[18:35] <droobuntu> eth0 btw is set up on a 10.x.x.x ip set
[18:35] <qman__> ubuntu eth0 address
[18:35] <qman__> the gateway is the next router hop, it has to be in a locally reachable subnet
[18:36] <qman__> 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] <droobuntu> just dbl checked, thats what i have
[18:36] <qman__> then routing ubuntu also has 192.168.0.200, and its gateway is the modem/router, 192.168.0.1
[18:36] <qman__> or whatever it is
[18:36] <droobuntu> with the dns set for the isp of course
[18:37] <droobuntu> i had this working with 11.04 desktop
[18:37] <droobuntu> but i opted for server this time and its been a real headache
[18:37] <qman__> with a bridge though, all that goes away
[18:37] <qman__> you can go back to DHCP
[18:38] <droobuntu> I'll rtfm on bridging net interfaces on *nix
[18:38] <qman__> but really, you don't even need a masquerade if there's only one computer
[18:38] <droobuntu> no?
[18:38] <droobuntu> recommend?
[18:38] <qman__> you could just simply route
[18:38] <qman__> masquerading is to share one IP address, which you don't need to do
[18:39] <qman__> flush the firewall, set to accept all
[18:39] <qman__> long as ip_forward is set to 1 it should just work
[18:40] <qman__> other computers on the network would need a route set though
[18:40] <qman__> to know where 10.x.x.x is
[18:40] <qman__> which is why bridging is better
[18:40] <droobuntu> thats what I thought as well but something somewhere is holding me back.
[18:40] <qman__> just install bridge-utils, set one up in interfaces
[18:41] <droobuntu> I have a lan connection on the client to the server, but no internet access
[18:41] <qman__> in that case, it's probably because the modem doesn't know where 10.x.x.x is
[18:42] <qman__> if you can set a route there, that'd be the quickest fix
[18:42] <qman__> otherwise you could static NAT, or go with the bridge
[18:49] <droobuntu> now my eth0 and eth1 arent auto starting up
[18:49] <droobuntu> lol
[18:50] <droobuntu> I love a good challenge and learning experience
[18:50] <droobuntu> thank you for your patience and time qman
[18:50] <droobuntu> kudos
[18:51] <qman__> no problem, just passing the time
[18:51] <droobuntu> well if you are REALLY bored you can ssh into this monster and help me figure this crap out
[18:51] <qman__> pretty sure you just want to have both interfaces come up without addresses, then DHCP (or static) the bridge
[21:12] <tenchi21> for use in a server environment would you recommend an ATX or ATX12v PSU ?
[22:38] <bernhard2>  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] <StevenR> bernhard2: is fastcgi server running? Does netstat -ntlp show it?
[22:42] <bernhard2> yes its running see your pm
[22:43] <StevenR> 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] <StevenR> 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] <StevenR> bernhard2: what do the log files show (please use a pastebin)
[22:46] <bernhard2> the nginx logfiles say nothing about fastcgi
[22:47] <StevenR> ok, well what do they show when you attempt to access a php page?
[22:47] <StevenR> and what do the fastcgi log file show?
[22:49] <bernhard2> NOTICE: reloading: execvp("/usr/sbin/php5-fpm", {"/usr/sbin/php5-fpm", "--fpm-config", "/etc/php5/fpm/php-fpm.conf"})
[22:49] <bernhard2> NOTICE: using inherited socket fd=6, "127.0.0.1:9000"
[22:50] <bernhard2> NOTICE: fpm is running, pid 3453
[22:50] <bernhard2> NOTICE: ready to handle connections
[22:50] <StevenR> if that's all, then you need to increase the logging for both pieces of software
[22:51] <Jeeves_> fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
[22:51] <Jeeves_> Where are your scripts located?
[22:51] <Jeeves_>  /var/www i asume?
[22:51] <Jeeves_> I think it should be
[22:52] <Jeeves_> fastcgi_param  SCRIPT_FILENAME  /var/www$fastcgi_script_name;
[22:52] <Jeeves_> I do it (with perl) like this
[22:52] <Jeeves_>   location ~ ^/otrs/(.*\.pl)(/.*)?$ {
[22:52] <Jeeves_>     fastcgi_param SCRIPT_FILENAME   /home/tuxis_otrs/otrs/bin/fcgi-bin/$1;
[22:53] <Jeeves_> That also catches the full URI instead of just the filename
[22:53] <Jeeves_> So in your case that would be:
[22:54] <Jeeves_> Hmm
[22:54] <Jeeves_> fastcgi_param  SCRIPT_FILENAME  /var/www$fastcgi_script_name; should do, I guess
[22:54] <bernhard2> 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] <Jeeves_> bernhard2: Did you change what I said you should change?
[22:55] <bernhard2> yes my php is in /var/www
  not yet one moment
[22:55] <bernhard2>  <Jeeves_>   fastcgi_param  SCRIPT_FILENAME  /var/www$fastcgi_script_name;
 this should be instead of .. ?
[22:56] <Manu32> hi
[22:56] <Jeeves_> bernhard2: Line 100 in your paste
[22:56] <Jeeves_> Hi Manu32
[22:57] <Manu32> 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] <Jeeves_> Manu32: That depends on the sudo-command you're using
[22:59] <Manu32> this is what's in my sudoer:
[22:59] <Manu32> TESTUSER2 ALL=(TESTUSER1) NOPASSWD: /usr/bin/svn
[23:00] <Manu32> this is the content of the .sh I run as TESTUSER2:
[23:00] <Manu32> sudo svn --username TESTUSER1 --password '12345' update /www/dev/ 2>&1
[23:00] <Jeeves_> that will run as root, yes
[23:01] <Jeeves_> sudo -u testuser (try to avoid capitals)
[23:01] <Manu32> syntax error? let me try
 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] <Jeeves_> bernhard2: Good
 it didn't change anything unless I need to change the --password attribut too? (haven't used capitals in the real file)
[23:04] <Manu32> sudo svn -u TESTUSER1 --password '12345' update /www/dev/ 2>&1
 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] <Jeeves_> Nope
[23:10] <Jeeves_> http://domain/phpmyadmin calls for a file
[23:10] <Jeeves_> http://domain/phpmyadmin/ calls for a directory
[23:11] <Jeeves_> Manu32: You need to tell sudo as which user the command svn must run
[23:11] <Jeeves_> if you don't define a user with -u, sudo will try to run it as root
[23:11] <Jeeves_> sudo -u <usertorunas> <command to run>
[23:12] <Manu32> yes I just figrued the order of my command was mixed up...got it now. Cheers
[23:12] <Jeeves_> np