Author Topic: Launch Konsole in fullscreen with script.  (Read 5908 times)

PsionX

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Launch Konsole in fullscreen with script.
« 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  
\"Beaune Avaux\" wine addict

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
Launch Konsole in fullscreen with script.
« Reply #1 on: May 03, 2004, 02:43:23 pm »
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
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

PsionX

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #2 on: May 03, 2004, 05:13:17 pm »
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 ??
\"Beaune Avaux\" wine addict

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Launch Konsole in fullscreen with script.
« Reply #3 on: May 03, 2004, 05:47:04 pm »
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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

PsionX

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #4 on: May 04, 2004, 01:22:57 pm »
I tried these methods :
http://www.zaurususergroup.com/modules.php...unchConsoleApps
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 ... :-[[
\"Beaune Avaux\" wine addict

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #5 on: May 14, 2004, 07:55:38 am »
Quote
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
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

PsionX

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #6 on: May 14, 2004, 01:58:40 pm »
Quote
-------------------------------
#!/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
\"Beaune Avaux\" wine addict

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #7 on: May 14, 2004, 04:47:16 pm »
Quote
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
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #8 on: May 14, 2004, 04:51:33 pm »
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
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

PsionX

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #9 on: May 14, 2004, 06:15:12 pm »
Quote
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  

Quote
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
\"Beaune Avaux\" wine addict

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #10 on: May 14, 2004, 06:19:47 pm »
Quote
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
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

PsionX

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #11 on: May 14, 2004, 06:26:28 pm »
Quote
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  
\"Beaune Avaux\" wine addict

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #12 on: May 15, 2004, 03:38:57 pm »
Quote
.... 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
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Launch Konsole in fullscreen with script.
« Reply #13 on: May 17, 2004, 07:11:53 am »
Quote
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\'

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Launch Konsole in fullscreen with script.
« Reply #14 on: May 17, 2004, 04:56:15 pm »
Quote
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
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------