Posts tagged folder
Android SDK on Linux
Apr 18th
Setup up your development environment takes several steps.
2) Unzip and launch.
4) Unzip the sdk and place it in your eclipse folder.
5) Download the Eclipse ADT plugin directly from Eclipse. Use: https://dl-ssl.google.com/android/eclipse/
6) Then configure Android in Eclipse to point to the SDK folder. This is done in Eclipse preferences folder.
When your ready to start programming create a new project and select Android.
Yes I know this isn’t very informative, with regard to programming, but it will get you up and running with your environment.
Scrub – File Shredding for Linux
Dec 26th
With this handy little app you can shred files and folders, but more conveniently you can shred your entire free space. Just make sure you’ve erased all the files you want to shred. Empty the trans, issue:
sudo apt-get autoclean && localepurge
Download scrub from Sourceforge:
http://sourceforge.net/projects/diskscrub
Its a simply source so configure, make and install. It will install a binary in the global path. You can run it at a user or as root. Run scrub accordingly to shred all free space:
sudo scrub -X ~/scrub
This will create a directory, in your home folder, called scrub and fill it with files created from free space. It will then shred them substantially. You can use the -r option, with scrub, to attempt to delete the scrub folder afterward, but it never worked for me. Just make a script as follows:
#!/bin/bash
sudo scrub -X ~/scrub
rm -r ~/scrub
Make it executable, and this will ensure that the folder is deleted after the process is complete. You can make this a cronjob to run it at night. Like at 3 in the morning. It will take hours on a relatively large drive. Maybe an hour per 50 gigs.
Cron Server Backup Scripts
Aug 15th
Update: Don’t configure cron.hourly etc. manually. Configure it with crontab.
I use three scripts that completely backup my entire server. Two scripts I place in my cron.hourly folder, and one I use in my cron.daily. For hourly backup I export all my databases, and then transfer them via an automated ssh connection to another computer on my local area network. For Mysql database export I use a wonderful script that I found on sourceforge http://sourceforge.net/projects/automysqlbackup/. It has a couple of configurations, and all is self explanatory when you open the file in a text editor. Once your done editing the file to suit your mysql parameters, and desired backup folder location, just plop the file in your /etc/cron.hourly to have it run every hour. Then you can use ssh to transfer the mysql backup folder to another computer!! Make a simple script as follows:
scp /home/user/mysqlbackup/* user@othercomputerip:mysqlbackup/
Use this format to make an automated script to transfer your mysqlbackup folder to another computer via ssh. As with the mysql export script, when your done with the ssh transfer script just plop it in your /etc/cron.hourly folder for automated hourly operation. I also use a daily backup script to transfer, via ssh, my entire website directory. Since I have about 10 GB on the directory, due to the file repository, the ssh over LAN connection comes in handy due to its relatively high speed. Getting speed around 7.7 Mb/s the entire root server directory is backed up in about 15 minutes. To do this just use the same formatting as the ssh transfer script above, but set the directory to be your root server directory. You can place the script in your /etc/cron.daily folder, or any other for that matter