Getting around or through a restrictive firewall.

Asides — Dillon @ 11:14 pm

If you have a SSH account someplace outside of your locked down network, try safe passage.

If you want to try to tunnel everything through port 80, check out gnu httptunnel but your program will have to support something like a proxy.

Gnome-terminal cpu utilization fixed

Unix — Dillon @ 11:20 am

All of a sudden, gnome-terminal on Fedora core 2 was acting really strange. It was slow to open, slow to type, slow to close. Found a bug doc on redhat’s site although it was an older distro.

Eh, it’s worth a shot. Searched for the rpm on rpmfind.net.

Fedora ships with vte-0.11.10-5.1. So I upgraded vte with [root@fedora2 root]# rpm -Uvh [URL from rpmfind.net just like usual. The upgrade completed and immediately afterwards, gnome-terminal opened quickly again. I surprised that I didn’t have to restart X or log out of Gnome etc. Whatever was broken must have not been cached or in memory.

I guess I’m used to network type services like bind where you edit something and restart something and then the something works again. :)

Using sed to manipulate ctd type strings from Solaris

Unix — Dillon @ 1:47 pm

This is a very specific example. I found this tricky because regular expressions in sed isn’t the same as in Perl.

I wanted to take output from the format command in Solaris and just get a list of disks on the system.

I ran format and redirected the output to a file called disks.txt

– file: disks.txt –

0. c0t0d0
/pci@1f,4000/scsi@3/sd@0,0
1. c0t1d0
/pci@1f,4000/scsi@3/sd@1,0
2. c1t32d0
/pci@1f,4000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf8ab02c,0
3. c1t33d0
/pci@1f,4000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfb448ed,0
4. c1t34d0
/pci@1f,4000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf70fd3f,0
5. c1t35d0
/pci@1f,4000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfa6efc4,0

Then I wanted just the ‘ctd’ names of these disks (ie: c1t35d0 being the last one).

– magical sed trick –

cat disks.txt | sed -n 's/\(.*\)\(c[0-9]*t[0-9]*d[0-9]*\)\(.*\)/\2/p'

This should output:

c0t0d0
c0t1d0
c1t32d0
c1t33d0
c1t34d0
c1t35d0

The one thing I can’t figure out is how to run format in a non-interactive way for scripting. It seems you have to resort to using the path_to_inst file. I did something like this in my humble project easylun.

More on samba, winbind on Solaris

Unix — Dillon @ 2:01 pm

Here’s how you can get the samba home directories to be created on the fly:

(more…)

samba, winbind and solaris

Unix — Dillon @ 3:17 pm

This is a repost for formatting

Winbind-Solaris Documentation
Naag Mummaneni getnag at rediffmail.com
Thu May 2 11:10:54 GMT 2002

Next message: Winbind-Solaris Documentation
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

——————————————————————————–

Hi,

I just configured my Solaris box to logon to my Windows 2k Domain after working on it for three days.I am sorry to say that I have found no documentation for setting up Samba-winbind on solaris.And I feel that a Prestigious opensource project like Samba shouldnt be blamed for this.So I modified the documentation that come with samba & prepared this one for “solaris” so that no other administrator will face problems that I did. I hope the Samba group will put this documentation part in the distribution.Please find the attached doc file for the documentation.

Thanks
Naag Mummaneni(getnag at rediffmail.com)
——————————————————–
(more…)

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2012 SQUARISM | powered by WordPress with Barecity