11/23/2009, 08:58 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Oct 2009
Posts: 70
Likes Received: 0
Thanks: 5
Thanked 10 Times in 8 Posts
|
I'm looking for a direct way to edit stylesheet files. Specifically, "launcher.css", to be able to manually and precisely adjust launcher page background opacity. (I am aware of the WebOSQuickInstall opacity 'tweak'. It crashes too much.)
From the errors thrown from WQI, I've investigated (novacom style) the file but 'vi' editing is far too ugly. I can't make heads or tails of the convoluted crap it spits at me. Novaterm is tolerable, but the editing process is certainly outdated. Writing stylesheets isn't unfamiliar territory for me. I've messed around with enough (amature) web design to understand what the sheets do and what they're for. But I've always used a 'nice' editor, at worst notepad. Ideally, I'd like to be able to browse the Pre's file system(i have a mandriva2010 liveCD or virtualbox if a linux environment is necessary). I'd like to navigate to the launcher.css file, open it into a reasonable ASCII editor, find my opacity code, change it, etc. Extracting/Implanting files via WQI is an OK solution, but tedious, and I haven't found an editor that won't insert artifacts to the saved .css file... is this something better suited for Samba? (I would only be editing via USB) Last edited by jnever1; 11/23/2009 at 10:19 PM. Reason: additional info |
11/24/2009, 02:58 AM
|
#3 (permalink) | |
|
Member
![]() Join Date: Feb 2005
Location: Lexington, KY
Posts: 175
Likes Received: 2
Thanks: 31
Thanked 25 Times in 20 Posts
|
Quote:
Anyway, all you have to do is follow the instructions in the "Optware Setup" section. The "Quilt Setup" section seems a little outdated now, what with WebOS QI and Preware handling patches so nicely, so I would skip that. I also recommend setting up dynamic DNS as it makes it ever so much easier. (On that link, scroll down to the part that says "Step by Steps to Setup Dynamic DNS for your Palm Pre". I feel like these instructions are clearer and easier to follow than the ones at the WebOS Internals wiki.) I set up a free account with DynDNS.com and now I have a name for my Pre that doesn't change every time it receives a new IP address.Once you're able to connect to your Pre using WinSCP, you can simply drag a file from your Pre, drop it on your computer, edit it in whatever editor you want to use, then drag it back to your Pre. IMO, vi is only good for editing teeny, tiny files and making small changes. For anything else, it's impossible to tell what you're doing. Good luck! If you need any help getting it all set up, let me know.
Last edited by Shadowcat; 11/24/2009 at 03:09 AM. Reason: Changed link for dynamic DNS instructions |
|
11/24/2009, 03:49 AM
|
#4 (permalink) | |
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
|
Quote:
You can always try doing the changes from the opacity patch manually. I recommend settup up SFTP for the Pre, then use something like WinSCP for mass transfer
__________________
If you've liked my software, please consider to towards future development.Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more. @JayCanuck @CanuckCoding Facebook |
|
11/24/2009, 10:31 PM
|
#6 (permalink) |
|
Member
![]() Join Date: Oct 2009
Posts: 70
Likes Received: 0
Thanks: 5
Thanked 10 Times in 8 Posts
|
Thank you!
By cooincidence, I had seen an alternate install at PalmPre Hacks and the connection just didn't click. Honestly, I saw no point in SSH-ing into my pre when novacom did (what appeared to be) the same thing. Now that I see the tunnel formed,and see how I get to choose from a larger pool of client software, I'm quite pleased with the (SSH/WinSCP) method! I get crappy signal at home, where I tweak the pre most, so I decided not to go through with the DDNS. The whole intent was to use my comp to get inside the pre anyway so my home wi-fi does fine. Here is where the info grows thin: How do I write to my pre? i did in novaterm: # sudo mount -o remount,rw / # sudo passwd root entered/reentered rootpass # sudo vi sshd_config (uncommented PermitRootLogin yes line) :w :q! restarted my pre i log in via wi-fi via WinSCP using my user name and pass log in works, i can navigate just fine. After 'Edit' ing a file (launcher.css) however and hitting save, a password prompt appears. If I type my pass, i get a permissions denied error... how does one prefix 'sudo' to every action in WinSCP? access is denied when i try to log in with root/rootpass Last edited by jnever1; 11/24/2009 at 11:40 PM. |
11/25/2009, 03:47 AM
|
#7 (permalink) | |||||
|
Member
![]() Join Date: Feb 2005
Location: Lexington, KY
Posts: 175
Likes Received: 2
Thanks: 31
Thanked 25 Times in 20 Posts
|
Quote:
![]() Quote:
Quote:
![]() This will open up a PuTTY window (which looks much like novaterm). From there, I usually type:
You can leave this window open while you go do whatever you need to do in WinSCP, and when you're done, simply come back to this window and mount the file system back to read-only and close everything up. Oh, and if you edit the files directly on the Pre, it will always prompt you for the password before it will let you save changes. If you drag your files to your computer, work on them there, and then drag them back, it won't prompt you for a password. It will, of course, warn you that the files already exist and ask if you want to overwrite, but you won't have to put in your password. By the way, while typing all of this up, I went to test out some things and kept getting permission denied messages every time I tried to delete or overwrite files - something that I had previously been able to do with no problems. I'm guessing 1.3.1 changed some things. I managed to gain access again once I followed these instructions from the WebOS Internals wiki: Quote:
Quote:
For all of you guys out there who are gurus at all of this, please excuse my (I'm sure) butchering of correct terminology. And feel free to correct any mistakes I've made. It's the only way I'm gonna learn!
__________________
Last edited by Shadowcat; 11/25/2009 at 03:50 AM. Reason: Fixed some typos! :D |
|||||
11/25/2009, 09:32 AM
|
#8 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Location: Somewhere n da 404
Posts: 2,237
Likes Received: 0
Thanks: 247
Thanked 1,039 Times in 551 Posts
|
Quote:
No need to mount -o remount,ro / when done. when you restart your Pre it automatically makes the filesystem RO. |
|
11/25/2009, 12:59 PM
|
#9 (permalink) | |
|
Member
![]() Join Date: Oct 2009
Posts: 70
Likes Received: 0
Thanks: 5
Thanked 10 Times in 8 Posts
|
shadowcat
Quote:
As long as the USB cable is hooked up and the Pre is charging (or you have "No Doze" patch installed, intra-net browsing shouldn't be an issue. Assuming, of course that you don't have any connection based firewalls to block port 222. WinSCP works just fine by setting ONLY 'Host' --> IP address of Pre and 'Port' to 222. [I have a bit to ask/discuss about write permissions later tonight, but i'm pressed for time ATM] |
|
11/25/2009, 02:23 PM
|
#10 (permalink) | |||
|
Member
![]() Join Date: Feb 2005
Location: Lexington, KY
Posts: 175
Likes Received: 2
Thanks: 31
Thanked 25 Times in 20 Posts
|
Quote:
Quote:
Quote:
![]() Anyway, let me know how it goes!
__________________
|
|||
11/25/2009, 09:14 PM
|
#11 (permalink) | |
|
Member
![]() Join Date: Oct 2009
Posts: 70
Likes Received: 0
Thanks: 5
Thanked 10 Times in 8 Posts
|
Quote:
I was about to write a manifesto on how fatal my attempt to get write access through WinSCP was... and then I added the SFTP line, logged in, PuTTY'd sudo -i and mount -o remount,rw / and POOF! the SoaB works! I did all this before, I swear ;-), and had no success. Actually, I didn't do the sudo -i before, but did sudo mount -o remount,rw /. I'm going to make an assumption here, but setting the sudo -i inside PuTTY must permeate into WinSCP commands, essentially prefixing sudo unto any command issued by any instance of 'user' from any source (PuTTY, WinSCP, novaterm, etc). Thanks for all the help. Especially since I can now eff with the launcher bg opacity at will and with the precision and reliability i desire! TY TY TY! On a side note: Something troubles me about the sudo command. Am I right to fear any command that gives a restricted user unrestricted access? Or is the 'underprivileged' user created during the optware ssh/sftp closer to a MS 'Power User'? Or am I off the mark completely and the 'underprivileged' is something self-inflicted and cabable of being bandaged at will? It just scares me that the only thing I need to do in order to (potentially) completely brick my pre is to prefix sudo to my mischief! [ E D I T ] Through experimentation, it would appear that the sudo -i supercedes even the ro remount, so it may be possible to issue the command to the server via WinSCP and spare the PuTTY session... Nope. /usr/lib/luna/system/luna-applauncher/stylesheets/ is still off limits. I was testing my assumption in /var/home/'username'/ Permissions (i'm guessing) must be set differently for the different folders. I'll look into changing permissions and get back to you. Ok. it was sudo /opt/libexec/sftp-server that did it. Eff me for not noticing that very important detail! Last edited by jnever1; 11/25/2009 at 10:29 PM. Reason: being a dumb ****** sometimes ;-) |
|
11/26/2009, 12:03 AM
|
#12 (permalink) |
|
Member
![]() ![]() Join Date: Aug 2009
Location: The HARD Streets of Alpharetta, GA
Posts: 829
Likes Received: 2
Thanks: 44
Thanked 176 Times in 92 Posts
|
Why do you keep logging in as a user and then issuing a 'sudo -i' command?
Edit /etc/event.d/optware-dropbear and change the line exec /opt/sbin/dropbear -g -F -p 222 to exec /opt/sbin/dropbear -F -p 222 and log in as root. |
11/26/2009, 02:42 AM
|
#13 (permalink) | |
|
Member
![]() Join Date: Feb 2005
Location: Lexington, KY
Posts: 175
Likes Received: 2
Thanks: 31
Thanked 25 Times in 20 Posts
|
Quote:
The only system files I know how to modify are by very carefully following the instructions that the people at WebOS-Internals have been kind enough to write up for us. I was originally planning to major in compute science (18 years ago!) and took a handful of classes before I moved and dropped out of college. In my intro classes, we were learning Turbo Pascal, for cryin' out loud. Since then, I've done a wee bit of coding, if you can call it that, for an LPMud game that used a b@stardized version of C+, and about 10 years ago, I worked as a first-tier help desk tech for about 6 months. We did mostly password resets and node resets and some other basic crap for people who barely knew how to turn on the computer they'd been given by the company. I've used DOS and Linux operating systems enough that I know how to maneuver around the file system -- oh, and I vaguely remember doing all of my coding for that LPMud using vi, and boy, do I not miss having to do that anymore! All of this means that while I consider myself somewhat more tech savvy than the average person out there, and I generally understand most of what I've read and followed from the wiki (or go out and research until I do understand), I have no idea how to do anything other than what other people have described.So maybe you could please explain exactly what editing optware-dropbear the way you've described does? What is the purpose of making those changes and would that mean I should use Dropbear to access my Pre? Is that better/easier than using WinSCP? Could you give more complete instructions? Maybe a link or two? I don't mind Googling for answers, but I usually need a little more information than what you've provided. PS - I'm sorry if that all sounded snarky. I just wanted you to understand where I was coming from, and you threw off that comment like it was the most obvious thing in the world, and we're all morons for not knowing how to do that. I guess I got a little annoyed.
__________________
Last edited by Shadowcat; 11/26/2009 at 02:43 AM. Reason: Added a PS |
|
11/26/2009, 03:10 AM
|
#14 (permalink) | ||
|
Member
![]() Join Date: Feb 2005
Location: Lexington, KY
Posts: 175
Likes Received: 2
Thanks: 31
Thanked 25 Times in 20 Posts
|
Quote:
![]() Quote:
__________________
|
||
11/26/2009, 03:05 PM
|
#15 (permalink) | |
|
Member
![]() Join Date: Oct 2009
Posts: 70
Likes Received: 0
Thanks: 5
Thanked 10 Times in 8 Posts
|
Shadowcat,
With respect to DrewPre, I looked up the dropbear config file. Inside was clear indication that removing the -g allows log-in as root. Quote:
Here's the Dropbear wiki though : Dropbear (software) Now, if only the remount could be done and undone automatically with WinSCP connect/disconnect... :-) Last edited by jnever1; 11/26/2009 at 04:35 PM. Reason: dropbear info |
|
11/27/2009, 12:23 AM
|
#16 (permalink) | |
|
Member
![]() Join Date: Feb 2005
Location: Lexington, KY
Posts: 175
Likes Received: 2
Thanks: 31
Thanked 25 Times in 20 Posts
|
Quote:
__________________
|
|
![]() |
|
| Tags |
| css, edit |
| Thread Tools | |
| Display Modes | |
|
|



