|
Blog
|
|
|
It happens to everybody: You make a small mistake, and there go all your holiday pictures. Luckily, all memory cards and cameras share a few features: JPG files on FAT/FAT32. This makes it especially easy to recover deleted files using standard tools on Linux.
Key points to remember:
The commands: Towards the end of March 2009 I strolled the streets of London, shooting random people and random faces. After a few dozen shoots, I realiased the theme of the day: mobile phones. They would stand or walk, mostly unaware of their surroundings, absorbed in the most important topic of all: "Where are you?"
See the rest of the pictures here. ![]() Mounting the memory card on your mobile phone over Bluetooth is now really smooth under Fedora. Thanks to topyli's post and David's HOWTO, all you need is the one-liner below. Once you've paired the devices, and have installed obexfs, and fuse-utils, run this, and your read to copy files:
To unmount: fusermount -u /mnt/phoneWith Android out of the door, IM chat over IP on the mobile will soon be a staple. Paying for SMS text messaging will soon be a thing of the past. However, what about all those other devices which hasn't caught up yet? fring saves the day!
Fring supports text chat for Skype, MSN, Google Talk, ICQ, SIP, Twitter, Yahoo! and AIM. Furthermore, it supports Skype and SIP voice over IP, which should be a welcome service. Finally, it can connect to Facebook, Gmail Notifier, Vtap Video Streaming, Orkut Social Network, Yandex Push Email, and more. From your phone, you can download fring by pointing it to m.fring.com. On my N80, two applications were installed, and fring started up automatically. You'll have to sign up for an account, and then add the IM networks you already use. Your friends will automatically appear in a searchable list. Recently I wanted to change the port for the SSH daemon (running on a Fedora 10 install), however, SELinux got in the way. After looking at these posts, I found that the following would allow me to run sshd on port 222.
semanage port -m -t ssh_port_t -p tcp 222 On my rather slow server, it took about three minutes to update. To confirm that the change was made, I ran the following command: semanage port -l | grep ssh Fedora 10 was released this week, and you can get your copy here. True to form, I post my notes of what I usually have to do to after a fresh install.
First of all, have a look at "Personal Fedora 10 Installation Guide" by Mauriat Miranda (http://www.mjmwired.net/resources/mjm-f Here's my quick summary, tailored to my needs: This should take care of most media players, flash and pdf plugins, Skype, and iPod support through gtkpod, and other useful programs. Lately I have been looking into virtualization, and all the fun stuff which comes with that. Here is a collection of links related to virtual devices; how to copy block devices, partition, format, mount, etc.
Creating and using disk images mini-howto DD Tutorial Learn The DD Command Running Microsoft Windows inside Debian: qemu Copying Windows to a new drive, using linux - How-to/Guide The most interesting tutorial, was the second, which creates a virtual block device, which later can be used with Qemu. Here's a quick summary: dd if=/dev/zero of=win_e.img bs=1024 count=1000000 losetup /dev/loop0 win_e.img fdisk -ul /dev/loop0 # Create a W95 FAT32 partition losetup -o 32256 /dev/loop1 /dev/loop0 mkfs.vfat -v /dev/loop1 mount -o uid=myuser,gid=myuser /dev/loop1 tmp I just installed a new and bigger harddisk in my mum's laptop, and wanted to preserve the dual boot setup, with Windows XP and Fedora. Actually, it was enough to keep the Windows partition, since the Fedora was lagging behind a few updates.
Using a generic, but extremely useful IDE-to-USB adapter, I could copy the full Windows partition over to the new drive, without having to reinstall or change anything. Credit goes to Ed Anderson for putting together this guide to help with that task. To summarise the gist of it: The internal drive was on /dev/hda, while the new and temporarily external was /dev/sda.
Here's a repeat of a previous entry on Fedora installation, this time for version 9:
"Personal Fedora 9 Installation Guide" by Mauriat Miranda (http://www.mjmwired.net/resources/mjm-f For the quick version: This should take care of most media players, flash and pdf plugins, Skype, and iPod support through gtkpod, and other useful programs. Slashdot is reporting on a study from SANS Institute's Internet Storm Center which shows that an unpatched Windows XP box will be infected after about five minutes on the Internet. German researchers found that it took slightly longer, however the conclusion still holds:
"While the survival time varies quite a bit across methods used, pretty much all agree that placing an unpatched Windows computer directly onto the Internet in the hope that it downloads the patches faster than it gets exploited are odds that you wouldn't bet on in Vegas." During my last trip to Norway, I used the new Moss/Rygge airport and flew via Copenhagen. During both flights we crossed right over Sarpsborg, Fredrikstad and Sandbakken, and I also had a beautiful view of Svinesund and Koster. I've updated the picture section we some flight photos:
http://hblok.net/pictures/public/misc/fl ![]() The Max Planck Institute for Software Systems brings you a test to see if your ISP is throttling BitTorrent traffic from your computer. At the end of the tests, it also gives some nice statistics on your upload and download speeds.
http://broadband.mpi-sws.mpg.de/transpa In the wake of the recent internet traffic monitoring law passed in Sweden, it is highly overdue to get serious about encryption. First off, e-mail encryption, focusing on PGP/GPG. Below are a some useful links:
Enigmail: PGP/GPG extension for Mozilla Thunderbird. FireGPG: GPG extension for Mozilla Firefox. Brings e-mail encryption to Gmail, and any other website with GPG content. GpgOL is a plugin for Microsoft Outlook 2003, by the maintainers of GnuPG. GPGoe is a GPG plug-in for the Microsoft Outlook Express. For even more links about PGP/GPG and related tools, see Folkert van Heusden's collection of information. WINE version 1.0 was announced today, and this got me thinking maybe I could run some of the old games I used to play some 15 years ago. Well, at that time, Windows wasn't needed at all, so I turned to another great project: DOSBox, an excellent MS-DOS emulator, focusing primarily on games.
So I had to dig out some old games then. Doom seemed like a natural first choice, and after a bit of shifting through various groups, it ran fine. In fact, below you can see a screenshot of Doom, Doom II and Hero's Quest all running at the same time under Fedora 9. ![]() Installationyum install dosbox Today, this gave me dosbox.i386 0.72-4.fc9. Configuration* Start up by simply typing: dosbox * In the DOS-terminal, type: CONFIG -writeconf dosbox.conf * Exit the terminal by typing "exit" * You will now find the file dosbox.conf in your current directory. * Move and rename this file: mv dosbox.conf ~/.dosboxrc * Next time you start DOSBox, it should say: "CONFIG:Loading primary settings from config file /home/username/.dosboxrc" SoundOn the initial start up, DOSBox gave the following error messages, which many people have reported: MIXER:Can't open audio: No available audio device , running in nosound mode. ALSA:Can't subscribe to MIDI port (65:0) nor (17:0) To start with the last issue, the MIDI port. This was easily fixed by updating the midi-section in the .doxboxrc config file created above. Theses settings works for my onboard "VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller" [midi] mpu401=intelligent device=alsa config=128:0 The second issue required the PulseAudio server to be started. Simply typing pulseaudio will take care of that. You can verify that it is working correctly by runnging paplay /usr/share/sounds/generic.wav, and you should hear a small sound. After this DOSBox reported no more errors, and would play both MIDI and sound effects. For some games, you need to "install.exe"/"setup.exe" to set the sound properties. Make sure the IRQ, DMA and port settings match the settings in your .dosboxrc. (Had you also almost forgotten your favourite IRQ/DMA setting? :D ) Try out this super cool Flash game:
http://www.spudmud.com/games/23-Heli-In Also, make sure you download Firefox 3, so you can increase the Flash app by pressing CTRL++ http://www.mozilla.com/firefox/ After updating to Fedora 9 today, Autologin was disabled. It seems it has been deliberately taken out. The current fix for Gnome is as follows:
Edit /etc/gdm/custom.conf [daemon] # http://live.gnome.org/GDM/2.22/Configuration TimedLoginEnable=true TimedLogin=yourusername TimedLoginDelay=0 You might want to set the delay to a few seconds. More information here: http://dnmouse.webs.com/autologin.html Stefan Grothkopp has put out a very slick, and fun, command line interface to Google, running in your browser. http://goosh.org
Things to try: > w street parade ... > 1 > p zurich Along the same lines, Surfraw and the likes of Links, Lynx, and w3m will do about the same, in your console. $ sudo apt-get install surfraw w3m ... $ sr google test (Note: the Debian/Ubuntu packages work fine, however Fedora's repositories hold an older, broken version of Surfraw.) Fedora 9 has been released. Get your copy here! Release notes can be found here. From Slashdot:
"Some of the more interesting new features include a new package management system, which can be used as an alternative to yum, known as PackageKit. This release also includes GNOME 2.22 and/or KDE 4.0.3, and Firefox 3 beta 5. Overall, there are a lot of improvements worth looking at, and the Bittorrent seeds are already feeding the release fairly effectively." ![]() ...or just a price peek?
Here are some of today's headlines from The Guardian, as the crude oil price almost hits $120/barrel: Cost of fuelling aircraft has soared Gas flow to Britain slows despite high prices Opec warns of $200 oil as price hits new high |