**** BEGIN LOGGING AT Fri Apr 01 00:46:28 2005 Apr 01 02:43:04 hello Apr 01 02:43:11 anyone alive in here? Apr 01 02:43:37 yeah, what's up Apr 01 02:44:12 I wanted to talk to someone else running a slug...i got mine last week and thing its the coolest thing ever. Apr 01 02:44:24 ...and i'm just a linux dabbler.. Apr 01 02:44:37 so i have a few dumb questions. Apr 01 02:45:10 maybe i could ask you? Apr 01 02:45:11 si there are no dumb question, just dumb answers ;-) Apr 01 02:45:24 no, just dumb people. Apr 01 02:45:54 well, first up, i'll tell you what i've done so far: Apr 01 02:46:20 k Apr 01 02:46:30 unslung to a 200gig drive, installed mtdaap, openssh, ccxstream, and nano Apr 01 02:46:39 and vsftp Apr 01 02:47:50 one question: whenever I ssh into the box and try to run nano, it give me an error regarding color-xterm or something...i got around it though... Apr 01 02:48:12 ..by the command export TERM=vt100 Apr 01 02:48:19 then nano runs fine Apr 01 02:48:24 is that normal? Apr 01 02:48:40 and if so, can I make that happen whenever I login Apr 01 02:48:55 think, nano uses ncurses, and so nano must known you term type Apr 01 02:48:56 so i don't have to do it manually? Apr 01 02:49:02 yeah Apr 01 02:49:16 what are ncurses (i'm a linux noob) Apr 01 02:49:29 may be better, youre setting term to xterm-pcolor when you use putty as client Apr 01 02:50:01 ncurses is a, hm, grafix on text mode library Apr 01 02:51:21 weird.. my chat app has been acting weird Apr 01 02:51:28 np Apr 01 02:51:50 so ncurses is something like a grafix to textmode library Apr 01 02:52:04 so, what are ncurses, cause i see mention of them alot Apr 01 02:52:12 which is your shell ? /bin/sh or /opt/bin/bash? Apr 01 02:52:40 well, i didn't install bash, so i gues its /bin/sh? Apr 01 02:53:39 oh, i am really happy that everyting works as expected otherwise, and am afraid to do too much more, because if it goes wonky, i'm gonna hate trying to fix it, Apr 01 02:53:49 you can something setup, guilty for all users at /etc/profile or just for one uiser at (~ refers to the user home dir) ~/.profile Apr 01 02:54:37 just put that single line in the~/.profile file? Apr 01 02:54:38 and if you wan't set TERM each time you logged in, you should export term permanently in /etc/profile or ~/.profile Apr 01 02:55:11 will installing bash cause anything weird to change? Apr 01 02:55:55 nope, /etc/profile and ~/.profile is also read from bash additionaly ~/.bashrc for more settings Apr 01 02:56:29 cool. Apr 01 02:56:30 so you want in /etc/profile something like that Apr 01 02:56:46 what would be the line to make bash my default shell? Apr 01 02:56:47 [root@linus root]$ cat /etc/profile Apr 01 02:56:47 # Apr 01 02:56:47 # Bash initialization script Apr 01 02:56:47 # Apr 01 02:56:47 PS1="[\u@\h \W]$ " Apr 01 02:56:47 PATH=/opt/sbin:/opt/bin:/opt/local/bin:/sbin:/bin:/usr/sbin:/usr/bin Apr 01 02:56:49 LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH} Apr 01 02:56:53 TERMINFO=/opt/lib/terminfo Apr 01 02:56:55 TERM=xterm-pcolor Apr 01 02:56:57 export PS1 PATH LD_LIBRARY_PATH TERMINFO TERM Apr 01 02:57:50 relevant are the last three lines where the TERMINFO and TERM is set and at the last line these settings are exported to the environment Apr 01 02:58:20 bash->default shell - you shouldn't do this for the user root Apr 01 02:58:26 only for other users Apr 01 02:59:03 cause if your slug boots without a hd attached, there no login shell for root Apr 01 02:59:31 hmm... good to know. Apr 01 03:00:06 for normal users you would change the login shell in /etc/passwd Apr 01 03:00:38 boy, there sure is a lot of shit to know! Apr 01 03:00:46 clamav:sc0MOzD8dVGa6:2009:2011:Clam AntiVirus::/opt/bin/false Apr 01 03:01:14 user:password:userid:groupid:comment:homedir:login shell Apr 01 03:01:31 as example Apr 01 03:01:49 ok. should i update busybox? Apr 01 03:02:36 if you want... I'm using 0.6, the things that i need, are in other packages too Apr 01 03:03:07 or, why would i want to update busybox? what benefit? Apr 01 03:03:37 you should update, when you will work on files > 2GB Apr 01 03:04:00 really... ok that is interesting. Apr 01 03:05:03 is there a normal user on the slug (ie not root) or do i need to create one? Apr 01 03:05:32 out of the box, no, you may add an user user with the webinterface Apr 01 03:05:58 (i'm installing bash right now) and why would i want to add bash to the /etc/shells file (i'm reading the install guide on the site) Apr 01 03:06:31 cause some progs will look in /etc/shells for guilty shells Apr 01 03:06:37 would you recommend i create a normal user for regular access for myself, and just use root for configuring, etc.? Apr 01 03:06:56 yeah, i do so Apr 01 03:07:14 but my user eg. joerg had also root rights Apr 01 03:08:46 joerg:sctGrN6AsXXXX:0:0::/share/hdd/data/joerg:/opt/bin/bash Apr 01 03:09:10 so the UserID and Group id is 0, thats equal to root Apr 01 03:09:56 right on. Apr 01 03:09:59 so there is no need for a login shell which might be unreachable for the user root Apr 01 03:12:09 and remember there are 3 places on which the slug stores passwd Apr 01 03:13:35 right, i read the guide on using command line to change passwd Apr 01 03:13:43 fine Apr 01 03:13:49 u need to copy it all around Apr 01 03:14:31 exactly Apr 01 03:15:01 what's your target in nslu2 use? Apr 01 03:16:15 I want to use it for home media server to itunes, xbmc, occasional ftping away from home, and linux education. Apr 01 03:16:33 i'm fascinated by the nerd stuff. Apr 01 03:17:48 aja, my slug streams with twonkyvision to my noxon, two nice little things :-) Apr 01 03:19:36 i have succesfully tunneled and made my slug music play at work, but what i really need to figure out is how do open up a connection to the 150gig music collection at work, from home...the thing is, work has no ssh access. Apr 01 03:20:50 so i can't get into the work network from home.... do you think it is possible to open make a tunnel from work to home, that would let my home network get the work music? Apr 01 03:21:42 may be, could you setuo a webserver at work, so this thing serv the music to you.. Apr 01 03:21:56 s/setuo/setup Apr 01 03:22:59 but, i think, the easier way would be, buy a bigger hd, copy the files, and take it home ;-) Apr 01 03:23:23 i know! Apr 01 03:24:23 i am adding the /etc/profile right now....what are the other lines in it, and will it hurt if i copy them as well? Apr 01 03:24:57 ie PS1 PATH LD_LIBRARY_PATH ??? Apr 01 03:28:02 PS1 is your shellprompt, PATH are the pathes where the shell search for executables, LD_.. is for the linker Apr 01 03:28:51 have a look to the sequence in PATH Apr 01 03:29:05 so i could go ahead and copy all those... what is the linker? Apr 01 03:29:46 I get it, i think... we set the PATH variable, then export it. Apr 01 03:30:24 exactly Apr 01 03:35:47 so, i just logged back into my slug, and since root uses sh, the PS1 prints the ugly command, but it looks fine in bash. Apr 01 03:36:17 so is it here too Apr 01 03:36:30 should i set PS1 in the .bashrc? Apr 01 03:36:41 may be better Apr 01 03:36:59 and what would be the way to make the cool command prompt for sh? Apr 01 03:37:55 haven't try it yet, may be you google -> man sh, there shoud be enough hits ;-) Apr 01 03:38:27 of course. that's the first thing i tell people when the get lazy and ask me simple stuff! Apr 01 03:38:38 nope Apr 01 03:39:18 if myself search a manpage, googles everytime, is faster than look locally Apr 01 03:39:54 so on unix based systems every command has a fime manpage Apr 01 03:40:17 but manpages are missed n the slug Apr 01 04:36:55 i've got a question for you: is there a way to change the amount of time before an ssh connection times out? It doesn't if i'm doing tunnelling, but if i'm just logged it, it kicks off after 5 minutes or so. Apr 01 04:37:11 er logged in, not logged it Apr 01 04:42:23 hm, using putty as client, ssh on the slug as server, connections staying forever... or did i misunderstand Apr 01 04:52:01 well, i'm at work using osx terminal to connect to ssh on the slug, and if there's no activity for a while, i get this: Apr 01 04:52:03 [root@SLUG html]$ Read from remote host rd.dyndns.org: Connection reset by peer Apr 01 04:52:42 (i use dyndns to link to dynamic ip of home network) Apr 01 04:53:19 u are using openSSH on slug? Apr 01 04:55:27 yes Apr 01 04:56:45 rereading your response, i mean, it stays connected if i'm tunneling, just not when i am running a terminal session (or whatever you call it) as a straight shell (sorry, i don't know the lingo) Apr 01 04:57:22 so explain tunneling pls Apr 01 05:02:59 in my understanding everything do do to the slug is a terminalsession, but the way, i connect to the slug is different Apr 01 05:03:23 i can use telnet, unsecure, or ssh, secured connection Apr 01 05:03:41 secured means encrypted Apr 01 05:04:11 on the wellknown ports Apr 01 05:05:59 have read about, but didn't try it, that i can start a ssh connection from source port 80, and my destination router forward this connection to the rela ssh port at .eg. the slug Apr 01 08:44:42 Anyone know how to mount a Maxtor USB drive in NSLU2? **** ENDING LOGGING AT Fri Apr 01 13:09:27 2005 **** BEGIN LOGGING AT Fri Apr 01 13:12:09 2005 **** ENDING LOGGING AT Fri Apr 01 13:19:30 2005 **** BEGIN LOGGING AT Fri Apr 01 13:22:04 2005 **** ENDING LOGGING AT Fri Apr 01 23:59:56 2005