World: r3wp
[Linux] group for linux REBOL users
older newer | first last |
Louis 4-Aug-2008 [2223x2] | I'm learning fast, but there is a lot to learn. More than one person will ever know, I think. |
I suppose I could start the script with sudo from the command line, have timers in the script, and just leave the script running all the time. Would that use up a lot of cpu power? | |
Henrik 4-Aug-2008 [2225x2] | you should be able to make directories within the same user level, if the place where you are trying to make directories has the right permissions. |
I don't know bash well enough to tell you that :-) but then you will have to manage the script yourself, remember to run it again after reboot. | |
Louis 4-Aug-2008 [2227x2] | Thanks, Henrik, I'll try some of these suggestions. I'll let you know what happens. However, it may be awhile, as I've just been called to eat. |
Typing sudo su and then my password solved the password problem. | |
btiffin 4-Aug-2008 [2229] | Louis; do yourself a favour. Read up on chmod, chown and chgrp. In particular chmod. These aren't the easiest of topics at first (mainly due to the crap involved with the 1970's octal numbers and some poor choice of names). But after the initial weirdness the concepts are really straight forward. Read, Write, Execute across User (the owner), Group, Others (not in group) and All (world). There is an overlay of weirdness with directories and Execute (create a file in the dir) and a special mode bit etc. But again ... grunt through until your brain tells you that you get it. It's important, imho. Flailing around with sudo and su (and root powers in general) is not the safest of ways to run Linux. Potentially lowers the security to the level of your average Windows box ... nearly none. :) It can seem like a pain sometimes, but it isn't, it's part and parcel of a secure os. BG has tainted the world to think it is inconvenient. Much like a lock maker giving everyone the same key. A stupid "convenience" that wouldn't fly when it came to your car or house or bank, but PC users have grown up with and expect for reasons I have never understood. (This last part is simple ranting - sorry about that) |
Louis 5-Aug-2008 [2230x2] | btiffin, thanks. I like Linux. I did a lot of experimenting when I first made the switch, and that helped speed up the learning process. There is so much to learn that I doubt that any one person could ever know it all, but I've already learned enough to be able to do more than I was able to do with windows after many years of use. My rant: I hate the Windows registry file! |
As for my script, I decided not to use cron. Once I learned how cron works, I realized it was not suitable for use with this script. I just put a timer in the script, and everything is working great. I was afraid that the timer would take a lot of cpu power, but it doesn't even take enough power to be noticable. This also eliminated the need to go to root. | |
btiffin 5-Aug-2008 [2232] | Cool. As Bill Marley (if there was a Bill Marley) might have sang; "No windows, no cry. Everything's gonna be all right ". Yes, sleep timers should use next to zero CPU. And if you need a task to be running across boots and crashes, checkout monit. monit is a process monitor (there are others) that I like using as it alleviates figuring out the details of the run-levels and init scripts. |
Robert 11-Aug-2008 [2233] | Wow, I finished a configuration and setup journey the last couple of weeks. Linux is far from being straight-forward to configure... but which OS is at all. Anyway, if someone wants to get some hints about xen, exim, dovecot, ssmtp, assp, lighttpd, iptables let me know. I'm now quite good in all this... steep learning curve. |
Anton 18-Aug-2008 [2234] | Yep, I just spent at least 4 weeks learning how to compile and install a video driver in Kubuntu. I had to do a distro upgrade because the graphics card I bought was too new for the OS. I became a little more proficient in the console over the last four weeks. :) |
Anton 24-Aug-2008 [2235] | Janeks, the necessity to type './' before a filename to launch a command in the current directory was added for security reasons. (You could be tricked into running a different command than expected.) I don't recommend changing your path to make it easier, you could be bitten one day. |
Louis 26-Aug-2008 [2236x6] | The script that I used to build my website un XP is not working under Linux. I get: |
** Access Error: Cannot open /c/rebol/dayspring/txt2html.r ** Near: do %/c/rebol/dayspring/txt2html.r | |
I ran chmod -R 775 on that directory, but it didn't help. Any ideas what is wrong? | |
Actually, there are two more lines: | |
** Access Error: Cannot open /c/rebol/dayspring/txt2html.r ** Near: do %/c/rebol/dayspring/txt2html.r t2h %Order-PSH-Printed.txt do >> | |
I've been using that script for 6 years without a problem, so I suspect that this present problem has something to do with Linux. | |
Anton 26-Aug-2008 [2242x2] | How are you launching your script ? Have you disabled security using -s ? |
Aha. Have you mounted /c/ ? That was your Windows box C: drive It could possibly be now mounted at /media/C/ or something like that, otherwise it needs to be mounted manually. | |
Louis 26-Aug-2008 [2244x2] | Hi Anton! You have a good eye. I'll check that drive C: |
I'll let you know what happens, but it will be a few hours. I'm taking my wife out to eat to celebrate our 41st wedding anniversary! She just let me know she is dressed and ready to go. | |
Pekr 26-Aug-2008 [2246x3] | I need assistance for my friend who tries to use REBOL on Linux - he says, that REBOL can't handle Czech characters - in console, he sees various characters like heart pictogram etc. instead of Czech chars. I think that Linux version should not have any problem with Czech language. Is there any guide how to check what to set on linux in order to get proper national character display? (not talking unicode here) |
the system is Debian kernel 2.6.18, rebview 2.7.6 .... | |
I found following - http://www.compkarori.com/vanilla/display/AGG ... but strange thing is, that fonts are wrong even in console, not in view ... | |
btiffin 27-Aug-2008 [2249] | What console is he running? Under Konsole the list of encodings is overwhelming. (From the Settings menu). If it's xterm, then ... I dunno, but regardless, if it is xterm or other, drop a note and we'll track down an appropriate place to tweak the default encoding used by his REBOL console (whatever terminal he uses) session. It might be easier (some gui menu), but it could well look something like XTerm*locale: true XTerm*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1 in an X config file From the root text console for REBOL/Core, we'd have to look into that as well; been there, kinda done that, too many details, forget all details, but keep foggy clue where to start looking ... :) |
Gabriele 27-Aug-2008 [2250] | Petr: "not talking unicode here" - that's where you are wrong. If he's not using UTF-8, then he'll have a huge load of problems in general. if he's using utf-8... then all should be fine, as long as he does not try to display the text in View. |
Pekr 27-Aug-2008 [2251] | hmm, I just tried with my old fedora core1, and linux rebol console displays czech alphabet correctly, his debian one does not. So imo brian is right, it will be kind of improper system setting or so ... |
Louis 28-Aug-2008 [2252] | Anton, drive c: was the problem. Thank you very much! |
Anton 28-Aug-2008 [2253] | Welcome, Louis. |
Gabriele 28-Aug-2008 [2254x6] | Petr, one test you could do is: |
[giesse-:-batou]:~$ hexdump -C атиън 00000000 c3 a0 c3 b2 c3 a8 c3 ba c3 ad 0a |...........| 0000000b | |
(type the chars you want to see the encoding for, then enter, then CTRL-D) | |
>> c: open/binary/no-wait console:// wait c copy c == #{C3A0} >> wait c copy c == #{C3B2} | |
(type the char you want to see the encoding for, REBOL will give you the binary encoding) | |
if you get different output from the two tests then something is definitely wrong. also, if you're not getting UTF-8 like the above, things may get more complicated. | |
Pekr 28-Aug-2008 [2260] | thanks Gabriele! |
shadwolf 29-Aug-2008 [2261x2] | someone on french forum reports that the ctrl key doesn't allow to select text in text-list like it does in the windows version |
is it a known bug ? | |
Anton 30-Aug-2008 [2263x2] | Yes, text-list is very underpowered. |
Ah wait. No, I can ctrl-click text-list here on Kubuntu 7.10. | |
shadwolf 30-Aug-2008 [2265] | okay thank you very much anton ^^ |
Anton 30-Aug-2008 [2266x2] | Each item is added or removed from the selection as I ctrl+click on it.. |
Ask that person to provide a small code example showing the bug, and what platform / Rebol version they are using. | |
shadwolf 30-Aug-2008 [2268] | wich rebol version do you use the 2.7.6 ? |
Anton 30-Aug-2008 [2269x3] | Yes, 2.7.6.4.2 |
But equally, 1.3.2.4.2 works as well. | |
view layout [text-list data ["hello" "bonjour"]] | |
shadwolf 30-Aug-2008 [2272] | ok perfect thank you very much anton i trasmited the reply in the french forum |
older newer | first last |