ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ubb3r newbie here in need of some guidance and help.
i have reciently picked up a book that is writen in a way that i can understand it. its very simular to the way the win2k MCSE books are written so things are finnaly starting to click for me in the linux world.
that is not saying that i know linux near as well as i know M$, but given time i shall learn it as well if not better then i know M$.
background for the reason i am asking for this help.
1. i own a small karate school in orlando area.
2. i use quickbooks for my accounting and PoS (point of sale) software.
3. i use TS(terminal service) to remote into my win2k server box to access quickbooks from any of my workstations and from remote loctions away from my school.
4. i have been playing around with RH9 and rdesktop. i love rdesktop way better then native TS from M$. its faster, smoother, and even though not as nice on the graphical end, im only really using it for QB(quickbooks)
of the ppl i have helping me at my school (wife included) i am the only one who knows more about computers then just how to turn them on. i handle a fair amount of IT work in the M$ world as sideline contracts just to keep my mind sharp.
i have no issue with typing in the long string from the councle to get rdesktop to open, connect, loging, and run for me, but i know for a fact that the ladies that help here at the school would not be happy with me if i tried to make them perform this task.
so i need to learn how to make some kind of script or something that will alow me to creat a desktop icon for Gnome that will be clickable and contain all of the argurments to log in and run in fullscreen mode.
i am wanting to replace the OS on my POS computer as win2k is to much of a system hog for that older computer and would like to put RH9 on it so they can rdesktop over instead of TS over to my server.
the arguemtns that i use now are as follows:
./rdesktop -u [user name here] -p [password] -f [fullscreen] [URL/IP]: port if needed, dont need any ports they way i have it setup.
id like to be able to make a clicky icon that can go on the desktop that will run the above command with the proper info so the ladies just have to double click and then log into QB to make sales or take tuition.
Did you put that in a file and chmod it to be executable?
I tested it and it should work......
Just create a file on the desktop (taking that you use KDE or Gnome) and then add the text that I posted, change the permissions to be executable and then you should be able to double click it.....
Your using gnome so you've probably got gedit, open that
and add the stuff given above, save the file as startrdesktop.sh, or whatever
open a shell
login (su) as root
chown root.root startrdesktop.sh # Not particular necessary this if the only log
chmod a+rx startrdesktop.sh # in as one user, but ya might aswell
mv startrdesktop.sh /usr/bin #
right click on your gnome desktop and select add launcher(or whatever it's called) from
the popup menu
In the launcher menu enter in the command to run bit startrdesktop.sh
You should have a runable icon on the desktop now
If they only every log in as one particular user and you are logged in as that user when you created the file you can just, if the file is in /home/myusername,
chmod +x /home/myusername/startrdesktop.sh
then when doing the launcher bit enter the full path to /home/myusername/startrdesktop.sh
not using gnome now but that's the basics from memory
Basically chmod +x makes the file executable/runnable
Last edited by Looking_Lost; 03-22-2004 at 03:44 PM.
wow awsome. that is the level of detail i need. thank you. ill do that when i get home tonight. currently teaching classes at the school.
this will be so awsome to be able to do this. wife will be happy, and so will help once i can speed thigns up for them, and make it clicky. they can do the clicky real well.
[ray@localhost ray]$ su -
Password:
[root@localhost root]# cd /home/ray
[root@localhost ray]# ls
DAoC_toa.jpg mplayer-gui-1.0pre3-1.i386.rpm
mplayer-common-1.0pre3-1.i386.rpm startrdesktop.sh
[root@localhost ray]# chmod a+rx startrdesktop.sh
[root@localhost ray]# chmod +x /home/ray/startrdesktop/sh
chmod: failed to get attributes of `/home/ray/startrdesktop/sh': No such file or directory
[root@localhost ray]# cd
[root@localhost root]# cd
[root@localhost root]# chmod +x /home/ray/startrdesktop/sh
chmod: failed to get attributes of `/home/ray/startrdesktop/sh': No such file or directory
[root@localhost root]# chmod +x /home/ray/startrdesktop.sh
[root@localhost root]#
------------------------------------
eventualy got the chmod +x to work, but for some reason when i typed it in i got an error, but when i copy/paste it worked, or at least did not give me an error.
---------------------------------------------
#! /bin/bash
RDESKTOP='which rdesktop > /dev/null 2>&1'
if [ $? -gt 0 ] ; then echo "rdesktop not found"
exit 1
fi
when i double click the startrdesktop.sh in Ray's home icon on my desktop it does prompt me to run, run in terminal, dislpay so i must of got some of it right at least.
please help. i know im getting close and would really love to see this working. im very exciting that im learning this much and all the great help is very much appriciated.
once i did that along with the chmod for root.root and the chmod -x i now have a clicky desktop icon that goes straight to were i want it to go. now i can make clickies for the rest of the servers.
Wouldn't it have been easier to just create a new icon on the kde desktop, under file/link to application. Then on the command box enter /usr/bin/rdesktop -f -u [username] -p [password] xxx.xxx.xxx.xxx???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.