I saw a clip in youtube few days back, a person showing off his Ubuntu with the features of mouse over music preview, which means by putting mouse cursor on top of the music file icon, it will start to play the song without the needs of playing the song in a music player. I was attracted by this features and it’s really useful when i want to search for song in a thousand song by just moving my mouse cursor one by one. I start to search around for the work around, i tried many ways suggested in forums and blog but i still cant make it work. However at last i manage to make it work by installing things below, but so far i only test it in Hardy Heron.
Things to be installed
- ubuntu-restricted-extras
- mpg123
- mpg123-esd
- pulseaudio-esound-compat
- vorbis-tools
You can install from synaptic or by the method below
$ sudo aptitude install ubuntu-restricted-extras mpg123-esd pulseaudio-esound-compat vorbis-tools
If you are installing CJK(Chinese, Japanese, Koean) application in ordinary fresh installed wine, you will see a lots of funny character instead of the one of the CJK which is readable. Follow the guide below to get your CJK application display properly in wine. Tested on Ubuntu Feisty and Hardy.
1. Open the terminal and execute the following
$sudo touch /var/lib/locales/supported.d/ja
$sudo touch /var/lib/locales/supported.d/kr
$sudo touch /var/lib/locales/supported.d/zh
2. Open each of the file that you have just created and paste in the line as below
Read more
The first time i install sonork IM using wine was last year but failed, it wont read the history record from data file when you open chat screen. When new message arrive i got the notification but when i open the chat screen it was empty, i can only see the incoming message if i keep the sender’s chat screen open before he or she send me the message. Sonork IM is an internet messenger application which is not popular at all, but some of the company are using it as a private messenging network, because it is not well known enough so i can hardly find any information in google regarding problem in running sonork IM using wine and its solution. I tried crossover office as well but no hope. So i conclude to myself that sonork IM not compatible at all with wine. Until recently i bring it out to try again because i need to stick with linux base OS for some my research, this time somehow i make it to works, i don’t know how it would work in this way, but i just work.
The trick to make it work is really simple, for the 3rd step in the installation wizard, there is an “advanced…” button, after clicking on it you will see that you can actually set your own data and tmp path for Sonork IM. For Data folder i set it to my Ubuntu file system /home/warrence/sonork/data, as for tmp folder i set it to /tmp. Thats all!
If you install KDE with aptitude, use below method to remove:
$sudo aptitude remove kubuntu-desktop
or
$sudo aptitude remove xubuntu-desktop
If you are using apt-get or synaptic to install, follow as below:
Read more
I migrated myself from Vista to Ubuntu, and honestly speaking, i love it more than Vista after i use it for a month. But one thing that i don’t like is the shortcut key to hide and show desktop. Oridinary in Vista was using Super L + D whereas for Ubuntu it use Ctrl+Alt+D. So i decide to configure the shortcut to be similar like the behaviour in Vista, and then i realize that i can’t combine Super L key with other key in the settings. I start googling for the answer, and of cause i did found out the solution or else i wont be writing this post just to ask for help. So here is the solution to share with those out there who have the same problem as me.
- Goto System > Preferences > Keyboard
- Goto Layouts tab
- Click Layout Options… button
- Expand Alt/Win Behavior
- Check on Super is mapped to the Win-keys (default)
- Click on close button
- Goto System > Preferences > Keyboard Shortcuts
Now you are able to set your shortcut with the combination of Super L and other keys. It should come out as Mod4+CHOSENKEY.
Logwatch is a customizable log analysis system, it creates a analysis report base on the are that you specify. The report will be send to your email address everyday and the report has been proceesed. As mention in the title, we are enabling logwatch but not installing logwatch here. Logwatch is already installed on most cPanel servers, so i will only covered for those who have Logwatch ready in the server.
First thing to do is SSH into your server as root.
And then nano/pico/vi /etc/log.d/conf/logwatch.conf
Seek for Mailto = root
change it to
Read more
Previously i have posted a tutorial on “Setup firewall for your Linux Server”, now as promised i deliver the tutorial for setting Brute Force Detector. But please ensure that you have already installed APF because you need APF in BFD. For those who have not yet installed APF, you can go to this page “Setup firewall for your Linux Server”.
So why do we need APF in BFD? BFD will detect for suspicious activity like attempts of failed login and then insert their IP into APF deny hosts list, so that they will be totally lock out from the server.
Now we start for the installing.
Read more
Firewall is a wall that can protect your server againts FIRE DISASTER! ….just kidding hehe.
Ok! Firewall work in the way that it let you create rules for packet filtering and NAT. Still blur on what im talking about? Well nevermind, i know many people don’t understand how it works but they do really need it to protect their server. Actually you can call firewall the security guard of your server, you can order “him” to disallow some IP from visiting your whole server or only for certain services. Example, you allow all IP to your Apache service and allow only one of your OWN house/office IP to access the FTP Service. I hope you caught an image on how it works right now, the next i will teach you how to setup the firewall.
Read more
Sometimes you want to restart your Apache server after changing some configuration in httpd.conf, but you have few hundred clients currently downloading files from your server and you don’t want to disconnect the. You can use the syntax below:
Code:
$ service restart graceful
or
$ /etc/init.d/httpd graceful
This will gracefully restart your Apache with new configuration without affecting your client’s connections.
Usually javascript to set cursor position to the end of a text field? I bet lots of people looking for workaround on this. The trick is actually simple but yet so many people never though of it. So to get this done, just do set the text vield value before you focus on the text field, here some example code:
let say you want to set a value in the a text field after the page just finish loaded and make the cursor start at the end of that text field.
Code:
<!– in the HEAD –>
<script language=”JavaScripts”>
function setTextField(){
document.myForm.myTextFieldName.value = “My name is “;
document.myForm.myTextFieldName.focus();
}
</script>
<!– in the BODY TAG–>
<body onLoad=”setTextField()”>
<!– in the FORM –>
<form name=”myForm”>
<input type=”text” name=”myTextFieldName” value=””>
</form>
Thats all you need!
Next Page »