[SLUG] howto multi-hop ssh tunnel?
Anyone know the syntax/method for setting up a multi-hop ssh tunnel? What I mean by multi-hop is a tunnel from localhost via machineX via machineY out to the internet. I'm familiar with doing single-hop ssh tunnels using "ssh -fN -L localport:localhost:remoteport [EMAIL PROTECTED]" (or "ssh -fN -L localport:remote-host:remoteport [EMAIL PROTECTED]", or multi-hop insecure tunnels by adding in "-o GateWayPorts=yes"). I could manually setup a tunnel from localhost to machineX to machineY, then machineY to the internet, but that seems naff... Thanks for any pointers :-) -- Sonia Hamilton -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] tidy/lint for Apache httpd.conf?
On Wed, Oct 31, 2007 at 02:51:24PM +1100, Sonia Hamilton wrote: > Anyone seen a 'tidy/lint' like program similar to tidy [1] for cleaning > up/indenting Apache httpd.conf files? Try opening it in emacs apache mode (if it doesn't already, type M-x apache-mode) then indent all lines with M-C-\ -i -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] tidy/lint for Apache httpd.conf?
Anyone seen a 'tidy/lint' like program similar to tidy [1] for cleaning up/indenting Apache httpd.conf files? I'm dealing with an uncommented 4000 line file that's a bit messy... [1] http://tidy.sourceforge.net/ -- Sonia Hamilton -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Re: SLUG] can not resolve own domain SERVFAIL
On Wed, 31 Oct 2007 09:51:35 +0900, "jam" <[EMAIL PROTECTED]> said: > On Wed, 2007-10-31 at 10:04 +1100, [EMAIL PROTECTED] wrote: > If you are behind an ADSL router with a network of machines and virtual > hosts at play you will need your own dns and views or the magic on EVERY > machine in your network. If it's a small network you may want to check out dnsmasq [1] - easier than setting up bind/dhcpd. [1] http://www.thekelleys.org.uk/dnsmasq/doc.html -- Sonia Hamilton -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] How to provide multiple remote desktops on CentOS 5?
On Wed, Oct 31, 2007 at 12:03:10PM +1100, Amos Shapira wrote: > Cool! Looks like just what I was after. > > Now has anyone got around to make such a thing work with NX? I get the > impression that NX is a bit more secure and has better compression/protocol. It's certainly faster, that's for sure. I know FC6 has a package called 'freenx' which you can install via yum, which pretty much sets everything up for you. You then download the free NX client for whatever platform you're on from the NX website and you're in business. R > Thanks, > > --Amos > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] How to provide multiple remote desktops on CentOS 5?
On 31/10/2007, Ryan Verner <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 31, 2007 at 12:03:10PM +1100, Amos Shapira wrote: > > Cool! Looks like just what I was after. > > > > Now has anyone got around to make such a thing work with NX? I get the > > impression that NX is a bit more secure and has better > compression/protocol. > > It's certainly faster, that's for sure. I know FC6 has a package called > 'freenx' which you can install via yum, which pretty much sets > everything up for you. You then download the free NX client for > whatever platform you're on from the NX website and you're in business. I already installed NX server on the CentOS server and found some Debian packages for the NX client for my desktop, and am trying to dig through the documentation on how to actually get it to run. But my question was about creating per-user session on-the-fly as Jeff describes in the link you sent - is such a trick necessary for NX or does NX take care of this already as it comes? Thanks, --Amos -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] How to provide multiple remote desktops on CentOS 5?
On 31/10/2007, Martin Visser <[EMAIL PROTECTED]> wrote: > > Amos, > > I have used the vnc server and inetd like this in the past with good > success. jdub posted about this as well some time ago. > > http://lists.slug.org.au/archives/slug/2001/August/msg00730.html > > it may need some tweaking as inetd is deprecated, and has been > replaced by xinetd. Cool! Looks like just what I was after. Now has anyone got around to make such a thing work with NX? I get the impression that NX is a bit more secure and has better compression/protocol. Thanks, --Amos -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: SLUG] can not resolve own domain SERVFAIL
On Wed, 2007-10-31 at 10:04 +1100, [EMAIL PROTECTED] wrote: > I'm trying to setup a Centos 4 system, just noticed I can not > resolve my > own hostname, though, can resolve 'external' names > > # host www.sbt.net.au > Host www.sbt.net.au not found: 2(SERVFAIL) > # host www.slug.org.au > www.slug.org.au is an alias for rusty.slug.org.au. > rusty.slug.org.au has address 202.177.212.193 > > # cat /etc/resolv.conf > search sbt.net.au > nameserver 127.0.0.1 > nameserver 203.42.34.53 > nameserver 203.28.234.5 > > # cat /etc/hosts > # Do not remove the following line, or various programs > # that require network functionality will fail. > 127.0.0.1 bilby.sbt.net.au localhost > localhost.localdomain Seems pretty straight forward: you've told it 127.0.0.1 is sbt.net.au and without doubt nsswitch tells it order is files ... dns Do your self a favour: 127.0.0.1 is localhost.localdomain localhost and nothing else. Put the local IP and name in /etc/hosts eg say you want to access www.sbt.net.au as 192.168.0.10 tell it in /etc/hosts. If you are behind an ADSL router with a network of machines and virtual hosts at play you will need your own dns and views or the magic on EVERY machine in your network. James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] How to provide multiple remote desktops on CentOS 5?
Amos, I have used the vnc server and inetd like this in the past with good success. jdub posted about this as well some time ago. http://lists.slug.org.au/archives/slug/2001/August/msg00730.html it may need some tweaking as inetd is deprecated, and has been replaced by xinetd. Regards, Martin Martin Visser On 10/31/07, Amos Shapira <[EMAIL PROTECTED]> wrote: > Hello, > > I've setup a CentOS 5 headless server for our developers. I'd like to > provide each one of them with their own desktop. > > Back in the olden days it would have been done using XDMCP and having an X > server on the desktop, but today with Windows desktops, moving between > laptops and desktops, and at least one of the developers working regularly > from home over and ADSL line and VPN, the recommendation I get is to use NX > or VNC. > > Is there a standard practice to provide each of our developers a way to open > up their own X11 desktop in a convenient way? > > Right now the only way I can think off is to run multiple x-VNC desktops and > allocate each one of them to a separate user, but I'm still groping my way > through the NX stuff. > > Thanks, > > --Amos > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] How to provide multiple remote desktops on CentOS 5?
Hello, I've setup a CentOS 5 headless server for our developers. I'd like to provide each one of them with their own desktop. Back in the olden days it would have been done using XDMCP and having an X server on the desktop, but today with Windows desktops, moving between laptops and desktops, and at least one of the developers working regularly from home over and ADSL line and VPN, the recommendation I get is to use NX or VNC. Is there a standard practice to provide each of our developers a way to open up their own X11 desktop in a convenient way? Right now the only way I can think off is to run multiple x-VNC desktops and allocate each one of them to a separate user, but I'm still groping my way through the NX stuff. Thanks, --Amos -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] IDE drives changing from /dev/hdx to /dev/sdx (on Ubuntu)
Hi, Can anyone lucidly explain the whys and hows of this change? Is this a SCSI emulation thing or what? I know that Ubuntu 7.04 introduced this, which became a problem and broke a lot of people's /etc/fstab. If you were lucky enough to have drives referenced by their UUID, you were safe. A server that we installed with 7.04 though came up with the hd as /dev/hda. When we did the 7.10 gutsy upgrade though it became /dev/sda (luckily the UUID was the reference, though the upgrade doesn't change the comments written in /etc/fstab. Anyway under 7.04 I had used hdparm to force on DMA as well as set the udma level from 2 to 4 - to optimise disk I/O performance. However hdparm now under 7.10 seems not to want to talk to /dev/sda properly. I get the following result that used to work [EMAIL PROTECTED]:~$ sudo hdparm -d1 /dev/sda /dev/sda: setting using_dma to 1 (on) HDIO_SET_DMA failed: Inappropriate ioctl for device [EMAIL PROTECTED]:~$ sudo hdparm -X udma4 /dev/sda /dev/sda: setting xfermode to 68 (UltraDMA mode4) SG_IO: bad/missing ATA_16 sense data:: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 HDIO_DRIVE_CMD(setxfermode) failed: Input/output error The problem is that I notice that I get a heck of a lot of CPU WAIT time happening when doing I/O to the disk, presumably because DMA isn't working. (BTW I looked at "sdparm" but it seems to be a totally different animal) I have added a comment to https://bugs.launchpad.net/bugs/96693. It seems that there is no definitive technical description of this migration. I sort of wonder how thoroughly it has been thought through or tested. Anyone here care to comment? Regards, Martin Martin Visser -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] howto record a Windoze media stream directly to mp3/ogg?
On Tue, 30 Oct 2007 21:13:35 +1100, "David P" <[EMAIL PROTECTED]> said: > On 10/30/07, Sonia Hamilton wrote: > > The machine I'm working on is short of space - anyone know of a way > > (using mplayer or another tool) to record a Windoze media stream > > directly to mp3/ogg, rather than creating a large intermediate raw file > > and then converting to mp3/ogg? > > Easy, mencoder, which comes in the mplayer package. It has exactly the > same syntax as mplayer, just that you won't need the -vc, -vo, and -ao > options in mencoder; instead just specify "-o thefile.mp3" and "-oac > toolame" (I personally use mp3lame, but seeing that you used toolame > yourself :P) The -novideo option is probably useful as well. Just > check out the mplayer/mencoder man page, it has everything. Thanks for you replies (Alex, Patrick and David)! Using mencoder like this sounds the best way to go. Re the manpage yes I've read it, but in the spirit of "manpages considered harmful" been overwhelmed by it. mplayer/mencoder is obviously the swiss army light saber of audio/video manipulation, but working out how to use it is another matter... :-) -- Sonia Hamilton -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] can not resolve own domain SERVFAIL
On 30/10/2007 10:53 PM, Voytek Eymont wrote: I'm trying to setup a Centos 4 system, just noticed I can not resolve my own hostname, though, can resolve 'external' names # host www.sbt.net.au Host www.sbt.net.au not found: 2(SERVFAIL) # host www.slug.org.au www.slug.org.au is an alias for rusty.slug.org.au. rusty.slug.org.au has address 202.177.212.193 # cat /etc/resolv.conf search sbt.net.au nameserver 127.0.0.1 nameserver 203.42.34.53 nameserver 203.28.234.5 # cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 bilby.sbt.net.au localhost localhost.localdomain I suspect that you may have to take the machine name out of the "localhost" line and give it it's own line in /etc/hosts with it's "real" ip address. HTH Nigel. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] can not resolve own domain SERVFAIL
I'm trying to setup a Centos 4 system, just noticed I can not resolve my own hostname, though, can resolve 'external' names # host www.sbt.net.au Host www.sbt.net.au not found: 2(SERVFAIL) # host www.slug.org.au www.slug.org.au is an alias for rusty.slug.org.au. rusty.slug.org.au has address 202.177.212.193 # cat /etc/resolv.conf search sbt.net.au nameserver 127.0.0.1 nameserver 203.42.34.53 nameserver 203.28.234.5 # cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 bilby.sbt.net.au localhost localhost.localdomain -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: howto record a Windoze media stream directly to mp3/ogg?
Hi Sonia, I had a quick look at: http://www.linux.com/feature/119987 does this help at all? Regards, Patrick [SLUG] howto record a Windoze media stream directly to mp3/ogg? "Sonia Hamilton" <[EMAIL PROTECTED]> Tue, 30 Oct 2007 10:58:51 +1100 I'm using mplayer to record a Windoze media stream, then converting the file to mp3: % mplayer -cache 512 -vc null -vo null -ao pcm:file=${outfile} http://1.2.3.4:8080 % toolame -m s "$i" "$newname" The machine I'm working on is short of space - anyone know of a way (using mplayer or another tool) to record a Windoze media stream directly to mp3/ogg, rather than creating a large intermediate raw file and then converting to mp3/ogg? I've tried searching, but my google-foo is barred today... -- Registered Linux User 368634 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] howto record a Windoze media stream directly to mp3/ogg?
On 10/30/07, Sonia Hamilton wrote: > I'm using mplayer to record a Windoze media stream, then converting the > file to mp3: > > % mplayer -cache 512 -vc null -vo null -ao pcm:file=${outfile} > http://1.2.3.4:8080 > % toolame -m s "$i" "$newname" > > The machine I'm working on is short of space - anyone know of a way > (using mplayer or another tool) to record a Windoze media stream > directly to mp3/ogg, rather than creating a large intermediate raw file > and then converting to mp3/ogg? Easy, mencoder, which comes in the mplayer package. It has exactly the same syntax as mplayer, just that you won't need the -vc, -vo, and -ao options in mencoder; instead just specify "-o thefile.mp3" and "-oac toolame" (I personally use mp3lame, but seeing that you used toolame yourself :P) The -novideo option is probably useful as well. Just check out the mplayer/mencoder man page, it has everything. David -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html