Multiple entry in .ssh/config file

2014-10-24 1 min read Learning
Here is a link to one post on ssh config file. However, if you want entries for lot of servers with their IPs or names, then it could be cumbersome to add all the entries in the .ssh/config file. So, here is a shortcut notation: Host 1 2 3 4 5 6 Hostname 192.168.1.%h User Ciphers arcfour where '%h' denotes the IP that you use in the ssh command. The following escape character substitutions will be performed: ‘%d’ (local user's home directory), ‘%h’ (remote host name), ‘%l’ (local host name), ‘%n’ (host name as provided on the command line), ‘%p’ (remote port), ‘%r’ (remote user name) or ‘%u’ (local user name). Continue reading

cgroups – use to control your cpu and memory

2014-01-06 2 min read Fedora Firefox Learning
cgroups is a kernel feature and with userspace utilities, we can use the feature to control the cpu and memory for per process. So, lets first install the required tools. sudo yum install libcgroup-tools Now, we need to enable the service. sudo systemctl enable cgconfig.service sudo systemctl enable cgred.service cgconfig.service is to enable configuration for cgroups and cgred.service is to enable configuration for cgroups for processes depending on the name. Continue reading

ssmtp configuration and installation – raspberry pi.

2013-06-04 2 min read Raspberry Pi
English: Extract from Raspberry Pi board at TransferSummit 2011 (Photo credit: Wikipedia) To get your email working on your raspberry pi, First thing that you should probably do is to set up outgoing emails from your RPi. The easiest way to do so is with ssmtp. Install ssmtp: sudo apt-get install ssmtp Next configure the ssmtp client to send emails using your ISP, open up the file /etc/ssmtp/ssmtp.conf file and make the changes as suggested below: Continue reading

sendmail or sending mail

2013-04-19 1 min read Fedora Linux
If you want to use sendmail so that you can send all your mails from the local system to your email address, then you have to use sendmail. Now, configuring sendmail has never been that easy and if you are working internally on your corporate network then for sending mails to the same domain, generally you don’t have to login. That being the case, you can use something simpler like “sstmp“. Continue reading

dnsmasq not starting from NetworkManager with SELinux enabled.

2013-03-16 1 min read Fedora Learning Linux
OpenWrt – Dnsmasq (Photo credit: magicfab) Some time back I posted on dnsmasq starting from Network Manager and how to setup dnsmasq. Now, couple of days back , I setup dnsmasq in NetworkManager but was astonished to see that there was no dnsmasq running. I checked with dig and saw that there was no response from localhost for dns queries. Checked “ps -eaf|grep dns” and found that there was no dnsmasq running. Continue reading

phpmyadmin access problem and change server from URL

2012-09-30 1 min read Database Fedora
I was having issues with one of the phpmyadmin setups. The first server defined in the config file was not accessible and the theme that I was using was not allowing me to change the server from the first page. This resulted in a state where I was not able to access phpmyadmin in any way. I could not connect to any of the servers. And thus had to hack my way in to phpmyadmin to find out how to connect to other servers from URL. Continue reading

rpmconf – Tool to handle rpmsave and rpmnew files

2012-06-18 1 min read bash Fedora
Install the utility: sudo yum install rpmconf Description: Description : This tool search for .rpmnew, .rpmsave and .rpmorig files and ask you what to do with them: Keep current version, place back old version, watch the diff or merge. And finally run the utility: sudo rpmconf -a and if there is a conflict or rpmsave or rpmnew file, then you will see something like this: Configuration file `/etc/default/grub’ -rw-r–r– 1 root root 354 Mar 16 22:49 /etc/default/grub. Continue reading
Older posts