Sunday, December 30, 2012

[Fedora 17] How to disable xscreensaver?

Under LXDE, I have disabled screen saver in KDE System Settings, but why I couldn't get rid of the "xscreensaver"?

It  is because the xscreensaver is not control by the setting in KDE system, but it is control by going to Application Menu > Preference > Screensaver.

Choose Disable Screensaver from the drop down menu. Bingo!

Tuesday, December 25, 2012

Scanning whole network range with Nmap

To scan the whole network IP range, we can use Nmap. It can be installed yum install nmap.x86_64

After installation, run nmap 192.168.0.1/24
* /24 mean scanning the whole range

Monday, December 24, 2012

[Fedora] HDD Benchmark with hdparm

To do a simple reading benchmark of Hdd, we can use hdparm. It may not install by default but we can easily get it by yum install hdparm.

After install, run hdparm -t -T /dev/sda (sdb, sdc, etc) and we can then see Cache Read and Buffered Disk Read speed.

My laptop has pretty poor performance with only 58.3MB/s for buffered disk reads, running on WD Scropio Blue 320GB.

[Fedora] Samba File Sharing Revisit

Update 25/12/12 17:40
Alright, I have much better idea what happen now. The pcmanfm file explorer that come with LXDE does not auto mount network folder, but Dolphin will do the trick.

As for the cifs-utils, that is needed to mount network folder from within the terminal.

So what about samba stuffs? I haven't dig into that, but if you have problem, no harm to install that.

I hope this update will make things clearer.

=======================================

Network file sharing is not easy in Linux. Despite my Xfce works fine with Samba network, but I have no luck on newly installed LXDE.

So what's the problem with it? To be very honest, I did not analyse the problem, initially I work around with mount & umount discussed in previous post. But today I have installed a few stuff from the package manager and it seems to work now directly from within Dolphin.

Below are packages that you may try to install to get it works:

  1. cifs-utils
  2. autofs (I guess this one is to deal with USB stick, cd/dvd, rather than network. But if you haven't install, you may try this.)
  3. samba-common
  4. samba Server and Client software to interoperate with Windows machine
Somehow, I feel it is the cifs-utils which do the trick. I would not dig to the root of this issue, perhaps next time. Until then, I hope this will help.

And one last thing, Merry Christmas and Happy New Year 2013!!


Friday, December 21, 2012

[Fedora] Mounting a network shared folder

The command to mount a network shared folder is:
mount -t cifs server:/folder-name /localpath -o username=userid,password=userpass
To unmount it, execute the following:
umount /localpath
It is so funny that the unmount command is 'umount', which is without "n". Wasted my half an hour to figure out this. Might be I really should read fundamental of Linux from scratch, not good to be "plug and play". :(

Run application standalone from terminal with root permission

If you get tired having to turn on many terminal so to run multiple application with root permission, try to add a "&" symbol after the name of application.

This will enable the application to run standalone from the terminal and you can continue to work on the same terminal.

[Fedora] Mounting a network shared folder under LXDE X11 Desktop

Switching from Xfce to LXDE has made me unable to access my network shared folder. The reason is using Nautilus in Xfce will automatically mount the network folder. But in LXDE, the network folder is not mounted by default, and I need to mount it using command line.

The bad thing is as a novice user, command line doesn't work as smooth. Luckily there is a tools namely "Gigolo" to simplify the procedure. It is located under Application Menu > System Tools > Gigolo. In some case it does not come with LXDE installation, then one would need to manually install it, yum install gigolo.x86_64.

Open up Gigolo we can see a connect button, press it and set the following:

  • Service type = Windows Share
  • Server = your server hostname / IP address
  • Share = the shared folder you would like to mount
  • Domain = this can be left blank
  • Username = username to access the server
Once enter / connect is pressed, there could be a pop up dialog (single line field) asking for password. For some reason entering password doesn't get rid of this dialog. Simply close it, then there will be another dialog box pop up, this time with two text field - Domain & Password. Simply ignore the Domain field and key in password. Voila! The network folder is now mounted.