<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7620555780674246713</id><updated>2024-11-01T16:44:52.897+05:30</updated><category term="linux"/><category term="ubuntu"/><category term="centos"/><category term="command line"/><category term="crunchbang"/><category term="howto"/><category term="mastering linux command line"/><category term="tutorial"/><category term="commandline"/><category term="debian"/><category term="easybcd"/><category term="gnu screen"/><category term="go programming"/><category term="go tools"/><category term="linux command tips and tricks"/><category term="linux mint"/><category term="mozilla"/><category term="redhat"/><category term="app image"/><category term="boot from usb even if hardware doesn&#39;t support"/><category term="command line utility"/><category term="commandline tips and tricks"/><category term="cronjob"/><category term="date command"/><category term="delete an iptables rule"/><category term="dual boot"/><category term="executing golang programs"/><category term="firefox"/><category term="firefox 4"/><category term="firewall"/><category term="gnome"/><category term="golang"/><category term="google go"/><category term="guide"/><category term="how to"/><category term="installation"/><category term="internet"/><category term="linux iptables"/><category term="mac"/><category term="plop boot manager"/><category term="port forwarding"/><category term="screen"/><category term="shell scripting"/><category term="system monitor"/><category term="system properties in linux"/><category term="terminal"/><category term="testing"/><category term="unix"/><category term="vim"/><category term="wheezy"/><category term="windows"/><category term="/etc/issue.net"/><category term="/etc/motd.tail"/><category term="/etc/sshd_config"/><category term="/etc/sudoers file"/><category term="10.8"/><category term="3g"/><category term="3g+"/><category term="3gplus"/><category term="64 bit"/><category term="Must be connected to a terminal error in screen using ssh"/><category term="X server not running"/><category term="X window session does not start"/><category term="X.org issues"/><category term="access remote screen session directly through ssh"/><category term="accessing internal machines from public network using iptables and port forwarding in linux"/><category term="adding banner"/><category term="adding banner to ubuntu linux server"/><category term="administration"/><category term="alsa sound upgrade"/><category term="amazon"/><category term="apt-get"/><category term="artha"/><category term="artha best offline dictionary app"/><category term="artha dictionary app"/><category term="aspell"/><category term="audio not working"/><category term="autoremove"/><category term="autostart dropbox at reboot"/><category term="autostart dropbox daemon if it is stopped"/><category term="awk"/><category term="aws"/><category term="backup transfer using ftp and wget"/><category term="bash"/><category term="bash history not working in different terminal"/><category term="bash script not working solutions"/><category term="bash scripting"/><category term="bash_history"/><category term="bcm43142"/><category term="best bit torrent software"/><category term="best dictionary app for ubuntu"/><category term="best dictionary in linux"/><category term="best way to experience gnome shell"/><category term="beta release"/><category term="better top"/><category term="bit torrent client for linux"/><category term="bleeding edge"/><category term="boot from usb in old hardwares using software plop boot manager"/><category term="boot manager"/><category term="booting from usb"/><category term="bsd"/><category term="build-essential"/><category term="built in speaker not working"/><category term="change time in server"/><category term="combile lines in a file"/><category term="command line history"/><category term="commandline history not saved"/><category term="commandline shortcuts"/><category term="commandline tools"/><category term="comparison of unity and gnome shell"/><category term="completely remove an application in ubuntu"/><category term="configure time zone and date/time in ubuntu linux server"/><category term="connect to screen using ssh"/><category term="copy"/><category term="copy files to ntfs in mac"/><category term="correcting time zone and time in ubuntu using date command"/><category term="count of a character or word in a file"/><category term="creating app images"/><category term="crontab scripts"/><category term="ctr+r"/><category term="cutting edge"/><category term="daily ppa"/><category term="data not loading properly in mysql using load data local infile"/><category term="debian 7.6"/><category term="debugging bash scripts"/><category term="decrypt files in linux"/><category term="delete a word in terminal"/><category term="delete files"/><category term="delete user from group without editing files"/><category term="dell"/><category term="desktop youtube app"/><category term="developers"/><category term="developing go programs in ubuntu"/><category term="devops"/><category term="df -h"/><category term="dictionary"/><category term="disable root login through ssh"/><category term="distro"/><category term="distro hopper"/><category term="dongle"/><category term="dragonflybsd"/><category term="dropbox"/><category term="dropbox linux commmand line client daemon autostart script"/><category term="dual boot linux and bsd"/><category term="dual boot pcbsd with ubuntu linux"/><category term="dual boot ubuntu and windows"/><category term="dual boot windows and linux"/><category term="dualboot"/><category term="easiest way to install gnome shell"/><category term="easiest way to see and analyse the process in linux"/><category term="easiest way to troubleshoot linux"/><category term="easter eggs"/><category term="easy linux software installation"/><category term="easy way to find free disk space"/><category term="easybcd to configure the boot manager"/><category term="easybcd to restore grub and mbr"/><category term="ec2 instance"/><category term="editor"/><category term="elementary"/><category term="elementary apps"/><category term="elementary luna"/><category term="elementary os"/><category term="elementary os luna"/><category term="enable history"/><category term="enable internet connectivity using ssh tunneling"/><category term="encrypt files in linux"/><category term="eos"/><category term="escalate privilege within vim editor"/><category term="execute program"/><category term="external hard disk"/><category term="fedora"/><category term="festival text to speech"/><category term="ffmpeg"/><category term="files from windows not working in linux/unix/ubuntu"/><category term="files with special characters"/><category term="files with white space"/><category term="find"/><category term="find free disk space in linux"/><category term="finding the count of a character in a file"/><category term="fix"/><category term="fix drive errors in external hard drives"/><category term="fix drive errors in windows 7"/><category term="fix mbr"/><category term="fix mbr using ubuntu"/><category term="fixmbr"/><category term="flash free"/><category term="flash player"/><category term="flickr"/><category term="flite"/><category term="flite tts"/><category term="flite tts android"/><category term="flush iptables"/><category term="formatting go code to easy read"/><category term="foto app"/><category term="free the fish"/><category term="freebsd"/><category term="fromdos command"/><category term="ftp download using wget recursively"/><category term="gegls from outer space"/><category term="gnome fish"/><category term="gnome flickr uploader"/><category term="gnome shell"/><category term="gnome3"/><category term="go in ubuntu"/><category term="go language tools"/><category term="go programming in ubuntu linux"/><category term="gofmt"/><category term="gofmt -w"/><category term="golang programming"/><category term="google tts alternative"/><category term="grub"/><category term="grub configuration"/><category term="grub2"/><category term="hacks"/><category term="headset working but built in speaker not working"/><category term="hfs"/><category term="hide a file or folder in linux"/><category term="hide command"/><category term="hide command from history"/><category term="hiding a file/folder in ubuntu"/><category term="high speed internet"/><category term="how to find the number of occurance of a character or word in a file"/><category term="how to install flash player in rekonq"/><category term="howto guide"/><category term="htop"/><category term="http proxy"/><category term="icedove"/><category term="idea"/><category term="ignorespace"/><category term="india"/><category term="innobackupex"/><category term="innodb"/><category term="install"/><category term="install broadcom wireless drivers in crunchbang"/><category term="install flash player 64 bit in rekonq"/><category term="install foto - the image and album viewer in elementary os luna"/><category term="install gnome 3 shell on ubuntu"/><category term="install go  in ubntu"/><category term="install icedove in debian"/><category term="install skype in debian crunchbang linux with libqtweb4"/><category term="iptables"/><category term="iptables blacklist removal"/><category term="iptables help"/><category term="issue.net"/><category term="issue.net alternative"/><category term="kde"/><category term="key board"/><category term="kill the fish"/><category term="kill wanda"/><category term="kubuntu"/><category term="kubuntu&#39;s new default browser"/><category term="legal notice"/><category term="libqtweb4"/><category term="lingo"/><category term="linux backup"/><category term="linux commandline"/><category term="linux commands"/><category term="linux dropbox tutorials"/><category term="linux process"/><category term="linux programming"/><category term="linux server backup using dropbox"/><category term="linux tips"/><category term="linux tips and tricks"/><category term="linux tricks"/><category term="live usb"/><category term="luna"/><category term="make"/><category term="mastering linux screen"/><category term="merge lines with comma in a file"/><category term="minitube"/><category term="mint"/><category term="month"/><category term="most used screen shortcuts and commands in ubuntu"/><category term="motd.tail"/><category term="mountain lion"/><category term="move around terminal"/><category term="mts"/><category term="mts mblaze ultra"/><category term="multi user mode in screen"/><category term="myisam"/><category term="mysql hot backup"/><category term="mysql load data issues"/><category term="nc"/><category term="netcat"/><category term="netconnect"/><category term="no db lock backup using xtrabackup"/><category term="nobrowse"/><category term="numbers"/><category term="offlline dictionary app for ubuntu linux"/><category term="openbsd"/><category term="opensource"/><category term="opensuse"/><category term="osx"/><category term="password authentication"/><category term="password protect files"/><category term="paste"/><category term="paste command"/><category term="pc-bsd10"/><category term="pcbsd"/><category term="perconas"/><category term="photo app for elementary luna"/><category term="port forward remote port to local machine"/><category term="port fowarding"/><category term="portable linux apps"/><category term="postr"/><category term="ppa"/><category term="print sum of numbers in a file"/><category term="proxy server"/><category term="ps"/><category term="purge"/><category term="putty"/><category term="qbittorrent"/><category term="qbittorrent review"/><category term="raring ringtail 13.04"/><category term="recursively download files from remote server using ftp with wget"/><category term="rekonq"/><category term="released"/><category term="reliance"/><category term="remote learning"/><category term="remote server administration"/><category term="remove all iptables rules"/><category term="remove old files"/><category term="remove rule from iptables"/><category term="remove unused files and folders"/><category term="remove user from group in linux with single command"/><category term="replace shotwell with foto app in elementary os luna"/><category term="restore grub"/><category term="restore mbr"/><category term="restore mbr even if you don&#39;t have windows disk"/><category term="restore windows mbr after removing grub"/><category term="root privilege inside vim"/><category term="run bash script in debug mode"/><category term="run checkdisk from command line in windows"/><category term="run checkdisk in windows"/><category term="run go program"/><category term="run golang program"/><category term="run only predefined command using sudoers"/><category term="running processes in background in linux"/><category term="save vim with sudo privilege"/><category term="save with root privilege"/><category term="save with sudo privilege"/><category term="screen command in linux"/><category term="screen shortcuts in linux"/><category term="screen tips and tricks"/><category term="script"/><category term="sed"/><category term="server"/><category term="server failed to connect"/><category term="set password for ec2-user"/><category term="setting time zone in linux server"/><category term="short cut"/><category term="shotwell alternative"/><category term="show command in history"/><category term="showspace"/><category term="skype"/><category term="skype 4.3"/><category term="skype 64 bit"/><category term="software"/><category term="sony vaio laptop"/><category term="speech synthesis in linux"/><category term="squid"/><category term="squid3"/><category term="ssh"/><category term="ssh -L"/><category term="ssh -R"/><category term="ssh -t"/><category term="ssh tips"/><category term="ssh tricks"/><category term="startx not working"/><category term="stop watch"/><category term="stop watch timer"/><category term="stream packets over tcp"/><category term="sudo"/><category term="sudoers"/><category term="sum"/><category term="switch to root user"/><category term="sysadmin"/><category term="system administration"/><category term="system information"/><category term="system monitor in linux"/><category term="task manager in linux"/><category term="tatadocomo"/><category term="tekkidd"/><category term="testing and trouble shooting remote apps using ssh and port forward"/><category term="the best gnome shell experience"/><category term="three methods to install gnome shell in ubuntu"/><category term="thunderbird"/><category term="timer"/><category term="tips"/><category term="tips and tricks"/><category term="todos command"/><category term="tofrodos software"/><category term="top"/><category term="top alternative"/><category term="touchscreen laptop"/><category term="tricks"/><category term="trouble shoot"/><category term="troubleshooting X server issues"/><category term="tunneling"/><category term="ubuntu flickr uploader tool"/><category term="ubuntu linux troubleshooting"/><category term="ubuntu tweak"/><category term="uefi"/><category term="unblock ip from iptables rule"/><category term="unetbootin"/><category term="unity"/><category term="unstable build"/><category term="update skype from 4.2 to 4.3"/><category term="upgrade elementary os packages"/><category term="usb boot"/><category term="useful screen commands"/><category term="users"/><category term="using first day and last day of month in bash script"/><category term="using screen as remote teaching tool"/><category term="utc time in terminal"/><category term="utorrent alternative"/><category term="utorrent for linux"/><category term="vi"/><category term="vim tips and tricks"/><category term="virtualbox"/><category term="vostro"/><category term="wanda the fish"/><category term="wget and ftp"/><category term="wget tips and tricks"/><category term="windows 7"/><category term="windows 8"/><category term="windows boot manager"/><category term="wireless"/><category term="wireless drivers in crunchbang linux"/><category term="writable ntfs filesystem"/><category term="write data to ntfs in mac"/><category term="xtrabackup"/><category term="youtube viewer"/><category term="zfs"/><category term="zfs file system"/><category term="zte"/><title type='text'>The Geeky Linux :: Ubuntu/Linux blog :: Open source Tips and Tricks :: Linux Howtos and Tutorials</title><subtitle type='html'>Geeks Hang Out Here</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>70</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-2532613391501420045</id><published>2015-06-13T00:59:00.001+05:30</published><updated>2015-08-28T15:17:13.358+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="aspell"/><category scheme="http://www.blogger.com/atom/ns#" term="build-essential"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="make"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Install aspell dictionary in linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To install &quot;aspell&quot; in linux, follow the below steps:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
wget ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.tar.gz&lt;br /&gt;
tar -xvzf aspell-0.60.6.tar.gz&lt;br /&gt;
cd aspell-0.60.6/&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
This will install aspell at the location&amp;nbsp;/usr/local/bin/aspell. Make sure that you have build tools installed on your operating system. If you don&#39;t, you can install it using the below command in ubuntu :&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install linux-headers-$(uname -r) build-essential&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/2532613391501420045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2015/06/install-aspell-dictionary-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/2532613391501420045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/2532613391501420045'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2015/06/install-aspell-dictionary-in-linux.html' title='Install aspell dictionary in linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-8278281568759181948</id><published>2014-12-29T19:11:00.001+05:30</published><updated>2015-08-28T14:44:17.419+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="copy"/><category scheme="http://www.blogger.com/atom/ns#" term="key board"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="paste"/><category scheme="http://www.blogger.com/atom/ns#" term="putty"/><category scheme="http://www.blogger.com/atom/ns#" term="short cut"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to paste in putty in Ubuntu Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The key board short cut to paste the content from clipboard to putty terminal in Linux is &lt;b&gt;Ctrl+Shift+Insert&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
First copy the content using Ctrl+C. This will copy the content to buffer. Then go to putty terminal and press Ctrl+Shift+insert&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/8278281568759181948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2014/12/how-to-paste-in-putty-in-ubuntu-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8278281568759181948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8278281568759181948'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2014/12/how-to-paste-in-putty-in-ubuntu-linux.html' title='How to paste in putty in Ubuntu Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-7214700810556130916</id><published>2014-11-29T02:20:00.000+05:30</published><updated>2015-08-28T15:21:56.444+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="bsd"/><category scheme="http://www.blogger.com/atom/ns#" term="crunchbang"/><category scheme="http://www.blogger.com/atom/ns#" term="dragonflybsd"/><category scheme="http://www.blogger.com/atom/ns#" term="dual boot linux and bsd"/><category scheme="http://www.blogger.com/atom/ns#" term="dual boot pcbsd with ubuntu linux"/><category scheme="http://www.blogger.com/atom/ns#" term="dualboot"/><category scheme="http://www.blogger.com/atom/ns#" term="freebsd"/><category scheme="http://www.blogger.com/atom/ns#" term="grub"/><category scheme="http://www.blogger.com/atom/ns#" term="grub configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="grub2"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="openbsd"/><category scheme="http://www.blogger.com/atom/ns#" term="pc-bsd10"/><category scheme="http://www.blogger.com/atom/ns#" term="pcbsd"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="zfs"/><category scheme="http://www.blogger.com/atom/ns#" term="zfs file system"/><title type='text'>How to dual boot Linux (CrunchBang Linux) and PC-BSD 10 with ZFS file system</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is a tutorial which shows how to dual boot Linux and PC-BSD 10. PC-BSD 10 uses ZFS as the file system and grub for the boot manager. I was able to successfully dual boot PC-BSD and CrunchBang Linux in my laptop.&lt;br /&gt;
&lt;br /&gt;
I was able to achieve this after lots of trial and error methods. I have not found a valid guide in the internet to do it. All the tutorials were outdated or at least not working for me. I have spend a lot of time in the pc-bsd/freebsd irc channels and finally able to achieve this after trying out different suggestions from the irc members. Thanks to them all for the guidance.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;If you want to dual boot PC-BSD, first install the Linux os (in this case, CrunchBang Linux) and then install PC-BSD 10. This is because most of the Linux OS won&#39;t be able to detect ZFS (the default file system in PC-BSD 10). But PC-BSD grub will be able to detect EXT4 the default file system in most of the Linux distros. If you are looking for a tutorial for PC-BSD with UFS and Linux, you can find lot of guides in the interwebs. My guide only applies to PC-BSD with ZFS file system.&lt;br /&gt;
&lt;br /&gt;
1. Install Crunch Bang Linux&lt;br /&gt;
2. Copy the relevant part from the Crunch Bang Linux grub menu.&amp;nbsp; You can get it from the configuration file&amp;nbsp; &lt;b&gt;/boot/grub/grub.cfg&lt;/b&gt; . There will be lot of unwanted details in this menu but we will only need the one starts after the line &quot;### BEGIN /etc/grub.d/10_linux ###&quot; in this file .&lt;br /&gt;
&lt;br /&gt;
For example, below given is the relevant part from my Crunch Bang Linux grub configuration :&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;menuentry &#39;CrunchBang GNU/Linux, with Linux 3.2.0-4-amd64&#39; --class crunchbang --class gnu-linux --class gnu --class os {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load_video&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod gzio&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod part_msdos&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; insmod ext2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set root=&#39;(hd0,msdos5)&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; search --no-floppy --fs-uuid --set=root 1fa97d1a-97c2-45ab-ba94-1f692ce86756&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;Loading Linux 3.2.0-4-amd64 ...&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; linux&amp;nbsp;&amp;nbsp;&amp;nbsp; /boot/vmlinuz-3.2.0-4-amd64 root=UUID=1fa97d1a-97c2-45ab-ba94-1f692ce86756 ro&amp;nbsp; quiet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;Loading initial ramdisk ...&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; initrd&amp;nbsp;&amp;nbsp;&amp;nbsp; /boot/initrd.img-3.2.0-4-amd64&lt;br /&gt;}&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
And upload this to online website like http://pastie.org/ and take a note of the link. This is because we need to get this after we install PC-BSD and configuring it&#39;s grub&lt;br /&gt;
&lt;br /&gt;
3. Install PC-BSD 10 with ZFS as the file system&lt;br /&gt;
4. You won&#39;t see any option to boot Crunch Bang Linux after you install PC-BSD&lt;br /&gt;
5. Once you boot to PC-BSD, edit the grub configuration for PC-BSD&lt;br /&gt;
Open&lt;b&gt; &lt;span id=&quot;docs-internal-guid-c582dae5-f823-5b94-cd82-22f72a106acc&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;b&gt;/usr/local/etc/grub.d/40_custom &lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;span id=&quot;docs-internal-guid-c582dae5-f823-5b94-cd82-22f72a106acc&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;and add the earlier copied Crunch Bang Linux grub configuration to this file so that it will look like this.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span id=&quot;docs-internal-guid-c582dae5-f823-5b94-cd82-22f72a106acc&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c582dae5-f824-8f4d-bcd4-46916d10354d&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;cat /usr/local/etc/grub.d/40_custom&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;menuentry &#39;CrunchBang GNU/Linux, with Linux 3.2.0-4-amd64&#39; --class crunchbang --class gnu-linux --class gnu --class os {&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;load_video&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;insmod gzio&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;insmod part_msdos&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;insmod ext2&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;set root=&#39;(hd0,msdos5)&#39;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;search --no-floppy --fs-uuid --set=root 1fa97d1a-97c2-45ab-ba94-1f692ce86756&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;echo&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&#39;Loading Linux 3.2.0-4-amd64 ...&#39;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;linux &amp;nbsp;&amp;nbsp;/boot/vmlinuz-3.2.0-4-amd64 root=UUID=1fa97d1a-97c2-45ab-ba94-1f692ce86756 ro &amp;nbsp;quiet&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;echo&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&#39;Loading initial ramdisk ...&#39;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;initrd &amp;nbsp;/boot/initrd.img-3.2.0-4-amd64&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;br /&gt;
5. Update the grub configuration in PC-BSD with the below command&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c582dae5-f826-3089-5cd3-1a1777462e21&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;grub-mkconfig &amp;gt; /boot/grub/grub.cfg&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c582dae5-f826-3089-5cd3-1a1777462e21&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c582dae5-f826-d776-02db-6311ca16d2ce&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Then reboot and make sure that grub is showing the above entries.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Some times you need to do&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;“Hold Left-Shift for menu entries”&lt;/span&gt;&lt;/b&gt; to display all the boot entries.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c582dae5-f826-3089-5cd3-1a1777462e21&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/7214700810556130916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2014/11/how-to-dual-boot-linux-crunchbang-linux.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/7214700810556130916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/7214700810556130916'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2014/11/how-to-dual-boot-linux-crunchbang-linux.html' title='How to dual boot Linux (CrunchBang Linux) and PC-BSD 10 with ZFS file system'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-3260488888218556997</id><published>2014-10-24T08:15:00.000+05:30</published><updated>2014-10-24T08:15:30.396+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="crunchbang"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="icedove"/><category scheme="http://www.blogger.com/atom/ns#" term="install icedove in debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="thunderbird"/><category scheme="http://www.blogger.com/atom/ns#" term="wheezy"/><title type='text'>How to install Mozilla Thunderbird in CrunchBang Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There is no Mozilla Thunderbird package in CrunchBang Linux. So if you try&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install thunderbird&lt;br /&gt;
&lt;br /&gt;
it won&#39;t work. The Thunderbird is rebranded to Icedove in Debian. As CrunchBang is using Debian as upstream, it is Icedove in CrunchBang Linux also.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So we can install Thunderbird/Icedove using the below command in CrunchBang Linux and Debian.&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install icedove&lt;br /&gt;
&lt;br /&gt;
This is as simple as it is. Hope it helps.&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/3260488888218556997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2014/10/how-to-install-mozilla-thunderbird-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/3260488888218556997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/3260488888218556997'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2014/10/how-to-install-mozilla-thunderbird-in.html' title='How to install Mozilla Thunderbird in CrunchBang Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-8621302186833465480</id><published>2014-10-18T13:03:00.000+05:30</published><updated>2014-10-20T16:35:32.005+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="bcm43142"/><category scheme="http://www.blogger.com/atom/ns#" term="crunchbang"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="debian 7.6"/><category scheme="http://www.blogger.com/atom/ns#" term="dell"/><category scheme="http://www.blogger.com/atom/ns#" term="install broadcom wireless drivers in crunchbang"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="vostro"/><category scheme="http://www.blogger.com/atom/ns#" term="wheezy"/><category scheme="http://www.blogger.com/atom/ns#" term="wireless"/><category scheme="http://www.blogger.com/atom/ns#" term="wireless drivers in crunchbang linux"/><title type='text'>Install broadcom BCM43142 wireless drivers in CrunchBang Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Below given is the steps to install BCM43142 wireless drivers&amp;nbsp; in CrunchBang Linux.&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install linux-headers$(uname -r | grep -Po &quot;\-[a-z].*&quot;)&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install build-essential dkms&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you are using 32 bit, download the below deb file and install&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://drive.google.com/file/d/0B7FT1rIUqC3ScHJMOHlTREtWX1k/view?usp=sharing&quot;&gt;https://drive.google.com/file/d/0B7FT1rIUqC3ScHJMOHlTREtWX1k/view?usp=sharing&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
cd downloads&lt;br /&gt;
&lt;br /&gt;
sudo dpkg -i wireless-bcm43142-dkms-6.20.55.19_i386.deb&lt;br /&gt;
&lt;br /&gt;
If it is 64 bit,&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://drive.google.com/file/d/0B7FT1rIUqC3STjR3d0xMZGYzMW8/view?usp=sharing&quot;&gt;https://drive.google.com/file/d/0B7FT1rIUqC3STjR3d0xMZGYzMW8/view?usp=sharing&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
cd downloads&lt;br /&gt;
&lt;br /&gt;
sudo dpkg -i wireless-bcm43142-dkms-6.20.55.19_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Now reboot your machine and after the reboot, wireless will be working fine.&lt;br /&gt;
&lt;br /&gt;
This is tested on CrunchBang Linux based on Debian 7.6 Wheezy&lt;br /&gt;
&lt;br /&gt;
Credit goes to : &lt;a href=&quot;http://askubuntu.com/questions/175104/how-do-i-install-bcm43142-wireless-drivers-for-dell-vostro-3460-3560/&quot; target=&quot;_blank&quot;&gt;http://askubuntu.com/questions/175104/how-do-i-install-bcm43142-wireless-drivers-for-dell-vostro-3460-3560/ &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/8621302186833465480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2014/10/install-bcm43142-wireless-drivers-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8621302186833465480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8621302186833465480'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2014/10/install-bcm43142-wireless-drivers-in.html' title='Install broadcom BCM43142 wireless drivers in CrunchBang Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-5698121398714652026</id><published>2014-08-05T03:13:00.000+05:30</published><updated>2014-08-09T10:32:46.812+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="crunchbang"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="install skype in debian crunchbang linux with libqtweb4"/><category scheme="http://www.blogger.com/atom/ns#" term="installation"/><category scheme="http://www.blogger.com/atom/ns#" term="libqtweb4"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="server failed to connect"/><category scheme="http://www.blogger.com/atom/ns#" term="skype"/><category scheme="http://www.blogger.com/atom/ns#" term="skype 4.3"/><category scheme="http://www.blogger.com/atom/ns#" term="skype 64 bit"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="update skype from 4.2 to 4.3"/><title type='text'>How to fix &quot; skype depends on libqtwebkit4 (&gt;= 2.1.0~2011week13).&quot; error in debian/crunchbang 64 bit linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I have been using skype 4.2 version in my crunchbang 64 bit. Recently Microsoft has stopped supporting this version and users are showing an error &quot;server failed to connect&quot; while logging in to skype.&lt;br /&gt;
&lt;br /&gt;
So I have to update skype to 4.3 to fix the issue. I&#39;m using 64 bit crunchbang and Microsoft has only 32 it deb package for debain (which is what crunchbang is based on). So I have downloaded the deb file and when installing I was getting the below error :&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
skype:i386 : Depends: libqtwebkit4:i386 (&amp;gt;= 2.1.0~2011week13) but it is not going to be installed&lt;br /&gt;
&lt;br /&gt;
This is because our skype deb file is 32 bit and it depends on 32 bit libqtpwebkit4. This is how to install skype on debian/crunchbang.&lt;br /&gt;
&lt;br /&gt;
First download skype from the link :&lt;a href=&quot;http://www.skype.com/en/download-skype/skype-for-linux/downloading/?type=debian32&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;http://www.skype.com/en/download-skype/skype-for-linux/downloading/?type=debian32&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
dpkg --add-architecture i386&lt;br /&gt;
&lt;br /&gt;
apt-get -f install&lt;br /&gt;
&lt;br /&gt;
apt-get install libqtwebkit4:i386&lt;br /&gt;
&lt;br /&gt;
rm -rf ~/.Skype&lt;br /&gt;
&lt;br /&gt;
dpkg -i skype-debian_4.3.0.37-1_i386.deb&lt;br /&gt;
&lt;br /&gt;
I was able to successfully install skype 4.3 using this method. I wasn&#39;t able to find a accurate guide to install skype 4.3 in debian/crunchbang linux. So I hope this will help them install skype 4.3 in their machine.&lt;br /&gt;
&lt;br /&gt;
Please let me know if it works for you in the comments.&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/5698121398714652026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2014/08/how-to-fix-skype-depends-on.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5698121398714652026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5698121398714652026'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2014/08/how-to-fix-skype-depends-on.html' title='How to fix &quot; skype depends on libqtwebkit4 (&gt;= 2.1.0~2011week13).&quot; error in debian/crunchbang 64 bit linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-2388722602233917421</id><published>2013-12-08T21:03:00.000+05:30</published><updated>2013-12-08T21:59:15.876+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="accessing internal machines from public network using iptables and port forwarding in linux"/><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="firewall"/><category scheme="http://www.blogger.com/atom/ns#" term="iptables"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="opensuse"/><category scheme="http://www.blogger.com/atom/ns#" term="port forwarding"/><category scheme="http://www.blogger.com/atom/ns#" term="redhat"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Port forwarding port 80 of public static ip to internal machines port 8080 in centos using iptables</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I have a centos server acting as router. It has two ethernet ports eth0 and eth1. eth0 is configured with the public static ip got from my ISP. I have my internal machines connected to this centos os router machine using LAN in eth1.&lt;br /&gt;
&lt;br /&gt;
For example, assume that my public static ip given by my ISP is 123.45.567.89 and it is configured in eth0. In eth1 my internal machines are connected through LAN. Internal machines are in the ip range of 192.168.1.0 to 192.168.1.100&lt;br /&gt;
&lt;br /&gt;
I have a web application running on one of my internal machines with IP 192.168.1.10 on port 8080. I can access this web app from my internal network by typing http://192.168.1.10:8080/ in a web browser. But I want to get this application from my public static ip given by ISP by simply typing http://123.45.567.89/ in the web browser. How can I achieve this? By port forwarding. Follow the below steps to achieve this.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Enable port forwarding in linux kernel by adding the below line in sysctl&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;vi /etc/sysctl.conf&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;net.ipv4.ip_forward = 1&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;Then enable it by running the below command:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;sysctl -p&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;Now create the firewall rules for port forwarding.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;iptables -I FORWARD 1 -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;iptables -I FORWARD 1 -p tcp -d 123.45.567.89 --dport 80 -j ACCEPT&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;iptables -t nat -A PREROUTING -p tcp -d 123.45.567.89 --dport 80 -j DNAT --to-destination 192.168.1.10:8080&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;iptables -t nat -A POSTROUTING -j MASQUERADE&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;service iptables save &amp;gt; /etc/sysconfig/iptables&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;service iptables restart&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;Now just open the link http://123.45.567.89/ in web browser and it should open the app running on internal machine 192.168.1.10 on port 8080.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/2388722602233917421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/12/port-forwarding-port-80-of-public.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/2388722602233917421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/2388722602233917421'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/12/port-forwarding-port-80-of-public.html' title='Port forwarding port 80 of public static ip to internal machines port 8080 in centos using iptables'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-1066856640585108756</id><published>2013-12-08T20:46:00.000+05:30</published><updated>2013-12-08T21:59:29.444+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="3g"/><category scheme="http://www.blogger.com/atom/ns#" term="3g+"/><category scheme="http://www.blogger.com/atom/ns#" term="3gplus"/><category scheme="http://www.blogger.com/atom/ns#" term="dongle"/><category scheme="http://www.blogger.com/atom/ns#" term="high speed internet"/><category scheme="http://www.blogger.com/atom/ns#" term="idea"/><category scheme="http://www.blogger.com/atom/ns#" term="india"/><category scheme="http://www.blogger.com/atom/ns#" term="internet"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="mts"/><category scheme="http://www.blogger.com/atom/ns#" term="mts mblaze ultra"/><category scheme="http://www.blogger.com/atom/ns#" term="netconnect"/><category scheme="http://www.blogger.com/atom/ns#" term="reliance"/><category scheme="http://www.blogger.com/atom/ns#" term="tatadocomo"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="zte"/><title type='text'>Install MTS MBLAZE 3GPLUS/MBLAZE ULTRA dongle for ZTE in Ubuntu Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I had recently got &lt;a href=&quot;http://www.mtsindia.in/shop/mblaze-ultra-AC2792/index.html&quot; target=&quot;_blank&quot;&gt;MTS 3GPLUS dongle&lt;/a&gt;. It is made ZTE and really good news about it is that it supports Linux and it is mentioned in their website (you can view the supported os list in &quot;tech spec&quot;). I have tried it in Windows 8, OSX Mavericks and Ubuntu 13.04 and it works really well on all these platforms.&lt;br /&gt;
&lt;br /&gt;
In mac and windows, it will auto configure everything for you. But in Linux, you need to install it manually. When I plugged it into my ubuntu, it was detected as USB drive but there was no auto configure for it. Even I was not able to load the installation files in Ubuntu. Then I have to plug it into another Windows and was able to see it includes the files for installing it in Linux too.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So I copied the Linux installation files in a usb and copied it to Ubuntu and manually installed it.&lt;br /&gt;
&lt;br /&gt;
If you weren&#39;t able to get the installation for files for ubuntu, you can download it from &lt;a href=&quot;http://www.mediafire.com/download/s21rmdw4j4lbug1/ZTE_MBlaze_for_Ubuntu_linux.zip&quot; target=&quot;_blank&quot;&gt;this link&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Then unzip it and follow the below steps. I have unzipped it to Downloads folder and I did the below steps.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;cd Downloads/ZTEMBLZAE\ for\ Linux/&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;chmod +x autorun.sh&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;
&lt;i&gt;&lt;b&gt;sudo ./autorun.sh&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Then you need to reboot your Linux machine to load the required kernel modules. Once it has been rebooted you can start the MTS app by running the below commands in the terminal.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;ztemtapp &lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
This will give you the Graphical Interface and you can click &quot;connect&quot; to connect to the internet.&lt;br /&gt;
&lt;br /&gt;
Short review: I really liked it. It really has good internet speed and best option available in the market.&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/1066856640585108756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/12/install-mts-mblaze-3gplusmblaze-ultra.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/1066856640585108756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/1066856640585108756'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/12/install-mts-mblaze-3gplusmblaze-ultra.html' title='Install MTS MBLAZE 3GPLUS/MBLAZE ULTRA dongle for ZTE in Ubuntu Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-136328229862904098</id><published>2013-11-23T12:32:00.003+05:30</published><updated>2013-11-23T12:32:57.971+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="/etc/sudoers file"/><category scheme="http://www.blogger.com/atom/ns#" term="amazon"/><category scheme="http://www.blogger.com/atom/ns#" term="aws"/><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="disable root login through ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="ec2 instance"/><category scheme="http://www.blogger.com/atom/ns#" term="password authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="run only predefined command using sudoers"/><category scheme="http://www.blogger.com/atom/ns#" term="set password for ec2-user"/><category scheme="http://www.blogger.com/atom/ns#" term="sudoers"/><category scheme="http://www.blogger.com/atom/ns#" term="switch to root user"/><title type='text'>How to create a user to ssh to the server and then only have super user permission to switch to root user?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I don&#39;t want to ssh to my linux server as root user. So I have disabled the direct root login through ssh. I am using a less privileged user to ssh to the server. But I don&#39;t want to give him sudo privilege. The only privileged command this user (less privileged user) should be able to run is to switch to root user. How can I achieve this?&lt;br /&gt;
&lt;br /&gt;
I&#39;m using Amazon Linux (which is actually centos based) in my ec2 instance. It comes with &#39;ec2-user&#39; which has no password and but has sudo privilege and uses ssh key for login. I want to use password login for other users (and don&#39;t want to use ssh key for them)[So I can&#39;t disable password login &quot;PasswordAuthentication&amp;nbsp; no&quot; field in sshd_config file]. But I also want to set password for &#39;ec2-user&#39; as I don&#39;t want to use sudo command without password. I have used below setup to achieve this.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;NOTE: While doing the below steps, please make sure that you have opened a terminal and logged in to the ec2 instance and became root. Never close this terminal or log out of root user. Do below steps by connecting to the ec2 instance using another terminal. If you have messed up any of the command, there is a chance that you will be locked out of your server permanently.&amp;nbsp; I hope you understand what you are doing and I won&#39;t be responsible if you have locked out of your server. &lt;/b&gt;&lt;b&gt;These steps are intended for advanced users and also a note to myself.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. Log in to the ec2 instance as &#39;ec2-user&#39; using ssh key and became root by running &quot;sudo -s&quot; command which won&#39;t prompt for password.&lt;br /&gt;
&lt;br /&gt;
2. Setup password for root user using &quot;passwd&quot; command. Verify this password by opening another terminal and ssh to ec2 instance as root user (without ssh key)&lt;br /&gt;
&lt;br /&gt;
3. Disable direct root login through ssh by changing the below line in /etc/ssh/sshd_config file&lt;br /&gt;
&lt;br /&gt;
PermitRootLogin yes&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
PermitRootLogin no&lt;br /&gt;
&lt;br /&gt;
Restart sshd service using the below command&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/sshd restart &lt;br /&gt;
&lt;br /&gt;
Now try again to login as root user using password and it won&#39;t work. So we have successfully disabled ssh root login&lt;br /&gt;
&lt;br /&gt;
4. Set up password for &#39;ec2-user&#39; using the command &quot;passwd ec2-user&quot; . Run this command as root user. &lt;br /&gt;
&lt;br /&gt;
Now we have set up password for &#39;ec2-user&#39; and &#39;root&#39; user.&amp;nbsp; Verify the &#39;ec2-user&#39; password by logging in to ec2 instance without ssh key in another terminal and it will prompt for ec2-user password.&lt;br /&gt;
&lt;br /&gt;
5. Edit the below two files as root user and comment out below lines.&lt;br /&gt;
&lt;br /&gt;
Open /etc/sudoers.d/cloud-init and comment out below line and save it&lt;br /&gt;
&lt;br /&gt;
# ec2-user ALL=ALL:NOPASSWD ALL&lt;br /&gt;
&lt;br /&gt;
Open /etc/sudoers file and comment out the same&lt;br /&gt;
&lt;br /&gt;
# ec2-user ALL=ALL:NOPASSWD ALL&lt;br /&gt;
&lt;br /&gt;
Then before saving the /etc/sudoers file, add below lines to make &#39;ec2-user&#39; to give privilege to switch to root user&lt;br /&gt;
&lt;br /&gt;
##Below two lines make sure that ec2-user is able to switch to root user&lt;br /&gt;
##but not able to run any other privileged commands&lt;br /&gt;Cmnd_Alias SU=/bin/su&lt;br /&gt;ec2-user ALL=SU&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
&lt;br /&gt;
Then you can open another terminal and connect to the ec2 instance as ec2-user (without using ssh key). Then type below command to switch to root user.&lt;br /&gt;
&lt;br /&gt;
su - root&lt;br /&gt;
&lt;br /&gt;
Then give root user&#39;s password and you will become root.&lt;br /&gt;
&lt;br /&gt;
If you try, sudo -s as ec2-user, it will show error message as &#39;ec2-user&#39; is not allowed to run this command. &lt;br /&gt;
&lt;br /&gt;
This will make sure that if somebody need to do any administrative task in the server, he need to have ec2-user password as well as root user password.&lt;br /&gt;
&lt;br /&gt;
Hope it helps somebody. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/136328229862904098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/11/how-to-create-user-to-ssh-to-server-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/136328229862904098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/136328229862904098'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/11/how-to-create-user-to-ssh-to-server-and.html' title='How to create a user to ssh to the server and then only have super user permission to switch to root user?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-5416892966991801169</id><published>2013-11-23T11:48:00.000+05:30</published><updated>2015-08-28T15:31:23.000+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="administration"/><category scheme="http://www.blogger.com/atom/ns#" term="delete files"/><category scheme="http://www.blogger.com/atom/ns#" term="files with special characters"/><category scheme="http://www.blogger.com/atom/ns#" term="files with white space"/><category scheme="http://www.blogger.com/atom/ns#" term="find"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="remove old files"/><category scheme="http://www.blogger.com/atom/ns#" term="remove unused files and folders"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>How to delete file names with spaces older than 30 days in linux?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I want to delete files which are modified before 30 days from a public folder (uploads) in my linux server. The files are uploaded by different users so it includes white spaces and other characters in the file name. How can I automate this process?&lt;br /&gt;
&lt;br /&gt;
You can use any of the below commands to achieve this:&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;find /var/www/uploads/ -type f -mtime +30 -exec rm -f {} \;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;
&lt;i&gt;&lt;b&gt;find /var/www/uploads/ -type f -mtime +30 -delete&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both these commands will do the job for you. Then you can add it to cron job to automate this process.&lt;br /&gt;
&lt;br /&gt;
While using this command, you need to be careful and take necessary precautions.There may be other system files which has not been changed during 30 days in the server. So you need to make sure that these commands will affect only a particular folder. I have purposefully omitted removing directories in the above command.&lt;br /&gt;
&lt;br /&gt;
If you want to remove directories/folders also, you can omit &quot;-type f&quot; option. If you are using my first command, you need to change &quot;rm -f&quot; to &quot;rm -rf&quot; to remove folders. If you are using my second command, you don&#39;t need to make any changes except omitting the &quot;-type f&quot; option.&lt;br /&gt;
&lt;br /&gt;
Also you can make necessary changes to achieve other conditions also. You may use -atime for access time, -30 for reversing the days condition (not older than 30 days) etc. Make sure that you don&#39;t use system directories to run the find command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/5416892966991801169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/11/how-to-delete-file-names-with-spaces.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5416892966991801169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5416892966991801169'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/11/how-to-delete-file-names-with-spaces.html' title='How to delete file names with spaces older than 30 days in linux?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-8229954933345511083</id><published>2013-09-07T13:02:00.000+05:30</published><updated>2013-09-07T13:03:46.934+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="commandline"/><category scheme="http://www.blogger.com/atom/ns#" term="delete user from group without editing files"/><category scheme="http://www.blogger.com/atom/ns#" term="devops"/><category scheme="http://www.blogger.com/atom/ns#" term="hacks"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="remove user from group in linux with single command"/><category scheme="http://www.blogger.com/atom/ns#" term="sysadmin"/><category scheme="http://www.blogger.com/atom/ns#" term="system administration"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>How to delete a user from a group using single command in linux?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I have created a user called &#39;sam&#39; and he is a member of the group &#39;webdeveloper&#39;. Currently he is on long leave and I want to remove him from the web developer group without deleting this user. &amp;nbsp;How can I do this? We will find below.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
We can edit /etc/group file and remove the user &#39;sam&#39; from &#39;webdeveloper&#39; . But there is also another simple way by using a simple command.&lt;br /&gt;
&lt;br /&gt;
Use below command to remove user &#39;sam&#39; from group &#39;webdeveloper&#39; without editing any files.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;gpasswd -d sam webdeveloper&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
The general syntax is :&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;gpasswd -d user group&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/8229954933345511083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/09/how-to-delete-user-from-group-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8229954933345511083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8229954933345511083'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/09/how-to-delete-user-from-group-using.html' title='How to delete a user from a group using single command in linux?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-1859322881979504819</id><published>2013-08-08T22:45:00.001+05:30</published><updated>2013-08-08T22:45:47.683+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="10.8"/><category scheme="http://www.blogger.com/atom/ns#" term="copy files to ntfs in mac"/><category scheme="http://www.blogger.com/atom/ns#" term="external hard disk"/><category scheme="http://www.blogger.com/atom/ns#" term="hfs"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><category scheme="http://www.blogger.com/atom/ns#" term="mountain lion"/><category scheme="http://www.blogger.com/atom/ns#" term="nobrowse"/><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><category scheme="http://www.blogger.com/atom/ns#" term="writable ntfs filesystem"/><category scheme="http://www.blogger.com/atom/ns#" term="write data to ntfs in mac"/><title type='text'>How to mount NTFS filesystem as read-writable in Mac OSX 10.8 Mountain Lion</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Mountain Lion has built in support for read-writable NTFS filesystem. But it is enabled as read only by Apple. This means that you can only read from an NTFS formated hard disk but cannot write data to it.&lt;br /&gt;
&lt;br /&gt;
To make it is as read-writable is very easy. There is no need to install any third party half working solutions or expensive softwares. Follow below steps :&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1. Open the terminal app&lt;br /&gt;
&lt;br /&gt;
2. Become &#39;root&#39; by typing below command and give your current user&#39;s password&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;sudo -s&lt;br /&gt;
&lt;br /&gt;
3. Create a file called /etc/fstab (it won&#39;t be there so we need to create it). I&#39;ll use vi editor here.&lt;br /&gt;
&lt;br /&gt;
vi /etc/fstab&lt;br /&gt;
&lt;br /&gt;
4. Write below lines to it and save the file. Replace &quot;My Passport&quot; with your external hard disk&#39;s name. You can use 40 to represent space. So &quot;My Passport&quot; become &quot;My40Passport&quot;&lt;br /&gt;
&lt;br /&gt;
LABEL=My40Passport none ntfs rw,auto,nobrowse&lt;br /&gt;
&lt;br /&gt;
5. Now remove the external hard disk and reconnect it.&lt;br /&gt;
&lt;br /&gt;
6. If it is not showing in the Finder, just open a terminal and type below command to open it.&lt;br /&gt;
&lt;br /&gt;
open /Volumes/My\ Passport/&lt;br /&gt;
&lt;br /&gt;
7. Now try copying some files from your Mac to this external hard disk and it should be working now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Source : apple forums&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/1859322881979504819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/08/how-to-mount-ntfs-filesystem-as-read.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/1859322881979504819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/1859322881979504819'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/08/how-to-mount-ntfs-filesystem-as-read.html' title='How to mount NTFS filesystem as read-writable in Mac OSX 10.8 Mountain Lion'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-1930675600340935712</id><published>2013-08-03T20:10:00.000+05:30</published><updated>2015-08-28T15:33:18.096+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="beta release"/><category scheme="http://www.blogger.com/atom/ns#" term="bleeding edge"/><category scheme="http://www.blogger.com/atom/ns#" term="cutting edge"/><category scheme="http://www.blogger.com/atom/ns#" term="daily ppa"/><category scheme="http://www.blogger.com/atom/ns#" term="distro"/><category scheme="http://www.blogger.com/atom/ns#" term="distro hopper"/><category scheme="http://www.blogger.com/atom/ns#" term="elementary apps"/><category scheme="http://www.blogger.com/atom/ns#" term="elementary os"/><category scheme="http://www.blogger.com/atom/ns#" term="eos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="luna"/><category scheme="http://www.blogger.com/atom/ns#" term="testing"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="unstable build"/><category scheme="http://www.blogger.com/atom/ns#" term="upgrade elementary os packages"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualbox"/><title type='text'>Download and install the bleeding edge version of elementary os</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This post is more like&amp;nbsp; a note to myself.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://elementaryos.org/&quot; target=&quot;_blank&quot;&gt;Elementary OS&lt;/a&gt; is a distro which uses ubuntu as its base os. But unlike the other ubuntu based distros it&#39;s a class apart. It uses its own custom developed applications,icons and themes and everything works as a coherent unit.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The os is still in beta as developers want to release a thoroughly tested stable version for its users.&lt;br /&gt;
&lt;br /&gt;
But that didn&#39;t force you to wait for its stable release. You can try the unstable builds (which are actually pretty stable). I was using the bleeding edge version of eOS for last 6 months or so until I purchase the new laptop (in which I installed Ubuntu 13.04 with dual booting Windows 8). So this time I decided to try it in Virtual Box.&lt;br /&gt;
&lt;br /&gt;
So these are the links:&lt;br /&gt;
&lt;br /&gt;
Go to &lt;a href=&quot;http://sourceforge.net/projects/elementaryos/files/unstable/&quot;&gt;http://sourceforge.net/projects/elementaryos/files/unstable/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Download the latest released iso (should be the first one)&lt;br /&gt;
&lt;br /&gt;
I was also using the &lt;a href=&quot;https://launchpad.net/~elementary-os/+archive/daily&quot; target=&quot;_blank&quot;&gt;elementary daily ppa&lt;/a&gt; to update my old eOS installation daily.&lt;br /&gt;
&lt;br /&gt;
So once installed the latest unstable build, add the daily ppa to it.&lt;br /&gt;
&lt;br /&gt;
sudo add-apt-repository ppa:elementary-os/daily &lt;br /&gt;
&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&lt;br /&gt;
This will keep all your installed eOS packages to bleeding edge.&lt;br /&gt;
&lt;br /&gt;
If you are looking for the beta release image, please &lt;a href=&quot;http://elementaryos.org/journal/luna-beta-2-released&quot; target=&quot;_blank&quot;&gt;download it from here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Warning :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Bleeding edge shouldn&#39;t be used on a production system. It is only for testing purpose and to attain our own geeky nirvana.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/1930675600340935712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/08/download-and-install-bleeding-edge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/1930675600340935712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/1930675600340935712'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/08/download-and-install-bleeding-edge.html' title='Download and install the bleeding edge version of elementary os'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-8123374269118218506</id><published>2013-07-30T20:29:00.001+05:30</published><updated>2015-08-28T15:35:31.902+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="alsa sound upgrade"/><category scheme="http://www.blogger.com/atom/ns#" term="audio not working"/><category scheme="http://www.blogger.com/atom/ns#" term="built in speaker not working"/><category scheme="http://www.blogger.com/atom/ns#" term="headset working but built in speaker not working"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="raring ringtail 13.04"/><category scheme="http://www.blogger.com/atom/ns#" term="sony vaio laptop"/><category scheme="http://www.blogger.com/atom/ns#" term="touchscreen laptop"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="uefi"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><title type='text'>How to fix the &quot;built in speaker not working&quot; issue in laptops with Ubuntu 13.04 (UEFI)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Recently I have bought a new &lt;a href=&quot;http://www.flipkart.com/sony-vaio-fit-15e-f15215sn-w-laptop-3rd-gen-ci3-2gb-500gb-win8-touch/p/itmdm64y4hdjbtjs?pid=COMDM64TZKAD9CJC&amp;amp;affid=thegeekyli&quot; target=&quot;_blank&quot;&gt;Sony Vaio touchscreen laptop&lt;/a&gt; with Windows 8 UEFI boot (laptop is really good and I highly recommend it) . It was fairly easy to install Ubuntu 13.04 along side windows 8. I was successfully able to dual boot Windows 8 and Ubuntu in this laptop.&lt;br /&gt;
&lt;br /&gt;
In Windows 8 as expected everything worked perfectly out of the box but it was a different story in Ubuntu. I have spent almost 3 weekends for a solution and finally found the solution from some of the old bug reports dated back to Ubuntu 8.04.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The issue was that that the laptop&#39;s built in speaker didn&#39;t work out of the box. But audio is working perfectly if we plug in a headphone. So I can confirm that the issue a just with the built in speaker audio driver with Ubuntu.&lt;br /&gt;
&lt;br /&gt;
I have found so many other users are also affected by this same issue. So I have tried all the available solutions in askubuntu forums like changing the alsa module (editing /etc/modprobe.d/alsa-base.conf ) and upgrading the kernel (my kernel is 3.8.0-19-generic). Nothing worked and finally I ended up with no sound at all, even from the headset.&lt;br /&gt;
&lt;br /&gt;
So I re-installed Ubuntu and fixed the issue with below solution.&lt;br /&gt;
&lt;br /&gt;
It is just that update your alsa package from ubuntu audio development team. Just download the correct verion of your alsa from &lt;a href=&quot;https://code.launchpad.net/~ubuntu-audio-dev/+archive/alsa-daily/+packages&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; , install it and then reboot your computer.&lt;br /&gt;
&lt;br /&gt;
After the reboot, sound should be working from the built in speaker as well as headset. Also I can confirm that there was no issue like sound is playing from both headset and built in speaker at the same time.&lt;br /&gt;
&lt;br /&gt;
So for my Ubuntu 13.04 64 bit (only 64 bit has UEFI support), I have downloaded &quot;raring build&quot;. In terminal (CTL+ALT+T) type below commands&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;cd ~/Downloads/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;wget https://code.launchpad.net/~ubuntu-audio-dev/+archive/alsa-daily/+files/oem-audio-hda-daily-dkms_0.201307180559~raring1_all.deb&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;sudo dpk -i oem-audio-hda-daily-dkms_0.201307180559~raring1_all.deb&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Then reboot,&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;sudo init 6&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
After the reboot, check your sound and it should be working as&amp;nbsp; it should be.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If this has helped to fix your sound issue, please let us know in the comments with the below details. This will be really helpful to other users who are also suffering from the same issue:&lt;br /&gt;
&lt;br /&gt;
* * * * * * * * * * * * * * * * * * * * * * * * *&lt;br /&gt;
&lt;br /&gt;
Laptop :&lt;br /&gt;
&lt;br /&gt;
Sony VAIO Fit 15E F15215SN/W &lt;a href=&quot;http://www.flipkart.com/sony-vaio-fit-15e-f15215sn-w-laptop-3rd-gen-ci3-2gb-500gb-win8-touch/p/itmdm64y4hdjbtjs?pid=COMDM64TZKAD9CJC&amp;amp;affid=thegeekyli&quot;&gt;&lt;img src=&quot;http://img8a.flixcart.com/www/prod/images/buy_btn_3-8274fe91.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Sound Card : &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;sudo aplay -l&lt;/b&gt;&lt;br /&gt;
**** List of PLAYBACK Hardware Devices ****&lt;br /&gt;
card 0: PCH [HDA Intel PCH], device 0: ALC233 Analog [ALC233 Analog]&lt;br /&gt;
&amp;nbsp; Subdevices: 0/1&lt;br /&gt;
&amp;nbsp; Subdevice #0: subdevice #0&lt;br /&gt;
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]&lt;br /&gt;
&amp;nbsp; Subdevices: 1/1&lt;br /&gt;
&amp;nbsp; Subdevice #0: subdevice #0&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt;sudo lspci -v | grep -A7 -i &quot;audio&quot;&lt;/b&gt;&lt;br /&gt;
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Subsystem: Sony Corporation Device 90b8&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags: bus master, fast devsel, latency 0, IRQ 45&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory at c0810000 (64-bit, non-prefetchable) [size=16K]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Capabilities: [50] Power Management version 2&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Capabilities: [100] Virtual Channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/8123374269118218506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/07/how-to-fix-built-in-speaker-not-working.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8123374269118218506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8123374269118218506'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/07/how-to-fix-built-in-speaker-not-working.html' title='How to fix the &quot;built in speaker not working&quot; issue in laptops with Ubuntu 13.04 (UEFI)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-5033448438713328255</id><published>2013-07-12T16:10:00.001+05:30</published><updated>2013-07-12T16:10:16.548+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="editor"/><category scheme="http://www.blogger.com/atom/ns#" term="escalate privilege within vim editor"/><category scheme="http://www.blogger.com/atom/ns#" term="root privilege inside vim"/><category scheme="http://www.blogger.com/atom/ns#" term="save vim with sudo privilege"/><category scheme="http://www.blogger.com/atom/ns#" term="save with root privilege"/><category scheme="http://www.blogger.com/atom/ns#" term="save with sudo privilege"/><category scheme="http://www.blogger.com/atom/ns#" term="sudo"/><category scheme="http://www.blogger.com/atom/ns#" term="vi"/><category scheme="http://www.blogger.com/atom/ns#" term="vim"/><title type='text'>How to save using vim editor with sudo privilege</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Some times we will start editing the configuration files or the files which need root privilege in vi/vim and once we are about to save it, we will understand that we haven&#39;t edited it with sudo privilege.&lt;br /&gt;
&lt;br /&gt;
It may be almost impossible to think quitting the editor without saving (:q!) and start it all over agin.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
But not to worry, vi has the trick to quit the editor by saving it even if you haven&#39;t opened with sudo privilege.&lt;br /&gt;
&lt;br /&gt;
So when you are in same situation, while saving use,&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;:w !sudo tee %&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;
Then it will ask to type the sudo password, type the password. Now it is saved. Then you can type :q! quit it.&lt;br /&gt;
&lt;br /&gt;
You can see that your changes has been saved.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/5033448438713328255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/07/how-to-save-using-vim-editor-with-sudo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5033448438713328255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5033448438713328255'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/07/how-to-save-using-vim-editor-with-sudo.html' title='How to save using vim editor with sudo privilege'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-3117896692590612158</id><published>2013-06-27T21:11:00.002+05:30</published><updated>2013-06-27T21:13:06.857+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="festival text to speech"/><category scheme="http://www.blogger.com/atom/ns#" term="ffmpeg"/><category scheme="http://www.blogger.com/atom/ns#" term="flite"/><category scheme="http://www.blogger.com/atom/ns#" term="flite tts"/><category scheme="http://www.blogger.com/atom/ns#" term="flite tts android"/><category scheme="http://www.blogger.com/atom/ns#" term="google tts alternative"/><category scheme="http://www.blogger.com/atom/ns#" term="guide"/><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="opensource"/><category scheme="http://www.blogger.com/atom/ns#" term="speech synthesis in linux"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>Install flite (festival lite) text to speech system in linux </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.speech.cs.cmu.edu/flite/&quot; target=&quot;_blank&quot;&gt;Flite&lt;/a&gt; is text to speech engine for linux. It is based on &lt;a href=&quot;http://en.wikipedia.org/wiki/Festival_Speech_Synthesis_System&quot; target=&quot;_blank&quot;&gt;festival speech synthesis system&lt;/a&gt;. Most of the linux sytems comes with flite in its package manager. It&#39;s just a apt-get on debian based or yum install in rpm based systems.&lt;br /&gt;
&lt;br /&gt;
For example, you can install it on centos with below command:&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;yum install flite-devel&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
If it is not available in your system, you can compile and install it. &lt;br /&gt;
&lt;br /&gt;
1.&amp;nbsp;&amp;nbsp; Download Flite 1.3&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;wget http://www.speech.cs.cmu.edu/flite/packed/flite-1.3/flite-1.3-release.tar.gz &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
2.&amp;nbsp;&amp;nbsp; Download patch to enable Flite 1.3 to build shared libraries and save it in the same directory as flite-1.3-release.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;wget http://asterisk-flite.sourceforge.net/extras/flite-1.3-sharedlibs.patch&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; 3.&amp;nbsp; Download patch to enable ALSA support for Flite 1.3 and save it in the same directory as the previous patch file&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;wget http://asterisk-flite.sourceforge.net/extras/flite-1.3-alsa_support.patch&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;4. &amp;nbsp; In a terminal, go to the directory where the files were saved&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; Extract flite:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tar -xzvf flite-1.3-release.tar.gz&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; 5. Change to the extracted flite directory:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd flite-1.3-release&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; 6.&amp;nbsp; Apply the patches:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; patch -p1 &amp;lt; ../flite-1.3-sharedlibs.patch&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; patch -p1 &amp;lt; ../flite-1.3-alsa_support.patch&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 7.&amp;nbsp; Apply the patches:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;i&gt;&amp;nbsp;&amp;nbsp; patch -p1 &amp;lt; ../flite-1.3-sharedlibs.patch&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; patch -p1 &amp;lt; ../flite-1.3-alsa_support.patch&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 8. Configure &amp;amp; compile flite:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./configure --enable-shared --with-audio=alsa&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; make&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 9. Install flite to the system:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; su -c &#39;make install&#39;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;Reference: &lt;a href=&quot;http://asterisk-flite.sourceforge.net/&quot;&gt;http://asterisk-flite.sourceforge.net/&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/3117896692590612158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/install-flite-festival-lite-text-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/3117896692590612158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/3117896692590612158'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/install-flite-festival-lite-text-to.html' title='Install flite (festival lite) text to speech system in linux '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-1497491170647348547</id><published>2013-06-23T17:29:00.000+05:30</published><updated>2013-06-23T17:29:05.453+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup transfer using ftp and wget"/><category scheme="http://www.blogger.com/atom/ns#" term="ftp download using wget recursively"/><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="recursively download files from remote server using ftp with wget"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="wget and ftp"/><category scheme="http://www.blogger.com/atom/ns#" term="wget tips and tricks"/><title type='text'>How to download files recursively using wget as ftp client</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I like to use rsync for scp for transferring files from another server whenever possible. But sometimes, we will be limited to use ftp for the same task due to different ssh port than the standard 22 as scp and rsync uses ssh.&lt;br /&gt;
&lt;br /&gt;
Downloading each file separately one after another is tedious task than recursively download them. We can use wget with ftp protocol for recursively downloading files from another server. We will find out how to do this below.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;We can use the below syntax for downloading file using wget recursively.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;wget -r &lt;a class=&quot;ot-anchor&quot; href=&quot;ftp://server.com/&quot; rel=&quot;nofollow&quot;&gt;ftp://server.com/&lt;/a&gt;&amp;nbsp;--user username --password &#39;password&#39;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Here -r make sure that files are downloaded recursively. If you want to download a specific folder and its contents recursively, change the command accordingly.&lt;br /&gt;
&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
For example, to download only the blog folder of main site from remote server which is located at /home/user/public_html/blog&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;wget -r ftp://server.com/public_html/blog --user username --password &#39;password&#39;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
If we need to just download a backup file at home directory of user, there is no need for -r (recursive) switch.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&amp;nbsp;wget&amp;nbsp; ftp://192.168.0.1/mybackup.tar.gz --user username --password &#39;password&#39;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This will download the file&amp;nbsp;&lt;i&gt; &lt;/i&gt;current working directory.&lt;br /&gt;
&lt;br /&gt;
Some times some servers won&#39;t allow ftp in passive mode. Then we need to use below command with&lt;i&gt; --no-passive-ftp&lt;/i&gt; switch&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;b&gt;&lt;i&gt;&amp;nbsp;wget -r ftp://server.com/mybackup.tar.gz --user username --password &#39;password&#39; --no-passive-ftp&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As you see above, there is no need to use server.com, but you can use the server&#39;s resolving ip address instead and it will save some dns look ups and make the process faster, a bit faster.&lt;br /&gt;
&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/1497491170647348547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-download-files-recursively-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/1497491170647348547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/1497491170647348547'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-download-files-recursively-using.html' title='How to download files recursively using wget as ftp client'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-9043109222205758922</id><published>2013-06-23T17:14:00.000+05:30</published><updated>2013-06-23T17:14:26.228+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="autostart dropbox at reboot"/><category scheme="http://www.blogger.com/atom/ns#" term="commandline tools"/><category scheme="http://www.blogger.com/atom/ns#" term="cronjob"/><category scheme="http://www.blogger.com/atom/ns#" term="crontab scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="howto guide"/><category scheme="http://www.blogger.com/atom/ns#" term="linux dropbox tutorials"/><category scheme="http://www.blogger.com/atom/ns#" term="linux server backup using dropbox"/><title type='text'>How to autostart dropbox linux client daemon at server reboot </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We have seen the script to &lt;a href=&quot;http://www.thegeekylinux.com/2013/06/script-to-check-whether-dropbox.html&quot; target=&quot;_blank&quot;&gt;start dropbox linux client daemon to start automatically if it is getting killed before&lt;/a&gt;. But how to autostart the client at server reboot?&lt;br /&gt;
&lt;br /&gt;
As usual we can add the script to cronjob to take care of this. We will find this how below.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;My dropbox client is at /usr/local/src/dropbox.py. You can find your dropbox client location by running the below command:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;which dropbox&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;/usr/local/src/dropbox.py&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Now create a crontab entry to start this daemon at reboot&lt;br /&gt;
&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;crontab -e&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;i&gt;@reboot/usr/local/src/dropbox.py start&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
That&#39;s all. Now your dropbox client will autostart at reboot&amp;nbsp; as this cron will run at after the system reboot.&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/9043109222205758922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-autostart-dropbox-linux-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/9043109222205758922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/9043109222205758922'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-autostart-dropbox-linux-client.html' title='How to autostart dropbox linux client daemon at server reboot '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-5585353577967005401</id><published>2013-06-23T17:07:00.000+05:30</published><updated>2013-06-23T17:07:35.534+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="autostart dropbox daemon if it is stopped"/><category scheme="http://www.blogger.com/atom/ns#" term="commandline"/><category scheme="http://www.blogger.com/atom/ns#" term="cronjob"/><category scheme="http://www.blogger.com/atom/ns#" term="dropbox"/><category scheme="http://www.blogger.com/atom/ns#" term="dropbox linux commmand line client daemon autostart script"/><category scheme="http://www.blogger.com/atom/ns#" term="guide"/><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linux backup"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>Script to check whether dropbox (dropboxd daemon) is running in linux server using command line</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Now a days more people are using dropbox for backup in linux servers. Dropbox is a great product which has their client in all major platforms. So this is really ideal for using in linux servers too.&lt;br /&gt;
&lt;br /&gt;
Dropbox runs dropboxd daemon in the server to check for updates and syncing the contents between its clients across different platforms. Sometimes this daemon will get killed and our backup process will be in jeopardy.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
This is a small script which will check whether the dropbox daemon is running in linux server and if not automatically start it. Add this script to cronjobs and you are set.&lt;br /&gt;
&lt;br /&gt;
The script is given below:&lt;br /&gt;
&lt;br /&gt;
Create a file named&amp;nbsp; &lt;i&gt;  &lt;/i&gt;/root/dropbox_checker.sh&lt;br /&gt;
&lt;br /&gt;
vi&amp;nbsp;  /root/dropbox_checker.sh&lt;br /&gt;
&lt;br /&gt;
Add below script to it. &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;#!/bin/bash&lt;br /&gt;if /usr/local/src/dropbox.py running &amp;amp;&amp;amp; [ $? -eq 0 ]; then&lt;br /&gt;/usr/local/src/dropbox.py start&lt;br /&gt;else&lt;br /&gt;echo &quot;dropbox is already running&quot;&lt;br /&gt;fi&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Add it to cronjobs.&lt;br /&gt;
&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
&lt;i&gt;crontab -e&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;&lt;i&gt;0 * * * * sh /root/dropbox_checker.sh &amp;amp;&amp;gt; /dev/null&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Now this will check whether the dropbox daemon is running in every hour and if not automatically start it.&lt;br /&gt;
&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/5585353577967005401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/script-to-check-whether-dropbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5585353577967005401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5585353577967005401'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/script-to-check-whether-dropbox.html' title='Script to check whether dropbox (dropboxd daemon) is running in linux server using command line'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-4643508155804957312</id><published>2013-06-08T18:58:00.000+05:30</published><updated>2013-06-08T19:11:54.903+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="delete an iptables rule"/><category scheme="http://www.blogger.com/atom/ns#" term="firewall"/><category scheme="http://www.blogger.com/atom/ns#" term="flush iptables"/><category scheme="http://www.blogger.com/atom/ns#" term="iptables help"/><category scheme="http://www.blogger.com/atom/ns#" term="linux commands"/><category scheme="http://www.blogger.com/atom/ns#" term="linux iptables"/><category scheme="http://www.blogger.com/atom/ns#" term="redhat"/><category scheme="http://www.blogger.com/atom/ns#" term="remove all iptables rules"/><title type='text'>Delete all iptables rules in linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.thegeekylinux.com/2013/06/how-to-remove-rule-from-iptables.html&quot; target=&quot;_blank&quot;&gt;We have seen how to remove a particular IP from the iptables rule&lt;/a&gt;. Now what if we want to remove all the iptables rule?&lt;br /&gt;
&lt;br /&gt;
We can use the below command to remove all iptables rule.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;iptables --flush&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If we want to remove a particular chain rule use below command:&lt;br /&gt;
&lt;br /&gt;
iptables --flush &#39;chain name&#39;&lt;br /&gt;
&lt;br /&gt;
For example, to remove all INPUT rules use below command:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;iptables --flush INPUT&lt;/i&gt;&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Finally save it by running the below command:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;/etc/init.d/iptables save&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/4643508155804957312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/delete-all-iptables-rules-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/4643508155804957312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/4643508155804957312'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/delete-all-iptables-rules-in-linux.html' title='Delete all iptables rules in linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-7230922818488138298</id><published>2013-06-08T17:52:00.000+05:30</published><updated>2013-06-08T18:57:31.371+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="delete an iptables rule"/><category scheme="http://www.blogger.com/atom/ns#" term="iptables blacklist removal"/><category scheme="http://www.blogger.com/atom/ns#" term="linux iptables"/><category scheme="http://www.blogger.com/atom/ns#" term="redhat"/><category scheme="http://www.blogger.com/atom/ns#" term="remove rule from iptables"/><category scheme="http://www.blogger.com/atom/ns#" term="unblock ip from iptables rule"/><title type='text'>How to remove a rule from iptables</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I want to remove a rule from iptables which used to block one of the IPs to and from the server. How can I remove it? We will find it below.&lt;br /&gt;
&lt;br /&gt;
IP which is blocked: 123.456.78.90&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will basically cut off all the tcp communication from and to my server for the IP 123.456.78.90&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Now I want to remove this rule so that 123.456.78.90 can easily connect to my server.&lt;br /&gt;
&lt;br /&gt;
So first I need to check which line number this rule is using below command.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;iptables -vnL --line-numbers | grep&amp;nbsp; 123.456.78.90&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 DROP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123.456.78.90&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 DROP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123.456.78.90 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
The first column is the line number. This is one of the key thing which we need.&lt;br /&gt;
&lt;br /&gt;
Now we also need to know which &#39;Chain&#39;&amp;nbsp; this rule comes under. To know this I grep the IP in /etc/sysconfig/iptables file which is used to store all the iptables rules in plain text. In our example, the Chain this rule comes under is &#39;TDENY&#39;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;
&lt;b&gt;&lt;i&gt;grep 123.456.78.90 /etc/sysconfig/iptables&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
-A TDENY -s 123.456.78.90/32 &amp;nbsp; -j DROP &lt;br /&gt;
-A TDENY -d 123.456.78.90/32 -j DROP&lt;br /&gt;
&lt;br /&gt;
The command to remove these two rules are:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;iptables -D TDENY 7&lt;br /&gt;iptables -D TDENY 8&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The format is&lt;br /&gt;
&lt;br /&gt;
iptables -D &#39;chain type&#39; &#39;line number&#39;&lt;br /&gt;
&lt;br /&gt;
And don&#39;t forget to save your work. To save it use below command:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;/etc/init.d/iptables save&lt;/i&gt;&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/7230922818488138298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-remove-rule-from-iptables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/7230922818488138298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/7230922818488138298'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-remove-rule-from-iptables.html' title='How to remove a rule from iptables'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-6581144959778719209</id><published>2013-06-06T07:39:00.000+05:30</published><updated>2013-06-06T07:43:34.629+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="developing go programs in ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="executing golang programs"/><category scheme="http://www.blogger.com/atom/ns#" term="go in ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="go language tools"/><category scheme="http://www.blogger.com/atom/ns#" term="go programming"/><category scheme="http://www.blogger.com/atom/ns#" term="go programming in ubuntu linux"/><category scheme="http://www.blogger.com/atom/ns#" term="go tools"/><category scheme="http://www.blogger.com/atom/ns#" term="google go"/><category scheme="http://www.blogger.com/atom/ns#" term="install go  in ubntu"/><category scheme="http://www.blogger.com/atom/ns#" term="linux programming"/><title type='text'>How to install go language tools in ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In the latest version of Ubuntu, the go language tools may be already available in the repos. In that case try,&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; sudo apt-get install golang&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
If it is not working, add go tools PPA and install it.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; sudo add-apt-repository ppa:gophers/go&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; sudo apt-get update&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp; sudo apt-get install golang-stable&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Then create a go lang program, say helloword.go and run it to test it.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;cat helloworld.go &lt;/b&gt;&lt;br /&gt;package main&lt;br /&gt;&lt;br /&gt;import &quot;fmt&quot;&lt;br /&gt;&lt;br /&gt;func main() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fmt.Println(&quot;Hello World&quot;)&lt;br /&gt;}&lt;/i&gt;&lt;br /&gt;
Then run it,&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&amp;nbsp;go run helloworld.go&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
If everything is okay, it will give the below output and you are good to go.&lt;br /&gt;
&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;Hello World&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference: &lt;br /&gt;
&lt;a href=&quot;http://code.google.com/p/go-wiki/wiki/Ubuntu&quot;&gt;http://code.google.com/p/go-wiki/wiki/Ubuntu&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://golang.org/doc/install&quot;&gt;http://golang.org/doc/install&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/6581144959778719209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-install-go-language-tools-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/6581144959778719209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/6581144959778719209'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-install-go-language-tools-in.html' title='How to install go language tools in ubuntu'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-8240291077220620949</id><published>2013-06-05T13:05:00.001+05:30</published><updated>2013-06-05T13:06:38.773+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="execute program"/><category scheme="http://www.blogger.com/atom/ns#" term="executing golang programs"/><category scheme="http://www.blogger.com/atom/ns#" term="go programming"/><category scheme="http://www.blogger.com/atom/ns#" term="go tools"/><category scheme="http://www.blogger.com/atom/ns#" term="golang"/><category scheme="http://www.blogger.com/atom/ns#" term="golang programming"/><category scheme="http://www.blogger.com/atom/ns#" term="run go program"/><category scheme="http://www.blogger.com/atom/ns#" term="run golang program"/><title type='text'>How to run a golang program</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Go is a language developed at google. The golang programs are generally having the extension &#39;&lt;i&gt;.go&lt;/i&gt;&#39;.&lt;br /&gt;
&lt;br /&gt;
So this is how we run a golang program.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;go run helloworld.go&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
This is the program&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;cat helloworld.go &lt;/b&gt;&lt;br /&gt;
&lt;i&gt;package main&lt;br /&gt;&lt;br /&gt;import &quot;fmt&quot;&lt;br /&gt;&lt;br /&gt;func main() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fmt.Println(&quot;Hello World&quot;)&lt;br /&gt;}&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
When we execute it, we get the below output.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;go run helloworld.go &lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Hello World&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/8240291077220620949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-run-golang-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8240291077220620949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/8240291077220620949'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-run-golang-program.html' title='How to run a golang program'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-5943191643980936846</id><published>2013-06-05T12:17:00.001+05:30</published><updated>2013-06-05T12:17:34.142+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash script not working solutions"/><category scheme="http://www.blogger.com/atom/ns#" term="bash scripting"/><category scheme="http://www.blogger.com/atom/ns#" term="debugging bash scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="linux command tips and tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="linux commandline"/><category scheme="http://www.blogger.com/atom/ns#" term="mastering linux command line"/><category scheme="http://www.blogger.com/atom/ns#" term="run bash script in debug mode"/><category scheme="http://www.blogger.com/atom/ns#" term="shell scripting"/><title type='text'>How to run bash script in debug mode</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Running the bash script in debug mode help us understand what is going on in the script before getting the output. This also help us find why our program didn&#39;t run if there is any issue.&lt;br /&gt;
&lt;br /&gt;
It is just like step by step processing of the bash program.&lt;br /&gt;
&lt;br /&gt;
We can use the below command to run the bash script in debug mode in run time.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;i&gt;bash -x mybashscript.sh&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is my bash script which will print 1 2 and 3 in each line&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;cat mybashscript.sh &lt;/b&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;for i in {1,2,3}&lt;br /&gt;do &lt;br /&gt;echo $i&lt;br /&gt;done&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
This is the output of the script (without debug mode)&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;./mybashscript.sh &lt;/b&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
This is the output when the script is run in debug mode&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;bash -x mybashscript.sh &lt;/b&gt;&lt;br /&gt;+ for i in &#39;{1,2,3}&#39;&lt;br /&gt;+ echo 1&lt;br /&gt;1&lt;br /&gt;+ for i in &#39;{1,2,3}&#39;&lt;br /&gt;+ echo 2&lt;br /&gt;2&lt;br /&gt;+ for i in &#39;{1,2,3}&#39;&lt;br /&gt;+ echo 3&lt;br /&gt;3&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/5943191643980936846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-run-bash-script-in-debug-mode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5943191643980936846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5943191643980936846'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-run-bash-script-in-debug-mode.html' title='How to run bash script in debug mode'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7620555780674246713.post-5425406538658418221</id><published>2013-06-05T10:51:00.002+05:30</published><updated>2013-06-05T10:52:41.663+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="formatting go code to easy read"/><category scheme="http://www.blogger.com/atom/ns#" term="go programming"/><category scheme="http://www.blogger.com/atom/ns#" term="go tools"/><category scheme="http://www.blogger.com/atom/ns#" term="gofmt"/><category scheme="http://www.blogger.com/atom/ns#" term="gofmt -w"/><category scheme="http://www.blogger.com/atom/ns#" term="golang"/><category scheme="http://www.blogger.com/atom/ns#" term="google go"/><title type='text'>How to format golang code </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Golang is a language developed at Google. More information can be found at the &lt;a href=&quot;http://en.wikipedia.org/wiki/Go_%28programming_language%29&quot; target=&quot;_blank&quot;&gt;wikipedia page&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
Go has an easy tool called &lt;i&gt;gofmt&lt;/i&gt;&amp;nbsp; to format the code blocks of go program in easy readable format.&lt;br /&gt;
&lt;br /&gt;
Here is the command to format the golang program using &lt;i&gt;gofmt&lt;/i&gt;&amp;nbsp;&amp;nbsp; and save it to the corresponding file.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;i&gt;gofmt -w helloworld.go&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
If we didn&#39;t use -w, it will write to formated code to standard output. If we use -w, it will save the formatted code to the corresponding file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Before formatting:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
cat helloworld.go &lt;br /&gt;
&lt;i&gt;package main&lt;br /&gt;import &quot;fmt&quot;&lt;br /&gt;func main() {&lt;br /&gt;fmt.Println(&quot;Hello World&quot;)&lt;br /&gt;}&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;After formatting:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
cat helloworld.go &lt;br /&gt;
&lt;i&gt;package main&lt;br /&gt;&lt;br /&gt;import &quot;fmt&quot;&lt;br /&gt;&lt;br /&gt;func main() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fmt.Println(&quot;Hello World&quot;)&lt;br /&gt;}&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Originally published at http://www.thegeekylinux.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeekylinux.blogspot.com/feeds/5425406538658418221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-format-golang-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5425406538658418221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7620555780674246713/posts/default/5425406538658418221'/><link rel='alternate' type='text/html' href='http://thegeekylinux.blogspot.com/2013/06/how-to-format-golang-code.html' title='How to format golang code '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>