Recent Updates Page 2 Toggle Comment Threads | Keyboard Shortcuts

  • Frank Speak 4:36 pm on December 10, 2009 Permalink | Reply
    Tags: GNOME, nautilus script, open terminal   

    Add feature to Nautilus – to open “terminal” in current folder 

    GNOME is a simple and stable destop environment. It doesn’t lack any beauty either. It is also very easily customizable. If you have used KDE, you will know that the file manager (Konquerer) had a nifty feature that let you right click and open a terminal window right inside the directory that you were in. The new manager called Dolphin, also has this feature, implemented slightly differently. Nautilus (the resident GNOME file manager) doesn’t come ready-fitted with this ability. Adding it is really easy though. If you check this link at G-scripts, you will see many nifty scripts for you to add any kind of feature to nautilus and other applications in GNOME. Here’s how you do it:

    let’s take this very useful feature – opening a terminal in a directory you are browsing (current folder).

    Go to your home directory (Place > Home)
    Key press: Ctrl+h (or, View > Show Hidden Files)
    Find and navigate to “.gnome2” and “nautilus-scripts”
    Right-click, Create document, empty file, and name the new file “open terminal here.sh”
    Double click that file – the file opens in the Text Editor called gedit. Copy and past the bash script appearing below here, into the new file (the script was found at G-script).

    #!/usr/bin/perl -w
    #
    # Open terminal here
    #
    # Nautilus script that opens a gnome-terminal at the current location, if it's
    # a valid one. This could be done in shell script, but I love Perl!.
    #
    # 20020930 -- Javier Donaire
    # http://www.fraguel.org/~jyuyu/
    # Licensed under the GPL v2+
    #
    # Modified by: Dexter Ang [thepoch@mydestiny.net]
    # 2003-12-08: Modified for Gnome 2.4
    #		- Added checking if executed on Desktop "x-nautilus-desktop:///"
    #		  so that it opens in /home/{user}/Desktop
    
    use strict;
    
    $_ = $ENV{'NAUTILUS_SCRIPT_CURRENT_URI'};
    if ($_ and m#^file:///#) {
      s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
      s#^file://##;
      exec "gnome-terminal --working-directory='$_'";
    }
    
    # Added 2003-12-08 Dexter Ang
    if ($_ == "x-nautilus-desktop:///") {
      $_ = $ENV{'HOME'};
      $_ = $_.'/Desktop';
      exec "gnome-terminal --working-directory='$_'";
    }

    Notice that I have retained all the authors’ comment lines inside this script. You should do the same even if you add anything in the script yourself – notice for example, the commented lines (beginning with a hash symbol).

    Now in gedit, hit the SAVE button (Ctrl+s) and Quit (Ctrl+q).
    Now make the script.sh file, executable, thusly:
    In the folder “home/yourname/.gnome2/nautilus-scripts” your nautilus window, see the file your named “open terminal here.sh” hover over it and right click. Go to Properties and open the tab “Permissions”.. find at the bottom of that window, check “Allow executing file as program” then hit “close”. You can delete the backup file named “open terminal here.sh~” then close nautilus.

    That’s it!
    When you navigate to any folder now, you will find this feature when you right click.. find Scripts.. and select the one that is named “open terminal here”. I find that the right click works best when i view the directories in “icon” (Ctrl+1) or “compact” view (Ctrl+3) in nautilus.

    Thanks to the authors of this script, Javier Donaire and additions by Dexter Ang. It works very well.

    Advertisements
     
  • Frank Speak 2:56 am on December 10, 2009 Permalink | Reply  

    Posted by NAyK, PCLinuxOS 2009.2 Installation Review 

    Posted by NAyK, PCLinuxOS 2009.2 Installation Review [Nov 9, 2009]…About a year ago I would not have hesitated to recommend PCLinux to any beginner user of Linux. It was truly a class apart. But right now, it seems to have developed a few quirks that don’t seem to generate as much confidence in the distro as the previous one. Moreso, it doesn’t seem to have moved ahead. It feels like the old one, though not exactly in the best sort of way. It seems “less better”. Maybe I need to try it a little more, but suddenly I’m not too sure about whether PCLinux is the next big thing in Linux.

    Sadly, over the weekend I will be looking to install and test Mandriva 2010 and also later try out openSUSE 11.2, as replacement distros.

     
  • Frank Speak 5:26 pm on December 9, 2009 Permalink | Reply
    Tags: 3D desktop, aero, compiz fusion, emerald, wobbly windows   

    Free 3D Desktop easy as::step by step 


    The video is quite old. Mandriva 2008 in the demo. To get these effects, you will need:

    Basic graphics card.

    P4 or higher.

    My guide assumes you have Mandriva (with GNOME) but setting up on any other desktop environemnt or Linux distro will be similar.

    1. Check “Part 2 and Part 3 Post-install Mandriva 2010″ Ensure you have the “Eye and ear candy” packages listed at Part 3, step 6 installed.

    2. Setup the Graphical Server (install proprietary graphics driver)
    Open Terminal (Applications > Tools > Terminal)

    copy and paste this into a terminal,

    sudo mcc

    hit [enter]

    Or … “System > Administration > Configure Computer” then enter your root password

    On the left of the Control Centre window.. Click on “Hardware” then on the right, “Setup the Graphical Server” ..

    Mandriva Control Centre (mcc) usually does a great job of detecting your hardware, so stay with the defaults and adjust nothing unless your first attempt doesn’t work out.

    Click on the “Graphic Card” button then click “Ok”
    A message should appear saying “There is a proprietary driver available for your video card which may support additional features. Do you wish to use it?”
    Click the button on the bottom right that reads “Yes”.
    Wait while packages are installed. Some advanced options appear in the next window. Stay with the default selections. Click “Ok” then “Quit” then “Yes”.. A message reads “You will need to logout in order for the changes to take effect” Click “Ok” then click “Logout”. Then return to this page to complete step 3.

    3. Configure 3D Desktop Effects
    copy and paste this into a terminal,

    sudo mcc

    hit [enter]
    On the left, select category “Hardware” find the “Configure 3D Desktop Effects” on the right then select “Compiz Fusion”
    Allow some packages to be installed if needed.
    You will have to logout and back in again then complete Step 4.

    4. Configure Compiz Settings

    in a terminal enter this command

    ccsm

    hit [enter]

    Or go to “System > Preferences > CompizConfig Settings Manager”
    On the left of the ccsm window, find the category “Effects” then select “Window Decorations” (it will have a check in the box next to it – leave the box checked). Find the “command” block there. It will have this command by default

    compiz-window-decoration

    To the right of that space, you see a broom icon.. this will return you to the default settings at any time.
    Delete the defeault command shown above here, copy and paste this into a terminal instead

    emerald --replace

    At the bottom left, click the “Back” button. Then click the “Close” button that appears in the next window.

    5. Select Emerald Theme
    System > Preferences > Emerald Theme Manager

    Select the theme you desire.
    System > Preferences > Appearance
    Select theme tab, and find the “customise” button at the lower right of that window. You can select controls, colors, window borders, icons or borders as you desire to match the Emerald theme you have selected.

    6. Final tweaks
    Many plugins and effects are available in the CompizConfig Settings Manager (ccsm) tool. It is really a matter of choice and need. Explore and enjoy.

     
  • Frank Speak 6:30 pm on December 5, 2009 Permalink | Reply
    Tags: mandriva sudo   

    Part 2, Post-install Mandriva::2010 setup ‘sudo’ 

    << Go back to Part 1

    or proceed to set up sudo >>

    Applications > Tools > Terminal.

    Right-click > add launcher to panel.

    Open the terminal now.

    [username@localhost ~] $

    You are in normal user mode.
    enter this

    $ su

    [enter]

    Password:

    Enter your root/admin password
    (for security reasons, there is no “print to screen” during this operation so you will not see anything as you enter the password. After the password) now hit

    [enter]

    [root@localhost adelie]#

    You are logged in with root/admin control, hence the

    #

    symbol instead of the

    $

    symbol.

    Set up sudo

    This step allows you to perform management/administration operations without logging in as “root”.
    Now enter this command at the terminal

    visudo

    [enter]

    Use the arrow key to scroll until you find these lines

    #%wheel ALL=(ALL)ALL
    #%wheel ALL=(ALL) NOPASSWD:ALL

    Hit the ‘i’ key and delete the # symbol at the beginning of those two lines. Doing this causes the line to become an active command instead of a comment.

    Be careful to NOT do anything else in this file. Only delete those symbols. It should only be one click for each # symbol!
    After this, hit the
    [ Esc] key
    (this is one step that had me confused.. the Esc key must preceed your command to insert “i”, save (write) and quit “:wq” ).
    Now do this command to write and quit
    Type

    :wq

    [enter]

    In your terminal, type

    exit

    hit [enter]

    This returns you to normal user mode.

    [username@localhost ~] $

    One more step.

    Add yourself to the “wheel” group.

    Go to System > Administration > Configure Computer [enter root password] > System > Administration Tools – Manage users on system

    Highlight your username and right-click > Edit > Groups > scroll down to the word “wheel” check the box to the left of this group name. A yellow check symbol now appears to the left of the group “wheel”. Hit “Ok. Ctrl+Q and Ctrl+Q ends this section.

    Congratulations. You are now ready to use the “sudo” command whenever you install anything from the terminal or start any program with administration privileges.

    That’s really the end of this section concerning Mandriva 2010.0 post installation ..

    But, before doing anything else, by now you have been offered to “upgrade to a new distribution version mandriva 2009.1”.

    Fix the Mandriva Applet Upgrade Bug

    Because of the naming of the current version, you will receive a notification asking you if you want to “upgrade to version 2009.1”. We want to disable this notification for now. Find the blue arrow icon in the top right corner of the top panel. Right-click it and then select ‘quit’.

    In your terminal,

    sudo gedit /etc/sysconfig/mdkapplet

    [enter]

    the text editor called gedit will now open the file named “mdkapplet”
    you need to scroll until you find the line

    DO_NOT_ASK_FOR_DISTRO=false

    edit this line to read as follows

    DO_NOT_ASK_FOR_DISTRO=true

    save [Ctrl+s] and quit [Ctrl+q]
    Now you won’t get that notification. Just remember that when a new version is really released, you will not be informed automatically. In any case, it is far better to download your new version, burn to disc and install that way (IMHO). The automatic upgrade often ends in a small or large disaster.

    Now, I invite you to use the link below to read the next section
    Part 3, Post-install Mandriva::2010 Add sources & sauces >>
    *The ‘upgrade bug’ has been fixed in a subsequent update. I still find it useful to disable this “convenience” on a system used by someone who is not very familiar with Linux because an upgrade needs to be handled with necessary care. Upgrade is not the same as a simple update of a few packages. The upgrade is as easy to do – one simple click – but the implications are quite different.

     
    • khalid 10:00 pm on February 5, 2010 Permalink | Reply

      i don’t know why, but when i type visudo in terminal it says command not found.. please help, this is a great tip

      • tanclo 8:27 pm on February 25, 2010 Permalink | Reply

        Hi Khalid. Sorry about my late reply. I think you might have to check two things. Are you logged in as root – you should see a # sign if you are. 2nd, do you have an editor like VIM installed?

    • davdi 6:04 pm on February 27, 2010 Permalink | Reply

      this is nice but you might want to keep the ‘#’ in front of ‘%wheel ALL=(ALL) NOPASSWD:ALL’, just in case you leave your terminal on

    • tanclo 12:48 pm on February 28, 2010 Permalink | Reply

      Thanks for that warning, David. It is essential to always exit from sudo at the end of any root operation. I have read about the security risk and from what I understand, it is a bit of a debate. One I’m not sure I totally understand. I do know that using Truecrypt one has to have sudo setup. If you check a few of my posts, follwoing my procedure, users must do the “exit” [enter] “exit” [enter] routine at the end of installations, just to make sure. Is that a viable solution?

    • khalid 1:12 am on March 5, 2010 Permalink | Reply

      no no, no worries
      well yes, after you type su you’re prompted to type the root password innit so there is the # sign
      and VIM is installed (verified it by typing vim in terminal)
      any suggestions?

    • tanclo 5:51 pm on March 6, 2010 Permalink | Reply

      I found this which may be a pointer in the right direction. And have you checked the forums? i have a few in the sidebar. here’s that link http://erikeldridge.wordpress.com/2009/07/30/tutorial-visudo-command-not-found/ let us know what happened ok.

  • Frank Speak 1:41 pm on December 5, 2009 Permalink | Reply
    Tags: facebook vietnam, google public dns, , OpenDNS, OpenDNS wi-fi linux, you tube china   

    Part 1, Post-install Mandriva::2010 Network Settings 

    Network settings

    Automatic connection (WIRED)

    Find the double blue monitor icon by default, on the top right of your GNOME desktop and left click once..

    Or go to System > Administration > Configure your Computer > [root password] > Network and Internet > Network Center >.

    The Network Center window will reveal one or more lines named “Wired (Ethernet) eth0” “Wireless (Wi-Fi) wlan0” and the hardware manufacture name. Hit the small drop down arrow (small arrow on the left of the Name of the connection) and then ‘configure’.

    The next window is named “Network Settings” Scroll down till you see Get DNS servers from DHCP. This will be checked (see screenshot below).

    You should UNCHECK this and then enter the DNS servers of your choice…

    OpenDNS servers
    DNS server 1: 208.67.222.222
    DNS server 2: 208.67.220.220
    Hit ‘ok’ then Quit

    Reboot to start the network with Open DNS

    OpenDNS  with WIRELESS/WIFI

    Same as for wired but look carefully by scrolling right down the Network Settings window until you see “Get DNS servers from DHCP”.

    Manual Connection (WIRED)
    You will need the IP from your network admin or from your ISP
    Click on Netmask and the proper entry appears automagically
    Do the same with Gateway.
    Enter DNS server 1 and 2 as above.
    Reboot.

    Go to

    You should receive a “Welcome to OpenDNS” message
    If you get an “oops” message, then revisit the steps above, check if you have the correct IP data and Netmask and Gateway from your ISP.

    Google Public DNS (link)

    As of December 4th 2009, Google is testing a public domain name server. You can enter these values instead of the OpenDNS ones if you like. I have not tested these and I would be dubious concerning privacy issues with Google. The company has been known to cooperate with government censorship lobbies as well, so the OpenDNS option is good for me. Google’s servers are as follows. (link, OpenDNS vs Google)

    DNS Server 1: 8.8.8.8

    DNS Server 2: 8.8.4.4

    Restricted sites

    Those of you who find you are being prevented from visiting  some sites will be keen to try the OpenDNS routine. Restricted sites like facebook (in Vietnam and China) and you tube (China) do however engage in activities that compromise users’ privacy, so i would follow the persuasion of your public authorities, and refrain from using these sites for anything other than entertainment purposes. It is not illegal for you to visit the site as far as I know. Just be careful of being monitored by the site owners.

    If you still experience problems, see the discussion here at Mandriva Users.org and the Google people were nice to post something to help us too

     
    • AmPahn 12:15 am on May 5, 2010 Permalink | Reply

      Xin chào mọi người! Tôi mới đến diễn đàn và muốn gửi lời chào đến mọi người.

  • Frank Speak 9:56 pm on December 4, 2009 Permalink | Reply  

    Mandriva::2010 my fair Adelie 

    My new PC ::

    • Intel Dual-Core CPU E5300  @ 2.60GHz 2MB cache
    • Graphics Card Integrated Intel 810 (Device ID 0x29c2)
    • RAM 2 GB
    • Hard Disk ATA WDC WD2500AAKS-0 (250GB)
    • Soundcard ICH7 Family High Definition (Device ID 0x27d8)

    My Requirements::

    • play and encode … DVD to MKV, and MKV to 3GP media formats.
    • communication tool … webcam, output and input (mic) audio. Being able to record Skype conversations (bonus).
    • backup encrypted data. I am not needing an encrypted home partition on this box.

    Distribution Candidates ::

    Result ::
    Mandriva Adelie came out tops. Easy to install. Fast boot (less than 20 seconds). Stable operation. No bashing about to get anything working. The only unusual tweak to stop the notification to “upgrade”. Very simple setting up of media sources for software updates and installation. Simple access to non-free repositories (PLF- Penguin Liberation Front and MiB). Beautiful! Media plays smoothly, clear sound except for minor static from my sound card and low grade wiring when my microphone is in use (audible only from the second audio output, not the headphone).

    My love affair with Adelie began last night. My only problem is how do i introduce her to my darling girlfriend without causing too much of a glitch. My girlfriend has the Spring version (Mandriva 2009.1) installed on an eeePC which is working like a dream. So why fix something if it isn’t broken, right? Perhaps I will not introduce them to one another.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel