User:Ruskie

Line 36: Line 36:
  /dev/mmcblk0p2          19.7G      1.2G    17.5G  6% /home
  /dev/mmcblk0p2          19.7G      1.2G    17.5G  6% /home
  /dev/mmcblk0p1            2.0G    287.4M      1.7G  14% /home/user/MyDocs
  /dev/mmcblk0p1            2.0G    287.4M      1.7G  14% /home/user/MyDocs
 +
 +
= Setting profile from the terminal =
 +
The reason for fcron in my case was that I wanted the ability to have it set a specific profile at a specific time. This is the script that does this:
 +
cat /home/user/setprofile.sh
 +
#!/bin/sh
 +
profile=$1
 +
 +
dbus-send \
 +
                    --print-reply \
 +
                    --type=method_call \
 +
                    --dest=com.nokia.profiled \
 +
                    /com/nokia/profiled com.nokia.profiled.set_profile \
 +
                    string:$profile > /dev/null
 +
echo "$(date +%Y-%m-%dT%H:%M) Set profile to $profile" > /tmp/setprofile.sh.log

Revision as of 11:19, 31 December 2009

Contents

About me

Sometime

My repos

non-optified repo: deb https://repo.codemages.net nonopt/
optified repo: deb https://repo.codemages.net opt/

What do the repos contain?

  • modest from git
  • tinymail from svn with imap idle enabled
  • zsh - just don't set it as your default shell
  • xmms2 with wavpack, mpg123, mpcdec, ogg, flac, etc... support
  • fcron - requires some manual work after the install(I'll try to give it an event.d script and do that stuff after the fact but not just yet)
create a fcron user
chown fcron:fcron /etc/fcron.*
chown -R fcron:fcron /var/spool/fcron

Then edit /etc/event.d/rcS-late

And after initctl emit MOUNTS_OK

put:
/etc/init.d/fcron start

Repartitioning

Here is what I did to repartition: http://talk.maemo.org/showpost.php?p=411490&postcount=51

Output of df -h

Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.8M    142.0M     81.6M  64% /
/dev/mmcblk0p6            4.9G    293.1M      4.4G   6% /usr
/dev/mmcblk0p5            2.0G    198.1M      1.7G  10% /opt
/dev/mmcblk0p2           19.7G      1.2G     17.5G   6% /home
/dev/mmcblk0p1            2.0G    287.4M      1.7G  14% /home/user/MyDocs

Setting profile from the terminal

The reason for fcron in my case was that I wanted the ability to have it set a specific profile at a specific time. This is the script that does this: cat /home/user/setprofile.sh

#!/bin/sh
profile=$1

dbus-send \
                    --print-reply \
                    --type=method_call \
                   --dest=com.nokia.profiled \
                   /com/nokia/profiled com.nokia.profiled.set_profile \
                   string:$profile > /dev/null
echo "$(date +%Y-%m-%dT%H:%M) Set profile to $profile" > /tmp/setprofile.sh.log