<?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: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-7221878582387391091</id><updated>2011-12-13T09:44:09.065Z</updated><title type='text'>Matt's Gnu-linux help, tutorials and advice.</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://matt-linux-log.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-8384304273295776481</id><published>2011-04-09T23:00:00.001+01:00</published><updated>2011-07-14T13:27:03.759+01:00</updated><title type='text'>Flash broken in firefox 4 in Arch Linux..... for some 64bit users</title><content type='html'>Firstly my apologies for not posting in such a long time. I am now at Uni and have been quite busy. Also I haven't really been doing much in the way of Linux fixes recently as things have been........ well just working!&lt;br /&gt;&lt;br /&gt;Until recently that is. I saw the mockups of firefox 4 and liked it instantly. The second it was in the Arch Linux repositories I installed it and started using it as my main browser instead of opera or chromium.&lt;br /&gt;Sadly there are some issues with it, especially with flash. The other issues were just annoyances that were fixed with about:config changes. (Not that I'm blaming the folks at Mozilla for this, there is a high chance its Adobe's fault...)&lt;br /&gt;&lt;br /&gt;For some reason some websites using flash display fine but others go haywire and parts of the flash disappear or flicker.&lt;br /&gt;&lt;br /&gt;One suggested solution I found was to do the following:&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://www.youtube.com/swf_test.html"&gt;Click Here&lt;/a&gt;&lt;br /&gt;2. right click on player&lt;br /&gt;3. click settings&lt;br /&gt;4. choose left-most tab&lt;br /&gt;5. uncheck "Enable Hardware Acceleration"&lt;br /&gt;&lt;br /&gt;However this only worked for some people but not for me.&lt;br /&gt;&lt;br /&gt;There is a pre-release copy of Adobe Flash Square in the archlinuxfr repository (I presume most Arch Linux users have this for yaourt), and installing this, which prompted me to remove the existing copy of flash, and restarting firefox fixed the issue for me completely.&lt;br /&gt;&lt;br /&gt;For those with archlinuxfr:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo pacman -S flashplugin-prerelease&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;or to get archlinuxfr add the following to your /etc/pacman.conf in the appropriate section.&lt;br /&gt;&lt;br /&gt;[archlinuxfr]&lt;br /&gt;# The french Arch Linux communities packages.&lt;br /&gt;Server = http://repo.archlinux.fr/$arch&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EDIT: After a security hole was discovered the package was pulled but due to a new release, the package is back in the AUR as flashplugin-prerelease at version 11.0.1.60-2 as of today. I'm unsure as to what version is in the archlinuxfr repository currently but I assume it will be older than the one in the AUR.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-8384304273295776481?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/8384304273295776481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/8384304273295776481'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2011/04/flash-broken-in-firefox-4-in-arch-linux.html' title='Flash broken in firefox 4 in Arch Linux..... for some 64bit users'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-1543733345646635336</id><published>2010-11-11T20:05:00.003Z</published><updated>2010-11-11T20:06:01.918Z</updated><title type='text'>Fix popping sounds in Linux</title><content type='html'>Quite a lot of people have had a problem when, when their computer boots up and just before sound plays/stops they get loud popping noises which can be very annoying and a bit concerning.&lt;br /&gt;&lt;br /&gt;This is caused by a new 'feature'which is supposed to save power by powering down the sound chip when not in use.&lt;br /&gt;&lt;br /&gt;To prevent it from doing this thus preventing the popping sounds edit your:&lt;br /&gt;&lt;br /&gt;/etc/modprobe.d/modprobe.conf&lt;br /&gt;&lt;br /&gt;(I prefer to use vim. Nano is a good alternative)&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo vim /etc/modprobe.d/modprobe.conf&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and add the line:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;options snd-hda-intel power_save=0&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;then reboot, and your issue should be fixed.&lt;br /&gt;&lt;br /&gt;This only works for intel chips using the snd-hda-intel driver.&lt;br /&gt;&lt;br /&gt;To look for options for other sounds cards with the same issue ( I haven't heard of any) open a terminal and type:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;modinfo snd-MY-MODULE&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;replacing MY-MODULE with the sound module used.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-1543733345646635336?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1543733345646635336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1543733345646635336'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/11/fix-popping-sounds-in-linux-quite-lot.html' title='Fix popping sounds in Linux'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-7449813035892799065</id><published>2010-10-30T12:44:00.000+01:00</published><updated>2010-10-30T12:44:25.048+01:00</updated><title type='text'>Saitek cyborg R.A.T in Linux</title><content type='html'>I have finally finished setting up my new system with arch linux.&lt;br /&gt;&lt;br /&gt;I am  currently having problems with sound not muting when headphones are plugged in so this may well be one of the topics I cover shortly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I did however manage to get my new mouse, the saitek cyborg R.A.T.5 running in Linux.&lt;br /&gt;&lt;br /&gt;There is a problem when you first plug it in that means you have to click the change mode button every second click but I managed to find a fix that should also work for the R.A.T.3 and the R.A.T.7.&lt;br /&gt;&lt;br /&gt;Here are pictures of the R.A.T.3 ,5 &amp;amp; 7 for those who haven't seen them:&lt;br /&gt;&lt;br /&gt;The R.A.T.3:&lt;br /&gt;&lt;br /&gt;&lt;img alt="Saitek Cuborg R.A.T.3" src="http://www.cyborggaming.com/imgs/gallery/r3_4.jpg" /&gt;&lt;br /&gt;The R.A.T.5:&lt;br /&gt;&lt;img alt="Saitek Cuborg R.A.T.5" src="http://www.cyborggaming.com/imgs/gallery/r5_4.jpg" /&gt;&lt;br /&gt;The R.A.T.7:&lt;br /&gt;&lt;img alt="Saitek Cuborg R.A.T.7" src="http://www.cyborggaming.com/imgs/gallery/r7_4.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;(there is also a R.A.T.9 but I can't confirm that the fix works for it)&lt;br /&gt;&lt;br /&gt;The fix is quite simple.&lt;br /&gt;&lt;br /&gt;It does rely on Xmodmap.&lt;br /&gt;&lt;br /&gt;Here are instructions using sudo. If you have a root account ommit sudo and run them as root.&lt;br /&gt;&lt;br /&gt;First you need to edit the Xmodmap file with your favourite editor. I prefer vim. the Xmodmap file should be here:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;/etc/X11/Xmodmap&lt;/span&gt;&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;so to edit with vim I typed:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo vim /etc/X11/Xmodmap&lt;/span&gt;&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;If you are unused to vim I recommend nano as a good alternative:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo nano /etc/X11/Xmodmap&lt;/span&gt;&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;All the file has to contain is:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;pointer = 1 2 3 4 5 6 7 8 9 10 11 12 0 0 0&lt;/span&gt;&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;If there is already information in your Xmodmap I recommend putting this at the start.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can then restart X or your computer and it should work without a problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-7449813035892799065?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/7449813035892799065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/7449813035892799065'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/10/saitek-cyborg-rat-in-linux.html' title='Saitek cyborg R.A.T in Linux'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-6024945464269158617</id><published>2010-10-13T13:29:00.005+01:00</published><updated>2010-10-13T13:35:51.558+01:00</updated><title type='text'>Announcement: Ubuntu 10.10 Released</title><content type='html'>Ubuntu 10.10 was released on Sunday and is being hailed as the best Ubuntu yet.&lt;br /&gt;&lt;br /&gt;It seems to be even faster than 10.04 and is much more stable.&lt;br /&gt;&lt;br /&gt;A lot of hardware that has been problematic in older versions of Ubuntu has sprung back to life and the release seems generally good.&lt;br /&gt;&lt;br /&gt;Have a look at the features &lt;a href="http://www.ubuntu.com/desktop/features#apps" style="color: red;"&gt;HERE.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Download a copy &lt;a href="http://www.ubuntu.com/desktop/get-ubuntu/download" style="color: red;"&gt;HERE&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you have Ubuntu 10.04 installed you can directly upgrade to 10.10.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Start System/Administration/Update Manager.&lt;/li&gt;&lt;li&gt;Click the Check button to check for new updates.&lt;/li&gt;&lt;li&gt;If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.&lt;/li&gt;&lt;li&gt;A message will appear informing you of the availability of the new release.&lt;/li&gt;&lt;li&gt;Click Upgrade.&lt;/li&gt;&lt;li&gt;Follow the on-screen instructions. &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Of course on the forums for a few weeks there will be posts claiming that it is full of bugs and more useless than ever etc....&lt;br /&gt;&lt;br /&gt;Every release has some bugs when its brought out but they usually get fixed very quickly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-6024945464269158617?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6024945464269158617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6024945464269158617'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/10/announcement-ubuntu-1010-released.html' title='Announcement: Ubuntu 10.10 Released'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-9061833831337478251</id><published>2010-10-07T09:00:00.006+01:00</published><updated>2010-10-07T18:08:55.543+01:00</updated><title type='text'>De/Wm's: GNOME</title><content type='html'>GNOME stands for "GNU Network Object Model Environment" and is a desktop environment for various Unix-like operating systems, most notably GNU/Linux, and as part of the Java Desktop System in Solaris.&lt;br /&gt;&lt;br /&gt;Gnome is very popular, rivalled by KDE, and is used as the Default Desktop Enviroment on many LInux Distro's.&lt;br /&gt;Gnome is written in C mainly as this is the language GTK+ is written in.&lt;br /&gt;&lt;br /&gt;The Gnome desktop enviroment usually comes with the following software:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt; &lt;br /&gt;X window manager---&amp;gt;Metacity &lt;br /&gt;X display manager----&amp;gt;GDM  &lt;br /&gt;File manager------------&amp;gt;Nautilus &lt;br /&gt;Widget toolkit ---------&amp;gt;GTK+ &lt;br /&gt;Terminal emulator -&amp;gt;GNOME Terminal  &lt;br /&gt;Text editor--------------&amp;gt;gedit &lt;br /&gt;Video player-----------&amp;gt;Totem  &lt;br /&gt;Audio player-----------&amp;gt;Rhythmbox  &lt;br /&gt;CD burners-------------&amp;gt;Brasero &lt;br /&gt;Image viewer----------&amp;gt;Eye of GNOME &lt;br /&gt;Office suite--------------&amp;gt;GNOME Office       &lt;br /&gt;Web browser-----------&amp;gt;Epiphany &lt;br /&gt;E-mail client-------------&amp;gt;Evolution    &lt;br /&gt;Instant messenger----&amp;gt;Empathy       &lt;br /&gt;Archive manager------&amp;gt;File Roller &lt;br /&gt;PDF viewer---------------&amp;gt;Evince  &lt;br /&gt;IDE----------------------------&amp;gt;Anjuta    &lt;br /&gt;Widget engine-----------&amp;gt;gDesklets   &lt;br /&gt;Licenses used------------&amp;gt; GPL, LGPL&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Developers of OS's often modify the software bundled with the desktop enviroment in the repositories and often the desktop enviroment itself to include branding, for instance Ubuntu.&lt;br /&gt;&lt;br /&gt;Here is a screenshot of gnome 2.3 running.&lt;br /&gt;(Click to see full size image)&lt;br /&gt;&lt;a href="http://upload.wikimedia.org/wikipedia/en/2/22/Gnome2.30.0.png"&gt;&lt;img alt="Gnome 2.30 running on OpenSUSE" src="http://upload.wikimedia.org/wikipedia/en/2/22/Gnome2.30.0.png" width="500" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-9061833831337478251?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/9061833831337478251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/9061833831337478251'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/10/dewms-gnome.html' title='De/Wm&apos;s: GNOME'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-2270578030060163063</id><published>2010-10-06T19:31:00.003+01:00</published><updated>2010-10-06T19:34:57.380+01:00</updated><title type='text'>Announcement: Desktop Enviroments &amp; Window Managers</title><content type='html'>Most of the content in this blog so far has mainly been shell script or Non GUI tutorials.&lt;br /&gt;&lt;br /&gt;I have decided to start doing GUI tutorials as well.&lt;br /&gt;&lt;br /&gt;I will be starting with information about Desktop environments/Window managers in Linux (De/Wm for short) by having a brief blog post on each, prefixed with: "De/Wm's:".&lt;br /&gt;&lt;br /&gt;I may not cover all De/Wm's but will certainly try to cover quite a few, hopefully including:&lt;br /&gt;&lt;span style="color: red;"&gt; &lt;br /&gt;DE's:&lt;br /&gt;Gnome&lt;br /&gt;KDE&lt;br /&gt;XFCE&lt;br /&gt;LXDE&lt;br /&gt;&lt;br /&gt;WM's:&lt;br /&gt;IceWM&lt;br /&gt;Openbox&lt;br /&gt;Fluxbox&lt;br /&gt;Beryl&lt;br /&gt;Compiz&lt;br /&gt;Metacity&lt;br /&gt;KWin&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;There are of course many more.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A window manager is system software that controls the placement and appearance of windows within a windowing system in a graphical user interface.&lt;br /&gt;A desktop environment is a collection of software designed to give functionality and a certain look and feel to an operating system.&lt;br /&gt;&lt;br /&gt;A Desktop Environment will have a window manager, however it it possible to run a window manager without a Desktop Environment..... up to a point.&lt;br /&gt;&lt;br /&gt;Here are the default Wm's for some De's:&lt;br /&gt;&lt;span style="color: red;"&gt; &lt;br /&gt;---DE-------WM---&lt;br /&gt;Gnome----&gt;Metacity&lt;br /&gt;KDE------&gt;KWin&lt;br /&gt;XFCE-----&gt;XFwm&lt;br /&gt;LXDE-----&gt;Openbox&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Different Desktop environments and window managers are written in different programming languages and are designed for different purposes.&lt;br /&gt;&lt;br /&gt;I will cover this in upcoming articles.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-2270578030060163063?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/2270578030060163063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/2270578030060163063'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/10/announcement-desktop-enviroments-window.html' title='Announcement: Desktop Enviroments &amp; Window Managers'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-8176923124759856807</id><published>2010-10-05T15:39:00.000+01:00</published><updated>2010-10-05T15:39:46.517+01:00</updated><title type='text'>64 Bit flash returns to linux!</title><content type='html'>Sorry not to have posted for so long. I have been very busy.&lt;br /&gt;&lt;br /&gt;Anyway, I am a 64 bit user and have had no issues with anything apart from flash.&lt;br /&gt;&lt;br /&gt;I have tried the 32 bit plugin with ndiswrapper which was awful and very slow to respond. I have also tried several open source alternatives such as Gnash and although they are coming along well they don't seem to be up to much as of yet.&lt;br /&gt;&lt;br /&gt;A while ago Adobe released a 64 bit plugin but it was scrapped and removed from their site due to an apparent security hole. &lt;br /&gt;&lt;br /&gt;However it is now back and apparently fixed so I have tried it and it works reasonably well.&lt;br /&gt;&lt;br /&gt;It has been nicknamed "Square" and is availible for Windows, Mac and Linux.&lt;br /&gt;&lt;br /&gt;The only noticable difference is that flash videos are no longer stored in /tmp/ while streaming but are now in your browser's cache, for firefox users this would be /home/user/.mozilla/firefox/profile.default/Cache/ .&lt;br /&gt;&lt;br /&gt;For Ubuntu users there is a PPA for it. To install use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo add-apt-repository ppa:sevenmachines/flash&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install flashplugin64-installer&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For other distro's or for those who want it directly from adobe labs the download link is:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://labs.adobe.com/technologies/flashplayer10/"&gt;labs.adobe.com/technologies/flashplayer10/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Installation of the Flash preview has to be done manually – but this isn’t that difficult.&lt;br /&gt;&lt;br /&gt;Unpackage the file.&lt;br /&gt;Copy the libflashplayer.so file to the plugins folder of your browser:&lt;br /&gt;/usr/lib/mozilla/plugins/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I hope that works for 64 bit users out there. Its certainly much smoother for me. &lt;br /&gt;&lt;br /&gt;Users should note that as this release is termed a ‘preview’ and should not be taken as a final stable release so may be slightly buggy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-8176923124759856807?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/8176923124759856807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/8176923124759856807'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/10/64-bit-flash-returns-to-linux.html' title='64 Bit flash returns to linux!'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-1028635154768380390</id><published>2010-09-22T18:35:00.002+01:00</published><updated>2010-09-22T18:35:45.905+01:00</updated><title type='text'>Simple command line usage</title><content type='html'>I have been using the linux command line for some time and often when I post help I miss some steps as I take them as already known. &lt;br /&gt;&lt;br /&gt;Usually most linux users will know them but noobs to linux may struggle and give up.&lt;br /&gt;&lt;br /&gt;Here are a few simple commands that you may use quite often and a small explaination of what they do.&lt;br /&gt;&lt;br /&gt;ls:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;ls&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;This simply LiSts the files in the current directory. (If you have just opened the terminal this will be your home folder)&lt;br /&gt;Here are some of the arguments you can use:&lt;br /&gt;-a list hidden files&lt;br /&gt;-d list the name of the current directory&lt;br /&gt;-l long listing giving details about files  and directories&lt;br /&gt;-R list all subdirectories encountered&lt;br /&gt;-t sort by time modified instead of name&lt;br /&gt;There are more.&lt;br /&gt;&lt;br /&gt;cd:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;cd /Path/To/Directory&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;This allows you to change what directory you are in. You can cd into any directory you want. &lt;br /&gt;For instance if &lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;ls&lt;br /&gt;Test &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;then you can:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;cd Test &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;to go into directory Test.&lt;br /&gt;You can also use the full location for instance:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;cd /home/user/test &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;Additionally &lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;cd .. &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;will take you to the directoy above the one you are browing.&lt;br /&gt;&lt;br /&gt;mv:&lt;br /&gt;This is used to change the name of a directory&lt;br /&gt;Type mv followed by the current name of a directory and the new name of the directory.&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;mv TEST NEW-NAME-FOR-TEST&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;cp:&lt;br /&gt;This is used to copy files. &lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;cp FILE FILE2 &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;mkdir:&lt;br /&gt;This is the command to make a directory.&lt;br /&gt;For instance:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;mkdir TEST &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;would make a directory named TEST.&lt;br /&gt;&lt;br /&gt;pwd:&lt;br /&gt;This will show you the full path to the directory you are currently in.&lt;br /&gt;This is very handy to use, especially when performing some of the other commands on this page&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;pwd&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;rm:&lt;br /&gt;This is the ReMove command. You can only use this to delete individual files.&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;rm FILE &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;To delete a folder you must add args -r and -f for instance:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; &lt;/span&gt;rm -rf TEST&lt;/code&gt;&lt;br /&gt;but this permenantly removes files so is dangerous.&lt;br /&gt;To be safer add the -i arg which will ask you if you're sure.&lt;br /&gt;&lt;br /&gt;sudo:&lt;br /&gt;In linux you are simply a user, not administrator. The administrator account is called the root account, but using this accound can be very dangerous.&lt;br /&gt;For instance if you log in as root and type&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; &lt;/span&gt;rm -rf/&lt;/code&gt;&lt;br /&gt;it will attempt to wipe the computer.&lt;br /&gt;This is why sudo is used. Sudo lets you run a command as root from a user account.&lt;br /&gt;Once sudo is set up (done automatically on most distros) you can simply:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo COMMAND-TO-RUN-AS-ROOT -ARGS &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;But be careful as:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo rm -rf / &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;is just as destructive as when logged in as root.&lt;br /&gt;&lt;br /&gt;./&lt;br /&gt;This is used to run a file that is not installed as a program. The file must have permissions to run.&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;./FILE-TO-RUN &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;chmod&lt;br /&gt;This is used to alter file permissions.&lt;br /&gt;Usage is:&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;chmod [+/- x] [0-7 0-7 0-7] &lt;/span&gt;&lt;/code&gt; &lt;br /&gt;A numeric mode is from one to  four  octal  digits  (0-7),  derived  by adding up the bits with values 4, 2, and 1.  Omitted digits are assumed to be leading zeros.  The first digit selects the set user ID (4) and set group ID (2) and restricted deletion or sticky (1) attributes.  The second digit selects permissions for the user who owns the  file:  read (4),  write  (2),  and  execute  (1); the third selects permissions for other users in the file's group, with the same values; and  the  fourth for other users not in the file's group, with the same values.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;THat should get you used to command line. You can use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;COMMAND --help &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;or&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;help COMMAND &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;or&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;man -k COMMAND &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;to view the help for a command.&lt;br /&gt;&lt;br /&gt;A good list of more commands is &lt;a href="http://www.debianhelp.co.uk/commands.htm"&gt;HERE&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-1028635154768380390?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1028635154768380390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1028635154768380390'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/simple-command-line-usage.html' title='Simple command line usage'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-3228497704039271479</id><published>2010-09-19T11:00:00.005+01:00</published><updated>2010-09-19T11:00:03.582+01:00</updated><title type='text'>How to set up passwordless ssh</title><content type='html'>If you have a server or remote machine that you ssh into a lot or want to run a backup script to, you probably have to type in your ssh password every time.&lt;br /&gt;&lt;br /&gt;If its no-body but you that has access to your user account on the local machine you can set up passwordless ssh between the local machine and the server securely.&lt;br /&gt;&lt;br /&gt;This is done with rsa keys.&lt;br /&gt;&lt;br /&gt;First you need to make a public key on the local machine.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ssh-keygen -t rsa&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;use &lt;code&gt;&lt;span style="color: red;"&gt;-t rsa&lt;/span&gt;&lt;/code&gt; unless you plan on accessing an older machine or a machine with an older version of OpenSSH.&lt;br /&gt;&lt;br /&gt;Do NOT enter a passphrase.&lt;br /&gt;&lt;br /&gt;Now you need to copy the public key to the remote machine's list of authorized keys.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ssh-copy-id -i ~/.ssh/id_rsa.pub USERNAME@SERVER&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Of course, you should use your custom public key if you did not use the default name in the previous step.&lt;br /&gt;&lt;br /&gt;After executing this, it will ask you for your password, this is just the ssh password to the remote machine for the username that you used.&lt;br /&gt;&lt;br /&gt;Upon completion, there should be a file on the remote machine ~/.ssh/authorized_keys that contains the public key that you just generated.&lt;br /&gt;&lt;br /&gt;You can test out if you were successful now by ssh'ing to the remote machine, you should no longer be asked for a password.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;However this is potentially insecure as if someone managed to get hold of your public key they could get into your machine.&lt;br /&gt;&lt;br /&gt;To prevent this you can edit the file .ssh/authorized_keys  and add &lt;code&gt;&lt;span style="color: red;"&gt; from="LOCAL-IP-ADDRESS"&lt;/span&gt;&lt;/code&gt; to the beginning, leaving a space before ssh-rsa and replacing LOCAL-IP-ADDRESS with your machines IP. This will of course only work with static IP's.&lt;br /&gt;&lt;br /&gt;You can further restrict what can be done with passwordless ssh by adding any of the following options to the beginning of the authourised_keys file:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This will still not let you run passwordless ssh from cron. If you wish to do this I recommand &lt;a href="http://blogs.translucentcode.org/mick/archives/000230.html"&gt;THIS&lt;/a&gt; tutorial.&lt;br /&gt;&lt;br /&gt;(Some content from patsissons on the ubuntu forums)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-3228497704039271479?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/3228497704039271479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/3228497704039271479'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/how-to-set-up-passwordless-ssh.html' title='How to set up passwordless ssh'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-4930163351737455954</id><published>2010-09-18T17:17:00.004+01:00</published><updated>2010-09-18T17:21:35.121+01:00</updated><title type='text'>Secure SHell FileSystem - SSHFS</title><content type='html'>&lt;a href="http://fuse.sourceforge.net/sshfs.html"&gt;SSHFS&lt;/a&gt; (SSH FileSystem or Secure SHell FileSystem) is a filesystem client to mount and interact with directories and files located on a remote server or workstation.&lt;br /&gt;The client interacts with the remote file system via SFTP.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fuse.sourceforge.net/sshfs.html"&gt;SSHFS&lt;/a&gt;  works on most UNIX and Linux systems. The current implimentation is based on &lt;br /&gt;&lt;a href="http://fuse.sourceforge.net/"&gt;FUSE&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As it uses ssh it is more secure than samba.&lt;br /&gt;&lt;br /&gt;To run sshfs you need to install &lt;code&gt;&lt;span style="color: red;"&gt;fuse&lt;/span&gt;&lt;/code&gt; as well. If you install &lt;code&gt;&lt;span style="color: red;"&gt;SSHFS&lt;/span&gt;&lt;/code&gt; through a package manager it will install all dependancies.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo pacman -S sshfs&lt;/span&gt;&lt;/code&gt; (Arch)&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo apt-get install sshfs&lt;/span&gt;&lt;/code&gt; (Debian and derivatives)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once installed, you can mount any location on a remote server that you have ssh access to.&lt;br /&gt;&lt;br /&gt;You need to have made the mountpoint (The location the remote directory will be mounted) first:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;mkdir /path/to/MOUNTPOINT&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You may then mount the remote directory into the mountpoint. This is done by: &lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sshfs USERNAME@SERVER:LOCATION MOUNTPOINT&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The mountpoint now appears to contain the contents of the mounted directory on the remote server.&lt;br /&gt;&lt;br /&gt;You can now interact with the contents as if it was on the local machine but you will be using the permissions of the user you mounted it with.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;mkdir /server1&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sshfs user@192.168.1.2:~/home/user/ /server1&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;would be used to mount the directory /home/user on the remote server in directory /server1 on the local machine.&lt;br /&gt;&lt;br /&gt;To unmount mounted directories simply use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;fusermount -u MOUNTPOINT&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In my example this would be:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;fusermount -u /server1&lt;/span&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-4930163351737455954?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4930163351737455954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4930163351737455954'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/secure-shell-filesystem-sshfs.html' title='Secure SHell FileSystem - SSHFS'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-6427414873315376883</id><published>2010-09-17T21:13:00.000+01:00</published><updated>2010-09-17T21:13:40.705+01:00</updated><title type='text'>OpenSSH - Connect to and manage other machines.</title><content type='html'>Most people who use LInux or UNIX will usually recognise and use ssh quite commonly to connect to other machines and run updates or programs and generally monitor and control machines.&lt;br /&gt;&lt;br /&gt;OpenSSH (the package including ssh) includes more than just ssh.&lt;br /&gt;&lt;br /&gt;OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on.&lt;br /&gt;Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is.&lt;br /&gt;OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks.&lt;br /&gt;&lt;br /&gt;Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.&lt;br /&gt;&lt;br /&gt;The OpenSSH suite replaces rlogin and telnet with the ssh program, rcp with scp, and ftp with sftp.&lt;br /&gt;Also included is sshd (the server side of the package), and the other utilities like ssh-add, ssh-agent, ssh-keysign, ssh-keyscan, ssh-keygen and sftp-server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I often use ssh to connect to machines and run programs and backups etc...&lt;br /&gt;&lt;br /&gt;SFTP is also useful ( a secure version of FTP) for transferring files.&lt;br /&gt;&lt;br /&gt;The client side of ssh is installed with many Linux and UNIX OS's as it is now considered as an important program.&lt;br /&gt;&lt;br /&gt;To connect to an ssh server you simply open a terminal and type:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ssh user@server-address&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;If the username on the server/ remote machine is the same as the current machine you can simply type:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ssh server-address&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;for example&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ssh 192.168.1.2&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ssh joebloggs@192.168.1.2&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You could also use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ssh 192.168.1.2 -l joebloggs&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;By default ssh uses port 22 so you may have to set this as an exception in your firewall.&lt;br /&gt;&lt;br /&gt;You can however pipe ssh through another port with -p.&lt;br /&gt;&lt;br /&gt;Also if the server IP is named in your hosts file /etc/hosts, you can then use the server's name instead of IP address.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ssh joebloggs@joebloggs-computer&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The ssh help dialogue:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;help ssh&lt;br /&gt;usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]&lt;br /&gt;[-D [bind_address:]port] [-e escape_char] [-F configfile]&lt;br /&gt;[-i identity_file] [-L [bind_address:]port:host:hostport]&lt;br /&gt;[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]&lt;br /&gt;[-R [bind_address:]port:host:hostport] [-S ctl_path]&lt;br /&gt;[-w local_tun[:remote_tun]] [user@]hostname [command]&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;To set your machine up as an ssh server, to allow connections to your computer, you can simply install package sshd and set it to run as a DAEMON or at startup if your OS doesn't do it automatically.&lt;br /&gt;&lt;br /&gt;People will have to know your password to connect to you computer so its quite secure.&lt;br /&gt;&lt;br /&gt;Just make sure you use a good password.&lt;br /&gt;&lt;br /&gt;(Resources at the top of this log are from: &lt;a href="http://www.openssh.com/"&gt;http://www.openssh.com/&lt;/a&gt;  )&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-6427414873315376883?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6427414873315376883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6427414873315376883'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/openssh-connect-to-and-manage-other.html' title='OpenSSH - Connect to and manage other machines.'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-1617913558155352733</id><published>2010-09-16T16:22:00.002+01:00</published><updated>2010-09-16T16:23:22.956+01:00</updated><title type='text'>Bash Aliases</title><content type='html'>Linux users who commonly use the terminal often get bored of typing horribly long command sequences with arguments for routine jobs.&lt;br /&gt;&lt;br /&gt;This is where aliases can come in useful.&lt;br /&gt;&lt;br /&gt;(Presuming you use Bash and not sh)&lt;br /&gt;&lt;br /&gt;With aliases you can set a command such as &lt;code&gt;&lt;span style="color: red;"&gt; Pacman -suy&lt;/span&gt;&lt;/code&gt; to the name &lt;code&gt;&lt;span style="color: red;"&gt; update&lt;/span&gt;&lt;/code&gt;, so that when you type &lt;code&gt;bash$&lt;span style="color: red;"&gt;update&lt;/span&gt;&lt;/code&gt; in a shell it runs &lt;code&gt;&lt;span style="color: red;"&gt; pacman -Suy&lt;/span&gt;&lt;/code&gt;.&lt;br /&gt;&lt;br /&gt;There is more than one way to do this. You can just add the alises to the .bashrc file in your home folder and if you wish to do it this way I recommend you do it at the end.&lt;br /&gt;&lt;br /&gt;The other way is to use a seperate file.&lt;br /&gt;&lt;br /&gt;If you wish to use a seperate file for your aliases like me, then carry on reading. If you want to add them directly to the .bashrc then skip down a few steps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Firstly you must create an alises file if one isn't already created on your system.&lt;br /&gt;&lt;br /&gt;The usual name for the alias file is .bash_alises the "." at the beginning making it a hidden file.&lt;br /&gt;&lt;br /&gt;You can call it what you want.&lt;br /&gt;&lt;br /&gt;You must then set that aliases file to run in the .bashrc.&lt;br /&gt;&lt;br /&gt;To do this edit the .bashrc file in your home folder and near the end add:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; if [ -f ~/.bash_aliases ]; then&lt;br /&gt;. ~/.bash_aliases&lt;br /&gt;fi&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;or if you named your aliases file something different swap .bash_alises for the name of your file. &lt;br /&gt;&lt;br /&gt;Some Linux operating systems have this pre-added along with an empty aliases file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can now add aliases to your system either in the .bashrc or .bash_alises (or your own) file.&lt;br /&gt;Aliases must always use the correct format :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; alias new-command='horribly long command -arguments'&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You can also make system wide aliases by adding them to your /etc/bashrc&lt;br /&gt;&lt;br /&gt;You can also put a hash [#] after an alias and then type a quick description so you remember what its for.&lt;br /&gt;&lt;br /&gt;You can view all aliases in use by typing &lt;code&gt;bash$&lt;span style="color: red;"&gt; alias&lt;/span&gt;&lt;/code&gt; in a terminal.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example, some useful aliases pulled from the internet:&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; &lt;br /&gt;# ls&lt;br /&gt;alias ls='ls --color' # Use colors&lt;br /&gt;alias lsd="ls */ -d" # Display only directories&lt;br /&gt;alias l="ls -l"   # Long format&lt;br /&gt;alias la="ls -la"  # Long format with hidden files&lt;br /&gt;&lt;br /&gt;# cd&lt;br /&gt;alias ..="cd .."  # Drop up a dir with ..&lt;br /&gt;alias ...="cd ..; cd .."&lt;br /&gt;&lt;br /&gt;#cp/mv&lt;br /&gt;#Prompt for overwrite, verbose&lt;br /&gt;alias cp="cp -iv"&lt;br /&gt;alias mv="mv -iv"&lt;br /&gt;&lt;br /&gt;# misc&lt;br /&gt;alias fproc="ps aux | grep "  # Find running processes&lt;br /&gt;alias cls=clear&lt;br /&gt;alias gop='gnome-open'&lt;br /&gt;alias df="df -h"    # Human readable format&lt;br /&gt;alias du="du -h"    # Human readable format&lt;br /&gt;alias mkdir="mkdir -v"   # Verbose directory creation&lt;br /&gt;alias grep="grep --color"  # Highlight search word&lt;br /&gt;alias oo="ooffice"&lt;br /&gt;&lt;br /&gt;# chmod shortcuts&lt;br /&gt;alias "x+"="chmod +x"&lt;br /&gt;alias "x-"="chmod -x"&lt;br /&gt;alias "w+"="chmod +w"&lt;br /&gt;alias "w-"="chmod -w"&lt;br /&gt;alias "r+"="chmod +r"&lt;br /&gt;alias "r-"="chmod -r"&lt;br /&gt;&lt;br /&gt;alias shutdown='sudo shutdown -h now'&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;From the arch wiki for pacman:&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; &lt;br /&gt;# Pacman alias examples&lt;br /&gt;alias pacupg='sudo pacman -Syu'        # Synchronize with repositories before upgrading packages that are out of date on the local system.&lt;br /&gt;alias pacin='sudo pacman -S'           # Install specific package(s) from the repositories&lt;br /&gt;alias pacins='sudo pacman -Up'         # Install specific package not from the repositories but from a file &lt;br /&gt;alias pacre='sudo pacman -R'           # Remove the specified package(s), retaining its configuration(s) and required dependencies&lt;br /&gt;alias pacrem='sudo pacman -Rns'        # Remove the specified package(s), its configuration(s) and unneeded dependencies&lt;br /&gt;alias pacrep='pacman -Si'              # Display information about a given package in the repositories&lt;br /&gt;alias pacreps='pacman -Ss'             # Search for package(s) in the repositories&lt;br /&gt;alias pacloc='pacman -Qi'              # Display information about a given package in the local database&lt;br /&gt;alias paclocs='pacman -Qs'             # Search for package(s) in the local database&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;Here are some popular ones for ubuntu pulled from the forums:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; &lt;br /&gt;alias agi='sudo apt-get install'&lt;br /&gt;alias agr='sudo apt-get remove'&lt;br /&gt;alias agp='sudo apt-get purge'&lt;br /&gt;alias acs='apt-cache search'&lt;br /&gt;alias agu='sudo apt-get update'&lt;br /&gt;alias agg='sudo apt-get upgrade'&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Sadly you cannot use sudo with aliases for example sudo [alias]. However you can do this by adding:&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; alias sudo='sudo '&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;to your aliases file.&lt;br /&gt;&lt;br /&gt;Of course you can use very diverse names and make some just for fun.&lt;br /&gt;&lt;br /&gt;I have seen &lt;code&gt;&lt;span style="color: red;"&gt; alias icanhas='sudo apt-get install'&lt;/span&gt;&lt;/code&gt; several times.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-1617913558155352733?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1617913558155352733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1617913558155352733'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/bash-aliases.html' title='Bash Aliases'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-4778820853849514014</id><published>2010-09-14T20:58:00.002+01:00</published><updated>2010-09-14T21:01:35.354+01:00</updated><title type='text'>News: Ubuntu 10.10</title><content type='html'>Ubuntu 10.10 will be here shortly and it looks like its going to be good.&lt;br /&gt;&lt;br /&gt;As usual the first few weeks after the release will be plagued by people claiming that its buggy or that it doesn't work, but this happens every release and it can take a month for all the bugs to get straightened out.&lt;br /&gt;&lt;br /&gt;You can get one of the countdown banners for your site here: &lt;a href="http://www.ubuntu.com/community/countdown"&gt;http://www.ubuntu.com/community/countdown&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can try the Beta before the release here: &lt;a href="http://www.ubuntu.com/testing/maverick/beta"&gt;http://www.ubuntu.com/testing/maverick/beta&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I apologize for the lack of posts. I have been unwell but hope to carry on posting as normal from tomorrow.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-4778820853849514014?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4778820853849514014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4778820853849514014'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/ubuntu-1010.html' title='News: Ubuntu 10.10'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-4531589658115747931</id><published>2010-09-10T12:46:00.002+01:00</published><updated>2011-12-13T09:44:09.071Z</updated><title type='text'>Set up sendmail in arch linux</title><content type='html'>I recently had the need to have my backup script send me an email with the backup logfile when it was done.&lt;br /&gt;&lt;br /&gt;Here is how I did it (with much help from others)&lt;br /&gt;&lt;br /&gt;First you need to install mailx.&lt;br /&gt;&lt;br /&gt;The package: &lt;code&gt;&lt;span style="color: red;"&gt; mailx-heirloom &lt;/span&gt;&lt;/code&gt;seems to work better for some people so I used it instead.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; Sudo pacman -S mailx-heirloom&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;I then set up the config file:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;&lt;strike&gt; sudo vim /etc/nail.rc &lt;/strike&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo vim /etc/mail.rc &lt;/span&gt;&lt;/code&gt;&lt;br /&gt; (Updated as the config file changed.)&lt;br /&gt;and put the following into it:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; set sendmail="/usr/bin/mailx"&lt;br /&gt;set smtp=smtp.gmail.com:587&lt;br /&gt;set smtp-use-starttls&lt;br /&gt;set ssl-verify=ignore&lt;br /&gt;set ssl-auth=login&lt;br /&gt;set smtp-auth-user=login@host&lt;br /&gt;set smtp-auth-password=PASSWORD&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Obviously this is for gmail. You may have to modify this for other mail hosts. I tried a few others but gmail was the only one that gave consistant posative results.&lt;br /&gt;&lt;br /&gt;You can then send email with the following:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; echo "message" | mailx -s [subject] -a /path/to/attachement recipient@host&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My script uses rsync for backups. Here is what I came up with:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; #!/bin/bash&lt;br /&gt;DATE=`date +%m-%d-%y`&lt;br /&gt;echo -n "What directory do you want to back up? : "&lt;br /&gt;read DIRECTORY&lt;br /&gt;rsync -avzuh Targetmachine:~/$DIRECTORY . &amp;gt; /home/username/logs/backup-log-$DIRECTORY-$DATE.txt &amp;amp;&amp;amp;&lt;br /&gt;echo "Backup of $DIRECTORY Complete, Log attached" | mailx -s "Backup Complete" -a "/home/username/logs/backup-log-$DIRECTORY-$DATE.txt" user@HOST&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;It is only made to backup one directory at a time but that is all I currently need. I'm sure more experienced users could modify this and intergrate it as a cron job with passwordless ssh which is what I will be doing when I get my 4 1TB HDD's..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-4531589658115747931?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4531589658115747931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4531589658115747931'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/set-up-sendmail-in-arch-linux.html' title='Set up sendmail in arch linux'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-1083152153813129025</id><published>2010-09-08T15:28:00.007+01:00</published><updated>2010-09-08T22:20:37.539+01:00</updated><title type='text'>Keep your /etc/pacman.d/mirrorlist up to date!</title><content type='html'>I usually update my server weekly and usually get about 2-10 updates.&lt;br /&gt;&lt;br /&gt;However for the last few weeks I haven't been getting any updates at all.&lt;br /&gt;&lt;br /&gt;I ignored this for a while but then it became a bit concerning.&lt;br /&gt;&lt;br /&gt;After a bit of thinking I realised exactly what was wrong. The repos I was using were no longer being updated.&lt;br /&gt;&lt;br /&gt;When pacman gets an update for itself it often says that &lt;code&gt;&lt;span style="color: red;"&gt; /etc/pacman.d/mirrorlist&lt;/span&gt;&lt;/code&gt; has been installed as &lt;code&gt;&lt;span style="color: red;"&gt; /etc/pacman.d/mirrorlist.pacnew&lt;/span&gt;&lt;/code&gt;,(probably to conserve your current server choice) but me being lazy, I had just left it that way.&lt;br /&gt;&lt;br /&gt;I quickly typed:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo rm -rf /etc/pacman.d/mirrorlist&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;then selected the repos I got the best ping from, and uncommented them.&lt;br /&gt;&lt;br /&gt;Ran &lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo pacman -Suy&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Got about 35 updates and felt a bit foolish. At least thats one mistake I won't make again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-1083152153813129025?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1083152153813129025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1083152153813129025'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/keep-your-etcpacmandmirrorlist-up-to.html' title='Keep your /etc/pacman.d/mirrorlist up to date!'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-230125797831750469</id><published>2010-09-07T22:57:00.006+01:00</published><updated>2010-09-29T17:43:47.744+01:00</updated><title type='text'>Change TTY text and background colour.</title><content type='html'>Change TTY text and background colour.&lt;br /&gt;&lt;br /&gt;I recently found a way to change the colour of the text in the TTY screens which is kinda neat if you use them a lot. I use TTY's all the time to manage my servers.&lt;br /&gt;&lt;br /&gt;The command is &lt;code&gt;&lt;span style="color: red;"&gt;setterm.&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The two variables for colour change are &lt;code&gt;&lt;span style="color: red;"&gt; -foreground&lt;/span&gt;&lt;/code&gt; and &lt;code&gt;&lt;span style="color: red;"&gt;-background.&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Here are the possibilities from the help dialogue:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;   [ -foreground black|blue|green|cyan|red|magenta|yellow|white|default ]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;   [ -background black|blue|green|cyan|red|magenta|yellow|white|default ]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The usage for this command is as follows:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; setterm -background [colour] -foreground [colour]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;For instance for a green on black theme I would use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; setterm -background black -foreground green&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and if the background was already black you could just use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; setterm -foreground green&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you want this to happen every time you log in you could add it to your .bashrc otherwise you need to manually do this every time you log in to a TTY.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-230125797831750469?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/230125797831750469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/230125797831750469'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/change-tty-text-and-background-colour.html' title='Change TTY text and background colour.'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-5514130779264218874</id><published>2010-09-03T01:21:00.004+01:00</published><updated>2010-09-08T15:33:32.896+01:00</updated><title type='text'>Kill unresponsive or misbehaving processes.</title><content type='html'>Anyone using linux should know how to do this as it comes in useful more often than you can imagine.&lt;br /&gt;&lt;br /&gt;There are multiple ways to do it.&lt;br /&gt;&lt;br /&gt;I will post the most common CLI methods.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Firstly the &lt;code&gt;&lt;span style="color: red;"&gt;kill&lt;/span&gt;&lt;/code&gt; command.&lt;br /&gt;&lt;br /&gt;You can use &lt;code&gt;&lt;span style="color: red;"&gt;kill&lt;/span&gt;&lt;/code&gt; to terminate a process that is being run by you, or if logged in as root or using sudo you can kill a program run by anybody.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;kill&lt;/span&gt;&lt;/code&gt; has many uses but I will only post the most simple one.&lt;br /&gt;&lt;br /&gt;To kill a process using &lt;code&gt;&lt;span style="color: red;"&gt;kill&lt;/span&gt;&lt;/code&gt; you must first have its PID (process ID). &lt;br /&gt;&lt;br /&gt;To get this you can use the command &lt;code&gt;&lt;span style="color: red;"&gt;pidof&lt;/span&gt;&lt;/code&gt;.&lt;br /&gt;&lt;br /&gt;You may then &lt;code&gt;&lt;span style="color: red;"&gt;kill&lt;/span&gt;&lt;/code&gt; the process.&lt;br /&gt;&lt;br /&gt;For instance;&lt;br /&gt;&lt;br /&gt;if&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pidof [process] &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;gives &lt;code&gt;&lt;span style="color: red;"&gt;[output]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;then you can&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; kill [output]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;which will end process &lt;code&gt;&lt;span style="color: red;"&gt;[process]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;For instance:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pidof rhythmbox &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;2531&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; kill 2531&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;would be used to kill rhythmbox&lt;br /&gt;&lt;br /&gt;This is a rather long method however.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is where the comand &lt;code&gt;&lt;span style="color: red;"&gt;killall&lt;/span&gt;&lt;/code&gt; comes in.&lt;br /&gt;&lt;br /&gt;You do not need to use the PID when using &lt;code&gt;&lt;span style="color: red;"&gt;killall&lt;/span&gt;&lt;/code&gt;.&lt;br /&gt;You can simply use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;killall [process]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and the process will be killed.&lt;br /&gt;&lt;br /&gt;For instance:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;killall rhythmbox&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There is another option which lets you see if a program is misbehaving and kill it called &lt;code&gt;&lt;span style="color: red;"&gt;Top&lt;/span&gt;&lt;/code&gt;.&lt;br /&gt;&lt;br /&gt;When in a shell simply type:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;top&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You get a CLI task manager which shows PID's and cpu usage etc.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;top&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;gives me this:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://a.imagehost.org/0365/Screenshot-llawwehttam_Joe-Pineapples.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://a.imagehost.org/0365/Screenshot-llawwehttam_Joe-Pineapples.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;You can kill  a process by pressing 'k' then typing in the PID listed for it.&lt;br /&gt;&lt;br /&gt;eg:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;PID to kill: 2531&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;it will ask you:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt;Kill PID 2531 with signal [15]: &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and you can simply press enter to kill it or ^C (ctrl+C) to exit the program.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-5514130779264218874?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/5514130779264218874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/5514130779264218874'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/kill-unresponsive-or-misbehaving_03.html' title='Kill unresponsive or misbehaving processes.'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-8473170319668651872</id><published>2010-09-02T17:10:00.004+01:00</published><updated>2010-09-08T15:35:15.623+01:00</updated><title type='text'>Installing packages with pacman, the safe way.</title><content type='html'>On the Arch wiki there is this note:&lt;br /&gt;&lt;br /&gt;Note: Do not refresh the package list when installing packages (i.e. pacman -Sy package_name); this can lead to dependency issues. Upgrade explicitly first; before installing new packages.&lt;br /&gt;&lt;br /&gt;I will try to explain this further.&lt;br /&gt;&lt;br /&gt;This means that the safest way to install a package is to:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pacman -Syu&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;bash$ &lt;/code&gt;&lt;code&gt;&lt;span style="color: red;"&gt;pacman -S [pkg]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;As it fully updates your pacman database, fully updates your system then installs your new package from the up to date system.&lt;br /&gt;&lt;br /&gt;Often in the wiki the line given is simply;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pacman -S [pkg]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;As this saves time and space and is usually guaranteed to work.&lt;br /&gt;&lt;br /&gt;However this is not as good as the first option as it only installs the newest version of the package in your local database which may be out of date itself. It is safe however and it doesn't waste time syncing so is faster. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some users however have been advising people to use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pacman -Sy [pkg]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and even changing wiki articles to do this.&lt;br /&gt;&lt;br /&gt;However this is potentially very dangerous as it updates the local database then installs [pkg] from it. The new version [pkg] may pull down updated dependencies that don't work with the packages currently installed thus breaking them. Alternatively it could bring down no new dependencies but depend on files that are newer than the ones installed. (It could of course all go smoothly but I wouldn't want you to risk it)&lt;br /&gt;&lt;br /&gt;More experienced users may be happy to live with this risk and fix any dependencies that are broken themselves. However doing this could cause a lot of problems for less experienced users.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I will always advise people to use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pacman -S [pkg]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and leave it up to them whether they want to run;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pacman -Syu&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;first or not.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Happily in &lt;a href="http://www.archlinux.org/news/503/"&gt;pacman-3.4&lt;/a&gt; and newer you are able to do:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pacman -Syu [pkg]&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;which updates your database, system, then installs your program one line.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;[If you break packages you can always just use:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; pacman -Syu&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;but you may have to boot from a live cd to do this if it is more important libs you have broken.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-8473170319668651872?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/8473170319668651872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/8473170319668651872'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/installing-packages-with-pacman-safe.html' title='Installing packages with pacman, the safe way.'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-6159759376970730612</id><published>2010-09-02T16:23:00.005+01:00</published><updated>2010-09-19T10:06:43.792+01:00</updated><title type='text'>Ubuntu hangs with initramfs error after kernel update.</title><content type='html'>Recently I have seen several posts where users have updated their ubuntu systems but when they reboot the system drops to a prompt with somthing similar to the following:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: red;"&gt; udevadm trigger is not permitted while udev is unconfigured&lt;br /&gt;udevadm settle is not permitted while udev is unconfigured&lt;br /&gt;udevadm settle is not permitted while udev is unconfigured&lt;br /&gt;udevadm settle is not permitted while udev is unconfigured&lt;br /&gt;&lt;br /&gt;ALERT! /dev/disk/by-uiid/939af864-c1a8-41d7-9b24-91d25685b6 does not exist. Dropping to shell&lt;br /&gt;&lt;br /&gt;Busybox v1.13.3 (Ubuntu 1:1.13:3-1ubuntu11 built-in shell (ash).&lt;br /&gt;&lt;br /&gt;Enter 'help' for built-in commands&lt;br /&gt;&lt;br /&gt;initramfs&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Several people have blamed GRUB and messed up their systems trying to fix it when the real fix is quite simple.&lt;br /&gt;&lt;br /&gt;To fix it you must first understand the problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the apt-get upgrade or the update manger does not successfully complete then a flag is set and update-initramfs does not get to run, hence grub does not have a complete entry on how to boot the new kernel.&lt;br /&gt;&lt;br /&gt;To fix it you must first boot into linux. You can do this by booting your last working kernel in GRUB.&lt;br /&gt;&lt;br /&gt;To get to grub in ubuntu 9.10 or above hold the SHIFT key  as you boot or in versions 9.04 and earlier press Esc when asked to in the top left corner of the screen.&lt;br /&gt;&lt;br /&gt;You should be able to boot using the old kernel, probably the second or third entry down. (NOT the recovery menu)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once you log in you can then open a terminal and type:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo update-initramfs –u -k kernel-release&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;(replacing "kernel-release" with the newest kernel that wouldn't boot)&lt;br /&gt;&lt;br /&gt;If you don't know the kernel that fails to boot then you can use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo update-initramfs –u -k all&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;instead but if it fails to release this command you could break all your kernels although this is unlikely.&lt;br /&gt;&lt;br /&gt;Once you have done either of the above you can then run &lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo dpkg–reconfigure &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;That should clear the upgrade flags and fix any broken packages.&lt;br /&gt;&lt;br /&gt;I recommend you then run this (although not necessary):&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo apt-get autoclean ; sudo apt-get check&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;That should cleanup your system and fix any broken dependencies and packages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-6159759376970730612?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6159759376970730612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6159759376970730612'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/ubuntu-hangs-with-initframs-error-after.html' title='Ubuntu hangs with initramfs error after kernel update.'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-6027747026749940970</id><published>2010-09-02T00:23:00.002+01:00</published><updated>2010-09-08T15:35:54.797+01:00</updated><title type='text'>Convert flv to mp4 video via ffmpeg</title><content type='html'>Quite often people download flash videos in FLV format from youtube or another site and then want to convert them to mp4 to put on an mp4 player or ipod.&lt;br /&gt;&lt;br /&gt;It is quite simple to do in a GUI with a program such as k9copy but is a bit more difficult in the command line. Most other command line tutorials for this purpose need a custom version of ffmpeg compiled from source which can get messy.&lt;br /&gt;&lt;br /&gt;If you have ffmpeg and all the common codecs installed then use the following:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt; ffmpeg -i input.FLV -acodec libfaac -ab 96k -ac 2 -vcodec libx264 -vpre hq -vpre ipod320 -threads 0 -crf 22 output.mp4 &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;obviously replacing input.flv and output.mp4 with your filenames.&lt;br /&gt;&lt;br /&gt;This is not very refined and I'm sure with some work more experienced linux users could change this to get better quality. however it does work for most.&lt;br /&gt;&lt;br /&gt;If you don't have ffmpeg or any codecs installed then install them. Instructions are available in the wiki for your distro.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-6027747026749940970?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6027747026749940970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6027747026749940970'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/convert-flv-to-mp4-video-via-ffmpeg.html' title='Convert flv to mp4 video via ffmpeg'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-66527690517749522</id><published>2010-09-02T00:11:00.002+01:00</published><updated>2010-09-08T15:36:12.003+01:00</updated><title type='text'>Convert Flv to mp3 using FFmpeg</title><content type='html'>I have seen a lot of threads on various forums where people ask how they can convert flash videos, downloaded from the Internet, to mp3.&lt;br /&gt;&lt;br /&gt;It is quite simple to do and there are many GUI tools for it. However if you want to do it in a script, or simply prefer to use the command line like me, then to following works quite well.&lt;br /&gt;&lt;br /&gt;If you have ffmpeg and all the common codecs installed then use the following:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$&lt;span style="color: red;"&gt; ffmpeg -i input.flv -ac 2 -ar 44100 -ab 320 output.mp3&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;obviously replacing input.flv and output.mp3 with your filenames.&lt;br /&gt;&lt;br /&gt;If you don't have ffmpeg or any codecs installed then install them. Instructions are availible in the wiki for your distro.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I recommend you read your distro's wiki before installing codecs as there are legal issues in some countries.&lt;br /&gt;&lt;br /&gt;Ubuntu = (You may need to enable the medibuntu repository: https://help.ubuntu.com/community/Medibuntu ) &lt;br /&gt;&lt;br /&gt;then use: &lt;code&gt;bash$ &lt;span style="color: red;"&gt; sudo apt-get install ubuntu-restricted-extras ffmpeg&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Arch = &lt;code&gt;bash$ &lt;span style="color: red;"&gt; pacman -S gstreamer0.10-{base,good,bad,ugly}-plugins gstreamer0.10-ffmpeg ffmpeg&lt;/span&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-66527690517749522?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/66527690517749522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/66527690517749522'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/convert-flv-to-mp3-using-ffmpeg.html' title='Convert Flv to mp3 using FFmpeg'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-2367830387906128235</id><published>2010-09-01T17:07:00.003+01:00</published><updated>2010-09-08T15:38:49.726+01:00</updated><title type='text'>Stress testing in linux</title><content type='html'>Today I recieved some experimental thermal compound for testing. To say that it performed amazingly would be an understatement. However I'm not going to name it until it goes on sale.&lt;br /&gt;&lt;br /&gt;I decided that to properly test it I would have to run stress tests and properly measure the temps.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;Note: &lt;/b&gt;Although you can stress test a newly overclocked  system under Linux, it is strongly recommended that you don't do it.   Why?  You can experience data loss from the HDD depending on how your  system fails in the event of an unstable overclock.  Linux is less  forgiving that Windows for rebooting from a hardlocked system without  damage to the file system.  If you insist on testing various overclocked  levels under Linux, it is advisable to backup ALL important data first.   Better yet is to install Arch to an old HDD and unplug your HDD(s)  that carry your important data to iron out the overclock settings and  arrive at a stable system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To measure the temps I installed HddTemp and Lm-Sensors. I will give instructions for doing this in Arch Linux but I'm sure these packages are available for ubuntu and other Linux Distros in their respective repos.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To install hddTemp and Lm_sensors:&lt;br /&gt;&lt;br /&gt;bash$ &lt;span style="color: red;"&gt;sudo pacman -S lm_sensors hddtemp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(HddTemp is not really necessary but its always a good idea to keep an eye on your hard drive temperature.) Read &lt;a href="http://wiki.archlinux.org/index.php/Hddtemp"&gt;HERE &lt;/a&gt;for information on use. &lt;br /&gt;&lt;br /&gt;You then need to set up Lm_Sensors:&lt;br /&gt;&lt;br /&gt;bash$ &lt;span style="color: red;"&gt;sudo sensors-detect&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And answer yes to all the questions.&lt;br /&gt;&lt;br /&gt;Next you need to start the service:&lt;br /&gt;&lt;br /&gt;bash$&lt;span style="color: red;"&gt;sudo /etc/rc.d/sensors start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I recommend that you automatically load the kernel modules at boot time by adding sensors to the DAEMONS array in &lt;span style="color: red; font-family: monospace; white-space: nowrap;"&gt;/etc/rc.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(I Believe this is done automatically in ubuntu. )&lt;br /&gt;&lt;br /&gt;eg: DAEMONS=(syslog-ng crond ... sensors ...)&lt;br /&gt;&lt;br /&gt;You can then&amp;nbsp; simply type:&lt;br /&gt;&lt;br /&gt;bash$ &lt;span style="color: red;"&gt;sensors&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red; font-family: monospace; white-space: nowrap;"&gt; &lt;/span&gt;&lt;br /&gt;to show your system temperatures.&lt;br /&gt;&lt;br /&gt;Ignore the ALARM's etc as the program needs refining for some chipsets.&lt;br /&gt;&lt;br /&gt;Now to set up a stress testing program. Prime 95 is known to be the best for windows and there is a version created for linux.&lt;br /&gt;&lt;br /&gt;Firstly open your editor and paste the following into it:&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;code&gt;#!/bin/bash&lt;/code&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;code&gt; echo "Downloading MPrime . Please wait. This may take some time........" ;&lt;/code&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;code&gt;echo ;&lt;/code&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;code&gt; wget ftp://mersenne.org/gimps/mprime2511.tar.gz ;&lt;/code&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;code&gt;echo ;&lt;/code&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;code&gt; echo "Installing mprime ............." ;&lt;br /&gt;tar  -xvzf &lt;/code&gt;&lt;code&gt;mprime2511.tar.gz ;&lt;br /&gt;rm -rf mprime2511.tar.gz ;&lt;br /&gt;sudo  cp mprime /usr/bin/ ;&lt;br /&gt;sudo chmod 755 /usr/bin/mprime ;&lt;/code&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;code&gt;echo ;&lt;/code&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;code&gt; echo "mprime installed" ;&lt;br /&gt;echo ;&lt;br /&gt;&lt;/code&gt;&lt;code&gt;echo "Please read the README file" ;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;Save the file as "installmprime.sh" with out quotes in your home folder.&lt;br /&gt;&lt;br /&gt;Type:&lt;br /&gt;&lt;br /&gt;bash$ &lt;br /&gt;&lt;div style="color: red;"&gt;&lt;code&gt;chmod +x installmprime.sh&lt;/code&gt;&lt;/div&gt;bash$ &lt;br /&gt;&lt;div style="color: red;"&gt;&lt;code&gt;sh installmprime.sh&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;You  will be prompted to enter your 'sudo' password. This is generally  the  same as your login password. If you don't use sudo please run this   script when logged in as root.&lt;br /&gt;&lt;br /&gt;You may now begin stress testing by typing:&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;bash$ mprime&lt;/div&gt;&lt;br /&gt;and choosing menu option 15.&lt;br /&gt;&lt;br /&gt;Click &lt;a href="http://wiki.archlinux.org/index.php/Stress_Test#Stressing_CPU_and.2For_Memory"&gt;HERE&lt;/a&gt; for more information on using mprime.&lt;br /&gt;&lt;br /&gt;To remove mprime simply type:&lt;br /&gt;&lt;br /&gt;bash$ &lt;code style="color: red;"&gt;sudo rm -rf /usr/bin/mprime&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-2367830387906128235?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/2367830387906128235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/2367830387906128235'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/09/stress-testing-in-linux.html' title='Stress testing in linux'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-6107057649663860981</id><published>2010-08-30T23:34:00.002+01:00</published><updated>2010-09-08T15:39:10.489+01:00</updated><title type='text'>Clear downloaded packages in LInux</title><content type='html'>After a while of using linux you can end up&amp;nbsp; with a lot of downloaded but not installed packages and/or unwanted dependences, which can take up a lot of disk space.&lt;br /&gt;&lt;br /&gt;It is quite easy to clean these up however.&lt;br /&gt;&lt;br /&gt;In&amp;nbsp; Debian based systems that use the apt package manager you can simply type:&lt;br /&gt;&lt;br /&gt;bash$ &lt;span style="color: red;"&gt;sudo apt-get autoremove ; sudo apt-get autoclean&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;In arch linux using pacman to clean the package cache of packages that are not currently installed:&lt;br /&gt;&lt;br /&gt;bash$ &lt;span style="color: red;"&gt;pacman -Sc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And to clean the entire package cache:&lt;br /&gt;&lt;br /&gt;(Warning: Only do this when certain that Downgrading Packages will not be a necessity, as pacman -Scc removes all packages from the cache.)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;bash$ &lt;span style="color: red;"&gt;pacman -Scc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Some programs such as &lt;a href="http://ubuntu-tweak.com/"&gt;Ubuntu Tweak &lt;/a&gt;are being developed to help with modifying and generally cleaning up the system so keep an eye out for them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-6107057649663860981?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6107057649663860981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6107057649663860981'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/08/clear-downloaded-packages-in-linux.html' title='Clear downloaded packages in LInux'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-1149079023377399866</id><published>2010-08-30T23:12:00.002+01:00</published><updated>2010-09-08T15:39:28.033+01:00</updated><title type='text'>Use your webcam in a screen cast.</title><content type='html'>I have seen a lot of people making linux screencasts and tutorials for linux and some have a live webcam in the corner of the screen which I feel is a&amp;nbsp; nice personal touch when giving people advice.&lt;br /&gt;&lt;br /&gt;However there is little or no documentation on how to do this so many people just leave cheese (a webcam program similar to photo-booth in mac) open in the corner but this takes up excess space. Some people advise you to do it through mplayer using a command but this takes time to work out the correct parameters for your webcam.&lt;br /&gt;&lt;br /&gt;There is an easier way.&lt;br /&gt;&lt;br /&gt;Gmplayer (Gnome Mplayer) has an option to do just this.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Gmplayer you can simply go to "File"&amp;gt;"TV"&amp;gt;"Open Analogue TV"&amp;nbsp; and it will usually display your webcam. &lt;br /&gt;&lt;br /&gt;There are of course other media players that can do the same. VLC player for instance can use and record a webcam via the&amp;nbsp; capture device menu but in my experience G-Mplayer works best.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-1149079023377399866?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1149079023377399866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/1149079023377399866'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/08/use-your-webcam-in-screen-cast.html' title='Use your webcam in a screen cast.'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-4579223619433400428</id><published>2010-08-29T16:27:00.003+01:00</published><updated>2010-09-08T15:39:45.810+01:00</updated><title type='text'>F.lux . Better lighting for your computer inside linux.</title><content type='html'>A friend pointed me towards F.Lux to change lighting on my screen  depending on what time of day it is. When I had a look F.Lux comes as a  tarball so I decided it would be nice to write some instructions on how  to install it with a simple script.&lt;br /&gt;&lt;br /&gt;Firstly open your editor and paste the following into it:&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;code&gt;echo "Downloading F.lux . Please wait........" ;&lt;br /&gt;wget -c https://secure.herf.org/flux/xflux.tgz ;&lt;br /&gt;echo "Installing F.Lux ............." ;&lt;br /&gt;tar  -xvzf xflux.tgz ;&lt;br /&gt;rm -rf xflux.tgz ;&lt;br /&gt;sudo  cp xflux /usr/bin/ ;&lt;br /&gt;sudo chmod 755 /usr/bin/xflux ;&lt;br /&gt;echo "F.lux installed" ;&lt;br /&gt;echo "Please run 'xflux -l lat lon' replacing lat and lon with your latitude and longitude"&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;Save the file as "installflux.sh" with out quotes in your home folder.&lt;br /&gt;&lt;br /&gt;Now open your shell, Applications&amp;gt;Accessories&amp;gt;Terminal for ubuntu users.&lt;br /&gt;&lt;br /&gt;Type:&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;code&gt;chmod +x installflux.sh&lt;br /&gt;sh installflux.sh&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;You  will be prompted to enter your 'sudo' password. This is generally the  same as your login password. If you don't use sudo please run this  script when logged in as root.&lt;br /&gt;&lt;br /&gt;Once the script is finished you can remove the script and xflux from your home folder.&lt;br /&gt;&lt;br /&gt;Now  you can run flux with xflux command, you can also add it to your  start  up, But first you have to define your zipcode or latitude.Example :&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;code&gt;xflux  -l 33.55, 44.55&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;When i am posting this blog post, the  f.lux does not support latitude over 60.&lt;br /&gt;&lt;br /&gt;Or you can define  zipcode -z instead of -l&lt;br /&gt;&lt;br /&gt;Now add it to your startup :&lt;br /&gt;&lt;br /&gt;System  &amp;gt; Preferences &amp;gt; Sessions&lt;br /&gt;(for ubuntu users)&lt;br /&gt;&lt;br /&gt;for arch users edit your .xinitrc .&lt;br /&gt;&lt;br /&gt;Name : Xflux&lt;br /&gt;Command : xflux  -l 33.55, 44.55 (DO NOT FORGET TO CHANGE the latitude or Zip!)&lt;br /&gt;Comment  : F.lux , Better lighting For Your Computer&lt;br /&gt;&lt;br /&gt;Hope that helped.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-4579223619433400428?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4579223619433400428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4579223619433400428'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/08/flux-better-lighting-for-your-computer.html' title='F.lux . Better lighting for your computer inside linux.'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-4718513916408632786</id><published>2010-08-29T16:19:00.002+01:00</published><updated>2010-09-08T15:40:06.715+01:00</updated><title type='text'>Unlock the root account in sudo based systems.</title><content type='html'>A lot of linux operating systems now do not have a root account. Instead you do everything through sudo which can become irritating to someone used to the power of the root.&lt;br /&gt;&lt;br /&gt;To unlock the root account in a sudo based system, log in as a normal user, open a terminal and type &lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo passwd root&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;enter your sudo password and then follow the prompts to set a root password.&lt;br /&gt;&lt;br /&gt;After this you can log in as root in a terminal although you may not be able to log in graphically as root as some login managers prevent it.&lt;br /&gt;&lt;br /&gt;If you wish to occasionally use the root account but do not want to unlock it you can always type&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo su -&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;whenever you need to log in as root. This will let you use your sudo password to log into the root account.&lt;br /&gt;&lt;br /&gt;If you have unlocked the root account and wish to lock it again simply type&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$ &lt;span style="color: red;"&gt;sudo passwd -l root&lt;/span&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-4718513916408632786?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4718513916408632786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/4718513916408632786'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/08/unlock-root-account-in-sudo-based.html' title='Unlock the root account in sudo based systems.'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-781478163890578492</id><published>2010-08-29T16:13:00.003+01:00</published><updated>2010-09-08T15:40:45.879+01:00</updated><title type='text'>Reset forgotten root password</title><content type='html'>Several linux based operating systems now do not have a root password and instead use sudo as a standard user. This is not for the purpose of unlocking the root account. This method is simply to reset or change a forgotten root password.&lt;br /&gt;&lt;br /&gt;I am not liable for any damage you may incur to your system when using this method. I also do not condone the use of this method for malicious or illegal purposes.&lt;br /&gt;&lt;br /&gt;When your computer boots up you usually get some sort of boot loader.&lt;br /&gt;&lt;br /&gt;With GNU GRUB (very common) you usually get the option to choose an operating system or the option of pressing the Esc key to get to the grub menu.&lt;br /&gt;&lt;br /&gt;Once you are at the Grub menu please find the newest kernel. (usually the top entry).&lt;br /&gt;&lt;br /&gt;Press the e key to edit the entry.&lt;br /&gt;Now select the second line down (the line starting with the word kernel) that looks similar to:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/hda1 ro quiet splash&lt;/div&gt;&lt;br /&gt;Press the e key to edit this entry.&lt;br /&gt;Type the letter S (or word Single) at the end of the (kernel) line. *&lt;br /&gt;Press the ENTER key&lt;br /&gt;Now press the b key to boot the Linux kernel into single user mode.&lt;br /&gt;&lt;br /&gt;At the root prompt type&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$&lt;span style="color: red;"&gt; passwd &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;to reset password and follow the prompts.&lt;br /&gt;&lt;br /&gt;When you type your password it will seem as if you are not typing.&lt;br /&gt;This is normal as * shows how many characters you have so a blank is a  security feature. &lt;br /&gt;&lt;br /&gt;Once the password has been set you can type&lt;br /&gt;&lt;br /&gt;&lt;code&gt;bash$&lt;span style="color: red;"&gt; reboot&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;to restart the computer.&lt;br /&gt;&lt;br /&gt;The root password will now be the one you changed it to.&lt;br /&gt;&lt;br /&gt;*(If "s" or "single" do not work you can try typing "init=/bin/bash" instead)&lt;br /&gt;&lt;br /&gt;To stop people from using this method to break into your machine you could set a grub password or a BIOS boot password.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-781478163890578492?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/781478163890578492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/781478163890578492'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/08/reset-forgotten-root-password.html' title='Reset forgotten root password'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-6515021281391690398</id><published>2010-08-29T16:03:00.002+01:00</published><updated>2010-09-08T15:41:33.485+01:00</updated><title type='text'>Reset bad compizconfig settings in Ubuntu</title><content type='html'>Today I saw a post on the ubuntu forums where someone had installed  compiz-config-settings-manager and had made their system un-usable ie  they could not log in because of bad settings and the GDM was causing  problems.&lt;br /&gt;&lt;br /&gt;After I helped him to fix it he asked me to put it somewhere accessible so others could do the same.&lt;br /&gt;&lt;br /&gt;Only use this if your problem is caused by compiz and you need to reset it.&lt;br /&gt;&lt;br /&gt;If it is possible to get to the GDM (Gnome display manager....... or the login screen ) then use method 1.&lt;br /&gt;If you can't see the login screen at all go to method 2.&lt;br /&gt;&lt;br /&gt;Method 1.&lt;br /&gt;This should be simple enough.&lt;br /&gt;&lt;br /&gt;Press Ctrl+Alt+F1 when at the login. You will get a terminal in fullscreen.&lt;br /&gt;DO NOT BE SCARED.&lt;br /&gt;&lt;br /&gt;(You may want to print these instructions before doing this)&lt;br /&gt;&lt;br /&gt;Login with your username and password.&lt;br /&gt;When you type your password it will seem as if you are not typing.&lt;br /&gt;This is normal as * shows how many characters you have so a blank is a  security feature.&lt;br /&gt;&lt;br /&gt;You then need to stop X. ( the graphics)&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;&lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; color: red; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;sudo service gdm stop&lt;/pre&gt;&lt;/div&gt;You will be asked for your password so type it in. Again you will  not see typing.&lt;br /&gt;&lt;br /&gt;you then need to reset compiz.&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;&lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; color: red; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;gconftool-2 --recursive-unset /apps/compiz&lt;/pre&gt;&lt;/div&gt;hope that works for you.&lt;br /&gt;&lt;br /&gt;You can then restart your graphical display.&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;&lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; color: red; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;sudo service gdm start&lt;/pre&gt;&lt;/div&gt;use Ctrl+alt+F7 to get back to your gui.&lt;br /&gt;&lt;br /&gt;Method 2.&lt;br /&gt;&lt;br /&gt;If you can't get as far as the login screen due to graphics issues caused by compiz config the use this method.&lt;br /&gt;&lt;br /&gt;As your computer boots up interrupt at GRUB.&lt;br /&gt;&lt;br /&gt;In versions of ubuntu 9.04 and before you will see a prompt on boot saying click ESC to enter grub , do so.&lt;br /&gt;&lt;br /&gt;In  9.10 and newer you will not see this so hold the Shift key during boot  and you should get to grub. When there choose the newest recovery  option.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once you boot up in recovery mode you will be presented with a small box with some options. Select 'root'.&lt;br /&gt;&lt;br /&gt;You now have a root access command line.&lt;br /&gt;&lt;br /&gt;You then type:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;&lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; color: red; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;su yourusername&lt;/pre&gt;&lt;/div&gt;( obviously replacing 'yourusername' with your login name) to login as you. You then run&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;&lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; color: red; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;gconftool-2 --recursive-unset /apps/compiz&lt;/pre&gt;&lt;/div&gt;You will not have to stop or start the gdm though. When you have  run the commands instead of&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;&lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; color: red; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;sudo service gdm start&lt;/pre&gt;&lt;/div&gt;type&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;&lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; color: red; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;sudo shutdown -r now&lt;/pre&gt;&lt;/div&gt;Your computer should restart and your compiz settings will be reset.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-6515021281391690398?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6515021281391690398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/6515021281391690398'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/08/reset-bad-compizconfig-settings-in.html' title='Reset bad compizconfig settings in Ubuntu'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7221878582387391091.post-7858622978159467861</id><published>2010-08-29T15:59:00.002+01:00</published><updated>2010-09-08T15:41:54.144+01:00</updated><title type='text'>The purpose of this blog</title><content type='html'>Whenever I help someone out on the forums or get help with a problem myself I often find that the help given could be useful to someone else and I always feel bad that I don't share this information enough.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That is why I have started this blog. It will be simply a log of the help I give to someone with a linux based problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I myself use Arch linux but have used many other distributions in the past such as Ubuntu, Debian, Fedora, Red Hat, Suse and several others. &lt;br /&gt;&lt;br /&gt;Occasionally I may also produce guides for doing specific tasks, for instance setting up certain operating systems.&lt;br /&gt;&lt;br /&gt;If you have any questions about my blog feel free to email me on my public address of matux.blog@gmail.com. Please do not use this as a help line or an alternative to forums.&lt;br /&gt;&lt;br /&gt;I am doing this for no monetary gain and simply to help others.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7221878582387391091-7858622978159467861?l=matt-linux-log.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/7858622978159467861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7221878582387391091/posts/default/7858622978159467861'/><link rel='alternate' type='text/html' href='http://matt-linux-log.blogspot.com/2010/08/purpose-of-this-blog.html' title='The purpose of this blog'/><author><name>Matt</name><uri>http://www.blogger.com/profile/00470834140885027096</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
