![]() |
Re: X Term capability?
Quote:
Quote:
|
Re: X Term capability?
thanks zwer, for the log i mean all commands, which means "all" commands you have used, not only for the current session.
|
Re: X Term capability?
It's not only for the current session - it will remember last 15 commands IIRC, if you do a clean xterm exit (by typing exit). There are several bugs / feature requests filled in Bugzilla considering xterm functionality to allow extending the number of remembered commands (to at least 100-200) as well as to catch xterm window close to do a clean exit and write down the history. Those should be fixed by now, haven't really checked their statuses lately.
|
Re: X Term capability?
thanks zwer
|
Re: X Term capability?
two more questions:
1, is it possible for this: execute commands(long ones), make X Term to remember these commands, and when need these commands again, X Term can execute these commands automatically without need to type these commands again??? 2, without root, user can't play with the OS settings, but still can play with user settings, in this case, if user mess up with user settings, N900 will not work properly, and user only need to reflash eMMC image??? |
Re: X Term capability?
as a new user to Linux, am trying to learn about command lines in X Term, someone on the forum has already suggested books/websites to read, however I can't help to wonder without Root, what kind of damage a new linux user can cause with X Term on N900?? and which commands should be used with extra care???
many thanks |
Re: X Term capability?
Quote:
Code:
#/bin/sh Quote:
Quote:
|
Re: X Term capability?
The basics for what you can do with xterm are the same for all Linux systems, and you can google something like help xterm and find more than enough reading on the subject to last forever.
|
Re: X Term capability?
zwer, thanks very very much for your help. When you say "You can hardly mess up the system that much as a user to require reflashing - usually deletion of a specific messed up setting would fix everything after a reboot."
does it mean "reboot" will help to restore something back to default?? and how does a n00b like myself knows "damm, this is messed up, and it will need to be reflash with eMMC or FW image"??? I justgot so nervous, everytime i open X Term and execute a basic command like ls, will think "did i mess anything up? do i need to reflash eMMC or FW??" please enlight me with your professional knowledge is there a such thing like one command line accidentally send private info to someone on the contact list? again, thanks for your patient with a n00b like me. |
Re: X Term capability?
That behavior is typical for true multi-user systems - system-wide settings are kept outside of user space, and only user specific settings are kept in it, thus separating the system and the users - if some user messes up his settings, the system and other users will not suffer.
It is because of that behavior that applications first load with their default, system-wide settings, and then (if they are user-configurable) they check for the local, user-space settings of the current user, and if there isn't any they usually create default user-space configuration files. If you type: ls -a /home/user/ in xterm you'll see that there are actually quite a lot of `hidden` directories created by those applications which hold user-specific settings. So, if you mess up, and then delete your local settings, upon restart of the named application (some might require reboot or are harder to restart than to reboot the device all-together) - the user settings will be recreated. For example, you can `reset` your browser (MicroB) back to the default settings by deleting /home/user/.mozilla/microb directory (rm -rf ~/.mozilla/microb) - it will delete all your bookmarks, saved passwords, settings and so, but once you restart your device (or restart browserd & microb) the folder and all the needed settings will be recreated. However, be aware that some applications execute with super user privileges and that they store their settings on a system-wide area - you won't be able to edit their settings by hand unless you switch to superuser mode (that's what sudo does). One of them would be Application Manager - it needs to run as a super user as it is installing applications outside of the user space. If you change some settings for such applications, you risk potentially bricking the device after which you'll have to reflash it. As for how will you know if you've messed up - well, something will not work as it used to work, or will not work at all. As I said, before attempting to change or delete something, try to Google it first to get the idea what are you doing. If you mess up outside of the user area, and in such way that it's irrecoverable by reverting the settings back to what they were (i.e. your N900 enters in a constant reboot loop) - you'll have to reflash it. Messing up in the user area is usually more forgiving (given the nature of the device, it is not as forgiving as on regular desktop Linux as the N900 logs in as the predefined user `user` automatically) and in most cases if you can get to the xterm and/or log in via SSH, you'll probably be able to fix it by either reverting back the modified file, or deleting it and letting the system rebuild it. There is probably a very long, even `cryptic` command that would be able to send something (private) to one of your contacts, but you'll hardly be able to type that by mistake so I wouldn't be worried about that. |
All times are GMT. The time now is 18:57. |
vBulletin® Version 3.8.8