Skip to main content

Posts

Cannot move android app on Froyo to SD Card using App2SD or applications in menu

There are number of applications that you wouldn't be able to move to SD Card as a default and APP2SD will not show these as moveable applications. However there are some less critical apps that you are able to move to SD Card with a tweak. You will have to install Android SDK and have a working shell using USB Debugging connectivity. Once you have this installed, you will probably require some USB Drivers for your model of phone which will allow windows to recognise the phone. After you have all this sorted you will have to issue couple of commands in ADB Shell which will enable some existing apps to be moved to SD Card and will also set the location for new apps to SD Card. # adb shell # pm setInstallLocation 2 However in order to reverse this settings so that new applications are installed in system ram you will have to do following. # adb shell # pm setInstallLocation 0 More details about above and lots of other Android Tips and Tricks on AppStorm .

How to take backup of important system configuration files and get it all sent to you in an email

The purpose of this article is to protect your important configuration and setting files that could change over time and you would want to retain a copy of these files for protection of your system. I recommend you specify the list of important files and get them sent to you once a week via email using the script and guideline below. First of all you have to configure a cron task that will run regularly once every week and although you can set up a user specific cron it is advised to set up a system based cron since the task you are carrying out is system wide. user@server:/$ cat /etc/cron.weekly/aweeklycron #!/bin/sh echo "`date` - Daily cron - Taking config file backup and sending via email." >> /var/log/mycron.log /etc/sysconfig/configbackup.sh & >> /var/log/mycron.log Now place the script in directory mentioned above in the cron task. Create the direcory if it doesn't already exist. sudo mkdir /etc/sysconfig The script below...

How to configure Samba file sharing on Ubuntu Linux server quickly and easily

Install necessary packages using below apt-get install command sudo apt-get update sudo apt-get install samba samba-client samba-common samba-common-bin smbfs winbind Configure Samba to run automatically on boot sudo update-rc.d smbd defaults sudo update-rc.d nmbd defaults   Make a backup copy of smb.conf sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig   Edit smb.conf file and replace the entire contents by below copy of a generic config for a kickstart sudo vi /etc/samba/smb.conf [global] workgroup = WORKGROUP netbios name = ServerHostname server string = ServerName Share %v security = user ;guest account = nobody ; logs in /var/log/samba/ log level = 3 [media] comment = Multimedia User Directory path = /home/media browsable = yes guest ok = yes read only = yes create mask = 755 available = yes public = yes writeable = no [root] comment = System Root path = / browsable = yes guest ok = no read only = no create mask = 755 available = yes public =...

Install and Configure Conky - a stats widget for your Ubuntu desktop

Install Conky sudo apt-get install conky -y Configure Conky config file touch ~/.conkyrc vi .conkyrc #Add below to .conkyrc and tweak it where you want or can background yes use_xft yes xftfont 123:size=8 xftalpha 0.1 update_interval 0.5 total_run_times 0 own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 250 5 maximum_width 400 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color gray default_shade_color red default_outline_color green alignment top_left gap_x 10 gap_y 10 no_buffers no uppercase no cpu_avg_samples 2 net_avg_samples 1 override_utf8_locale yes use_spacer right text_buffer_size 256 TEXT ${font openlogos:size=20} my ${font Arial:size=20}${color Tan1} Portal ${color Ivory} Server ${font openlogos:size=20} ${voffset -90} ${color DimGray} ${font} ${font Arial:bold:size=10}${color Tan1}SYSTE...

Securing Ubuntu Linux server or workstation

Uncomplicated Firewall Install a very simple and uncomplicated forewall that is designed for Linux and works perfectly for Ubuntu. sudo apt-get install ufw gufw UFW is command line but very simple tool to manage your firewall however you can also use GUFW in gui format or within X Windows for a user friendly graphical interface. Block too many ssh or brute force attacks Install DenyHosts sudo apt-get install denyhosts Usually it protects your ssh services automatically and can send emails with reports however further configuration can be made in /etc/denyhosts.conf

Skype call forwarding or double gateway

If you wish Skype to receive a call or a SIP call received to be forwarded to Skype you should follow these instructions. Prerequisites. You have SkypeIn set up in the same way as described here . You have Asterisk installed and configured to take or forward calls as per this blog. You have VNC Server configured to run as service as per this blog. sudo adduser skypeout sudo cp /home/skypein/.vnc/xstartup /home/skypeout/.vnc/xstartup sudo chown skypeout:skypeout /home/skypeout/.vnc/xstartup sudo cp -r /home/skypein/sip2sis /home/skypeout/ sudo chown -R skypeout:skypeout /home/skypeout/sip2sis sudo su - skypeout vncserver :3 modify host_port for incoming SIP calls vi ~/sip2sis/siptosis.cfg #cfg:host_port=5070 cfg:host_port=5080 Change audio_port from 63200 to 63300 in  vi ~/sip2sis/siptosis.cfg #audio_port=63200 audio_port=63300 Change Skype Audio Base port in  vi ~/sip2sis/siptosis.cfg #skype_audioportba...

Asterisk installation and configuration on Linux Ubuntu

Install Asterisk sudo apt-get install asterisk Enter your country code when prompted for. If you have to reconfigure it again removing asterisk without other dependencies will not get rid of config files and reinstall wil not create it so be careful and try uninstalling asterisk-config if required. Port forwarding will be required from gateway to receive calls from Registrars. sudo vi /etc/asterisk/users.conf [1000] type=friend host=dynamic context=home secret=password callerid=CIA FBI ATF <1-555-555-5555> dtmfmode=rfc2833 nat=yes mailbox=200@home disallow=all allow=ulaw sudo vi /etc/asterisk/ sip.conf add under [general] just below follwoing default line ;register => 3456@mydomain:5082::@mysipprovider.com register => sipid:sippassword@sipgate/sipid ;localnet=169.254.0.0/255.255.0.0 ; Zero conf local network localnet=192.168.0.0/255.255.255.0 ;        externhost=foo.dyndns.net  ...