OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: PsionX on May 02, 2004, 04:06:32 pm
-
Hi, i want to make a script to launch Midnight commander su root in fullscreen Konsole.
It seems like .. :
-------------------------------
#!/bin/sh
qcop QPE/Application/embeddedkonsole ???
-------------------------------
Please, help !. Howto launch Midnight Commander \'mc\' in fullscreen with Lcfont (16) ? So after, i can launch it directly from special icon
-
I doubt it\'s possible to launch konsole in fullscreen. There is a workaround but it involves sacrificing qtopia temporarily.
Assuming you use the Cacko Qtopia ROM (which in all honesty kicks every other ROM\'s rump) you reboot your Z and when you see the \"Wait...5\" where \"5\" is a countdown you hit the forward slash key above the Menu key and you get an option to boot to console.
Try running midnight commander from there but I must confess I\'ve had problems with VI running in that mode so I can\'t vouch for the stability. When you\'ve done and you want qtopia back you reboot with the command shutdown -r now, alternatively you can risk init 5 which I\'m not sure will work properly but heh the best thing about a Zaurus is you can screw it up but 99% of the time you can recover
-
Thanks .. but in last Cako (1.21), you can change Konsole to fullscreen under Qtopia (just one click ), so i think, there is a command line ??
-
I have yet to get Konsole to respond to anything other than qcop QPE/Application/embeddedkonsol \"raise()\" which will start the app or bring it to the front if it\'s already running, but I can\'t get anything to run on it.
Seems like it doesn\'t use/see qcop messages
Stu
-
I tried these methods :
http://www.zaurususergroup.com/modules.php...unchConsoleApps (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=ScriptToLaunchConsoleApps)
But, it launches 3 sessions in one Qkonsole window : 1st / bash / 2nd: path od script / 3rd: Midnight commander... So i must close 3 tabs but no fullscreen ... :-[[
-
Hi, i want to make a script to launch Midnight commander su root in fullscreen Konsole.
It seems like .. :
-------------------------------
#!/bin/sh
qcop QPE/Application/embeddedkonsole ???
-------------------------------
Please, help !. Howto launch Midnight Commander \'mc\' in fullscreen with Lcfont (16) ? So after, i can launch it directly from special icon
I couldn\'t see with mc\'s default colors & wanted to launch \"mc -a -b\" from an icon. derekp gave me the answer that works.
-------------------------------
#!/bin/sh
qcop QPE/Application/embeddedkonsole \'setDocument(QString)\' \'exec mc -a -b\'
-------------------------------
the exec causes the first console session to be replaced by the mc session. That way you exit the console when you close mc. WOrks just fine. Even have an appropriate png for it, if you want a copy <G>.
Bob W
Miami FL
-
-------------------------------
#!/bin/sh
qcop QPE/Application/embeddedkonsole \'setDocument(QString)\' \'exec mc -a -b\'
-------------------------------
the exec causes the first console session to be replaced by the mc session. That way you exit the console when you close mc. WOrks just fine. Even have an appropriate png for it, if you want a copy <G>.
Bob W
Miami FL
No Fullscreen, but it works...
But how to launch it (Midnight) with root privilege (to copy, etc..) like \"su & mc -a\"
Icon, I \'m using
-
No Fullscreen, but it works...
But how to launch it (Midnight) with root privilege (to copy, etc..) like \"su & mc -a\"
Icon, I \'m using
Easily done, my friend. Hold the stylus tip on the icon and you should get a properties window. Check the box for \"run with root priviledge\" and UNCHECK the \"Display with magnified screen\" box. Click OK.
Next launch you\'ll be running as root in full screen landscape.
<G>.
Bob W
Miami FL
-
Ohhh - didn\'t see your icon till after the above post. Definitely classier than the one I\'m using now. May I steal a copy for use?
Let me know if the above doesn\'t work & I\'ll check if there are any other bits that can be tried.
Best!
Bob W
-
Ohhh - didn\'t see your icon till after the above post. Definitely classier than the one I\'m using now. May I steal a copy for use?
Just do a right-click
Check the box for \"run with root priviledge\" and UNCHECK the \"Display with magnified screen\" box.
No.. you launch the script with root privilege NOT MC...
Open another tab in Qkonsole and do \"ps -aux\". You will see :
USER.....PID.... Time command
zaurus.... ..... mc -a
-
No.. you launch the script with root privilege NOT MC...
Open another tab in Qkonsole and do \"ps -aux\". You will see :
USER.....PID.... Time command
zaurus.... ..... mc -a
Ahhh. I see what you mean. Hummm. If I can come up with a work about I\'ll post it to you. MC has never hesitated to do anything that I\'v told it to do so far.
Did the full screen work as you wanted?
Thanks for the excellent icon!
Bob W
Miami FL
-
Did the full screen work as you wanted?
Bob W
Miami FL
No, but the programmer of qconsole will make, in a few weeks, an new command line option .. wait and see
-
.... but the programmer of qconsole will make, in a few weeks, an new command line option .. wait and see
Ahh, an individual who can \"get things done\", I see! <G>
Be sure to let us know when this new option is ready, my friend!
BTW - is the icon your own design? I admire the workmanship! (or workwomanship, as may be, he say to cover himself JIC)
Bob W
Miami FL
-
No.. you launch the script with root privilege NOT MC...
Open another tab in Qkonsole and do \"ps -aux\". You will see :
USER.....PID.... Time command
zaurus.... ..... mc -a
Try:
qcop QPE/Application/embeddedkonsole \'setDocument(QString)\' \'exec sudo mc -a -b\'
-
Try:
qcop QPE/Application/embeddedkonsole \'setDocument(QString)\' \'exec sudo mc -a -b\'
So IOTTMCO!!
(Sound of one hand repeatedly slapping forehead)
Thanks, maslovsky!!
Bob W
-
Try:
qcop QPE/Application/embeddedkonsole \'setDocument(QString)\' \'exec sudo mc -a -b\'
I tried \"su\" not \"sudo\"... :shock:
Thanks
-
Try:
qcop QPE/Application/embeddedkonsole \'setDocument(QString)\' \'exec sudo mc -a -b\'
I tried \"su\" not \"sudo\"... :shock:
Thanks
Those are two completely different programs...
-
Discovered that C860 does NOT support sudo! Back to the drawing board.
RW
-
Discovered that C860 does NOT support sudo! Back to the drawing board.
It does too yodobob!
(if you change your avatar again, and people look back at this it would probably totally confuse them )
It comes pre-installed on the cacko qt rom, but you can install it if you are using a stock sharp rom.
http://www.killefiz.de/zaurus/showdetail.php?app=1112 (http://www.killefiz.de/zaurus/showdetail.php?app=1112)
If mc does not run from sudo after installing this then check your /etc/home/sudoers config file (as root of course!)
The cacko QT rom includes the following
zaurus ALL=(ALL) NOPASSWD: ALL
Which basically says that user zaurus can run any root comand without the need of a password. A tad risky, but hey it is a pda, and your zaurus user does have a password right :wink: Just like your root user does :wink:
Peter
-
It does too yodobob!
(if you change your avatar again, and people look back at this it would probably totally confuse them )
It comes pre-installed on the cacko qt rom, but you can install it if you are using a stock sharp rom.
Peter
Yup. I should have expanded the statment to include \"stock Sharp ROM\".
And thanks much for the link to d/l for the Sharp ROM sudo.
\"Password? We doan *need* no stinkin\' PASSWORD!\" to misquote Mel Brooks\' \"Blazing Saddles\". <G> Even my passwords have got passwords!
Thanks!
RW
-
\"Password? We doan *need* no stinkin\' PASSWORD!\" to misquote Mel Brooks\' \"Blazing Saddles\".
Hehe shouldn\'t that be \"steenkin!\", \" more beans cowboy?\"
If you dont mind me asking, why aren\'t you using the cacko qt rom?. It seems (from your posts) that you are more than intelligent enough to install it (sound of scampering feet as Peter runs away to hide in a corner somwhere.)
-
Hehe shouldn\'t that be \"steenkin!\", \" more beans cowboy?\"
So many great lines in that movie <g>. \"Why, Bart. They said you was hung.\" \"N\' they was *right*.\"
If you dont mind me asking, why aren\'t you using the cacko qt rom?. It seems (from your posts) that you are more than intelligent enough to install it (sound of scampering feet as Peter runs away to hide in a corner somwhere.)
Don\'t mind at all. Using the Z is \"mission critical\" on a daily basis so unwilling to push the envelope too hard. Wish I could justify the cost of a 2nd one just to play with. If this alleged C960 breaks, then I *will* have an 860 just to hack on.
Also, trying to learn a little bit of Japanese now that I have the tool. Always did want to but never quite had sufficient motivation. Dopeing out the details of the manual gives me a good reason to work on it now.
Looks like it will be academic for a while in not too long a time. Back light just keeps getting harder & harder to keep alive. But I\'ve gotta set up a standin before baby goes back to Nipon. Think one of my old 200LXs is still under warrantee from Thaddeus so ....... bummer.
Nawww, Peter. No need to duck & cover. I take the remark as a compliment <g>. Besides, I drive the roads of Miami-Dade Co FL. You have to have a skin like rhino hide down here or they\'ll make you mas de un poco loco.
Bob W
-
Also, trying to learn a little bit of Japanese now that I have the tool. Always did want to but never quite had sufficient motivation. Dopeing out the details of the manual gives me a good reason to work on it now.
In that case, mucho respect my freind. The only Japanese I know has been gleaned from films.
The only way I can read Japaneese is through babelfish, and you may have seen my post about the confusion/merth that can cause.
Peter