ttys file question
I have added the following entry to /etc/gettytab file test.std.115200:\ :ep:sp#4800:tc:Pc And also I have changed /etc/ttys file cuau3 /usr/libexec/getty test.std.115200cons25 on secure I expect /dev/cuau3 device to use even parity and 4800 as speed, but when I check the device properties using stty -f /dev/cuau3, only speed changes to 4800 and parity value does not change. Here's the output of stty -f /dev/cuau3 after applying the changes using kill -HUP 1 command. speed 4800 baud; lflags: -icanon -isig -iexten -echo iflags: -icrnl -ixon -ixany -imaxbel -brkint oflags: -opost tab3 cflags: cs8 -parenb ___ 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
Fw: ttys file question
I have added the following entry to /etc/gettytab file test.std.115200:\ :ep:sp#4800:tc:Pc And also I have changed /etc/ttys file cuau3 /usr/libexec/getty test.std.115200 cons25 on secure I expect /dev/cuau3 device to use even parity and 4800 as speed, but when I check the device properties using stty -f /dev/cuau3, only speed changes to 4800 and parity value does not change. Here's the output of stty -f /dev/cuau3 after applying the changes using kill -HUP 1 command. speed 4800 baud; lflags: -icanon -isig -iexten -echo iflags: -icrnl -ixon -ixany -imaxbel -brkint oflags: -opost tab3 cflags: cs8 -parenb ___ 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 ___ 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: ttys file question
But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? In short the tty devices are for outgoing connections, the cua devices are for incoming connections. For more detail see sio(4), after all the detail about multi-port serial cards and their master ports comes a couple of paragraphs describing the devices associated with each serial port in detail. -- Steve O'Hara-Smith st...@sohara.org Thanks. Another question is how can I change the default values of e.g. databits, stopbits and ... for the device? I can set the speed in /etc/ttys. ___ 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
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ 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
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ 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 ___ 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
Fw: ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: #Serial terminlas #The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu6 /usr/libexec/getty std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ 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 ___ 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 ___ 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
ttys file question
Hi list I'm trying to connect to my server via a serial port which is named ttyu6 under FreeBSD. In order to do that, I've decided to change /etc/ttys file like this: ttyu6 std.115200 cons25 on secure But I can not connect to my server with this configuration. But if I change ttyu6 to cuau6, everything works fine! I don't understand the difference, would you please explain the reason for me? Thanks in advance ___ 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
Using snort in inline mode with IPFW
Hi all Have you guys ever tried this combination? Using snort in inline mode and IPFW as daq. I have added the following lines to the default /usr/local/etc/snort/snort.conf file : config daq: ipfw config daq_mode: inline config policy_mode: inline And I use the following script to run snort: #!/bin/sh ipfw -q delete set 10 /dev/null 1/dev/null 2/dev/null ipfw -q delete 401 /dev/null 1/dev/null 2/dev/null ipfw -q delete 402 /dev/null 1/dev/null 2/dev/null ipfw -q delete 403 /dev/null 1/dev/null 2/dev/null ipfw -q add 401 allow all from 224.0.0.0/24 to any /dev/null 1/dev/null 2/dev/null ipfw -q add 402 allow all from any to 224.0.0.0/24 /dev/null 1/dev/null 2/dev/null ipfw -q add 403 allow all from me to me /dev/null 1/dev/null 2/dev/null /bin/snort --daq ipfw --daq-var port=1500 -N -A full -l /var/log/snort/ -c /usr/local/etc/snort/snort.conf /dev/null 1/dev/null 2/dev/null -q ipfw -q add 451 set 10 divert 1500 all from any to any /dev/null 1/dev/null 2/dev/null But it does not drop the packets. Any suggestions or experiences ? Thanks in advance ___ 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
make release fails
Hi I'm trying to make my own release ... # cd /usr/src # make buildkernel KERNCONF=MYKERN # make -j4 buildworld # cd release/ # make release NODOC=YES NOPORTS=YES NOSRC=YES and that's the error while making release: find //usr/obj/usr/src/release/dist/doc -empty -delete find: -delete: //usr/obj/usr/src/release/dist/doc: relative path potentially not safe *** [distributeworld] Error code 1 Stop in /usr/src. *** [distributeworld] Error code 1 Stop in /usr/src. *** [base.txz] Error code 1 Stop in /usr/src/release. *** [release] Error code 1 Stop in /usr/src/release These are contents of /etc/src.conf file : WITHOUT_BLUETOOTH=YES WITHOUT_EXAMPLES=YES WITHOUT_FLOPPY=YES WITHOUT_GAMES=YES WITHOUT_MAN=YES WITHOUT_MAN_UTILS=YES WITHOUT_SHAREDOCS=YES WITHOUT_WIRELESS=YES WITHOUT_WIRELESS_SUPPORT=YES WITHOUT_AT=YES WITHOUT_CALENDAR=YES WITHOUT_INFO=YES WITHOUT_LOCALES=YES WITHOUT_ZFS=YES WITHOUT_BSD_CPIO=YES WITHOUT_CTM=YES WITHOUT_DICT=YES WITHOUT_GDB=YES WITHOUT_GNU=YES WITHOUT_GROFF=YES WITHOUT_HTML=YES WITHOU_INFO=YES WITHOUT_LPR=YES WITHOUT_MAIL=YES WITHOUT_PORTSNAP=YES WITHOUT_QUOTAS=YES WITHOUT_RCS=YES WITHOUT_SYSINSTALL=YES WITHOUT_BIND=YES WITHOUT_BIND_XML=YES WITHOUT_BIND_IDN=YES WITHOUT_BIND_SIGCHASE=YES WITHOUT_BIND_LARGE_FILE=YES WITHOUT_FREEBSD_UPDATE=YES WITHOUT_RESCUE=YES What's wrong with this? Thanks in advance ___ 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
assign IP address to ng interface without destination address
Hi fellas Is it possible to assign IP address to ng interfaces without destination address ? Is it possible to assign the destination address later ? Thanks in advance ... ___ 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
installing a new device driver
Hi all Sorry I ask so much cause I'm a new user to freeBSD :) Hear's the deal. How can I install a new device driver on my OS ? Please explain in details because of the reason I mentioned earlier :) Thanks in advance ... ___ 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: installing a new device driver
This is the output of pciconf -lv : vendor = 'FarSite Communications Limited' device = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)' class = simple comms So what is the next step ? From: Ralf Mardorf ralf.mard...@rocketmail.com To: freebsd-questions@freebsd.org Sent: Wednesday, January 9, 2013 1:55 PM Subject: Re: installing a new device driver On Wed, 2013-01-09 at 02:09 -0800, Jack Mc Lauren wrote: How can I install a new device driver on my OS ? I'm new to FreeBSD myself :). Manually as root run kldload driver_name this is something I already used myself. To load the module automagically at startup, edit /boot/loader.conf driver_name=YES I never used this myself until now. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-modules.html Hth, Ralf ___ 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 ___ 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
keyboard and mouse problem
Hi guys I have a freeBSD 8.2 amd64 on my system and I'm using gnome environment. But after a few seconds my USB keyboard and PS/2 mouse hang up !!! What should I do ? Thanks in advance ... ___ 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
system restart after some seconds
Hi How can I restart my freeBSD after specific seconds ? Thanks in advance ... ___ 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
using iniparser.h
Hi guys Take a look to the code below : #include iostream #include string.h #include iniparser.h #include dictionary.h using namespace std; int main() { dictionary *dict = new dictionary; dirent *dir = new dirent; char *c; dict = iniparser_load(/tmp/test.ini); c = iniparser_getstring(dict,s,w); cin.get(); return 0; } I have this error : ***main.cpp:17: undefined reference to `iniparser_load' ***/main.cpp:18: undefined reference to `iniparser_getstring' any suggestions ? Thanks in advance ... ___ 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
shell script problem
Hi all Please take a look at the script below wich I've wrote : 1- cat /foo/bar.txt | while read $LINE12- do3- cat /foo/bar/foo/bar.txt | while read $LINE24- do 5- if [ $LINE1 = $LINE2 ]; then6- sw=17- echo Current value of sw is : $sw8- break9- fi10- done11- echo Value of sw is : $sw12- if [ $sw = 0 ]; then13- DO SOMETHING14- fi15- sw=016- done You probebly guessed what I want to do. But the problem is that when the value of sw sets to 1 (in the first if statement) and the loop breaks , the value of sw is not '1' anymore in echo Value of sw is : $sw !!! Thanks in advance ... ___ 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
exclude directories from find command
Hi fellas How can I exclude specific directories from my find command ? I want to look for all files in the whole system except for those in e.g /extra directory. I use this command to find all files, but how can I exclude /extra directory ? find / -type f Thanks in advance ... ___ 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
Installing chromium port
Hi guys When I attempt to install chromium port I face this error : === chromium-6.0.472.63 is forbidden: several security vulnerabilities.*** Error code 1 What should I do with this ?? Thanks in advance ___ 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
using AWK
Hi guys How can I read a file which contains a number and assign that number to a variable via awk programming? By the way, I want to use this awk program in a shell script. Thanks in advance ___ 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: using AWK
Hi Jack, HI How can I read a file which contains a number and assign that number to a variable via awk programming? By the way, I want to use this awk program in a shell script. I'm actually not sure what you're asking, exactly -- you want the number to go into an awk variable? Or a shell variable? Yes, I want the number to go into an awk variable. Assuming you want it to go into an awk variable, I would try something like this: getline my_number filename; close filename; That assumes the filename is stored in the variable named filename. It puts the number in the awk variable named my_number. To put that in context, let's say you're getting the filename from $0, and you want to multiply the number by 2 and print it. You might do: filename = $0; getline my_number filename; close filename; print my_number * 2; Or if I completely misinterpreted your question, let me know :-) ~Ben This is what i wrote: #! /bin/sh filename=$0 awk 'getline no filename; print no' But when I run this script sh /awk_no.sh /var/no.txt I have this error : awk: syntax error at source line 1 context is getline no filename; print no awk: bailing out at source line 1 Thank you :) ___ 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
using AWK - Thanks :)
Hi all Thank you so much my friends, Ben Frank Polytropon Devin you helped me so much :) ___ 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
Listen to file changes
Hi all I want to monitor files access and change time. How can I listen to specific file or directory to monitor ? I'm coding with c. Thanks In advance ... ___ 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: ugh. dump / restore problem(s) Cannot find file dump list
From: Polytropon free...@edvax.de To: free...@dreamchaser.org Cc: FreeBSD Mailing List freebsd-questions@freebsd.org Sent: Wednesday, November 14, 2012 12:27 PM Subject: Re: ugh. dump / restore problem(s) Cannot find file dump list On Wed, 14 Nov 2012 01:20:14 -0700, Gary Aitken wrote: mount /dev/ada0p4 /mnt/ssd/var cd /mnt/ssd/var restore -r /usr/backup/dump_var_0_20121113_1920 Cannot find file dump list The last command looks wrong. The restore program requires the dump file to be provided via -f, so # restore -rf /usr/backup/dump_var_0_20121113_1920 should work. You can find an example in man restore. Hi There is no - . This is the correct format : restore rf /path/to/dump/files good luck :) ___ 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
nanobsd boot problem
Hi all I have some problems in the second phase of running a device from a nanobsd image. After copying the image on a flash memory, and after I set the system to boot up from flash memory, I just see a black screen and a blinking cursor ! looks like the boot device ( flash memory ) is not recognized by the system. Here are my debugging information , if they are not enough, tell me please to send you necessary informations : dmesg output : da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: UFD 2.0 Silicon-Power8G PMAP Removable Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 7388MB (15130624 512 byte sectors: 255H 63S/T 941C) according to the last line, I change the NANO_SECTS to 63 and NANO_HEADS to 255. (in nanobsd.sh). ls /dev output : da0s1 da0s1a ad6s1b da0s3 ad6s1d da0s4 according to the first column , I set NANO_DRIVE to da0. (in nanobsd.sh) and here are the contents of the flash memory : ls /mnt .cshrc boot lib rescue usr .profile cfg libexec root var .snap conf media sbin COPYRIGHT dev mnt sys bin etc proc tmp Am I missing something ?? could you please me please ? ___ 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
Access packets directly from NIC
Hello FreeBSD users ! How can i access and check packets directly from NIC ? Regards, Jack ___ 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: Access packets directly from NIC
I believe that easiest way is using tcpdump. Also you should specify what you mean by 'accessing packets': is it the need to view raw packet data, or what? :) Yes, i need to view raw packets and check their protocol, e.g. whether they are ICMP packets or something else ... ___ 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
Access packets directly from NIC
I believe that easiest way is using tcpdump. Also you should specify what you mean by 'accessing packets': is it the need to view raw packet data, or what? :) Yes, i need to view raw packets and check their protocol, e.g. whether they are ICMP packets or something else ... ___ 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 ___ 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
nanobsd configuration
hi i have a problem with nanobsd. there are somethings which don't have WITHOUT knobs, how can i control these directories manually ? how can i add a costume function to nanobsd.sh to do this ?? thanks ... ___ 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: nanobsd configuration
From: Arthur Chance free...@qeng-ho.org To: Jack Mc Lauren jack.mclau...@yahoo.com Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Tuesday, October 23, 2012 2:54 PM Subject: Re: nanobsd configuration On 10/23/12 09:28, Jack Mc Lauren wrote: hi i have a problem with nanobsd. there are somethings which don't have WITHOUT knobs, how can i control these directories manually ? how can i add a costume function to nanobsd.sh to do this ?? How about something along the lines of cust_clean () { rm -rf ${NANO_WORLDIR}/path/to/unwanted } customize_cmd cust_clean in your nanobsd config file? === thanks you mean after building image, this function remove unwanted from WORLDDIR ? i suppose this will not effect the image, because the image had been built before removing unwanted directories ... did i get your point correctly ? ___ 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