Re: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On Sat, 7 Aug 2010 19:33:58 -0500, Antonio Olivares olivares14...@gmail.com wrote: Polytropon, So if I delete the file /etc/rc.local and make a file ~/.login, make it executable (chmod +x ~/.login), and add the line [ -f /tmp/.X0-lock ] startx in that file and I will have the same result but without loggin in as root? Correct. The user specified by the autologin directive will be the user who runs the startx command, so no need for using su. Here's an example from a working FreeBSD 5 system: /etc/ttys: ttyv0 /usr/libexec/getty autologin cons25l1 on secure Intead of Pc, the profile to be used is named autologin. /etc/gettytab: autologin:\ :al=praxis:tc=Pc: The name praxis is the user's account name for the user to be logged in automatically. All capabilities defined in Pc will also be incorporated. /home/praxis/.login: mesg y [ ! -f /tmp/.X0-lock ] startx This makes sure the same username can be used for an SSH login (and it WON'T try to start another X then), or it can be used to log in via text mode console. When X is shut down, the user will be dropped to the text mode CLI. If you don't want to do that, add logout as the next line in ~/.login, or enclose the whole startx line in a loop. But this can lead to problems when X is not working properly. -- 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 8/8/10, Polytropon free...@edvax.de wrote: On Sat, 7 Aug 2010 19:33:58 -0500, Antonio Olivares olivares14...@gmail.com wrote: Polytropon, So if I delete the file /etc/rc.local and make a file ~/.login, make it executable (chmod +x ~/.login), and add the line [ -f /tmp/.X0-lock ] startx in that file and I will have the same result but without loggin in as root? Correct. The user specified by the autologin directive will be the user who runs the startx command, so no need for using su. Here's an example from a working FreeBSD 5 system: /etc/ttys: ttyv0 /usr/libexec/getty autologin cons25l1 on secure Intead of Pc, the profile to be used is named autologin. /etc/gettytab: autologin:\ :al=praxis:tc=Pc: The name praxis is the user's account name for the user to be logged in automatically. All capabilities defined in Pc will also be incorporated. /home/praxis/.login: mesg y [ ! -f /tmp/.X0-lock ] startx This makes sure the same username can be used for an SSH login (and it WON'T try to start another X then), or it can be used to log in via text mode console. When X is shut down, the user will be dropped to the text mode CLI. If you don't want to do that, add logout as the next line in ~/.login, or enclose the whole startx line in a loop. But this can lead to problems when X is not working properly. -- Polytropon et all, I apologize, but the change to put the code: [! -f /tmp/.X0-lock ] startx my home directory /home/olivares/.login apparently does not work, why I see pam errors: Aug 8 08:07:32 myhostname login: pam_authenticate(): conversation failure login: in_prompt_echo_off(): tcgetattr(): Device not configured error repeats itself. I want to use your solution, since the one with rc.local, the mouse takes a while to respond :( Thanks for helping me fix this. Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On Sun, 8 Aug 2010 09:12:51 -0500, Antonio Olivares olivares14...@gmail.com wrote: I apologize, but the change to put the code: [! -f /tmp/.X0-lock ] startx Oh good, added the missing !in the condition. Maybe I should have written the code more clearly in the first place: if [ ! -f /tmp/.X0-lock ]; then /usr/local/bin/startx fi my home directory /home/olivares/.login apparently does not work, why I see pam errors: Aug 8 08:07:32 myhostname login: pam_authenticate(): conversation failure login: in_prompt_echo_off(): tcgetattr(): Device not configured It's great to use FreeBSD - man tcgetattr tells us that this function is used to retrieve terminal capability data. In my opinion, this indicates that there's something wrong with the format or content of /etc/gettytab. Checking this on my side reveals something strange: I have put the profile name autologin as shown in my working (!) example right after the default entry in /etc/gettytab; the fixed speed entries then follow. Then, later on, near the file's end, there's another entry with the same name. Strange... but works! I would only guess a gettytab issue... -- 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 8/8/10, Polytropon free...@edvax.de wrote: On Sun, 8 Aug 2010 09:12:51 -0500, Antonio Olivares olivares14...@gmail.com wrote: I apologize, but the change to put the code: [! -f /tmp/.X0-lock ] startx Oh good, added the missing !in the condition. Maybe I should have written the code more clearly in the first place: if [ ! -f /tmp/.X0-lock ]; then /usr/local/bin/startx fi my home directory /home/olivares/.login apparently does not work, why I see pam errors: Aug 8 08:07:32 myhostname login: pam_authenticate(): conversation failure login: in_prompt_echo_off(): tcgetattr(): Device not configured It's great to use FreeBSD - man tcgetattr tells us that this function is used to retrieve terminal capability data. In my opinion, this indicates that there's something wrong with the format or content of /etc/gettytab. Checking this on my side reveals something strange: I have put the profile name autologin as shown in my working (!) example right after the default entry in /etc/gettytab; the fixed speed entries then follow. Then, later on, near the file's end, there's another entry with the same name. Strange... but works! I would only guess a gettytab issue... -- Polytropon, I have it almost working. The pam errors are not there anymore, but the machine stays at the Password: prompt. But above it there is a line that says: 554 5.3.0 host localhost unknown Aug 8 09:02:49 grullahighschool sm-mta[1090]: NOQUEUE: SYSERR(root): host localhost unknown Starting cron. .. I had to add a localhost name and I added grullahighschool since I am going to work there and I am getting this machine prepared for work. Otherwise, I would see the error message when starting xfce: Could not load up Internet address for . This will prevent XFce from operating correctly, It may be possible to correct the problem by adding to the file /etc/hosts on your system when it had no hostname :(, I can go back to the /etc/rc.local solution, but would prefer to get this one working, the other has an advantage that once I log out, I can shutdown immediately, but this does not matter much. Thanks for your help and advice. And for others that might wonder, I did my a bit of searches, here's some to prove my point http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/042040.html http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/042074.html Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On Sun, 8 Aug 2010 10:11:23 -0500, Antonio Olivares olivares14...@gmail.com wrote: Polytropon, I have it almost working. The pam errors are not there anymore, but the machine stays at the Password: prompt. That's strange. The user praxis in my working example has a password set, and the user will be asked for it when logging in interactively (e. g. on text mode console or via SSH); it WON'T ask for a password in the autologin setting. Meanwhile, I've changed the profile name autologin because of its double presence. It's now praxis (as the user's name) and still works, so this doesn't seem to be a problem. By the way, what's the $SHELL of the user you use for autologin? Maybe that's the reason - ~/.login belongs to the C shell, the default dialog shell, but if you use bash, for example, a different file is needed, MAYBE. I'm not a bash expert on this, as I'm using the C shell as primary dialog shell properly. :-) But above it there is a line that says: 554 5.3.0 host localhost unknown Aug 8 09:02:49 grullahighschool sm-mta[1090]: NOQUEUE: SYSERR(root): host localhost unknown Starting cron. .. I had to add a localhost name and I added grullahighschool since I am going to work there and I am getting this machine prepared for work. This again is a message from the system's MTA. Such messages are often related to missing data in /etc/hosts. Check your settings there, and just for fun check /etc/mail's scripts (e. g. make all install). Otherwise, I would see the error message when starting xfce: Could not load up Internet address for . For empty string - something seems to be missing. This will prevent XFce from operating correctly, It may be possible to correct the problem by adding to the file /etc/hosts on your system As I did guess. :-) Make sure the setting, for example, hostname=something.local is in /etc/rc.conf and has a CORRESPONDING entry in /etc/hosts. when it had no hostname :(, I can go back to the /etc/rc.local solution, but would prefer to get this one working, the other has an advantage that once I log out, I can shutdown immediately, but this does not matter much. You can do this using the user's ~/.logout to contain shutdown -p now, but that might be bad if X crashes. :-) Still, Xfce offers a menu entry to perform a shutdown. -- 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
Polytropon, On 8/8/10, Polytropon free...@edvax.de wrote: On Sun, 8 Aug 2010 10:11:23 -0500, Antonio Olivares olivares14...@gmail.com wrote: Polytropon, I have it almost working. The pam errors are not there anymore, but the machine stays at the Password: prompt. That's strange. The user praxis in my working example has a password set, and the user will be asked for it when logging in interactively (e. g. on text mode console or via SSH); it WON'T ask for a password in the autologin setting. Meanwhile, I've changed the profile name autologin because of its double presence. It's now praxis (as the user's name) and still works, so this doesn't seem to be a problem. By the way, what's the $SHELL of the user you use for autologin? Maybe that's the reason - ~/.login belongs to the C shell, the default dialog shell, but if you use bash, for example, a different file is needed, MAYBE. I'm not a bash expert on this, as I'm using the C shell as primary dialog shell properly. :-) This is it I guess. I chose bash shell and the default schell is the csh. There is a file called .login in my home directory /home/olivares/.login which has: $ $FreeBSD: src/share/skel/dot.login,v 1.17.2.1.5.1 2010/06/14 02:09:06 kensmith Exp % # # .login - csh login script, read by login shell after '.cshrc' at login. # # see also csh(1), environ(7), # if (-x /usr/games/fortune ) /usr/games/fortune freebsd-tips if [! -f /tmp/.X0-lock ]; then /usr/local/bin/startx fi and it clearly says that is for 'csh login', so I would need something else? But above it there is a line that says: 554 5.3.0 host localhost unknown Aug 8 09:02:49 grullahighschool sm-mta[1090]: NOQUEUE: SYSERR(root): host localhost unknown Starting cron. .. I had to add a localhost name and I added grullahighschool since I am going to work there and I am getting this machine prepared for work. This again is a message from the system's MTA. Such messages are often related to missing data in /etc/hosts. Check your settings there, and just for fun check /etc/mail's scripts (e. g. make all install). Otherwise, I would see the error message when starting xfce: Could not load up Internet address for . For empty string - something seems to be missing. This will prevent XFce from operating correctly, It may be possible to correct the problem by adding to the file /etc/hosts on your system As I did guess. :-) Make sure the setting, for example, hostname=something.local I have hostname=grullahighschool in /etc/rc.conf file and I have included it in /etc/hosts also is in /etc/rc.conf and has a CORRESPONDING entry in /etc/hosts. when it had no hostname :(, I can go back to the /etc/rc.local solution, but would prefer to get this one working, the other has an advantage that once I log out, I can shutdown immediately, but this does not matter much. You can do this using the user's ~/.logout to contain shutdown -p now, but that might be bad if X crashes. :-) Still, Xfce offers a menu entry to perform a shutdown. -- Thanks for your help and advice. Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On Sun, 8 Aug 2010 10:33:30 -0500, Antonio Olivares olivares14...@gmail.com wrote: This is it I guess. I chose bash shell and the default schell is the csh. There is a file called .login in my home directory /home/olivares/.login which has: $ $FreeBSD: src/share/skel/dot.login,v 1.17.2.1.5.1 2010/06/14 02:09:06 kensmith Exp % # # .login - csh login script, read by login shell after '.cshrc' at login. # # see also csh(1), environ(7), # if (-x /usr/games/fortune ) /usr/games/fortune freebsd-tips if [! -f /tmp/.X0-lock ]; then /usr/local/bin/startx fi and it clearly says that is for 'csh login', so I would need something else? Yes. According to man bash, section INVOCATION, mentiones other file names: Bash reads and executes ~/.bash_profile, ~/.bash_login, and ~/.profile (in that order), so you can add the line [ ! -f /tmp/.X0-lock ] startx (short form is completely okay and valid) at the end of ~/.bash_login - or also .profile, but it makes more sense in putting it into something related to login rather than a profile, but that's debatable semantics. :-) The line [ ! -f /tmp/.X0-lock ] startx is correct C shell, sh (Bourne) and bash syntax. I have hostname=grullahighschool in /etc/rc.conf file Did you add a domain name (.local or .lan are okay)? Something like 127.0.0.1 localhost 127.0.0.1 grullahighschool.local grullahighschool 127.0.0.1 grullahighschool.local. should work if hostname=grullahighschool.local is given. Don't forget to assign an IP for localhost, too (can be the same). See man host for details. -- 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
Polytropon, Yes. According to man bash, section INVOCATION, mentiones other file names: Bash reads and executes ~/.bash_profile, ~/.bash_login, and ~/.profile (in that order), so you can add the line [ ! -f /tmp/.X0-lock ] startx (short form is completely okay and valid) at the end of ~/.bash_login - or also .profile, but it makes more sense in putting it into something related to login rather than a profile, but that's debatable semantics. :-) The line [ ! -f /tmp/.X0-lock ] startx is correct C shell, sh (Bourne) and bash syntax. It does not work. When I try to login I see: -bash: [ !: command not found I switch it to if statement suggested before for .login, but it returns same error. 127.0.0.1 localhost 127.0.0.1 grullahighschool.local grullahighschool 127.0.0.1 grullahighschool.local. should work if hostname=grullahighschool.local is given. Don't forget to assign an IP for localhost, too (can be the same). See man host for details. will change the /etc/hosts file to ::1 grullalhighschool.rgccisd.org grullahighschool 127.0.0.1 grullahighschool.rgccisd.org grullahighschool 127.0.0.1 localhost and see if I don't see the error. -- Thank you very much for your help and advice. Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On Sun, 8 Aug 2010 11:14:12 -0500, Antonio Olivares olivares14...@gmail.com wrote: It does not work. When I try to login I see: -bash: [ !: command not found I switch it to if statement suggested before for .login, but it returns same error. Very strange; I've checked that in bash's dialog mode, and it seems to work properly. If it really doesn't work, you can use the test program instead of [. if test ! -f /tmp/.X0-lock; then /usr/local/bin/startx fi I've checked this in bash's dialog mode, it works. -- 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 8/8/10, Polytropon free...@edvax.de wrote: On Sun, 8 Aug 2010 11:14:12 -0500, Antonio Olivares olivares14...@gmail.com wrote: It does not work. When I try to login I see: -bash: [ !: command not found I switch it to if statement suggested before for .login, but it returns same error. Very strange; I've checked that in bash's dialog mode, and it seems to work properly. If it really doesn't work, you can use the test program instead of [. if test ! -f /tmp/.X0-lock; then /usr/local/bin/startx fi I've checked this in bash's dialog mode, it works. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... Have changed it, now when I start machine I am logged in as root grullahighschool# I wonder what I did /etc/gettytab ttyv0 /usr/libexec/getty autologin cons25 on secure /etc/ttys autologin:\ :al=olivares:ht:np:sp#115200: Might it be that there were two lines in /etc/gettytab ttyv0 /usr/libexec/getty Pc cons25 on secure and ttyv0 /usr/libexec/getty autologin cons25 on secure and I removed the top one with Pc and left the one below? Thank you for your help/advice, I am almost there. Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 8/8/10, Antonio Olivares olivares14...@gmail.com wrote: On 8/8/10, Polytropon free...@edvax.de wrote: On Sun, 8 Aug 2010 11:14:12 -0500, Antonio Olivares olivares14...@gmail.com wrote: It does not work. When I try to login I see: -bash: [ !: command not found I switch it to if statement suggested before for .login, but it returns same error. Very strange; I've checked that in bash's dialog mode, and it seems to work properly. If it really doesn't work, you can use the test program instead of [. if test ! -f /tmp/.X0-lock; then /usr/local/bin/startx fi I've checked this in bash's dialog mode, it works. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... Have changed it, now when I start machine I am logged in as root grullahighschool# I wonder what I did /etc/gettytab ttyv0 /usr/libexec/getty autologin cons25 on secure /etc/ttys autologin:\ :al=olivares:ht:np:sp#115200: Might it be that there were two lines in /etc/gettytab ttyv0 /usr/libexec/getty Pc cons25 on secure and ttyv0 /usr/libexec/getty autologin cons25 on secure and I removed the top one with Pc and left the one below? Thank you for your help/advice, I am almost there. Regards, Antonio Update: I modified the top line to contain : ttyv0 /usr/libexec/getty Pc cons25 on secure and at the very end added one with ttyv0 /usr/libexec/getty autologin cons25 on secure and sadlyI get Aug 8 12:07:58 grullahighschool init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs Then I get login prompt :( again. What could be going wrong ? Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On Sun, 8 Aug 2010 13:02:48 -0500, Antonio Olivares olivares14...@gmail.com wrote: Have changed it, now when I start machine I am logged in as root grullahighschool# I wonder what I did So that's REALLY strange... /etc/gettytab ttyv0 /usr/libexec/getty autologin cons25 on secure Change autologin to something else; near the file's end there is already such a name - just to avoid interferences. Make sure you have /etc/gettytab in the following format (tested, and working): # File header # ... default:\ :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\ :if=/etc/issue: autologin:\ :al=olivares:tc=Pc: # # Fixed speed entries # file continues here . In this case, olivares is both the name of the user to log in automatically AND the name of the autologin-purpose profile. The user has to exist, of course. Might it be that there were two lines in /etc/gettytab ttyv0 /usr/libexec/getty Pc cons25 on secure and ttyv0 /usr/libexec/getty autologin cons25 on secure and I removed the top one with Pc and left the one below? Seems to be interfering... In /etc/ttys, use this format: ttyv0 /usr/libexec/getty olivares cons25 on secure Make sure the line regarding X is off: ttyv8 /usr/X11R6/bin/xdm -nodaemon xterm off secure -- 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On Sun, 8 Aug 2010 13:10:01 -0500, Antonio Olivares olivares14...@gmail.com wrote: Update: I modified the top line to contain : ttyv0 /usr/libexec/getty Pc cons25 on secure and at the very end added one with ttyv0 /usr/libexec/getty autologin cons25 on secure and sadlyI get Aug 8 12:07:58 grullahighschool init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs Then I get login prompt :( again. What could be going wrong ? You have TWO definitions for ttyv0 now, you only need ONE. ttyv0 /usr/libexec/getty autologin cons25 on secure is the line you want. Just comment out the other one. And make sure the xdm line is set to off. -- 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 8/8/10, Polytropon free...@edvax.de wrote: On Sun, 8 Aug 2010 13:10:01 -0500, Antonio Olivares olivares14...@gmail.com wrote: Update: I modified the top line to contain : ttyv0 /usr/libexec/getty Pc cons25 on secure and at the very end added one with ttyv0 /usr/libexec/getty autologin cons25 on secure and sadlyI get Aug 8 12:07:58 grullahighschool init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs Then I get login prompt :( again. What could be going wrong ? You have TWO definitions for ttyv0 now, you only need ONE. ttyv0 /usr/libexec/getty autologin cons25 on secure is the line you want. Just comment out the other one. And make sure the xdm line is set to off. -- Polytropon, Thank you for your patience and your help. I deleted the last line instead of commenting it out and changed autologin to test, and voila, it worked. The suggestions for the hostname also worked beautifully :) The following changes made it work: /* In /etc/gettytab ttyv0 /usr/libexec/getty test cons25 on secure and removed the other line that had the same execpt for test/autologin(had Pc) In /etc/ttys test:\ :al=olivares:ht:np:sp#115200: changed that word autologin to test and it made the difference. I cannot thank you enough for helping me with this issue. You made the difference between a *frustrated FreeBSD* to a *Happy and enjoying FreeBSD user :) Now, I have more than one machine running FreeBSD successfully and with different desktops. Polytropon, thanks a million for your help. Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
In freebsd-questions Digest, Vol 322, Issue 16, Message: 14 On Sun, 8 Aug 2010 17:44:36 +0200 Polytropon free...@edvax.de wrote: On Sun, 8 Aug 2010 10:33:30 -0500, Antonio Olivares olivares14...@gmail.com wrote: This is it I guess. I chose bash shell and the default schell is the csh. There is a file called .login in my home directory /home/olivares/.login which has: $ $FreeBSD: src/share/skel/dot.login,v 1.17.2.1.5.1 2010/06/14 02:09:06 kensmith Exp % # # .login - csh login script, read by login shell after '.cshrc' at login. # # see also csh(1), environ(7), # if (-x /usr/games/fortune ) /usr/games/fortune freebsd-tips if [! -f /tmp/.X0-lock ]; then /usr/local/bin/startx fi Hi, I don't know if Antonio is still using that syntax in later versions but the '[' (test) command requires a space between '[' and arguments, ie in either csh, sh or bash (though I only tend to use csh interactively) the syntax '[!' doesn't work .. perhaps that's what produces the message: -bash: [ !: command not found mentioned in later messages? Some tests: smithi on sola% sh -c '[ ! -f /etc/hosts ] echo hosts not found || echo hosts found' hosts found smithi on sola% sh -c '[! -f /etc/hosts ] echo hosts not found || echo hosts found' [!: not found hosts found smithi on sola% bash -c '[ ! -f /etc/hosts ] echo hosts not found || echo hosts found' hosts found smithi on sola% bash -c '[! -f /etc/hosts ] echo hosts not found || echo hosts found' bash: [!: command not found hosts found Of course 'hosts found' is a misleading response for the '[!' tests; it just means that the test command failed. With a non-existing file: smithi on sola% sh -c '[ ! -f /etc/boo ] echo boo not found || echo boo found' boo not found smithi on sola% sh -c '[! -f /etc/boo ] echo boo not found || echo boo found' [!: not found boo found smithi on sola% bash -c '[ ! -f /etc/boo ] echo boo not found || echo boo found' boo not found smithi on sola% bash -c '[! -f /etc/boo ] echo boo not found || echo boo found' bash: [!: command not found boo found Again 'boo found' just means the '[' (test) command failed; '[!' is bad. and it clearly says that is for 'csh login', so I would need something else? Yes. According to man bash, section INVOCATION, mentiones other file names: Bash reads and executes ~/.bash_profile, ~/.bash_login, and ~/.profile (in that order), so you can add the line [ ! -f /tmp/.X0-lock ] startx (short form is completely okay and valid) at the end of ~/.bash_login - or also .profile, but it makes more sense in putting it into something related to login rather than a profile, but that's debatable semantics. :-) I'm not really sure about that; even at the very end of ~/.bash_profile running startx (a script that doesn't exit till you quit X) might be a bit dodgy, ie does bash expect sourcing ~/.bash_profile to return immediately? I guess Antonio might have to see which of those work. The debian system I look after doesn't have any .bash_login files; apart from the system-wide files in /etc (best untouched) most of the business is done in ~/.bashrc, invoked for interactive shells by ~/.bash_profile, but I'm unsure whether the login shell (that doesn't use ~/.bashrc) then invokes an interactive shell (that does) or what .. man bash is awful :) The line [ ! -f /tmp/.X0-lock ] startx is correct C shell, sh (Bourne) and bash syntax. It is - but only with that space after '[' - and of course before ']' HTH, Ian ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 8/6/2010 10:15 PM, Antonio Olivares wrote: Thank you Manolis for your work. I installed it and have one difficulty, that otherwise I would not bother you or other users here on the list. I loaded gdm to autologin xfce but I can autologin to gnome. How can I do it to only load xfce. Think this thread on the forums offers a solution to what you are talking about http://forums.freebsd.org/showthread.php?t=6809 ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
Rocky, Thanks, been there and done that ::( That shows how to use xdm, gut I am trying with xdm. And since the spin is a custom one, I thought I was just getting XFCE only, but there is enough of gnome that it will start instead of xfce. I have messed around trying things, I fix one error and get another one. I got first error: Could not load up Internet address for . This will prevent XFce from operating correctly, It may be possible to correct the problem by adding to the file /etc/hosts on your system I added a hostname, and put it into /etc/rc.conf and then I fixed it, but then I get that sleeping could not I am having a hard time setting this up. Maybe I just should delete gdm and try a compling autologin.c solution? I have successfully used it on Slackware, but here, I am running out of ideas :( http://www.linuxquestions.org/questions/linux-software-2/autologin-without-gui-374338/ It is hard to set things up and just work. I can use gnome, but would prefer XFCE. Thanks, Antonio On 8/7/10, Rocky Borg rrb...@speakeasy.net wrote: On 8/6/2010 10:15 PM, Antonio Olivares wrote: Thank you Manolis for your work. I installed it and have one difficulty, that otherwise I would not bother you or other users here on the list. I loaded gdm to autologin xfce but I can autologin to gnome. How can I do it to only load xfce. Think this thread on the forums offers a solution to what you are talking about http://forums.freebsd.org/showthread.php?t=6809 ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
Dear Antonio, I thing you've messed things up a little bit. The distribution is for XFCE and of cource you have to use xdm instead of gdm. Installing gdm in your system also installs much of GNOME as you can see by running cd /usr/ports/x11/gdm make all-depends-list By looking carefully in this list you will find out that you install many ports of GNOME, like: /usr/ports/misc/gnome-mime-data /usr/ports/textproc/gnome-doc-utils /usr/ports/devel/gconf2 /usr/ports/x11/gnome-desktop /usr/ports/x11/gnome-menus /usr/ports/x11/gnome-panel /usr/ports/devel/gnome-vfs /usr/ports/x11/libgnome /usr/ports/x11/gnome-session /usr/ports/security/gnome-keyring ... (there are many many many more!) There is nothing wrong with the distribution. If you exactly do what the README file says you are goiing to have a valid system running XFCE. If you try to add gdm then you also install much of GNOME also, so you'll not have an XFCE-only system. Best regards Elias On Saturday 07 of August 2010 10:55:05 Antonio Olivares wrote: Rocky, Thanks, been there and done that ::( That shows how to use xdm, gut I am trying with xdm. And since the spin is a custom one, I thought I was just getting XFCE only, but there is enough of gnome that it will start instead of xfce. I have messed around trying things, I fix one error and get another one. I got first error: Could not load up Internet address for . This will prevent XFce from operating correctly, It may be possible to correct the problem by adding to the file /etc/hosts on your system I added a hostname, and put it into /etc/rc.conf and then I fixed it, but then I get that sleeping could not I am having a hard time setting this up. Maybe I just should delete gdm and try a compling autologin.c solution? I have successfully used it on Slackware, but here, I am running out of ideas :( http://www.linuxquestions.org/questions/linux-software-2/autologin-without- gui-374338/ It is hard to set things up and just work. I can use gnome, but would prefer XFCE. Thanks, Antonio On 8/7/10, Rocky Borg rrb...@speakeasy.net wrote: On 8/6/2010 10:15 PM, Antonio Olivares wrote: Thank you Manolis for your work. I installed it and have one difficulty, that otherwise I would not bother you or other users here on the list. I loaded gdm to autologin xfce but I can autologin to gnome. How can I do it to only load xfce. Think this thread on the forums offers a solution to what you are talking about http://forums.freebsd.org/showthread.php?t=6809 ___ 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
Re: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 8/7/10, Elias Chrysocheris elias...@cha.forthnet.gr wrote: Dear Antonio, I thing you've messed things up a little bit. The distribution is for XFCE and of cource you have to use xdm instead of gdm. Installing gdm in your system also installs much of GNOME as you can see by running cd /usr/ports/x11/gdm make all-depends-list By looking carefully in this list you will find out that you install many ports of GNOME, like: /usr/ports/misc/gnome-mime-data /usr/ports/textproc/gnome-doc-utils /usr/ports/devel/gconf2 /usr/ports/x11/gnome-desktop /usr/ports/x11/gnome-menus /usr/ports/x11/gnome-panel /usr/ports/devel/gnome-vfs /usr/ports/x11/libgnome /usr/ports/x11/gnome-session /usr/ports/security/gnome-keyring ... (there are many many many more!) There is nothing wrong with the distribution. If you exactly do what the README file says you are goiing to have a valid system running XFCE. If you try to add gdm then you also install much of GNOME also, so you'll not have an XFCE-only system. Best regards Elias Elias, Rocky et all I have found a solution not depending on any of those xdm/gdm/kdm. http://forums.freebsd.org/showthread.php?t=14212 The page with instructions was here: http://webcache.googleusercontent.com/search?q=cache:Mz7kcObFEP0J:keyhell.org/advices.html+freebsd+autologin Instructions used: FreeBSD autologin How to make some user login automatically? 1. Add to the /etc/gettytab file the following strings: test:\ :al=test:ht:np:sp#115200: test:\ - entry name, autologin will use this username; al=test - autologin username; ht - terminal has real tabs; np - 8-bit chars; (optional) sp#115200 - line speed; 2. Edit /etc/ttys file: ttyv0 /usr/libexec/getty test cons25 on secure Usual Pc changed with test. Then created file /etc/rc.local with su - user_to_be_logged_in -c startx I had found a similar solution for Slackware 13.1 with Xfce. Thanks to all for your help. Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
Just an addition: My solution works in the same way (modification of /etc/ttys and /etc/gettytab), but I avoid this step: On Sat, 7 Aug 2010 04:49:00 -0500, Antonio Olivares olivares14...@gmail.com wrote: Then created file /etc/rc.local with su - user_to_be_logged_in -c startx In fact, I use the autologin-user's ~/.login script (which is executed after login) to contain a line to check for X's lock file and then run startx. This gives the possibility to the specific user to NOT have to need root permissions to change the behaviour after autologin. The simple line in ~/.login is this one: [ -f /tmp/.X0-lock ] startx Depending on requirements, this can be seen as an advantage or disadvantage (usually in considerations about security); it's also possible to create a loop that an accidental logout won't drop the user to DOS. :-) -- 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On Sat, Aug 7, 2010 at 2:47 PM, Polytropon free...@edvax.de wrote: Just an addition: My solution works in the same way (modification of /etc/ttys and /etc/gettytab), but I avoid this step: On Sat, 7 Aug 2010 04:49:00 -0500, Antonio Olivares olivares14...@gmail.com wrote: Then created file /etc/rc.local with su - user_to_be_logged_in -c startx In fact, I use the autologin-user's ~/.login script (which is executed after login) to contain a line to check for X's lock file and then run startx. This gives the possibility to the specific user to NOT have to need root permissions to change the behaviour after autologin. The simple line in ~/.login is this one: [ -f /tmp/.X0-lock ] startx Depending on requirements, this can be seen as an advantage or disadvantage (usually in considerations about security); it's also possible to create a loop that an accidental logout won't drop the user to DOS. :-) -- Polytropon, So if I delete the file /etc/rc.local and make a file ~/.login, make it executable (chmod +x ~/.login), and add the line [ -f /tmp/.X0-lock ] startx in that file and I will have the same result but without loggin in as root? I will try it out and thank you for the suggestion. I was going to try the autologin.c file and compile it, a similar solution is done for slackware. Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 8/2/10, Manolis Kiagias son...@otenet.gr wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey all, I have just completed the first 8.1-RELEASE based build of the 'Custom releases' project hosted here: http://freebsd-custom.wikidot.com At the moment only the 64bit version is available, while a 32bit version is in the works and is expected later on this week. You may download the ISO file immediately using the downloads page: http://freebsd-custom.wikidot.com/downloads-page This release is based on the latest XFCE desktop and includes a wide variety of desktop-related packages, like OpenOffice, abiword, gnumeric, firefox35, gimp, inkscape, evince and so on. The base system is 8.1-RELEASE. A few other small window managers are included like windowmaker, fluxbox and icewm. Make sure to read the README file before installation. Also note that installing linux related packages during initial setup needs a few more steps. This is due to differences in sysinstall between 7.X and 8.X releases. A detailed explanation is provided in the README file. As always, please report any problems, success stories, comments and criticisms to mano...@freebsd.org Thank you Manolis for your work. I installed it and have one difficulty, that otherwise I would not bother you or other users here on the list. I loaded gdm to autologin xfce but I can autologin to gnome. How can I do it to only load xfce. I use gdm_enable=YES in /etc/rc.conf I setup a file How do I add new GDM sessions? I s/xfce/kde/g in http://www.freebsd.org/gnome/docs/faq2.html#q16 The process for adding new GDM sessions has changed substantially between GNOME 2.2 and 2.30. In order to add new sessions now, you must create a .desktop file containing the session configuration information. Session files live in /usr/local/etc/dm/Sessions. For example, to add a XFCE session, create a file in /usr/local/etc/dm/Sessions called xfce.desktop. That file should contain the following: [Desktop Entry] Encoding=UTF-8 Name=KDE Comment=This session logs you into XFCE Exec=/usr/local/bin/startxfce4 TryExec=/usr/local/bin/startxfce4 Icon= Type=Application This file must have execute permissions. For example: # chmod 0555 kde.desktop After creating this file, restart GDM, and there will be a XFCE link under the Sessions menu. The link is there, but it fails to start, just cycle's back. If I edit /usr/local/etc/gdm/gdm.custom and setup [daemon] AutomaticLoginEnable=true AutomaticLogin=myusername it does autologin but to a gnome session. I was under the impression that since this was an XFCE special/custom disk, I was going to not see gnome, but I know that there are parts needed for xfce. Is there any way I can get this to work, but for xfce only? Sorry for asking, Regards, Antonio ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
On 05/08/2010 5:02 ?.?., Mubeesh ali wrote: Hi Manolis, Thank You . Please advise if a GNOME version of 8.1 release will be made available or is there a different project that you are aware that makes this available. thanks. Mubeesh GNOME is available on the official DVD. I haven't built a GNOME version since 7.2 and will probably wait until 8.1-RELEASE-p1, since the version on the official DVD is probably quite recent anyway. Cheers, Manolis ___ 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: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
Hi Manolis, Thank You . Please advise if a GNOME version of 8.1 release will be made available or is there a different project that you are aware that makes this available. thanks. Mubeesh 2010/8/2 Manolis Kiagias son...@otenet.gr -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey all, I have just completed the first 8.1-RELEASE based build of the 'Custom releases' project hosted here: http://freebsd-custom.wikidot.com At the moment only the 64bit version is available, while a 32bit version is in the works and is expected later on this week. You may download the ISO file immediately using the downloads page: http://freebsd-custom.wikidot.com/downloads-page This release is based on the latest XFCE desktop and includes a wide variety of desktop-related packages, like OpenOffice, abiword, gnumeric, firefox35, gimp, inkscape, evince and so on. The base system is 8.1-RELEASE. A few other small window managers are included like windowmaker, fluxbox and icewm. Make sure to read the README file before installation. Also note that installing linux related packages during initial setup needs a few more steps. This is due to differences in sysinstall between 7.X and 8.X releases. A detailed explanation is provided in the README file. As always, please report any problems, success stories, comments and criticisms to mano...@freebsd.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxWYlIACgkQZ/MxGm4PtJQGuQCfXv2zk1PIsQwHjXcYLYh7OAL8 FPQAn3kNgMwYzUJT/VYU/IQdiqU/xCZr =yqB+ -END PGP SIGNATURE- ___ 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 -- Best Regards, Mubeesh Ali.V.M ___ 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
ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey all, I have just completed the first 8.1-RELEASE based build of the 'Custom releases' project hosted here: http://freebsd-custom.wikidot.com At the moment only the 64bit version is available, while a 32bit version is in the works and is expected later on this week. You may download the ISO file immediately using the downloads page: http://freebsd-custom.wikidot.com/downloads-page This release is based on the latest XFCE desktop and includes a wide variety of desktop-related packages, like OpenOffice, abiword, gnumeric, firefox35, gimp, inkscape, evince and so on. The base system is 8.1-RELEASE. A few other small window managers are included like windowmaker, fluxbox and icewm. Make sure to read the README file before installation. Also note that installing linux related packages during initial setup needs a few more steps. This is due to differences in sysinstall between 7.X and 8.X releases. A detailed explanation is provided in the README file. As always, please report any problems, success stories, comments and criticisms to mano...@freebsd.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxWYlIACgkQZ/MxGm4PtJQGuQCfXv2zk1PIsQwHjXcYLYh7OAL8 FPQAn3kNgMwYzUJT/VYU/IQdiqU/xCZr =yqB+ -END PGP SIGNATURE- ___ 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