chmod recursion -- files only
A great thread! Learned something new today again.
utorok 25. januára 2011
streda 19. januára 2011
SFTP on Ubuntu/Debian
I reused this article again, so it's worth bookmarking.
SFTP on Ubuntu and Debian in 9 easy steps
SFTP on Ubuntu and Debian in 9 easy steps
utorok 11. januára 2011
piatok 7. januára 2011
Atom - software
A brief followup on the software installed on my Atom PC.
I already mentioned Munin, a great monitoring software, very easy to setup. Even though there is quite a few plugins available in the Debian Lenny package, I have added and/or modified some (openssh, apache_accesses - with added SSL support, enabled graphing for apt).
Ever since I started sshd on port 22, I noticed some password guessing attacks, mostly for root, but also for oracle, guest, test, support, squid, svn. I tried to limit the number of connections via iptables as described here and here. Currently I am testing denyhosts.
I have also installed Apache2 with SSL, subversion, WebSVN (I originally wanted to use Insurrection but failed to configure it).
I already mentioned Munin, a great monitoring software, very easy to setup. Even though there is quite a few plugins available in the Debian Lenny package, I have added and/or modified some (openssh, apache_accesses - with added SSL support, enabled graphing for apt).
Ever since I started sshd on port 22, I noticed some password guessing attacks, mostly for root, but also for oracle, guest, test, support, squid, svn. I tried to limit the number of connections via iptables as described here and here. Currently I am testing denyhosts.
I have also installed Apache2 with SSL, subversion, WebSVN (I originally wanted to use Insurrection but failed to configure it).
piatok 31. decembra 2010
Atom
I got myself a new PC. It's based on Intel Atom D510 (1.66 GHz, 1M Cache, 2 cores), 1GB RAM, VGA is integrated but I use it as a headless machine. The processor has only passive cooler, so it's completely silent. The board is placed in a Travla C137 case, which has external PSU. I had a spare WD 160G 2.5" USB HDD laying around, so I used it.
I installed Debian Lenny (amd64) on the HDD. It was a bit of PITA, because I used my USB key as an installation medium. After a bit of googling I learned I need to use the 4th primary partition in order to boot from a USB device. There's also a small catch, the configuration of GRUB need to be changed after installation, because the HDD is sdb during install, but sda after the OS is installed (and USB key removed).
Here's the list of web pages that helped me during the install:
The PC is now up and running, I just configured munin on it, here are some resources:
I installed Debian Lenny (amd64) on the HDD. It was a bit of PITA, because I used my USB key as an installation medium. After a bit of googling I learned I need to use the 4th primary partition in order to boot from a USB device. There's also a small catch, the configuration of GRUB need to be changed after installation, because the HDD is sdb during install, but sda after the OS is installed (and USB key removed).
Here's the list of web pages that helped me during the install:
- Debian etch on ThinkPad X31 via USB stick (for dummies like me)
- Boot grml from usb-stick/firewire-device
- Grub Error 24: Attempt to access block outside partition
- Editing /boot/grub/menu.lst to change the GRUB boot menu
- chroot then "update-grub" gives errors
The PC is now up and running, I just configured munin on it, here are some resources:
streda 15. septembra 2010
Converting AVCHD Videos
I have a Panasonic DMC-TZ7 camera, capable of 720p video. For some time I was struggling with the MTS format that is used. Mplayer seemed to play it faster than the original. However, when uploading to youtube.com, the video plays fine. It also plays fine in xbmc.
I searched around a bit and found this syntax:
The video played fine in mplayer, but after upload to youtube, the sound was off. Same with added
Then I have read this blog post explaining how to convert the MTS format to mpeg4.
First I tried the
I searched around a bit and found this syntax:
fmpeg -i $1 -vcodec libxvid -b 18000k -acodec libmp3lame -ac 2 -ab 192k -s 1280x720 $1.avi
The video played fine in mplayer, but after upload to youtube, the sound was off. Same with added
-async 48000parameters to ffmpeg.
Then I have read this blog post explaining how to convert the MTS format to mpeg4.
First I tried the
-acodec copy -vcodec copything, but the wideo can't be rewound in mplayer. Finally the syntax
ffmpeg -i $1 -sameq -f mp4 $1.mp4worked best for me.
pondelok 7. júna 2010
Finch
I switched from centerim to finch recently. The UI is very intuitive so the switch was very smooth. Since there were a few features missing, I implemented two plugins.
The first one is xssidle, to report idle time from xscreensaver (actually I did a similar feature for centerim previously).
The second one is called betterhistory (could not came up with better name). It's an improvement of existing gnthistory plugin, it can display configurable number of previous conversations, it can also limit the history to messages from current day.
The plugins are located at github.
The first one is xssidle, to report idle time from xscreensaver (actually I did a similar feature for centerim previously).
The second one is called betterhistory (could not came up with better name). It's an improvement of existing gnthistory plugin, it can display configurable number of previous conversations, it can also limit the history to messages from current day.
The plugins are located at github.
Prihlásiť na odber:
Komentáre (Atom)