Linux: SSHFS
SSHFS
From Wikipedia, the free encyclopedia
SSHFS (SSH Filesystem or Secure SHell Filesystem) is a file system client that may be used on operating systems for which an implementation of FUSE is available.
The client allows access to a remote file system where files and directories are available via SFTP.
This said I would like to mention how much SSHFS changed my life... No longer did I require Samba or NFS to share my data or did I have to mind about security. All you need is the remote host running a SSH deamon.
Thanks to SSHFS mounting remote disks has never been this easy.
Usage:
sshfs user@remotehost:/path/to/folder/you/want/to/mount /path/to/folder/you/want/to/mount/to
With kind regards,
Tim
pySM update
It has been a long time since there has been any followup on this blog. This because there where some other issues that urgently needed my attention.
This said, I am delighted to announce that the pysm website has had an update.
http://wiki.pysm.be will now contain the wiki.
http://blog.pysm.be will now contain the project blog.
http://trac.pysm.be will now contain the project source code.
and http://www.pysm.be will serve as some kind of portal for all of these subdomains.
Also I've suggested a name change for pySM from "Python Server management" to "Python System management".
With kind regards,
Tim
Archlinux: ATI Mobility Radeon X1400 and Xorg
It was a pain in the ass to get my ATI Mobility Radeon X1400 up and running on my archlinux laptop with the latest versions of Xorg, but I managed to get there in three easy steps. (in the end)
1. Download and install the propetiery driver (ATI Catalyst) matching your ATI card (AMD Support Search)
- Go to your download folder in terminal
- chmod +x ati-driver-installer-........
- ./ati-driver-installer-
- Don't forget to do all this as root!
2. run hwd -xa, this is actually an archlinux only command for as far I know. But for those not running archlinux I'll add my xorg.conf file later on.
3. run aticonfig --initial
All you have to do now is restart X.
You can check with fglrxinfo if your installation was a success.
[tim@Haven ~]$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Mobility Radeon X1400
OpenGL version string: 2.1.8543 Release
My xorg.conf
# Auto-generated by Archie mkxcfg
# Auto-generated by Archie mkxcfgSection "ServerLayout"
# PS/2 Mouse not detected
# Serial Mouse not detected
Identifier "Xorg Configured"
Screen 0 "aticonfig-Screen[0]-0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Logitech MX510" "CorePointer"
EndSectionSection "Files"
# Additional fonts: Locale, Gimp, TTF...
# FontPath "/usr/share/lib/X11/fonts/latin2/75dpi"
# FontPath "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/PEX"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/ttf/western"
FontPath "/usr/share/fonts/ttf/decoratives"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/truetype/openoffice"
FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
FontPath "/usr/share/fonts/latex-ttf-fonts"
FontPath "/usr/share/fonts/defoma/CID"
FontPath "/usr/share/fonts/defoma/TrueType"
EndSectionSection "Module"
Load "ddc" # ddc probing of monitor
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "bitmap" # bitmap-fonts
Load "type1"
Load "freetype"
Load "record"
# Load "synaptics"
EndSectionSection "ServerFlags"
Option "AllowMouseOpenFail" "true"
Option "AutoAddDevices" "False"
EndSectionSection "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "be"
Option "XkbVariant" ""
EndSectionSection "InputDevice"
Identifier "Serial Mouse"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS0"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSectionSection "InputDevice"
Identifier "PS/2 Mouse"
Driver "mouse"
Option "Protocol" "auto"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSectionSection "InputDevice"
Identifier "Logitech MX510"
Driver "mouse"
Option "Device" "/dev/input/mice" # (cat /proc/bus/input/devices)
Option "Name" "Logitech MX510"
Option "ZAxisMApping" "4 5"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"
EndSectionSection "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSectionSection "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSectionSection "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSectionSection "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82852/855GM Integrated Graphics Device"
Monitor "Generic Monitor"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 2304 1792
Modes "1280x1024@75" "1024x768@60"
EndSubSection
EndSectionSection "DRI"
Mode 0666
EndSection
Cheers,
Tim
Mogrify: Batch resizing pictures in linux
We all came across this problem at least once in our lifetime. You have a whole bunch pictures but you can't find the time to resize all of them one by one. Wel linux has an easy (and lite) way to do all off this in notime, all you need is Mogrify. Imagemagick Mogrify is an easy to use, ligte, command prompt tool and capable of editting most of the image types. If you want to force-resize all your .jpg images ignoring the images width-height ratio to 100x100 all you have to do is
mogrify -resize 100×100! *.jpg
If you want to resize all your .jpg images respecting the width-height ratio to an width of 640 px all you have to is
mogrify -resize 640 *.jpg
Note: Make sure you are executing this in the right folder. otherwise you'll have to adjust the path of *.jpg.
mogrify -resize 640 /home/<user>/images/myOhSoCoolAlbum/*.jpg
Cheers, Tim
--- Calvin