Make Ubuntu Phone root image read/write until reboot

sudo mount -o remount,rw /
Warning this will allow you to write to the system image on the phone, not recommended. But sometimes useful.

0
By: bugmenot
2016-02-07 17:57:19

These Might Interest You

  • Get the latest and hopefully greatest to test out on the Ubuntu Phone - sometimes broken but always interesting. https://developer.ubuntu.com/en/start/ubuntu-for-devices/image-channels/


    0
    sudo system-image-cli --switch ubuntu-touch/rc-proposed/ubuntu --build 0
    bugmenot · 2016-02-07 18:24:28 0
  • This is something I wrote for myself, to use on a server that I manage where the users have cryptic usernames, and I'd like to tag them with clear text. I'll modify it in the future to parse /etc/password which is the database where this information is from (which is a better way to achieve this). Add the following line to your .bashrc to check it out: function fingr() { sudo printf "User Name [$1]:" && sudo printf "\n\n\n\n\n" | sudo chfn $1 | grep : ; } The idea to write something like that came after reading this post (I'm not affiliated): http://shinnok.com/rants/2013/09/18/alternative-to-the-finger-unix-command $ fingr root User Name [root]: Full Name [Mr. Root]: Room Number []: Work Phone [555-GOT-ROOT]: Home Phone [] Other [Root account]: Show Sample Output


    0
    fingr root
    nate5 · 2017-07-10 21:33:48 0
  • Sometimes we may want to run a script when a system reboots . We can simply do this by just scheduling the script using vixie cron with the @reboot option . e.g @reboot I use it to send me an alert message on our prod hosts to send an alert message when the system reboots . @reboot zaman uptime | echo `uptime` | mail -s "`uname -n` got rebooted" me@myhost.com


    15
    @reboot <yourscript.sh>
    bzaman · 2010-08-23 10:37:44 0
  • VARNAMES='ID FORENAME LASTNAME ADDRESS CITY PHONE MOBILE MAIL ...' cat customer.csv | while read LINE ; do COUNT=1 for VAR in $VARNAMES ; do eval "${VAR}=`echo $LINE | /usr/bin/awk {'print $'$COUNT''}`" let COUNT=COUNT+1 done done Maybe you have a CSV-File with addresses, where you have to process each contact (one per line, write each value to own variable). Of course you can define every variable, but this way is more simple and faster (to write). VARNAMES includes the variable names. Pay attention: the number of names in VARNAMES have to be the same than in the CSV-file the fields. If the CSV is not seperated with ";", you can set the seperator after the awk-binary with -F"_" for example.


    -1
    VARNAMES='ID FORENAME LASTNAME ADDRESS CITY PHONE MOBILE MAIL' ; cat customer.csv | while read LINE ; do COUNT=1 ; for VAR in $VARNAMES ; do eval "${VAR}=`echo $LINE | /usr/bin/awk {'print $'$COUNT''}`" ; let COUNT=COUNT+1 ; done ; done
    GeckoDH · 2009-05-19 11:23:00 0

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: