Archive for March, 2014
Raspberry PI Arch Linux visudo (sudoers file) edit using nano
by billyblog on Mar.30, 2014, under Electronic Projects, Raspberry Pi
Very Quick one!!!!
To be able to edit visudo using nano instead of vi, is great thing. This is not a permit fix, so you have to do it every time you need to edit visudo after a reboot.
export EDITOR=nano && sudo -E visudo
allows you to edit the sudoers file with nano.
Extra one for you…if you want to edit crontab with nano…
export EDITOR=nano
Will work for this. Same as above, it reset with a reboot.
Till next time, thanks for your time.
Raspberry PI SSH Terminal Putty Xshell
by billyblog on Mar.30, 2014, under Electronic Projects, Raspberry Pi
This is a quick one. If you are using Putty for Windows and find it limited on its options, try Xshell. It is free for students or home use.
I like it as I can easily do tunneling and also allows me to do a simple cut an paste from window to window, or to a text or word document with out it trying to paste it my command line. Also allows one to have multiple tabs linked to the same location…great when working in two different areas in the RPI or different users.
NetSarang(Xshell)
Till next time, thanks for your time.
Raspberry Pi Arch Linux Not Enough Memory Issue
by billyblog on Mar.30, 2014, under Electronic Projects, Raspberry Pi
Been a long time.
But pretty much have been wandering around wondering what to do. I got a used Raspberry Pi a some time ago and decided to start working in the Linux world for me and not just for work.
The Arch Linux is a very robust and reliable. You add in only what you need to do the job. But know that support from the general community is not as large as other loads. So be patient when looking for answers. This version is mostly for those who have a good understanding of Linux world.
I was working on project that required me to load in gdata. ( Google’s python library for many things, but for me I wanted the gdrive function)
Now my Raspberry Pi is of the older variety and it only has 256 mb memory. Which would be enough to run my project….but not enough to load the gdata library.
After a lot of reading and then taking the plunge…installed a swap file. (not a fan of swap files on embedded processors….can take up way to much of the processor and read/writes to a SD card)
-fallocate -l 128M /swapfile
-chmod 600 /swapfile
-mkswap /swapfile
-swapon /swapfile
Then add the following line to /etc/fstab.
/swapfile none swap defaults 0 0
After doing the above and rebooting….BAM…. and was able to installed gdata and the project moved forward. Great days!!!!
If wondering on a good place to start with the gdata, take a look at:
Till next time, thanks for your time.