![]() |
X Terminal questions from a noob
I've been an N900 adopter since launch and as an end user, I'm generally pleased with the device. However, when using apps that require tweaking, I've been unable to get a handle on X terminal. Command lines that devs supply to modify or correct program operations leave me at a standstill because they either don't work, or I have no way of opening files from the /home directory.
So can anybody give me a basics on X terminal so I can start to make a little more of my N900? |
Re: X Terminal questions from a noob
http://www.tuxradar.com/content/comm...ks-smart-geeks
You can google linux xterm commands , almost all of them are similar :) |
Re: X Terminal questions from a noob
For basic commands, check these out
https://help.ubuntu.com/community/UsingTheTerminal http://www.pixelbeat.org/cmdline.html for secure shell hosting, i.e. gaining wireless access to your N900 and the Xterminal via your laptop/PC (this allows quicker input since you are using your computer to type/copy-paste to the N900) check out WinSCP http://winscp.net/eng/docs/guides and http://scratching.psybermonkey.net/2...g-openssh.html |
Re: X Terminal questions from a noob
|
Re: X Terminal questions from a noob
Quote:
First some info: the minus (-) symbol is used for flags. Flags may define further options to a command. Eg: -help usually brings out a help about a command. Code:
cp -help --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- So some basic commands: cp = copy. You can use it like this: cp origin destination You can use the -R flag to copy recursively (ie. everything inside too) To copy hello.txt from /home/user/MyDocs to /home/user Code:
cp /home/user/MyDocs/hello.txt /home/user/ Code:
cp -R /home/user/MyDocs/hello /home/user/ Code:
mv /home/user/MyDocs/hello.txt /home/user/ Code:
ls /home/user/apps/ Code:
mkdir /home/user/newdir --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- To search for files you can use the following command: find You can be creative with this command. You always need the -name flag to specify the name. You can use an * for a wildcard. Ex this searches in /home/user/MyDocs for files ending with .mp3 Code:
find /home/user/MyDocs -name *.mp3 Code:
find /home/user/MyDocs -name *abc*.* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- To see or edit config files etc: You can use the vi command to see what a file contains. Example: Code:
vi /usr/share/applications/hildon/abc.desktop Code:
leafpad /home/user/abc.txt --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Installing and updating: These require you to be rooted. Some useful flags: -f (force), -fix-missing (fixes missing dependencies (hopefully)) Code:
apt-get update Code:
apt-get upgrade Code:
apt-get install something Code:
apt-get install -reinstall something Installing packages manually uses the command dpkg. Now this has many flags. Like: -i (install), -force-all (installs a package without caring for missing dependencies(may result in a broken app). Code:
dpkg -i /home/user/MyDocs/install.deb --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- To set permissions to a file I would first recommend try setting permissions NOT as root. If you can't..then gain root. Code:
chmod +x /home/user/file Code:
chmod 777 /home/user/file --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Finally if you don't know I will tell you how to access root. Please be careful when in root. Nothing will stop you from deleting important configuration files. 1. Install the package called 'rootsh' from an application manager. 2. Open Terminal 3. Type 'sudo gainroot' OR just 'root' --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- These are the commands I can think off the top of my head. You should start with these..then advance little by little. xterm is great because it gives you feedback of what it is doing..unlike a GUI. You can also troubleshoot an app by launching it in xterm. To do so you need to find its launcher..ex launch it by typing: Code:
/home/opt/app1/app1 Code:
python /home/opt/pythonapp/pythonapp.py Hope this helps. |
Re: X Terminal questions from a noob
This is what I used to start the very basic stuff. At least the first few pages are rather useful.
http://linuxcommand.org/learning_the_shell.php Also, if you have nothing typed, you can hit tab twice and you'll get a list of all usable commands - you can the google the commands you're interested in. Some are N900-only, like the ones with "fiasco" in front of them, but most as pretty common. Just search "Linux command [name of command you want to learn about]", and there's bound to be plenty of tutorials/guides out there. |
Re: X Terminal questions from a noob
If an app forces you to deal with the command line, find a different app. The developer is obviously piss poor at his job.
|
Re: X Terminal questions from a noob
Thank you all. This was extremely helpful.
|
Re: X Terminal questions from a noob
Google xterm tutorial and go thru three or four of the ones that look appealing. By that time you will have a pretty good idea of how it works :)
|
Re: X Terminal questions from a noob
Hi all..
Is possible made command/commands for widget which allow sends sms? i mean...have one widget on desktop which when i press, automatic open new sms, paste text which i in advance choose and automatic choose recipient number which i choose in advance...then only just i press Send.. it would be gret for example for buy tram ticket..or sms for wife :D |
All times are GMT. The time now is 12:20. |
vBulletin® Version 3.8.8