Re: define a default username for logging in
Hi again, Really Thank You for your tricky advice.. it was a Nice one(and seems to be the Only one!).. :) sorry for late reply; it took me a while to become sure i got no other ways that bothering you again.. the suggested way seems to work, but i've got a problem: how can i apply these settings on pts devices?! i mean, how can i disable login on pts devices to continue the rest? do you have any idea?? i tried the same format in /etc/ttys, but it didn't work.. i could not find any tips via googling as well.. so.. :) you know, it's not that important to be able to use all 999 enabled pts devices on my server! i can abound them if there is a file such as /etc/ttys for per pty device configurations.. looking forward to receive your ideas. Thanks in Advance :) takCoder On Sat, Apr 7, 2012 at 12:39 PM, Polytropon free...@edvax.de wrote: On Sat, 7 Apr 2012 12:21:57 +0430, takCoder wrote: Hi All :) i'm trying to find a way to enable a required feature : to set *default username *in my Freebsd 8.2 server.. i mean, i wanna be able to login with just entering My Master Password(no usernames needed.. also prefer it to be per tty), which is *not related to my root account, *but is the password of a user which i have defined as my default user.. is it possible for, e.g. pam_login module (i couldn't find any manuals on such feature yet..), to have such a config or is there any other ways to set such default username for login? It is, but I assume my answer will just be a half of the whole story. The problem will be: no password. But maybe you can find some inspiration and then extend the procedure to fit your needs. 1. Modify /etc/gettytab as follows: default:\ ... localautologin:\ :al=USERNAME:tc=Pc: a|std.110|110-baud:\ ... where USERNAME is the name of the user you want to login as (given by the al= parameter, and inheriting the tc= settings). Make sure the user does exist in the system. 2. Modify /etc/ttys as follows: ttyv0 /usr/libexec/getty localautologin cons25 on secure and maybe change cons25 to cons25l1 (or any other value that might be required). As I said initially, this does _not_ prompt for a password! Maybe /etc/passwd's shell field allows you to add the password protection. If you're logging in remotely, ssh USERNAME@yourserver.qw.er.tzu will only prompt for a password. This idea offers an opportunity to something overcomplicated: Create a user for localautologin that is _not_ your default user name. Make this user login automatically, and into his ~/.login, place the command ssh USERNAME@localhost so right after performing the localautologin, ssh will attempt to connect to localhost _as USERNAME_ and _prompt for_ the password. Terrible, I know. :-) To milden the pain of this approach, you could allow telnet for localhost, i. e. from 127.0.0.1 to 127.0.0.1 _ONLY_ and nothing more, and use telnet instead of ssh in the ~/.login command. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /usr/local/java/jboss5 fails to build
hi, I do not pressure to use the Ports version I just need a working JBOSS5 on FreeBSD, I can download jboss-5.1.0.GA.zip from here http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/ But will it be fully functional on FreeBSD? Regards, vermaden Jason Helfman j...@freebsd.org pisze: On Tue, Apr 17, 2012 at 08:34:55PM +, vermaden thus spake: Hi, I have the same problem as described here: http://freebsd.org/cgi/query-pr.cgi?pr=166986 The package of JBOSS5 is also not available, any suggestions? Any help appreciated. Regards, vermaden I've dealt somewhat with the maven repositories, and this is nothing really that can be prevented in the portstree. Working with the vendor in releasing a distribution file of the maven repository at the time of the release of the code that is required for code to build against is something that can be done to prevent this. I worked with the vendor in doing this for databases/jasperserver. This really is an issue with the remote repository, and needs to be fixed with the owners of that maven code repository. I suggest in working with the vendor to fix the repository, and it would be great if you can convince them to release a snapshot of the maven repository that the code was used to build from for distribution purposes. That way, it will always be build-able. Even if they fix it today, someone could break it soon afterwards. -jgh -- Jason Helfman | FreeBSD Committer j...@freebsd.org | http://people.freebsd.org/~jgh -- ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
mounting ext2fs
Hello, I'm trying to mount an ext2fs in 10-CURRENT with: # fdisk /dev/da0 *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=486 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=486 heads=64 sectors/track=32 (2048 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 131 (0x83),(Linux native) start 235, size 996117 (486 Meg), flag 80 (active) beg: cyl 0/ head 3/ sector 47; end: cyl 988/ head 7/ sector 7 The data for partition 2 is: UNUSED ... # mount -t ext2fs /dev/da0s1 /mnt mount: /dev/da0s1 : Invalid argument # ls -l /dev/da0s1 crw-r- 1 root operator 0x66 18 abr 11:33 /dev/da0s1 # kldload ext2fs kldload: can't load ext2fs: File exists What I'm doing wrong. The filesystem itself is fine in Linux. Thanks matthias -- Matthias Apitz e g...@unixarea.de - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can FreeBSD 9.0-RELEASE mount Ext3 file system ?
Hi, Reference: From: Xavier xavierfreebsdquesti...@gmail.com Date: Sat, 7 Apr 2012 22:25:28 +0200 Message-id: CALe6D=vpy0rk1=-9rvtv46xp8zd4xvzngb1cbwwacdazwtq...@mail.gmail.com Xavier wrote: On Sat, Apr 07, 2012 at 04:15:41PM -0400, ill...@gmail.com wrote: Hi, On 7 April 2012 13:53, Xavier xavierfreebsdquesti...@gmail.com wrote: Hi to all, I have: casa# disktype /dev/da1 --- /dev/da1 Character device, size 3.771 GiB (4048551936 bytes) FreeBSD boot loader (i386 boot2/BTX 1.02 at sector 2) BSD disklabel (at sector 1), 8 partitions Partition c: 2.145 GiB (2302711808 bytes, 4497484 sectors from 0) Type 0 (Unused) DOS/MBR partition map Partition 1: 3.547 GiB (3808272384 bytes, 7438032 sectors from 63) Type 0x83 (Linux) Ext3 file system UUID D1A7E6D6-3A34-4864-B6E8-C4DAA34AD776 (DCE, v4) Last mounted at / Volume size 3.547 GiB (3808272384 bytes, 929754 blocks of 4 KiB) Partition 2: 227.5 MiB (238533120 bytes, 465885 sectors from 7438095) Type 0x05 (Extended) Partition 5: 227.5 MiB (238500864 bytes, 465822 sectors from 7438095+63) Type 0x82 (Linux swap / Solaris) Linux swap, version 2, subversion 1, 4 KiB pages, little-endian Swap size 227.4 MiB (238489600 bytes, 58225 pages of 4 KiB) I'm running from FreeBSD 9.0-RELEASE I try: casa# mount -t ext2fs /dev/da1a /mnt/JetFlash\ Transcend\ 4GB\ 1100/ mount: /dev/da1a : Invalid argument How can I mount it ? mount -t ext2fs /dev/da1s1 /mnt/JetFlash\ Transcend\ 4GB\ 1100/ perhaps? Note---^^ If that still doesn't work, try adding -r in there (as ext2fs might not support r/w in your configuration). casa# mount -t ext2fs /dev/da1s1 /mnt/JetFlash\ Transcend\ 4GB\ 1100/ mount: /dev/da1s1 : No such file or directory casa# casa# mount -r -t ext2fs /dev/da1s1 /mnt/JetFlash\ Transcend\ 4GB\ 1100/ mount: /dev/da1s1 : No such file or directory casa# You have more ideas ? With 9.0-RELEASE generic kernel: man mount ... man 2 nmount The type argument names the file system. The types of file systems known to the system can be obtained with lsvfs(1). lsvfs FilesystemRefs Flags - --- devfs1 synthetic msdosfs 0 nfs 0 network procfs 0 synthetic cd9660 0 read-only ufs 1 cd /boot/kernel ; find . -name \*ext\* -print kldload /boot/kernel/ext2fs.ko ; lsvfs # Adds ext2fs 0 man ext2fs To link into the kernel: options EXT2FS To load as a kernel loadable module: kldload ext2fs No mention of ext3 there, nor from find (above). .. so you May be out of luck .. Divide the problem. Reduce simulltaneous testing of backslash ext3. Delete all backslash junk during test. Try su ; mkdir /mnt/test ; mount -r -t ext2fs /dev/da1a /mnt/test If that likely too fails, then select a list: freebsd...@freebsd.org or freebsd-curr...@freebsd.org + cc code authors on freebsd { see names in base of man ext2fs` look in sources or cvs maybe } Ask them if anyone is known to be working on Ext3 on FreeBSD (or *OtherBSD, as that'd be a good start for a port) If all that fails, insert stick in a Linux box (*), copy data from the ext3 stick, reformat stick as Ext2, write the data back. Ext2 doesnt need the latest FreeBSD-9, at least FreeBSD-8.2 can also handle Ext2. Linux boxes can be found in unexpected places, eg some media devices are built on Linux, (Some some manufacturers are not aware BSD offers more liberal licensing than FSF). Whether such devices can reformat to user selected format I haven't yet had access to try so you might need a real Linux PC to re-format. Examples of media boxes: Iomega ScreenPlay TV Link, Director Edition high definition multimedia player http://go.iomega.com/section?p=4760secid=42740#tech_specsItem_tab External USB Drive Format: NTFS (default), FAT32, Mac OS Extended (HFS+)**, Ext2 or Ext3. (No mention of UFS, so presumably a Linux, I will collect one soon). http://www.humaxfoxsathdr.co.uk/ Foxsat-HDR/500 http://www.humaxdirect.co.uk/product.asp?ProdRef=10087#more-info (Not stated what this supports.) Dreambox 800 http://www.dreambox800.co.uk/Dreambox-800-Satellite-Receiver-pro (Not stated what this supports, but based on Linux) Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above, cumulative like a play script, indent with . Format: Plain text. Not
Re: mounting ext2fs
# kldload ext2fs kldload: can't load ext2fs: File exists what does lsvfs show ? Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above, cumulative like a play script, indent with . Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable. Mail from @yahoo dumped @berklix. http://berklix.org/yahoo/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mounting ext2fs
what does lsvfs show ? Maybe try: dd if=/dev/da0s1 count=20 of=/tmp/t ; file /tmp/t (it show interesting stuff on my /xp anyway ). Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above, cumulative like a play script, indent with . Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable. Mail from @yahoo dumped @berklix. http://berklix.org/yahoo/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mounting ext2fs
what does lsvfs show ? Maybe try: dd if=/dev/da0s1 count=20 of=/tmp/t ; file /tmp/t (it show interesting stuff on my /xp anyway ). kldstat # I guess that shows you have the module linked in too ? or else already compiled in config -x /boot/kernel/kernel | grep ext so a puzzle if all that looks good but still doesnt work. Good luck ! Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above, cumulative like a play script, indent with . Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable. Mail from @yahoo dumped @berklix. http://berklix.org/yahoo/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Can FreeBSD 9.0-RELEASE mount Ext3 file system ?
On Wed, 18 Apr 2012 14:12:41 +0200 Julian H. Stacey wrote: No mention of ext3 there, nor from find (above). .. so you May be out of luck .. ext3 is ext2+journalling. If fsck supports ext3, then it can sync the journal and the partition can be safely mounted as ext2. It's a long time since I've used ext3 so this may have changed, but when I did it needed an fsck from ports. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Keyword Banners - Pay Per Click Alternative
Hi, If you are using Pay Per Click advertising and want to reduce your charges, please review how we can position your website to the top of Google, Yahoo, and other search engines, at a fraction of the cost, with no bidding or cost per click charges! Our unique placement technology will put YOUR website on the top of YAHOO, GOOGLE and BING, Along with many other search engines including CRAIGSLIST, YOUTUBE, ASK and many more. This technology gives you the ultimate advantage over your competitors, and NO PAY PER CLICK. PRIME POSTIONING AT THE TOP OF ALL SEARCH ENGINES Please click on this link and see for yourself if this is a great alternative to pay per click bidding: http://www.keywordsbanners.com/demo.html If you want to see how your website will get on top: - Go to our websites Online Demo - Type your keyword and your website http://www.freebsd.org in online demo form - Click on Go and you'll see result. For a personal demonstration and pricing, either fill out our online quote submission form, or call us today. Best Regards, http://www.keywordsbanners.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Wine-fbsd64 updated to 1.5.2 (32bit Wine for 64bit FreeBSD)
Hi, Packages [1] for wine-fbsd64-1.5.1 have been uploaded to mediafire [2]. The packages for FreeBSD 10 use the pkgng [3] format. There are many reports that wine does not work with a clang compiled world (help in fixing this problem is appreciated as it affects quite a few users). The patch [4] for nVidia users is now included in the package and is run on installation (if the relevant files are accessible). Please read the installation messages for further information. Regards, David [1] MD5 (wine-1.5.x-freebsd8/wine-fbsd64-1.5.2,1.tbz) = b5fb7ac0fb6a5ba01863a3f1502f8c23 MD5 (wine-1.5.x-freebsd9/wine-fbsd64-1.5.2,1.txz) = 592bfb92be8aad9e681070cda89944e9 MD5 (wine-1.5.x-freebsd10/wine-fbsd64-1.5.2,1.txz) = 58ef0cb5c0b090de4e52bde8f78b5252 [2] http://www.mediafire.com/wine_fbsd64 [3] http://wiki.freebsd.org/pkgng [4] The patch is located at /usr/local/share/wine/patch-nvidia.sh signature.asc Description: This is a digitally signed message part.
Re: Can FreeBSD 9.0-RELEASE mount Ext3 file system ?
Hi, Reference: From: RW rwmailli...@googlemail.com Date: Wed, 18 Apr 2012 14:13:19 +0100 Message-id: 20120418141319.7cb8c...@gumby.homeunix.com RW wrote: On Wed, 18 Apr 2012 14:12:41 +0200 Julian H. Stacey wrote: No mention of ext3 there, nor from find (above). .. so you May be out of luck .. ext3 is ext2+journalling. If fsck supports ext3, then it can sync the journal and the partition can be safely mounted as ext2. It's a long time since I've used ext3 so this may have changed, but when I did it needed an fsck from ports. I tried to find that for original poster Xavier (cc restored in case Xavier not on questions@), using cd /pub/FreeBSD/branches/-current/ports echo `find . -type f | xargs grep -i -l fsck` | xargs grep -i -l ext3 got: ./emulators/linux_base-c6/pkg-plist ./emulators/linux_base-f10/pkg-plist ./emulators/linux_base-fc4/pkg-plist ./emulators/linux_dist-gentoo-stage3/pkg-plist.i486 ./emulators/linux_dist-gentoo-stage3/pkg-plist.i686 ./sysutils/e2fsprogs/Makefile COMMENT?= Utilities library to manipulate ext2/3/4 filesystems Xavier, I suggest try /usr/ports/sysutils/e2fsprogs I saw this warning building on 8.2-RELEASE: If you format ext2 file systems with other operating systems, make sure that mke2fs is called with -I 128 for partitions that you plan to share with FreeBSD. (Not tried building it on 9 as I'm rebuilding machine now.) /usr/local/share/doc/e2fsprogs/ COPYING http://e2fsprogs.sourceforge.net Says there it supports ext3 4 too. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above, cumulative like a play script, indent with . Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable. Mail from @yahoo dumped @berklix. http://berklix.org/yahoo/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /usr/local/java/jboss5 fails to build
On Wed, Apr 18, 2012 at 07:42:55AM +, vermaden thus spake: hi, I do not pressure to use the Ports version I just need a working JBOSS5 on FreeBSD, I can download jboss-5.1.0.GA.zip from here http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/ But will it be fully functional on FreeBSD? Regards, vermaden I can't answer if it will be functional or not on FreeBSD until it is successfully installed, however it being in the portstree gives me some indication that it did work at one time. This is a vendor issue though, and I would urge you to contact them regarding their maven repository issue with the error you are receiving. I would be happy to look into this further after they are able to diagnose the issue. Thanks! -jgh -- Jason Helfman | FreeBSD Committer j...@freebsd.org | http://people.freebsd.org/~jgh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org