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
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
pySM frontend
I know, I know...
It has been a long time since I've posted an update here but hey, no one is perfect ![]()
Altough I had no time to post, I did have the time to program a little more on pySM.
The progress I've made in these few days is magnificent. I've managed to write a simple config interface and totally excited by the fact how easy it is to implement this "shizzle" with python, the fact I've made a configparser package makes it really easy for me to implement an config xml based configparser.
Jeej for python...
Yesterday I've also finished an basic webserver with basic functions. this way I can easy determine what page the user requires and reply with the right page, I still have some work remaining on this part. Also, I still have to make the webserver modular so it can be easily used in other projects.
For now, I'm still wondering what I'll use as template manager or maybe write my own for easy webpage generation based on the server info. I'm also trying to find an easy way to load modules dynamically.
Anyhow, Lot's of progress has been made but we aren't there yet...
Cheers,
Tim
pySM
pySM is an open source project by me, Mathias and Michel. We've managed to link the development to our school project, thereby increasing the chances of actually finishing the project to an excellent product.
More about pySM
pySM is short for python Server Management. Meaningless to say, we're building the project on python code.
We'll try to make an easy and up-to-date tool to manage your personal (or professional - later) server in a plesk-like way. We will try to make a modular system for basic (and simple) support. The main goal for us is to develop a stable and good backbone so the community (yes, you guys!) can help us by adding extra modules for the services you'd like to see supported.
pySM goals
- Easy to maintain
- Modular
- Free and Open Source
- At least similar functionality as plesk (And better!)
- File based configuration (vs the database way)
These are the goals as we're looking at it right now. They _will_ change in the future, certainly with your help.
So, we'll see you at first release date,
Tim.
when others believe him.
-- Charles DeGaulle